mkstemp: replace if system version uses wrong permissions
[gnulib.git] / ChangeLog
1 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2         and Eric Blake  <eblake@redhat.com>
3
4         mkstemp: replace if system version uses wrong permissions
5         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6         read/write mode bits set in file created by mkstemp.
7         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8
9 2011-04-27  Eric Blake  <eblake@redhat.com>
10
11         passfd: avoid compiler warning
12         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13         Reported by Laine Stump.
14
15 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16
17         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19
20 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21         and Eric Blake  <eblake@redhat.com>
22
23         mkstemp: mention clean-temp module
24         * lib/mkstemp.c: Add comment.
25         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
26
27 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
28
29         inttypes: also provide default values for 32-bit tests
30         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
31         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
32
33 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
34
35         strtoumax: remove dependency on strtoimax
36         This is like the strtoull change of yesterday.
37         * modules/strtoumax (Files): Add lib/strtoimax.c.
38         (Depends-on): Remove strtoimax and add verify.
39
40         inttypes-incomplete: new module
41         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
42         all but the PRI* and SCN* parts of gl_INTTYPES_H.
43         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
44         of gl_INTTYPES_H.
45         (gl_INTTYPES_H): Rewrite in terms of these new macros.
46         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
47         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
48         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
49         * modules/strtoumax, modules/xstrtol (Depends-on):
50         Depend on inttypes-incomplete, not inttypes.
51         * modules/inttypes-incomplete: New module, containing the contents
52         of the old modules/inttypes module, except that the Files: section
53         omits m4/inttypes-pri.m4, and the configure.ac section invokes
54         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56         (Depends-on): Depend only on inttypes-incomplete.
57         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
58
59         inttypes: omit now-redundant strtoimax and strtoumax work
60         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
61         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
62
63         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
64         This supports apps that need pointers to strtoimax and strtoumax,
65         and ports to HP-UX 11.00 64.bit, which has macros that expand to
66         nonexistent functions.  See
67         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
68         et seq.
69         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
70         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
71         a macro.
72         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73
74 2011-04-25  Simon Josefsson  <simon@josefsson.org>
75
76         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
77
78 2011-04-25  Bruno Haible  <bruno@clisp.org>
79
80         strtol, strtoul: Mark modules as obsolete.
81         * modules/strtol (Status, Notice): New sections.
82         * modules/strtoul (Status, Notice): New sections.
83
84 2011-04-25  Bruno Haible  <bruno@clisp.org>
85
86         strtod: Remove check for strtod, unless supporting old platforms.
87         * modules/strtod-obsolete: New file.
88         * m4/strtod-obsolete.m4: New file.
89         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
90         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
91         * modules/strtod (Depends-on): Add strtod-obsolete.
92         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
93
94 2011-04-25  Bruno Haible  <bruno@clisp.org>
95
96         strcase: Make module obsolete.
97         * modules/strcase (Status, Notice): New sections.
98
99 2011-04-25  Bruno Haible  <bruno@clisp.org>
100
101         dup2: Remove check for dup2, unless supporting old obsolete platforms.
102         * modules/dup2-obsolete: New file.
103         * m4/dup2-obsolete.m4: New file.
104         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
105         gl_FUNC_DUP2_OBSOLETE is not also defined.
106         * modules/dup2 (Depends-on): Add dup2-obsolete.
107         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
108
109 2011-04-25  Bruno Haible  <bruno@clisp.org>
110
111         strnlen: Avoid memchr related link error on old obsolete platforms.
112         * modules/memchr-obsolete: New file.
113         * m4/memchr-obsolete.m4: New file.
114         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
115         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
116         * modules/memchr (Depends-on): Add memchr-obsolete.
117         * modules/strnlen (Depends-on): Likewise.
118         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
119
120 2011-04-25  Jim Meyering  <meyering@redhat.com>
121
122         maint.mk: makefile_at_at_check extend and clean up
123         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
124         in addition to */Makefile.am.
125         Exempt legitimate uses of @VAR@ notation, e.g.,
126         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
127         Remove obsolete coreutils-specific comment.
128         Prompted by discussion here:
129         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
130
131 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
132
133         strtoul: remove dependency on strtol
134         This is so that 'configure' need not check for strtol merely because
135         the application needs strtoul.
136         * modules/strtoul (Files): Add lib/strtol.c.
137         (Depends-on): Remove strtol.
138
139         strtoull: remove dependency on strtoul
140         This is like the strtoll change.
141         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
142         (Depends-on): Remove strtoul.
143
144         strtoll: remove dependency on strtol
145         This is so that 'configure' need not check for strtol merely because
146         the application needs strtoll.
147         * modules/strtoll (Files): Add lib/strtol.c.
148         (Depends-on): Remove strtol.
149
150 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
151
152         inttypes: Move some configure check to module 'imaxdiv'.
153         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
154         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
155         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
156
157 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
158
159         inttypes: Move some configure check to module 'imaxabs'.
160         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
161         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
162         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
163
164 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
165
166         inttypes: Remove configure tests that are not needed since 2009-12-31.
167         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
168         gl_cv_header_working_inttypes_h.
169
170 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
171
172         * modules/strnlen (Depends-on): Remove memchr.
173         The strnlen implementation doesn't need the memchr module's fixes; see
174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
175
176         strtol: remove dependency on wchar
177         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
178         * modules/strtol (Depends-on): Remove wchar.
179
180 2011-04-21  Eric Blake  <eblake@redhat.com>
181
182         passfd: fix test regression on Linux
183         * modules/passfd-tests (configure.ac): Correct socketpair check.
184
185         passfd: speed up configure and drop unused code
186         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
187         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
188         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
189         Instead of probing at configure for unix_scm_rights_bsd44_way,
190         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
191         check to a struct member probe.
192         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
193         (sendfd, recvfd): Update preprocessor checks.
194         * modules/passfd (Files): Reflect rename, and drop unused file.
195         (Depends-on): Drop unused dependency.
196
197         passfd: allow compilation on mingw
198         * modules/sys_socket (Depends-on): Add sys_uio.
199         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
200         iovec and a minimal struct msghdr.
201         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
202         * tests/test-sys_socket.c (main): Enhance test.
203         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
204         guaranteed to provide what we need.
205         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
206         * modules/passfd-tests (Depends-on): Add sys_wait.
207         * tests/test-passfd.c (main): Skip test on mingw, for now.
208         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
209         partial 'struct msghdr' implementation.
210
211         sys_uio: new module
212         * modules/sys_uio: New module.
213         * modules/sys_uio-tests: Likewise.
214         * lib/sys_uio.in.h: New file.
215         * m4/sys_uio_h.m4: Likewise.
216         * tests/test-sys_uio.c: Likewise.
217         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
218         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
219
220 2011-04-20  Jim Meyering  <meyering@redhat.com>
221
222         useless-if-before-free: avoid false-positive
223         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
224         disjunct so that it too requires a terminating ";".  Without that,
225         this script would identify as useless one statement from gcc that
226         was not:
227           if (aligned_ptr)
228             free (((void **) aligned_ptr) [-1]);
229
230 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
231
232         doc: update users.txt.
233         * users.txt: Add barcode.
234
235 2011-04-19  Bruno Haible  <bruno@clisp.org>
236
237         ioctl: Remove link dependency on native Windows.
238         * lib/fd-hook.h: Renamed from lib/close-hook.h.
239         (gl_close_fn, gl_ioctl_fn): New types.
240         (struct fd_hook): Renamed from struct close_hook. Change type of
241         private_close_fn field. Add private_ioctl_fn field.
242         (close_hook_fn): Add parameter for primary close method.
243         (execute_close_hooks, execute_all_close_hooks): Likewise.
244         (ioctl_hook_fn): New type.
245         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
246         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
247         argument.
248         (unregister_fd_hook): Renamed from unregister_close_hook.
249         * lib/fd-hook.c: Renamed from lib/close-hook.c.
250         Don't include <unistd.h>.
251         (close): Remove undef.
252         (anchor): Update.
253         (execute_close_hooks): Add argument for primary close method.
254         (execute_all_close_hooks): Likewise.
255         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
256         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
257         argument. Allow each argument to be NULL.
258         (unregister_fd_hook): Renamed from unregister_close_hook.
259         * lib/close.c (rpl_close): Pass 'close' function pointer to
260         execute_all_close_hooks.
261         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
262         (primary_ioctl): New function.
263         (ioctl): Don't call ioctlsocket here. Instead, call
264         execute_all_ioctl_hooks.
265         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
266         close method.
267         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
268         (fd_sockets_hook): Renamed from close_sockets_hook.
269         (gl_sockets_startup, gl_sockets_cleanup): Update.
270         * modules/fd-hook: Renamed from modules/close-hook. Update.
271         * modules/close (Depends-on): Add fd-hook, remove close-hook.
272         * modules/sockets (Depends-on): Likewise.
273         * modules/ioctl (Depends-on): Add fd-hook.
274         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
275         GNULIB_SOCKET.
276
277 2011-04-19  Bruno Haible  <bruno@clisp.org>
278
279         Move the support of O_NONBLOCK in open() to the 'open' module.
280         * modules/nonblocking (Depends-on): Remove 'open'.
281         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
282         gl_cv_have_open_O_NONBLOCK.
283         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
284         O_NONBLOCK support.
285         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
286
287 2011-04-17  Bruno Haible  <bruno@clisp.org>
288
289         pipe2: Simplify code.
290         * lib/pipe2.c (pipe2): Reduce code duplication.
291
292 2011-04-17  Bruno Haible  <bruno@clisp.org>
293
294         nonblocking: Add comment.
295         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
296
297 2011-04-17  Bruno Haible  <bruno@clisp.org>
298
299         nonblocking: Add tests for sockets.
300         * tests/test-nonblocking-socket.sh: New file.
301         * tests/test-nonblocking-socket-main.c: New file.
302         * tests/test-nonblocking-socket-child.c: New file.
303         * tests/test-nonblocking-socket.h: New file.
304         * tests/socket-server.h: New file.
305         * tests/socket-client.h: New file.
306         * modules/nonblocking-socket-tests: New file.
307         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
308
309 2011-04-17  Bruno Haible  <bruno@clisp.org>
310
311         nonblocking: Add tests for pipes.
312         * tests/test-nonblocking-pipe.sh: New file.
313         * tests/test-nonblocking-pipe-main.c: New file.
314         * tests/test-nonblocking-pipe-child.c: New file.
315         * tests/test-nonblocking-pipe.h: New file.
316         * tests/test-nonblocking-writer.h: New file.
317         * tests/test-nonblocking-reader.h: New file.
318         * tests/test-nonblocking-misc.h: New file.
319         * modules/nonblocking-pipe-tests: New file.
320         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
321
322 2011-04-16  Bruno Haible  <bruno@clisp.org>
323
324         gettext: Clarify the needed programmer actions.
325         * modules/gettext (Notice): New field.
326         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
327
328 2011-04-16  Bruno Haible  <bruno@clisp.org>
329
330         strchrnul: Tweak last commit.
331         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
332         bug.
333         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
334         as in _GL_FUNCDECL_SYS.
335         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
336         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
337
338 2011-04-15  Eric Blake  <eblake@redhat.com>
339
340         strchrnul: work around cygwin bug
341         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
342         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
344         * modules/string (Makefile.am): Substitute it.
345         * lib/string.in.h (strchrnul): Use it.
346
347 2011-04-15  Bruno Haible  <bruno@clisp.org>
348
349         Don't require lib/stdio-write.c when only module 'stdio' is used.
350         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
351         invocation.
352         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
353
354 2011-04-14  Bruno Haible  <bruno@clisp.org>
355
356         Support non-blocking pipe I/O in read() on native Windows.
357         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
358         (read): New declaration.
359         * lib/read.c: New file.
360         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
361         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
362         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
363         vscanf): New declarations.
364         * lib/stdio-read.c: New file.
365         * m4/read.m4: New file.
366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
367         REPLACE_READ.
368         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
369         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
370         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
371         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
372         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
373         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
374         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
375         * modules/read: New file.
376         * modules/nonblocking (Files): Add lib/stdio-read.c.
377         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
378         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
379         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
380         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
381         * modules/pread (Depends-on): Add read.
382         * modules/safe-read (Depends-on): Likewise.
383         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
384         gets, scanf, vfscanf, vscanf): Verify signatures.
385         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
386         problem with non-blocking pipes.
387         * doc/posix-functions/fgetc.texi: Likewise.
388         * doc/posix-functions/fgets.texi: Likewise.
389         * doc/posix-functions/fread.texi: Likewise.
390         * doc/posix-functions/fscanf.texi: Likewise.
391         * doc/posix-functions/getc.texi: Likewise.
392         * doc/posix-functions/getchar.texi: Likewise.
393         * doc/posix-functions/gets.texi: Likewise.
394         * doc/posix-functions/scanf.texi: Likewise.
395         * doc/posix-functions/vfscanf.texi: Likewise.
396         * doc/posix-functions/vscanf.texi: Likewise.
397
398 2011-04-14  Bruno Haible  <bruno@clisp.org>
399
400         Support non-blocking pipe I/O in write() on native Windows.
401         * lib/write.c (rpl_write): Split a write request that failed merely
402         because the byte count was larger than the pipe buffer's size.
403         * doc/posix-functions/write.texi: Mention the problem with large byte
404         counts.
405
406 2011-04-14  Bruno Haible  <bruno@clisp.org>
407
408         wchar: Ensure that wchar_t gets defined on uClibc.
409         * lib/wchar.in.h: On uClibc, include <stddef.h>.
410         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
411
412 2011-04-13  Bruno Haible  <bruno@clisp.org>
413
414         safe-write, full-read: Avoid unnecessary compilation units.
415         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
416         (Depends-on): Remove safe-read. Add ssize_t.
417         * modules/full-read (Files): Add lib/full-write.c.
418         (Depends-on): Add full-write.
419
420 2011-04-13  Bruno Haible  <bruno@clisp.org>
421
422         Support non-blocking pipe I/O and SIGPIPE in pwrite().
423         * modules/pwrite (Depends-on): Add 'write'.
424
425 2011-04-13  Bruno Haible  <bruno@clisp.org>
426
427         Support non-blocking pipe I/O in write() on native Windows.
428         * lib/unistd.in.h (write): Enable replacement also if
429         GNULIB_UNISTD_H_NONBLOCKING is 1.
430         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
431         (rpl_write): When failing to write on a non-blocking pipe, change
432         errno from ENOSPC to EAGAIN.
433         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
434         putchar, puts, vfprintf, vprintf): Enable replacement also if
435         GNULIB_STDIO_H_NONBLOCKING is 1.
436         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
437         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
438         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
439         CALL_WITH_SIGPIPE_EMULATION.
440         (CALL_WITH_SIGPIPE_EMULATION): Use them.
441         * m4/nonblocking.m4: New file.
442         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
443         for non-blocking I/O support.
444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
445         GNULIB_UNISTD_H_NONBLOCKING.
446         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
447         required for non-blocking I/O support.
448         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
449         * modules/nonblocking (Files): Add m4/nonblocking.m4,
450         lib/stdio-write.c, m4/asm-underscore.m4.
451         (Depends-on): Add stdio, unistd.
452         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
453         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
454         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
455         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
456         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
457         problem with non-blocking pipes.
458         * doc/posix-functions/fputc.texi: Likewise.
459         * doc/posix-functions/fputs.texi: Likewise.
460         * doc/posix-functions/fwrite.texi: Likewise.
461         * doc/posix-functions/printf.texi: Likewise.
462         * doc/posix-functions/putc.texi: Likewise.
463         * doc/posix-functions/putchar.texi: Likewise.
464         * doc/posix-functions/puts.texi: Likewise.
465         * doc/posix-functions/vfprintf.texi: Likewise.
466         * doc/posix-functions/vprintf.texi: Likewise.
467         * doc/posix-functions/write.texi: Likewise.
468
469 2011-04-10  Jim Meyering  <meyering@redhat.com>
470
471         maint.mk: prohibit doubled words
472         Detect them also when they're separated by a newline.
473         There are 3 ways to customize it:
474           - disable the test on a per file basis, as usual with rules using
475             $(VC_LIST_EXCEPT)
476           - replace the default doubled-word-selecting regexp (affects all files)
477           - ignore a particular file-vs-doubled-word match
478         I nearly used that last one to ignore the "is is" match in
479         coreutils' NEWS file, since the text was "ls -is is ..."
480         To do that, I would have added this line to cfg.mk:
481           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
482         but it would have ignored any "is is" match in NEWS.
483         Low probability, but still...
484         Instead, I changed the text, slightly:
485           -  ls -is is now consistent with ls -lis in ignoring values returned
486           +  "ls -is" is now consistent with ls -lis in ignoring values returned
487         * top/maint.mk (prohibit_double_word_RE_): Provide default.
488         (prohibit_doubled_word_): Define.
489         (sc_prohibit_doubled_word): New rule.
490         (sc_prohibit_the_the): Remove.  Subsumed by the above.
491
492 2011-04-10  Jim Meyering  <meyering@redhat.com>
493
494         maint: fix doubled-word typo in comment
495         * m4/gethostname.m4: s/is is/it is/
496         * m4/getdomainname.m4: Likewise.
497
498 2011-04-10  Jim Meyering  <meyering@redhat.com>
499
500         maint: remove doubled word: s/it it/it/
501         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
502
503 2011-04-10  Jim Meyering  <meyering@redhat.com>
504
505         maint.mk: remove useless semicolon and backslash
506         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
507         semicolon and backslash.
508
509 2011-04-10  Bruno Haible  <bruno@clisp.org>
510
511         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
512         * modules/stdint-tests (Depends-on): Add wchar.
513
514 2011-04-10  Jim Meyering  <meyering@redhat.com>
515
516         maint: remove doubled words in comments, e.g., s/a a/a/
517         * lib/strptime.c (day_of_the_week): s/the the/the/
518         * tests/test-chown.h (test_chown): s/a a/a/
519
520         test-chown.h: correct a cast
521         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
522         when the destination is a stat.st_gid.
523
524 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
525
526         getaddrinfo: Fix test for sa_len member.
527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
528         include <sys/types.h> before <sys/socket.h>.
529
530 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
531
532         maint: change "can not" to "cannot"
533         * doc/posix-functions/iconv.texi (iconv): This one crossed line
534         boundaries.
535
536 2011-04-09  Jim Meyering  <meyering@redhat.com>
537
538         maint: change "a a" to "a"
539         * tests/test-lchown.h (test_lchown): s/a a/a/
540
541         maint.mk: prohibit \<the the\>
542         * top/maint.mk (sc_prohibit_the_the): New rule.
543
544         maint: fix "the the" in comment
545         * lib/count-one-bits.h: s/the the/the/
546
547         maint: change "can not" to "cannot"
548         But do not change the occurrences in maintain.texi or in
549         build-aux/po/Makefile.in.in, which I presume comes from gettext.
550         * doc/gnulib-tool.texi: s/can not/cannot/
551         * doc/posix-functions/accept.texi (accept): Likewise.
552         * doc/posix-functions/socket.texi (socket): Likewise.
553         * lib/mbrtowc.c: Likewise.
554
555         maint.mk: prohibit use of "can not"
556         * top/maint.mk (sc_prohibit_can_not): New rule.
557         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
558
559 2011-04-09  Bruno Haible  <bruno@clisp.org>
560
561         careadlinkat: Guard against misuse of careadlinkatcwd.
562         * lib/careadlinkat.c: Include <stdlib.h>.
563         (careadlinkatcwd): Check that the fd argument is as expected.
564
565 2011-04-09  Bruno Haible  <bruno@clisp.org>
566
567         careadlinkat: Use common coding style.
568         * lib/careadlinkat.c: Move gnulib includes after system includes.
569
570 2011-04-09  Bruno Haible  <bruno@clisp.org>
571
572         careadlinkat: Clarify specification.
573         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
574         (careadlinkatcwd): Add comment.
575         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
576
577 2011-04-09  Bruno Haible  <bruno@clisp.org>
578
579         areadlinkat: Avoid link error on many platforms.
580         * modules/areadlinkat (Depends-on): Add areadlink.
581
582 2011-04-09  Bruno Haible  <bruno@clisp.org>
583
584         allocator, careadlinkat: Fix double-inclusion guard.
585         * lib/allocator.h: Fix double-inclusion guard.
586         * lib/careadlinkat.h: Likewise.
587
588 2011-04-09  Bruno Haible  <bruno@clisp.org>
589
590         relocatable-prog-wrapper: Update after module 'areadlink' changed.
591         * lib/relocwrapper.c: Update dependencies hierarchy.
592         * build-aux/install-reloc: Update list of files to be compiled.
593         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
594         lib/allocator.[hc].
595
596 2011-04-08  Eric Blake  <eblake@redhat.com>
597
598         strftime: silence gnulib-tool warning
599         * modules/strftime-tests (Depends-on): Drop automatic dependency.
600
601 2011-04-08  Bruno Haible  <bruno@clisp.org>
602
603         verify: Fix syntax error with GCC 4.6 in C++ mode.
604         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
605         (HAVE_STATIC_ASSERT): New macro.
606         (verify_true, verify): Use 'static_assert' if it is supported and
607         '_Static_assert' is not supported.
608
609 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
610
611         allocator: New module.
612         * modules/allocator, lib/allocator.c: New files.
613         * lib/allocator.h (stdlib_allocator): New decl.
614         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
615         Remove.  Do not include <stdlib.h>.
616         (careadlinkat): Use stdlib_allocator instead of rolling our own.
617         * modules/careadlinkat (Files): Remove lib/allocator.h.
618         (Depends-on): Add allocator.
619
620         stdlib: let modules use system malloc, realloc
621         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
622         if !_GL_USE_STDLIB_ALLOC.
623         (malloc, realloc): Limit this change to a smaller scope.
624
625         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
626         (malloc, realloc): Don't #undef; no longer needed.
627         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
628         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
629         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
630         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
631         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
632         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
633         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
634         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
635
636         careadlinkat: rename members to avoid problem
637         * lib/allocator.h (struct allocator): Rename members from
638         malloc/realloc to allocate/reallocate, to avoid problems if malloc
639         and realloc are #define'd.  Reported by Eric Blake in
640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
641         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
642
643 2011-04-08  Eric Blake  <eblake@redhat.com>
644
645         nonblocking: reduce dependency
646         * tests/test-nonblocking.c: Only test sockets when in use.
647         * modules/nonblocking-tests (Depends-on): Drop socket.
648         (Makefile.am): Link even if sockets are not present.
649         * modules/pipe2-tests (Makefile.am): Likewise.
650         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
651
652         pipe2: fix O_NONBLOCK support on mingw
653         * modules/pipe2 (Depends-on): Add nonblocking.
654         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
655         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
656         * tests/test-nonblocking.c (main): Likewise.
657         * modules/pipe2-tests (Makefile.am): Avoid link failure.
658
659         fcntl-h: fix O_ACCMODE on cygwin
660         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
661         * lib/fcntl.in.h (O_ACCMODE): Fix it.
662
663         pipe-filter: drop O_NONBLOCK workarounds
664         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
665         * modules/pipe-filter-ii (Depends-on): Likewise.
666         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
667
668         nonblocking: provide O_NONBLOCK for mingw
669         * modules/nonblocking (Depends-on): Add open.
670         (configure.ac): Set new witness macro.
671         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
672         * modules/fcntl-h (Makefile.am): Substitute it.
673         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
674         nonblocking module is in use.
675         * lib/nonblocking.c: Adjust portability test.
676         * lib/open.c (open): Don't let native open see gnulib flag.
677         * tests/test-fcntl-h.c (main): Enhance test.
678         * tests/test-open.h (test_open): Likewise.
679         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
680
681         careadlinkat: fix compilation error on mingw
682         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
683         within struct allocator.
684
685 2011-04-06  Eric Blake  <eblake@redhat.com>
686
687         binary-io: relicense under LGPLv2+
688         * modules/binary-io (License): Relax to LGPLv2+.
689         Requested for libvirt, and required by pipe2.
690
691 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
692
693         verify: use _Static_assert if available
694         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
695         (verify_true, verify): Use it if available.  This generates better
696         diagnostics with GCC 4.6.0 and later.
697
698 2011-04-05  Bruno Haible  <bruno@clisp.org>
699
700         Remove leftover generated .h files after config.status changed.
701
702         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
703         GL_GENERATE_ALLOCA_H.
704         * modules/alloca-opt (Makefile.am): Remove alloca.h if
705         GL_GENERATE_ALLOCA_H evaluates to false.
706
707         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
708         GL_GENERATE_ARGZ_H.
709         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
710         evaluates to false.
711
712         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
713         GL_GENERATE_BYTESWAP_H.
714         * modules/byteswap (Makefile.am): Remove byteswap.h if
715         GL_GENERATE_BYTESWAP_H evaluates to false.
716
717         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
718         GL_GENERATE_ERRNO_H.
719         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
720         evaluates to false.
721
722         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
723         GL_GENERATE_FLOAT_H.
724         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
725         evaluates to false.
726
727         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
728         GL_GENERATE_FNMATCH_H.
729         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
730         GL_GENERATE_FNMATCH_H evaluates to false.
731
732         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
733         GL_GENERATE_GLOB_H.
734         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
735         evaluates to false.
736
737         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
738         automake conditional GL_GENERATE_ICONV_H.
739         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
740         evaluates to false.
741
742         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
743         GL_GENERATE_NETINET_IN_H.
744         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
745         GL_GENERATE_NETINET_IN_H evaluates to false.
746
747         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
748         conditional GL_GENERATE_PTHREAD_H.
749         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
750         * modules/pthread (Makefile.am): Remove pthread.h if
751         GL_GENERATE_PTHREAD_H evaluates to false.
752
753         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
754         GL_GENERATE_SCHED_H.
755         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
756         evaluates to false.
757
758         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
759         conditional GL_GENERATE_SELINUX_CONTEXT_H.
760         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
761         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
762
763         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
764         GL_GENERATE_STDARG_H.
765         * modules/stdarg (Makefile.am): Remove stdarg.h if
766         GL_GENERATE_STDARG_H evaluates to false.
767
768         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
769         GL_GENERATE_STDBOOL_H.
770         * modules/stdbool (Makefile.am): Remove stdbool.h if
771         GL_GENERATE_STDBOOL_H evaluates to false.
772
773         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
774         conditional GL_GENERATE_STDDEF_H.
775         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
776         * modules/stddef (Makefile.am): Remove stddef.h if
777         GL_GENERATE_STDDEF_H evaluates to false.
778
779         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
780         GL_GENERATE_STDINT_H.
781         * modules/stdint (Makefile.am): Remove stdint.h if
782         GL_GENERATE_STDINT_H evaluates to false.
783
784         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
785         GL_GENERATE_SYSEXITS_H.
786         * modules/sysexits (Makefile.am): Remove sysexits.h if
787         GL_GENERATE_SYSEXITS_H evaluates to false.
788
789         Reported by Karl Berry and Ralf Wildenhues.
790
791 2011-04-05  Bruno Haible  <bruno@clisp.org>
792
793         Ensure to rebuild generated .h files when config.status has changed.
794         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
795         config.status.
796         * modules/ctype (Makefile.am): Likewise.
797         * modules/dirent (Makefile.am): Likewise.
798         * modules/errno (Makefile.am): Likewise.
799         * modules/fcntl-h (Makefile.am): Likewise.
800         * modules/float (Makefile.am): Likewise.
801         * modules/getopt-posix (Makefile.am): Likewise.
802         * modules/glob (Makefile.am): Likewise.
803         * modules/iconv-h (Makefile.am): Likewise.
804         * modules/inttypes (Makefile.am): Likewise.
805         * modules/langinfo (Makefile.am): Likewise.
806         * modules/locale (Makefile.am): Likewise.
807         * modules/math (Makefile.am): Likewise.
808         * modules/netdb (Makefile.am): Likewise.
809         * modules/netinet_in (Makefile.am): Likewise.
810         * modules/poll-h (Makefile.am): Likewise.
811         * modules/pthread (Makefile.am): Likewise.
812         * modules/pty (Makefile.am): Likewise.
813         * modules/sched (Makefile.am): Likewise.
814         * modules/search (Makefile.am): Likewise.
815         * modules/selinux-h (Makefile.am): Likewise.
816         * modules/signal (Makefile.am): Likewise.
817         * modules/spawn (Makefile.am): Likewise.
818         * modules/stdarg (Makefile.am): Likewise.
819         * modules/stdbool (Makefile.am): Likewise.
820         * modules/stddef (Makefile.am): Likewise.
821         * modules/stdint (Makefile.am): Likewise.
822         * modules/stdio (Makefile.am): Likewise.
823         * modules/stdlib (Makefile.am): Likewise.
824         * modules/string (Makefile.am): Likewise.
825         * modules/strings (Makefile.am): Likewise.
826         * modules/sys_file (Makefile.am): Likewise.
827         * modules/sys_ioctl (Makefile.am): Likewise.
828         * modules/sys_select (Makefile.am): Likewise.
829         * modules/sys_socket (Makefile.am): Likewise.
830         * modules/sys_stat (Makefile.am): Likewise.
831         * modules/sys_time (Makefile.am): Likewise.
832         * modules/sys_times (Makefile.am): Likewise.
833         * modules/sys_utsname (Makefile.am): Likewise.
834         * modules/sys_wait (Makefile.am): Likewise.
835         * modules/sysexits (Makefile.am): Likewise.
836         * modules/termios (Makefile.am): Likewise.
837         * modules/time (Makefile.am): Likewise.
838         * modules/unistd (Makefile.am): Likewise.
839         * modules/wchar (Makefile.am): Likewise.
840         * modules/wctype-h (Makefile.am): Likewise.
841         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
842
843 2011-04-05  Bruno Haible  <bruno@clisp.org>
844
845         pipe2: Relicense under LGPLv2+.
846         * modules/pipe2 (License): Change to LGPLv2+.
847         Requested by Eric Blake, for libvirt.
848
849 2011-04-05  Bruce Korb  <bkorb@gnu.org>
850
851         bootstrap: compute gnulib_extra_files after updating build_aux
852         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
853         change build_aux or also supply gnulib_extra_files.  Handle correctly.
854
855 2011-04-05  Eric Blake  <eblake@redhat.com>
856
857         bootstrap: preserve git whitelist item sorting
858         * build-aux/bootstrap (sort_patterns): New function.
859         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
860
861 2011-04-05  Simon Josefsson  <simon@josefsson.org>
862
863         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
864         sc_space_tab check.
865
866 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
867
868         areadlink, areadlinkat: rewrite in terms of careadlinkat
869         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
870         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
871         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
872         (malloc, realloc): Remove #undefs.
873         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
874         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
875         readlink, ssize_t, stdint, unistd.
876         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
877         areadlink, stdint.
878
879         careadlinkat: new module
880         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
881         * modules/careadlinkat: New files, written by me with
882         a review and feedback from Ben Pfaff in
883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
884
885 2011-04-01  Bruno Haible  <bruno@clisp.org>
886
887         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
888         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
889         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
890         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
891         Reported by Bruce Korb <bruce.korb@gmail.com>.
892
893 2011-04-01  Bruno Haible  <bruno@clisp.org>
894
895         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
896         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
897         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
898         * modules/wcpcpy (Depends-on): Add extensions.
899         * modules/wcpncpy (Depends-on): Likewise.
900         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
901         systems.
902         * doc/posix-functions/wcpncpy.texi: Likewise.
903         * doc/posix-functions/wcwidth.texi: Likewise.
904
905 2011-03-31  Eric Blake  <eblake@redhat.com>
906
907         nonblocking: fix mingw test failures
908         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
909         non-blocking flag on regular file.
910         (get_nonblocking_flag): Set errno on invalid fd.
911         * tests/test-nonblocking.c (main): Avoid test failure on
912         directories if fchdir is not active.
913         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
914
915 2011-03-31  Bruno Haible  <bruno@clisp.org>
916
917         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
918         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
919         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
920         Reported by Simon Josefsson <simon@josefsson.org>.
921
922 2011-03-31  Bruno Haible  <bruno@clisp.org>
923         and Eric Blake  <eblake@redhat.com>
924
925         nonblocking: new module
926         * modules/nonblocking: New module.
927         * modules/nonblocking-tests: Likewise.
928         * lib/nonblocking.h: New file.
929         * lib/nonblocking.c: Likewise.
930         * tests/test-nonblocking.c: New test.
931         * lib/ioctl.c (ioctl) [mingw]: Update comment.
932
933 2011-03-30  Bruno Haible  <bruno@clisp.org>
934
935         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
936         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
937         instead of 'printf' format for GCC >= 4.4.
938         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
939         (fprintf, printf, vfprintf, vprintf): Declare with
940         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
941         the system's vfprintf() function.
942         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
943
944 2011-03-30  Eric Blake  <eblake@redhat.com>
945
946         passfd: fix scoping bug
947         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
948         before sendmsg/recvmsg.
949
950         passfd: standardize coding conventions
951         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
952         can be learned at compile time.
953         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
954         ifdefs.
955         (sendfd, recvfd): Follow gnulib code conventions.
956
957         passfd: fix incorrect sendmsg arguments
958         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
959         incorrect msg_controllen value.
960         * modules/passfd-tests (Depends-on): Check for alarm.
961         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
962         Reported by Bastien ROUCARIES.
963
964 2011-03-30  Bruno Haible  <bruno@clisp.org>
965
966         c-strcasestr: Relicense under LGPLv2+.
967         * modules/c-strcasestr (License): Change to LGPLv2+.
968         Requested by Eric Blake, for libvirt.
969
970 2011-03-30  Simon Josefsson  <simon@josefsson.org>
971
972         * users.txt: Add libidn2.  Fix libtasn1 link.
973
974 2011-03-30  Jim Meyering  <meyering@redhat.com>
975
976         tests: readlink* ("",... fails with EINVAL on newer kernels
977         readlink and readlinkat have typically failed with ENOENT for
978         the invalid, empty file name,  "".  However, with the advent
979         of linux-2.6.39, they fail with EINVAL.
980         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
981         when operating on the empty file name.
982         * tests/test-readlink.h (test_readlink): Likewise.
983
984 2011-03-29  Bruno Haible  <bruno@clisp.org>
985
986         Relicense some modules under LGPLv2+, for libidn2.
987         * modules/array-mergesort (License): Change to LGPLv2+.
988         * modules/c-strcaseeq (License): Likewise.
989         * modules/striconveh (License): Likewise.
990         * modules/striconveha (License): Likewise.
991         * modules/uniconv/base (License): Likewise.
992         * modules/uniconv/u8-conv-from-enc (License): Likewise.
993         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
994         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
995         * modules/unictype/base (License): Likewise.
996         * modules/unictype/bidiclass-of (License): Likewise.
997         * modules/unictype/category-M (License): Likewise.
998         * modules/unictype/category-none (License): Likewise.
999         * modules/unictype/category-of (License): Likewise.
1000         * modules/unictype/category-test (License): Likewise.
1001         * modules/unictype/category-test-withtable (License): Likewise.
1002         * modules/unictype/combining-class (License): Likewise.
1003         * modules/unictype/joiningtype-of (License): Likewise.
1004         * modules/unictype/scripts (License): Likewise.
1005         * modules/uninorm/base (License): Likewise.
1006         * modules/uninorm/canonical-decomposition (License): Likewise.
1007         * modules/uninorm/composition (License): Likewise.
1008         * modules/uninorm/decompose-internal (License): Likewise.
1009         * modules/uninorm/decomposition-table (License): Likewise.
1010         * modules/uninorm/nfc (License): Likewise.
1011         * modules/uninorm/nfd (License): Likewise.
1012         * modules/uninorm/u32-normalize (License): Likewise.
1013         * modules/unistr/base (License): Likewise.
1014         * modules/unistr/u32-cpy (License): Likewise.
1015         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1016         * modules/unistr/u32-to-u8 (License): Likewise.
1017         * modules/unistr/u32-uctomb (License): Likewise.
1018         * modules/unistr/u8-check (License): Likewise.
1019         * modules/unistr/u8-mblen (License): Likewise.
1020         * modules/unistr/u8-mbtouc (License): Likewise.
1021         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1022         * modules/unistr/u8-mbtoucr (License): Likewise.
1023         * modules/unistr/u8-prev (License): Likewise.
1024         * modules/unistr/u8-strlen (License): Likewise.
1025         * modules/unistr/u8-to-u32 (License): Likewise.
1026         * modules/unistr/u8-uctomb (License): Likewise.
1027         * modules/unitypes (License): Likewise.
1028         Requested by Simon Josefsson.
1029
1030 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1031
1032         lib-symbol-visibility: Add a notice.
1033         * modules/lib-symbol-visibility (Notice): New field.
1034
1035 2011-03-29  Bruno Haible  <bruno@clisp.org>
1036
1037         getaddrinfo: Doc fix.
1038         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1039         section "fixed in Gnulib".
1040
1041 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1042
1043         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1044         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1045
1046 2011-03-26  Bruno Haible  <bruno@clisp.org>
1047
1048         unictype/property-byname: Reduce the number of load-time relocations.
1049         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1050         (UC_PROPERTY_INDEX_*): New enumeration values.
1051         (uc_property_byname): Convert an index from the lookup table to an
1052         uc_property_t.
1053         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1054         values.
1055
1056 2011-03-26  Bruno Haible  <bruno@clisp.org>
1057
1058         unictype/property-byname: Allow omitted word separators and aliases.
1059         * lib/unictype/pr_byname.gperf: Add property names without word
1060         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1061         for 'space'.
1062
1063 2011-03-26  Bruno Haible  <bruno@clisp.org>
1064
1065         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1066         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1067         also hyphens to space.
1068         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1069         without spaces.
1070         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1071
1072 2011-03-26  Bruno Haible  <bruno@clisp.org>
1073
1074         unictype/joiningtype-byname: Recognize long names as well.
1075         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1076         a long name.
1077         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1078         unictype/joiningtype_byname.h.
1079         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1080         * lib/unictype/joiningtype_byname.gperf: New file.
1081         * modules/unictype/joiningtype-byname (Files): Add
1082         lib/unictype/joiningtype_byname.gperf.
1083         (Depends-on): Add gperf.
1084         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1085         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1086         long names.
1087
1088         Tests for module 'unictype/joiningtype-longname'.
1089         * modules/unictype/joiningtype-longname-tests: New file.
1090         * tests/unictype/test-joiningtype_longname.c: New file.
1091
1092         New module 'unictype/joiningtype-longname'.
1093         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1094         * lib/unictype/joiningtype_longname.c: New file.
1095         * modules/unictype/joiningtype-longname: New file.
1096         * modules/unictype/joiningtype-all (Depends-on): Add
1097         unictype/joiningtype-longname.
1098
1099 2011-03-26  Bruno Haible  <bruno@clisp.org>
1100
1101         unictype/bidiclass-byname: Recognize long names as well.
1102         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1103         name.
1104         * lib/unictype/bidi_byname.c: Include <string.h>,
1105         unictype/bidi_byname.h.
1106         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1107         * lib/unictype/bidi_byname.gperf: New file.
1108         * modules/unictype/bidiclass-byname (Files): Add
1109         lib/unictype/bidi_byname.gperf.
1110         (Depends-on): Add gperf.
1111         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1112         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1113         long names.
1114
1115         Tests for module 'unictype/bidiclass-longname'.
1116         * modules/unictype/bidiclass-longname-tests: New file.
1117         * tests/unictype/test-bidi_longname.c: New file.
1118
1119         New module 'unictype/bidiclass-longname'.
1120         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1121         * lib/unictype/bidi_longname.c: New file.
1122         * modules/unictype/bidiclass-longname: New file.
1123         * modules/unictype/bidiclass-all (Depends-on): Add
1124         unictype/bidiclass-longname.
1125
1126 2011-03-26  Bruno Haible  <bruno@clisp.org>
1127
1128         unictype/bidi*: Rename modules.
1129         * modules/unictype/bidiclass-all: Renamed from
1130         modules/unictype/bidicategory-all.
1131         * modules/unictype/bidiclass-name: Renamed from
1132         modules/unictype/bidiclass-name.
1133         (Description): Update.
1134         * modules/unictype/bidiclass-name-tests: Renamed from
1135         modules/unictype/bidicategory-name-tests.
1136         * modules/unictype/bidiclass-byname: Renamed from
1137         modules/unictype/bidicategory-byname.
1138         (Description): Update.
1139         * modules/unictype/bidiclass-byname-tests: Renamed from
1140         modules/unictype/bidicategory-byname-tests.
1141         * modules/unictype/bidiclass-of: Renamed from
1142         modules/unictype/bidicategory-of.
1143         (Description): Update.
1144         * modules/unictype/bidiclass-of-tests: Renamed from
1145         modules/unictype/bidicategory-of-tests.
1146         * modules/unictype/bidiclass-test: Renamed from
1147         modules/unictype/bidicategory-test.
1148         (Description): Update.
1149         * modules/unictype/bidiclass-test-tests: Renamed from
1150         modules/unictype/bidicategory-test-tests.
1151         * modules/unictype/bidicategory-all: New file, a simple redirection.
1152         * modules/unictype/bidicategory-name: Likewise.
1153         * modules/unictype/bidicategory-byname: Likewise.
1154         * modules/unictype/bidicategory-of: Likewise.
1155         * modules/unictype/bidicategory-test: Likewise.
1156         * modules/unictype/property-bidi-* (Dependencies): Update.
1157         * lib/unictype/bidi_*.c: Update comment.
1158
1159 2011-03-26  Bruno Haible  <bruno@clisp.org>
1160
1161         unictype/bidi*: Rename functions, part 2.
1162         * modules/unictype/bidicategory-name (configure.ac): Update required
1163         libunistring version.
1164         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1165
1166 2011-03-25  Bruno Haible  <bruno@clisp.org>
1167
1168         New module 'unictype/combining-class-all'.
1169         * modules/unictype/combining-class-all: New file.
1170
1171         Tests for module 'unictype/combining-class-byname'.
1172         * modules/unictype/combining-class-byname-tests: New file.
1173         * tests/unictype/test-combiningclass_byname.c: New file.
1174
1175         New module 'unictype/combining-class-byname'.
1176         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1177         * lib/unictype/combiningclass_byname.c: New file.
1178         * lib/unictype/combiningclass_byname.gperf: New file.
1179         * modules/unictype/combining-class-byname: New file.
1180
1181         Tests for module 'unictype/combining-class-longname'.
1182         * modules/unictype/combining-class-longname-tests: New file.
1183         * tests/unictype/test-combiningclass_longname.c: New file.
1184
1185         New module 'unictype/combining-class-longname'.
1186         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1187         * lib/unictype/combiningclass_longname.c: New file.
1188         * modules/unictype/combining-class-longname: New file.
1189
1190         Tests for module 'unictype/combining-class-name'.
1191         * modules/unictype/combining-class-name-tests: New file.
1192         * tests/unictype/test-combiningclass_name.c: New file.
1193
1194         New module 'unictype/combining-class-name'.
1195         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1196         * lib/unictype/combiningclass_name.c: New file.
1197         * modules/unictype/combining-class-name: New file.
1198
1199 2011-03-25  Bruno Haible  <bruno@clisp.org>
1200
1201         unictype/combining-class: Rename source files.
1202         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1203         of unictype/combining.h.
1204         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1205         Update.
1206         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1207         * modules/unictype/combining-class (Description): Fix.
1208         (Files, Makefile.am): Update.
1209         * tests/unictype/test-combiningclass.c: Renamed from
1210         tests/unictype/test-combining.c.
1211         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1212
1213 2011-03-25  Bruno Haible  <bruno@clisp.org>
1214
1215         unictype: Update list of canonical combining classes.
1216         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1217
1218 2011-03-25  Bruno Haible  <bruno@clisp.org>
1219
1220         unictype/category-byname: Recognize long names as well.
1221         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1222         a long name.
1223         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1224         unictype/categ_byname.h.
1225         (UC_CATEGORY_INDEX_*): New enumeration values.
1226         (uc_general_category_byname): Use uc_general_category_lookup and
1227         convert from index to value.
1228         * lib/unictype/categ_byname.gperf: New file.
1229         * modules/unictype/category-byname (Files): Add
1230         lib/unictype/categ_byname.gperf.
1231         (Depends-on): Add gperf.
1232         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1233         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1234         long names.
1235
1236         Tests for module 'unictype/category-longname'.
1237         * modules/unictype/category-longname-tests: New file.
1238         * tests/unictype/test-categ_longname.c: New file.
1239
1240         New module 'unictype/category-longname'.
1241         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1242         * lib/unictype/categ_longname.c: New file.
1243         * modules/unictype/category-longname: New file.
1244         * modules/unictype/category-all (Depends-on): Add it.
1245
1246 2011-03-25  Bruno Haible  <bruno@clisp.org>
1247
1248         Tests for module 'unictype/category-LC'.
1249         * modules/unictype/category-LC-tests: New file.
1250         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1251
1252         New module 'unictype/category-LC'.
1253         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1254         (UC_CATEGORY_LC): New declaration.
1255         (UC_CASED_LETTER): New macro.
1256         * lib/gen-uni-tables.c (is_category_LC): New function.
1257         (output_categories): Also handle category LC.
1258         (UC_CATEGORY_MASK_LC): New enumeration value.
1259         (general_category_byname): Also handle category LC.
1260         * lib/unictype/categ_LC.c: New file.
1261         * lib/unictype/categ_LC.h: New file, automatically generated.
1262         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1263         category LC.
1264         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1265         * modules/unictype/category-LC: New file.
1266         * modules/unictype/category-byname (Depends-on): Add
1267         unictype/category-LC.
1268         * modules/unictype/category-all (Depends-on): Likewise.
1269
1270 2011-03-25  Eric Blake  <eblake@redhat.com>
1271
1272         xmalloc: revert yesterday's regression
1273         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1274         realloc's underlying behavior (allowing allocation of zero-size
1275         objects, especially if malloc-gnu is also in use).
1276
1277 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1278
1279         maint.mk: add missing version to VC-tag
1280         * top/maint.mk: git tag was missing actual tag name; add it.
1281
1282         valgrind: do leak checking, and exit with code 1 on error (not 0)
1283         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1284         to VALGRIND.
1285
1286 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1287
1288         posix-modules: say what it does.
1289         * posix-modules: Add a line to the --help output saying what it does.
1290
1291 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         xmalloc: Do not leak if underlying realloc is C99 compatible.
1294         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1295         This avoids a leak on C99-based systems.  See
1296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1297
1298 2011-03-24  Eric Blake  <eblake@redhat.com>
1299
1300         realloc: document portability problem
1301         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1302         passing 0 size to realloc.
1303
1304 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1305
1306         doc: update users.txt
1307         * users.txt: Add cvsps, tmpwatch
1308
1309 2011-03-23  Matt Rice  <ratmice@gmail.com>
1310
1311         doc: update users.txt
1312         * users.txt: Add gdb.
1313
1314 2011-03-23  Jim Meyering  <meyering@redhat.com>
1315
1316         doc: update users.txt
1317         Looking through matches up to the following URL (there are still
1318         several more pages), I found several projects that use gnulib:
1319         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1320         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1321         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1322
1323 2011-03-22  Bruno Haible  <bruno@clisp.org>
1324
1325         unictype/bidi*: Rename functions.
1326         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1327         uc_bidi_class, uc_is_bidi_class): New declarations.
1328         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1329         uc_bidi_category_byname.
1330         (uc_bidi_category_byname): New function.
1331         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1332         u_bidi_category_name.
1333         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1334         (uc_bidi_category_name): New function.
1335         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1336         uc_bidi_category.
1337         (uc_bidi_category): New function.
1338         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1339         uc_is_bidi_category. Invoke uc_bidi_class.
1340         (uc_is_bidi_category): New function.
1341         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1342         instead of uc_bidi_category_byname.
1343         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1344         instead of uc_bidi_category_name.
1345         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1346         uc_bidi_category.
1347         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1348         instead of uc_is_bidi_category.
1349
1350 2011-03-21  Bruno Haible  <bruno@clisp.org>
1351
1352         New module 'unictype/joininggroup-all'.
1353         * modules/unictype/joininggroup-all: New file.
1354
1355         Tests for module 'unictype/joininggroup-of'.
1356         * modules/unictype/joininggroup-of-tests: New file.
1357         * tests/unictype/test-joininggroup_of.c: New file.
1358         * tests/unictype/test-joininggroup_of.h: New file, automatically
1359         generated by gen-uni-tables.
1360
1361         New module 'unictype/joininggroup-of'.
1362         * modules/unictype/joininggroup-of: New file.
1363         * lib/unictype/joininggroup_of.c: New file.
1364         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1365         gen-uni-tables.
1366
1367         Tests for module 'unictype/joininggroup-byname'.
1368         * modules/unictype/joininggroup-byname-tests: New file.
1369         * tests/unictype/test-joininggroup_byname.c: New file.
1370
1371         New module 'unictype/joininggroup-byname'.
1372         * modules/unictype/joininggroup-byname: New file.
1373         * lib/unictype/joininggroup_byname.c: New file.
1374         * lib/unictype/joininggroup_byname.gperf: New file.
1375
1376         Tests for module 'unictype/joininggroup-name'.
1377         * modules/unictype/joininggroup-name-tests: New file.
1378         * tests/unictype/test-joininggroup_name.c: New file.
1379
1380         New module 'unictype/joininggroup-name'.
1381         * modules/unictype/joininggroup-name: New file.
1382         * lib/unictype/joininggroup_name.c: New file.
1383         * lib/unictype/joininggroup_name.h: New file.
1384
1385         New module 'unictype/joiningtype-all'.
1386         * modules/unictype/joiningtype-all: New file.
1387
1388         Tests for module 'unictype/joiningtype-of'.
1389         * modules/unictype/joiningtype-of-tests: New file.
1390         * tests/unictype/test-joiningtype_of.c: New file.
1391         * tests/unictype/test-joiningtype_of.h: New file, automatically
1392         generated by gen-uni-tables.
1393
1394         New module 'unictype/joiningtype-of'.
1395         * modules/unictype/joiningtype-of: New file.
1396         * lib/unictype/joiningtype_of.c: New file.
1397         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1398         gen-uni-tables.
1399
1400         Tests for module 'unictype/joiningtype-byname'.
1401         * modules/unictype/joiningtype-byname-tests: New file.
1402         * tests/unictype/test-joiningtype_byname.c: New file.
1403
1404         New module 'unictype/joiningtype-byname'.
1405         * modules/unictype/joiningtype-byname: New file.
1406         * lib/unictype/joiningtype_byname.c: New file.
1407
1408         Tests for module 'unictype/joiningtype-name'.
1409         * modules/unictype/joiningtype-name-tests: New file.
1410         * tests/unictype/test-joiningtype_name.c: New file.
1411
1412         New module 'unictype/joiningtype-name'.
1413         * modules/unictype/joiningtype-name: New file.
1414         * lib/unictype/joiningtype_name.c: New file.
1415
1416         unictype: Add support for Arabic shaping properties.
1417         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1418         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1419         declarations.
1420         (UC_JOINING_GROUP_*): New enumeration values.
1421         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1422         declarations.
1423         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1424         (unicode_joining_type): New variable.
1425         (UC_JOINING_GROUP_*): New enumeration values.
1426         (unicode_joining_group): New variable.
1427         (fill_arabicshaping, joining_type_as_c_identifier,
1428         output_joining_type_test, output_joining_type,
1429         joining_group_as_c_identifier, output_joining_group_test,
1430         output_joining_group): New functions.
1431         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1432         fill_arabicshaping and output_joining_type_test, output_joining_type,
1433         output_joining_group_test, output_joining_group.
1434         Reported by Simon Josefsson.
1435
1436 2011-03-21  Jim Meyering  <meyering@redhat.com>
1437
1438         strftime: fix a bug in yesterday's change
1439         * lib/strftime.c (add): Accommodate width's initial value of -1.
1440         Otherwise, nstrftime would copy uninitialized data into
1441         the result buffer.
1442
1443 2011-03-21  Jim Meyering  <meyering@redhat.com>
1444
1445         tests: add strftime-tests module
1446         * tests/test-strftime.c: New file.
1447         * modules/strftime-tests: New module.
1448
1449 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1450
1451         strftime: don't assume a byte count fits in 'int'
1452         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1453         found this problem by static analysis, using gcc -Wstrict-overflow
1454         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1455         on an integer overflow having undefined behavior, but it turns out
1456         that the argument is a size, which might not fit in 'int' anyway,
1457
1458 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1459
1460         stdio: don't require ignore_value around fwrite
1461
1462         This patch works around libc bug 11959
1463         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1464         Without this patch, applications must often write
1465         ignore_value (fwrite (...)) even though the ignore_value is
1466         not helpful here.  It's common to write many objects, using
1467         fwrite/printf/etc., and then use ferror to detect output error.
1468
1469         I considered making this patch optional, but decided against it,
1470         because libc is obviously being inconsistent here: there is no
1471         reason libc should insist that user code must inspect fwrite
1472         return's value without also insisting that it inspect printf's,
1473         putchar's, etc.  If user code wants to have a strict style where
1474         all these functions' values are checked (so that ferror need not
1475         be checked), we could add support for that style in a new gnulib
1476         module, but in the meantime it's better to be consistent and to
1477         support common usage.
1478
1479         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1480         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1481         that we are compiling in checking mode, and if not C++, and
1482         if not already wrapping fwrite for some other reason.
1483         (fwrite): #define to rpl_fwrite if the latter is defined.
1484
1485 2011-03-20  Bruno Haible  <bruno@clisp.org>
1486
1487         verror: Fix compilation error introduced on 2011-02-13.
1488         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1489         instead of __attribute__.
1490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1491
1492 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1493             Bruno Haible  <bruno@clisp.org>
1494
1495         socklen: do not depend on sys_socket
1496         While trying to modify Emacs to use gnulib's socklen module,
1497         I discovered a circular dependency: socklen depends on sys_socket
1498         and vice versa.  Emacs can use socklen, but it does not need
1499         sys_socket because it has its own substitute for sys/socket.h.
1500         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1501         gl_TYPE_SOCKLEN_T.
1502         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1503         gl_PREREQ_SYS_H_SOCKET.
1504         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1505         gl_PREREQ_SYS_H_SOCKET.
1506         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1507         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1508         * modules/socklen (Depends-on): Do not depend on sys_socket.
1509         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1510
1511 2011-03-20  Jim Meyering  <meyering@redhat.com>
1512
1513         maint.mk: sort file names *after* new transformation
1514         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1515         prefix would have led to an unwarranted failure in GNU parted.
1516         Sort after that transformation.
1517
1518 2011-03-19  Jim Meyering  <meyering@redhat.com>
1519
1520         maint.mk: fix po-file syntax-check rule
1521         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1522         Patch by Bruno Haible.
1523
1524 2011-03-19  Bruno Haible  <bruno@clisp.org>
1525
1526         socklen: Update comment.
1527         * m4/socklen.m4: Update comment about platforms.
1528
1529 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1530             Bruno Haible  <bruno@clisp.org>
1531
1532         inet_ntop, inet_pton: Simplify.
1533         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1534         documented to provide socklen_t and we already depend on sys_socket.
1535         * modules/inet_pton (Depends-on): Likewise.
1536         * lib/arpa_inet.in.h: Adjust comment.
1537
1538 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1539             Bruno Haible  <bruno@clisp.org>
1540
1541         netdb: Simplify.
1542         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1543         documented to provide socklen_t and we already depend on sys_socket.
1544         * lib/netdb.in.h: Adjust comment.
1545
1546 2011-03-19  Bruno Haible  <bruno@clisp.org>
1547
1548         sys_socket, netdb: Document problem with socklen_t.
1549         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1550         platforms.
1551         * doc/posix-headers/netdb.texi: Likewise.
1552
1553 2011-03-18  Eric Blake  <eblake@redhat.com>
1554
1555         maint.mk: let po check work in VPATH build
1556         * top/maint.mk (po_file): Allow cfg.mk override.
1557         (sc_po_check): Allow VPATH use.
1558         Reported by Jiri Denemark.
1559
1560 2011-03-16  Jim Meyering  <meyering@redhat.com>
1561
1562         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1563         Before, you would have had to create one .x-sc_ file per rule in order
1564         to exempt offending files.  Now, you may instead use a Make variable --
1565         usually defined in cfg.mk -- whose name identifies the affected rule.
1566         * top/maint.mk (_sc_excl): Define.
1567         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1568         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1569
1570 2011-03-13  Bruno Haible  <bruno@clisp.org>
1571
1572         ignore-value tests: Avoid warnings.
1573         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1574         empty for gcc < 3.4.
1575
1576 2011-03-13  Bruno Haible  <bruno@clisp.org>
1577
1578         passfd: Fix link error on Solaris.
1579         * modules/passfd (Description): Correct.
1580         (Depends-on): Add socketlib.
1581         (Link): New section.
1582         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1583
1584 2011-03-13  Bruno Haible  <bruno@clisp.org>
1585
1586         passfd: Fix link error on AIX 5.2.
1587         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1588
1589 2011-03-13  Bruno Haible  <bruno@clisp.org>
1590
1591         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1592         * lib/sys_socket.in.h: Include <stddef.h>.
1593         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1594         CMSG_FIRSTHDR. Remove unused variable.
1595
1596 2011-03-13  Bruno Haible  <bruno@clisp.org>
1597
1598         passfd: Fix compilation error on OpenBSD.
1599         * lib/passfd.c: Include <sys/uio.h>.
1600
1601 2011-03-13  Bruno Haible  <bruno@clisp.org>
1602
1603         passfd test: Fix warnings.
1604         * tests/test-passfd.c: Include <sys/wait.h>.
1605         (main): Fix typo.
1606
1607 2011-03-13  Bruno Haible  <bruno@clisp.org>
1608
1609         passfd module, part 4, tweaks.
1610         * tests/test-passfd.c: Reorder includes.
1611         (main): Fix perror and printf calls.
1612
1613 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1614
1615         passfd module, part 4.
1616         * modules/passfd-tests: New file.
1617         * tests/test-passfd.c: New file.
1618
1619 2011-03-13  Jim Meyering  <meyering@redhat.com>
1620
1621         Makefile: rely on GNU make; derive syntax-check rule names
1622         Rather than requiring that each sc_ rule be listed as a dependent
1623         of "check", use features of GNU make to derive the list.
1624         * Makefile (syntax-check-rules): Define.
1625         (check): Depend on the new variable, not the hard-coded list.
1626
1627 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1628             Bruno Haible  <bruno@clisp.org>
1629
1630         passfd module, part 3.
1631         * lib/passfd.h (recvfd): Add a flags argument.
1632         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1633         (recvfd): Add a flags argument.
1634         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1635         exists.
1636         * modules/passfd (Depends-on): Add cloexec.
1637         Suggested by Eric Blake.
1638
1639 2011-03-13  Bruno Haible  <bruno@clisp.org>
1640
1641         passfd module, part 2, tweaks.
1642         * modules/passfd (Files): Reorder.
1643         (Depends-on): Remove errno.
1644         (Include): Remove <sys/socket.h>, <sys/un.h>.
1645         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1646         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1647         specification header. Include <sys/socket.h> always. Don't include
1648         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1649         (sendfd): Clarify that it sets errno when it fails.
1650         (recvfd): Fix specification.
1651
1652 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1653
1654         passfd module, part 2.
1655         * modules/passfd: New file.
1656         * lib/passfd.h: New file.
1657         * lib/passfd.c: New file.
1658
1659 2011-03-12  Bruno Haible  <bruno@clisp.org>
1660
1661         wcswidth, mbswidth: Avoid integer overflow.
1662         * lib/wcswidth.c: Include <limits.h>.
1663         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1664         * lib/mbswidth.c: Include <limits.h>.
1665         (mbsnwidth): Avoid 'int' overflow.
1666         Reported by Jim Meyering.
1667
1668 2011-03-12  Bruno Haible  <bruno@clisp.org>
1669
1670         futimens, utimensat: Avoid endless recursion on Solaris 10.
1671         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1672         Solaris.
1673         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1674         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1675
1676 2011-03-11  Jim Meyering  <meyering@redhat.com>
1677
1678         maint.mk: relax a regexp to accommodate other formatting styles
1679         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1680         between "ngettext" and the following "(".
1681
1682 2011-03-11  Pádraig Brady <P@draigBrady.com>
1683
1684         maint.mk: suppress a false positive warning
1685         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1686         diagnostics are marked with ngettext.
1687
1688 2011-03-10  Eric Blake  <eblake@redhat.com>
1689
1690         wchar: add explicit dependencies, for Tru64
1691         * modules/mbmemcasecoll (Depends-on): Add wchar.
1692         * modules/mbtowc (Depends-on): Likewise.
1693         * modules/vasnprintf (Depends-on): Likewise.
1694         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1695         * modules/wctomb (Depends-on): Likewise.
1696         Reported by Peter O'Gorman.
1697
1698 2011-03-08  Bruno Haible  <bruno@clisp.org>
1699
1700         passfd module, part 1, tweaks.
1701         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1702         Improve indentation. Improve AC_MSG_CHECKING messages.
1703         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1704         gl_SOCKET_FAMILIES.
1705
1706 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1707
1708         passfd module, part 1.
1709         * m4/afunix.m4: New file.
1710         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1711         sockets.
1712
1713 2011-03-08  Bruno Haible  <bruno@clisp.org>
1714
1715         regex-quote: New API.
1716         * lib/regex-quote.h: Include <stdbool.h>.
1717         (struct regex_quote_spec): New type.
1718         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1719         New declarations.
1720         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1721         'const struct regex_quote_spec *' argument.
1722         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1723         (pcre_special): New constant.
1724         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1725         New functions.
1726         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1727         'const struct regex_quote_spec *' argument.
1728         * modules/regex-quote (Depends-on): Add stdbool.
1729         * tests/test-regex-quote.c (check): Update for new API. Add test for
1730         anchored results.
1731         * NEWS: Mention the API change.
1732         Reported by Reuben Thomas and Eric Blake.
1733
1734 2011-03-06  Bruno Haible  <bruno@clisp.org>
1735
1736         regex-quote: Fix creation of POSIX extended regular expressions.
1737         * lib/regex-quote.c (ere_special): Add grouping and alternation
1738         operators.
1739
1740 2011-03-05  Bruno Haible  <bruno@clisp.org>
1741
1742         doc: Improve doc regarding autopoint vs. gnulib.
1743         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1744         disable autopoint while running autoreconf.
1745         Suggested by Ralf Wildenhues.
1746
1747 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1748
1749         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1750         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1751
1752 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1753
1754         parse-duration: remove xalloc.h dependency
1755         * lib/parse-duration.c (parse_period): handle NULL return from
1756         strdup instead of calling xstrdup().
1757         * modules/parse-duration: remove "xalloc" dependency
1758
1759 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1760
1761         bootstrap: honor m4_base when running aclocal
1762         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1763
1764 2011-03-02  Jim Meyering  <meyering@redhat.com>
1765
1766         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1767         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1768         on request from Matt Booth.
1769
1770 2011-03-01  Eric Blake  <eblake@redhat.com>
1771
1772         test-link: work on Hurd
1773         * tests/test-link.h (test_link): Hurd rejects linking directories
1774         with EISDIR instead of the POSIX-mandated EPERM.
1775
1776 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1777
1778         stdio: simplify by moving files to printf-posix, sigpipe
1779         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1780         since this symbol is needed only if printf is replaced.
1781         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1782         Require gl_ASM_SYMBOL_PREFIX.
1783         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1784         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1785         (Depends-on): Add 'raise'.
1786         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1787         * modules/stdio (Files): Remove lib/stdio-write.c,
1788         m4/asm-underscore.m4.
1789         (Depends-on): Remove 'raise'.
1790
1791         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1792         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1793         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1794         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1795
1796 2011-02-28  Bruno Haible  <bruno@clisp.org>
1797
1798         localcharset: Assume ANSI C behaviour of free().
1799         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1800         calling free().
1801         Suggested by Simon Josefsson <simon@josefsson.org>.
1802
1803 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1804             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1805             Bruno Haible  <bruno@clisp.org>  (tiny change)
1806
1807         On Cygwin, use /proc file system instead of win32 API.
1808         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1809         Win32 file names.
1810         (DllMain): Simplify by removing Cygwin specific code.
1811         (find_shared_library_fullname): Use Linux specific implementation also
1812         for Cygwin.
1813         (get_shared_library_fullname): Update accordingly.
1814         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1815         Win32 file names.
1816         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1817         Cygwin specific code.
1818
1819 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1820             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1821
1822         Fix OpenMP flag detection for various Fortran compilers.
1823         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1824         OpenMP-conditional compilation construct, to force compile
1825         failure with missing OpenMP flag.
1826         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1827
1828 2011-02-25  Eric Blake  <eblake@redhat.com>
1829
1830         strstr: expand test coverage
1831         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1832         compilation.
1833         * tests/test-memmem.c (main): Duplicate tests.
1834         * tests/test-strcasestr.c (main): Likewise.
1835         * tests/test-c-strcasestr.c (main): Likewise.
1836
1837 2011-02-25  Jim Meyering  <meyering@redhat.com>
1838
1839         maint.mk: detect missing-NL-at-EOF, too
1840         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1841         it also detects when a file lacks a newline at EOF.
1842         (require_exactly_one_NL_at_EOF_): Renamed from
1843         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1844         since people may well have .x-sc_... file names tied to the
1845         existing name.  Suggested by Eric Blake.
1846
1847 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1848
1849         dirname: move m4/dos.m4 functionality into lib/dosname.h
1850
1851         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1852         extracts symbols from it, puts them into config.h; but it's much
1853         easier to use the symbols directly.  filename.h already does this,
1854         but it disagrees with dos.m4 in some respects.  This patch
1855         introduces a different include file dosname.h that packages up
1856         dos.m4, and then later we can work on merging filename.h and
1857         dosname.h.  Applications that need only the easy-to-configure
1858         symbols should consider including dosname.h rather than dirname.h.
1859         * NEWS: Mention incompatible changes.
1860         * m4/dos.m4: Remove.
1861         * lib/dosname.h, modules/dosname: New files.
1862         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1863         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1864         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1865         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1866         Include dosname.h, not dirname.h.
1867         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1868         Include dosname.h, for definitions of symbols like ISSLASH
1869         that used to be in config.h.
1870         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1871         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1872         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1873         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1874         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1875         * modules/rmdir (Files): Likewise.
1876         * modules/stat (Files): Likewise.
1877         * modules/unlink (Files): Likewise.
1878         * modules/dirname-lgpl (Depends-on): Add dosname.
1879         * modules/lstat (Depends-on): Likewise.
1880         * modules/openat (Depends-on): Likewise.
1881         * modules/rmdir (Depends-on): Likewise.
1882         * modules/savewd (Depends-on): Likewise.
1883         * modules/stat (Depends-on): Likewise.
1884         * modules/unlink (Depends-on): Likewise.
1885         * modules/openat (Depends-on): Remove dirname-lgpl.
1886         * modules/savewd (Depends-on): Likewise.
1887         * tests/test-dirname.c: Do not use removed symbols like
1888         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1889         the remaining symbols, e.g., ISSLASH ('\\').
1890
1891 2011-02-25  Eric Blake  <eblake@redhat.com>
1892
1893         strstr: revert patches that introduced bug and pessimization
1894         * lib/str-two-way.h: Add another reference.
1895         (two_way_short_needle, two_way_long_needle): Revert changes from
1896         2011-02-24; they pessimize search speed.
1897         (critical_factorization): Partially revert changes from
1898         2010-06-22; they violate the requirement that the left half of the
1899         needle be smaller than the period of the needle.
1900
1901 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1902
1903         filenamecat: remove unnecessary dependency on dirname-lgpl
1904         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1905         is no direct dependency, just an indirect one via filenamecat-lgpl.
1906
1907         remove: remove unnecessary use of m4/dos.m4
1908         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1909         * modules/remove (FILES): Remove m4/dos.m4.
1910
1911         * lib/openat-proc.c: Don't include dirname.h; not needed.
1912
1913         backupfile: remove unnecessary use of m4/dos.m4
1914         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1915         of its symbols are used by the backupfile code.  backupfile.c does
1916         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1917         for the rare case of programs that want all their backup file
1918         names to live within 8+3 limits, and dos.m4 doesn't address that.
1919         * modules/backupfile (Files): Remove m4/dos.m4.
1920
1921 2011-02-24  Jim Meyering  <meyering@redhat.com>
1922
1923         strstr: fix a bug whereby strstr would mistakenly return NULL
1924         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1925         in period calculation.
1926         (two_way_long_needle): Likewise.
1927         The original problem was reported by Mike Stump in
1928         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1929         Ralf Wildenhues provided the short needle and haystack.
1930         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1931         Add a more involved test to trigger the bug in two_way_long_needle.
1932
1933 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1934
1935         gnulib-tool: remove use of bold display in help screen
1936         * gnulib-tool (func_usage): Do not use bold display anymore in the
1937         help screen.  That was just meant to be a temporary emphasis for a
1938         backward-incompatible change.
1939
1940 2011-02-23  Bruno Haible  <bruno@clisp.org>
1941
1942         Fix misindentation of preprocessor directives.
1943         * lib/argp-namefrob.h: Reindent preprocessor directives.
1944         * lib/getopt_int.h (struct _getopt_data): Likewise.
1945         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1946         * lib/vasnprintf.c (decode_long_double): Likewise.
1947         * tests/test-argmatch.c: Insert blank lines, for clarity.
1948         * tests/test-exclude.c: Likewise.
1949
1950 2011-02-22  Bruno Haible  <bruno@clisp.org>
1951
1952         ioctl: Fix for MacOS X in 64-bit mode.
1953         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1954         value.
1955         Suggested by Eric Blake.
1956         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1957
1958 2011-02-22  Jim Meyering  <meyering@redhat.com>
1959
1960         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1961         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1962         in lib/.
1963
1964 2011-02-22  Eric Blake  <eblake@redhat.com>
1965
1966         maint: avoid any CDPATH issue
1967         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1968
1969         maint: adjust cpp indentation for my modules, as well
1970         * Makefile (sc_cpp_indent_check): Add my name.
1971         * lib/fbufmode.c: Filter through cppi.
1972         * lib/fpurge.c: Likewise.
1973         * lib/freadable.c: Likewise.
1974         * lib/freading.c: Likewise.
1975         * lib/fwritable.c: Likewise.
1976         * lib/fwriting.c: Likewise.
1977         * lib/sigaction.c: Likewise.
1978
1979 2011-02-22  Jim Meyering  <meyering@redhat.com>
1980
1981         maint: adjust cpp indentation to reflect nesting depth
1982         I.e., in a block of code that begins with an unnested "#if",
1983         put one space between the "#" in column 1 and following token.
1984         For example,
1985         -#include <sys/vfs.h>
1986         +# include <sys/vfs.h>
1987         Do this only in .c files that are part of a module I maintain.
1988         * lib/linkat.c: Filter through cppi.
1989         * lib/nanosleep.c: Likewise.
1990         * lib/openat.c: Likewise.
1991         * lib/openat-die.c: Likewise.
1992         * lib/dup3.c: Likewise.
1993         * lib/fchownat.c: Likewise.
1994         * lib/flock.c: Likewise.
1995         * lib/fsync.c: Likewise.
1996         * lib/fts.c: Likewise.
1997         * lib/getpass.c: Likewise.
1998         * lib/gettimeofday.c: Likewise.
1999         * lib/userspec.c: Likewise.
2000         * Makefile (sc_cpp_indent_check): New rule, to check this.
2001
2002 2011-02-22  Bruno Haible  <bruno@clisp.org>
2003
2004         New module 'wctomb'.
2005         * lib/stdlib.in.h (wctomb): New declaration.
2006         * lib/wctomb.c: New file.
2007         * lib/wctomb-impl.h: New file.
2008         * m4/wctomb.m4: New file.
2009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2010         REPLACE_WCTOMB.
2011         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2012         REPLACE_WCTOMB.
2013         * modules/wctomb: New file.
2014         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2015         * doc/posix-functions/wctomb.texi: Mention the new module.
2016         * modules/wctob (Depends-on): Add wctomb.
2017
2018 2011-02-22  Bruno Haible  <bruno@clisp.org>
2019
2020         New module 'mbtowc'.
2021         * lib/stdlib.in.h (mbtowc): New declaration.
2022         * lib/mbtowc.c: New file.
2023         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2024         * m4/mbtowc.m4: New file.
2025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2026         REPLACE_MBTOWC.
2027         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2028         REPLACE_MBTOWC.
2029         * modules/mbtowc: New file.
2030         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2031         * doc/posix-functions/mbtowc.texi: Mention the new module.
2032         * modules/btowc (Depends-on): Add mbtowc.
2033
2034 2011-02-22  Bruno Haible  <bruno@clisp.org>
2035
2036         wcrtomb: Add more tests for native Windows platforms.
2037         * tests/test-wcrtomb-w32-1.sh: New file.
2038         * tests/test-wcrtomb-w32-2.sh: New file.
2039         * tests/test-wcrtomb-w32-3.sh: New file.
2040         * tests/test-wcrtomb-w32-4.sh: New file.
2041         * tests/test-wcrtomb-w32-5.sh: New file.
2042         * tests/test-wcrtomb-w32.c: New file.
2043         * modules/wcrtomb-tests (Files): Add them.
2044         (Makefile.am): Arrange to run these tests.
2045         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2046         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2047
2048 2011-02-20  Bruno Haible  <bruno@clisp.org>
2049
2050         wcrtomb: Enhance test.
2051         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2052
2053 2011-02-20  Bruno Haible  <bruno@clisp.org>
2054
2055         mbrtowc: Tiny optimization.
2056         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2057
2058 2011-02-20  Jim Meyering  <meyering@redhat.com>
2059
2060         test-exclude.c: remove unmatched #endif
2061         * tests/test-exclude.c: Remove stray #endif, left over from
2062         the change of a week ago.
2063
2064 2011-02-19  Jim Meyering  <meyering@redhat.com>
2065
2066         git-version-gen: skip "-dirty" check when appropriate
2067         * build-aux/git-version-gen: Don't run any git commands when the
2068         version string comes from .tarball-version.  Prior to this, we
2069         would run git update-index --refresh even from a just-unpacked
2070         tarball directory, and that could affect a .git/ directory in a
2071         parent of the build directory.  Reported by Mike Frysinger.
2072
2073 2011-02-19  Bruno Haible  <bruno@clisp.org>
2074
2075         unictype/property-byname: Reduce the size of the 'data' segment.
2076         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2077
2078 2011-02-19  Bruno Haible  <bruno@clisp.org>
2079
2080         unictype/scripts: Reduce the size of the 'data' segment.
2081         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2082         '%pic'.
2083         * lib/unictype/scripts_byname.gperf: Regenerated.
2084
2085 2011-02-19  Bruno Haible  <bruno@clisp.org>
2086
2087         stdint: Update documentation.
2088         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2089
2090 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2091
2092         stdint: omit redundant check for wchar.h
2093         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2094         always tests whether wchar.h exists, so remove the now-redundant test.
2095
2096 2011-02-18  Bruno Haible  <bruno@clisp.org>
2097
2098         stdint: Cut dependency to module 'wchar'.
2099         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2100         include the necessary prerequisites.
2101         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2102         * modules/stdint (Depends-on): Remove wchar.
2103         (Makefile.am): Substitute HAVE_WCHAR_H.
2104         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2105
2106 2011-02-18  Eric Blake  <eblake@redhat.com>
2107
2108         longlong: skip, rather than fail, on cross-compilation
2109         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2110         when cross-compiling; regression from 2011-02-16.
2111
2112 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2113
2114         * NEWS: Mention 2011-02-08 change to stdlib.
2115
2116 2011-02-17  Bruno Haible  <bruno@clisp.org>
2117
2118         getloadavg: Add comments about platforms.
2119         * m4/getloadavg.m4: Add comment.
2120         * lib/getloadavg.c: Likewise.
2121
2122 2011-02-17  Bruno Haible  <bruno@clisp.org>
2123
2124         getloadavg: Fix link error on Solaris 2.6.
2125         * modules/getloadavg (Link): New section.
2126         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2127         linking test-getloadavg.
2128         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2129         getloadavg.
2130
2131 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2132
2133         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2134         It was 'int', but this doesn't match the IRIX 6.5 manual.
2135         Suggested by Bruno Haible in
2136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2137
2138 2011-02-17  Bruno Haible  <bruno@clisp.org>
2139
2140         havelib: Fix comments.
2141         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2142         change.
2143
2144 2011-02-17  Bruno Haible  <bruno@clisp.org>
2145
2146         havelib: Update config.rpath.
2147         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2148
2149 2011-02-17  Bruno Haible  <bruno@clisp.org>
2150
2151         getloadavg test: Add some plausibility checks.
2152         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2153         is improbable.
2154
2155 2011-02-16  Eric Blake  <eblake@redhat.com>
2156
2157         maintainer-makefile: make syntax-check a no-op from tarballs
2158         * top/maint.mk (no-vc-detected): New rule.
2159         (local-checks-available): Use it to avoid hanging if someone tries
2160         'make syntax-check' from a tarball.  Also append to any non-syntax
2161         checks already defined in cfg.mk.
2162
2163 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2164
2165         longlong: tune, particularly for common case of c99
2166
2167         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2168         or running anything if c99, or if unsigned long long int does not
2169         work.  In either case, we know the answer without further tests.
2170         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2171         it at most once, and use its results for both long long int and
2172         unsigned long long int.  This is more likely to be efficient in
2173         the common case where the program wants to check for both long
2174         long int and unsigned long long int.
2175         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2176         since the answer is already known.
2177
2178 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2179
2180         getloadavg: set errno
2181         * lib/getloadavg.c: Set errno when returning -1.  If no other
2182         error number looks appropriate, set it to ENOSYS if the getloadavg
2183         looks like it can't possibly ever work, ENOTSUP otherwise.
2184         Suggested by Bruno Haible in
2185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2186
2187         getloadavg: trim unused parts and speed up 'configure'
2188         * NEWS: Document this.
2189         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2190         always compiled if getloadavg is absent.
2191         Move test code to ...
2192         * tests/test-getloadavg.c: New file, containing previous
2193         contents of test from lib/getloadavg.c.  It also contains
2194         suggestions by Bruno Haible in
2195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2196         * modules/getloadavg-tests: New file.
2197         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2198         Do tests in the same order as they're needed for getloadavg.c.
2199         Omit setgid-related tests that generate symbols KMEM_GROUP,
2200         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2201         Do only the tests that are needed to see whether the system has
2202         getloadavg, moving the other tests into ...
2203         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2204         NLIST_NAME_UNION; nobody should be using it.  Do not define
2205         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2206         relevant, as the user of this module shouldn't care how getloadavg
2207         is implemented.
2208
2209         getloadavg: omit unused var
2210         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2211
2212 2011-02-15  Jim Meyering  <meyering@redhat.com>
2213
2214         doc: update users.txt
2215         * users.txt: Update iwhd's URL.
2216
2217 2011-02-13  Bruno Haible  <bruno@clisp.org>
2218
2219         Consistent macro naming for macros that use GCC __attribute__.
2220         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2221         _ATTRIBUTE_NONNULL_.
2222         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2223         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2224         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2225         ATTRIBUTE_DEPRECATED.
2226         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2227         ATTRIBUTE_NORETURN.
2228         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2229         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2230         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2231         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2232         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2233         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2234         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2235         ATTRIBUTE_SENTINEL.
2236         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2237         ATTRIBUTE_RETURN_CHECK.
2238         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2239         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2240         ATTRIBUTE_NORETURN.
2241         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2242         Reported by Paul Eggert.
2243
2244 2011-02-13  Bruno Haible  <bruno@clisp.org>
2245
2246         Don't interfere with a program's definition of __attribute__.
2247         * lib/argp.h (__attribute__): Remove definition.
2248         (_GL_ATTRIBUTE_FORMAT): New macro.
2249         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2250         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2251         (_GL_ATTRIBUTE_FORMAT): New macro.
2252         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2253         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2254         GCC 3 or newer.
2255         * lib/error.h (__attribute__): Remove definition.
2256         (_GL_ATTRIBUTE_FORMAT): New macro.
2257         (error, error_at_line): Use it.
2258         * lib/hash.h (__attribute__): Remove definition.
2259         (ATTRIBUTE_WUR): Update definition. Define always.
2260         * lib/openat.h (__attribute__): Remove definition.
2261         (ATTRIBUTE_NORETURN): Update definition. Define always.
2262         * lib/sigpipe-die.h (__attribute__): Remove definition.
2263         (ATTRIBUTE_NORETURN): Update definition. Define always.
2264         * lib/vasnprintf.h (__attribute__): Remove definition.
2265         (_GL_ATTRIBUTE_FORMAT): New macro.
2266         (asnprintf, vasnprintf): Use it.
2267         * lib/xalloc.h (__attribute__): Remove definition.
2268         (ATTRIBUTE_NORETURN): Update definition. Define always.
2269         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2270         * lib/xmemdup0.h (__attribute__): Remove definition.
2271         (ATTRIBUTE_NORETURN): Update definition. Define always.
2272         * lib/xprintf.h (__attribute__): Remove definition.
2273         (_GL_ATTRIBUTE_FORMAT): New macro.
2274         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2275         * lib/xstrtol.h (__attribute__): Remove definition.
2276         (ATTRIBUTE_NORETURN): Update definition. Define always.
2277         * lib/xvasprintf.h (__attribute__): Remove definition.
2278         (_GL_ATTRIBUTE_FORMAT): New macro.
2279         (xasprintf, xvasprintf): Use it.
2280         * tests/test-argmatch.c (__attribute__): Remove definition.
2281         (ATTRIBUTE_NORETURN): Update definition. Define always.
2282         * tests/test-exclude.c (__attribute__): Remove definition.
2283         (ATTRIBUTE_NORETURN): Update definition. Define always.
2284         Reported by Paul Eggert.
2285
2286 2011-02-13  Bruno Haible  <bruno@clisp.org>
2287
2288         mbrtowc: Add more tests for native Windows platforms.
2289         * tests/test-mbrtowc-w32-1.sh: New file.
2290         * tests/test-mbrtowc-w32-2.sh: New file.
2291         * tests/test-mbrtowc-w32-3.sh: New file.
2292         * tests/test-mbrtowc-w32-4.sh: New file.
2293         * tests/test-mbrtowc-w32-5.sh: New file.
2294         * tests/test-mbrtowc-w32.c: New file.
2295         * modules/mbrtowc-tests (Files): Add them.
2296         (Makefile.am): Arrange to run these tests.
2297         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2298         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2299
2300 2011-02-13  Bruno Haible  <bruno@clisp.org>
2301
2302         mbrtowc: Work around native Windows bug.
2303         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2304         guess when no suitable locale for testing was found.
2305         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2306
2307 2011-02-13  Bruno Haible  <bruno@clisp.org>
2308
2309         mbsinit: Work around mingw bug.
2310         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2311         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2312         Windows.
2313         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2314
2315 2011-02-13  Bruno Haible  <bruno@clisp.org>
2316
2317         mbsinit: Don't crash for a NULL argument.
2318         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2319         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2320
2321 2011-02-13  Bruno Haible  <bruno@clisp.org>
2322
2323         Don't interfere with a program's definition of __attribute__.
2324         * lib/stdio.in.h (__attribute__): Remove definition.
2325         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2326         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2327         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2328         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2329         * lib/string.in.h (__attribute__): Remove definition.
2330         Reported by Paul Eggert.
2331
2332 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         stdlib: don't get in the way of non-GCC __attribute__
2335         See thread starting at
2336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2337         Revert previous stdlib change, installing the following instead:
2338         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2339         to get in the way of a non-GCC compiler that supports __attribute__.
2340         (_GL_ATTRIBUTE_RETURN): New macro.
2341         (_Exit): Use it instead of __attribute__.
2342
2343 2011-02-12  Bruno Haible  <bruno@clisp.org>
2344
2345         quotearg test: Avoid test failure on mingw.
2346         * tests/test-quotearg.sh: Convert the locale identifier from native
2347         Windows syntax to Unix syntax.
2348
2349 2011-02-12  Bruno Haible  <bruno@clisp.org>
2350
2351         setlocale: Prefer gnulib's override over libintl's override.
2352         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2353         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2354         GNULIB_defined_setlocale is set.
2355
2356 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         stdlib: support non-GCC __attribute__
2359
2360         Fix a serious and tricky problem encountered when attempting to
2361         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2362         5.5, but it crashed due to memory corruption on Solaris 10 with
2363         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2364         bits that are otherwise zero.  This tagging is optional inside
2365         Emacs but is preferred and is used when __attribute__ ((__aligned
2366         (8))) works, as it does with both recent-enough GCC and with Sun C
2367         5.11.  However, Sun C 5.11 is not GCC and does not #define
2368         __GNUC__ and __GNUC_MINOR__.
2369
2370         When I added the getloadavg module to Emacs, it brought in
2371         stdlib.in.h, which contained this fragment:
2372
2373            #ifndef __attribute__
2374            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2375            #  define __attribute__(Spec)   /* empty */
2376            # endif
2377            #endif
2378
2379         When files that include <stdlib.h> were compiled with Sun C 5.11,
2380         the above code disabled __attribute__ ((__aligned (8))), which
2381         caused variables to not be properly aligned, which eventually led
2382         to the pointer corruption mentioned above.  (This was a bit hard
2383         to diagnose, unfortunately.)
2384
2385         Several "#define __attribute__(X) /* empty */" code snippets need
2386         to be eradicated from Gnulib to work with non-GCC compilers that
2387         support __attribute__.  The Autoconf way to do this is to test for
2388         each kind of attribute that we want support for, and selectively
2389         enable that in source code.
2390
2391         Fix this problem just for stdlib.h, by adding a test for the
2392         __noreturn__ attribute, and change stdlib.in.h to use that test
2393         when needed.  This technique can be easily generalized to the
2394         other *.in.h files and attributes, and a similar technique can be
2395         used for *.h and *.c files.  This patch is enough to solve the
2396         problem for Emacs + getloadavg, and I thought I'd publish it for
2397         feedback before undertaking further, similar fixes in other
2398         modules.
2399
2400         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2401         because it's not needed for stdlib.h.  It merely substitutes the
2402         value directly into stdlib.h.  We may well need to #define it, or
2403         similar symbols, for other modules, but it's nice to also have an
2404         option to not #define it for applications like Emacs that do not
2405         need it.
2406
2407         * lib/stdlib.in.h (__attribute__): Do not #define.
2408         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2409         be defined only if the _Exit module is also used.
2410         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2412         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2413         platforms.
2414         * modules/_Exit (Files): Add m4/attribute.m4.
2415         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2416         * m4/attribute.m4: New file.
2417
2418 2011-02-12  Bruno Haible  <bruno@clisp.org>
2419
2420         wcsrtombs: Work around bug on native Windows.
2421         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2422         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2423         instead of len.
2424         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2425
2426 2011-02-12  Bruno Haible  <bruno@clisp.org>
2427
2428         mbsrtowcs: Work around bug on native Windows.
2429         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2430         against mingw bug.
2431         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2432
2433 2011-02-12  Bruno Haible  <bruno@clisp.org>
2434
2435         Avoid setlocale bugs in tests.
2436         * modules/btowc (Dependencies): Add setlocale.
2437         * modules/c-strcase (Dependencies): Likewise.
2438         * modules/mbmemcasecmp (Dependencies): Likewise.
2439         * modules/mbmemcasecoll (Dependencies): Likewise.
2440         * modules/mbrtowc (Dependencies): Likewise.
2441         * modules/mbscasecmp (Dependencies): Likewise.
2442         * modules/mbscasestr (Dependencies): Likewise.
2443         * modules/mbschr (Dependencies): Likewise.
2444         * modules/mbscspn (Dependencies): Likewise.
2445         * modules/mbsinit (Dependencies): Likewise.
2446         * modules/mbsncasecmp (Dependencies): Likewise.
2447         * modules/mbsnrtowcs (Dependencies): Likewise.
2448         * modules/mbspbrk (Dependencies): Likewise.
2449         * modules/mbspcasecmp (Dependencies): Likewise.
2450         * modules/mbsrchr (Dependencies): Likewise.
2451         * modules/mbsrtowcs (Dependencies): Likewise.
2452         * modules/mbsspn (Dependencies): Likewise.
2453         * modules/mbsstr (Dependencies): Likewise.
2454         * modules/nl_langinfo (Dependencies): Likewise.
2455         * modules/quotearg (Dependencies): Likewise.
2456         * modules/unicase/locale-language (Dependencies): Likewise.
2457         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2458         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2459         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2460         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2461         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2462         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2463         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2464         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2465         * modules/vasnprintf-posix (Dependencies): Likewise.
2466         * modules/wcrtomb (Dependencies): Likewise.
2467         * modules/wcsnrtombs (Dependencies): Likewise.
2468         * modules/wcsrtombs (Dependencies): Likewise.
2469
2470 2011-02-12  Bruno Haible  <bruno@clisp.org>
2471
2472         setlocale: Workaround native Windows bug.
2473         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2474         succeeds but sets LC_CTYPE to "C", report a failure.
2475         * tests/test-setlocale2.sh: New file.
2476         * tests/test-setlocale2.c: New file.
2477         * modules/setlocale-tests (Files): Add the new files.
2478         (Makefile.am): Enable test-setlocale2.sh test.
2479         * doc/posix-functions/setlocale.texi: Mention workaround.
2480
2481 2011-02-11  Bruno Haible  <bruno@clisp.org>
2482
2483         Tests for module 'setlocale'.
2484         * modules/setlocale-tests: New file.
2485         * tests/test-setlocale1.sh: New file.
2486         * tests/test-setlocale1.c: New file.
2487
2488         New module 'setlocale'.
2489         * lib/locale.in.h (setlocale): New declaration.
2490         * lib/setlocale.c: New file, based on
2491         gettext/gettext-runtime/intl/setlocale.c.
2492         * m4/setlocale.m4: New file.
2493         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2494         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2495         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2496         REPLACE_SETLOCALE.
2497         * modules/setlocale: New file.
2498         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2499         * doc/posix-functions/setlocale.texi: Mention the new module.
2500
2501 2011-02-11  Bruno Haible  <bruno@clisp.org>
2502
2503         Prepare for locale dependent tests on mingw.
2504         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2505         because it has the wrong locale encoding.
2506         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2507         French_France.1252 instead of "fr".
2508         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2509         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2510         because it has the wrong locale encoding.
2511         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2512         native Windows, try Turkish_Turkey.65001.
2513         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2514         Chinese_China.54936.
2515
2516         Prepare for locale dependent tests on mingw.
2517         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2518         differently.
2519         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2520         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2521         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2522         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2523
2524 2011-02-11  Eric Blake  <eblake@redhat.com>
2525
2526         strptime: avoid compiler warnings
2527         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2528         compiler warnings about dead code.
2529         Reported by Daniel P. Berrange.
2530
2531 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2532
2533         doc: update users.txt
2534         * users.txt: Add rcs.
2535
2536 2011-02-10  John W. Eaton  <jwe@gnu.org>
2537
2538         doc: update users.txt
2539         * users.txt: Add octave.
2540
2541 2011-02-10  Jim Meyering  <meyering@redhat.com>
2542
2543         doc: update users.txt
2544         * users.txt: Add iwhd.
2545
2546 2011-02-09  Bruno Haible  <bruno@clisp.org>
2547
2548         gnulib-tool: Make copyright notice adjustment more robust.
2549         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2550         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2551         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2552         License".
2553         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2554
2555 2011-02-06  Bruno Haible  <bruno@clisp.org>
2556
2557         New module 'towctrans'.
2558         * modules/towctrans: New file.
2559         * lib/wctype.in.h (towctrans): New declaration.
2560         * lib/towctrans.c: New file.
2561         * lib/towctrans-impl.h: New file.
2562         * m4/towctrans.m4: New file.
2563         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2564         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2565         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2566         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2567         * doc/posix-functions/towctrans.texi: Mention the new module.
2568
2569 2011-02-06  Bruno Haible  <bruno@clisp.org>
2570
2571         New module 'wctrans'.
2572         * modules/wctrans: New file.
2573         * lib/wctype.in.h (wctrans): New declaration.
2574         * lib/wctrans.c: New file.
2575         * lib/wctrans-impl.h: New file.
2576         * m4/wctrans.m4: New file.
2577         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2578         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2579         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2580         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2581         * doc/posix-functions/wctrans.texi: Mention the new module.
2582
2583 2011-02-06  Bruno Haible  <bruno@clisp.org>
2584
2585         New module 'iswctype'.
2586         * modules/iswctype: New file.
2587         * lib/wctype.in.h (iswctype): New declaration.
2588         * lib/iswctype.c: New file.
2589         * lib/iswctype-impl.h: New file.
2590         * m4/iswctype.m4: New file.
2591         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2592         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2593         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2594         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2595         * doc/posix-functions/iswctype.texi: Mention the new module and the
2596         HP-UX 11.00 problem.
2597
2598 2011-02-06  Bruno Haible  <bruno@clisp.org>
2599
2600         New module 'wctype'.
2601         * modules/wctype: Change to represent the wctype() substitute.
2602         * lib/wctype.in.h (wctype): New declaration.
2603         * lib/wctype.c: New file.
2604         * lib/wctype-impl.h: New file.
2605         * m4/wctype.m4: New file.
2606         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2607         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2608         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2609         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2610         * doc/posix-functions/wctype.texi: Mention the new module and the
2611         HP-UX 11.00 problem.
2612
2613 2011-02-06  Bruno Haible  <bruno@clisp.org>
2614
2615         wctype-h: Ensure wctype_t and wctrans_t are defined.
2616         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2617         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2618         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2619         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2620         HAVE_WCTRANS_T.
2621         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2622
2623 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2624
2625         flock: fix license typo
2626
2627         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2628         omitted.
2629
2630 2011-02-08  Bruno Haible  <bruno@clisp.org>
2631
2632         Split large sed scripts, for HP-UX sed.
2633         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2634         to avoid HP-UX limit of 99 commands, in the near future.
2635         * modules/stdlib (Makefile.am): Likewise.
2636         * modules/unistd (Makefile.am): Likewise.
2637         * modules/wchar (Makefile.am): Likewise.
2638         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2639         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2640         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2641
2642 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2643             Bruno Haible  <bruno@clisp.org>
2644
2645         stdlib: improve random_r modularization
2646         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2647         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2648         you also need the random_r module to get this material right.
2649         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2650         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2651         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2652
2653 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2654
2655         stdlib: don't depend on stdint
2656         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2657         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2658         be independent of whether stdint.h is needed.
2659         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2660         here, instead of ...
2661         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2662         struct random_data should be using the random_r module, not just
2663         the stdlib module (which wouldn't make sense: what package needs
2664         just struct random_data without also needing random_r?).
2665         * modules/stdlib (Depends-on): Remove stdint.
2666
2667         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2668         See the thread rooted at
2669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2670         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2671         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2672         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2673         __VMS)); previously it was always included (via fcntl--.h).
2674         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2675         hand; this is good enough for load averages.  Also, do not use
2676         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2677         flags directly if available and don't bother otherwise.  (Packages
2678         that need the extra reliability should use the modules that define
2679         these flags on older platforms that lack them.)
2680         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2681         fcntl-safer.
2682
2683 2011-02-08  Jim Meyering  <meyering@redhat.com>
2684
2685         di-set.h, ino-map.h: add multiple-inclusion guard
2686         Technically, the guard is required only for ino-map.h, due to its
2687         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2688         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2689         * lib/ino-map.h: Likewise.
2690
2691 2011-02-06  Bruno Haible  <bruno@clisp.org>
2692
2693         iswblank: Ensure declaration on glibc systems.
2694         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2695         * modules/iswblank (Dependencies): Add 'extensions'.
2696         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2697
2698 2011-02-06  Bruno Haible  <bruno@clisp.org>
2699
2700         New module 'iswblank'.
2701         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2702         * modules/iswblank: New file.
2703         * modules/wctype-h (Files): Remove lib/iswblank.c.
2704         (Makefile.am): Substitute GNULIB_ISWBLANK.
2705         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2706         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2707         (gl_WCTYPE_H_DEFAULTS): New macro.
2708         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2709         * modules/iswblank-tests: New file.
2710         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2711         * tests/test-wctype-h.c (main): Remove iswblank tests.
2712         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2713         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2714         of 'wctype-h'.
2715         * NEWS: Mention the change.
2716         * modules/mbchar (Depends-on): Add iswblank.
2717
2718 2011-02-08  Bruno Haible  <bruno@clisp.org>
2719
2720         di-set tests: Refactor.
2721         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2722         unnecessary includes.
2723         (ASSERT): Remove macro.
2724         (main): Make C90 compliant by avoiding variable declaration after
2725         statement.
2726         * modules/di-set-tests (Files): Add tests/macros.h.
2727
2728 2011-02-08  Bruno Haible  <bruno@clisp.org>
2729
2730         ino-map tests: Refactor.
2731         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2732         unnecessary includes.
2733         (ASSERT): Remove macro.
2734         (main): Make C90 compliant by avoiding variable declaration after
2735         statement.
2736         * modules/ino-map-tests (Files): Add tests/macros.h.
2737
2738 2011-02-08  Jim Meyering  <meyering@redhat.com>
2739
2740         di-set: add "const" to a cast
2741         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2742         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2743
2744 2011-02-06  Bruno Haible  <bruno@clisp.org>
2745
2746         Rename module 'wctype' to 'wctype-h'.
2747         * modules/wctype-h: Renamed from modules/wctype.
2748         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2749         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2750         (Files, Depends-on, Makefile.am): Update.
2751         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2752         (Files, Makefile.am): Update.
2753         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2754         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2755         * doc/posix-headers/wctype.texi: Update.
2756         * doc/posix-functions/iswalnum.texi: Update.
2757         * doc/posix-functions/iswalpha.texi: Update.
2758         * doc/posix-functions/iswblank.texi: Update.
2759         * doc/posix-functions/iswcntrl.texi: Update.
2760         * doc/posix-functions/iswdigit.texi: Update.
2761         * doc/posix-functions/iswgraph.texi: Update.
2762         * doc/posix-functions/iswlower.texi: Update.
2763         * doc/posix-functions/iswprint.texi: Update.
2764         * doc/posix-functions/iswpunct.texi: Update.
2765         * doc/posix-functions/iswspace.texi: Update.
2766         * doc/posix-functions/iswupper.texi: Update.
2767         * doc/posix-functions/iswxdigit.texi: Update.
2768         * doc/posix-functions/towlower.texi: Update.
2769         * doc/posix-functions/towupper.texi: Update.
2770         * NEWS: Mention the change.
2771         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2772         * modules/mbchar (Dependencies): Likewise.
2773         * modules/mbswidth (Dependencies): Likewise.
2774         * modules/quotearg (Dependencies): Likewise.
2775         * modules/regex (Dependencies): Likewise.
2776         * modules/wcscasecmp (Dependencies): Likewise.
2777         * modules/wcsncasecmp (Dependencies): Likewise.
2778         * modules/wcwidth (Dependencies): Likewise.
2779
2780 2011-02-06  Bruno Haible  <bruno@clisp.org>
2781
2782         New module 'wcswidth'.
2783         * modules/wcswidth: New file.
2784         * lib/wchar.in.h (wcswidth): New declaration.
2785         * lib/wcswidth.c: New file.
2786         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2787         * m4/wcswidth.m4: New file.
2788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2790         REPLACE_WCSWIDTH.
2791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2792         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2793         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2794         * doc/posix-functions/wcswidth.texi: Mention the new module.
2795
2796 2011-02-06  Bruno Haible  <bruno@clisp.org>
2797
2798         New module 'wcstok'.
2799         * modules/wcstok: New file.
2800         * lib/wchar.in.h (wcstok): New declaration.
2801         * lib/wcstok.c: New file.
2802         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2803         * m4/wcstok.m4: New file.
2804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2807         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2808         * doc/posix-functions/wcstok.texi: Mention the new module.
2809
2810 2011-02-06  Bruno Haible  <bruno@clisp.org>
2811
2812         New module 'wcsstr'.
2813         * modules/wcsstr: New file.
2814         * lib/wchar.in.h (wcsstr): New declaration.
2815         * lib/wcsstr.c: New file.
2816         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2817         * m4/wcsstr.m4: New file.
2818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2820         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2821         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2822         * doc/posix-functions/wcsstr.texi: Mention the new module.
2823
2824 2011-02-06  Bruno Haible  <bruno@clisp.org>
2825
2826         New module 'wcspbrk'.
2827         * modules/wcspbrk: New file.
2828         * lib/wchar.in.h (wcspbrk): New declaration.
2829         * lib/wcspbrk.c: New file.
2830         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2831         * m4/wcspbrk.m4: New file.
2832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2835         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2836         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2837
2838 2011-02-06  Bruno Haible  <bruno@clisp.org>
2839
2840         New module 'wcsspn'.
2841         * modules/wcsspn: New file.
2842         * lib/wchar.in.h (wcsspn): New declaration.
2843         * lib/wcsspn.c: New file.
2844         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2845         * m4/wcsspn.m4: New file.
2846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2849         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2850         * doc/posix-functions/wcsspn.texi: Mention the new module.
2851
2852 2011-02-06  Bruno Haible  <bruno@clisp.org>
2853
2854         New module 'wcscspn'.
2855         * modules/wcscspn: New file.
2856         * lib/wchar.in.h (wcscspn): New declaration.
2857         * lib/wcscspn.c: New file.
2858         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2859         * m4/wcscspn.m4: New file.
2860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2863         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2864         * doc/posix-functions/wcscspn.texi: Mention the new module.
2865
2866 2011-02-06  Bruno Haible  <bruno@clisp.org>
2867
2868         New module 'wcsrchr'.
2869         * modules/wcsrchr: New file.
2870         * lib/wchar.in.h (wcsrchr): New declaration.
2871         * lib/wcsrchr.c: New file.
2872         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2873         * m4/wcsrchr.m4: New file.
2874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2876         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2877         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2878         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2879
2880 2011-02-06  Bruno Haible  <bruno@clisp.org>
2881
2882         New module 'wcschr'.
2883         * modules/wcschr: New file.
2884         * lib/wchar.in.h (wcschr): New declaration.
2885         * lib/wcschr.c: New file.
2886         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2887         * m4/wcschr.m4: New file.
2888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2891         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2892         * doc/posix-functions/wcschr.texi: Mention the new module.
2893
2894 2011-02-06  Bruno Haible  <bruno@clisp.org>
2895
2896         New module 'wcsdup'.
2897         * modules/wcsdup: New file.
2898         * lib/wchar.in.h (wcsdup): New declaration.
2899         * lib/wcsdup.c: New file.
2900         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2901         * m4/wcsdup.m4: New file.
2902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2905         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2906         * doc/posix-functions/wcsdup.texi: Mention the new module.
2907
2908 2011-02-06  Bruno Haible  <bruno@clisp.org>
2909
2910         New module 'wcsxfrm'.
2911         * modules/wcsxfrm: New file.
2912         * lib/wchar.in.h (wcsxfrm): New declaration.
2913         * lib/wcsxfrm.c: New file.
2914         * lib/wcsxfrm-impl.h: New file.
2915         * m4/wcsxfrm.m4: New file.
2916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2919         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2920         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2921
2922 2011-02-06  Bruno Haible  <bruno@clisp.org>
2923
2924         New module 'wcscoll'.
2925         * modules/wcscoll: New file.
2926         * lib/wchar.in.h (wcscoll): New declaration.
2927         * lib/wcscoll.c: New file.
2928         * lib/wcscoll-impl.h: New file.
2929         * m4/wcscoll.m4: New file.
2930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2933         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2934         * doc/posix-functions/wcscoll.texi: Mention the new module.
2935
2936 2011-02-06  Bruno Haible  <bruno@clisp.org>
2937
2938         New module 'wcsncasecmp'.
2939         * modules/wcsncasecmp: New file.
2940         * lib/wchar.in.h (wcsncasecmp): New declaration.
2941         * lib/wcsncasecmp.c: New file.
2942         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2943         * m4/wcsncasecmp.m4: New file.
2944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2947         HAVE_WCSNCASECMP.
2948         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2949         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2950
2951 2011-02-06  Bruno Haible  <bruno@clisp.org>
2952
2953         New module 'wcscasecmp'.
2954         * modules/wcscasecmp: New file.
2955         * lib/wchar.in.h (wcscasecmp): New declaration.
2956         * lib/wcscasecmp.c: New file.
2957         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2958         * m4/wcscasecmp.m4: New file.
2959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2962         HAVE_WCSCASECMP.
2963         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2964         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2965
2966 2011-02-05  Bruno Haible  <bruno@clisp.org>
2967
2968         New module 'wcsncmp'.
2969         * modules/wcsncmp: New file.
2970         * lib/wchar.in.h (wcsncmp): New declaration.
2971         * lib/wcsncmp.c: New file.
2972         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2973         * m4/wcsncmp.m4: New file.
2974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2976         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2977         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2978         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2979
2980 2011-02-05  Bruno Haible  <bruno@clisp.org>
2981
2982         New module 'wcscmp'.
2983         * modules/wcscmp: New file.
2984         * lib/wchar.in.h (wcscmp): New declaration.
2985         * lib/wcscmp.c: New file.
2986         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2987         * m4/wcscmp.m4: New file.
2988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2991         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2992         * doc/posix-functions/wcscmp.texi: Mention the new module.
2993
2994 2011-02-05  Bruno Haible  <bruno@clisp.org>
2995
2996         New module 'wcsncat'.
2997         * modules/wcsncat: New file.
2998         * lib/wchar.in.h (wcsncat): New declaration.
2999         * lib/wcsncat.c: New file.
3000         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3001         * m4/wcsncat.m4: New file.
3002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3005         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3006         * doc/posix-functions/wcsncat.texi: Mention the new module.
3007
3008 2011-02-05  Bruno Haible  <bruno@clisp.org>
3009
3010         New module 'wcscat'.
3011         * modules/wcscat: New file.
3012         * lib/wchar.in.h (wcscat): New declaration.
3013         * lib/wcscat.c: New file.
3014         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3015         * m4/wcscat.m4: New file.
3016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3019         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3020         * doc/posix-functions/wcscat.texi: Mention the new module.
3021
3022 2011-02-05  Bruno Haible  <bruno@clisp.org>
3023
3024         New module 'wcpncpy'.
3025         * modules/wcpncpy: New file.
3026         * lib/wchar.in.h (wcpncpy): New declaration.
3027         * lib/wcpncpy.c: New file.
3028         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3029         * m4/wcpncpy.m4: New file.
3030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3032         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3033         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3034         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3035
3036 2011-02-05  Bruno Haible  <bruno@clisp.org>
3037
3038         New module 'wcsncpy'.
3039         * modules/wcsncpy: New file.
3040         * lib/wchar.in.h (wcsncpy): New declaration.
3041         * lib/wcsncpy.c: New file.
3042         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3043         * m4/wcsncpy.m4: New file.
3044         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3045         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3047         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3048         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3049
3050 2011-02-05  Bruno Haible  <bruno@clisp.org>
3051
3052         New module 'wcpcpy'.
3053         * modules/wcpcpy: New file.
3054         * lib/wchar.in.h (wcpcpy): New declaration.
3055         * lib/wcpcpy.c: New file.
3056         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3057         * m4/wcpcpy.m4: New file.
3058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3060         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3061         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3062         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3063
3064 2011-02-05  Bruno Haible  <bruno@clisp.org>
3065
3066         New module 'wcscpy'.
3067         * modules/wcscpy: New file.
3068         * lib/wchar.in.h (wcscpy): New declaration.
3069         * lib/wcscpy.c: New file.
3070         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3071         * m4/wcscpy.m4: New file.
3072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3075         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3076         * doc/posix-functions/wcscpy.texi: Mention the new module.
3077
3078 2011-02-05  Bruno Haible  <bruno@clisp.org>
3079
3080         New module 'wcsnlen'.
3081         * modules/wcsnlen: New file.
3082         * lib/wchar.in.h (wcsnlen): New declaration.
3083         * lib/wcsnlen.c: New file.
3084         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3085         * m4/wcsnlen.m4: New file.
3086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3089         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3090         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3091
3092 2011-02-05  Bruno Haible  <bruno@clisp.org>
3093
3094         New module 'wcslen'.
3095         * modules/wcslen: New file.
3096         * lib/wchar.in.h (wcslen): New declaration.
3097         * lib/wcslen.c: New file.
3098         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3099         * m4/wcslen.m4: New file.
3100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3103         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3104         * doc/posix-functions/wcslen.texi: Mention the new module.
3105
3106 2011-02-05  Bruno Haible  <bruno@clisp.org>
3107
3108         New module 'wmemset'.
3109         * modules/wmemset: New file.
3110         * lib/wchar.in.h (wmemset): New declaration.
3111         * lib/wmemset.c: New file.
3112         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3113         * m4/wmemset.m4: New file.
3114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3116         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3117         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3118         * doc/posix-functions/wmemset.texi: Mention the new module.
3119
3120 2011-02-05  Bruno Haible  <bruno@clisp.org>
3121
3122         New module 'wmemmove'.
3123         * modules/wmemmove: New file.
3124         * lib/wchar.in.h (wmemmove): New declaration.
3125         * lib/wmemmove.c: New file.
3126         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3127         * m4/wmemmove.m4: New file.
3128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3130         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3131         HAVE_WMEMMOVE.
3132         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3133         * doc/posix-functions/wmemmove.texi: Mention the new module.
3134
3135 2011-02-05  Bruno Haible  <bruno@clisp.org>
3136
3137         New module 'wmemcpy'.
3138         * modules/wmemcpy: New file.
3139         * lib/wchar.in.h (wmemcpy): New declaration.
3140         * lib/wmemcpy.c: New file.
3141         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3142         * m4/wmemcpy.m4: New file.
3143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3145         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3146         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3147         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3148
3149 2011-02-05  Bruno Haible  <bruno@clisp.org>
3150
3151         New module 'wmemcmp'.
3152         * modules/wmemcmp: New file.
3153         * lib/wchar.in.h (wmemcmp): New declaration.
3154         * lib/wmemcmp.c: New file.
3155         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3156         * m4/wmemcmp.m4: New file.
3157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3159         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3160         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3161         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3162
3163 2011-02-07  Jim Meyering  <meyering@redhat.com>
3164
3165         di-set, ino-map: new modules, from coreutils
3166         * lib/di-set.c: New file.
3167         * lib/di-set.h: Likewise.
3168         * lib/ino-map.c: Likewise.
3169         * lib/ino-map.h: Likewise.
3170         * modules/di-set: Likewise.
3171         * modules/di-set-tests: Likewise.
3172         * modules/ino-map: Likewise.
3173         * modules/ino-map-tests: Likewise.
3174         * tests/test-di-set.c: Likewise.
3175         * tests/test-ino-map.c: Likewise.
3176
3177 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3178
3179         getloadavg: merge minor changes from Emacs
3180
3181         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3182         (getloadavg): Use memset, not bzero.
3183
3184         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3185         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3186         clash (bug#86).
3187
3188 2010-11-14  Bruno Haible  <bruno@clisp.org>
3189
3190         Allow multiple gnulib generated replacements to coexist.
3191         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3192         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3193         * lib/langinfo.in.h (nl_item): Likewise.
3194         * lib/math.in.h (_NaN, NAN): Likewise.
3195         * lib/netdb.in.h (struct addrinfo): Likewise.
3196         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3197         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3198         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3199         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3200         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3201         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3202         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3203         pthread_mutexattr_init, pthread_mutexattr_settype,
3204         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3205         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3206         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3207         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3208         * lib/sched.in.h (struct sched_param): Likewise.
3209         * lib/se-selinux.in.h (security_class_t, security_context_t,
3210         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3211         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3212         lsetfilecon, fsetfilecon, security_check_context,
3213         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3214         Likewise.
3215         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3216         Likewise.
3217         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3218         _gl_function_taking_int_returning_void_t, union sigval,
3219         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3220         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3221         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3222         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3223         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3224         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3225         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3226         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3227         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3228         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3229         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3230         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3231         socklen_t, rpl_fd_isset): Likewise.
3232         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3233         * lib/sys_time.in.h (struct timeval): Likewise.
3234         * lib/sys_times.in.h (struct tms): Likewise.
3235         * lib/sys_utsname.in.h (struct utsname):
3236         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3237         * lib/unistd.in.h (getpagesize): Likewise.
3238         * lib/wchar.in.h (mbstate_t): Likewise.
3239         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3240         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3241         towlower, towupper): Likewise.
3242         Reported by Sam Steingold <sds@gnu.org>.
3243
3244 2011-02-05  Eric Blake  <eblake@redhat.com>
3245
3246         unsetenv: work around Haiku issues
3247         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3248         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3249
3250 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3251
3252         libposix: avoid calling error() within libposix
3253         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3254         is defined.
3255
3256 2011-02-05  Eric Blake  <eblake@redhat.com>
3257
3258         strerror_r-posix: port to cygwin
3259         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3260         implementation.
3261         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3262         * tests/test-strerror_r.c (main): Fix test.
3263         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3264         issue.
3265
3266 2011-02-05  Bruno Haible  <bruno@clisp.org>
3267
3268         New module 'wmemchr'.
3269         * modules/wmemchr: New file.
3270         * lib/wchar.in.h (wmemchr): New declaration.
3271         * lib/wmemchr.c: New file.
3272         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3273         * m4/wmemchr.m4: New file.
3274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3276         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3277         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3278         * doc/posix-functions/wmemchr.texi: Mention the new module.
3279
3280 2011-02-04  Eric Blake  <eblake@redhat.com>
3281
3282         fdopendir: detect FreeBSD bug
3283         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3284         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3285
3286 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3287
3288         stdbool: do not define HAVE_STDBOOL_H
3289         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3290         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3291         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3292         imported from the latest Autoconf git.  It was motivated by Emacs,
3293         which uses gnulib but does not need HAVE_STDBOOL_H.
3294
3295 2011-02-04  Bruno Haible  <bruno@clisp.org>
3296
3297         wcsnrtombs: Prepare for new module wwcsnrtombs.
3298         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3299         * lib/wcsnrtombs.c: Include it.
3300         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3301
3302         wcsrtombs: Prepare for new module wwcsrtombs.
3303         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3304         * lib/wcsrtombs.c: Include it.
3305         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3306
3307         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3308         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3309         * lib/mbsnrtowcs.c: Include it.
3310         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3311
3312         mbsrtowcs: Prepare for new module mbsrtowwcs.
3313         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3314         * lib/mbsrtowcs.c: Include it.
3315         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3316
3317 2011-02-04  Bruno Haible  <bruno@clisp.org>
3318
3319         vasnprintf: Reduce use of malloc for small format strings.
3320         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3321         (arguments): Add room for the first 7 arguments.
3322         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3323         (char_directives, u8_directives, u16_directives, u32_directives): Add
3324         room for the first 7 directives.
3325         * lib/printf-parse.c: Include <string.h>.
3326         (PRINTF_PARSE): Change memory handling code so that it uses the first
3327         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3328         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3329         Reported by Pádraig Brady <P@draigbrady.com>.
3330
3331 2011-01-31  Eric Blake  <eblake@redhat.com>
3332
3333         dup2: work around Haiku bug
3334         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3335         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3336         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3337         * tests/test-dup2.c (main): Enhance test.
3338
3339 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3340
3341         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3342         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3343         declared by eglibc 2.11.2.
3344         * lib/stdio.in.h: Likewise.
3345
3346 2011-01-31  Eric Blake  <eblake@redhat.com>
3347
3348         ignore-value: add missing test dependency
3349         * tests/test-ignore-value.c: Revert previous change; stdio.h
3350         provides off_t.
3351         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3352
3353 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3354
3355         mktime: clarify long_int width checking
3356         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3357         the top level, to make it clearer that the assumption about
3358         long_int width is being checked.  See
3359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3360
3361 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3362
3363         ignore-value: Fix self-test.
3364         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3365
3366 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3367
3368         TYPE_MAXIMUM: avoid theoretically undefined behavior
3369         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3370         negative number, which the C Standard says has undefined behavior.
3371         In practice this is not a problem, but might as well do it by the book.
3372         Reported by Rich Felker and Eric Blake; see
3373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3374         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3375         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3377         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3378         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3379         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3380
3381         mktime: #undef mktime before #defining it
3382         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3383
3384         mktime: systematically normalize tm_isdst comparisons
3385         * lib/mktime.c (isdst_differ): New function.
3386         (__mktime_internal): Use it systematically for all isdst comparisons.
3387         This completes the fix for libc BZ #6723, and removes the need for
3388         normalizing tm_isdst.  See
3389         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3390         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3391
3392         mktime: fix some integer overflow issues and sidestep the rest
3393
3394         This was prompted by a bug report by Benjamin Lindner for MinGW
3395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3396         His bug is due to signed integer overflow (0 - INT_MIN), and I
3397         I scanned through mktime.c looking for other integer overflow
3398         problems, fixing all the bugs I found.
3399
3400         Although the C Standard says the resulting code is still not safe
3401         in the presence of integer overflow, in practice it should be good
3402         enough for all real-world two's-complement implementations, except
3403         for debugging environments that deliberately trap on integer
3404         overflow (e.g., gcc -ftrapv).
3405
3406         * lib/mktime.c (WRAPV): New macro.
3407         (SHR): Also check that long_int and time_t shift right in the
3408         usual way, before using the fast-but-unportable method.
3409         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3410         used.  The code already assumed two's complement, so there's
3411         no need to test for alternatives.  All uses removed.
3412         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3413         the C standard.  Problem reported by Rich Felker in
3414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3415         (twos_complement_arithmetic): Also check long_int and time_t.
3416         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3417         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3418         (__mktime_internal): Avoid integer overflow with unary subtraction
3419         in two instances where -1 - X is an adequate replacement for -X,
3420         since the calculations are approximate.
3421
3422 2011-01-29  Eric Blake  <eblake@redhat.com>
3423
3424         mktime: avoid infinite loop
3425         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3426         type; behavior is still undefined but portable to all known targets.
3427         Reported by Rich Felker.
3428
3429 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3430
3431         rename, unlink, same-inode: Relicense.
3432         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3433         * modules/unlink (License): Likewise.
3434         * modules/same-inode (License): Likewise.
3435
3436 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3437
3438         mktime: avoid problems on NetBSD 5 / i386
3439         * lib/mktime.c (long_int): New type.  This works around a problem
3440         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3441         but time_t is 64 bits, and where I expect the existing code is
3442         wrong in some cases.
3443         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3444         (ydhms_diff): Bring back the compile-time check for wide-enough
3445         year and yday.
3446
3447         mktime: fix misspelling in comment
3448         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3449         This merges all recent glibc changes of importance.
3450
3451 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3452
3453         move-if-change: cope with concurrent mv of identical file.
3454         * build-aux/move-if-change (CMPPROG): Accept environment
3455         variable as an override for `cmp'.
3456         (usage): Document CMPPROG.
3457         Adjust comparison to drop stdout.  Cope with failure of mv if
3458         the target file exists and is identical to the source, for
3459         parallel builds.
3460         Report from H.J. Lu against binutils in PR binutils/12283.
3461
3462 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3463
3464         * users.txt: Mention sharutils.
3465
3466 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3467
3468         * users.txt: Mention OATH Toolkit.
3469
3470 2011-01-27  Bruno Haible  <bruno@clisp.org>
3471
3472         Prepare for supporting FreeBSD 10.
3473         * build-aux/config.libpath: Remove handling of freebsd1*.
3474
3475 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3476
3477         Prepare for supporting FreeBSD 10.
3478         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3479         match FreeBSD 10.0.
3480
3481 2011-01-27  Bruno Haible  <bruno@clisp.org>
3482
3483         vma-iter, get-rusage-as: Add OpenBSD support.
3484         * modules/vma-iter (configure.ac): Test for mquery.
3485         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3486         * lib/vma-iter.c: Include <sys/mman.h>.
3487         (vma_iterate): Add an implementation based on mquery().
3488         * lib/resource-ext.h (get_rusage_as): Update comments.
3489         * lib/get-rusage-as.c: Likewise.
3490         * lib/get-rusage-data.c: Likewise.
3491
3492 2011-01-26  Karl Berry  <karl@gnu.org>
3493
3494         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3495         variables to make it easier to override the makeinfo program used.
3496
3497 2011-01-26  Eric Blake  <eblake@redhat.com>
3498
3499         fcntl: work around Haiku F_DUPFD bugs
3500         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3501         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3502         cloexec bit on duplication.
3503         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3504
3505 2011-01-26  Bruno Haible  <bruno@clisp.org>
3506
3507         Enable memory leak tests on AIX.
3508         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3509         * tests/test-fprintf-posix3.c (main): Likewise.
3510
3511 2011-01-26  Bruno Haible  <bruno@clisp.org>
3512
3513         Tests for module 'get-rusage-data'.
3514         * modules/get-rusage-data-tests: New file.
3515         * tests/test-get-rusage-data.c: New file.
3516
3517         New module 'get-rusage-data'.
3518         * lib/resource-ext.h (get_rusage_data): New declaration.
3519         * lib/get-rusage-data.c: New file.
3520         * modules/get-rusage-data: New file.
3521
3522 2011-01-25  Bruno Haible  <bruno@clisp.org>
3523
3524         get-rusage-as: Allow for easier testing.
3525         * lib/resource-ext.h (get_rusage_as): Add comment.
3526         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3527         (main): New function for interactive testing.
3528
3529 2011-01-25  Bruno Haible  <bruno@clisp.org>
3530
3531         vma-iter: Treat Haiku like BeOS.
3532         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3533         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3534
3535 2011-01-25  Eric Blake  <eblake@redhat.com>
3536
3537         c-stack: fix regression on cygwin when libsigsegv is present
3538         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3539
3540 2011-01-24  Bruno Haible  <bruno@clisp.org>
3541
3542         vma-iter: Avoid empty intervals.
3543         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3544         on an empty interval.
3545
3546 2011-01-24  Jim Meyering  <meyering@redhat.com>
3547
3548         u64: remove unnecessary #include
3549         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3550
3551 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3552
3553         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3554         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3555
3556 2011-01-23  Bruno Haible  <bruno@clisp.org>
3557
3558         New module 'vma-iter'.
3559         * lib/vma-iter.h: New file.
3560         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3561         * modules/vma-iter: New file.
3562         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3563         for get_rusage_as_via_iterator.
3564         (vma_iterate_callback): New function.
3565         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3566         * modules/get-rusage-as (Depends-on): Add vma-iter.
3567
3568 2011-01-23  Bruno Haible  <bruno@clisp.org>
3569
3570         uninorm: Tweak includes.
3571         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3572         Reported by Jim Meyering.
3573
3574 2011-01-23  Bruno Haible  <bruno@clisp.org>
3575
3576         get-rusage-as: Improve on NetBSD.
3577         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3578         /proc, like on FreeBSD.
3579
3580 2011-01-23  Jim Meyering  <meyering@redhat.com>
3581
3582         xreadlink.h: remove unnecessary #include
3583         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3584
3585         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3586         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3587
3588 2011-01-23  Bruno Haible  <bruno@clisp.org>
3589
3590         get-rusage-as: Fix bug.
3591         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3592         original limit when aborting the first loop.
3593
3594 2011-01-23  Bruno Haible  <bruno@clisp.org>
3595
3596         wctype: Ensure valid C syntax.
3597         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3598         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3599
3600 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3601
3602         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3604         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3605         as they are needed only for configure's test case.
3606         This removes two unnecessary symbols from config.h.
3607
3608         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3609         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3611         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3612         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3613         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3614         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3615         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3616         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3617         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3619         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3620         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3621         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3622         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3623         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3624         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3625         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3626
3627 2011-01-21  Eric Blake  <eblake@redhat.com>
3628
3629         maintainer-makefile: work with older git for submodule check
3630         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3631         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3632         Reported by Matthias Bolte.
3633
3634         bootstrap: minor portability fixes
3635         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3636         (usage): Omit leading capital and trailing . on help phrases, per
3637         GNU Coding Standards.
3638         (check_versions, top level): Prefix messages with script name.
3639
3640 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3641
3642         bootstrap: support --no-git option
3643         * build-aux/bootstrap: Add --no-git option, to be used when
3644         --gnulib-srcdir points to the exact desired checkout.
3645
3646 2011-01-21  Eric Blake  <eblake@redhat.com>
3647
3648         strerror_r-posix: work with glibc 2.13
3649         * lib/strerror_r.c (strerror_r): Fix return type.
3650
3651 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3652             Bruno Haible  <bruno@clisp.org>
3653
3654         uN_strstr: New unit tests.
3655         * modules/unistr/u8-strstr-tests: New file.
3656         * modules/unistr/u16-strstr-tests: New file.
3657         * modules/unistr/u32-strstr-tests: New file.
3658         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3659         * tests/unistr/test-u8-strstr.c: New file.
3660         * tests/unistr/test-u16-strstr.c: New file.
3661         * tests/unistr/test-u32-strstr.c: New file.
3662
3663 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3664             Bruno Haible  <bruno@clisp.org>
3665
3666         Make uN_strstr functions O(n) worst-case.
3667         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3668         16-bit and 32-bit unit cases, use the unibyte algorithm from
3669         lib/mbsstr.c.
3670         * lib/unistr/u8-strstr.c: Include <string.h>.
3671         (UNIT_IS_UINT8_T): New macro.
3672         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3673         (U_STRLEN, U_STRNLEN): New macros.
3674         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3675         (U_STRLEN, U_STRNLEN): New macros.
3676         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3677         (configure.ac): Update required libunistring version.
3678         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3679         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3680         malloca.
3681         (configure.ac): Update required libunistring version.
3682         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3683         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3684         malloca.
3685         (configure.ac): Update required libunistring version.
3686
3687 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3688             Bruno Haible  <bruno@clisp.org>
3689
3690         Prepare for faster uN_strstr functions.
3691         * lib/str-kmp.h: Support definable UNITs.
3692         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3693         needle_len argument.
3694         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3695         * lib/mbscasestr.c (mbscasestr): Likewise.
3696
3697 2011-01-21  Pádraig Brady <P@draigBrady.com>
3698
3699         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3700         * tests/test-malloca.c (main): Unset the environment variable
3701         to greatly speed up the test.
3702         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3703         * modules/malloca-tests: Depend on unsetenv.
3704
3705 2011-01-21  Pádraig Brady <P@draigBrady.com>
3706
3707         ignore-value: remove stdint dependency
3708         * lib/ignore-value.h: Remove <stdint.h>
3709         * modules/ignore-value: Remove stdint dependency.
3710
3711 2011-01-21  Jim Meyering  <meyering@redhat.com>
3712
3713         maint.mk: adjust variable name to be consistent with other gl_ vars
3714         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3715         to be lower case.
3716
3717 2011-01-20  Jim Meyering  <meyering@redhat.com>
3718
3719         maint.mk: make "check" depend on public-submodule-commit by default
3720         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3721
3722 2011-01-20  Bruno Haible  <bruno@clisp.org>
3723
3724         mbfile, mbiter: Complete change from 2008-12-21.
3725         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3726         * m4/mbiter.m4 (gl_MBITER): Likewise.
3727
3728 2011-01-20  Jim Meyering  <meyering@redhat.com>
3729
3730         init.sh: insert space between each function name and "()"
3731         * tests/init.sh: Make it a little easier to see that a function's
3732         name is "warn_", and not "warn" when looking at the first part of
3733         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3734
3735 2011-01-20  Jim Meyering  <meyering@redhat.com>
3736
3737         mountlist: clean up code formatting
3738         * lib/mountlist.c (read_file_system_list): Split a long line,
3739         correct bracing style, use NULL in place of "(struct statfs *)0",
3740         don't parenthesize return value, add spaces around "=" and after
3741         ";-in-for-stmt".
3742
3743 2011-01-14  Markus Duft <mduft@gentoo.org>
3744
3745         mountlist: add support for Interix
3746         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3747         Apply statvfs to all entries of /dev/fs.
3748         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3749         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3750
3751 2011-01-20  Jim Meyering  <meyering@redhat.com>
3752
3753         maint.mk: improve the public-submodule-commit rule
3754         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3755         to suppress printing of its commands... unless V=1.
3756         Add git submodule's --quiet option to suppress printing of e.g.,
3757         "Entering gnulib" output.
3758         "cd" into $(srcdir) before running git submodule.
3759
3760 2011-01-20  Bruno Haible  <bruno@clisp.org>
3761
3762         include_next: Fix bug introduced on 2011-01-18.
3763         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3764         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3765         ac_cv_header_... variable if the second argument is not 'check'.
3766         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3767         gl_NEXT_HEADERS_INTERNAL.
3768
3769 2011-01-20  Bruno Haible  <bruno@clisp.org>
3770
3771         Allow the user to avoid the GNULIB_TEST_* macros.
3772         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3773         Suggested by Paul Eggert.
3774
3775 2011-01-14  Jim Meyering  <meyering@redhat.com>
3776
3777         bootstrap: avoid failure when there is no .gitmodules file
3778         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3779         has been assigned to, even when its value is the empty string.
3780         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3781         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3782         Reported by John W. Eaton <jwe@gnu.org>.
3783
3784 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3785
3786         assume <ctype.h>, ..., <time.h> exist
3787         For years gnulib has been assuming the existence of the headers
3788         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3789         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3790         them, since they don't appear to be needed.
3791         * README (Portability guidelines): Document this.
3792         * lib/flock.c: Assume <fcntl.h> exists.
3793         * lib/regex_internal.h: Assume <locale.h> exists.
3794         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3795         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3796         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3797         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3798         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3799         * m4/regex.m4 (gl_REGEX): Likewise.
3800         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3801         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3802         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3803         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3804         * tests/test-argp.c: Likewise.
3805         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3806
3807         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3808         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3809         AA_APPLE_UNIVERSAL_BUILD.  See
3810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3811         * NEWS: Document this.
3812
3813 2011-01-19  Eric Blake  <eblake@redhat.com>
3814
3815         c-stack: assume stack overflow if SA_SIGINFO unsupported
3816         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3817         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3818         sigaction will work.
3819         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3820         behavior match Linux.
3821         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3822
3823         stdbool-tests: accomodate Haiku
3824         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3825
3826         binary-io: fix O_TEXT on Haiku
3827         * modules/binary-io (Depends-on): Add fcntl-h.
3828         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3829         than blindly undefining O_TEXT.
3830         Reported by Scott McCreary.
3831
3832 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3833
3834         include_next: do not check for standard headers like stddef.h
3835
3836         I found this problem when modifying Emacs to use gnulib.
3837         I noticed that it added HAVE_STDDEF_H to config.h, even though
3838         gnulib always assumes <stddef.h> exists as per README and this
3839         symbol is unnecessary.
3840         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3841         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3842         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3843         faster for headers like stddef.h that are known to exist.
3844         (gl_CHECK_NEXT_HEADERS): Use it.
3845         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3846         rather than gl_CHECK_NEXT_HEADERS.
3847         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3848         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3849
3850 2011-01-18  Eric Blake  <eblake@redhat.com>
3851
3852         ansi-c++-opt: skip C++ dependency style if C++ is unused
3853         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3854         tests when we know C++ compilation is not desired.
3855         Reported by Scott McCreary.
3856
3857 2011-01-18  Bruno Haible  <bruno@clisp.org>
3858
3859         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3860         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3861         (main): Perform test also when getrlimit and setrlimit don't exist or
3862         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3863         limiting the address space size using setrlimit, compare the address
3864         space size before and after the the test.
3865         * tests/test-dprintf-posix2.c: Likewise.
3866         * tests/test-fprintf-posix3.sh: Update skip messages.
3867         * tests/test-dprintf-posix2.sh: Likewise.
3868         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3869         * modules/dprintf-posix-tests (Depends-on): Likewise.
3870         Reported by Bruce Korb <bkorb@gnu.org> and
3871         Gary V. Vaughan <gary@gnu.org>.
3872
3873 2011-01-18  Bruno Haible  <bruno@clisp.org>
3874
3875         get-rusage-as: Improvement for Cygwin.
3876         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3877         areas that are merely reserved.
3878
3879 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3880
3881         strftime: remove dependencies on multibyte modules
3882
3883         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3884         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3885         only if __osf__ is defined, and I suspect OSF doesn't need these
3886         other modules.  If my guess is wrong, we'll need to come up with a
3887         variant of strftime that doesn't need the multibyte modules.
3888
3889         I discovered this problem when attempting modify Emacs to use the
3890         strftime module.  With the previous gnulib, this caused Emacs to
3891         need 31 new files, ranging from lib/config.charset to
3892         m4/wint_t.m4.  This was overkill and I expect would be offputting
3893         to the Emacs maintainers.  After this change, only 6 new files are
3894         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3895         stdbool.m4, and tm_gmtoff.m4.
3896
3897         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3898         Suggested by Bruno Haible in
3899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3900         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3901         and do not check for wchar.h.
3902         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3903         (Depends-on): Remove mbrlen, mbsinit, wchar.
3904
3905 2011-01-18  Bruno Haible  <bruno@clisp.org>
3906
3907         Tests for module 'get-rusage-as'.
3908         * modules/get-rusage-as-tests: New file.
3909         * tests/test-get-rusage-as.c: New file.
3910
3911         New module 'get-rusage-as'.
3912         * modules/get-rusage-as: New file.
3913         * lib/resource-ext.h: New file.
3914         * lib/get-rusage-as.c: New file.
3915
3916 2011-01-17  Eric Blake  <eblake@redhat.com>
3917
3918         sigaction: relax license from LGPLv3+ to LGPLv2+
3919         * modules/sigaction (License): Relax to LGPLv2+.
3920
3921 2011-01-14  Bruno Haible  <bruno@clisp.org>
3922
3923         filemode: Make function declarations usable in C++ mode.
3924         * lib/filemode.h: Enclose function declarations in extern "C" block.
3925         Reported by John W. Eaton <jwe@gnu.org>.
3926
3927 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3928
3929         save-cwd: no longer include "xgetcwd.h"
3930         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3931         This avoids a compilation failure in projects that use save-cwd
3932         without also using the xgetcwd module.
3933
3934 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3935
3936         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3937         This is so that a program like Emacs, which needs only dtoastr,
3938         does not have to bother with distributing and compiling ftoastr
3939         and ldtoastr.
3940         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3941         * modules/dtoastr, modules/ldtoastr: New files.
3942         * modules/ftoastr: Now works just for 'float'.
3943         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3944         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3945         dtoastr.c, ldtoastr.c.
3946
3947 2011-01-11  Jim Meyering  <meyering@redhat.com>
3948
3949         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3950         There is no need to work around the lack of the fchdir function,
3951         since gnulib can now provide a replacement when required.
3952         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3953         * modules/save-cwd (Depends-on): Add fchdir.
3954
3955 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3956
3957         openat, save-cwd: avoid xmalloc
3958
3959         This removes a direct (but undocumented) dependency of openat on
3960         xalloc, along with an indirect dependency via save-cwd.  It also
3961         removes a dependency of save-cwd on xgetcwd, and thereby
3962         indirectly on xalloc.  This change causes the openat substitute
3963         to fall back on save_cwd when memory is tight, and for save_cwd to
3964         fail instead of dying when memory is tight, but that's good enough.
3965         Problem and initial idea for fix reported by Bastien Roucaries in
3966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3967
3968         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3969         xalloc.h (for xmalloc).
3970         (openat_proc_name): Use malloc, not xmalloc.
3971         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3972         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3973
3974         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3975         This avoids heap allocation for file names whose lengths are in
3976         the range 512..1023, with the upper bound increasing to at most
3977         4031 depending on the platform's PATH_MAX.  (We do not want
3978         pathmax.h here as it might supply a non-constant PATH_MAX.)
3979         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3980         Perhaps they should be moved to malloca.h?
3981         (OPENAT_BUFFER_SIZE): Use them.
3982
3983 2011-01-10  Bruno Haible  <bruno@clisp.org>
3984
3985         doc: Update users.txt.
3986         * users.txt: Add recutils.
3987
3988 2011-01-09  Karl Berry  <karl@gnu.org>
3989
3990         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3991
3992         * doc/configmake.texi: New file.
3993         * doc/gnulib.texi: Include it.
3994         * modules/configmake: Move documentation from here.
3995
3996 2011-01-09  Bruno Haible  <bruno@clisp.org>
3997
3998         Update to Unicode 6.0.0.
3999         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4000         (get_lbp): Update for Unicode 6.0.0.
4001         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4002         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4003         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4004         U+11001, U+11038..U+11046. Remove U+06DE.
4005         (uc_width): Fix bounds of planes.
4006         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4007         lib/uniwidth/width.c.
4008         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4009         trailing whitespace removed.
4010         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4011         without comments, but with the original copyright notice.
4012         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4013         * lib/unicase/ignorable.h: Likewise.
4014         * lib/unicase/tocasefold.h: Likewise.
4015         * lib/unicase/tolower.h: Likewise.
4016         * lib/unicase/totitle.h: Likewise.
4017         * lib/unicase/toupper.h: Likewise.
4018         * lib/unictype/bidi_of.h: Likewise.
4019         * lib/unictype/blocks.h: Likewise.
4020         * lib/unictype/categ_C.h: Likewise.
4021         * lib/unictype/categ_Cn.h: Likewise.
4022         * lib/unictype/categ_L.h: Likewise.
4023         * lib/unictype/categ_Ll.h: Likewise.
4024         * lib/unictype/categ_Lm.h: Likewise.
4025         * lib/unictype/categ_Lo.h: Likewise.
4026         * lib/unictype/categ_Lu.h: Likewise.
4027         * lib/unictype/categ_M.h: Likewise.
4028         * lib/unictype/categ_Mc.h: Likewise.
4029         * lib/unictype/categ_Me.h: Likewise.
4030         * lib/unictype/categ_Mn.h: Likewise.
4031         * lib/unictype/categ_N.h: Likewise.
4032         * lib/unictype/categ_Nd.h: Likewise.
4033         * lib/unictype/categ_No.h: Likewise.
4034         * lib/unictype/categ_P.h: Likewise.
4035         * lib/unictype/categ_Po.h: Likewise.
4036         * lib/unictype/categ_S.h: Likewise.
4037         * lib/unictype/categ_Sc.h: Likewise.
4038         * lib/unictype/categ_Sk.h: Likewise.
4039         * lib/unictype/categ_Sm.h: Likewise.
4040         * lib/unictype/categ_So.h: Likewise.
4041         * lib/unictype/categ_of.h: Likewise.
4042         * lib/unictype/combining.h: Likewise.
4043         * lib/unictype/ctype_alnum.h: Likewise.
4044         * lib/unictype/ctype_alpha.h: Likewise.
4045         * lib/unictype/ctype_graph.h: Likewise.
4046         * lib/unictype/ctype_lower.h: Likewise.
4047         * lib/unictype/ctype_print.h: Likewise.
4048         * lib/unictype/ctype_punct.h: Likewise.
4049         * lib/unictype/ctype_upper.h: Likewise.
4050         * lib/unictype/decdigit.h: Likewise.
4051         * lib/unictype/digit.h: Likewise.
4052         * lib/unictype/numeric.h: Likewise.
4053         * lib/unictype/pr_alphabetic.h: Likewise.
4054         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4055         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4056         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4057         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4058         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4059         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4060         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4061         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4062         * lib/unictype/pr_case_ignorable.h: Likewise.
4063         * lib/unictype/pr_cased.h: Likewise.
4064         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4065         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4066         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4067         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4068         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4069         * lib/unictype/pr_combining.h: Likewise.
4070         * lib/unictype/pr_composite.h: Likewise.
4071         * lib/unictype/pr_currency_symbol.h: Likewise.
4072         * lib/unictype/pr_decimal_digit.h: Likewise.
4073         * lib/unictype/pr_deprecated.h: Likewise.
4074         * lib/unictype/pr_format_control.h: Likewise.
4075         * lib/unictype/pr_grapheme_base.h: Likewise.
4076         * lib/unictype/pr_grapheme_extend.h: Likewise.
4077         * lib/unictype/pr_grapheme_link.h: Likewise.
4078         * lib/unictype/pr_id_continue.h: Likewise.
4079         * lib/unictype/pr_id_start.h: Likewise.
4080         * lib/unictype/pr_ideographic.h: Likewise.
4081         * lib/unictype/pr_lowercase.h: Likewise.
4082         * lib/unictype/pr_math.h: Likewise.
4083         * lib/unictype/pr_numeric.h: Likewise.
4084         * lib/unictype/pr_other_alphabetic.h: Likewise.
4085         * lib/unictype/pr_other_id_continue.h: Likewise.
4086         * lib/unictype/pr_other_math.h: Likewise.
4087         * lib/unictype/pr_punctuation.h: Likewise.
4088         * lib/unictype/pr_sentence_terminal.h: Likewise.
4089         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4090         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4091         * lib/unictype/pr_unified_ideograph.h: Likewise.
4092         * lib/unictype/pr_uppercase.h: Likewise.
4093         * lib/unictype/pr_xid_continue.h: Likewise.
4094         * lib/unictype/pr_xid_start.h: Likewise.
4095         * lib/unictype/scripts.h: Likewise.
4096         * lib/unictype/scripts_byname.gperf: Likewise.
4097         * lib/unictype/sy_java_ident.h: Likewise.
4098         * lib/unigbrk/gbrkprop.h: Likewise.
4099         * lib/unilbrk/lbrkprop1.h: Likewise.
4100         * lib/unilbrk/lbrkprop2.h: Likewise.
4101         * lib/uninorm/decomposition-table2.h: Likewise.
4102         * lib/uniwbrk/wbrkprop.h: Likewise.
4103         * tests/unicase/test-cased.c: Likewise.
4104         * tests/unicase/test-ignorable.c: Likewise.
4105         * tests/unicase/test-uc_tolower.c: Likewise.
4106         * tests/unicase/test-uc_totitle.c: Likewise.
4107         * tests/unicase/test-uc_toupper.c: Likewise.
4108         * tests/unictype/test-categ_C.c: Likewise.
4109         * tests/unictype/test-categ_Cn.c: Likewise.
4110         * tests/unictype/test-categ_L.c: Likewise.
4111         * tests/unictype/test-categ_Ll.c: Likewise.
4112         * tests/unictype/test-categ_Lm.c: Likewise.
4113         * tests/unictype/test-categ_Lo.c: Likewise.
4114         * tests/unictype/test-categ_Lu.c: Likewise.
4115         * tests/unictype/test-categ_M.c: Likewise.
4116         * tests/unictype/test-categ_Mc.c: Likewise.
4117         * tests/unictype/test-categ_Me.c: Likewise.
4118         * tests/unictype/test-categ_Mn.c: Likewise.
4119         * tests/unictype/test-categ_N.c: Likewise.
4120         * tests/unictype/test-categ_Nd.c: Likewise.
4121         * tests/unictype/test-categ_No.c: Likewise.
4122         * tests/unictype/test-categ_P.c: Likewise.
4123         * tests/unictype/test-categ_Po.c: Likewise.
4124         * tests/unictype/test-categ_S.c: Likewise.
4125         * tests/unictype/test-categ_Sc.c: Likewise.
4126         * tests/unictype/test-categ_Sk.c: Likewise.
4127         * tests/unictype/test-categ_Sm.c: Likewise.
4128         * tests/unictype/test-categ_So.c: Likewise.
4129         * tests/unictype/test-ctype_alnum.c: Likewise.
4130         * tests/unictype/test-ctype_alpha.c: Likewise.
4131         * tests/unictype/test-ctype_graph.c: Likewise.
4132         * tests/unictype/test-ctype_lower.c: Likewise.
4133         * tests/unictype/test-ctype_print.c: Likewise.
4134         * tests/unictype/test-ctype_punct.c: Likewise.
4135         * tests/unictype/test-ctype_upper.c: Likewise.
4136         * tests/unictype/test-decdigit.h: Likewise.
4137         * tests/unictype/test-digit.h: Likewise.
4138         * tests/unictype/test-numeric.h: Likewise.
4139         * tests/unictype/test-pr_alphabetic.c: Likewise.
4140         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4141         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4142         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4143         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4144         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4145         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4146         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4147         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4148         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4149         * tests/unictype/test-pr_cased.c: Likewise.
4150         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4151         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4152         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4153         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4154         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4155         * tests/unictype/test-pr_combining.c: Likewise.
4156         * tests/unictype/test-pr_composite.c: Likewise.
4157         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4158         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4159         * tests/unictype/test-pr_deprecated.c: Likewise.
4160         * tests/unictype/test-pr_format_control.c: Likewise.
4161         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4162         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4163         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4164         * tests/unictype/test-pr_id_continue.c: Likewise.
4165         * tests/unictype/test-pr_id_start.c: Likewise.
4166         * tests/unictype/test-pr_ideographic.c: Likewise.
4167         * tests/unictype/test-pr_lowercase.c: Likewise.
4168         * tests/unictype/test-pr_math.c: Likewise.
4169         * tests/unictype/test-pr_numeric.c: Likewise.
4170         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4171         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4172         * tests/unictype/test-pr_other_math.c: Likewise.
4173         * tests/unictype/test-pr_punctuation.c: Likewise.
4174         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4175         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4176         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4177         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4178         * tests/unictype/test-pr_uppercase.c: Likewise.
4179         * tests/unictype/test-pr_xid_continue.c: Likewise.
4180         * tests/unictype/test-pr_xid_start.c: Likewise.
4181         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4182         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4183         changes.
4184         * lib/unictype/categ_Cc.h: Likewise.
4185         * lib/unictype/categ_Cf.h: Likewise.
4186         * lib/unictype/categ_Co.h: Likewise.
4187         * lib/unictype/categ_Cs.h: Likewise.
4188         * lib/unictype/categ_Lt.h: Likewise.
4189         * lib/unictype/categ_Nl.h: Likewise.
4190         * lib/unictype/categ_Pc.h: Likewise.
4191         * lib/unictype/categ_Pd.h: Likewise.
4192         * lib/unictype/categ_Pe.h: Likewise.
4193         * lib/unictype/categ_Pf.h: Likewise.
4194         * lib/unictype/categ_Pi.h: Likewise.
4195         * lib/unictype/categ_Ps.h: Likewise.
4196         * lib/unictype/categ_Z.h: Likewise.
4197         * lib/unictype/categ_Zl.h: Likewise.
4198         * lib/unictype/categ_Zp.h: Likewise.
4199         * lib/unictype/categ_Zs.h: Likewise.
4200         * lib/unictype/ctype_blank.h: Likewise.
4201         * lib/unictype/ctype_cntrl.h: Likewise.
4202         * lib/unictype/ctype_digit.h: Likewise.
4203         * lib/unictype/ctype_space.h: Likewise.
4204         * lib/unictype/ctype_xdigit.h: Likewise.
4205         * lib/unictype/mirror.h: Likewise.
4206         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4207         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4208         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4209         * lib/unictype/pr_bidi_control.h: Likewise.
4210         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4211         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4212         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4213         * lib/unictype/pr_bidi_pdf.h: Likewise.
4214         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4215         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4216         * lib/unictype/pr_dash.h: Likewise.
4217         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4218         * lib/unictype/pr_diacritic.h: Likewise.
4219         * lib/unictype/pr_extender.h: Likewise.
4220         * lib/unictype/pr_hex_digit.h: Likewise.
4221         * lib/unictype/pr_hyphen.h: Likewise.
4222         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4223         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4224         * lib/unictype/pr_ignorable_control.h: Likewise.
4225         * lib/unictype/pr_iso_control.h: Likewise.
4226         * lib/unictype/pr_join_control.h: Likewise.
4227         * lib/unictype/pr_left_of_pair.h: Likewise.
4228         * lib/unictype/pr_line_separator.h: Likewise.
4229         * lib/unictype/pr_logical_order_exception.h: Likewise.
4230         * lib/unictype/pr_non_break.h: Likewise.
4231         * lib/unictype/pr_not_a_character.h: Likewise.
4232         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4233         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4234         * lib/unictype/pr_other_id_start.h: Likewise.
4235         * lib/unictype/pr_other_lowercase.h: Likewise.
4236         * lib/unictype/pr_other_uppercase.h: Likewise.
4237         * lib/unictype/pr_paired_punctuation.h: Likewise.
4238         * lib/unictype/pr_paragraph_separator.h: Likewise.
4239         * lib/unictype/pr_pattern_syntax.h: Likewise.
4240         * lib/unictype/pr_pattern_white_space.h: Likewise.
4241         * lib/unictype/pr_private_use.h: Likewise.
4242         * lib/unictype/pr_quotation_mark.h: Likewise.
4243         * lib/unictype/pr_radical.h: Likewise.
4244         * lib/unictype/pr_soft_dotted.h: Likewise.
4245         * lib/unictype/pr_space.h: Likewise.
4246         * lib/unictype/pr_titlecase.h: Likewise.
4247         * lib/unictype/pr_variation_selector.h: Likewise.
4248         * lib/unictype/pr_white_space.h: Likewise.
4249         * lib/unictype/pr_zero_width.h: Likewise.
4250         * lib/unictype/sy_c_ident.h: Likewise.
4251         * lib/unictype/sy_c_whitespace.h: Likewise.
4252         * lib/unictype/sy_java_whitespace.h: Likewise.
4253         * lib/uninorm/composition-table.gperf: Likewise.
4254         * lib/uninorm/decomposition-table1.h: Likewise.
4255         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4256         LB8.
4257         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4258         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4259         * modules/unictype/*: Bump version number of expected libunistring
4260         version.
4261
4262 2011-01-09  Bruno Haible  <bruno@clisp.org>
4263
4264         Update to Unicode 5.2.0.
4265         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4266         trailing whitespace removed.
4267
4268 2011-01-09  Bruno Haible  <bruno@clisp.org>
4269
4270         New Unicode character properties, from Unicode 5.2.0.
4271         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4272         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4273         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4274         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4275         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4276         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4277         uc_is_property_cased, uc_is_property_case_ignorable,
4278         uc_is_property_changes_when_lowercased,
4279         uc_is_property_changes_when_uppercased,
4280         uc_is_property_changes_when_titlecased,
4281         uc_is_property_changes_when_casefolded,
4282         uc_is_property_changes_when_casemapped): New declarations.
4283         * lib/unictype/pr_byname.gperf: Add the new properties.
4284         * modules/unictype/property-byname (Depends-on): Depend on the new
4285         properties modules.
4286         * modules/unictype/property-all (Depends-on): Likewise.
4287         * MODULES.html.sh (Unicode string functions): Add
4288         unictype/property-case-ignorable, unictype/property-cased,
4289         unictype/property-changes-when-casefolded,
4290         unictype/property-changes-when-casemapped,
4291         unictype/property-changes-when-lowercased,
4292         unictype/property-changes-when-titlecased,
4293         unictype/property-changes-when-uppercased.
4294
4295         New module 'unictype/property-changes-when-casemapped'.
4296         * modules/unictype/property-changes-when-casemapped: New file.
4297         * lib/unictype/pr_changes_when_casemapped.c: New file.
4298         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4299         generated by gen-uni-tables.
4300         * modules/unictype/property-changes-when-casemapped-tests: New file.
4301         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4302         automatically generated by gen-uni-tables.
4303
4304         New module 'unictype/property-changes-when-casefolded'.
4305         * modules/unictype/property-changes-when-casefolded: New file.
4306         * lib/unictype/pr_changes_when_casefolded.c: New file.
4307         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4308         generated by gen-uni-tables.
4309         * modules/unictype/property-changes-when-casefolded-tests: New file.
4310         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4311         automatically generated by gen-uni-tables.
4312
4313         New module 'unictype/property-changes-when-titlecased'.
4314         * modules/unictype/property-changes-when-titlecased: New file.
4315         * lib/unictype/pr_changes_when_titlecased.c: New file.
4316         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4317         generated by gen-uni-tables.
4318         * modules/unictype/property-changes-when-titlecased-tests: New file.
4319         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4320         automatically generated by gen-uni-tables.
4321
4322         New module 'unictype/property-changes-when-uppercased'.
4323         * modules/unictype/property-changes-when-uppercased: New file.
4324         * lib/unictype/pr_changes_when_uppercased.c: New file.
4325         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4326         generated by gen-uni-tables.
4327         * modules/unictype/property-changes-when-uppercased-tests: New file.
4328         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4329         automatically generated by gen-uni-tables.
4330
4331         New module 'unictype/property-changes-when-lowercased'.
4332         * modules/unictype/property-changes-when-lowercased: New file.
4333         * lib/unictype/pr_changes_when_lowercased.c: New file.
4334         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4335         generated by gen-uni-tables.
4336         * modules/unictype/property-changes-when-lowercased-tests: New file.
4337         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4338         automatically generated by gen-uni-tables.
4339
4340         New module 'unictype/property-case-ignorable'.
4341         * modules/unictype/property-case-ignorable: New file.
4342         * lib/unictype/pr_case_ignorable.c: New file.
4343         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4344         by gen-uni-tables.
4345         * modules/unictype/property-case-ignorable-tests: New file.
4346         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4347         generated by gen-uni-tables.
4348
4349         New module 'unictype/property-cased'.
4350         * modules/unictype/property-cased: New file.
4351         * lib/unictype/pr_cased.c: New file.
4352         * lib/unictype/pr_cased.h: New file, automatically generated by
4353         gen-uni-tables.
4354         * modules/unictype/property-cased-tests: New file.
4355         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4356         gen-uni-tables.
4357
4358 2011-01-09  Bruno Haible  <bruno@clisp.org>
4359
4360         Update to Unicode 5.2.0.
4361         * lib/gen-uni-tables.c (output_predicate, output_category,
4362         output_combclass, output_bidi_category, output_decimal_digit_test,
4363         output_decimal_digit, output_digit_test, output_digit,
4364         output_numeric_test, output_numeric, output_mirror, output_scripts,
4365         output_scripts_byname, output_blocks, output_ident_category): Fix
4366         comment header.
4367         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4368         get_wbp.
4369         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4370         items.
4371         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4372         Changes_When_Lowercased, Changes_When_Uppercased,
4373         Changes_When_Titlecased, Changes_When_Casefolded,
4374         Changes_When_Casemapped.
4375         (is_property_alphabetic, is_property_default_ignorable_code_point):
4376         Update for Unicode 5.2.0.
4377         (is_property_cased, is_property_case_ignorable,
4378         is_property_changes_when_lowercased,
4379         is_property_changes_when_uppercased,
4380         is_property_changes_when_titlecased,
4381         is_property_changes_when_casefolded,
4382         is_property_changes_when_casemapped): New functions.
4383         (output_properties): Output also the properties cased, case_ignorable,
4384         changes_when_lowercased, changes_when_uppercased,
4385         changes_when_titlecased, changes_when_casefolded,
4386         changes_when_casemapped.
4387         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4388         Unicode TR#11 revision 17 -> 19.
4389         (LBP_CP): New enumeration value.
4390         (LBP_*): Adjust values accordingly.
4391         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4392         TR#14 revision 22 -> 24.
4393         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4394         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4395         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4396         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4397         is_WBP_MIDLETTER.
4398         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4399         the code1 and code2 of each composition rule.
4400         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4401         * lib/unicase/ignorable.h: Likewise.
4402         * lib/unicase/tocasefold.h: Likewise.
4403         * lib/unicase/tolower.h: Likewise.
4404         * lib/unicase/totitle.h: Likewise.
4405         * lib/unicase/toupper.h: Likewise.
4406         * lib/unictype/bidi_of.h: Likewise.
4407         * lib/unictype/blocks.h: Likewise.
4408         * lib/unictype/categ_C.h: Likewise.
4409         * lib/unictype/categ_Cf.h: Likewise.
4410         * lib/unictype/categ_Cn.h: Likewise.
4411         * lib/unictype/categ_L.h: Likewise.
4412         * lib/unictype/categ_Ll.h: Likewise.
4413         * lib/unictype/categ_Lm.h: Likewise.
4414         * lib/unictype/categ_Lo.h: Likewise.
4415         * lib/unictype/categ_Lu.h: Likewise.
4416         * lib/unictype/categ_M.h: Likewise.
4417         * lib/unictype/categ_Mc.h: Likewise.
4418         * lib/unictype/categ_Mn.h: Likewise.
4419         * lib/unictype/categ_N.h: Likewise.
4420         * lib/unictype/categ_Nd.h: Likewise.
4421         * lib/unictype/categ_Nl.h: Likewise.
4422         * lib/unictype/categ_No.h: Likewise.
4423         * lib/unictype/categ_P.h: Likewise.
4424         * lib/unictype/categ_Pd.h: Likewise.
4425         * lib/unictype/categ_Po.h: Likewise.
4426         * lib/unictype/categ_S.h: Likewise.
4427         * lib/unictype/categ_Sc.h: Likewise.
4428         * lib/unictype/categ_So.h: Likewise.
4429         * lib/unictype/categ_of.h: Likewise.
4430         * lib/unictype/combining.h: Likewise.
4431         * lib/unictype/ctype_alnum.h: Likewise.
4432         * lib/unictype/ctype_alpha.h: Likewise.
4433         * lib/unictype/ctype_graph.h: Likewise.
4434         * lib/unictype/ctype_lower.h: Likewise.
4435         * lib/unictype/ctype_print.h: Likewise.
4436         * lib/unictype/ctype_punct.h: Likewise.
4437         * lib/unictype/ctype_upper.h: Likewise.
4438         * lib/unictype/decdigit.h: Likewise.
4439         * lib/unictype/digit.h: Likewise.
4440         * lib/unictype/numeric.h: Likewise.
4441         * lib/unictype/pr_alphabetic.h: Likewise.
4442         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4443         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4444         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4445         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4446         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4447         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4448         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4449         * lib/unictype/pr_combining.h: Likewise.
4450         * lib/unictype/pr_composite.h: Likewise.
4451         * lib/unictype/pr_currency_symbol.h: Likewise.
4452         * lib/unictype/pr_dash.h: Likewise.
4453         * lib/unictype/pr_decimal_digit.h: Likewise.
4454         * lib/unictype/pr_deprecated.h: Likewise.
4455         * lib/unictype/pr_diacritic.h: Likewise.
4456         * lib/unictype/pr_extender.h: Likewise.
4457         * lib/unictype/pr_grapheme_base.h: Likewise.
4458         * lib/unictype/pr_grapheme_extend.h: Likewise.
4459         * lib/unictype/pr_grapheme_link.h: Likewise.
4460         * lib/unictype/pr_id_continue.h: Likewise.
4461         * lib/unictype/pr_id_start.h: Likewise.
4462         * lib/unictype/pr_ideographic.h: Likewise.
4463         * lib/unictype/pr_ignorable_control.h: Likewise.
4464         * lib/unictype/pr_logical_order_exception.h: Likewise.
4465         * lib/unictype/pr_lowercase.h: Likewise.
4466         * lib/unictype/pr_numeric.h: Likewise.
4467         * lib/unictype/pr_other_alphabetic.h: Likewise.
4468         * lib/unictype/pr_punctuation.h: Likewise.
4469         * lib/unictype/pr_sentence_terminal.h: Likewise.
4470         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4471         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4472         * lib/unictype/pr_unified_ideograph.h: Likewise.
4473         * lib/unictype/pr_uppercase.h: Likewise.
4474         * lib/unictype/pr_xid_continue.h: Likewise.
4475         * lib/unictype/pr_xid_start.h: Likewise.
4476         * lib/unictype/pr_zero_width.h: Likewise.
4477         * lib/unictype/scripts.h: Likewise.
4478         * lib/unictype/scripts_byname.gperf: Likewise.
4479         * lib/unictype/sy_java_ident.h: Likewise.
4480         * lib/unigbrk/gbrkprop.h: Likewise.
4481         * lib/unilbrk/lbrkprop1.h: Likewise.
4482         * lib/unilbrk/lbrkprop2.h: Likewise.
4483         * lib/unilbrk/lbrktables.h: Likewise.
4484         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4485         LBP_CP. Implement rule LB30.
4486         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4487         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4488         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4489         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4490         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4491         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4492         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4493         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4494         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4495         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4496         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4497         bits instead of 16 bits in the code1 and code2 of each composition
4498         rule.
4499         (uc_composition): Update for Unicode 5.2.0.
4500         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4501         * lib/uninorm/decomposition-table2.h: Likewise.
4502         * lib/uniwbrk/wbrkprop.h: Likewise.
4503         * tests/unicase/test-cased.c: Likewise.
4504         * tests/unicase/test-ignorable.c: Likewise.
4505         * tests/unicase/test-uc_tolower.c: Likewise.
4506         * tests/unicase/test-uc_totitle.c: Likewise.
4507         * tests/unicase/test-uc_toupper.c: Likewise.
4508         * tests/unictype/test-categ_C.c: Likewise.
4509         * tests/unictype/test-categ_Cf.c: Likewise.
4510         * tests/unictype/test-categ_Cn.c: Likewise.
4511         * tests/unictype/test-categ_L.c: Likewise.
4512         * tests/unictype/test-categ_Ll.c: Likewise.
4513         * tests/unictype/test-categ_Lm.c: Likewise.
4514         * tests/unictype/test-categ_Lo.c: Likewise.
4515         * tests/unictype/test-categ_Lu.c: Likewise.
4516         * tests/unictype/test-categ_M.c: Likewise.
4517         * tests/unictype/test-categ_Mc.c: Likewise.
4518         * tests/unictype/test-categ_Mn.c: Likewise.
4519         * tests/unictype/test-categ_N.c: Likewise.
4520         * tests/unictype/test-categ_Nd.c: Likewise.
4521         * tests/unictype/test-categ_Nl.c: Likewise.
4522         * tests/unictype/test-categ_No.c: Likewise.
4523         * tests/unictype/test-categ_P.c: Likewise.
4524         * tests/unictype/test-categ_Pd.c: Likewise.
4525         * tests/unictype/test-categ_Po.c: Likewise.
4526         * tests/unictype/test-categ_S.c: Likewise.
4527         * tests/unictype/test-categ_Sc.c: Likewise.
4528         * tests/unictype/test-categ_So.c: Likewise.
4529         * tests/unictype/test-ctype_alnum.c: Likewise.
4530         * tests/unictype/test-ctype_alpha.c: Likewise.
4531         * tests/unictype/test-ctype_graph.c: Likewise.
4532         * tests/unictype/test-ctype_lower.c: Likewise.
4533         * tests/unictype/test-ctype_print.c: Likewise.
4534         * tests/unictype/test-ctype_punct.c: Likewise.
4535         * tests/unictype/test-ctype_upper.c: Likewise.
4536         * tests/unictype/test-decdigit.h: Likewise.
4537         * tests/unictype/test-digit.h: Likewise.
4538         * tests/unictype/test-numeric.h: Likewise.
4539         * tests/unictype/test-pr_alphabetic.c: Likewise.
4540         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4541         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4542         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4543         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4544         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4545         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4546         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4547         * tests/unictype/test-pr_combining.c: Likewise.
4548         * tests/unictype/test-pr_composite.c: Likewise.
4549         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4550         * tests/unictype/test-pr_dash.c: Likewise.
4551         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4552         * tests/unictype/test-pr_deprecated.c: Likewise.
4553         * tests/unictype/test-pr_diacritic.c: Likewise.
4554         * tests/unictype/test-pr_extender.c: Likewise.
4555         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4556         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4557         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4558         * tests/unictype/test-pr_id_continue.c: Likewise.
4559         * tests/unictype/test-pr_id_start.c: Likewise.
4560         * tests/unictype/test-pr_ideographic.c: Likewise.
4561         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4562         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4563         * tests/unictype/test-pr_lowercase.c: Likewise.
4564         * tests/unictype/test-pr_numeric.c: Likewise.
4565         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4566         * tests/unictype/test-pr_punctuation.c: Likewise.
4567         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4568         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4569         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4570         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4571         * tests/unictype/test-pr_uppercase.c: Likewise.
4572         * tests/unictype/test-pr_xid_continue.c: Likewise.
4573         * tests/unictype/test-pr_xid_start.c: Likewise.
4574         * tests/unictype/test-pr_zero_width.c: Likewise.
4575         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4576         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4577         changed behaviour: line breaking is now disallowed between a letter
4578         or '=' and '('.
4579         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4580         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4581         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4582         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4583         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4584         lib/uniwidth/width.c.
4585         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4586         without comments, but with the original copyright notice.
4587         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4588         changes.
4589         * lib/unictype/categ_Cc.h: Likewise.
4590         * lib/unictype/categ_Co.h: Likewise.
4591         * lib/unictype/categ_Cs.h: Likewise.
4592         * lib/unictype/categ_Lt.h: Likewise.
4593         * lib/unictype/categ_Me.h: Likewise.
4594         * lib/unictype/categ_Pc.h: Likewise.
4595         * lib/unictype/categ_Pe.h: Likewise.
4596         * lib/unictype/categ_Pf.h: Likewise.
4597         * lib/unictype/categ_Pi.h: Likewise.
4598         * lib/unictype/categ_Ps.h: Likewise.
4599         * lib/unictype/categ_Sk.h: Likewise.
4600         * lib/unictype/categ_Sm.h: Likewise.
4601         * lib/unictype/categ_Z.h: Likewise.
4602         * lib/unictype/categ_Zl.h: Likewise.
4603         * lib/unictype/categ_Zp.h: Likewise.
4604         * lib/unictype/categ_Zs.h: Likewise.
4605         * lib/unictype/ctype_blank.h: Likewise.
4606         * lib/unictype/ctype_cntrl.h: Likewise.
4607         * lib/unictype/ctype_digit.h: Likewise.
4608         * lib/unictype/ctype_space.h: Likewise.
4609         * lib/unictype/ctype_xdigit.h: Likewise.
4610         * lib/unictype/mirror.h: Likewise.
4611         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4612         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4613         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4614         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4615         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4616         * lib/unictype/pr_bidi_control.h: Likewise.
4617         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4618         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4619         * lib/unictype/pr_bidi_pdf.h: Likewise.
4620         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4621         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4622         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4623         * lib/unictype/pr_format_control.h: Likewise.
4624         * lib/unictype/pr_hex_digit.h: Likewise.
4625         * lib/unictype/pr_hyphen.h: Likewise.
4626         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4627         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4628         * lib/unictype/pr_iso_control.h: Likewise.
4629         * lib/unictype/pr_join_control.h: Likewise.
4630         * lib/unictype/pr_left_of_pair.h: Likewise.
4631         * lib/unictype/pr_line_separator.h: Likewise.
4632         * lib/unictype/pr_math.h: Likewise.
4633         * lib/unictype/pr_non_break.h: Likewise.
4634         * lib/unictype/pr_not_a_character.h: Likewise.
4635         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4636         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4637         * lib/unictype/pr_other_id_continue.h: Likewise.
4638         * lib/unictype/pr_other_id_start.h: Likewise.
4639         * lib/unictype/pr_other_lowercase.h: Likewise.
4640         * lib/unictype/pr_other_math.h: Likewise.
4641         * lib/unictype/pr_other_uppercase.h: Likewise.
4642         * lib/unictype/pr_paired_punctuation.h: Likewise.
4643         * lib/unictype/pr_paragraph_separator.h: Likewise.
4644         * lib/unictype/pr_pattern_syntax.h: Likewise.
4645         * lib/unictype/pr_pattern_white_space.h: Likewise.
4646         * lib/unictype/pr_private_use.h: Likewise.
4647         * lib/unictype/pr_quotation_mark.h: Likewise.
4648         * lib/unictype/pr_radical.h: Likewise.
4649         * lib/unictype/pr_soft_dotted.h: Likewise.
4650         * lib/unictype/pr_space.h: Likewise.
4651         * lib/unictype/pr_titlecase.h: Likewise.
4652         * lib/unictype/pr_variation_selector.h: Likewise.
4653         * lib/unictype/pr_white_space.h: Likewise.
4654         * lib/unictype/sy_c_ident.h: Likewise.
4655         * lib/unictype/sy_c_whitespace.h: Likewise.
4656         * lib/unictype/sy_java_whitespace.h: Likewise.
4657         * modules/uni*/*: Bump version number of expected libunistring version.
4658         Reported by Simon Josefsson.
4659
4660 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4661
4662         useless-if-before-free: fix typo in --help and make the internal,
4663         automatic version date update process work once again.
4664         --help output contained a NUL character instead of the
4665         backslash-zero that was intended.  Also, the "must lie within
4666         the first 8 lines" line is on line 9, and hence not getting
4667         automatically updated.
4668         * build-aux/useless-if-before-free: Fix the former by adding a
4669         backslash, and the latter by condensing the three lines of what-it-does
4670         to a single line, leaving one line of slack for the future.
4671
4672 2011-01-09  Bruno Haible  <bruno@clisp.org>
4673
4674         uniwidth/width: Fix width of U+1D173..U+1D17A.
4675         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4676         symbolic_width, output_width_property_test): New functions.
4677         (main): Invoke output_nonspacing_property, output_width_property_test.
4678         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4679         U+1D173..U+1D17A.
4680         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4681         1.
4682         * modules/uniwidth/*: Bump version number of expected libunistring
4683         version.
4684         * modules/unilbrk/*: Likewise.
4685
4686 2011-01-08  Bruno Haible  <bruno@clisp.org>
4687
4688         uninorm tests: Preserve copyright of Unicode data file.
4689         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4690         Mention modifications.
4691
4692 2011-01-08  Bruno Haible  <bruno@clisp.org>
4693
4694         gen-uni-tables: Prepare for Unicode 5.2.0.
4695         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4696         (debug_output_lbp, output_lbp): Update.
4697
4698 2011-01-08  Bruno Haible  <bruno@clisp.org>
4699
4700         unilbrk: Clarify gen-uni-tables.c code.
4701         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4702         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4703         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4704
4705 2011-01-07  Bruno Haible  <bruno@clisp.org>
4706
4707         strtod: Restore errno when successfully parsing Infinity or NaN.
4708         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4709         restore the original errno.
4710
4711 2011-01-07  Bruno Haible  <bruno@clisp.org>
4712
4713         remove test: Avoid failure on HP-UX 11.
4714         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4715
4716 2011-01-07  Bruno Haible  <bruno@clisp.org>
4717
4718         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4719         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4720         error code.
4721
4722 2011-01-07  Pádraig Brady <P@draigBrady.com>
4723
4724         ignore-value: fixup comments, and add Eric Blake
4725         as an author since he rewrote the macros.
4726         * lib/ignore-value.h (ignore_value):  State that
4727         we now support aggregates.  Also specify exactly
4728         when the GCC warn_unused_result feature was added.
4729
4730 2011-01-06  Eric Blake  <eblake@redhat.com>
4731
4732         ignore-value: support aggregate types
4733         * lib/ignore-value.h (ignore_value): Provide separate gcc
4734         definition.
4735         * modules/ignore-value-tests: New test module.
4736         * tests/test-ignore-value.c: New test.
4737
4738         maint.mk: improve sc_prohibit_strcmp regex
4739         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4740         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4741         definition of STRNEQ.
4742
4743         signal: work around Haiku issue with SIGBUS
4744         * lib/siglist.h: Add comment.
4745         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4746         strsignal's favoring of SIGSEGV.
4747         * tests/test-signal.c (main): Avoid test failure.
4748         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4749         Reported by Scott McCreary.
4750
4751         maint.mk: add pre-release check to ensure submodule commits are public
4752         * top/maint.mk (public-submodule-commit): New rule.
4753         (submodule-checks): New variable.
4754         (alpha beta stable): Depend on the variable.
4755
4756 2011-01-05  Pádraig Brady <P@draigBrady.com>
4757         and Jim Meyering  <meyering@redhat.com>
4758
4759         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4760         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4761         (ATTRIBUTE_DEPRECATED): Define.
4762         (_ignore_case): New function.
4763         (ignore_value): New macro, to replace the old function.
4764         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4765         * modules/ignore-value (Depends-on): Add stdint.
4766
4767 2011-01-04  Eric Blake  <eblake@redhat.com>
4768
4769         doc: regenerate INSTALL
4770         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4771         @firstparagraphindent support, now that autoconf dropped it.
4772         (INSTALL_PRELUDE): Reinstate old macro.
4773         * doc/install.texi: Resync from autoconf.
4774         * doc/INSTALL: Reflect recent autoconf update.
4775         * doc/INSTALL.ISO: Likewise.
4776         * doc/INSTALL.UTF-8: Likewise.
4777         Reported by Karl Berry.
4778
4779 2011-01-04  Bruce Korb  <address@hidden>
4780
4781         git-version-gen: avoid a sub-shell
4782         * build-aux/git-version-gen: Redirect stderr in `...` via
4783         "exec 2>...", rather than via an added sub-shell.
4784
4785 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4786
4787         git-version-gen: use (...) rather than sh -c '...'
4788         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4789         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4790
4791 2011-01-03  Jim Meyering  <meyering@redhat.com>
4792
4793         git-version-gen: convert leading TABs to spaces
4794         * build-aux/git-version-gen: Expand leading TABs.
4795
4796         git-version-gen: handle failed "git rev-list"
4797         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4798         from git and proceeding as if it had succeeded but printed no SHA1
4799         checksums, suppress the diagnostic and handle the failure.
4800         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4801
4802         git-version-gen: include command name in one more diagnostic
4803         * build-aux/git-version-gen: When the required .tarball-version file
4804         was missing or unreadable, you might see the diagnostic from "cat",
4805         but no trace of the name of the invoking script.  Now, you still see
4806         the diagnostic from cat, but also get one from "git-version-gen: ".
4807         Inspired by a patch from Bruce Korb.
4808
4809         update-copyright: adjust test to match changed code
4810         * tests/test-update-copyright.sh: Change test's expected output
4811         to match new actual output.
4812
4813 2011-01-02  Bruno Haible  <bruno@clisp.org>
4814
4815         getlogin_r: Avoid test failure on HP-UX 11.
4816         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4817         ERANGE when the second argument is zero.
4818         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4819         portability problem.
4820
4821 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4822
4823         * build-aux/update-copyright: doc Simon's changes
4824
4825 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4826
4827         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4828         environment variable.
4829
4830 2011-01-02  Bruno Haible  <bruno@clisp.org>
4831
4832         unigbrk: Avoid gcc warnings.
4833         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4834         unused variable.
4835         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4836         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4837         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4838         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4839         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4840         Change type of first argument to 'const char *'.
4841         (main): Remove unused variable.
4842         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4843         type of first argument to 'const char *'.
4844         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4845         Likewise.
4846         (main): Change type of variable 's'.
4847         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4848         to 'int'.
4849
4850 2011-01-02  Bruno Haible  <bruno@clisp.org>
4851
4852         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4853         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4854         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4855         bug.
4856         * lib/pwrite.c: Undo 2010-12-31 patch.
4857         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4858
4859 2011-01-02  Bruno Haible  <bruno@clisp.org>
4860
4861         pread: Fix test whether it works.
4862         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4863
4864 2011-01-02  Bruno Haible  <bruno@clisp.org>
4865
4866         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4867         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4868         ends in "6". Don't require a specific month name. Try also the locale
4869         names found on HP-UX 11 and Solaris 7.
4870
4871 2011-01-02  Bruno Haible  <bruno@clisp.org>
4872
4873         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4874         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4875         C linkage.
4876         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4877
4878 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4879
4880         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4881         for consistency, since the "cluster" term is not used elsewhere.
4882         * lib/unigbrk.in.h: Update name.
4883         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4884         * lib/unigbrk/u16-grapheme-next.c: Update name.
4885         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4886         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4887         * lib/unigbrk/u32-grapheme-next.c: Update name.
4888         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4889         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4890         * lib/unigbrk/u8-grapheme-next.c: Update name.
4891         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4892         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4893         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4894         Suggested by Bruno Haible.
4895
4896 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4897
4898         Remove module 'u8-grapheme-len' as too redundant with
4899         'u8-grapheme-next'.
4900         * modules/unigbrk/u8-grapheme-len: Delete file.
4901         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4902         * lib/unigbrk.in.h: Remove prototype for deleted function.
4903         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4904         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4905
4906         Remove module 'u16-grapheme-len' as too redundant with
4907         'u16-grapheme-next'.
4908         * modules/unigbrk/u16-grapheme-len: Delete file.
4909         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4910         * lib/unigbrk.in.h: Remove prototype for deleted function.
4911         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4912         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4913
4914         Remove module 'u32-grapheme-len' as too redundant with
4915         'u32-grapheme-next'.
4916         * modules/unigbrk/u32-grapheme-len: Delete file.
4917         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4918         * lib/unigbrk.in.h: Remove prototype for deleted function.
4919         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4920         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4921
4922         Suggested by Bruno Haible.
4923
4924 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4925
4926         * unigbrk.in.h: Fix typo: "ben" => "been".
4927         Reported by Bruno Haible.
4928
4929 2011-01-01  Jim Meyering  <meyering@redhat.com>
4930
4931         maint: update almost all copyright ranges to include 2011
4932         Run the new "make update-copyright" rule.
4933
4934 2011-01-01  Jim Meyering  <meyering@redhat.com>
4935
4936         maint: update-copyright: exempt doc/INSTALL*
4937         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4938         since they are generated.  Suggested by Bruno Haible.
4939
4940 2011-01-01  Jim Meyering  <meyering@redhat.com>
4941
4942         maint: refine the update-copyright rule
4943         * Makefile (update-copyright): Also exclude any file that includes
4944         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4945         code that merely generates the comment.
4946
4947 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4948
4949         New module 'u8-grapheme-len'.
4950         * modules/unigbrk/u8-grapheme-len: New file.
4951         * modules/unigbrk/u8-grapheme-len-tests: New file.
4952         * lib/unigbrk.in.h: Add prototype for new function.
4953         * lib/unigbrk/u8-grapheme-len.c: New file.
4954         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4955
4956         New module 'u16-grapheme-len'.
4957         * modules/unigbrk/u16-grapheme-len: New file.
4958         * modules/unigbrk/u16-grapheme-len-tests: New file.
4959         * lib/unigbrk.in.h: Add prototype for new function.
4960         * lib/unigbrk/u16-grapheme-len.c: New file.
4961         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4962
4963         New module 'u32-grapheme-len'.
4964         * modules/unigbrk/u32-grapheme-len: New file.
4965         * modules/unigbrk/u32-grapheme-len-tests: New file.
4966         * lib/unigbrk.in.h: Add prototype for new function.
4967         * lib/unigbrk/u32-grapheme-len.c: New file.
4968         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4969
4970         New module 'u8-grapheme-next'.
4971         * modules/unigbrk/u8-grapheme-next: New file.
4972         * modules/unigbrk/u8-grapheme-next-tests: New file.
4973         * lib/unigbrk.in.h: Add prototype for new function.
4974         * lib/unigbrk/u8-grapheme-next.c: New file.
4975         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4976
4977         New module 'u16-grapheme-next'.
4978         * modules/unigbrk/u16-grapheme-next: New file.
4979         * modules/unigbrk/u16-grapheme-next-tests: New file.
4980         * lib/unigbrk.in.h: Add prototype for new function.
4981         * lib/unigbrk/u16-grapheme-next.c: New file.
4982         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4983
4984         New module 'u32-grapheme-next'.
4985         * modules/unigbrk/u32-grapheme-next: New file.
4986         * modules/unigbrk/u32-grapheme-next-tests: New file.
4987         * lib/unigbrk.in.h: Add prototype for new function.
4988         * lib/unigbrk/u32-grapheme-next.c: New file.
4989         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4990
4991         New module 'u8-grapheme-prev'.
4992         * modules/unigbrk/u8-grapheme-prev: New file.
4993         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4994         * lib/unigbrk.in.h: Add prototype for new function.
4995         * lib/unigbrk/u8-grapheme-prev.c: New file.
4996         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4997
4998         New module 'u16-grapheme-prev'.
4999         * modules/unigbrk/u16-grapheme-prev: New file.
5000         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5001         * lib/unigbrk.in.h: Add prototype for new function.
5002         * lib/unigbrk/u16-grapheme-prev.c: New file.
5003         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5004
5005         New module 'u32-grapheme-prev'.
5006         * modules/unigbrk/u32-grapheme-prev: New file.
5007         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5008         * lib/unigbrk.in.h: Add prototype for new function.
5009         * lib/unigbrk/u32-grapheme-prev.c: New file.
5010         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5011
5012         New module 'u8-grapheme-breaks'.
5013         * modules/unigbrk/u8-grapheme-breaks: New file.
5014         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5015         * lib/unigbrk.in.h: Add prototype for new function.
5016         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5017         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5018
5019         New module 'u16-grapheme-breaks'.
5020         * modules/unigbrk/u16-grapheme-breaks: New file.
5021         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5022         * lib/unigbrk.in.h: Add prototype for new function.
5023         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5024         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5025
5026         New module 'u32-grapheme-breaks'.
5027         * modules/unigbrk/u32-grapheme-breaks: New file.
5028         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5029         * lib/unigbrk.in.h: Add prototype for new function.
5030         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5031         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5032
5033         New module 'ulc-grapheme-breaks'.
5034         * modules/unigbrk/ulc-grapheme-breaks: New file.
5035         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5036         * m4/locale-ar.m4: New file.
5037         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5038         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5039         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5040
5041 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5042
5043         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5044         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5045         modified how this file was generated before I initially submitted
5046         the module, but failed to regenerate it.  This meant that several
5047         of the level2 entries were wrong.
5048         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5049         Remove the division-by-2 that is folded into the table now that
5050         gbrkprop.h has been regenerated properly.  Now -1 entries are
5051         handled correctly.
5052
5053         New module 'unigbrk/uc-gbrk-prop-tests'.
5054         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5055         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5056         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5057         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5058
5059 2011-01-01  Bruno Haible  <bruno@clisp.org>
5060
5061         Avoid use of hexadecimal escapes.
5062         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5063         instead of hexadecimal escapes.
5064
5065 2011-01-01  Jim Meyering  <meyering@redhat.com>
5066
5067         maint: new rule to update copyright year ranges
5068         * Makefile (update-copyright): New rule.
5069
5070         maint: indent with TABs in Makefile
5071         * Makefile: Expand leading sequences of spaces to TABs
5072
5073         version-etc: update the copyright year it reports
5074         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5075
5076 2010-12-31  Bruno Haible  <bruno@clisp.org>
5077
5078         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5079         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5080         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5081         zero.
5082
5083 2010-12-31  Bruno Haible  <bruno@clisp.org>
5084
5085         pwrite: Work around HP-UX 11.11 bug.
5086         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5087         works and set REPLACE_PWRITE if not.
5088         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5089         function.
5090         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5091
5092 2010-12-31  Bruno Haible  <bruno@clisp.org>
5093
5094         pread: Work around HP-UX 11 bugs.
5095         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5096         and set REPLACE_PREAD if not.
5097         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5098
5099 2010-12-31  Eric Blake  <eblake@redhat.com>
5100
5101         nl_langinfo: fix YESEXPR on Irix 6.5
5102         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5103         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5104         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5105         it.
5106
5107 2010-12-31  Bruno Haible  <bruno@clisp.org>
5108
5109         iconv: Document HP-UX 11 bug.
5110         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5111
5112 2010-12-31  Bruno Haible  <bruno@clisp.org>
5113
5114         ldexpl: Fix link error on HP-UX 11.
5115         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5116         LDEXPL_LIBM, using $ISNANL_LIBM.
5117
5118 2010-12-31  Eric Blake  <eblake@redhat.com>
5119
5120         ftello: avoid compilation failure with SunStudio c89
5121         * lib/ftello.c (ftello): Use lseek, not llseek.
5122
5123         tests: avoid failing coreutils tests on cygwin
5124         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5125         (create_exe_shims_): Return 0 when skipping.
5126
5127 2010-12-31  Bruno Haible  <bruno@clisp.org>
5128
5129         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5130         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5131
5132 2010-12-31  Bruno Haible  <bruno@clisp.org>
5133
5134         waitpid: Fix link error in C++ mode.
5135         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5136
5137 2010-12-31  Bruno Haible  <bruno@clisp.org>
5138
5139         isnan: Use GCC built-ins when possible.
5140         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5141         __builtin_isnan.
5142         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5143         (isnan): Define using GCC built-ins for GCC >= 4.0.
5144
5145 2010-12-31  Bruno Haible  <bruno@clisp.org>
5146
5147         isnand: Fix mistake.
5148         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5149         __builtin_isnand.
5150
5151 2010-12-31  Bruno Haible  <bruno@clisp.org>
5152
5153         open: Avoid C++ error on HP-UX 11.
5154         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5155
5156 2010-12-31  Bruno Haible  <bruno@clisp.org>
5157
5158         time_r: Add missing declarations on HP-UX 11.
5159         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5160         instead of HAVE_LOCALTIME_R.
5161         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5162         HAVE_LOCALTIME_R always.
5163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5164         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5165         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5166         HAVE_LOCALTIME_R.
5167         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5168         * doc/posix-functions/localtime_r.texi: Likewise.
5169
5170 2010-12-29  Eric Blake  <eblake@redhat.com>
5171
5172         mountlist: tweak previous commit
5173         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5174         Reported by Paul Eggert.
5175
5176         mountlist: fix local drive detection on cygwin
5177         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5178         that works for cygwin.
5179
5180 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5181
5182         ftoastr, snprintf: ftoastr + snprintf module
5183         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5184         since the snprintf module now should be good enough here.
5185         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5186         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5187         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5188         GNULIB_SNPRINTF only for the test directory, and the latter
5189         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5190         seems to suffice by itself.
5191
5192 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5193
5194         alloca: one step towards thread-safety
5195         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5196         need for a static variable.  All callers changed.  This does not
5197         make the alloca replacement thread-safe, but it's one step.
5198
5199         tests: minor indenting change
5200         * tests/init.sh: Sync from coreutils housekeeping patch
5201         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5202         to keep lines within 80 columns.
5203
5204 2010-12-28  Jim Meyering  <meyering@redhat.com>
5205
5206         regex: don't infloop on persistent failing calloc
5207         * lib/regexec.c (build_trtable): Return failure indication upon
5208         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5209         In glibc, this was fixed for version 2.13:
5210         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5211
5212 2010-12-28  Bruno Haible  <bruno@clisp.org>
5213             Paul Eggert <eggert@cs.ucla.edu>
5214
5215         linkat: Make implementation robust against system behaviour variations.
5216         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5217         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5218         way, and to -2 if it needs a generic runtime test.
5219         * lib/linkat.c (solaris_optimized_link_immediate,
5220         solaris_optimized_link_follow): New functions.
5221         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5222         (check_same_link): Use it.
5223
5224 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5225
5226         New module 'unigbrk/base'.
5227         * modules/unigbrk/base: New file.
5228         * lib/unigbrk.in.h: New file.
5229
5230         New module 'unigbrk/uc-gbrk-prop'.
5231         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5232         * modules/unigbrk/uc-gbrk-prop: New file.
5233         * lib/unigbrk/gbrkprop.h: New file.
5234         * lib/unigbrk/uc-gbrk-prop.c: New file.
5235
5236         New module 'unigbrk/uc-is-grapheme-break'.
5237         * modules/unigbrk/uc-is-grapheme-break: New file.
5238         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5239         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5240         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5241         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5242         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5243
5244         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5245
5246 2010-12-27  Bruno Haible  <bruno@clisp.org>
5247
5248         linkat test: Avoid failure on Solaris 11 2010-11.
5249         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5250
5251 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5252
5253         utimens: work around glibc rounding bug on more platforms
5254         * lib/utimens.c (fdutimens): Work around rounding bug even if
5255         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5256         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5257
5258 2010-12-27  Bruno Haible  <bruno@clisp.org>
5259
5260         select tests: Improve comments.
5261         * tests/test-select.c (do_select): Add comments.
5262
5263 2010-12-27  Bruno Haible  <bruno@clisp.org>
5264
5265         select tests: Safer way of handling timeout.
5266         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5267         at every invocation.
5268
5269 2010-12-27  Bruno Haible  <bruno@clisp.org>
5270
5271         select tests: Use 'bool' where appropriate.
5272         * tests/test-select.c (connect_to_socket): Change argument type to
5273         'bool'.
5274
5275 2010-12-27  Bruno Haible  <bruno@clisp.org>
5276
5277         select tests: Use existing modules.
5278         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5279         (configure.ac): Don't test for unistd.h.
5280         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5281         declared in <unistd.h>.
5282
5283 2010-12-27  Bruno Haible  <bruno@clisp.org>
5284
5285         mbrtowc: Work around a Solaris 7 bug.
5286         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5287         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5288         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5289         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5290         MBRTOWC_NULL_ARG1_BUG.
5291         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5292         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5293         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5294         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5295
5296 2010-12-27  Jim Meyering  <meyering@redhat.com>
5297
5298         read-file.c: tweak syntax
5299         * lib/read-file.c (fread_file): Remove space after "*" in function
5300         definitions.
5301
5302 2010-12-27  Bruno Haible  <bruno@clisp.org>
5303
5304         times test: Avoid gcc warnings on OSF/1.
5305         * tests/test-times.c (main): Cast printf arguments from clock_t to
5306         'long int'.
5307
5308 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5309
5310         utimens: work around glibc rounding bug on older Linux kernels
5311         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5312         on Linux with a glibc whose utimes might not work, then work
5313         around a longstanding glibc bug involving rounding rather than
5314         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5315         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5316
5317 2010-12-26  Bruno Haible  <bruno@clisp.org>
5318
5319         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5320         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5321         _GL_CXXALIAS_SYS.
5322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5323
5324 2010-12-26  Bruno Haible  <bruno@clisp.org>
5325
5326         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5327         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5328         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5329         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5330         looking for the declaration.
5331         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5332         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5333         problem.
5334         * doc/posix-functions/inet_pton.texi: Likewise.
5335
5336 2010-12-26  Bruno Haible  <bruno@clisp.org>
5337
5338         arpa_inet: Use the common idioms with C++ support.
5339         * lib/arpa_inet.in.h: Include c++defs.h.
5340         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5341         support.
5342         * modules/arpa_inet (Depends-on): Add c++defs.
5343         (Makefile.am): Substitute the contents of c++defs.h.
5344         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5345         * modules/arpa_inet-c++-tests: New file.
5346         * tests/test-arpa_inet-c++.cc: New file.
5347
5348 2010-12-25  Bruno Haible  <bruno@clisp.org>
5349
5350         Fix more C++ link errors on Solaris 8.
5351         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5352         $(LIB_EACCESS).
5353         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5354         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5355         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5356         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5357         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5358
5359 2010-12-25  Bruno Haible  <bruno@clisp.org>
5360
5361         printf-posix: Fix link error when a non-GCC compiler is used.
5362         * lib/stdio.in.h (printf): When not using GCC, override printf
5363         correctly.
5364         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5365
5366 2010-12-25  Bruno Haible  <bruno@clisp.org>
5367
5368         strerror_r-posix: Update doc.
5369         * doc/posix-functions/strerror_r.texi: Update doc about the return
5370         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5371
5372 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5373
5374         utimens: simplify the logic of the previous change
5375         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5376         This should not affect whether the test succeeds or fails.
5377
5378         utimens: configure better on hosts with NFS clock skew
5379         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5380         uses the clock of the local host.  It might use the clock of the
5381         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5382         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5383
5384 2010-12-25  Bruno Haible  <bruno@clisp.org>
5385
5386         ptsname test: Avoid failure on Solaris.
5387         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5388         open a pseudo-terminal; don't use BSD-style ptys.
5389         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5390
5391 2010-12-25  Bruno Haible  <bruno@clisp.org>
5392
5393         ptsname: Avoid ERANGE failure on some systems.
5394         * lib/ptsname.c (buffer): Increase size.
5395
5396 2010-12-25  Bruno Haible  <bruno@clisp.org>
5397
5398         rename, renameat: Avoid test failures at NFS mounted locations.
5399         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5400         so that subsequent mkdir calls succeed.
5401
5402 2010-12-25  Bruno Haible  <bruno@clisp.org>
5403
5404         iswblank: Fix C++ link error on Solaris 8.
5405         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5406         _GL_FUNCDECL_SYS.
5407
5408 2010-12-25  Bruno Haible  <bruno@clisp.org>
5409
5410         unistd: Fix C++ link error on Solaris 8.
5411         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5412
5413 2010-12-25  Bruno Haible  <bruno@clisp.org>
5414
5415         readlink doc: Mention an old glibc bug.
5416         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5417
5418 2010-12-25  Bruno Haible  <bruno@clisp.org>
5419
5420         fcntl-h: Fix for use of C++ on glibc systems.
5421         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5422         also on glibc systems in C++ mode.
5423         Reported by Gary V. Vaughan <gary@gnu.org>.
5424
5425 2010-12-25  Bruno Haible  <bruno@clisp.org>
5426
5427         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5428         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5429
5430 2010-12-25  Bruno Haible  <bruno@clisp.org>
5431
5432         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5433         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5434         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5435         test whether truncl works according to ISO C 99 with IEC 60559.
5436         * m4/truncl-ieee.m4: New file.
5437         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5438         m4/signbit.m4.
5439         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5440
5441 2010-12-25  Bruno Haible  <bruno@clisp.org>
5442
5443         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5444         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5445         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5446         test whether ceill works according to ISO C 99 with IEC 60559.
5447         * m4/ceill-ieee.m4: New file.
5448         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5449         m4/signbit.m4.
5450         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5451
5452 2010-12-25  Bruno Haible  <bruno@clisp.org>
5453
5454         Ensure all prerequisites of <wchar.h> are included.
5455         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5456         before <wchar.h>.
5457         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5458         gl_MBRLEN_NUL_RETVAL): Likewise.
5459         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5460         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5461         AC_FUNC_MBRTOWC): Likewise.
5462         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5463         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5465         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5466         Likewise.
5467         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5468         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5469         (gl_WCHAR_H): Improve comments.
5470         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5471
5472 2010-12-25  Bruno Haible  <bruno@clisp.org>
5473
5474         strtok_r: Fix C syntax error in autoconf macro.
5475         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5476         characters in test program.
5477
5478 2010-12-24  Bruno Haible  <bruno@clisp.org>
5479
5480         ceil, trunc, round: Fix gcc warnings.
5481         * lib/ceil.c (MIN): Undefine before redefining.
5482         * lib/trunc.c (MIN): Likewise.
5483         * lib/round.c (MIN): Likewise.
5484         Include <math.h> first.
5485
5486 2010-12-24  Bruno Haible  <bruno@clisp.org>
5487
5488         select tests: Avoid failures on OSF/1 5.1.
5489         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5490         failure of closing the last socket; it may fail with ECONNRESET.
5491
5492 2010-12-24  Eric Blake  <eblake@redhat.com>
5493
5494         stdint: avoid HP-UX 10.20 preprocessor bug
5495         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5496         than #if.
5497         * tests/test-floor2.c (main): Likewise.
5498         Reported by Peter O'Gorman.
5499
5500         pipe: make obsoletion transition easier
5501         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5502         * modules/pipe (Files): Include revived file.
5503         (Include): Drop reference, to mirror getdate's behavior.
5504
5505 2010-12-24  Bruno Haible  <bruno@clisp.org>
5506
5507         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5508         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5509         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5510         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5511
5512 2010-12-24  Bruno Haible  <bruno@clisp.org>
5513
5514         gethostname: Ensure declaration on NonStop Kernel.
5515         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5516         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5517
5518 2010-12-24  Bruno Haible  <bruno@clisp.org>
5519
5520         sys_select: Ensure all necessary types on NonStop Kernel.
5521         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5522         include <sys/time.h>.
5523         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5524         NonStop Kernel.
5525         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5526
5527 2010-12-24  Bruno Haible  <bruno@clisp.org>
5528
5529         sys_select: Remove unneeded include.
5530         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5531         have <sys/select.h>.
5532
5533 2010-12-24  Bruno Haible  <bruno@clisp.org>
5534
5535         gethostname: Provide a fallback for HOST_NAME_MAX.
5536         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5537         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5538         instead.
5539         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5540
5541 2010-12-24  Bruno Haible  <bruno@clisp.org>
5542
5543         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5544         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5545         (SA_RESTART): Likewise.
5546         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5547
5548 2010-12-24  Bruno Haible  <bruno@clisp.org>
5549
5550         signal: Define NSIG.
5551         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5552         * tests/test-signal.c (nsig): New variable.
5553         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5554
5555 2010-12-24  Bruno Haible  <bruno@clisp.org>
5556
5557         rename, renameat: Avoid test failures on OSF/1 5.1.
5558         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5559         alternative error codes.
5560         * tests/test-renameat.c (main): Likewise.
5561
5562 2010-12-24  Bruno Haible  <bruno@clisp.org>
5563
5564         *printf: Detect large precisions bug on Solaris 10/SPARC.
5565         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5566         by Paul Eggert.
5567         * tests/test-snprintf-posix.h (test_function): Add this test code here
5568         too.
5569         * tests/test-sprintf-posix.h (test_function): Likewise.
5570         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5571         * tests/test-vasprintf-posix.c (test_function): Likewise.
5572         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5573         around by gnulib.
5574         * doc/posix-functions/printf.texi: Likewise.
5575         * doc/posix-functions/snprintf.texi: Likewise.
5576         * doc/posix-functions/sprintf.texi: Likewise.
5577         * doc/posix-functions/vfprintf.texi: Likewise.
5578         * doc/posix-functions/vprintf.texi: Likewise.
5579         * doc/posix-functions/vsnprintf.texi: Likewise.
5580         * doc/posix-functions/vsprintf.texi: Likewise.
5581         * doc/posix-functions/dprintf.texi: Undo last commit.
5582         * doc/posix-functions/vdprintf.texi: Likewise.
5583
5584 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5585
5586         tests: port test-fdutimensat.c to Solaris 8
5587         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5588         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5589         On Solaris 8, it fails with errno == ENOSYS, because there is no
5590         futimens (so it can't use the fd), and there is no lutimens (so it
5591         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5592
5593         vsnprintf: make more consistent with snprintf; doc fixes
5594
5595         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5596         the byte count return problem was promoted from the snprintf-posix
5597         to the snprintf module.
5598         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5599         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5600         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5601         * tests/test-snprintf.c (main): Check the byte count returned.
5602         * tests/test-vsnprintf.c (main): Likewise.
5603
5604 2010-12-23  Eric Blake  <eblake@redhat.com>
5605
5606         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5607         * modules/sigpipe (License): Relax license.
5608
5609 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5610
5611         doc: document Solaris printf bug with large float precisions
5612         * doc/posix-functions/dprintf.texi (dprintf):
5613         * doc/posix-functions/fprintf.texi (fprintf):
5614         * doc/posix-functions/printf.texi (printf):
5615         * doc/posix-functions/snprintf.texi (snprintf):
5616         * doc/posix-functions/sprintf.texi (sprintf):
5617         * doc/posix-functions/vdprintf.texi (vdprintf):
5618         * doc/posix-functions/vfprintf.texi (vfprintf):
5619         * doc/posix-functions/vprintf.texi (vprintf):
5620         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5621         * doc/posix-functions/vsprintf.texi (vsprintf):
5622         Mention that these functions mishandle large floating point
5623         precisions on Solaris 10.  The same bug is also present in Solaris
5624         8, and I assume earlier.  This causes "cd gnulib-tests; make
5625         check" to fail on Solaris 8 (and I assume, later) when building
5626         the latest coreutils, in test-vasprintf-posix's call to
5627         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5628         the wide flavors (e.g., wprintf) so this patch just updates the
5629         documentation for the narrow ones.
5630
5631         test-posixtm.c: add two tests
5632         * tests/test-posixtm.c: Add two tests, to highlight the
5633         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5634         around this bug; this is merely to document it.
5635
5636 2010-12-22  Bruno Haible  <bruno@clisp.org>
5637
5638         getlogin_r: Work around portability problem on OSF/1.
5639         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5640         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5641         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5642         test for a truncated result.
5643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5644         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5645         * modules/getlogin_r (Depends-on): Add memchr.
5646         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5647
5648 2010-12-22  Bruno Haible  <bruno@clisp.org>
5649
5650         ptsname: Avoid test failure on OSF/1 5.1.
5651         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5652         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5653         (same_slave): New function.
5654         (main): Use it to compare ptsname's result with the expected file name.
5655
5656 2010-12-22  Bruno Haible  <bruno@clisp.org>
5657
5658         Port extended stdio modules to HP NonStop Kernel.
5659         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5660         macros.
5661         * lib/fbufmode.c: Update comments.
5662         * lib/fflush.c: Likewise.
5663         * lib/fpurge.c: Likewise.
5664         * lib/freadable.c: Likewise.
5665         * lib/freadahead.c: Likewise.
5666         * lib/freading.c: Likewise.
5667         * lib/freadptr.c: Likewise.
5668         * lib/freadseek.c: Likewise.
5669         * lib/fseeko.c: Likewise.
5670         * lib/fseterr.c: Likewise.
5671         * lib/fwritable.c: Likewise.
5672         * lib/fwriting.c: Likewise.
5673         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5674
5675 2010-12-22  Bruno Haible  <bruno@clisp.org>
5676
5677         ttyname_r: Work around bug on OSF/1 5.1.
5678         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5679         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5680         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5681         present.
5682         * lib/ttyname_r.c (ttyname_r): Update comments.
5683
5684 2010-12-22  Bruno Haible  <bruno@clisp.org>
5685
5686         round: Implement result sign according to IEEE 754.
5687         * lib/round.c (MIN, MINUS_ZERO): New macros.
5688         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5689         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5690         * tests/test-round-ieee.c (main): Likewise.
5691         * tests/test-roundl-ieee.c (main): Likewise.
5692
5693         trunc: Implement result sign according to IEEE 754.
5694         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5695         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5696         * tests/test-trunc2.c: Include minus-zero.h.
5697         (MINUS_ZERO): New macro.
5698         (trunc_reference): Keep in sync with lib/trunc.c.
5699         * tests/test-truncf2.c: Include minus-zero.h.
5700         (MINUS_ZERO): New macro.
5701         (truncf_reference): Keep in sync with lib/trunc.c.
5702         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5703         * tests/test-trunc-ieee.c (main): Likewise.
5704         * tests/test-truncl-ieee.c (main): Likewise.
5705
5706         ceil: Implement result sign according to IEEE 754.
5707         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5708         (FUNC): Return -0.0 for -1 < x < 0.
5709         * tests/test-ceil2.c: Include minus-zero.h.
5710         (MINUS_ZERO): New macro.
5711         (ceil_reference): Keep in sync with lib/ceil.c.
5712         * tests/test-ceilf2.c: Include minus-zero.h.
5713         (MINUS_ZERO): New macro.
5714         (ceilf_reference): Keep in sync with lib/ceil.c.
5715         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5716         * tests/test-ceil-ieee.c (main): Likewise.
5717         * tests/test-ceill-ieee.c (main): Likewise.
5718
5719         floor: Implement result sign according to IEEE 754.
5720         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5721         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5722         * tests/test-floorf2.c (floorf_reference): Likewise.
5723         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5724         * tests/test-floor-ieee.c (main): Likewise.
5725         * tests/test-floorl-ieee.c (main): Likewise.
5726
5727 2010-12-22  Bruno Haible  <bruno@clisp.org>
5728
5729         getaddrinfo: Update doc.
5730         * doc/posix-functions/gai_strerror.texi: Return type is also different
5731         on AIX and HP-UX.
5732
5733 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5734
5735         getaddrinfo, inet_ntop: Update doc for Solaris.
5736         * doc/posix-functions/gai_strerror.texi: Return type is also an
5737         issue on Solaris 9 and earlier.
5738         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5739         on Solaris 10 and earlier.
5740
5741 2010-12-21  Bruno Haible  <bruno@clisp.org>
5742
5743         New module 'roundl-ieee'.
5744         * modules/roundl-ieee: New file.
5745         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5746         test whether roundl works according to ISO C 99 with IEC 60559.
5747         * m4/roundl-ieee.m4: New file.
5748         * modules/roundl-ieee-tests: New file.
5749         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5750         * tests/test-roundl.c (main): Remove signbit tests.
5751         * modules/roundl-tests (Depends-on): Remove signbit.
5752         * doc/posix-functions/roundl.texi: Mention the new module.
5753
5754 2010-12-21  Bruno Haible  <bruno@clisp.org>
5755
5756         New module 'truncl-ieee'.
5757         * modules/truncl-ieee: New file.
5758         * modules/truncl-ieee-tests: New file.
5759         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5760         * tests/test-truncl.c (main): Remove signbit tests.
5761         * modules/truncl-tests (Depends-on): Remove signbit.
5762         * doc/posix-functions/truncl.texi: Mention the new module.
5763
5764 2010-12-21  Bruno Haible  <bruno@clisp.org>
5765
5766         New module 'ceill-ieee'.
5767         * modules/ceill-ieee: New file.
5768         * modules/ceill-ieee-tests: New file.
5769         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5770         * tests/test-ceill.c (main): Remove signbit tests.
5771         * modules/ceill-tests (Depends-on): Remove signbit.
5772         * doc/posix-functions/ceill.texi: Mention the new module.
5773
5774 2010-12-21  Bruno Haible  <bruno@clisp.org>
5775
5776         New module 'floorl-ieee'.
5777         * modules/floorl-ieee: New file.
5778         * modules/floorl-ieee-tests: New file.
5779         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5780         * tests/test-floorl.c (main): Remove signbit tests.
5781         * modules/floorl-tests (Depends-on): Remove signbit.
5782         * doc/posix-functions/floorl.texi: Mention the new module.
5783
5784 2010-12-21  Bruno Haible  <bruno@clisp.org>
5785
5786         New module 'round-ieee'.
5787         * modules/round-ieee: New file.
5788         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5789         whether round works according to ISO C 99 with IEC 60559.
5790         * m4/round-ieee.m4: New file.
5791         * modules/round-ieee-tests: New file.
5792         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5793         * tests/test-round1.c (main): Remove signbit tests.
5794         * modules/round-tests (Depends-on): Remove 'signbit'.
5795         * doc/posix-functions/round.texi: Mention the new module.
5796
5797 2010-12-21  Bruno Haible  <bruno@clisp.org>
5798
5799         New module 'trunc-ieee'.
5800         * modules/trunc-ieee: New file.
5801         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5802         whether trunc works according to ISO C 99 with IEC 60559.
5803         * m4/trunc-ieee.m4: New file.
5804         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5806         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5807         * modules/trunc-ieee-tests: New file.
5808         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5809         * tests/test-trunc1.c (main): Remove signbit tests.
5810         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5811         * doc/posix-functions/trunc.texi: Mention the new module.
5812
5813 2010-12-21  Bruno Haible  <bruno@clisp.org>
5814
5815         New module 'ceil-ieee'.
5816         * modules/ceil-ieee: New file.
5817         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5818         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5819         ISO C 99 with IEC 60559.
5820         * m4/ceil-ieee.m4: New file.
5821         * modules/ceil (Files): Add lib/ceil.c.
5822         (Depends-on): Add 'float'.
5823         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5824         * lib/math.in.h (ceil): New declaration.
5825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5826         REPLACE_CEIL.
5827         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5828         * modules/ceil-ieee-tests: New file.
5829         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5830         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5831         * doc/posix-functions/ceil.texi: Mention the new module.
5832
5833 2010-12-21  Bruno Haible  <bruno@clisp.org>
5834
5835         New module 'floor-ieee'.
5836         * modules/floor-ieee: New file.
5837         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5838         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5839         ISO C 99 with IEC 60559.
5840         * m4/floor-ieee.m4: New file.
5841         * modules/floor (Files): Add lib/floor.c.
5842         (Depends-on): Add 'float'.
5843         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5844         * lib/math.in.h (floor): New declaration.
5845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5846         REPLACE_FLOOR.
5847         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5848         * modules/floor-ieee-tests: New file.
5849         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5850         * tests/test-math-c++.cc: Check the signature of 'floor'.
5851         * doc/posix-functions/floor.texi: Mention the new module.
5852
5853 2010-12-21  Bruno Haible  <bruno@clisp.org>
5854
5855         New module 'roundf-ieee'.
5856         * modules/roundf-ieee: New file.
5857         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5858         test whether roundf works according to ISO C 99 with IEC 60559.
5859         * m4/roundf-ieee.m4: New file.
5860         * modules/roundf-ieee-tests: New file.
5861         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5862         * tests/test-roundf1.c (main): Remove signbit tests.
5863         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5864         * doc/posix-functions/roundf.texi: Mention the new module.
5865
5866 2010-12-21  Bruno Haible  <bruno@clisp.org>
5867
5868         New module 'truncf-ieee'.
5869         * modules/truncf-ieee: New file.
5870         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5871         test whether truncf works according to ISO C 99 with IEC 60559.
5872         * m4/truncf-ieee.m4: New file.
5873         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5875         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5876         * modules/truncf-ieee-tests: New file.
5877         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5878         * tests/test-truncf1.c (main): Remove signbit tests.
5879         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5880         * doc/posix-functions/truncf.texi: Mention the new module.
5881
5882 2010-12-21  Bruno Haible  <bruno@clisp.org>
5883
5884         New module 'ceilf-ieee'.
5885         * modules/ceilf-ieee: New file.
5886         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5887         test whether ceilf works according to ISO C 99 with IEC 60559.
5888         * m4/ceilf-ieee.m4: New file.
5889         * modules/ceilf-ieee-tests: New file.
5890         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5891         * tests/test-ceilf1.c (main): Remove signbit tests.
5892         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5893         * doc/posix-functions/ceilf.texi: Mention the new module.
5894
5895 2010-12-21  Bruno Haible  <bruno@clisp.org>
5896
5897         New module 'floorf-ieee'.
5898         * modules/floorf-ieee: New file.
5899         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5900         test whether floorf works according to ISO C 99 with IEC 60559.
5901         * m4/floorf-ieee.m4: New file.
5902         * modules/floorf-ieee-tests: New file.
5903         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5904         * tests/test-floorf1.c (main): Remove signbit tests.
5905         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5906         * doc/posix-functions/floorf.texi: Mention the new module.
5907
5908 2010-12-21  Bruno Haible  <bruno@clisp.org>
5909
5910         Support for minus zero in autoconf macros.
5911         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5912         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5913         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5914         * tests/minus-zero.h: Update comments.
5915
5916 2010-12-21  Bruno Haible  <bruno@clisp.org>
5917
5918         Tests for module 'ceil'.
5919         * modules/ceil-tests: New file.
5920         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5921         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5922
5923 2010-12-21  Bruno Haible  <bruno@clisp.org>
5924
5925         Tests for module 'floor'.
5926         * modules/floor-tests: New file.
5927         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5928         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5929
5930 2010-12-21  Bruno Haible  <bruno@clisp.org>
5931
5932         math: Fix indentation.
5933         * lib/math.in.h (floorf): Fix indentation.
5934
5935 2010-12-21  Bruno Haible  <bruno@clisp.org>
5936
5937         Fix cross-compilation guesses on Solaris.
5938         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5939         not match "solaris2.10".
5940         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5941         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5942         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5943
5944 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5945
5946         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5947         This fixes a problem observed with the latest coreutils snapshot
5948         that caused a test to fail on Solaris 8.  src/csplit.c's call
5949         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5950         earlier, instead of returning the number of bytes that would have
5951         been generated; this causes csplit to incorrectly report memory
5952         exhaustion.
5953         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5954         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5955         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5956         comments to match.
5957         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5958         Fix typo in matching older versions of Solaris: "solaris2.10"
5959         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5960         only for guessing while cross-compiling.
5961         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5962
5963 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5964
5965         ftoastr: fix comment again
5966         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5967         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5968         Also, simplify example a bit by using flags = 0.
5969
5970 2010-12-20  Bruno Haible  <bruno@clisp.org>
5971
5972         round*, trunc*: Update documentation regarding glibc.
5973         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5974         * doc/posix-functions/round.texi: Likewise.
5975         * doc/posix-functions/roundl.texi: Likewise.
5976         * doc/posix-functions/truncf.texi: Likewise.
5977         * doc/posix-functions/trunc.texi: Likewise.
5978         * doc/posix-functions/truncl.texi: Likewise.
5979
5980 2010-12-20  Bruno Haible  <bruno@clisp.org>
5981
5982         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5983         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5984         * doc/posix-functions/round.texi: Likewise.
5985         * doc/posix-functions/roundl.texi: Likewise.
5986
5987 2010-12-20  Bruno Haible  <bruno@clisp.org>
5988
5989         ttyname_r: Add missing declaration on HP-UX 11.
5990         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5991         HAVE_TTYNAME_R.
5992         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5993         declared. Set HAVE_TTYNAME_R always.
5994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5995         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5996         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5997         HAVE_TTYNAME_R.
5998         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5999
6000 2010-12-20  Bruno Haible  <bruno@clisp.org>
6001
6002         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6003         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6004         * doc/posix-functions/getlogin_r.texi: Likewise.
6005         * tests/test-getlogin.c: Include <errno.h>.
6006         (main): Avoid test failure on HP-UX 11.11.
6007         * tests/test-getlogin_r.c (main): Likewise.
6008
6009 2010-12-20  Bruno Haible  <bruno@clisp.org>
6010
6011         getlogin_r: Add missing declaration on HP-UX 11.
6012         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6013         declared also when it exists as a function.
6014         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6015
6016 2010-12-20  Bruno Haible  <bruno@clisp.org>
6017
6018         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6019         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6020         through wcrtomb.
6021
6022 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6023
6024         ftoastr: fix comment
6025         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6026         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6027
6028 2010-12-19  Bruno Haible  <bruno@clisp.org>
6029
6030         isnan: Ensure it is a macro.
6031         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6032         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6033         Solaris.
6034
6035 2010-12-19  Bruno Haible  <bruno@clisp.org>
6036
6037         ldexpl test: Fix link error on OSF/1 5.1.
6038         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6039
6040 2010-12-19  Bruno Haible  <bruno@clisp.org>
6041
6042         wctype: Make it work in C++ mode on OSF/1 5.1.
6043         * lib/wctype.in.h (iswblank): Declare but not define here.
6044         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6045         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6046         * modules/wctype (Files): Add lib/iswblank.c.
6047
6048 2010-12-19  Bruno Haible  <bruno@clisp.org>
6049
6050         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6051         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6052         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6053
6054 2010-12-19  Bruno Haible  <bruno@clisp.org>
6055
6056         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6057         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6058         _POSIX_PII_SOCKET.
6059         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6060         * doc/posix-functions/recvfrom.texi: Likewise.
6061         * doc/posix-functions/send.texi: Likewise.
6062         * doc/posix-functions/sendto.texi: Likewise.
6063
6064 2010-12-19  Bruno Haible  <bruno@clisp.org>
6065
6066         tcgetsid: Add missing declaration on OSF/1 5.1.
6067         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6068         HAVE_TCGETSID.
6069         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6070         Don't set HAVE_TCGETSID.
6071         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6072         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6073         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6074         HAVE_TCGETSID.
6075         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6076
6077 2010-12-19  Bruno Haible  <bruno@clisp.org>
6078
6079         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6080         * lib/stdio.in.h: During the include_next statement, let recursive
6081         includes of this file include only the system header file.
6082
6083 2010-12-19  Bruno Haible  <bruno@clisp.org>
6084
6085         iconv_open: Fix regression from 2010-12-04.
6086         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6087         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6088
6089 2010-12-19  Bruno Haible  <bruno@clisp.org>
6090
6091         stdbool test: Avoid a gcc warning.
6092         * tests/test-stdbool.c (main): Fail if e1 is false.
6093         Reported by Jim Meyering.
6094
6095 2010-12-19  Jim Meyering  <meyering@redhat.com>
6096
6097         setenv: restore to working order
6098         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6099         mistakenly removed.
6100         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6101         HAVE_SETENV.
6102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6103         HAVE_SETENV.
6104
6105 2010-12-19  Bruno Haible  <bruno@clisp.org>
6106
6107         Document some different function declarations on OSF/1 5.1.
6108         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6109         * doc/posix-functions/inet_ntop.texi: Likewise.
6110         * doc/posix-functions/gethostname.texi: Likewise.
6111         * lib/unistd.in.h (gethostname): Update comment.
6112
6113 2010-12-19  Bruno Haible  <bruno@clisp.org>
6114
6115         doc: Mention vasprintf-posix module.
6116         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6117         the 'vasprintf-posix' module.
6118         * doc/glibc-functions/vasprintf.texi: Likewise.
6119
6120 2010-12-19  Bruno Haible  <bruno@clisp.org>
6121
6122         unsetenv: Add missing declaration on OSF/1 5.1.
6123         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6124         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6125         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6127         not HAVE_UNSETENV.
6128         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6129         HAVE_UNSETENV.
6130         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6131
6132 2010-12-19  Bruno Haible  <bruno@clisp.org>
6133
6134         setenv: Add missing declaration on OSF/1 5.1.
6135         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6136         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6137         declared. Don't set HAVE_SETENV.
6138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6139         not HAVE_SETENV.
6140         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6141         HAVE_SETENV.
6142         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6143
6144 2010-12-19  Bruno Haible  <bruno@clisp.org>
6145
6146         nl_langinfo tests: Avoid gcc warning.
6147         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6148
6149 2010-12-19  Bruno Haible  <bruno@clisp.org>
6150
6151         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6152         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6153         _GL_CXXALIAS_SYS.
6154
6155 2010-12-19  Bruno Haible  <bruno@clisp.org>
6156
6157         stdbool: Relax test.
6158         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6159         address to 'bool' work in static initializer, for compilers other than
6160         GCC.
6161
6162 2010-12-19  Bruno Haible  <bruno@clisp.org>
6163
6164         ftello: Add missing declaration on OSF/1 5.1.
6165         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6166         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6168         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6169         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6170
6171 2010-12-19  Bruno Haible  <bruno@clisp.org>
6172
6173         fseeko: Add missing declaration on OSF/1 5.1.
6174         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6175         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6177         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6178         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6179
6180 2010-12-19  Bruno Haible  <bruno@clisp.org>
6181
6182         fchdir: Add missing declaration on OSF/1 5.1.
6183         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6186         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6187         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6188
6189 2010-12-19  Bruno Haible  <bruno@clisp.org>
6190
6191         relocatable-prog-wrapper: Separate from relocatable-prog.
6192         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6193         uninstall-relocwrapper rule here.
6194         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6195         Reported by Ian Beckwith <ianb@erislabs.net>.
6196
6197 2010-12-19  Bruno Haible  <bruno@clisp.org>
6198
6199         unistr/u8-mbsnlen: Add missing dependency.
6200         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6201         Reported by Ian Beckwith <ianb@erislabs.net>.
6202
6203 2010-12-19  Bruno Haible  <bruno@clisp.org>
6204
6205         iconv: Make it possible again to use this module without 'iconv-h'.
6206         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6207         if it is not defined.
6208         Reported by Ian Beckwith <ianb@erislabs.net>.
6209
6210 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6211
6212         acl: port to Solaris 8 when copying from tmpfs to ufs
6213         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6214         error number.  Problem observed on Solaris 8 with latest
6215         coreutils, with "mv A B", where A is on a tmpfs file system and B
6216         is on a ufs file system.  This caused coreutils' mv/part-symlink
6217         test to fail.
6218
6219         tests: set fail=0 at start
6220         * tests/init.sh (setup_): Move fail=0 initialization here ...
6221         (mktempd_): ... from here, so that tests can rely on fail being
6222         set to 0 initially.  This fixes a problem in coreutils; see:
6223         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6224
6225 2010-12-18  Bruno Haible  <bruno@clisp.org>
6226
6227         memmem-simple: Stylistic changes.
6228         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6229         Fix preprocessor directive indentation.
6230
6231 2010-12-15  Pádraig Brady <P@draigBrady.com>
6232
6233         memmem, memmem-simple: reorganize and expand empty needle check
6234         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6235         functional checks to memmem-simple so that one has a fully functional
6236         memmem by using just this module.
6237         Restrict the performance only check to the memmem module.
6238         Also expand the empty needle check to ensure the correct
6239         pointer is returned, not just a non NULL pointer.
6240         * doc/glibc-functions/memmem.texi: Rearrange the portability
6241         documentation to correlate with the rearranged checks.
6242         Clarify exactly how the memmem and memmem-simple modules
6243         relate to each other.
6244
6245 2010-12-15  Pádraig Brady <P@draigBrady.com>
6246             Bruno Haible  <bruno@clisp.org>
6247
6248         Improve cross-compilation guesses for uClibc.
6249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6250         that uClibc does not have the glibc bug.
6251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6252         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6253
6254 2010-12-14  Eric Blake  <eblake@redhat.com>
6255
6256         configmake: provide fallbacks for oldest supported autotools
6257         * m4/configmake.m4: New file.
6258         * modules/configmake (Files): Ship it.
6259         (configure.ac): Use it to guarantee fallbacks.
6260
6261 2010-12-13  Pádraig Brady <P@draigBrady.com>
6262
6263         read-file: Improve handling of large files
6264         * lib/read-file.c (fread_file): Minimize realloc()s
6265         for regular files, and better manage sizes around SIZE_MAX.
6266
6267 2010-12-13  Eric Blake  <eblake@redhat.com>
6268
6269         cloexec, fcntl: relax license
6270         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6271         consent from all contributors.
6272         * modules/fcntl (License): Likewise.
6273
6274 2010-12-10  Bruno Haible  <bruno@clisp.org>
6275
6276         Tests for module 'pipe-posix'.
6277         * modules/pipe-posix-tests: New file.
6278         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6279
6280 2010-12-10  Bruno Haible  <bruno@clisp.org>
6281
6282         pipe-posix: Make it work in C++ mode.
6283         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6284         (pipe): Use common idiom, not a macro definition.
6285         * lib/pipe.c: New file.
6286         * m4/pipe.m4: New file.
6287         * modules/pipe-posix (Description): Enhance.
6288         (Files): Add lib/pipe.c, m4/pipe.m4.
6289         (configure.ac): Invoke gl_FUNC_PIPE.
6290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6291         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6292         * tests/test-unistd-c++.cc: Check the signature of pipe.
6293
6294 2010-12-10  Bruno Haible  <bruno@clisp.org>
6295
6296         Rename module 'pipe' to 'spawn-pipe'.
6297         * modules/spawn-pipe: New file, renamed from modules/pipe.
6298         (Files, configure.ac, Makefile.am): Update.
6299         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6300         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6301         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6302         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6303         "spawn-pipe.h" instead of "pipe.h".
6304         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6305         to gl_SPAWN_PIPE.
6306         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6307         (Files, Makefile.am): Update.
6308         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6309         Update.
6310         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6311         Include "spawn-pipe.h" instead of "pipe.h".
6312         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6313         * lib/javacomp.c: Likewise.
6314         * lib/javaversion.c: Likewise.
6315         * lib/pipe-filter-gi.c: Likewise.
6316         * lib/pipe-filter-ii.c: Likewise.
6317         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6318         * modules/javacomp (Depends-on): Likewise.
6319         * modules/javaversion (Depends-on): Likewise.
6320         * modules/pipe-filter-gi (Depends-on): Likewise.
6321         * modules/pipe-filter-ii (Depends-on): Likewise.
6322         * MODULES.html.sh (Executing programs): Update.
6323         * NEWS: Mention the change.
6324
6325 2010-12-10  Eric Blake  <eblake@redhat.com>
6326
6327         pipe-posix: new module
6328         * modules/pipe-posix: New file.
6329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6330         (gl_UNISTD_H): Check for declaration.
6331         * modules/unistd (Makefile.am): Substitute it.
6332         * lib/unistd.in.h (pipe): Provide it for mingw.
6333         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6334         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6335
6336 2010-12-07  Bruno Haible  <bruno@clisp.org>
6337
6338         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6339         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6340         u8_strcmp_gnu.
6341         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6342
6343 2010-12-06  Bruno Haible  <bruno@clisp.org>
6344
6345         Update internal documentation.
6346         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6347
6348 2010-12-04  Bruno Haible  <bruno@clisp.org>
6349
6350         Put more information about failed tests into the test return codes.
6351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6352         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6353         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6354         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6355         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6356         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6357         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6358         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6359         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6362         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6363         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6364         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6365         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6366         returns a bit mask.
6367         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6368         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6369         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6370         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6371         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6372         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6375         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6376         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6377         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6378         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6379         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6380         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6381         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6382         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6383         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6384         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6385         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6386         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6387         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6388         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6389         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6390         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6391         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6392         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6393         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6394         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6395         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6396         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6397         gl_PRINTF_PRECISION): Likewise.
6398         * m4/regex.m4 (gl_REGEX): Likewise.
6399         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6400         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6401         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6402         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6403         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6404         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6405         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6406         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6407         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6408         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6409         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6410         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6411         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6412         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6413         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6414         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6415         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6416         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6418         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6419         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6420         enumerated value.
6421         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6422
6423 2010-12-04  Bruno Haible  <bruno@clisp.org>
6424
6425         Update for Solaris 11 2010-11.
6426         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6427         Express, released in November 2010.
6428
6429 2010-12-04  Bruno Haible  <bruno@clisp.org>
6430
6431         nproc: Relax license.
6432         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6433         and Paul Eggert.
6434         Requested by Ludovic Courtès <ludo@gnu.org>.
6435
6436 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6437
6438         utimecmp: fine-grained src to nearby coarse-grained dest
6439
6440         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6441         and the source is on a file system with higher-resolution time
6442         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6443         not work, and the time stamps are close together, the algorithm to
6444         determine the exact resolution from the read-back mtime was buggy:
6445         it had a "!=" where it should have had an "==".  This bug has been
6446         in the code ever since it was introduced to gnulib.
6447         Problem reported by Dan Jacobson in
6448         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6449
6450 2010-11-30  Bruno Haible  <bruno@clisp.org>
6451
6452         strerror_r-posix: Fix autoconf test.
6453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6454
6455 2010-11-28  Bruno Haible  <bruno@clisp.org>
6456             Paul Eggert  <eggert@cs.ucla.edu>
6457
6458         Tests for module 'getdomainname'.
6459         * modules/getdomainname-tests: New file.
6460         * tests/test-getdomainname.c: New file, based on
6461         tests/test-gethostname.c.
6462
6463 2010-11-28  Bruno Haible  <bruno@clisp.org>
6464             Paul Eggert  <eggert@cs.ucla.edu>
6465
6466         getdomainname: Use the system function when possible.
6467         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6468         (getdomainname): Replace if needed. Provide the declaration if it is
6469         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6470         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6471         (getdomainname): When the system has getdomainname, call the system
6472         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6473         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6474         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6475         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6476         the function if its second argument is of type 'int' or if it is found
6477         in libnsl.
6478         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6479         <sys/systeminfo.h> and sysinfo().
6480         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6482         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6483         HAVE_GETDOMAINNAME.
6484         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6485         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6486         * doc/glibc-functions/getdomainname.texi: Document the problems with
6487         the getdomainname declaration.
6488
6489 2010-11-28  Bruno Haible  <bruno@clisp.org>
6490
6491         sys_socket: Ensure ss_family field on AIX.
6492         * lib/sys_socket.in.h (ss_family): New macro definition.
6493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6494         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6495         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6496         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6497         * modules/sys_socket (Makefile.am): Substitute
6498         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6499         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6500
6501 2010-11-27  Bruno Haible  <bruno@clisp.org>
6502
6503         readline: Improve configure output.
6504         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6505         "checking for readline..." result understandable.
6506
6507 2010-11-27  Bruno Haible  <bruno@clisp.org>
6508
6509         *printf-posix: Detect a bug on Solaris 10/x86.
6510         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6511         for floating-point output.
6512         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6513         directive.
6514         * tests/test-snprintf-posix.h (test_function): Likewise.
6515         * tests/test-sprintf-posix.h (test_function): Likewise.
6516         * tests/test-vasprintf-posix.c (test_function): Likewise.
6517         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6518         * doc/posix-functions/printf.texi: Likewise.
6519         * doc/posix-functions/snprintf.texi: Likewise.
6520         * doc/posix-functions/sprintf.texi: Likewise.
6521         * doc/posix-functions/vfprintf.texi: Likewise.
6522         * doc/posix-functions/vprintf.texi: Likewise.
6523         * doc/posix-functions/vsnprintf.texi: Likewise.
6524         * doc/posix-functions/vsprintf.texi: Likewise.
6525         * doc/glibc-functions/obstack_printf.texi: Likewise.
6526         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6527
6528 2010-11-27  Bruno Haible  <bruno@clisp.org>
6529
6530         Fix link error when module libunistring-optional is in use.
6531         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6532         * modules/striconveha-tests (Makefile.am): Likewise.
6533
6534 2010-11-27  Bruno Haible  <bruno@clisp.org>
6535
6536         regex: Mention link dependencies.
6537         * modules/regex (Link): New section.
6538         * modules/rpmatch (Link): Likewise.
6539         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6540
6541 2010-11-27  Bruno Haible  <bruno@clisp.org>
6542
6543         ftoastr: Fix compilation error on Solaris.
6544         * lib/ftoastr.c: Include <config.h>.
6545
6546 2010-11-27  Bruno Haible  <bruno@clisp.org>
6547
6548         getloadavg: Update documentation.
6549         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6550
6551 2010-11-27  Bruno Haible  <bruno@clisp.org>
6552
6553         sys_socket: Fix test whether the functions are declared.
6554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6555         not <sys/select.h>.
6556
6557 2010-11-27  Bruno Haible  <bruno@clisp.org>
6558
6559         getpass: Make sure to get system declaration on some platforms.
6560         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6561         gl_USE_SYSTEM_EXTENSIONS.
6562         * modules/getpass (Depends-on): Add extensions.
6563
6564 2010-11-26  Bruno Haible  <bruno@clisp.org>
6565
6566         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6567         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6568         'iconv' module is present.
6569         (ICONV_CONST): New macro.
6570         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6571         ICONV_CONST.
6572         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6573         set ICONV_CONST.
6574         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6575         here.
6576         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6577         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6578         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6579         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6580         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6581         present.
6582
6583 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6584
6585         ftoastr: comment fix
6586         * lib/ftoastr.c: "little" -> "little or no" in comment
6587
6588 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6589
6590         stdint: port to GCC 4.3 + OSX + Octave
6591         On this platform, stdint.h is buggy and defines int64_t to long
6592         long int.  The replacement defined it to long int, causing
6593         problems with C++ style name mangling.  Instead, trust the system
6594         definition if INT64_MAX is defined, and likewise for the unsigned
6595         variant.   Problem reported by Jarno Rajahalme in
6596         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6597         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6598         and don't mess with int64_t and INT64_MAX in this case.
6599         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6600
6601 2010-11-24  Bruno Haible  <bruno@clisp.org>
6602
6603         doc: Corrections regarding MacOS X 10.4 and 10.5.
6604         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6605         MacOS X.
6606         Reported by Simon Josefsson.
6607
6608 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6609
6610         Uninstall ".bin" files installed by relocwrapper.
6611         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6612         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6613         unless it is already there.
6614
6615 2010-11-21  Bruno Haible  <bruno@clisp.org>
6616
6617         Update for NetBSD 5.0.
6618         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6619         NetBSD; the test fails on NetBSD 5.0.
6620         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6621         about NetBSD.
6622
6623 2010-11-21  Bruno Haible  <bruno@clisp.org>
6624
6625         Update for HP-UX 11.23 and HP-UX 11.31.
6626         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6627         HP-UX.
6628
6629 2010-11-21  Bruno Haible  <bruno@clisp.org>
6630
6631         Update for MacOS X 10.5.
6632         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6633         MacOS X; the test fails on MacOS X 10.5.8.
6634         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6635         about MacOS X.
6636
6637 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6638
6639         bootstrap: add bootstrap_sync option.
6640         See discussion at
6641         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6642         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6643         * build-aux/bootstrap: Accept --bootstrap-sync to update
6644         bootstrap if it is not identical to the local gnulib's
6645         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6646         enable this by default.  Accept --no-bootstrap-sync to disable
6647         it.
6648
6649 2010-11-20  Bruno Haible  <bruno@clisp.org>
6650
6651         Ensure that <features.h> is included before __GLIBC__ is tested.
6652         * lib/printf-parse.h: Include <features.h>.
6653         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6654         Reported by Mike Frysinger <vapier@gentoo.org>.
6655
6656         Ensure that <features.h> is included before __GLIBC__ is tested.
6657         * lib/wchar.in.h: Include <features.h>.
6658         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6659         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6660         Reported by Mike Frysinger <vapier@gentoo.org>.
6661
6662         Ensure that <features.h> is included before __GLIBC__ is tested.
6663         * lib/arpa_inet.in.h: Include <features.h>.
6664         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6665         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6666         Reported by Mike Frysinger <vapier@gentoo.org>.
6667
6668         Ensure that <features.h> is included before __GLIBC__ is tested.
6669         * build-aux/link-warning.h: Include <features.h>.
6670         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6671         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6672         Reported by Mike Frysinger <vapier@gentoo.org>.
6673
6674         Ensure that <features.h> is included before __GLIBC__ is tested.
6675         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6676         Reported by Mike Frysinger <vapier@gentoo.org>.
6677
6678 2010-11-20  Bruno Haible  <bruno@clisp.org>
6679
6680         memmem: Fix autoconf test.
6681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6682
6683 2010-11-20  Bruno Haible  <bruno@clisp.org>
6684
6685         Port to uClibc.
6686         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6687         * lib/fcntl.in.h: Likewise.
6688         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6689         * lib/mbrtowc.c (mbrtowc): Likewise.
6690         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6691         * lib/strerror_r.c: Likewise.
6692         * lib/unistr/u8-strnlen.c: Likewise.
6693         * lib/vasnprintf.c (decimal_point_char): Likewise.
6694         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6695         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6696         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6697         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6698         * tests/test-sigaction.c (handler, main): Likewise.
6699         * lib/freading.h: Treat uClibc like a non-glibc platform.
6700         * lib/freading.c: Likewise.
6701         * lib/gettext.h: Likewise.
6702         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6703         Likewise.
6704         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6705         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6706         * lib/propername.c (proper_name_utf8): Likewise.
6707         * lib/spawn.in.h: Likewise.
6708         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6709         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6710         mem_cd_iconveh_internal): Likewise.
6711         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6712         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6713         strstr, strcasestr): Likewise.
6714         * lib/unicodeio.c (unicode_to_mb): Likewise.
6715         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6716         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6717         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6718         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6719         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6720         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6721         * lib/unistr/u8-stpncpy.c: Likewise.
6722         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6723         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6724         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6725         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6726         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6728         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6731         Likewise.
6732         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6733         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6734         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6737         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6738         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6739         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6740         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6741         * tests/test-striconveha.c (main): Likewise.
6742         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6743         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6744         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6745         * doc/posix-functions/getline.texi: Likewise.
6746         Reported by Mike Frysinger <vapier@gentoo.org>.
6747
6748 2010-11-20  Bruno Haible  <bruno@clisp.org>
6749
6750         nproc: Fix condition.
6751         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6752         HAVE_PTHREAD_AFFINITY_NP.
6753
6754 2010-11-20  Bruno Haible  <bruno@clisp.org>
6755
6756         Fix a comment.
6757         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6758
6759 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6760
6761         ftoastr: don't assume snprintf
6762         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6763         Implement a subset of snprintf here, by using sprintf safely.
6764         * modules/ftoastr (Depends-on): Remove snprintf.
6765
6766 2010-11-19  Jim Meyering  <meyering@redhat.com>
6767
6768         test-rename.h: fix compilation failure
6769         * tests/test-rename.h (test_rename): Add omitted "}".
6770
6771 2010-11-17  Jim Meyering  <meyering@redhat.com>
6772
6773         maint.mk: add a URL discussing the no-@acronym policy
6774         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6775
6776 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6777
6778         ftoastr: depend on snprintf, improve comments
6779         * lib/ftoastr.c: Also mention Loitsch's draft.
6780         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6781         needed in the current implementation, but it might simplify
6782         speeding up the code later.
6783         * modules/ftoastr: Depend on snprintf; this improves portability.
6784         Suggested by Bruno Haible in the same email.
6785
6786         ftoastr: port to hosts lacking strtof and strtold
6787         Problem reported by Bruno Haible in
6788         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6789         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6790         environment and strtold (and presumably strtof) are not available.
6791         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6792         (configure.ac): Require gl_C99_STRTOLD.
6793
6794 2010-11-18  Bruno Haible  <bruno@clisp.org>
6795
6796         c-strtold: Avoid link error on AIX 7.
6797         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6798         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6799         (gl_C_STRTOLD): Test whether strtold_l exists.
6800         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6801
6802 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6803
6804         intprops: new macro INT_BITS_STRLEN_BOUND
6805         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6806         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6807         not exposed.  Also, it uses a slightly tighter bound than before;
6808         though this makes no practical difference, we might as well be as
6809         tight as we easily can.
6810
6811         ftoastr: new module, for lossless conversion of floats to short strings
6812         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6813         * modules/ftoastr: New files.
6814
6815 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6816
6817         bootstrap: port to Solaris sed
6818         * build-aux/bootstrap (get_version): Port to Solaris sed.
6819         See Ralf Wildenhues's note in
6820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6821
6822 2010-11-14  Jim Meyering  <meyering@redhat.com>
6823
6824         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6825         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6826         and move definition closer to sole use.
6827
6828 2010-11-13  Jim Meyering  <meyering@redhat.com>
6829
6830         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6831         Now we require at least autoconf-2.59, which means the work-around
6832         is no longer needed.
6833         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6834         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6835         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6836         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6837         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6838
6839 2010-11-13  Bruno Haible  <bruno@clisp.org>
6840
6841         rename, renameat: Avoid test failures at NFS mounted locations.
6842         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6843         functions.
6844         (test_rename): Use assert_nonexistent.
6845         * tests/test-rename.c: Include <dirent.h>.
6846         * tests/test-renameat.c: Likewise.
6847         Reported by Gary V. Vaughan <gary@gnu.org>.
6848
6849         rename, renameat: Document Linux bug with NFS
6850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6851         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6852         * doc/posix-functions/renameat.texi: Likewise.
6853         Suggested by Eric Blake.
6854
6855 2010-11-13  Bruno Haible  <bruno@clisp.org>
6856
6857         rename test: Add comments.
6858         * tests/test-rename.h (test_rename): Add structure and comments.
6859
6860 2010-11-13  Eric Blake  <eblake@redhat.com>
6861
6862         maintainer-makefile: cover a few more files
6863         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6864         scripts generated within C files, for libvirt.
6865
6866 2010-11-13  Bruno Haible  <bruno@clisp.org>
6867
6868         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6869         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6870         character, return the number of bytes that belong together, not always
6871         1.
6872         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6873         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6874         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6875         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6876         number of bytes of an invalid character.
6877         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6878         (main): Invoke it.
6879         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6880         results.
6881         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6882         malformed byte sequences.
6883         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6884         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6885         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6886         Reported by Ben Pfaff and Paolo Bonzini.
6887
6888 2010-11-13  Bruno Haible  <bruno@clisp.org>
6889
6890         openat: Work around glibc bug with fchownat() and empty file names.
6891         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6892         (gl_FUNC_FCHOWNAT): Invoke it.
6893         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6894         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6895         Reported by Gary V. Vaughan <gary@gnu.org>.
6896
6897 2010-11-13  Bruno Haible  <bruno@clisp.org>
6898
6899         openat: Ensure autoconf macro ordering.
6900         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6901         gl_USE_SYSTEM_EXTENSIONS.
6902         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6903
6904 2010-11-13  Bruno Haible  <bruno@clisp.org>
6905
6906         Update comments.
6907         * lib/unistr/u8-check.c: Update file name in comments.
6908         * lib/unistr/u8-mblen.c: Likewise.
6909         * lib/unistr/u8-prev.c: Likewise.
6910         * lib/unistr/u8-strmblen.c: Likewise.
6911         * lib/unistr/u8-strmbtouc.c: Likewise.
6912
6913 2010-11-13  Jim Meyering  <meyering@redhat.com>
6914
6915         tests: avoid test failure on Solaris 10 due to lack of PATH export
6916         * tests/test-update-copyright.sh: Don't forget to export PATH.
6917
6918         init.sh: ensure that IFS is defined, just in case...
6919         * tests/init.sh (setup_): Ensure that IFS is defined,
6920         so that saving and restoring it works as expected.  This
6921         appears to be useful at least for an old version of dash
6922         from a long time ago (RH 6).  See here for details:
6923         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6924
6925         maint.mk: tighten "test a == b" check
6926         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6927         test to files that contain something like #!/bin/sh.
6928         Without this, coreutils would get two false positives in
6929         the comments of C source files.
6930
6931 2010-11-12  Eric Blake  <eblake@redhat.com>
6932
6933         bootstrap: fix typo in previous attempt
6934         * build-aux/bootstrap (buildreq): Correct the grouping.
6935         Reported by Paul Eggert.
6936
6937         maintainer-makefile: prohibit test x == x
6938         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6939         Based on a report by Matthias Bolte.
6940
6941         bootstrap: allow FreeBSD gzip
6942         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6943         which has no '.' and goes to stderr.
6944         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6945         Reported by Matthias Bolte.
6946
6947         maintainer-makefile: check for i18n setup
6948         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6949         will likely work.
6950
6951 2010-11-12  Bruno Haible  <bruno@clisp.org>
6952
6953         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6954         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6955         * lib/nanosleep.c (nanosleep): Likewise.
6956
6957 2010-11-11  Bruno Haible  <bruno@clisp.org>
6958
6959         fcntl-h: Fix for use of C++ on glibc systems.
6960         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6961         also on glibc systems in C++ mode.
6962         Reported by Gary V. Vaughan <gary@gnu.org>.
6963
6964 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6965
6966         mknod: avoid false failure with dash
6967         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6968
6969 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6970
6971         unlink: Fix "is it should" typo in diagnostic.
6972         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6974
6975 2010-11-11  Bruno Haible  <bruno@clisp.org>
6976
6977         Tests for module 'strerror_r-posix'.
6978         * modules/strerror_r-posix-tests: New file.
6979         * tests/test-strerror_r.c: New file.
6980         * tests/test-string-c++.cc: Check the signature of strerror_r.
6981
6982         New module 'strerror_r-posix'.
6983         * lib/string.in.h (strerror_r): New declaration.
6984         * lib/strerror_r.c: New file.
6985         * m4/strerror_r.m4: New file.
6986         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6987         of strerror_r.
6988         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6989         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6990         * modules/strerror_r-posix: New file.
6991         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6992         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6993         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6994         portability problems.
6995
6996 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6997
6998         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6999         line is also considered for output. Quoted function name in shell
7000         command, so temporary files for functions like MyClass::operator()
7001         are removed correctly without errors.
7002
7003 2010-11-09  Bruno Haible  <bruno@clisp.org>
7004
7005         * doc/posix-functions/strerror.texi: List more failing platforms.
7006
7007         * doc/posix-functions/strerror.texi: Add a comment.
7008
7009 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7010
7011         fdopendir: fix bug on MacOS X when low on file descriptors
7012
7013         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7014         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7015         All callers changed.
7016         (fdopendir): Invoke save_cwd at the top level, not after using
7017         multiple dup() calls to use up file descriptors.  Then retry
7018         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7019         less than the maximum number of open file descriptors, because
7020         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7021         on Mac OS X 10.6.4 for tar 1.24
7022         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7023         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7024         and for tar 1.25
7025         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7026
7027 2010-11-07  Bruno Haible  <bruno@clisp.org>
7028
7029         vasnprintf: Support I flag on glibc systems.
7030         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7031         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7032         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7033         snprintf function.
7034         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7035         glibc systems.
7036         * tests/test-vasnprintf-posix3.c: New file.
7037         * modules/vasnprintf-posix-tests (Files): Add it.
7038         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7039
7040 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7041
7042         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7043         * MODULES.html.sh: For compiler warnings, use name
7044         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7045
7046 2010-11-05  Eric Blake  <eblake@redhat.com>
7047
7048         ceil, floor: avoid spurious failure with icc
7049         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7050         [denormals-as-zero] when optimizing without -mieee-fp option.
7051         * tests/test-floorf2.c (floorf_reference): Likewise.
7052         * tests/test-ceilf1.c (dummy): New function.
7053         (main): Use it to outsmart icc's optimization.
7054         * tests/test-floorf1.c (dummy, main): Likewise.
7055
7056         tests: require working signbit
7057         * modules/ceilf-tests (Depends-on): Add signbit.
7058         * modules/ceill-tests (Depends-on): Likewise.
7059         * modules/floorf-tests (Depends-on): Likewise.
7060         * modules/floorl-tests (Depends-on): Likewise.
7061         * modules/round-tests (Depends-on): Likewise.
7062         * modules/roundf-tests (Depends-on): Likewise.
7063         * modules/roundl-tests (Depends-on): Likewise.
7064         * modules/trunc-tests (Depends-on): Likewise.
7065         * modules/truncf-tests (Depends-on): Likewise.
7066         * modules/truncl-tests (Depends-on): Likewise.
7067
7068         strtod: work around icc bug
7069         * lib/strtod.c (minus_zero): Define to working value.
7070         (strtod): Use it to avoid icc bug.
7071
7072         copysign: enhance tests
7073         * modules/copysign-tests (Files): Add minus-zero.h.
7074         * tests/test-copysign.c (main): Also test zeros.
7075
7076 2010-11-04  Eric Blake  <eblake@redhat.com>
7077
7078         ceil, floor, round, trunc: enhance tests of -0
7079         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7080         * tests/test-ceill.c (main): Likewise.
7081         * tests/test-floorf1.c (main): Likewise.
7082         * tests/test-floorl.c (main): Likewise.
7083         * tests/test-round1.c (main): Likewise.
7084         * tests/test-roundf1.c (main): Likewise.
7085         * tests/test-roundl.c (main): Likewise.
7086         * tests/test-trunc1.c (main): Likewise.
7087         * tests/test-truncf1.c (main): Likewise.
7088         * tests/test-truncl.c (main): Likewise.
7089
7090 2010-11-04  Eric Blake  <eblake@redhat.com>
7091
7092         frexp, tests: work around ICC bug with -zero
7093         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7094         works with more compilers.
7095         * tests/minus-zero.h: New file.
7096         * modules/ceilf-tests (Files): Include it.
7097         * modules/ceill-tests (Files): Likewise.
7098         * modules/floorf-tests (Files): Likewise.
7099         * modules/floorl-tests (Files): Likewise.
7100         * modules/frexp-nolibm-tests (Files): Likewise.
7101         * modules/frexp-tests (Files): Likewise.
7102         * modules/frexpl-nolibm-tests (Files): Likewise.
7103         * modules/frexpl-tests (Files): Likewise.
7104         * modules/isnan-tests (Files): Likewise.
7105         * modules/isnand-nolibm-tests (Files): Likewise.
7106         * modules/isnand-tests (Files): Likewise.
7107         * modules/isnanf-nolibm-tests (Files): Likewise.
7108         * modules/isnanf-tests (Files): Likewise.
7109         * modules/isnanl-nolibm-tests (Files): Likewise.
7110         * modules/isnanl-tests (Files): Likewise.
7111         * modules/round-tests (Files): Likewise.
7112         * modules/roundf-tests (Files): Likewise.
7113         * modules/roundl-tests (Files): Likewise.
7114         * modules/ldexpl-tests (Files): Likewise.
7115         * modules/signbit-tests (Files): Likewise.
7116         * modules/snprintf-posix-tests (Files): Likewise.
7117         * modules/sprintf-posix-tests (Files): Likewise.
7118         * modules/strtod-tests (Files): Likewise.
7119         * modules/trunc-tests (Files): Likewise.
7120         * modules/truncf-tests (Files): Likewise.
7121         * modules/truncl-tests (Files): Likewise.
7122         * modules/vsnprintf-posix-tests (Files): Likewise.
7123         * modules/vsprintf-posix-tests (Files): Likewise.
7124         * modules/vasnprintf-posix-tests (Files): Likewise.
7125         * modules/vasprintf-posix-tests (Files): Likewise.
7126         * tests/test-ceilf1.c (main): Use it.
7127         * tests/test-ceill.c (main): Likewise.
7128         * tests/test-floorf1.c (main): Likewise.
7129         * tests/test-floorl.c (main): Likewise.
7130         * tests/test-frexp.c (main): Likewise.
7131         * tests/test-frexpl.c (main): Likewise.
7132         * tests/test-isnan.c (main): Likewise.
7133         * tests/test-isnand.h (main): Likewise.
7134         * tests/test-isnanf.h (main): Likewise.
7135         * tests/test-isnanl.h (main): Likewise.
7136         * tests/test-ldexpl.c (main): Likewise.
7137         * tests/test-round.c (main): Likewise.
7138         * tests/test-roundf.c (main): Likewise.
7139         * tests/test-roundl.c (main): Likewise.
7140         * tests/test-signbit.c (test_signbitf, test_signbitd)
7141         (test_signbitl): Likewise.
7142         * tests/test-snprintf-posix.h (test_function): Likewise.
7143         * tests/test-sprintf-posix.h (test_function): Likewise.
7144         * tests/test-strtod.c (main): Likewise.
7145         * tests/test-trunc1.c (main): Likewise.
7146         * tests/test-truncf1.c (main): Likewise.
7147         * tests/test-truncl.c (main): Likewise.
7148
7149         isnanl: work around icc bug
7150         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7151
7152 2010-11-03  Eric Blake  <eblake@redhat.com>
7153
7154         tests: fix compiler warnings
7155         * tests/test-getopt.h (test_getopt): Fix condition.
7156         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7157         * tests/test-pipe2.c (main): Likewise.
7158         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7159
7160         utimens: fix broken m4 test
7161         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7162
7163 2010-10-28  Bruno Haible  <bruno@clisp.org>
7164
7165         posix_spawn*, getdtablesize: Relax license.
7166         * modules/posix_spawn (License): Change to LGPLv2+.
7167         * modules/posix_spawnp (License): Likewise.
7168         * modules/posix_spawn-internal (License): Likewise.
7169         * modules/posix_spawnattr_init (License): Likewise.
7170         * modules/posix_spawnattr_getflags (License): Likewise.
7171         * modules/posix_spawnattr_setflags (License): Likewise.
7172         * modules/posix_spawnattr_getpgroup (License): Likewise.
7173         * modules/posix_spawnattr_setpgroup (License): Likewise.
7174         * modules/posix_spawnattr_getschedparam (License): Likewise.
7175         * modules/posix_spawnattr_setschedparam (License): Likewise.
7176         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7177         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7178         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7179         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7180         * modules/posix_spawnattr_getsigmask (License): Likewise.
7181         * modules/posix_spawnattr_setsigmask (License): Likewise.
7182         * modules/posix_spawnattr_destroy (License): Likewise.
7183         * modules/posix_spawn_file_actions_init (License): Likewise.
7184         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7185         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7186         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7187         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7188         * modules/getdtablesize (License): Likewise.
7189         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7190
7191 2010-10-26  Bruno Haible  <bruno@clisp.org>
7192
7193         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7194         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7195         Cygwin and mingw.
7196         Suggested by Eric Blake.
7197
7198 2010-10-26  Bruno Haible  <bruno@clisp.org>
7199
7200         stdio: Work around compilation error due to renameat() on Solaris 10.
7201         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7202         * lib/renameat.c: Don't include <unistd.h> here.
7203         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7204         Reported by Paul Eggert and Eric Blake.
7205
7206 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7207
7208         renameat: port to Solaris 10, which declares renameat in unistd.h
7209
7210         * lib/renameat.c: Include unistd.h before stdio.h, because
7211         Solaris 10 declares renameat in unistd.h.  Problem encountered
7212         when building GNU tar 1.24 on Solaris 10.
7213
7214 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7215
7216         fdopendir: fix C89 compilation
7217         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7218         compilers.
7219
7220 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7221
7222         inttostr: simplify by removing unnecessary redundancy
7223         * lib/anytostr.c: Don't include verify.h.
7224         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7225         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7226         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7227         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7228         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7229         Likewise.
7230         * modules/inttostr (Depends-on): Remove 'verify'.
7231
7232 2010-10-23  Bruno Haible  <bruno@clisp.org>
7233
7234         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7235         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7236         Reported by Eric Blake.
7237
7238 2010-10-23  Bruno Haible  <bruno@clisp.org>
7239
7240         Tests: Fix LOCALE_JA on MirBSD 10.
7241         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7242         to an UTF-8 locale.
7243         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7244         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7245         Reported by Eric Blake.
7246
7247 2010-10-21  Bruno Haible  <bruno@clisp.org>
7248
7249         nl_langinfo test: Avoid test failure on NetBSD 5.
7250         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7251         Reported by Eric Blake.
7252
7253 2010-10-21  Eric Blake  <eblake@redhat.com>
7254
7255         c-stack: work around libsigsegv 2.8 bug
7256         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7257         overflow on at least PowerPC64.
7258
7259 2010-10-17  Bruno Haible  <bruno@clisp.org>
7260
7261         userspec: Drop redundant file.
7262         * modules/userspec (Files): Remove lib/inttostr.h.
7263
7264 2010-10-17  Bruno Haible  <bruno@clisp.org>
7265
7266         nl_langinfo tests: Silence some warnings.
7267         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7268         Reported by Jim Meyering.
7269
7270 2010-10-17  Bruno Haible  <bruno@clisp.org>
7271
7272         Make use of GCC's attribute __alloc_size__.
7273         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7274         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7275         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7276         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7277         __alloc_size__.
7278         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7279         Suggested by Jim Meyering.
7280
7281 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7282
7283         bootstrap: anchor .gitignore entries.
7284         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7285         with...
7286         (insert_vc_ignore): ... this new function, which prepends `/' to
7287         all .gitignore entries before passing them to
7288         insert_sorted_if_absent.
7289
7290 2010-10-16  Bruno Haible  <bruno@clisp.org>
7291
7292         nextafter: Fix configure check.
7293         * modules/nextafter (configure.ac): Correct expected prototype.
7294
7295 2010-10-16  Bruno Haible  <bruno@clisp.org>
7296
7297         termios: Update documentation.
7298         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7299
7300 2010-10-16  Bruno Haible  <bruno@clisp.org>
7301
7302         tests: Make them compile with TinyCC.
7303         * tests/test-strstr.c (main): Remove parentheses around array
7304         initializer.
7305
7306 2010-10-15  Eric Blake  <eblake@redhat.com>
7307
7308         ignore-value: make header idempotent
7309         * lib/ignore-value.h: Add double-inclusion guards.
7310         Reported by Stefan Berger.
7311
7312 2010-10-15  Jim Meyering  <meyering@redhat.com>
7313
7314         GNUmakefile: handle "stable" target, not "major"
7315         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7316         lists in maint.mk and announce-gen.  Without this, "make stable"
7317         would fail to ensure that $(VERSION) is up to date.
7318
7319 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7320
7321         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7322         & co.
7323
7324 2010-10-14  Bruno Haible  <bruno@clisp.org>
7325
7326         vasnprintf: Don't set errno to 0.
7327         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7328         block that sets it to 0.
7329         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7330
7331 2010-10-14  Bruno Haible  <bruno@clisp.org>
7332
7333         socketlib: Fix.
7334         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7335         gl_PREREQ_SYS_H_WINSOCK2.
7336         Reported by Ian Beckwith <ianb@erislabs.net>.
7337
7338 2010-10-13  Jim Meyering  <meyering@redhat.com>
7339
7340         test-select-stdin.c: avoid warn_unused_result warnings
7341         * tests/test-select-stdin.c: Include "macros.h".
7342         ASSERT that read and fflush succeed.
7343
7344 2010-10-13  Jim Meyering  <meyering@redhat.com>
7345
7346         git-version-gen: do require git-VC'd files in cwd
7347         * build-aux/git-version-gen: Reject a git version string
7348         if there are no commits associated with the current directory.
7349         This avoids an unlikely false-positive (unrelated dir whose parent
7350         repository also contains a tag matching v*), as pointed out
7351         by Giuseppe Scrivano in
7352         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7353
7354 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7355
7356         argv-iter: omit nonconforming declaration
7357         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7358         enum arg_iter_err declaration, which doesn't conform to C99.
7359         Solaris 10 cc warns about this.
7360
7361 2010-10-13  Eric Blake  <eblake@redhat.com>
7362
7363         termios: fix compilation on mingw
7364         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7365         (gl_TERMIOS_H): Adjust it on mingw.
7366         * modules/termios (Makefile.am): Substitute new key.
7367         * lib/termios.in.h (includes): Make include_next conditional.
7368         * doc/posix-headers/termios.texi (termios.h): Update
7369         documentation.
7370         Reported by Daniel P. Berrange.
7371
7372 2010-10-13  Jim Meyering  <meyering@redhat.com>
7373
7374         git-version-gen: don't require that .git/ be in the current dir
7375         * build-aux/git-version-gen: Adjust this script so that it works
7376         when run from any working directory beneath the top-level .git/-
7377         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7378         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7379
7380         test-select: avoid warn_unused_result warnings
7381         * tests/test-select.c: Include "macros.h".
7382         ASSERT that each call to read, write, and pipe succeeds.
7383         While not technically required, also check each "close".
7384         * modules/select-tests (Files): Add tests/macros.h.
7385
7386         test-symlinkat: remove declaration of unused local
7387         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7388
7389         test-inttostr: avoid shadowing warnings
7390         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7391         and use malloc rather than the stack for the same reason as
7392         mentioned in the comment justifying the other allocation.
7393
7394 2010-10-11  Bruno Haible  <bruno@clisp.org>
7395
7396         stdlib: Allow multiple gnulib generated replacements to coexist.
7397         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7398         Reported by Sam Steingold <sds@gnu.org>.
7399
7400 2010-10-11  Jim Meyering  <meyering@redhat.com>
7401
7402         fix a documentation typo
7403         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7404
7405 2010-10-11  Eric Blake  <eblake@redhat.com>
7406
7407         futimens: work around Solaris 11 bug
7408         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7409         * tests/test-futimens.h (test_futimens): Enhance, rather than
7410         weaken test.
7411         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7412
7413 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7414
7415         Indentation.
7416         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7417         higher-level operators more to the left.
7418
7419 2010-10-11  Jim Meyering  <meyering@redhat.com>
7420
7421         test-futimens: avoid unwarranted test failure on Solaris 5.11
7422         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7423         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7424         because it tries to dereference the NULL name argument.
7425
7426 2010-10-11  Bruno Haible  <bruno@clisp.org>
7427
7428         Indentation.
7429         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7430         indentation.
7431
7432 2010-10-11  Jim Meyering  <meyering@redhat.com>
7433
7434         spawn.in.h: make indentation consistent with parentheses
7435         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7436         Make indentation consistent with parentheses.
7437
7438 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7439
7440         Fix mismatched parens in previous commit
7441         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7442         parens.
7443
7444 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7445
7446         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7447
7448         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7449         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7450         * lib/malloca.c: Include "verify.h".
7451         (verify1): Remove, replacing with a verify call.
7452         * lib/relocwrapper.c (verify1): Likewise.
7453         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7454         Likewise.
7455         * modules/malloca (Depends-on): Add 'verify'.
7456         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7457         * modules/vasnprintf (Depends-on): Add 'verify'.
7458         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7459         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7460         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7461         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7462         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7463         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7464         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7465
7466         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7467
7468         Formerly the style was sometimes 2*X - 1, because the C standard
7469         was wrongly thought to disallow ?: in integral constant expressions.
7470         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7471         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7472         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7473         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7474         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7475         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7476         verify that time_t cannot be floating.
7477
7478 2010-10-08  Eric Blake  <eblake@redhat.com>
7479
7480         time: enforce recent POSIX ruling that time_t is integral
7481         * lib/time.in.h (__time_t_must_be_integral): Detect any
7482         problematic systems, allowing the rest of gnulib to assume POSIX.
7483
7484 2010-10-08  Jim Meyering  <meyering@redhat.com>
7485
7486         fdopendir: fix a bug on systems lacking openat and /proc support
7487         OpenBSD 4.7 is one such system.  The most noticeable effect was
7488         failure of any application making nontrivial use of fts: rm, du,
7489         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7490           ./rm: traversal failed: `a': Bad file descriptor
7491         Debugging that, you see that even though FD 6 was closed just
7492         prior to the opendir call in fd_clone_opendir, its resulting
7493         dir->dd_fd was 8, rather than the expected value of 6:
7494
7495         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7496         93                close (fd);
7497         (gdb) n
7498         94                dir = fd_clone_opendir (dupfd);
7499         (gdb) n
7500         95                saved_errno = errno;
7501         (gdb) p dir->dd_fd
7502         $11 = 8
7503
7504         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7505         The problem is that on OpenBSD, fd_clone_opendir has to resort
7506         to using the old-style save/restore CWD mechanism, due to its
7507         lack of openat/proc support, and *that* would steal the FD (6)
7508         that opendir was supposed to use.
7509
7510         The fix is to squirrel away the desired FD so that save_cwd uses a
7511         different one, and then free the dest FD right before calling opendir.
7512         That guarantees opendir will use the required file descriptor.
7513
7514         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7515
7516 2010-10-08  Bruno Haible  <bruno@clisp.org>
7517
7518         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7519         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7520
7521 2010-10-08  Bruno Haible  <bruno@clisp.org>
7522
7523         nanosleep: Make replacement POSIX compliant.
7524         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7525         is out of range.
7526         Reported by Jim Meyering.
7527
7528 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7529
7530         bootstrap: add hook for altering gnulib.mk, for Bison
7531         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7532         the Bison bootstrapping process can rewrite file names and variables
7533         in this file before later parts of 'bootstrap' use the file.
7534         Bison wants to include lib/gnulib.mk from the top-level makefile,
7535         so it needs the file names in this file to be relative to the top
7536         level, not relative to lib; plus it needs variable names to be
7537         rewritten.
7538         (slurp): Use the new function.
7539
7540         bootstrap: reformat for readability
7541         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7542
7543 2010-10-08  Eric Blake  <eblake@redhat.com>
7544
7545         docs: update cygwin progress
7546         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7547         1.7.7.
7548         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7549         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7550         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7551         * doc/posix-functions/carg.texi (carg): Likewise.
7552         * doc/posix-functions/cargf.texi (cargf): Likewise.
7553         * doc/posix-functions/casin.texi (casin): Likewise.
7554         * doc/posix-functions/casinf.texi (casinf): Likewise.
7555         * doc/posix-functions/casinh.texi (casinh): Likewise.
7556         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7557         * doc/posix-functions/catan.texi (catan): Likewise.
7558         * doc/posix-functions/catanf.texi (catanf): Likewise.
7559         * doc/posix-functions/catanh.texi (catanh): Likewise.
7560         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7561         * doc/posix-functions/ccos.texi (ccos): Likewise.
7562         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7563         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7564         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7565         * doc/posix-functions/cexp.texi (cexp): Likewise.
7566         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7567         * doc/posix-functions/cimag.texi (cimag): Likewise.
7568         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7569         * doc/posix-functions/clog.texi (clog): Likewise.
7570         * doc/posix-functions/clogf.texi (clogf): Likewise.
7571         * doc/posix-functions/conj.texi (conj): Likewise.
7572         * doc/posix-functions/conjf.texi (conjf): Likewise.
7573         * doc/posix-functions/cpow.texi (cpow): Likewise.
7574         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7575         * doc/posix-functions/cproj.texi (cproj): Likewise.
7576         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7577         * doc/posix-functions/creal.texi (creal): Likewise.
7578         * doc/posix-functions/crealf.texi (crealf): Likewise.
7579         * doc/posix-functions/csin.texi (csin): Likewise.
7580         * doc/posix-functions/csinf.texi (csinf): Likewise.
7581         * doc/posix-functions/csinh.texi (csinh): Likewise.
7582         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7583         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7584         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7585         * doc/posix-functions/ctan.texi (ctan): Likewise.
7586         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7587         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7588         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7589         * doc/posix-headers/complex.texi (complex.h): Likewise.
7590
7591 2010-10-07  Jim Meyering  <meyering@redhat.com>
7592
7593         parse-datetime: avoid compilation failure on OpenBSD 4.7
7594         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7595         This works around a compilation failure on OpenBSD 4.7:
7596         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7597
7598 2010-10-07  Eric Blake  <eblake@redhat.com>
7599
7600         docs: update cygwin progress
7601         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7602         1.7.6.
7603         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7604         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7605         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7606         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7607         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7608         Likewise.
7609         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7610         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7611         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7612         Likewise.
7613         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7614         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7615         Likewise.
7616         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7617         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7618         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7619         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7620         Likewise.
7621         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7622         Likewise.
7623         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7624
7625         docs: update parse-datetime history
7626         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7627         documentation of this function's history and alternatives.
7628
7629         cygwin: use more robust version check
7630         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7631         exclude an eventual cygwin 1.9.1.
7632         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7634         (gl_FUNC_STRCASESTR): Likewise.
7635         Reported by Bruno Haible.
7636
7637 2010-10-06  Bruno Haible  <bruno@clisp.org>
7638
7639         string, sys_select: Avoid #including large headers unless necessary.
7640         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7641         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7642         OSF/1, BeOS, Haiku.
7643         Reported by Jim Meyering.
7644
7645 2010-10-05  Eric Blake  <eblake@redhat.com>
7646
7647         memmem, strstr, strcasestr: fix bug with long periodic needle
7648         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7649         periodic needle having false positive.
7650         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7651         and cygwin 1.7.7.
7652         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7654         (gl_FUNC_STRCASESTR): Likewise.
7655         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7656         * tests/test-memmem.c (main): Expose the bug.
7657         * tests/test-strcasestr.c (main): Likewise.
7658         * tests/test-strstr.c (main): Likewise.
7659         * tests/test-c-strcasestr.c (main): Likewise.
7660         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7661         * doc/posix-functions/strstr.texi (strstr): Likewise.
7662         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7663         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7664
7665 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7666
7667         parse-datetime: do some more renaming
7668         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7669         parse_datetime, not get_date.  Mention the renaming.
7670         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7671         in comments.
7672         * m4/bison.m4: Likewise.
7673
7674 2010-10-05  Eric Blake  <eblake@redhat.com>
7675
7676         parse-datetime: better name than get_date
7677         * NEWS: Reword the deprecation notice.
7678         * modules/get_date: Rename to modules/parse-datetime.
7679         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7680         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7681         * lib/get_date.y: Rename to lib/parse-datetime.y.
7682         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7683         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7684         * doc/getdate.texi: Provide fallback wrapper.
7685         * lib/getdate.h: Move guts, and wrap...
7686         * lib/parse-datetime.h: ...new file.
7687         * lib/parse-datetime.y (get_date): Rename...
7688         (parse_datetime): ...to this.
7689         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7690         (gl_PARSE_DATETIME): ...to this.
7691         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7692         documentation.
7693         * modules/getdate (Files): Provide fallback docs and header.
7694         (Notice, Depends-on): Update references.
7695         * tests/test-parse-datetime.c: Likewise.
7696         * DEPENDENCIES: Likewise.
7697         * MODULES.html.sh (Date and time <time.h>): Likewise.
7698         * doc/parse-datetime.texi (Date input formats)
7699         (Authors of parse_datetime): Likewise.
7700         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7701         (Include): Likewise.
7702         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7703         * gnulib-tool: Likewise.
7704         * m4/bison.m4 (gl_BISON): Likewise.
7705         Suggested by Bruno Haible.
7706
7707 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         more ports to Solaris tr, which needs [] around ranges
7710         * gnulib-tool: Solaris tr needs [] around ranges.
7711         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7712         * tests/test-pipe-filter-gi1.c (main): Likewise.
7713         * tests/test-pipe-filter-ii1.c (main): Likewise.
7714
7715 2010-10-05  Eric Blake  <eblake@redhat.com>
7716
7717         bootstrap: fix Solaris regression
7718         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7719         around ranges.
7720         Reported by Pádraig Brady.
7721
7722         bootstrap: work with pkg-config
7723         * build-aux/bootstrap (check_versions): Also transliterate - in
7724         prerequisite name.
7725         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7726         prerequisites that were already found, to avoid confusion.
7727         Reported by Justin Clift.
7728
7729         faccessat: remove unused wrappers
7730         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7731         presence of these wrappers dragged in -lgen on Solaris.
7732         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7733
7734 2010-10-05  Jim Meyering  <meyering@redhat.com>
7735
7736         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7737         * Makefile (sc_pragma_columns): New syntax-check rule.
7738
7739 2010-10-04  Bruno Haible  <bruno@clisp.org>
7740
7741         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7742         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7743         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7744         Reported by Bruce Korb and Eric Blake.
7745
7746 2010-10-04  Bruno Haible  <bruno@clisp.org>
7747
7748         threadlib: Make option --with-libpth-prefix work.
7749         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7750         use $LIBPTH, not just -lpth.
7751
7752 2010-10-04  Bruno Haible  <bruno@clisp.org>
7753
7754         Avoid line length limitation from HP NonStop system header files.
7755         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7756         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7757         * lib/ctype.in.h: Likewise.
7758         * lib/dirent.in.h: Likewise.
7759         * lib/errno.in.h: Likewise.
7760         * lib/fcntl.in.h: Likewise.
7761         * lib/float.in.h: Likewise.
7762         * lib/getopt.in.h: Likewise.
7763         * lib/iconv.in.h: Likewise.
7764         * lib/inttypes.in.h: Likewise.
7765         * lib/langinfo.in.h: Likewise.
7766         * lib/locale.in.h: Likewise.
7767         * lib/math.in.h: Likewise.
7768         * lib/netdb.in.h: Likewise.
7769         * lib/netinet_in.in.h: Likewise.
7770         * lib/poll.in.h: Likewise.
7771         * lib/pthread.in.h: Likewise.
7772         * lib/pty.in.h: Likewise.
7773         * lib/sched.in.h: Likewise.
7774         * lib/se-selinux.in.h: Likewise.
7775         * lib/search.in.h: Likewise.
7776         * lib/signal.in.h: Likewise.
7777         * lib/spawn.in.h: Likewise.
7778         * lib/stdarg.in.h: Likewise.
7779         * lib/stddef.in.h: Likewise.
7780         * lib/stdint.in.h: Likewise.
7781         * lib/stdio.in.h: Likewise.
7782         * lib/stdlib.in.h: Likewise.
7783         * lib/string.in.h: Likewise.
7784         * lib/strings.in.h: Likewise.
7785         * lib/sys_file.in.h: Likewise.
7786         * lib/sys_ioctl.in.h: Likewise.
7787         * lib/sys_select.in.h: Likewise.
7788         * lib/sys_socket.in.h: Likewise.
7789         * lib/sys_stat.in.h: Likewise.
7790         * lib/sys_time.in.h: Likewise.
7791         * lib/sys_times.in.h: Likewise.
7792         * lib/sys_utsname.in.h: Likewise.
7793         * lib/sys_wait.in.h: Likewise.
7794         * lib/sysexits.in.h: Likewise.
7795         * lib/termios.in.h: Likewise.
7796         * lib/time.in.h: Likewise.
7797         * lib/unistd.in.h: Likewise.
7798         * lib/wchar.in.h: Likewise.
7799         * lib/wctype.in.h: Likewise.
7800         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7801         * modules/ctype (Makefile.am): Likewise.
7802         * modules/dirent (Makefile.am): Likewise.
7803         * modules/errno (Makefile.am): Likewise.
7804         * modules/fcntl-h (Makefile.am): Likewise.
7805         * modules/float (Makefile.am): Likewise.
7806         * modules/getopt-posix (Makefile.am): Likewise.
7807         * modules/iconv-h (Makefile.am): Likewise.
7808         * modules/inttypes (Makefile.am): Likewise.
7809         * modules/langinfo (Makefile.am): Likewise.
7810         * modules/locale (Makefile.am): Likewise.
7811         * modules/math (Makefile.am): Likewise.
7812         * modules/netdb (Makefile.am): Likewise.
7813         * modules/netinet_in (Makefile.am): Likewise.
7814         * modules/poll-h (Makefile.am): Likewise.
7815         * modules/pthread (Makefile.am): Likewise.
7816         * modules/pty (Makefile.am): Likewise.
7817         * modules/sched (Makefile.am): Likewise.
7818         * modules/search (Makefile.am): Likewise.
7819         * modules/selinux-h (Makefile.am): Likewise.
7820         * modules/signal (Makefile.am): Likewise.
7821         * modules/spawn (Makefile.am): Likewise.
7822         * modules/stdarg (Makefile.am): Likewise.
7823         * modules/stddef (Makefile.am): Likewise.
7824         * modules/stdint (Makefile.am): Likewise.
7825         * modules/stdio (Makefile.am): Likewise.
7826         * modules/stdlib (Makefile.am): Likewise.
7827         * modules/string (Makefile.am): Likewise.
7828         * modules/strings (Makefile.am): Likewise.
7829         * modules/sys_file (Makefile.am): Likewise.
7830         * modules/sys_ioctl (Makefile.am): Likewise.
7831         * modules/sys_select (Makefile.am): Likewise.
7832         * modules/sys_socket (Makefile.am): Likewise.
7833         * modules/sys_stat (Makefile.am): Likewise.
7834         * modules/sys_time (Makefile.am): Likewise.
7835         * modules/sys_times (Makefile.am): Likewise.
7836         * modules/sys_utsname (Makefile.am): Likewise.
7837         * modules/sys_wait (Makefile.am): Likewise.
7838         * modules/sysexits (Makefile.am): Likewise.
7839         * modules/termios (Makefile.am): Likewise.
7840         * modules/time (Makefile.am): Likewise.
7841         * modules/unistd (Makefile.am): Likewise.
7842         * modules/wchar (Makefile.am): Likewise.
7843         * modules/wctype (Makefile.am): Likewise.
7844
7845 2010-10-04  Bruno Haible  <bruno@clisp.org>
7846
7847         read-file tests: Avoid a test failure on NonStop Kernel.
7848         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7849         a regular file.
7850         Reported by Joachim Schmitz <schmitz@hp.com>.
7851
7852 2010-10-03  Bruno Haible  <bruno@clisp.org>
7853
7854         gnulib-tool: Fixes for --create-testdir with --libtool.
7855         * gnulib-tool (func_get_automake_snippet): Don't augment
7856         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7857         an executable.
7858         (func_create_testdir): Handle module 'alloca' like func_import.
7859         Reported by Bruce Korb <bruce.korb@gmail.com>.
7860
7861 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7862
7863         Avoid some lines longer than 80 characters.
7864         * lib/stdint.in.h: Break long comment lines.
7865         * lib/math.in.h: Likewise.
7866         (_GL_NUM_UINT_WORDS): New macro, for readability.
7867         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7868         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7869         * lib/stdlib.in.h: Likewise.
7870         * lib/spawn.in.h: Likewise.
7871         * lib/sys_socket.in.h: Update an URL.
7872         * lib/sys_stat.in.h: Break long line.
7873
7874 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7875
7876         Improve pmccabe2html.
7877         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7878         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7879         when the sources change. Remove the line in the HTML about "Used
7880         ranges" (which implied that there might be other unused ranges),
7881         rename "Resume" to "Summary" (easier to understand for more users).
7882         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7883         styles, and some unnecessary blank lines.
7884
7885 2010-10-03  Bruno Haible  <bruno@clisp.org>
7886             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7887
7888         acl: Add support for ACLs on NonStop Kernel.
7889         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7890         Check whether the function aclsort() exists.
7891         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7892         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7893         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7894         (acl_nontrivial [HAVE_ACLSORT]: New function.
7895         (file_has_acl): Implement for NonStop Kernel.
7896         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7897         (qset_acl): Implement for NonStop Kernel.
7898         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7899         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7900         (main): Implement for NonStop Kernel.
7901         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7902         Kernel. Handle this flavor.
7903         * tests/test-set-mode-acl.sh: Likewise.
7904         * tests/test-copy-acl.sh: Likewise.
7905         * tests/test-copy-file.sh: Likewise.
7906
7907 2010-10-03  Bruno Haible  <bruno@clisp.org>
7908
7909         Info about ACLs on NonStop Kernel.
7910         * doc/acl-resources.txt: Add info about NonStop Kernel.
7911         References by Joachim Schmitz <schmitz@hp.com>.
7912
7913 2010-10-02  Bruno Haible  <bruno@clisp.org>
7914
7915         Define missing EDQUOT on NonStop Kernel.
7916         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7917         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7918         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7919         missing.
7920         * doc/posix-headers/errno.texi: Mention the NSK bug.
7921         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7922         Reported by Joachim Schmitz <schmitz@hp.com>.
7923
7924 2010-10-02  Bruno Haible  <bruno@clisp.org>
7925
7926         Update doc for POSIX:2008.
7927         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7928         Update URL of POSIX specification.
7929
7930 2010-10-02  Bruno Haible  <bruno@clisp.org>
7931
7932         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7933         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7934         from gnulib, not from Automake.
7935
7936 2010-10-02  Bruno Haible  <bruno@clisp.org>
7937
7938         New module 'system-posix'.
7939         * modules/system-posix: New file.
7940         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7941         module is present.
7942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7943         GNULIB_SYSTEM_POSIX.
7944         * modules/stdlib (Depends-on): Remove sys_wait.
7945         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7946         * doc/posix-functions/system.texi: Mention the new module.
7947         * doc/posix-headers/stdlib.texi: Likewise.
7948         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7949         define test_sys_wait_macros to a no-op.
7950         Reported by Sam Steingold <sds@gnu.org>.
7951
7952 2010-09-30  Bruno Haible  <bruno@clisp.org>
7953
7954         More renaming from 'getdate' to 'get_date'.
7955         * doc/get_date.texi: Renamed from doc/getdate.texi.
7956         * modules/get_date (Files): Update.
7957         * MODULES.html.sh (Date and time <time.h>): Update.
7958         * DEPENDENCIES: Update.
7959         * gnulib-tool: Update comment.
7960         * m4/bison.m4 (gl_BISON): Likewise.
7961         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7962
7963 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7964
7965         bootstrap: support ACLOCAL_FLAGS during aclocal
7966         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7967         can add additional -I dir for third-party .m4 files.
7968
7969 2010-09-30  Eric Blake  <eblake@redhat.com>
7970
7971         bootstrap: use glibtoolize on MacOS
7972         * build-aux/bootstrap (check_versions): Convert libtool into
7973         libtoolize.
7974         (tool search): Move libtool check earlier, and look for
7975         glibtoolize for MacOS.
7976         (gnulib_tool_options): Auto-add --libtool when appropriate.
7977         Reported by Justin Clift.
7978
7979         poll: fix typo that broke test on MacOS
7980         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7981         Reported by Justin Clift.
7982
7983         getdate: rename to get_date
7984         Note: getdate.h is not renamed, to minimize client impact.
7985         * modules/getdate: Mark obsolete.  Move old contents...
7986         * modules/get_date: ...to new module name.
7987         * modules/getdate-tests: Move...
7988         * modules/get_date-tests: ...here.
7989         * m4/getdate.m4: Move...
7990         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7991         * lib/getdate.y: Move...
7992         * lib/get_date.y: ...here.
7993         * tests/test-getdate.c: Move...
7994         * tests/test-get_date.c: ...here.
7995         * doc/posix-functions/getdate.texi (getdate): Update name.
7996         * NEWS: Mention the change.
7997
7998 2010-09-29  Bruno Haible  <bruno@clisp.org>
7999
8000         Separate the module 'waitpid' from the module 'sys_wait'.
8001         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8002         present.
8003         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8004         gl_MODULE_INDICATOR_FOR_TESTS.
8005         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8006         * modules/sys_wait (Depends-on): Remove waitpid.
8007         (Makefile.am): Substitute GNULIB_WAITPID.
8008         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8009         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8010         signature only if the 'waitpid' module is present.
8011         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8012         * NEWS: Mention the change.
8013         * modules/grantpt (Depends-on): Add waitpid.
8014         * modules/wait-process (Depends-on): Likewise.
8015
8016 2010-09-29  Bruno Haible  <bruno@clisp.org>
8017
8018         More tests for module 'sys_wait'.
8019         * modules/sys_wait-c++-tests: New file.
8020         * tests/test-sys_wait-c++.cc: New file.
8021         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8022         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8023
8024 2010-09-29  Bruno Haible  <bruno@clisp.org>
8025
8026         New module 'waitpid'.
8027         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8028         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8029         Don't include <process.h>.
8030         (waitpid): Declare only, using modern idiom.
8031         * m4/waitpid.m4: New file.
8032         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8033         * modules/waitpid: New file.
8034         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8035         (Makefile.am): Update.
8036         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8037
8038 2010-09-28  Bruno Haible  <bruno@clisp.org>
8039
8040         poll: Assume ANSI C.
8041         * lib/poll.c (poll): Use an ANSI C declaration.
8042
8043 2010-09-28  Bruno Haible  <bruno@clisp.org>
8044
8045         poll-h: Create poll.h on all platforms.
8046         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8047         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8048         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8049         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8050         (gl_REPLACE_POLL_H): Don't set POLL_H.
8051         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8052         * modules/poll-h (Depends-on): Add include_next.
8053         (Makefile.am): Create poll.h unconditionally. Substitute also
8054         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8055
8056 2010-09-28  Bruno Haible  <bruno@clisp.org>
8057
8058         Tests for module 'poll-h'.
8059         * modules/poll-h-c++-tests: New file.
8060         * tests/test-poll-h-c++.cc: New file.
8061
8062         Tests for module 'poll-h'.
8063         * modules/poll-h-tests: New file.
8064         * tests/test-poll-h.c: New file.
8065
8066 2010-09-28  Bruno Haible  <bruno@clisp.org>
8067
8068         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8069         * modules/poll-h (Depends-on): Add 'extensions'.
8070
8071 2010-09-28  Bruno Haible  <bruno@clisp.org>
8072
8073         New module 'poll-h'.
8074         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8075         (poll): Use modern idiom.
8076         * modules/poll-h: New file.
8077         * modules/poll (Files): Remove lib/poll.in.h.
8078         (Depends-on): Add poll-h.
8079         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8080         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8081         * m4/poll_h.m4: New file.
8082         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8083         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8084         and invoke gl_REPLACE_POLL_H.
8085         * lib/poll.c: Use common idiom.
8086         * tests/test-poll.c: Likewise.
8087         * doc/posix-headers/poll.texi: Mention the poll-h module.
8088         Suggested by Eric Blake.
8089
8090 2010-09-26  Bruno Haible  <bruno@clisp.org>
8091
8092         sys_wait: Implement WSTOPSIG.
8093         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8094         Reported by Simon Josefsson.
8095
8096 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8097
8098         stdlib, sys_wait: Avoid compilation error on mingw.
8099         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8100
8101 2010-09-26  Bruno Haible  <bruno@clisp.org>
8102
8103         stdlib tests: Avoid code duplication.
8104         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8105         * modules/sys_wait-tests (Files): Likewise.
8106         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8107         * tests/test-stdlib.c: Include test-sys_wait.h.
8108         (main): Invoke test_sys_wait_macros.
8109         * tests/test-sys_wait.c: Include test-sys_wait.h.
8110         (main): Invoke test_sys_wait_macros.
8111
8112 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8113
8114         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8115         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8116         sure Windows sockets are working before calling getaddrinfo.
8117         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8118         * doc/gnulib.texi (Windows sockets): Fix typo.
8119
8120 2010-09-25  Bruno Haible  <bruno@clisp.org>
8121
8122         Tests for module 'regex-quote'.
8123         * modules/regex-quote-tests: New file.
8124         * tests/test-regex-quote.c: New file.
8125
8126         New module 'regex-quote'.
8127         * lib/regex-quote.h: New file.
8128         * lib/regex-quote.c: New file.
8129         * modules/regex-quote: New file.
8130         Suggested by Reuben Thomas <rrt@sc3d.org>.
8131
8132 2010-09-24  Bruno Haible  <bruno@clisp.org>
8133
8134         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8135         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8136
8137 2010-09-23  Bruno Haible  <bruno@clisp.org>
8138
8139         setenv: Relax license.
8140         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8141         Blake.
8142         Requested by Eric Blake.
8143
8144 2010-09-22  Bruno Haible  <bruno@clisp.org>
8145
8146         termios: Relax license.
8147         * modules/termios (License): Change to LGPLv2+.
8148         Requested by Eric Blake.
8149
8150 2010-09-22  Bruno Haible  <bruno@clisp.org>
8151
8152         threadlib: Allow the package to change the default to 'no'.
8153         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8154         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8155         Reported by Paul Eggert.
8156
8157 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8158             Bruno Haible  <bruno@clisp.org>
8159
8160         Fix endless loop in mbmemcasecoll.
8161         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8162         byte.
8163         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8164
8165 2010-09-22  Bruno Haible  <bruno@clisp.org>
8166
8167         Tests for module 'memcoll'.
8168         * modules/memcoll-tests: New file.
8169         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8170
8171         memcoll, xmemcoll: Clarify size vs. length.
8172         * modules/memcoll.c (memcoll0): Clarify specification.
8173         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8174         passed to collate_error.
8175
8176 2010-09-22  Bruno Haible  <bruno@clisp.org>
8177
8178         Tests for module 'memcasecmp'.
8179         * modules/memcasecmp-tests: New file.
8180         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8181
8182 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8183
8184         * lib/pthread.in.h: Add split double-inclusion guard, and include
8185         system <pthread.h> if there is one.  Use @@-style as in other
8186         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8187         pthread.h doesn't.
8188         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8189         (pthread_mutexattr_settype, pthread_mutex_trylock):
8190         New static inline functions, if there's no system <pthread.h>.
8191         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8192         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8193         Approximate with mutexes if the system lacks spinlocks, as in
8194         MacOS.
8195         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8196         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8197         @@-style.  Check for spinlocks separately.
8198         (gl_PTHREAD_DEFAULTS): New macro.
8199         * modules/pthread: Redo to use a more typical style for in.h files.
8200
8201 2010-09-21  Eric Blake  <eblake@redhat.com>
8202
8203         net_if: enhance tests
8204         * tests/test-net_if.c (main): Move signature checks earlier.
8205         Print failures to stderr.
8206         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8207         Document the bug that we do not yet fix.
8208
8209 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8210
8211         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8212         about gnulib, not GSS.
8213
8214 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8215
8216         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8217         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8218         for Emacs.
8219         * build-aux/pmccabe2html: Make Makefile.am example code more
8220         cut-and-paste friendly.
8221
8222 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8223
8224         * tests/test-net_if.c: New file.
8225         * modules/net_if-tests: New file.
8226
8227 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         pthread: add pthread_spin_destroy
8230         * lib/pthread.in.h (pthread_spin_destroy): New function.
8231
8232 2010-09-19  Bruno Haible  <bruno@clisp.org>
8233
8234         gnulib-tool: Fix --help output.
8235         * gnulib-tool (func_usage): Fix help message.
8236         Reported by Reuben Thomas <rrt@sc3d.org>.
8237
8238 2010-09-18  Jim Meyering  <meyering@redhat.com>
8239
8240         maint.mk: avoid unexpanded \n in two diagnostics
8241         * top/maint.mk (sc_prohibit_always_true_header_tests):
8242         Don't use a literal \n in a halt=... assignment.  It would not be
8243         expanded, and the two \n bytes would appear in the diagnostic output
8244         rather than the desired newline.  Use halt=$$(printf ... instead.
8245         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8246
8247 2010-09-18  Bruno Haible  <bruno@clisp.org>
8248
8249         netinet_in: Doc tweak.
8250         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8251         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8252
8253 2010-09-18  Jim Meyering  <meyering@redhat.com>
8254
8255         init.sh: correct an outdated comment
8256         * tests/init.sh (create_exe_shims_):  s/function/alias/
8257
8258         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8259         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8260         a file named "*.exe" is removed between the glob expansion and the
8261         processing of that oddly named file.
8262
8263 2010-09-17  Eric Blake  <eblake@redhat.com>
8264
8265         mirbsd: add some more support
8266         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8267         in BSD family.
8268         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8269         devices as OpenBSD.
8270         * m4/host-os.m4 (mirbsd): Add MirBSD.
8271
8272         tests: fix unportable assumption on sys/wait.h
8273         * tests/test-sys_wait.c (main): Relax test.
8274         * tests/test-stdlib.c (main): Likewise.
8275
8276         init.sh: accomodate directory with no .exes
8277         * tests/init.sh: Accomodate directory containing only scripts.
8278
8279         tests: avoid compiler warning
8280         * tests/test-stdlib.c (main): Use the variable.
8281
8282         fdutimens, fdutimensat: update signature, again
8283         * lib/utimens.h (gl_futimens): Delete, and move signature...
8284         (fdutimens): ...here.
8285         (fdutimensat): Rearrange signature.
8286         (lutimensat): Rename variable for clarity.
8287         * lib/fdutimensat.c (fdutimensat): Update signature.
8288         * lib/utimens.c (fdutimens): Likewise.
8289         (gl_futimens): Delete.
8290         (utimens, lutimens): Update callers.
8291         * lib/futimens.c (futimens): Likewise.
8292         * tests/test-fdutimensat.c: Likewise.
8293         * tests/test-utimens.c: Likewise.
8294         * tests/test-futimens.h: Update comment.
8295         * NEWS: Mention this.
8296         Suggested by Paul Eggert.
8297
8298 2010-09-17  Bruno Haible  <bruno@clisp.org>
8299
8300         Take over the maintenance of some older macros from Autoconf.
8301         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8302         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8303         GNU Autoconf.
8304         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8305         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8306
8307 2010-09-17  Eric Blake  <eblake@redhat.com>
8308
8309         fdutimensat: drop atflag validation
8310         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8311         with valid fd, to close a race scenario where futimens is
8312         unsupported and FILE was replaced by a symlink.
8313         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8314         accordingly.
8315         Suggested by Paul Eggert.
8316
8317 2010-09-16  Bruno Haible  <bruno@clisp.org>
8318
8319         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8320         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8321
8322 2010-09-16  Bruno Haible  <bruno@clisp.org>
8323
8324         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8325         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8326         login_tty exists.
8327         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8328
8329 2010-09-16  Bruno Haible  <bruno@clisp.org>
8330
8331         login_tty: Make the replacement code work on BSD systems.
8332         * lib/login_tty.c: Include <sys/ioctl.h>.
8333         (login_tty): Use ioctl TIOCSCTTY when available.
8334         * modules/login_tty (Depends-on): Add sys_ioctl.
8335         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8336
8337 2010-09-16  Bruno Haible  <bruno@clisp.org>
8338
8339         login_tty: Stricter unit test.
8340         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8341         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8342         and tcgetsid() after login_tty.
8343         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8344
8345 2010-09-16  Bruno Haible  <bruno@clisp.org>
8346
8347         New module 'tcgetsid'.
8348         * lib/tcgetsid.c: New file.
8349         * m4/tcgetsid.m4: New file.
8350         * modules/tcgetsid: New file.
8351         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8352         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8353         GNULIB_TCGETSID, HAVE_TCGETSID.
8354         * lib/termios.in.h: Include <sys/types.h>.
8355         (tcgetsid): New declaration.
8356         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8357         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8358         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8359         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8360
8361 2010-09-16  Bruno Haible  <bruno@clisp.org>
8362
8363         Tests for module 'termios'.
8364         * modules/termios-c++-tests: New file.
8365         * modules/termios-tests: New file.
8366         * tests/test-termios-c++.cc: New file.
8367         * tests/test-termios.c: New file.
8368
8369         New module 'termios'.
8370         * modules/termios: New file.
8371         * lib/termios.in.h: New file.
8372         * m4/termios_h.m4: New file.
8373         * doc/posix-headers/termios.texi: Mention the new module.
8374
8375 2010-09-16  Eric Blake  <eblake@redhat.com>
8376
8377         fdutimensat: add an atflag parameter
8378         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8379         * lib/utimens.h (fdutimensat): Update prototype.
8380         * tests/test-fdutimensat.c: Adjust test to match.
8381         * NEWS: Document the change.
8382         Suggested by Paul Eggert.
8383
8384 2010-09-16  Bruno Haible  <bruno@clisp.org>
8385
8386         Fix typos in comments.
8387         * lib/striconveh.h: Fix typo in comment.
8388         * lib/login_tty.c (login_tty): Likewise.
8389
8390 2010-09-15  Bruno Haible  <bruno@clisp.org>
8391
8392         stdlib: clarify MirBSD WEXITSTATUS bug
8393         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8394         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8395
8396 2010-09-15  Eric Blake  <eblake@redhat.com>
8397
8398         stdlib: work around MirBSD WEXITSTATUS bug
8399         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8400         * modules/stdlib (Depends-on): Add sys_wait.
8401         * tests/test-sys_wait.c (main): Enhance test.
8402         * tests/test-stdlib.c (main): Likewise.
8403         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8404
8405         docs: mention MacOS issue with WEXITSTATUS(constant)
8406         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8407         issue.
8408         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8409
8410         strnlen: add tests
8411         * modules/strnlen-tests: New file.
8412         * tests/test-strnlen.c: Likewise.
8413
8414 2010-09-14  Bruno Haible  <bruno@clisp.org>
8415
8416         unistr/base: Avoid link errors when module 'libunistring' is also used.
8417         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8418         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8419         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8420         Declare also when HAVE_LIBUNISTRING is set.
8421         Reported by Pádraig Brady <P@draigbrady.com>.
8422
8423 2010-09-14  Eric Blake  <eblake@redhat.com>
8424
8425         test-rawmemchr: make more robust
8426         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8427         (Depends-on, configure.ac): Add needed prerequisites to use it.
8428         * modules/memchr-tests (Files, Depends-on, configure.ac):
8429         Likewise, to avoid implicit reliance on memchr module prereqs.
8430         * tests/test-memchr.c (main): Ensure proper masking.
8431         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8432         reads.
8433
8434         memchr: detect glibc Alpha bug
8435         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8436         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8437         Alpha.
8438         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8439         * tests/test-memchr.c (main): Enhance test.
8440         Reported by Nelson H. F. Beebe.
8441
8442 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8443
8444         fts, getcwd, glob: audit for dirfd returning -1
8445         * lib/fts.c (opendir): Remove #define; no longer used.
8446         (opendirat): New arg PDIR_FD.  All callers changed.
8447         (fts_build, _opendir2): Use new opendirat to avoid the need for
8448         dirfd, or for checking whether dirfd returns a negative value.
8449         Don't use opendir; always use openat followed by fdopendir.
8450         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8451         it.
8452         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8453         returns -1 here.
8454         * modules/fts (Depends-on): Remove dirfd.
8455         * modules/getcwd (Depends-on): Likewise.
8456
8457 2010-09-13  Eric Blake  <eblake@redhat.com>
8458
8459         float: fix broken MirBSD header
8460         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8461         * doc/posix-headers/float.texi (float.h): Document it.
8462
8463 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8464
8465         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8466         * lib/fts.c (opendirat): New arg extra_flags.
8467         (__opendir2): Use it to avoid following symlinks when opening
8468         a directory, if symlinks are not supposed to be followed.  See
8469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8470
8471         fdopendir: preserve argument fd before returning
8472         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8473         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8474         (fdopendir): Use them, arranging for FD to be open to the same
8475         directory that it was when it started.  (It might be temporarily
8476         closed while fdopendir is running, so this not thread- or
8477         signal-safe.)  Be careful to do the right thing even when file
8478         descriptors are scarce and dup fails with errno == EMFILE.  See
8479         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8480
8481 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8482
8483         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8484         * NEWS: Document change.
8485         * m4/regex.m4: Disable test for regoff_t size.
8486
8487 2010-09-13  Jim Meyering  <meyering@redhat.com>
8488
8489         fts: don't operate on an invalid file descriptor after failed dup
8490         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8491         negative file descriptor.
8492
8493 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8494
8495         savedir: add streamsavedir, deprecate fdsavedir
8496         * NEWS: Mention deprecation of fdsavedir.
8497         * lib/savedir.c (streamsavedir): New extern function, whose name
8498         ends in "savedir" to be consistent with the others.  This differs
8499         from savedirstream in that it doesn't close its argument.  The
8500         next version of GNU tar will use this instead of fdsavedir, to
8501         avoid some race conditions and conserve file descriptors.
8502         (savedirstream): Reimplement as a wrapper around streamsavedir.
8503         (fdsavedir): Add a comment deprecating this function.  As far as
8504         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8505         * lib/savedir.h (streamsavedir): New decl.
8506         (fdsavedir): Add a comment deprecating this.
8507
8508 2010-09-10  Bruno Haible  <bruno@clisp.org>
8509
8510         langinfo: Fix last commit.
8511         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8512         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8514
8515 2010-09-10  Bruno Haible  <bruno@clisp.org>
8516
8517         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8518         * lib/progreloc.c (O_EXEC): Define fallback.
8519
8520 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8521
8522         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8523         * NEWS: Document recent changes to fcntl-h.
8524         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8525         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8526         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8527         Similarly for O_SEARCH; this last was already true, but not documented.
8528         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8529         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8530         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8531         Likewise.
8532         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8533         is zero, not whether it is defined.
8534         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8535         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8536         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8537
8538 2010-09-10  Bruno Haible  <bruno@clisp.org>
8539
8540         langinfo, nl_langinfo: Fix for IRIX 5.3.
8541         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8542         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8543         HAVE_LANGINFO_YESEXPR.
8544         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8545         HAVE_LANGINFO_YESEXPR.
8546         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8547         HAVE_LANGINFO_T_FMT_AMPM is 0.
8548         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8549         HAVE_LANGINFO_YESEXPR is 0.
8550         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8551         NOEXPR.
8552         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8553         * doc/posix-functions/nl_langinfo.texi: Likewise.
8554         Reported by Eric Blake.
8555
8556 2010-09-10  Bruno Haible  <bruno@clisp.org>
8557
8558         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8559         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8560         on FreeBSD 8.0 and OpenBSD 4.6.
8561         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8562         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8563         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8564         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8565         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8566         ac_includes_default.
8567         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8568
8569 2010-09-09  Eric Blake  <eblake@redhat.com>
8570
8571         strsignal: work around NetBSD bug
8572         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8573         * lib/string.in.h (includes): Likewise.
8574         * doc/posix-functions/strsignal.texi (strsignal): Document the
8575         bug.
8576         Reported by Nelson H. F. Beebe.
8577
8578         gnulib-tool: work with NetBSD /bin/sh
8579         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8580         (func_get_description, func_get_comment, func_get_status)
8581         (func_get_notice, func_get_applicability, func_get_filelist)
8582         (func_get_dependencies, func_get_autoconf_early_snippet)
8583         (func_get_autoconf_snippet, func_get_automake_snippet)
8584         (func_get_include_directive, func_get_link_directive)
8585         (func_get_license, func_get_maintainer, func_import): Avoid
8586         shell syntax errors from parsing syntax extensions.
8587
8588 2010-09-09  Bruno Haible  <bruno@clisp.org>
8589
8590         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8591         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8592         a reliable way to determine whether the 'alias' command works.
8593
8594 2010-09-08  Jim Meyering  <meyering@redhat.com>
8595
8596         init.sh: penalize a set-x-impaired shell; don't disqualify it
8597         * tests/init.sh: Too many shells corrupt application stderr when
8598         you set -x, so we can't afford to disqualify them, since at least
8599         on Irix-6.5, that would disqualify all bourne shells.
8600         Instead, use a two-pass approach.
8601         On the first pass, try to find a shell that meets the stricter
8602         condition that set -x does not corrupt stderr.
8603         If no shell meets the stricter condition, retest each candidate
8604         shell, but without that extra condition.  Finally, when
8605         VERBOSE=yes is requested and set -x might cause trouble, simply
8606         issue a warning and refrain from enabling debug output.
8607
8608 2010-09-08  Eric Blake  <eblake@redhat.com>
8609
8610         unsetenv: fix OpenBSD bug
8611         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8612         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8613         documentation.
8614         Reported by Jim Meyering.
8615
8616         strtod: work around IRIX 6.5 bug
8617         * lib/strtod.c (strtod): Reparse number on shorter string if
8618         exponent parse was invalid.
8619         * tests/test-strtod.c (main): Add check for "0x1p 2".
8620         Reported by Tom G. Christensen.
8621
8622         getopt: optimize previous patch
8623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8624         empty variable.  Speed up awk script.
8625         Reported by Paolo Bonzini.
8626
8627 2010-09-08  Jim Meyering  <meyering@redhat.com>
8628
8629         test.sh: disqualify shells for which set -x corrupts stderr
8630         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8631         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8632         appear in stderr output.  For example, this command:
8633             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8634         prints "P=1" on those two systems:
8635
8636 2010-09-08  Bruno Haible  <bruno@clisp.org>
8637
8638         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8639         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8640         commands, because some shells ignore redirections when there is an
8641         error in the command lookup.
8642         Reported by Eric Blake.
8643
8644 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8645
8646         * lib/regex.h: Fix a mention of `regex_compile' (should be
8647         `re_compile_pattern').
8648         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8649         (re_set_registers): Correct name of parameter in comment.
8650
8651         * doc/regex.texi: Add documentation for missing syntax flags.
8652         Remove commented-out documentation of defunct syntax option
8653         RE_NO_EMPTY_ALTS.
8654         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8655         Add documentation of re_set_registers.
8656         Document trick to re-use a pattern buffer by setting fastmap manually.
8657         Update documentation of struct re_pattern_buffer per public members.
8658         Uncomment documentation of equivalence class operators and
8659         collating symbol operators, since they are now implemented,
8660         Explain leftmost-longest matching in relation to alternatives.
8661         Tidy documentation of substring matching.
8662         Remove POSIX documentation, which is done better in
8663         glibc, and refer the reader there. Keep BSD API documentation, as
8664         that is not readily available elsewhere.
8665
8666 2010-09-07  Eric Blake  <eblake@redhat.com>
8667
8668         getopt: handle POSIXLY_CORRECT set but not exported
8669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8670         export state of POSIXLY_CORRECT, due to bash set -o posix.
8671         Reported by Dustin J. Mitchell.
8672
8673 2010-09-05  Bruno Haible  <bruno@clisp.org>
8674
8675         gnulib-tool: Highlight the changed options.
8676         * gnulib-tool (func_usage): Display the --import, --add-import,
8677         --remove-import explanations in bold font.
8678
8679 2010-09-06  Karl Berry  <karl@gnu.org>
8680
8681         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8682
8683 2010-09-05  Bruno Haible  <bruno@clisp.org>
8684
8685         uniwidth/width: Update comment.
8686         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8687         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8688
8689 2010-09-05  Bruno Haible  <bruno@clisp.org>
8690
8691         isinf, isnan: Relax license.
8692         * modules/isinf (License): Change from GPL to LGPL, with consent from
8693         Ben Pfaff.
8694         * modules/isnan (License): Likewise.
8695         Requested by Ludovic Courtès.
8696
8697 2010-09-04  Bruno Haible  <bruno@clisp.org>
8698
8699         gnulib-tool: Help migration from --import to --add-import or --update.
8700         * gnulib-tool: Emit a verbose error message when --import is used
8701         without any module name.
8702
8703 2010-09-04  Bruno Haible  <bruno@clisp.org>
8704
8705         Update doc about gnulib-tool.
8706         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8707         'gnulib-tool --update' in more detail.
8708         Reported by Eric Blake.
8709
8710 2010-09-04  Bruno Haible  <bruno@clisp.org>
8711
8712         gnulib-tool: Change --import. New options --add/remove-import.
8713         * gnulib-tool: New options --add-import, --remove-import.
8714         (func_usage): Document them.
8715         (have_associative): Define always.
8716         (func_import): In import mode, don't merge the specified settings with
8717         the cached settings. Implement remove-import mode.
8718         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8719         Explain when to use them versus --import.
8720         (Simple update): Use --add-import instead of --import.
8721         * NEWS: Mention the change.
8722
8723 2010-09-04  Bruno Haible  <bruno@clisp.org>
8724
8725         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8726         separate gnulib.mk.
8727
8728 2010-09-04  Bruno Haible  <bruno@clisp.org>
8729
8730         gnulib-tool: Don't talk about CVS any more.
8731         * gnulib-tool (func_usage, func_import): Write "version control"
8732         instead of CVS.
8733
8734 2010-09-04  Jim Meyering  <meyering@redhat.com>
8735
8736         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8737         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8738         false positives (whose names may be ill-chosen) when searching
8739         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8740         would cause a false-positive.
8741
8742         avoid coreutils "make distcheck" failure
8743         Coreutils tests with an absolute build directory name that contains
8744         a space.  Not quoting this directory name caused a failure.
8745         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8746         * tests/test-vc-list-files-cvs.sh: Likewise.
8747
8748 2010-09-04  Bruno Haible  <bruno@clisp.org>
8749
8750         gnulib-tool: Avoid error when run in a package without Makefile.am.
8751         * gnulib-tool: When collecting the m4dirs in a package that does not
8752         have a Makefile.am, eliminate those directories that contain no
8753         gnulib-cache.m4. Fix expression that counts these directories.
8754
8755 2010-09-04  Bruno Haible  <bruno@clisp.org>
8756
8757         update-copyright test: Improve output when perl is missing or too old.
8758         * tests/test-update-copyright.sh: Move test of Perl version down after
8759         the test whether Perl exists. Provide an explanation relating Perl's
8760         error message to Automake's SKIP: message.
8761
8762 2010-09-04  Bruno Haible  <bruno@clisp.org>
8763
8764         Don't augment PATH in TESTS_ENVIRONMENT.
8765         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8766         set abs_aux_dir instead of augmenting PATH.
8767         * modules/vc-list-files-tests (Makefile.am): Likewise.
8768         * tests/test-update-copyright.sh: Augment PATH here.
8769         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8770         path_prepend_.
8771         * tests/test-vc-list-files-git.sh: Likewise.
8772
8773 2010-09-04  Jim Meyering  <meyering@redhat.com>
8774
8775         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8776         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8777
8778 2010-09-04  Bruno Haible  <bruno@clisp.org>
8779
8780         strdup: Fix compilation error in C++ mode.
8781         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8782         the macro.
8783
8784 2010-09-04  Bruno Haible  <bruno@clisp.org>
8785
8786         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8787         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8788         macro into a function.
8789         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8790
8791 2010-09-04  Bruno Haible  <bruno@clisp.org>
8792
8793         Set PATH_SEPARATOR the same way autoconf does.
8794         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8795         the value of PATH_SEPARATOR the same way autoconf-generated configure
8796         scripts do.
8797         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8798         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8799
8800 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8801
8802         Set PATH_SEPARATOR the same way autoconf does.
8803         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8804         the same way autoconf-generated configure scripts do.
8805         * posix-modules: Likewise.
8806
8807 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8808
8809         hash: fix safe_hasher const typo
8810         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8811         const; otherwise, there is a type error later.
8812
8813 2010-09-02  Jim Meyering  <meyering@redhat.com>
8814
8815         test-update-copyright.sh: require perl 5.8.0
8816         * tests/test-update-copyright.sh: Require 5.8.0,
8817         which Tom G. Christensen has confirmed is adequate,
8818         while 5.6.1 is not.
8819
8820 2010-09-02  Eric Blake  <eblake@redhat.com>
8821
8822         tests: init.sh improvements for re-exec'ing with zsh
8823         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8824         -vx through shell re-exec.
8825         Reported by Tom G. Christensen.
8826
8827         wctype: fix typo in previous commit
8828         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8829         Reported by Ludovic Courtès.
8830
8831 2010-09-02  Jim Meyering  <meyering@redhat.com>
8832
8833         test-update-copyright.sh: skip test if Perl is too old
8834         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8835         Reported by Tom G. Christensen.
8836
8837 2010-09-02  Bruno Haible  <bruno@clisp.org>
8838
8839         wctype: Avoid compilation error on IRIX 6.5.30.
8840         * lib/wctype.in.h (iswblank): Declare with a replacement if
8841         REPLACE_ISWBLANK is set.
8842         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8843         declared. Set REPLACE_ISWBLANK.
8844         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8845         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8846         * doc/posix-headers/wctype.texi: Likewise.
8847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8848
8849 2010-09-01  Bruno Haible  <bruno@clisp.org>
8850
8851         New module 'socketlib'.
8852         * modules/socketlib: New file.
8853         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8854         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8855         * modules/sockets (Depends-on): Add socketlib.
8856         Suggested by Sam Steingold <sds@gnu.org>.
8857
8858 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8859
8860         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8861
8862         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8863         when one needs search access to a directory but not read access.
8864         On systems where it is available, it works in some cases where
8865         O_RDONLY does not, namely on directories that are searchable but
8866         not readable, and which need only to be searchable.  If O_SEARCH
8867         is not available, fall back to the traditional method of using
8868         O_RDONLY.
8869
8870         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8871         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8872         when opening a directory that needs only to be searchable.
8873         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8874         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8875         * lib/openat-proc.c (openat_proc_name): Likewise.
8876         * lib/openat.c (openat_needs_fchdir): Likewise.
8877         * lib/save-cwd.c (save_cwd): Likewise.
8878         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8879
8880 2010-08-28  Bruno Haible  <bruno@clisp.org>
8881
8882         New module 'host-cpu-c-abi'.
8883         * modules/host-cpu-c-abi: New file.
8884         * m4/host-cpu-c-abi.m4: New file, based on part of
8885         clisp/src/m4/general.m4.
8886         Requested by Sam Steingold <sds@gnu.org>.
8887
8888 2010-08-31  Eric Blake  <eblake@redhat.com>
8889         and Jim Meyering  <meyering@redhat.com>
8890
8891         hash: factor, and guard against misbehaving hasher function
8892         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8893         of table->hasher's return value.  Also protect against a hash value
8894         so large that adding it to table->bucket results in a NULL pointer.
8895         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8896         Use it in place of open-coded check-and-abort.
8897
8898 2010-08-30  Bruno Haible  <bruno@clisp.org>
8899
8900         hash: silence spurious clang warning
8901         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8902         Reported by Eric Blake.
8903
8904 2010-08-30  Eric Blake  <eblake@redhat.com>
8905
8906         strstr, memmem, strcasestr: avoid leaked shell message
8907         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8908         FreeBSD.
8909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8910         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8911
8912         tests: silence clang warning
8913         * tests/test-malloca.c (do_allocation): Avoid dead store.
8914
8915 2010-08-29  Bruno Haible  <bruno@clisp.org>
8916
8917         gettext: Fix recent mistake.
8918         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8919
8920 2010-08-29  Bruno Haible  <bruno@clisp.org>
8921
8922         selinux-h: Offer a --without-selinux option.
8923         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8924         --without-selinux was specified, skip all tests and define
8925         HAVE_SELINUX_SELINUX_H to 0.
8926         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8927         set LIB_SELINUX to empty.
8928         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8929         gl_LIBSELINUX. If --without-selinux was specified, replace
8930         selinux/context.h.
8931         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8932
8933 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8934             Bruno Haible  <bruno@clisp.org>
8935
8936         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8937         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8938         of HAVE_REALLOC.
8939         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8940         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8941         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8942         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8943
8944 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8945             Bruno Haible  <bruno@clisp.org>
8946
8947         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8948         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8949         HAVE_CALLOC.
8950         * lib/xmalloc.c: Update accordingly.
8951         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8952         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8953         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8954
8955 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8956             Bruno Haible  <bruno@clisp.org>
8957
8958         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8959         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8960         HAVE_MALLOC.
8961         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8962         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8963         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8964
8965 2010-08-29  Bruno Haible  <bruno@clisp.org>
8966
8967         Update modules list.
8968         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8969         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8970         (String handling <string.h>): Add astrxfrm.
8971         (File system functions): Add readlinkat.
8972
8973 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8974
8975         Tests for module 'realloc-gnu'.
8976         * modules/realloc-gnu-tests: New file.
8977         * tests/test-realloc-gnu.c: New file.
8978
8979         Tests for module 'calloc-gnu'.
8980         * modules/calloc-gnu-tests: New file.
8981         * tests/test-calloc-gnu.c: New file.
8982
8983         Tests for module 'malloc-gnu'.
8984         * modules/malloc-gnu-tests: New file.
8985         * tests/test-malloc-gnu.c: New file.
8986
8987 2010-08-28  Bruno Haible  <bruno@clisp.org>
8988
8989         Rename module 'realloc' -> 'realloc-gnu'.
8990         * modules/realloc-gnu: New file, copied from modules/realloc.
8991         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8992         obsolete.
8993         * modules/mgetgroups (Depends-on): Update.
8994         * doc/posix-functions/realloc.texi: Update.
8995         * NEWS: Mention the change.
8996
8997         Rename module 'calloc' -> 'calloc-gnu'.
8998         * modules/calloc-gnu: New file, copied from modules/calloc.
8999         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9000         obsolete.
9001         * doc/posix-functions/calloc.texi: Update.
9002         * NEWS: Mention the change.
9003
9004         Rename module 'malloc' -> 'malloc-gnu'.
9005         * modules/malloc-gnu: New file, copied from modules/malloc.
9006         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9007         obsolete.
9008         * modules/argp (Depends-on): Update.
9009         * modules/regex (Depends-on): Update.
9010         * doc/posix-functions/malloc.texi: Update.
9011         * NEWS: Mention the change.
9012
9013 2010-08-28  Eric Blake  <eblake@redhat.com>
9014
9015         pread, pwrite: add missing dependency
9016         * modules/pread (Depends-on): Add extensions.
9017         * modules/pwrite (Depends-on): Likewise.
9018
9019 2010-08-28  Bruno Haible  <bruno@clisp.org>
9020
9021         unistr/u*-strchr: Fix tests dependencies.
9022         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9023         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9024         Reported by Ian Beckwith <ianb@erislabs.net>.
9025
9026 2010-08-28  Bruno Haible  <bruno@clisp.org>
9027
9028         read-file: Don't occupy too much unused memory.
9029         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9030
9031 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9032             Eric Blake  <eblake@redhat.com>
9033             Bruno Haible  <bruno@clisp.org>
9034
9035         read-file: Avoid memory reallocations with regular files.
9036         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9037         (fread_file): With regular files, use the remaining length as the
9038         initial buffer size.  Check against overflow.
9039         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9040         sys_stat.
9041
9042 2010-08-28  Bruno Haible  <bruno@clisp.org>
9043
9044         ftello: Relax license.
9045         * modules/ftello (License): Relax to LGPLv2+.
9046         Reported by Eric Blake.
9047
9048 2010-08-28  Bruno Haible  <bruno@clisp.org>
9049
9050         Avoid relocwrapper link errors due to gnulib replacement functions.
9051         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9052         function.
9053         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9054
9055 2010-08-28  Bruno Haible  <bruno@clisp.org>
9056
9057         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9058         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9059         defined.
9060         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9061         Suggested by Eric Blake.
9062
9063 2010-08-28  Bruno Haible  <bruno@clisp.org>
9064
9065         sys_socket, netdb: Ensure socklen_t gets defined.
9066         * modules/sys_socket (Depends-on): Add socklen.
9067         * modules/netdb (Depends-on): Likewise.
9068         * modules/getaddrinfo (Depends-on): Remove socklen.
9069         * modules/getsockopt (Depends-on): Likewise.
9070         * modules/setsockopt (Depends-on): Likewise.
9071         * tests/test-sys_socket.c: Check that socklen_t is defined.
9072         * tests/test-netdb.c: Likewise.
9073         * m4/socklen.m4: Update comments.
9074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9075
9076 2010-08-27  Eric Blake  <eblake@redhat.com>
9077
9078         login_tty: add missing dependency
9079         * modules/login_tty (Depends-on): Add pty.
9080
9081 2010-08-26  Eric Blake  <eblake@redhat.com>
9082
9083         lib-symbol-versions: fix m4 quoting
9084         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9085         format for AC_LINK_IFELSE.
9086
9087         glob: fix compile test
9088         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9089
9090         btowc: fix missing file
9091         * modules/btowc (Files): Also ship locale-fr.m4.
9092
9093         lseek: fix link test
9094         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9095         AC_LINK_IFELSE.
9096
9097         include_next: silence autoconf 2.68 warning
9098         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9099         AC_COMPILE_IFELSE as special.
9100         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9101         autoconf < 2.68.
9102
9103         acl: fix compilation test
9104         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9105         AC_COMPILE_IFELSE.
9106
9107 2010-08-26  Bruno Haible  <bruno@clisp.org>
9108
9109         Modernize AC_TRY_RUN invocations.
9110         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9111         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9112         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9113         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9114         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9115         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9116         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9118         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9119         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9120         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9121         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9122         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9123         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9124         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9125         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9126         gl_MBRLEN_NUL_RETVAL): Likewise.
9127         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9128         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9129         Likewise.
9130         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9131         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9132         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9133         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9134         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9135         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9136         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9137         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9138         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9139         Likewise.
9140         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9141         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9142         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9143         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9144         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9145         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9146         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9147         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9148         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9150
9151 2010-08-26  Bruno Haible  <bruno@clisp.org>
9152
9153         Modernize AC_TRY_LINK invocations.
9154         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9155         AC_TRY_LINK.
9156         * m4/argp.m4 (gl_ARGP): Likewise.
9157         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9158         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9159         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9160         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9161         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9162         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9163         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9164         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9165         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9166         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9167         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9168         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9169         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9170         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9171         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9172         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9173         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9174         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9175         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9176         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9177         Likewise.
9178         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9179         Likewise.
9180         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9181         Likewise.
9182         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9183         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9184         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9185         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9186         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9187         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9188         * m4/servent.m4 (gl_SERVENT): Likewise.
9189         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9190         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9191         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9192         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9193         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9194         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9195         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9196         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9197         * modules/tsearch-tests (configure.ac): Likewise.
9198
9199 2010-08-26  Bruno Haible  <bruno@clisp.org>
9200
9201         Modernize AC_TRY_COMPILE invocations.
9202         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9203         AC_TRY_COMPILE.
9204         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9205         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9206         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9207         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9208         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9209         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9210         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9211         * m4/lock.m4 (gl_LOCK): Likewise.
9212         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9213         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9214         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9215         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9216         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9217         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9218         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9219         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9220         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9221         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9222         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9223         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9224         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9225         extraneous semicolon.
9226
9227 2010-08-26  Jim Meyering  <meyering@redhat.com>
9228
9229         stat-time: relax license LGPL
9230         * modules/stat-time (License): Change from GPL to LGPL,
9231         with consent from all contributors, for use in libguile.
9232         Requested by Ludovic Courtès.
9233
9234 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9235
9236         poll: return immediately on POLLHUP.
9237         * lib/poll.c (poll): Always set timeout before wait_timeout is
9238         computed.
9239
9240 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9241
9242         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9243         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9244         rmdir ("dir/.//"), unlinkat.
9245
9246 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9247
9248         stdbool: avoid spurious failure with modern xlc
9249         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9250
9251 2010-08-24  Bruno Haible  <bruno@clisp.org>
9252
9253         getloadavg: simplify code
9254         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9255         gl_have_func. Update comments.
9256
9257 2010-08-24  Eric Blake  <eblake@redhat.com>
9258
9259         getloadavg: don't define SVR4 on cygwin
9260         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9261         only define SVR4 when -lkvm is required.
9262         Reported by Yaakov Selkowitz.
9263
9264 2010-08-24  Bruno Haible  <bruno@clisp.org>
9265
9266         priv-set: fix comment
9267         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9268
9269 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9270
9271         priv-set: fix comments
9272         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9273         to match code, as suggested by David Bartley in:
9274         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9275
9276 2010-08-23  Eric Blake  <eblake@redhat.com>
9277
9278         stdbool: avoid rejecting clang
9279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9280         * tests/test-stdbool.c: Enable more tests if using the system
9281         <stdbool.h> instead of the gnulib replacement.
9282         (main): Move xlc bug test to a runtime test for all compilers.
9283         Reported by Anders Kaseorg.
9284
9285         argz: fix shell quoting issue
9286         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9287         Reported by Charles Wilson.
9288
9289 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9290             Erik Faye-Lund <kusmabite@gmail.com>
9291
9292         poll, select: handle ERROR_BROKEN_PIPE.
9293         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9294         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9295         * lib/select.c (win32_compute_revents): Do not mark a pipe
9296         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9297
9298 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9299
9300         fts: allow compilation with C++
9301         * lib/fts_.h: Specify extern "C" linkage with C++.
9302
9303 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9304
9305         Fix gnulib-tool sed script de-commentation for AIX sed.
9306         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9307         sed.
9308
9309 2010-08-17  Eric Blake  <eblake@redhat.com>
9310
9311         test-stddef: test for (some) offsetof bugs
9312         * tests/test-stddef.c: Enhance test to ensure correct type of
9313         offsetof.
9314         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9315         that we are not fixing at this time.
9316
9317 2010-08-15  Bruno Haible  <bruno@clisp.org>
9318
9319         stpncpy: Allow stpncpy to be defined as a macro.
9320         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9321         if it's already correctly declared.
9322         * lib/string.in.h (stpncpy): Undefine before redefining.
9323         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9324
9325 2010-08-14  Bruno Haible  <bruno@clisp.org>
9326
9327         Rename module 'memxfrm' to 'amemxfrm'.
9328         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9329         (amemxfrm): Renamed from memxfrm.
9330         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9331         (amemxfrm): Renamed from memxfrm.
9332         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9333         * NEWS: Mention the change.
9334         * MODULES.html.sh (String handling <string.h>): Update.
9335         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9336         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9337         * lib/unicase/u16-casexfrm.c: Likewise.
9338         * lib/unicase/u32-casexfrm.c: Likewise.
9339         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9340         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9341         * lib/uninorm/u16-normxfrm.c: Likewise.
9342         * lib/uninorm/u32-normxfrm.c: Likewise.
9343         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9344         memxfrm.
9345         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9346         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9347         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9348         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9349         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9350         Suggested by Paul Eggert.
9351
9352 2010-08-14  Bruno Haible  <bruno@clisp.org>
9353
9354         Tests for module 'astrxfrm'.
9355         * modules/astrxfrm-tests: New file.
9356         * tests/test-astrxfrm.c: New file.
9357
9358         New module 'astrxfrm'.
9359         * lib/astrxfrm.h: New file.
9360         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9361         * modules/astrxfrm: New file.
9362
9363 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9364
9365         regex: Tweak doc.
9366         * doc/regex.texi (Overview): Don't mention regex.c.
9367         (GNU Regular Expression Compiling): Likewise.
9368         (Match-end-of-line Operator): Mention 'not_eol'.
9369
9370 2010-08-14  Brian Gough  <bjg@gnu.org>
9371             Bruno Haible  <bruno@clisp.org>
9372
9373         git-merge-changelog: add doc relating to use with bzr and hg.
9374         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9375
9376 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9377
9378         pthread: fix pthread.h creation for srcdir != builddir
9379         * modules/pthread (Makefile.am): Fix the rule to work also in a
9380         non-srcdir build.
9381
9382 2010-08-13  Karl Berry  <karl@gnu.org>
9383
9384         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9385         * doc/posix-*/*: force line break before @url of POSIX
9386         specifications.
9387         Suggested by Werner Lemberg.
9388
9389 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9390
9391         strtod: fix const diagnostic
9392         * lib/strtod.c (strtod): Don't assign const char * to char *,
9393         as this elicits a warning from GCC when warnings are enabled.
9394
9395 2010-08-10  Pádraig Brady <P@draigbrady.com>
9396         and Eric Blake  <eblake@redhat.com>
9397
9398         copy-acl: ignore ENOTSUP on HP-UX
9399         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9400         so that it is available for HP-UX.
9401         * lib/copy-acl.c (qcopy_acl): Use it.
9402         Reported by Patrick M. Callahan.
9403
9404 2010-08-10  Eric Blake  <eblake@redhat.com>
9405
9406         open, chown: relax license
9407         * modules/open (License): Change to LGPLv2+, with consent by all
9408         authors, for use in augeas.
9409         * modules/chown (License): Likewise.
9410         * modules/lchown (Likewise): Likewise.
9411         Requested by Adam Stokes.
9412
9413 2010-08-09  Karl Berry  <karl@gnu.org>
9414
9415         * build-aux/ar-lib: new file, import from Automake.
9416         * config/srclist.txt: autocheck for updates.
9417
9418 2010-08-09  Eric Blake  <eblake@redhat.com>
9419
9420         readlinkat: adjust client modules
9421         * modules/areadlinkat (Depends-on): Use readlinkat, not
9422         symlinkat.
9423         * modules/areadlinkat-with-size (Depends-on): Likewise.
9424
9425         mknod: be more vocal about danger of running tests as root
9426         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9427         root, since that is just asking for problems.
9428         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9429
9430         readlinkat: split into its own module
9431         * modules/symlinkat: Split readlinkat...
9432         * modules/readlinkat: ...into separate module.
9433         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9434         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9435         * lib/symlinkat.c (readlinkat): Move...
9436         * lib/readlinkat.c: ...into new file.
9437         * modules/symlinkat-tests: Split readlinkat test...
9438         * modules/readlinkat-tests: ...into separate module.
9439         * tests/test-symlinkat.c: Split...
9440         * tests/test-readlinkat.c: ...into new file.
9441         * NEWS: Document the split.
9442         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9443         * lib/unistd.in.h (readlinkat): Likewise.
9444         Suggested by Bruno Haible.
9445
9446 2010-08-08  Bruno Haible  <bruno@clisp.org>
9447
9448         memxfrm: Speed up.
9449         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9450         that usually only one call to strxfrm is necessary for each string
9451         part.
9452         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9453
9454 2010-08-07  Karl Berry  <karl@gnu.org>
9455
9456         * doc/posix-headers/limits.texi,
9457         * doc/posix-functions/malloc.texi,
9458         * doc/posix-functions/strsignal.texi: missing @item.
9459         * doc/ld-version-script.texi: spurious leading i.
9460         * doc/regex.texi (Interval Operators): no commas inside @var.
9461
9462 2010-08-01  Bruno Haible  <bruno@clisp.org>
9463
9464         Integrate the regex documentation.
9465         * doc/gnulib.texi: Define 'cn' index.
9466         (Regular expressions): New a chapter that includes regex.texi and
9467         regexprops-generic.texi.
9468         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9469         syntax.
9470
9471         Whitespace cleanup.
9472         * doc/regex.texi: Remove trailing spaces.
9473
9474         Add regex documentation.
9475         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9476         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9477         Written by Kathy A. Hargreaves and Karl Berry.
9478
9479 2010-08-01  Bruno Haible  <bruno@clisp.org>
9480
9481         link: Update documentation.
9482         * doc/posix-functions/link.texi: Update regarding Solaris.
9483
9484 2010-07-31  Bruno Haible  <bruno@clisp.org>
9485
9486         Update modules list.
9487         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9488         (String handling <string.h>): Add memcmp2, memxfrm.
9489         (Container data structures): Add xlist, xsublist, xoset.
9490         (Core language properties): Add alignof, unused-parameter.
9491         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9492         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9493         (Unibyte characters <ctype.h>): New section.
9494         (String handling <string.h>): New section.
9495         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9496         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9497         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9498         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9499         tan, tanh, tanl, y0, y1, yn.
9500         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9501         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9502         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9503         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9504         unlockpt, vdprintf, vdprintf-posix.
9505         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9506         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9507         xconcat-filename.
9508         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9509         getdtablesize, pipe2, pipe2-safer.
9510         (Security): New section.
9511         (Networking functions): Add accept4.
9512         (Signal handling): Add sigpipe.
9513         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9514         mbmemcasecoll.
9515         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9516         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9517         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9518         pipe-filter-ii.
9519         (Misc): Add argp-version-etc, login_tty, parse-duration.
9520
9521 2010-07-31  Bruno Haible  <bruno@clisp.org>
9522
9523         Improve doc in MODULES.html.
9524         * modules/linkat (Description): Add the word "function".
9525         * modules/mkfifo (Description): Likewise.
9526         * modules/mknod (Description): Likewise.
9527         * modules/remove (Description): Likewise.
9528         * modules/renameat (Description): Likewise.
9529         * modules/stat (Description): Likewise.
9530         * modules/symlink (Description): Likewise.
9531         * modules/unlink (Description): Likewise.
9532
9533 2010-07-31  Bruno Haible  <bruno@clisp.org>
9534
9535         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9536         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9537         option --enable/disable-c++ instead of --enable/disable-cxx.
9538         * NEWS: Mention the change.
9539
9540 2010-07-31  Bruno Haible  <bruno@clisp.org>
9541
9542         readlink, areadlink: Relax test a bit.
9543         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9544         alternative to ENOTDIR.
9545         * tests/test-areadlink.h (test_areadlink): Likewise.
9546         Reported by Rainer Tammer.
9547
9548 2010-07-31  Bruno Haible  <bruno@clisp.org>
9549
9550         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9551         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9552         character, perform the search using U_STRCHR.
9553         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9554         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9555         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9556         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9557         Suggested by Paolo Bonzini.
9558
9559 2010-07-31  Bruno Haible  <bruno@clisp.org>
9560
9561         unistr/u*-strstr: Fix dependencies.
9562         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9563         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9564         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9565
9566 2010-07-31  Bruno Haible  <bruno@clisp.org>
9567
9568         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9569         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9570         the beginning of the loop.
9571         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9572         cases in 'switch' statement.
9573
9574         unistr/u8-strchr: Fix several bugs.
9575         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9576         the string. When not found, return NULL, not a pointer near the end.
9577
9578         More tests for unistr/u8-strchr.
9579         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9580         that the function does not read past the first occurrence of the byte
9581         being searched.
9582         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9583         * tests/unistr/test-u16-strchr.c (main): New function.
9584         * tests/unistr/test-u32-strchr.c (main): New function.
9585
9586 2010-07-31  Bruno Haible  <bruno@clisp.org>
9587
9588         posix-modules: Ignore backup files of documentation files.
9589         * posix-modules: grep only through files named *.texi.
9590
9591 2010-07-31  Bruno Haible  <bruno@clisp.org>
9592
9593         symlinkat: Fix documentation.
9594         * doc/posix-functions/readlinkat.texi: Fix module name.
9595
9596 2010-07-31  Bruno Haible  <bruno@clisp.org>
9597
9598         fchownat: Replace also when chown has the trailing slash bug.
9599         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9600         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9601         introduced on 2010-04-10.
9602         Reported by Rainer Tammer.
9603
9604 2010-07-31  Bruno Haible  <bruno@clisp.org>
9605
9606         linkat: Work around AIX 7.1 bug.
9607         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9608         whether linkat handles trailing slash correctly. If not, replace linkat
9609         and define LINKAT_TRAILING_SLASH_BUG.
9610         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9611         check whether (fd1,file1) points to a directory if file1 or file2 ends
9612         in a slash. Code taken from lib/link.c.
9613         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9614         Reported by Rainer Tammer.
9615
9616 2010-07-31  Bruno Haible  <bruno@clisp.org>
9617
9618         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9619         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9620         This disables an xlc optimization that was causing wrong test results.
9621         Reported by Rainer Tammer.
9622
9623 2010-07-31  Bruno Haible  <bruno@clisp.org>
9624
9625         iconv: Work around AIX 6.1..7.1 bug.
9626         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9627         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9628         cross-compiling, guess no on all versions of AIX.
9629         Reported by Rainer Tammer.
9630
9631 2010-07-31  Bruno Haible  <bruno@clisp.org>
9632
9633         readlink: Relax test a bit.
9634         * tests/test-readlink.h (test_readlink): Allow different errno value
9635         when readlink is called with a file name that ends in / and refers to
9636         a file.
9637         Suggested by Eric Blake.
9638         Reported by Rainer Tammer.
9639
9640 2010-07-31  Bruno Haible  <bruno@clisp.org>
9641
9642         copysign: Does not require -lm on glibc systems.
9643         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9644         gl_COMMON_DOUBLE_MATHFUNC.
9645         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9646
9647 2010-07-31  Bruno Haible  <bruno@clisp.org>
9648
9649         duplocale: Work around AIX 7.1 bug.
9650         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9651         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9652         * lib/duplocale.c (rpl_duplocale): Update comment.
9653         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9654         Reported by Rainer Tammer.
9655
9656 2010-07-30  Bruno Haible  <bruno@clisp.org>
9657
9658         dirfd: Avoid link error on AIX 7.1.
9659         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9660         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9661         exist, set REPLACE_DIRFD.
9662         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9663         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9664         * doc/posix-functions/dirfd.texi: Update.
9665         Reported by Rainer Tammer.
9666
9667 2010-07-30  Eric Blake  <eblake@redhat.com>
9668
9669         strtod: next round of AIX fixes
9670         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9671         exponent.
9672         * tests/test-strtod.c (main): Enhance tests.
9673         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9674         Reported by Rainer Tammer.
9675
9676         futimens: fix configure check
9677         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9678         Reported by Bruno Haible.
9679
9680 2010-07-30  Bruno Haible  <bruno@clisp.org>
9681
9682         getline: Update regarding AIX.
9683         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9684         Reported by Rainer Tammer.
9685
9686 2010-07-30  Bruno Haible  <bruno@clisp.org>
9687
9688         wcwidth: Drop replacement on AIX 7.
9689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9690         AIX 7.
9691         Reported by Rainer Tammer.
9692
9693 2010-07-30  Bruno Haible  <bruno@clisp.org>
9694
9695         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9696         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9697         a 'char *'.
9698         Reported by Rainer Tammer.
9699
9700 2010-07-30  Bruno Haible  <bruno@clisp.org>
9701
9702         unlink: Update regarding AIX.
9703         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9704         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9705         Reported by Rainer Tammer.
9706
9707 2010-07-30  Bruno Haible  <bruno@clisp.org>
9708
9709         symlink: Update regarding AIX.
9710         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9711         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9712         Reported by Rainer Tammer.
9713
9714 2010-07-30  Bruno Haible  <bruno@clisp.org>
9715
9716         strndup: Update regarding AIX.
9717         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9718         AIX 7.
9719         Reported by Rainer Tammer.
9720
9721 2010-07-30  Bruno Haible  <bruno@clisp.org>
9722
9723         stat: Update regarding AIX.
9724         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9725         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9726         Reported by Rainer Tammer.
9727
9728 2010-07-30  Bruno Haible  <bruno@clisp.org>
9729
9730         truncl: Fix autoconf test.
9731         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9732         whether truncl works.
9733         Reported by Rainer Tammer.
9734
9735 2010-07-30  Bruno Haible  <bruno@clisp.org>
9736
9737         round: Update regarding AIX.
9738         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9739         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9740         Reported by Rainer Tammer.
9741
9742 2010-07-30  Bruno Haible  <bruno@clisp.org>
9743
9744         rename: Update regarding AIX.
9745         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9746         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9747         Reported by Rainer Tammer.
9748
9749 2010-07-30  Bruno Haible  <bruno@clisp.org>
9750
9751         printf.m4: Update regarding AIX.
9752         * m4/printf.m4: Update comments regarding AIX.
9753         Reported by Rainer Tammer.
9754
9755 2010-07-30  Bruno Haible  <bruno@clisp.org>
9756
9757         iconv: Update regarding AIX.
9758         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9759         AIX 7.
9760         Reported by Rainer Tammer.
9761
9762 2010-07-30  Bruno Haible  <bruno@clisp.org>
9763
9764         getopt: Update regarding AIX.
9765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9766         no on AIX.
9767         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9768         Reported by Rainer Tammer.
9769
9770 2010-07-30  Bruno Haible  <bruno@clisp.org>
9771
9772         ldexpl; Update regarding AIX.
9773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9774         on AIX 7.
9775         Reported by Rainer Tammer.
9776
9777 2010-07-30  Bruno Haible  <bruno@clisp.org>
9778
9779         frexpl: Update regarding AIX.
9780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9781         on AIX 7.
9782         Reported by Rainer Tammer.
9783
9784 2010-07-30  Bruno Haible  <bruno@clisp.org>
9785
9786         open, fopen: Update regarding AIX.
9787         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9788         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9789         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9790         * doc/posix-functions/fopen.texi: Likewise.
9791         Reported by Rainer Tammer.
9792
9793 2010-07-30  Bruno Haible  <bruno@clisp.org>
9794
9795         chown: Update doc regarding AIX.
9796         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9797         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9798         Reported by Rainer Tammer.
9799
9800 2010-07-30  Eric Blake  <eblake@redhat.com>
9801
9802         strtod: fix bug in replacement function on AIX
9803         * lib/strtod.c (strtod): Special case broken "0x" parse in
9804         underlying strtod.
9805         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9806         * doc/posix-functions/strtod.texi (strtod): Likewise.
9807         Reported by Rainer Tammer.
9808
9809 2010-07-30  Bruno Haible  <bruno@clisp.org>
9810
9811         mbrlen: Fix cross-compilation guess for AIX.
9812         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9813         guess. Leftover from 2008-12-22.
9814
9815 2010-07-30  Bruno Haible  <bruno@clisp.org>
9816
9817         mbrtowc: Fix cross-compilation guess for AIX.
9818         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9819         guess. Leftover from 2008-12-21.
9820
9821 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9822
9823         init.sh: work around trap limitation of some shells
9824         * tests/init.sh (setup_): Move exit trap outside of shell function.
9825
9826 2010-07-29  Eric Blake  <eblake@redhat.com>
9827
9828         strtod: aid debugging
9829         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9830         understanding why strtod is rejected.
9831
9832 2010-07-28  Bruno Haible  <bruno@clisp.org>
9833
9834         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9835         * lib/unistr/u8-chr.c: Include <string.h>.
9836         * tests/unistr/test-u8-chr.c: Likewise.
9837         * tests/unistr/test-u16-chr.c: Likewise.
9838         * tests/unistr/test-u32-chr.c: Likewise.
9839         * tests/unistr/test-u8-strchr.c: Likewise.
9840         * tests/unistr/test-u16-strchr.c: Likewise.
9841         * tests/unistr/test-u32-strchr.c: Likewise.
9842         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9843         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9844         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9845         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9846
9847 2010-07-28  Bruno Haible  <bruno@clisp.org>
9848
9849         Use spaces for indentation, not tabs.
9850         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9851
9852 2010-07-27  Bruno Haible  <bruno@clisp.org>
9853
9854         mbspcasecmp: Fix function specification.
9855         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9856         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9857         Reported by Eric Blake <eblake@redhat.com>.
9858
9859 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9860
9861         timespec: use cast and not conditional, as truncation isn't possible
9862         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9863         instead of a conditional.  Comment about the situation in more detail.
9864         This undoes most of the 2009-10-29 patch.
9865
9866 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9867
9868         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9869         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9870         * lib/unistr/u8-strchr.c: Likewise.
9871         * modules/unistr/u8-chr: Depend on memchr.
9872
9873         unistr/u*-strchr: add tests
9874         * modules/unistr/u8-strchr-tests: New file.
9875         * modules/unistr/u16-strchr-tests: New file.
9876         * modules/unistr/u32-strchr-tests: New file.
9877         * tests/unistr/test-strchr.h: New file.
9878         * tests/unistr/test-u8-strchr.c: New file.
9879         * tests/unistr/test-u16-strchr.c: New file.
9880         * tests/unistr/test-u32-strchr.c: New file.
9881
9882         unistr/u*-chr: test multibyte sequences more
9883         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9884         test vector.
9885         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9886         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9887         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9888
9889         unistr/u*-chr: test multibyte sequences
9890         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9891
9892         unistr/u*-chr: prepare for multibyte tests
9893         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9894         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9895         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9896         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9897         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9898         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9899
9900 2010-07-18  Bruno Haible  <bruno@clisp.org>
9901
9902         unistr/u8-strchr: Optimize non-ASCII argument case.
9903         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9904         because the first byte often matches anyway.
9905         Reported by Pádraig Brady <P@draigbrady.com>.
9906
9907 2010-07-15  Karl Berry  <karl@gnu.org>
9908
9909         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9910
9911 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9912
9913         getcwd: on Solaris, work better if ancestors are inaccessible
9914         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9915         buffer and size, try again with a large buffer.  This works better
9916         on Solaris, since its getcwd succeeds even if the path to the root
9917         is inaccessible, and this is helpful in common cases such as .zfs
9918         hidden directories.  Problem reported by J Chapman Flack in
9919         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9920         Use system getcwd if it's declared, not merely if it's partly
9921         working; use the partly-working test only to avoid needless effort
9922         if the system getcwd fails.
9923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9924         comment that was already obsolete and is now even more obsolete.
9925         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9926         now might call strdup.
9927
9928 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9929
9930         pthread: Add enough so that coreutils/src/sort.c compiles.
9931         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9932         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9933         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9934         Include <sys/types.h>, in case it defines pthread_t.
9935         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9936         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9937         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9938         (pthread_rwlockattr_t, pthread_spinlock_t):
9939         New typedefs, if HAVE_PTHREAD_T is not defined.
9940         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9941         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9942         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9943         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9944         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9945         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9946         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9947         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9948         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9949         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9950         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9951         New macros.
9952         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9953         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9954         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9955         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9956         (pthread_spin_unlock): New dummy functions.
9957         (pthread_create): Return EAGAIN; don't set errno.
9958         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9959         require AC_C_INLINE.
9960         * modules/pthread (Depends-on): Add sched, time.
9961         (pthread.h): Use AM_V_GEN.
9962
9963 2010-07-13  Bruno Haible  <bruno@clisp.org>
9964
9965         striconveh: Don't malloc memory if the result buffer is sufficient.
9966         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9967         buffer if its size is sufficient.
9968         Reported by Ludovic Courtès <ludo@gnu.org>.
9969
9970 2010-07-13  Bruno Haible  <bruno@clisp.org>
9971
9972         strtod: Add safety check.
9973         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9974
9975 2010-07-12  Bruno Haible  <bruno@clisp.org>
9976
9977         Unify tests that set gl_cv_func_ldexpl_no_libm.
9978         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9979         gl_FUNC_LDEXPL.
9980         (gl_FUNC_LDEXPL): Invoke it.
9981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9982
9983 2010-07-12  Bruno Haible  <bruno@clisp.org>
9984
9985         Unify tests that set gl_cv_func_ldexp_no_libm.
9986         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9987         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9988         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9989         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9990         * modules/strtod (Files): Add m4/ldexp.m4.
9991
9992 2010-07-12  Bruno Haible  <bruno@clisp.org>
9993
9994         Unify tests that set gl_cv_func_frexpl_no_libm.
9995         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9996         gl_FUNC_FREXPL_NO_LIBM.
9997         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9999
10000 2010-07-12  Bruno Haible  <bruno@clisp.org>
10001
10002         Unify tests that set gl_cv_func_frexp_no_libm.
10003         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10004         gl_FUNC_FREXP_NO_LIBM.
10005         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10006         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10007
10008 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10009
10010         memcoll: clarify sizes versus lengths, document better, and tweak perf
10011         * lib/memcoll.c (strcoll_loop, memcoll0):
10012         Improve quality of descriptive comments.  Name variables
10013         consistently as to whether they are lengths (which do not include
10014         terminating null) versus sizes (which do).
10015         * lib/xmemcoll.c (xmemcoll0): Likewise.
10016         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10017         returned when s1size == 0; this is easier to compile and saves
10018         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10019
10020 2010-07-12  Bruno Haible  <bruno@clisp.org>
10021
10022         Tests for module '_Exit'.
10023         * modules/_Exit-tests: New file.
10024         * tests/test-_Exit.sh: New file.
10025         * tests/test-_Exit.c: New file.
10026
10027         New module '_Exit'.
10028         * lib/stdlib.in.h (__attribute__): New macro.
10029         (_Exit): New declaration.
10030         * lib/_Exit.c: New file.
10031         * m4/_Exit.m4: New file.
10032         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10033         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10034         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10035         * modules/_Exit: New file.
10036         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10037         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10038
10039 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10040
10041         strtod: make it more-accurate typically, and don't require libm
10042         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10043         Include limits.h.  Don't include string.h.
10044         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10045         (locale_isspace): New function, so that no casts are needed to
10046         check whether *s is a space.
10047         (ldexp): Provide an unused dummy if not available.
10048         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10049         (strtod): Use them.  This implementation prefers to use the
10050         underlying strtod if available, falling back on our own code
10051         only to fix known bugs.  This is more likely to produce an
10052         accurate result.  Also, it avoids the use of libm functions.
10053         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10054         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10055         was absent, but it caused a test failure with coreutils.
10056         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10057         with libm.
10058         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10059         * modules/strtod-tests (Makefile.am): Likewise.
10060
10061 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10062             Bruno Haible  <bruno@clisp.org>
10063
10064         unistr/u8-strchr: Optimize ASCII argument case.
10065         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10066
10067 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10068
10069         (x)memcoll: minor tweaks
10070         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10071         is after the type that it qualifies.
10072         (memcoll0): Likewise.
10073         * lib/memcoll.h (memcoll0): Likewise.
10074         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10075         * lib/xmemcoll.h (xmemcoll0): Likewise.
10076         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10077         differs from memcoll in that the NUL byte is part of the argument.
10078         Omit the abort-checks, as performance is a real issue here.  Plus,
10079         the checks were wrong anyway (an off-by-one error).  Omit local
10080         variable 'diff', as it's a bit clearer that way.
10081         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10082         no longer needed.
10083
10084 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10085
10086         (x)memcoll: speedup when input is known to be NUL delimited
10087         * lib/memcoll.c: Include stdlib.
10088         (memcoll0) New function.
10089         (strcoll_loop) New function, refactored for use in both memcoll
10090         and memcoll0.
10091         * lib/memcoll.h: Add prototype for memcoll0.
10092         * lib/xmemcoll.c: (xmemcoll0) New function.
10093         (collate_error) New function, refactored for use in both xmemcoll
10094         and xmemcoll0.
10095         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10096         * m4/memcoll.m4: add inline invocation.
10097
10098 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10099
10100         * build-aux/bootstrap: Remove any local translations
10101         from the translation project synchronization directory,
10102         so that local only translations are not distributed.
10103
10104 2010-07-04  Bruno Haible  <bruno@clisp.org>
10105
10106         fsusage: Clarify which code applies to which platforms.
10107         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10108         platform.
10109         * lib/fsusage.c (get_fs_usage): Likewise.
10110
10111 2010-07-04  Bruno Haible  <bruno@clisp.org>
10112
10113         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10114         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10115         Reported by Martin Lambers <marlam@marlam.de>.
10116
10117 2010-07-04  Jim Meyering  <meyering@redhat.com>
10118
10119         hash: once again explicitly disallow insertion of NULL
10120         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10121         inserting a NULL pointer cannot work with these functions.
10122         Add a comment with details.
10123         This reverts part of the 2010-07-01 commit, 5bef1a35
10124         "hash: extend module to deal with non-pointer keys".
10125
10126 2010-07-01  Bruno Haible  <bruno@clisp.org>
10127
10128         stdbool: Update doc.
10129         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10130         Info from Christian Weisgerber <naddy@mips.inka.de>.
10131
10132 2010-07-01  Jim Meyering  <meyering@redhat.com>
10133
10134         hash: extend module to deal with non-pointer keys
10135         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10136         but that allows insertion of non-pointer entries.
10137         Do not disallow an ENTRY value of NULL.
10138         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10139         * lib/hash.h (hash_insert0): Declare.
10140
10141 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10142
10143         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10144         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10145         not present (i.e. with autoconf 2.59 and when using gettextize, not
10146         gnulib), require AC_GNU_SOURCE instead.
10147
10148 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10149
10150         idpriv-drop: Fix tests.
10151         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10152         not to the test-idpriv-droptemp program.
10153
10154 2010-06-29  Bruno Haible  <bruno@clisp.org>
10155
10156         string: Fix syntax error with g++ 2.96.
10157         * lib/string.in.h (__pure__): Remove definition.
10158         (_GL_ATTRIBUTE_PURE): New macro.
10159         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10160         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10161         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10162
10163 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10164
10165         unitypes: Fix bug introduced on 2010-05-18.
10166         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10167
10168 2010-06-22  Eric Blake  <eblake@redhat.com>
10169
10170         memmem: slight optimization
10171         * lib/str-two-way.h (critical_factorization): Update comments.
10172         Reduce work during factorization phase.
10173         Reported by Carlos Bueno <carlos@bueno.org>.
10174
10175 2010-06-21  Bruno Haible  <bruno@clisp.org>
10176
10177         Fix HAVE_CALLOC_POSIX misnomer.
10178         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10179         !HAVE_CALLOC_POSIX.
10180         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10181         HAVE_CALLOC_POSIX.
10182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10183         instead of HAVE_CALLOC_POSIX.
10184         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10185         HAVE_CALLOC_POSIX.
10186
10187         Use modern idiom for calloc() replacement.
10188         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10189         AC_FUNC_CALLOC.
10190         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10191         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10192         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10193         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10194         (gl_REPLACE_CALLOC): New macro.
10195
10196 2010-06-21  Bruno Haible  <bruno@clisp.org>
10197
10198         Fix HAVE_REALLOC_POSIX misnomer.
10199         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10200         !HAVE_REALLOC_POSIX.
10201         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10202         HAVE_REALLOC_POSIX.
10203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10204         instead of HAVE_REALLOC_POSIX.
10205         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10206         HAVE_REALLOC_POSIX.
10207
10208         Use modern idiom for realloc() replacement.
10209         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10210         AC_FUNC_REALLOC.
10211         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10212         Autoconf's AC_FUNC_REALLOC.
10213         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10214         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10215         (gl_REPLACE_REALLOC): New macro.
10216         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10217
10218 2010-06-21  Bruno Haible  <bruno@clisp.org>
10219
10220         Fix HAVE_MALLOC_POSIX misnomer.
10221         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10222         !HAVE_MALLOC_POSIX.
10223         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10224         HAVE_MALLOC_POSIX.
10225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10226         instead of HAVE_MALLOC_POSIX.
10227         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10228         HAVE_MALLOC_POSIX.
10229
10230         Use modern idiom for malloc() replacement.
10231         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10232         AC_FUNC_MALLOC.
10233         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10234         Autoconf's AC_FUNC_MALLOC.
10235         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10236         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10237         (gl_REPLACE_MALLOC): New macro.
10238         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10239
10240 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10241
10242         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10243         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10244         This macro takes 3 arguments, not 4.
10245
10246 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10247
10248         ipv6: fix detection under mingw
10249         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10250         in6_addr.
10251
10252 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10253
10254         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10255         that strtod() works when cross-compiling to a glibc version known
10256         to work.
10257
10258 2010-06-15  Bruno Haible  <bruno@clisp.org>
10259
10260         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10261
10262 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10263
10264         select: Correct timeout.
10265         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10266
10267 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10268
10269         git-version-gen: init shell var to avoid env var influence
10270         * build-aux/git-version-gen (v): Init shell var to empty.
10271
10272 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10273
10274         priv-set: Don't assume that priv.h exists merely because getppriv does.
10275         See Jan Andersen's bug report about AIX 5L in
10276         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10277         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10278         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10279         * lib/priv-set.h: Likewise.
10280         * tests/test-priv-set.c: Likewise.
10281
10282 2010-06-13  Bruno Haible  <bruno@clisp.org>
10283
10284         relocatable: Make it easier to test whether to install wrappers.
10285         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10286         RELOCATABLE_VIA_WRAPPER.
10287
10288 2010-06-13  Bruno Haible  <bruno@clisp.org>
10289
10290         gnulib-tool: Display specified modules and dependencies differently.
10291         * gnulib-tool (func_show_module_list): New function.
10292         (func_import, func_create_testdir): Invoke it.
10293         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10294
10295 2010-06-13  Bruno Haible  <bruno@clisp.org>
10296
10297         gnulib-tool: Align code of func_import and func_create_testdir.
10298         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10299         specified_modules.
10300
10301 2010-06-12  Jim Meyering  <meyering@redhat.com>
10302
10303         test-inttostr: avoid spurious failure on Solaris 9
10304         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10305         to accept "%ju".  Reported by Bruno Haible.
10306
10307 2010-06-11  Jim Meyering  <meyering@redhat.com>
10308
10309         test-sys_socket: mark variables as used more readably
10310         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10311         as "used" explicitly via (void) statement casts.  This is more
10312         readable than using them in an artificial return expression.
10313         Suggestion from Bruno Haible.
10314
10315 2010-06-11  Bruno Haible  <bruno@clisp.org>
10316
10317         Avoid some more warnings from "gcc -Wwrite-strings".
10318         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10319         to 'const char *'.
10320         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10321         * tests/test-c-strcasestr.c (main): Likewise.
10322         * tests/test-mbscasestr1.c (main): Likewise.
10323         * tests/test-mbscasestr2.c (main): Likewise.
10324         * tests/test-memmem.c (main): Likewise.
10325         * tests/test-strstr.c (main): Likewise.
10326         * tests/test-strcasestr.c (main): Likewise.
10327
10328 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10329
10330         init.sh: change framework_failure_ to fail with status 99, not 1
10331         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10332         automake's parallel-tests rule that this is an unexpected failure,
10333         even if the test is listed in XFAIL_TESTS.
10334
10335 2010-06-11  Jim Meyering  <meyering@redhat.com>
10336
10337         test-inttostr: avoid warnings about 4-6KB literal strings
10338         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10339         Include "macros.h", for its definition of ASSERT.
10340         (CK): s/assert/ASSERT/
10341         * modules/inttostr-tests (Files): Add macros.h.
10342
10343         init.sh: don't use $ME_ or skip_ before they are defined
10344         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10345         their first uses.  Also hoist their companions: warn_, fail_,
10346         framework_failure_, $stderr_fileno.  Prompted by a patch from
10347         Stefano Lattarini.
10348
10349         test-sys_socket: avoid set-but-not-used warnings from gcc
10350         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10351         avoid warning about set-but-not-used variables.
10352
10353         test-xvasprintf: avoid 'const' discard warnings
10354         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10355         "const" when assigning from literal strings.
10356         (test_xasprintf): Add "void" in function argument list to placate
10357         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10358
10359         tests: avoid compilation warnings in argmatch and exclude tests...
10360         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10361         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10362         Since it always exits, declare with the "noreturn" attribute.
10363         * tests/test-argmatch.c: Likewise.
10364
10365         tests: avoid 'const' discard warnings in mbsstr tests
10366         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10367         * tests/test-mbsstr2.c (main): Likewise.
10368
10369         test-verify: avoid warning from gcc's -Wmissing-declarations
10370         * tests/test-verify.c (function): Declare to be static.
10371
10372         test-inttostr.c: include <string.h> for use of strcmp
10373         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10374
10375         test-linkat: avoid failed assertion on "other" architectures
10376         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10377         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10378         sparc: https://bugs.launchpad.net/bugs/591968
10379
10380 2010-06-11  Jim Meyering  <meyering@redhat.com>
10381
10382         printf.m4: avoid autoconf's "Expanded Before Required" warning
10383         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10384         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10385         autoconf warning.
10386
10387 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10388
10389         Replacement header templates are now named with ".in", not "_".
10390         * doc/gnulib-intro.texi: Correct.
10391
10392 2010-06-10  Jim Meyering  <meyering@redhat.com>
10393
10394         inttostr-tests: depend on snprintf, not snprintf-posix
10395         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10396         snprintf-posix, to avoid this aclocal failure:
10397           missing file gnulib-tests/vasnprintf.c
10398           configure.ac:45: error: expected source file, required through \
10399           AC_LIBSOURCES, not found
10400
10401 2010-06-10  Jim Meyering  <meyering@redhat.com>
10402
10403         inttostr: add a new function, inttostr, and tests
10404         The namesake function was not available.  The existence of the
10405         template file, inttostr.c makes its addition nontrivial.
10406         * lib/anytostr.c: Rename from inttostr.c.
10407         (anytostr): Rename from inttostr.
10408         * lib/inttostr.c: New file.
10409         * modules/inttostr (Files): Add anytostr.c.
10410         (Makefile.am): Set lib_SOURCES instead of ...
10411         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10412         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10413         * lib/offtostr.c: Likewise.
10414         * lib/uinttostr.c: Likewise.
10415         * lib/umaxtostr.c: Likewise.
10416         * modules/inttostr-tests: New file.
10417         * tests/test-inttostr.c: New file.  Test these functions.
10418
10419 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10420             Bruno Haible  <bruno@clisp.org>
10421
10422         Add "Extending Gnulib" chapter to manual.
10423         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10424         chapter.
10425         (Extending Gnulib): New chapter.
10426         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10427         chapter.
10428
10429 2010-06-09  Bruno Haible  <bruno@clisp.org>
10430
10431         Avoid relocwrapper link errors due to gnulib replacement functions.
10432         * lib/areadlink.c: Use the system's malloc, realloc functions.
10433         (areadlink): Set errno to ENOMEM explicitly.
10434         * modules/areadlink (Depends-on): Remove malloc-posix.
10435         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10436
10437 2010-06-09  Bruno Haible  <bruno@clisp.org>
10438
10439         Avoid relocwrapper link errors due to gnulib replacement functions.
10440         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10441         * lib/malloca.c: Likewise.
10442         * lib/relocatable.c: Likewise.
10443         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10444         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10445         * lib/setenv.c: Use the system's malloc, realloc functions.
10446         * lib/strerror.c: Use the system's sprintf function.
10447         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10448
10449 2010-06-04  Bruno Haible  <bruno@clisp.org>
10450
10451         Prefer documented low-level autoconf macro names.
10452         * m4/lib-link.m4: Use m4_translit instead of translit.
10453         * m4/environ.m4: Likewise.
10454         * m4/mathfunc.m4: Likewise.
10455         * m4/onceonly.m4: Likewise.
10456         * m4/stdint.m4: Likewise.
10457         Suggested by Eric Blake.
10458
10459 2010-06-04  Martin Lambers  <marlam@marlam.de>
10460             Bruno Haible  <bruno@clisp.org>
10461
10462         havelib: Allow library names with '+' characters.
10463         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10464         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10465
10466 2010-06-09  Bruno Haible  <bruno@clisp.org>
10467
10468         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10469         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10470         realloc failed.
10471
10472 2010-06-08  Peter Simons  <simons@cryp.to>
10473
10474         maint.mk: make the news-check rule more configurable
10475         * top/maint.mk (news-check-lines-spec) New variable.
10476         (news-check): Use "sed -n 1,10p" in place of "head".
10477
10478 2010-06-07  Jim Meyering  <meyering@redhat.com>
10479
10480         do-release-commit-and-tag: fix typo in --help
10481         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10482
10483         regex: avoid new dead-code warning with gcc-4.6.0
10484         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10485         if-block containing a while-loop.  It's been unused for at least
10486         5 years.
10487
10488 2010-06-05  Bruno Haible  <bruno@clisp.org>
10489
10490         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10491         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10492
10493 2010-06-04  Bruno Haible  <bruno@clisp.org>
10494
10495         Update to GNU gettext 0.18.1.
10496         * modules/gettext (configure.ac): Require gettext infrastructure from
10497         version 0.18.1.
10498
10499 2010-06-03  Bruno Haible  <bruno@clisp.org>
10500
10501         Don't use AC_LIBOBJ with file names in subdirectories.
10502         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10503         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10504         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10505         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10506         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10507         gl_LIBUNISTRING_LIBSOURCE.
10508         (Makefile.am): Augment lib_SOURCES here, conditionally.
10509         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10510
10511 2010-06-03  Bruno Haible  <bruno@clisp.org>
10512
10513         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10514         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10515         expansion does not end with a newline.
10516         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10517         unnecessary newline.
10518
10519 2010-06-03  Bruno Haible  <bruno@clisp.org>
10520
10521         Reduce dependencies.
10522         * tests/test-quotearg.h: New file, extracted from
10523         tests/test-quotearg.c.
10524         * tests/test-quotearg-simple.c: New file, extracted from
10525         tests/test-quotearg.c.
10526         * tests/test-quotearg.c: Don't include <ctype.h>.
10527         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10528         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10529         use_quote_double_quotes, use_quotearg_colon): Moved to
10530         tests/test-quotearg.h.
10531         (results_g, flag_results, custom_quotes, custom_results): Moved
10532         to tests/test-quotearg-simple.c.
10533         (main): Moved the part that does not depend on gettext to
10534         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10535         performed.
10536         * modules/quotearg-simple: New file.
10537         * modules/quotearg-simple-tests: New file.
10538         * modules/quotearg (Depends-on): Add quotearg-simple.
10539         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10540         (Files): Add tests/test-quotearg.h.
10541         Reported by Paolo Bonzini.
10542
10543 2010-06-03  Bruno Haible  <bruno@clisp.org>
10544
10545         Reduce dependencies.
10546         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10547
10548 2010-06-03  Bruno Haible  <bruno@clisp.org>
10549
10550         time: Undefine more broken macros.
10551         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10552         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10553         Reported by Eric Blake.
10554
10555 2010-06-03  Bruno Haible  <bruno@clisp.org>
10556
10557         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10558         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10559         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10560         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10561         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10562         Reported by Ludovic Courtès <ludo@gnu.org>.
10563
10564 2010-06-02  Eric Blake  <eblake@redhat.com>
10565
10566         time: work with mingw + pthreads-win32 library
10567         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10568         if timespec is defined only in pthread.h.
10569         * modules/time (Makefile.am): Substitute it.
10570         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10571         <pthread.h>, when needed.
10572         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10573         from the library.
10574
10575 2010-05-31  Bruno Haible  <bruno@clisp.org>
10576
10577         Avoid expanding two macros in the wrong order.
10578         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10579         gl_LIBUNISTRING if it is defined.
10580         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10581         autoconf >= 2.64.
10582         Reported by Ludovic Courtès <ludo@gnu.org>.
10583
10584 2010-05-27  Jim Meyering  <meyering@redhat.com>
10585
10586         maint.mk: also prohibit "#undef" of always-defined symbols
10587         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10588         Allow more than one space before the symbol name.
10589         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10590         the regexp uses alternation.
10591
10592 2010-05-26  Eric Blake  <eblake@redhat.com>
10593
10594         maint.mk: avoid echo -e
10595         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10596         Convert all uses of echo -* to printf.
10597         Reported by Matthias Bolte.
10598
10599 2010-05-25  Bruno Haible  <bruno@clisp.org>
10600
10601         Update to GNU gettext 0.18, part 2.
10602         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10603         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10604
10605 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10606
10607         Add missing include in test-pwrite.c.
10608         * tests/test-pwrite.c: Include string.h, for strcmp.
10609
10610 2010-05-24  Bruno Haible  <bruno@clisp.org>
10611
10612         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10613
10614 2010-05-24  Bruno Haible  <bruno@clisp.org>
10615
10616         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10617         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10618         iconveh_error argument.
10619         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10620         U_STRCONV_TO_LOCALE.
10621         * lib/unistr/u16-strcoll.c: Likewise.
10622         * lib/unistr/u32-strcoll.c: Likewise.
10623         * modules/unistr/u8-strcoll (Depends-on): Add
10624         uniconv/u8-strconv-to-enc, localcharset. Remove
10625         uniconv/u8-strconv-to-locale.
10626         (configure.ac): Bump version number.
10627         * modules/unistr/u16-strcoll (Depends-on): Add
10628         uniconv/u16-strconv-to-enc, localcharset. Remove
10629         uniconv/u16-strconv-to-locale.
10630         (configure.ac): Bump version number.
10631         * modules/unistr/u32-strcoll (Depends-on): Add
10632         uniconv/u32-strconv-to-enc, localcharset. Remove
10633         uniconv/u32-strconv-to-locale.
10634         (configure.ac): Bump version number.
10635
10636 2010-05-24  Bruno Haible  <bruno@clisp.org>
10637
10638         Avoid a test failure on NetBSD 5.0.
10639         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10640         an iconv() bug.
10641
10642 2010-05-24  Bruno Haible  <bruno@clisp.org>
10643
10644         Adjust #include directive style.
10645         * modules/regex (Includes): Recommend to write <regex.h>.
10646
10647 2010-05-24  Bruno Haible  <bruno@clisp.org>
10648
10649         regex: Don't require alloca.
10650         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10651         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10652         only inside if (0).
10653
10654 2010-05-23  Jim Meyering  <meyering@redhat.com>
10655
10656         test-renameat.c: include <sys/stat.h>
10657         * tests/test-renameat.c: Include <sys/stat.h>; required for
10658         definition of S_IS* macros.
10659
10660 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10661
10662         Update maintainer documentation for 'relocatable-prog' module.
10663         * doc/relocatable-maint.texi: Update.
10664         Comments by Bruno Haible.
10665
10666 2010-05-23  Bruno Haible  <bruno@clisp.org>
10667
10668         git-merge-changelog: Enable --split-merged-entry by default.
10669         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10670         (usage): Don't mention this option any more.
10671         Reported by Ralf Wildenhues.
10672
10673 2010-05-23  Jim Meyering  <meyering@redhat.com>
10674
10675         test-pwrite: do not leave behind a test file named "out"
10676         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10677         The trivial-looking use of init.sh is really necessary.
10678         It ensures that the temporary file, "out", is created in
10679         a temporary directory, and removed upon termination.
10680         * tests/test-pwrite.sh: Re-add file.
10681         * modules/pwrite-tests: Reference it.
10682
10683 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10684
10685         Fix output redirection buglet in init.sh.
10686         * tests/init.sh: Fix redirection of stderr.
10687
10688 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10689
10690         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10691
10692 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10693
10694         * modules/valgrind-tests: New file.
10695         * m4/valgrind-tests.m4: New file.
10696         * doc/valgrind-tests.texi: New file.
10697         * doc/gnulib.texi (Running self-tests under valgrind): New
10698         section.
10699
10700 2010-05-19  Bruno Haible  <bruno@clisp.org>
10701
10702         Clean up dead code in recent commit.
10703         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10704         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10705         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10706         Suggested by Paolo Bonzini.
10707
10708 2010-05-19  Bruno Haible  <bruno@clisp.org>
10709
10710         Avoid valgrind error reports from libunistring.
10711         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10712         * modules/libunistring (Files): Add it.
10713         * modules/libunistring-optional (Files): Likewise.
10714
10715 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10716             Bruno Haible  <bruno@clisp.org>
10717
10718         New module 'libunistring-optional'.
10719         * modules/libunistring-optional: New file.
10720         * m4/libunistring-base.m4: New file.
10721         * m4/libunistring-optional.m4: New file.
10722         * lib/unicase.in.h: Renamed from lib/unicase.h.
10723         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10724         * lib/unictype.in.h: Renamed from lib/unictype.h.
10725         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10726         * lib/uniname.in.h: Renamed from lib/uniname.h.
10727         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10728         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10729         * lib/unistr.in.h: Renamed from lib/unistr.h.
10730         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10731         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10732         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10733         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10734         gl_LIBUNISTRING. If the library was found, determine the installed
10735         version and set LIBUNISTRING_VERSION.
10736         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10737         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10738         handle a configuration option --with-included-libunistring.
10739         * modules/libunistring (Files): Add m4/absolute-header.m4.
10740         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10741         Add m4/libunistring-base.m4.
10742         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10743         (Makefile.am): Build unicase.h from unicase.in.h.
10744         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10745         Add m4/libunistring-base.m4.
10746         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10747         (Makefile.am): Build uniconv.h from uniconv.in.h.
10748         * modules/unictype/base (Files): Use unictype.in.h instead of
10749         unictype.h. Add m4/libunistring-base.m4.
10750         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10751         (Makefile.am): Build unictype.h from unictype.in.h.
10752         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10753         Add m4/libunistring-base.m4.
10754         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10755         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10756         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10757         Add m4/libunistring-base.m4.
10758         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10759         (Makefile.am): Build uniname.h from uniname.in.h.
10760         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10761         Add m4/libunistring-base.m4.
10762         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10763         (Makefile.am): Build uninorm.h from uninorm.in.h.
10764         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10765         unistdio.h. Add m4/libunistring-base.m4.
10766         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10767         (Makefile.am): Build unistdio.h from unistdio.in.h.
10768         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10769         Add m4/libunistring-base.m4.
10770         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10771         (Makefile.am): Build unistr.h from unistr.in.h.
10772         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10773         Add m4/libunistring-base.m4.
10774         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10775         (Makefile.am): Build unitypes.h from unitypes.in.h.
10776         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10777         Add m4/libunistring-base.m4.
10778         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10779         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10780         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10781         uniwidth.h. Add m4/libunistring-base.m4.
10782         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10783         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10784         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10785         instead of augmenting lib_SOURCES.
10786         * modules/unicase/empty-suffix-context: Likewise.
10787         * modules/unicase/locale-language: Likewise.
10788         * modules/unicase/tolower: Likewise.
10789         * modules/unicase/totitle: Likewise.
10790         * modules/unicase/toupper: Likewise.
10791         * modules/unicase/u8-casecmp: Likewise.
10792         * modules/unicase/u8-casecoll: Likewise.
10793         * modules/unicase/u8-casefold: Likewise.
10794         * modules/unicase/u8-casexfrm: Likewise.
10795         * modules/unicase/u8-ct-casefold: Likewise.
10796         * modules/unicase/u8-ct-tolower: Likewise.
10797         * modules/unicase/u8-ct-totitle: Likewise.
10798         * modules/unicase/u8-ct-toupper: Likewise.
10799         * modules/unicase/u8-is-cased: Likewise.
10800         * modules/unicase/u8-is-casefolded: Likewise.
10801         * modules/unicase/u8-is-lowercase: Likewise.
10802         * modules/unicase/u8-is-titlecase: Likewise.
10803         * modules/unicase/u8-is-uppercase: Likewise.
10804         * modules/unicase/u8-prefix-context: Likewise.
10805         * modules/unicase/u8-suffix-context: Likewise.
10806         * modules/unicase/u8-tolower: Likewise.
10807         * modules/unicase/u8-totitle: Likewise.
10808         * modules/unicase/u8-toupper: Likewise.
10809         * modules/unicase/u16-casecmp: Likewise.
10810         * modules/unicase/u16-casecoll: Likewise.
10811         * modules/unicase/u16-casefold: Likewise.
10812         * modules/unicase/u16-casexfrm: Likewise.
10813         * modules/unicase/u16-ct-casefold: Likewise.
10814         * modules/unicase/u16-ct-tolower: Likewise.
10815         * modules/unicase/u16-ct-totitle: Likewise.
10816         * modules/unicase/u16-ct-toupper: Likewise.
10817         * modules/unicase/u16-is-cased: Likewise.
10818         * modules/unicase/u16-is-casefolded: Likewise.
10819         * modules/unicase/u16-is-lowercase: Likewise.
10820         * modules/unicase/u16-is-titlecase: Likewise.
10821         * modules/unicase/u16-is-uppercase: Likewise.
10822         * modules/unicase/u16-prefix-context: Likewise.
10823         * modules/unicase/u16-suffix-context: Likewise.
10824         * modules/unicase/u16-tolower: Likewise.
10825         * modules/unicase/u16-totitle: Likewise.
10826         * modules/unicase/u16-toupper: Likewise.
10827         * modules/unicase/u32-casecmp: Likewise.
10828         * modules/unicase/u32-casecoll: Likewise.
10829         * modules/unicase/u32-casefold: Likewise.
10830         * modules/unicase/u32-casexfrm: Likewise.
10831         * modules/unicase/u32-ct-casefold: Likewise.
10832         * modules/unicase/u32-ct-tolower: Likewise.
10833         * modules/unicase/u32-ct-totitle: Likewise.
10834         * modules/unicase/u32-ct-toupper: Likewise.
10835         * modules/unicase/u32-is-cased: Likewise.
10836         * modules/unicase/u32-is-casefolded: Likewise.
10837         * modules/unicase/u32-is-lowercase: Likewise.
10838         * modules/unicase/u32-is-titlecase: Likewise.
10839         * modules/unicase/u32-is-uppercase: Likewise.
10840         * modules/unicase/u32-prefix-context: Likewise.
10841         * modules/unicase/u32-suffix-context: Likewise.
10842         * modules/unicase/u32-tolower: Likewise.
10843         * modules/unicase/u32-totitle: Likewise.
10844         * modules/unicase/u32-toupper: Likewise.
10845         * modules/unicase/ulc-casecmp: Likewise.
10846         * modules/unicase/ulc-casecoll: Likewise.
10847         * modules/unicase/ulc-casexfrm: Likewise.
10848         * modules/uniconv/u8-conv-from-enc: Likewise.
10849         * modules/uniconv/u8-conv-to-enc: Likewise.
10850         * modules/uniconv/u8-strconv-from-enc: Likewise.
10851         * modules/uniconv/u8-strconv-from-locale: Likewise.
10852         * modules/uniconv/u8-strconv-to-enc: Likewise.
10853         * modules/uniconv/u8-strconv-to-locale: Likewise.
10854         * modules/uniconv/u16-conv-from-enc: Likewise.
10855         * modules/uniconv/u16-conv-to-enc: Likewise.
10856         * modules/uniconv/u16-strconv-from-enc: Likewise.
10857         * modules/uniconv/u16-strconv-from-locale: Likewise.
10858         * modules/uniconv/u16-strconv-to-enc: Likewise.
10859         * modules/uniconv/u16-strconv-to-locale: Likewise.
10860         * modules/uniconv/u32-conv-from-enc: Likewise.
10861         * modules/uniconv/u32-conv-to-enc: Likewise.
10862         * modules/uniconv/u32-strconv-from-enc: Likewise.
10863         * modules/uniconv/u32-strconv-from-locale: Likewise.
10864         * modules/uniconv/u32-strconv-to-enc: Likewise.
10865         * modules/uniconv/u32-strconv-to-locale: Likewise.
10866         * modules/unictype/bidicategory-byname: Likewise.
10867         * modules/unictype/bidicategory-name: Likewise.
10868         * modules/unictype/bidicategory-of: Likewise.
10869         * modules/unictype/bidicategory-test: Likewise.
10870         * modules/unictype/block-list: Likewise.
10871         * modules/unictype/block-test: Likewise.
10872         * modules/unictype/category-C: Likewise.
10873         * modules/unictype/category-Cc: Likewise.
10874         * modules/unictype/category-Cf: Likewise.
10875         * modules/unictype/category-Cn: Likewise.
10876         * modules/unictype/category-Co: Likewise.
10877         * modules/unictype/category-Cs: Likewise.
10878         * modules/unictype/category-L: Likewise.
10879         * modules/unictype/category-Ll: Likewise.
10880         * modules/unictype/category-Lm: Likewise.
10881         * modules/unictype/category-Lo: Likewise.
10882         * modules/unictype/category-Lt: Likewise.
10883         * modules/unictype/category-Lu: Likewise.
10884         * modules/unictype/category-M: Likewise.
10885         * modules/unictype/category-Mc: Likewise.
10886         * modules/unictype/category-Me: Likewise.
10887         * modules/unictype/category-Mn: Likewise.
10888         * modules/unictype/category-N: Likewise.
10889         * modules/unictype/category-Nd: Likewise.
10890         * modules/unictype/category-Nl: Likewise.
10891         * modules/unictype/category-No: Likewise.
10892         * modules/unictype/category-P: Likewise.
10893         * modules/unictype/category-Pc: Likewise.
10894         * modules/unictype/category-Pd: Likewise.
10895         * modules/unictype/category-Pe: Likewise.
10896         * modules/unictype/category-Pf: Likewise.
10897         * modules/unictype/category-Pi: Likewise.
10898         * modules/unictype/category-Po: Likewise.
10899         * modules/unictype/category-Ps: Likewise.
10900         * modules/unictype/category-S: Likewise.
10901         * modules/unictype/category-Sc: Likewise.
10902         * modules/unictype/category-Sk: Likewise.
10903         * modules/unictype/category-Sm: Likewise.
10904         * modules/unictype/category-So: Likewise.
10905         * modules/unictype/category-Z: Likewise.
10906         * modules/unictype/category-Zl: Likewise.
10907         * modules/unictype/category-Zp: Likewise.
10908         * modules/unictype/category-Zs: Likewise.
10909         * modules/unictype/category-and: Likewise.
10910         * modules/unictype/category-and-not: Likewise.
10911         * modules/unictype/category-byname: Likewise.
10912         * modules/unictype/category-name: Likewise.
10913         * modules/unictype/category-none: Likewise.
10914         * modules/unictype/category-of: Likewise.
10915         * modules/unictype/category-or: Likewise.
10916         * modules/unictype/category-test: Likewise.
10917         * modules/unictype/combining-class: Likewise.
10918         * modules/unictype/ctype-alnum: Likewise.
10919         * modules/unictype/ctype-alpha: Likewise.
10920         * modules/unictype/ctype-blank: Likewise.
10921         * modules/unictype/ctype-cntrl: Likewise.
10922         * modules/unictype/ctype-digit: Likewise.
10923         * modules/unictype/ctype-graph: Likewise.
10924         * modules/unictype/ctype-lower: Likewise.
10925         * modules/unictype/ctype-print: Likewise.
10926         * modules/unictype/ctype-punct: Likewise.
10927         * modules/unictype/ctype-space: Likewise.
10928         * modules/unictype/ctype-upper: Likewise.
10929         * modules/unictype/ctype-xdigit: Likewise.
10930         * modules/unictype/decimal-digit: Likewise.
10931         * modules/unictype/digit: Likewise.
10932         * modules/unictype/mirror: Likewise.
10933         * modules/unictype/numeric: Likewise.
10934         * modules/unictype/property-alphabetic: Likewise.
10935         * modules/unictype/property-ascii-hex-digit: Likewise.
10936         * modules/unictype/property-bidi-arabic-digit: Likewise.
10937         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10938         * modules/unictype/property-bidi-block-separator: Likewise.
10939         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10940         * modules/unictype/property-bidi-common-separator: Likewise.
10941         * modules/unictype/property-bidi-control: Likewise.
10942         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10943         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10944         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10945         * modules/unictype/property-bidi-european-digit: Likewise.
10946         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10947         * modules/unictype/property-bidi-left-to-right: Likewise.
10948         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10949         * modules/unictype/property-bidi-other-neutral: Likewise.
10950         * modules/unictype/property-bidi-pdf: Likewise.
10951         * modules/unictype/property-bidi-segment-separator: Likewise.
10952         * modules/unictype/property-bidi-whitespace: Likewise.
10953         * modules/unictype/property-byname: Likewise.
10954         * modules/unictype/property-combining: Likewise.
10955         * modules/unictype/property-composite: Likewise.
10956         * modules/unictype/property-currency-symbol: Likewise.
10957         * modules/unictype/property-dash: Likewise.
10958         * modules/unictype/property-decimal-digit: Likewise.
10959         * modules/unictype/property-default-ignorable-code-point: Likewise.
10960         * modules/unictype/property-deprecated: Likewise.
10961         * modules/unictype/property-diacritic: Likewise.
10962         * modules/unictype/property-extender: Likewise.
10963         * modules/unictype/property-format-control: Likewise.
10964         * modules/unictype/property-grapheme-base: Likewise.
10965         * modules/unictype/property-grapheme-extend: Likewise.
10966         * modules/unictype/property-grapheme-link: Likewise.
10967         * modules/unictype/property-hex-digit: Likewise.
10968         * modules/unictype/property-hyphen: Likewise.
10969         * modules/unictype/property-id-continue: Likewise.
10970         * modules/unictype/property-id-start: Likewise.
10971         * modules/unictype/property-ideographic: Likewise.
10972         * modules/unictype/property-ids-binary-operator: Likewise.
10973         * modules/unictype/property-ids-trinary-operator: Likewise.
10974         * modules/unictype/property-ignorable-control: Likewise.
10975         * modules/unictype/property-iso-control: Likewise.
10976         * modules/unictype/property-join-control: Likewise.
10977         * modules/unictype/property-left-of-pair: Likewise.
10978         * modules/unictype/property-line-separator: Likewise.
10979         * modules/unictype/property-logical-order-exception: Likewise.
10980         * modules/unictype/property-lowercase: Likewise.
10981         * modules/unictype/property-math: Likewise.
10982         * modules/unictype/property-non-break: Likewise.
10983         * modules/unictype/property-not-a-character: Likewise.
10984         * modules/unictype/property-numeric: Likewise.
10985         * modules/unictype/property-other-alphabetic: Likewise.
10986         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10987         * modules/unictype/property-other-grapheme-extend: Likewise.
10988         * modules/unictype/property-other-id-continue: Likewise.
10989         * modules/unictype/property-other-id-start: Likewise.
10990         * modules/unictype/property-other-lowercase: Likewise.
10991         * modules/unictype/property-other-math: Likewise.
10992         * modules/unictype/property-other-uppercase: Likewise.
10993         * modules/unictype/property-paired-punctuation: Likewise.
10994         * modules/unictype/property-paragraph-separator: Likewise.
10995         * modules/unictype/property-pattern-syntax: Likewise.
10996         * modules/unictype/property-pattern-white-space: Likewise.
10997         * modules/unictype/property-private-use: Likewise.
10998         * modules/unictype/property-punctuation: Likewise.
10999         * modules/unictype/property-quotation-mark: Likewise.
11000         * modules/unictype/property-radical: Likewise.
11001         * modules/unictype/property-sentence-terminal: Likewise.
11002         * modules/unictype/property-soft-dotted: Likewise.
11003         * modules/unictype/property-space: Likewise.
11004         * modules/unictype/property-terminal-punctuation: Likewise.
11005         * modules/unictype/property-test: Likewise.
11006         * modules/unictype/property-titlecase: Likewise.
11007         * modules/unictype/property-unassigned-code-value: Likewise.
11008         * modules/unictype/property-unified-ideograph: Likewise.
11009         * modules/unictype/property-uppercase: Likewise.
11010         * modules/unictype/property-variation-selector: Likewise.
11011         * modules/unictype/property-white-space: Likewise.
11012         * modules/unictype/property-xid-continue: Likewise.
11013         * modules/unictype/property-xid-start: Likewise.
11014         * modules/unictype/property-zero-width: Likewise.
11015         * modules/unictype/scripts: Likewise.
11016         * modules/unictype/syntax-c-ident: Likewise.
11017         * modules/unictype/syntax-c-whitespace: Likewise.
11018         * modules/unictype/syntax-java-ident: Likewise.
11019         * modules/unictype/syntax-java-whitespace: Likewise.
11020         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11021         * modules/unilbrk/u8-width-linebreaks: Likewise.
11022         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11023         * modules/unilbrk/u16-width-linebreaks: Likewise.
11024         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11025         * modules/unilbrk/u32-width-linebreaks: Likewise.
11026         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11027         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11028         * modules/uniname/uniname: Likewise.
11029         * modules/uninorm/canonical-decomposition: Likewise.
11030         * modules/uninorm/composition: Likewise.
11031         * modules/uninorm/decomposing-form: Likewise.
11032         * modules/uninorm/decomposition: Likewise.
11033         * modules/uninorm/filter: Likewise.
11034         * modules/uninorm/nfc: Likewise.
11035         * modules/uninorm/nfd: Likewise.
11036         * modules/uninorm/nfkc: Likewise.
11037         * modules/uninorm/nfkd: Likewise.
11038         * modules/uninorm/u8-normalize: Likewise.
11039         * modules/uninorm/u8-normcmp: Likewise.
11040         * modules/uninorm/u8-normcoll: Likewise.
11041         * modules/uninorm/u8-normxfrm: Likewise.
11042         * modules/uninorm/u16-normalize: Likewise.
11043         * modules/uninorm/u16-normcmp: Likewise.
11044         * modules/uninorm/u16-normcoll: Likewise.
11045         * modules/uninorm/u16-normxfrm: Likewise.
11046         * modules/uninorm/u32-normalize: Likewise.
11047         * modules/uninorm/u32-normcmp: Likewise.
11048         * modules/uninorm/u32-normcoll: Likewise.
11049         * modules/uninorm/u32-normxfrm: Likewise.
11050         * modules/unistdio/u8-asnprintf: Likewise.
11051         * modules/unistdio/u8-asprintf: Likewise.
11052         * modules/unistdio/u8-snprintf: Likewise.
11053         * modules/unistdio/u8-sprintf: Likewise.
11054         * modules/unistdio/u8-u8-asnprintf: Likewise.
11055         * modules/unistdio/u8-u8-asprintf: Likewise.
11056         * modules/unistdio/u8-u8-snprintf: Likewise.
11057         * modules/unistdio/u8-u8-sprintf: Likewise.
11058         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11059         * modules/unistdio/u8-u8-vasprintf: Likewise.
11060         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11061         * modules/unistdio/u8-u8-vsprintf: Likewise.
11062         * modules/unistdio/u8-vasnprintf: Likewise.
11063         * modules/unistdio/u8-vasprintf: Likewise.
11064         * modules/unistdio/u8-vsnprintf: Likewise.
11065         * modules/unistdio/u8-vsprintf: Likewise.
11066         * modules/unistdio/u16-asnprintf: Likewise.
11067         * modules/unistdio/u16-asprintf: Likewise.
11068         * modules/unistdio/u16-snprintf: Likewise.
11069         * modules/unistdio/u16-sprintf: Likewise.
11070         * modules/unistdio/u16-u16-asnprintf: Likewise.
11071         * modules/unistdio/u16-u16-asprintf: Likewise.
11072         * modules/unistdio/u16-u16-snprintf: Likewise.
11073         * modules/unistdio/u16-u16-sprintf: Likewise.
11074         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11075         * modules/unistdio/u16-u16-vasprintf: Likewise.
11076         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11077         * modules/unistdio/u16-u16-vsprintf: Likewise.
11078         * modules/unistdio/u16-vasnprintf: Likewise.
11079         * modules/unistdio/u16-vasprintf: Likewise.
11080         * modules/unistdio/u16-vsnprintf: Likewise.
11081         * modules/unistdio/u16-vsprintf: Likewise.
11082         * modules/unistdio/u32-asnprintf: Likewise.
11083         * modules/unistdio/u32-asprintf: Likewise.
11084         * modules/unistdio/u32-snprintf: Likewise.
11085         * modules/unistdio/u32-sprintf: Likewise.
11086         * modules/unistdio/u32-u32-asnprintf: Likewise.
11087         * modules/unistdio/u32-u32-asprintf: Likewise.
11088         * modules/unistdio/u32-u32-snprintf: Likewise.
11089         * modules/unistdio/u32-u32-sprintf: Likewise.
11090         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11091         * modules/unistdio/u32-u32-vasprintf: Likewise.
11092         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11093         * modules/unistdio/u32-u32-vsprintf: Likewise.
11094         * modules/unistdio/u32-vasnprintf: Likewise.
11095         * modules/unistdio/u32-vasprintf: Likewise.
11096         * modules/unistdio/u32-vsnprintf: Likewise.
11097         * modules/unistdio/u32-vsprintf: Likewise.
11098         * modules/unistdio/ulc-asnprintf: Likewise.
11099         * modules/unistdio/ulc-asprintf: Likewise.
11100         * modules/unistdio/ulc-fprintf: Likewise.
11101         * modules/unistdio/ulc-snprintf: Likewise.
11102         * modules/unistdio/ulc-sprintf: Likewise.
11103         * modules/unistdio/ulc-vasnprintf: Likewise.
11104         * modules/unistdio/ulc-vasprintf: Likewise.
11105         * modules/unistdio/ulc-vfprintf: Likewise.
11106         * modules/unistdio/ulc-vsnprintf: Likewise.
11107         * modules/unistdio/ulc-vsprintf: Likewise.
11108         * modules/unistr/u8-check: Likewise.
11109         * modules/unistr/u8-chr: Likewise.
11110         * modules/unistr/u8-cmp: Likewise.
11111         * modules/unistr/u8-cmp2: Likewise.
11112         * modules/unistr/u8-cpy: Likewise.
11113         * modules/unistr/u8-cpy-alloc: Likewise.
11114         * modules/unistr/u8-endswith: Likewise.
11115         * modules/unistr/u8-mblen: Likewise.
11116         * modules/unistr/u8-mbsnlen: Likewise.
11117         * modules/unistr/u8-mbtouc: Likewise.
11118         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11119         * modules/unistr/u8-mbtoucr: Likewise.
11120         * modules/unistr/u8-move: Likewise.
11121         * modules/unistr/u8-next: Likewise.
11122         * modules/unistr/u8-prev: Likewise.
11123         * modules/unistr/u8-set: Likewise.
11124         * modules/unistr/u8-startswith: Likewise.
11125         * modules/unistr/u8-stpcpy: Likewise.
11126         * modules/unistr/u8-stpncpy: Likewise.
11127         * modules/unistr/u8-strcat: Likewise.
11128         * modules/unistr/u8-strchr: Likewise.
11129         * modules/unistr/u8-strcmp: Likewise.
11130         * modules/unistr/u8-strcoll: Likewise.
11131         * modules/unistr/u8-strcpy: Likewise.
11132         * modules/unistr/u8-strcspn: Likewise.
11133         * modules/unistr/u8-strdup: Likewise.
11134         * modules/unistr/u8-strlen: Likewise.
11135         * modules/unistr/u8-strmblen: Likewise.
11136         * modules/unistr/u8-strmbtouc: Likewise.
11137         * modules/unistr/u8-strncat: Likewise.
11138         * modules/unistr/u8-strncmp: Likewise.
11139         * modules/unistr/u8-strncpy: Likewise.
11140         * modules/unistr/u8-strnlen: Likewise.
11141         * modules/unistr/u8-strpbrk: Likewise.
11142         * modules/unistr/u8-strrchr: Likewise.
11143         * modules/unistr/u8-strspn: Likewise.
11144         * modules/unistr/u8-strstr: Likewise.
11145         * modules/unistr/u8-strtok: Likewise.
11146         * modules/unistr/u8-to-u16: Likewise.
11147         * modules/unistr/u8-to-u32: Likewise.
11148         * modules/unistr/u8-uctomb: Likewise.
11149         * modules/unistr/u16-check: Likewise.
11150         * modules/unistr/u16-chr: Likewise.
11151         * modules/unistr/u16-cmp: Likewise.
11152         * modules/unistr/u16-cmp2: Likewise.
11153         * modules/unistr/u16-cpy: Likewise.
11154         * modules/unistr/u16-cpy-alloc: Likewise.
11155         * modules/unistr/u16-endswith: Likewise.
11156         * modules/unistr/u16-mblen: Likewise.
11157         * modules/unistr/u16-mbsnlen: Likewise.
11158         * modules/unistr/u16-mbtouc: Likewise.
11159         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11160         * modules/unistr/u16-mbtoucr: Likewise.
11161         * modules/unistr/u16-move: Likewise.
11162         * modules/unistr/u16-next: Likewise.
11163         * modules/unistr/u16-prev: Likewise.
11164         * modules/unistr/u16-set: Likewise.
11165         * modules/unistr/u16-startswith: Likewise.
11166         * modules/unistr/u16-stpcpy: Likewise.
11167         * modules/unistr/u16-stpncpy: Likewise.
11168         * modules/unistr/u16-strcat: Likewise.
11169         * modules/unistr/u16-strchr: Likewise.
11170         * modules/unistr/u16-strcmp: Likewise.
11171         * modules/unistr/u16-strcoll: Likewise.
11172         * modules/unistr/u16-strcpy: Likewise.
11173         * modules/unistr/u16-strcspn: Likewise.
11174         * modules/unistr/u16-strdup: Likewise.
11175         * modules/unistr/u16-strlen: Likewise.
11176         * modules/unistr/u16-strmblen: Likewise.
11177         * modules/unistr/u16-strmbtouc: Likewise.
11178         * modules/unistr/u16-strncat: Likewise.
11179         * modules/unistr/u16-strncmp: Likewise.
11180         * modules/unistr/u16-strncpy: Likewise.
11181         * modules/unistr/u16-strnlen: Likewise.
11182         * modules/unistr/u16-strpbrk: Likewise.
11183         * modules/unistr/u16-strrchr: Likewise.
11184         * modules/unistr/u16-strspn: Likewise.
11185         * modules/unistr/u16-strstr: Likewise.
11186         * modules/unistr/u16-strtok: Likewise.
11187         * modules/unistr/u16-to-u32: Likewise.
11188         * modules/unistr/u16-to-u8: Likewise.
11189         * modules/unistr/u16-uctomb: Likewise.
11190         * modules/unistr/u32-check: Likewise.
11191         * modules/unistr/u32-chr: Likewise.
11192         * modules/unistr/u32-cmp: Likewise.
11193         * modules/unistr/u32-cmp2: Likewise.
11194         * modules/unistr/u32-cpy: Likewise.
11195         * modules/unistr/u32-cpy-alloc: Likewise.
11196         * modules/unistr/u32-endswith: Likewise.
11197         * modules/unistr/u32-mblen: Likewise.
11198         * modules/unistr/u32-mbsnlen: Likewise.
11199         * modules/unistr/u32-mbtouc: Likewise.
11200         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11201         * modules/unistr/u32-mbtoucr: Likewise.
11202         * modules/unistr/u32-move: Likewise.
11203         * modules/unistr/u32-next: Likewise.
11204         * modules/unistr/u32-prev: Likewise.
11205         * modules/unistr/u32-set: Likewise.
11206         * modules/unistr/u32-startswith: Likewise.
11207         * modules/unistr/u32-stpcpy: Likewise.
11208         * modules/unistr/u32-stpncpy: Likewise.
11209         * modules/unistr/u32-strcat: Likewise.
11210         * modules/unistr/u32-strchr: Likewise.
11211         * modules/unistr/u32-strcmp: Likewise.
11212         * modules/unistr/u32-strcoll: Likewise.
11213         * modules/unistr/u32-strcpy: Likewise.
11214         * modules/unistr/u32-strcspn: Likewise.
11215         * modules/unistr/u32-strdup: Likewise.
11216         * modules/unistr/u32-strlen: Likewise.
11217         * modules/unistr/u32-strmblen: Likewise.
11218         * modules/unistr/u32-strmbtouc: Likewise.
11219         * modules/unistr/u32-strncat: Likewise.
11220         * modules/unistr/u32-strncmp: Likewise.
11221         * modules/unistr/u32-strncpy: Likewise.
11222         * modules/unistr/u32-strnlen: Likewise.
11223         * modules/unistr/u32-strpbrk: Likewise.
11224         * modules/unistr/u32-strrchr: Likewise.
11225         * modules/unistr/u32-strspn: Likewise.
11226         * modules/unistr/u32-strstr: Likewise.
11227         * modules/unistr/u32-strtok: Likewise.
11228         * modules/unistr/u32-to-u16: Likewise.
11229         * modules/unistr/u32-to-u8: Likewise.
11230         * modules/unistr/u32-uctomb: Likewise.
11231         * modules/uniwbrk/u8-wordbreaks: Likewise.
11232         * modules/uniwbrk/u16-wordbreaks: Likewise.
11233         * modules/uniwbrk/u32-wordbreaks: Likewise.
11234         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11235         * modules/uniwbrk/wordbreak-property: Likewise.
11236         * modules/uniwidth/u8-strwidth: Likewise.
11237         * modules/uniwidth/u8-width: Likewise.
11238         * modules/uniwidth/u16-strwidth: Likewise.
11239         * modules/uniwidth/u16-width: Likewise.
11240         * modules/uniwidth/u32-strwidth: Likewise.
11241         * modules/uniwidth/u32-width: Likewise.
11242         * modules/uniwidth/width: Likewise.
11243         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11244         with $(LIBUNISTRING).
11245         * modules/unicase/ignorable-tests: Likewise.
11246         * modules/unicase/locale-language-tests: Likewise.
11247         * modules/unicase/tolower-tests: Likewise.
11248         * modules/unicase/totitle-tests: Likewise.
11249         * modules/unicase/toupper-tests: Likewise.
11250         * modules/unicase/u8-casecmp-tests: Likewise.
11251         * modules/unicase/u8-casecoll-tests: Likewise.
11252         * modules/unicase/u8-casefold-tests: Likewise.
11253         * modules/unicase/u8-is-cased-tests: Likewise.
11254         * modules/unicase/u8-is-casefolded-tests: Likewise.
11255         * modules/unicase/u8-is-lowercase-tests: Likewise.
11256         * modules/unicase/u8-is-titlecase-tests: Likewise.
11257         * modules/unicase/u8-is-uppercase-tests: Likewise.
11258         * modules/unicase/u8-tolower-tests: Likewise.
11259         * modules/unicase/u8-totitle-tests: Likewise.
11260         * modules/unicase/u8-toupper-tests: Likewise.
11261         * modules/unicase/u16-casecmp-tests: Likewise.
11262         * modules/unicase/u16-casecoll-tests: Likewise.
11263         * modules/unicase/u16-casefold-tests: Likewise.
11264         * modules/unicase/u16-is-cased-tests: Likewise.
11265         * modules/unicase/u16-is-casefolded-tests: Likewise.
11266         * modules/unicase/u16-is-lowercase-tests: Likewise.
11267         * modules/unicase/u16-is-titlecase-tests: Likewise.
11268         * modules/unicase/u16-is-uppercase-tests: Likewise.
11269         * modules/unicase/u16-tolower-tests: Likewise.
11270         * modules/unicase/u16-totitle-tests: Likewise.
11271         * modules/unicase/u16-toupper-tests: Likewise.
11272         * modules/unicase/u32-casecmp-tests: Likewise.
11273         * modules/unicase/u32-casecoll-tests: Likewise.
11274         * modules/unicase/u32-casefold-tests: Likewise.
11275         * modules/unicase/u32-is-cased-tests: Likewise.
11276         * modules/unicase/u32-is-casefolded-tests: Likewise.
11277         * modules/unicase/u32-is-lowercase-tests: Likewise.
11278         * modules/unicase/u32-is-titlecase-tests: Likewise.
11279         * modules/unicase/u32-is-uppercase-tests: Likewise.
11280         * modules/unicase/u32-tolower-tests: Likewise.
11281         * modules/unicase/u32-totitle-tests: Likewise.
11282         * modules/unicase/u32-toupper-tests: Likewise.
11283         * modules/unicase/ulc-casecmp-tests: Likewise.
11284         * modules/unicase/ulc-casecoll-tests: Likewise.
11285         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11286         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11287         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11288         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11289         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11290         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11291         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11292         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11293         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11294         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11295         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11296         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11297         * modules/unictype/bidicategory-byname-tests: Likewise.
11298         * modules/unictype/bidicategory-name-tests: Likewise.
11299         * modules/unictype/bidicategory-of-tests: Likewise.
11300         * modules/unictype/bidicategory-test-tests: Likewise.
11301         * modules/unictype/block-list-tests: Likewise.
11302         * modules/unictype/block-of-tests: Likewise.
11303         * modules/unictype/block-test-tests: Likewise.
11304         * modules/unictype/category-C-tests: Likewise.
11305         * modules/unictype/category-Cc-tests: Likewise.
11306         * modules/unictype/category-Cf-tests: Likewise.
11307         * modules/unictype/category-Cn-tests: Likewise.
11308         * modules/unictype/category-Co-tests: Likewise.
11309         * modules/unictype/category-Cs-tests: Likewise.
11310         * modules/unictype/category-L-tests: Likewise.
11311         * modules/unictype/category-Ll-tests: Likewise.
11312         * modules/unictype/category-Lm-tests: Likewise.
11313         * modules/unictype/category-Lo-tests: Likewise.
11314         * modules/unictype/category-Lt-tests: Likewise.
11315         * modules/unictype/category-Lu-tests: Likewise.
11316         * modules/unictype/category-M-tests: Likewise.
11317         * modules/unictype/category-Mc-tests: Likewise.
11318         * modules/unictype/category-Me-tests: Likewise.
11319         * modules/unictype/category-Mn-tests: Likewise.
11320         * modules/unictype/category-N-tests: Likewise.
11321         * modules/unictype/category-Nd-tests: Likewise.
11322         * modules/unictype/category-Nl-tests: Likewise.
11323         * modules/unictype/category-No-tests: Likewise.
11324         * modules/unictype/category-P-tests: Likewise.
11325         * modules/unictype/category-Pc-tests: Likewise.
11326         * modules/unictype/category-Pd-tests: Likewise.
11327         * modules/unictype/category-Pe-tests: Likewise.
11328         * modules/unictype/category-Pf-tests: Likewise.
11329         * modules/unictype/category-Pi-tests: Likewise.
11330         * modules/unictype/category-Po-tests: Likewise.
11331         * modules/unictype/category-Ps-tests: Likewise.
11332         * modules/unictype/category-S-tests: Likewise.
11333         * modules/unictype/category-Sc-tests: Likewise.
11334         * modules/unictype/category-Sk-tests: Likewise.
11335         * modules/unictype/category-Sm-tests: Likewise.
11336         * modules/unictype/category-So-tests: Likewise.
11337         * modules/unictype/category-Z-tests: Likewise.
11338         * modules/unictype/category-Zl-tests: Likewise.
11339         * modules/unictype/category-Zp-tests: Likewise.
11340         * modules/unictype/category-Zs-tests: Likewise.
11341         * modules/unictype/category-and-not-tests: Likewise.
11342         * modules/unictype/category-and-tests: Likewise.
11343         * modules/unictype/category-byname-tests: Likewise.
11344         * modules/unictype/category-name-tests: Likewise.
11345         * modules/unictype/category-none-tests: Likewise.
11346         * modules/unictype/category-of-tests: Likewise.
11347         * modules/unictype/category-or-tests: Likewise.
11348         * modules/unictype/category-test-withtable-tests: Likewise.
11349         * modules/unictype/combining-class-tests: Likewise.
11350         * modules/unictype/ctype-alnum-tests: Likewise.
11351         * modules/unictype/ctype-alpha-tests: Likewise.
11352         * modules/unictype/ctype-blank-tests: Likewise.
11353         * modules/unictype/ctype-cntrl-tests: Likewise.
11354         * modules/unictype/ctype-digit-tests: Likewise.
11355         * modules/unictype/ctype-graph-tests: Likewise.
11356         * modules/unictype/ctype-lower-tests: Likewise.
11357         * modules/unictype/ctype-print-tests: Likewise.
11358         * modules/unictype/ctype-punct-tests: Likewise.
11359         * modules/unictype/ctype-space-tests: Likewise.
11360         * modules/unictype/ctype-upper-tests: Likewise.
11361         * modules/unictype/ctype-xdigit-tests: Likewise.
11362         * modules/unictype/decimal-digit-tests: Likewise.
11363         * modules/unictype/digit-tests: Likewise.
11364         * modules/unictype/mirror-tests: Likewise.
11365         * modules/unictype/numeric-tests: Likewise.
11366         * modules/unictype/property-alphabetic-tests: Likewise.
11367         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11368         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11369         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11370         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11371         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11372         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11373         * modules/unictype/property-bidi-control-tests: Likewise.
11374         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11375         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11376         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11377         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11378         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11379         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11380         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11381         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11382         * modules/unictype/property-bidi-pdf-tests: Likewise.
11383         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11384         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11385         * modules/unictype/property-byname-tests: Likewise.
11386         * modules/unictype/property-combining-tests: Likewise.
11387         * modules/unictype/property-composite-tests: Likewise.
11388         * modules/unictype/property-currency-symbol-tests: Likewise.
11389         * modules/unictype/property-dash-tests: Likewise.
11390         * modules/unictype/property-decimal-digit-tests: Likewise.
11391         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11392         * modules/unictype/property-deprecated-tests: Likewise.
11393         * modules/unictype/property-diacritic-tests: Likewise.
11394         * modules/unictype/property-extender-tests: Likewise.
11395         * modules/unictype/property-format-control-tests: Likewise.
11396         * modules/unictype/property-grapheme-base-tests: Likewise.
11397         * modules/unictype/property-grapheme-extend-tests: Likewise.
11398         * modules/unictype/property-grapheme-link-tests: Likewise.
11399         * modules/unictype/property-hex-digit-tests: Likewise.
11400         * modules/unictype/property-hyphen-tests: Likewise.
11401         * modules/unictype/property-id-continue-tests: Likewise.
11402         * modules/unictype/property-id-start-tests: Likewise.
11403         * modules/unictype/property-ideographic-tests: Likewise.
11404         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11405         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11406         * modules/unictype/property-ignorable-control-tests: Likewise.
11407         * modules/unictype/property-iso-control-tests: Likewise.
11408         * modules/unictype/property-join-control-tests: Likewise.
11409         * modules/unictype/property-left-of-pair-tests: Likewise.
11410         * modules/unictype/property-line-separator-tests: Likewise.
11411         * modules/unictype/property-logical-order-exception-tests: Likewise.
11412         * modules/unictype/property-lowercase-tests: Likewise.
11413         * modules/unictype/property-math-tests: Likewise.
11414         * modules/unictype/property-non-break-tests: Likewise.
11415         * modules/unictype/property-not-a-character-tests: Likewise.
11416         * modules/unictype/property-numeric-tests: Likewise.
11417         * modules/unictype/property-other-alphabetic-tests: Likewise.
11418         * modules/unictype/property-other-default-ignorable-code-point-tests:
11419         Likewise.
11420         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11421         * modules/unictype/property-other-id-continue-tests: Likewise.
11422         * modules/unictype/property-other-id-start-tests: Likewise.
11423         * modules/unictype/property-other-lowercase-tests: Likewise.
11424         * modules/unictype/property-other-math-tests: Likewise.
11425         * modules/unictype/property-other-uppercase-tests: Likewise.
11426         * modules/unictype/property-paired-punctuation-tests: Likewise.
11427         * modules/unictype/property-paragraph-separator-tests: Likewise.
11428         * modules/unictype/property-pattern-syntax-tests: Likewise.
11429         * modules/unictype/property-pattern-white-space-tests: Likewise.
11430         * modules/unictype/property-private-use-tests: Likewise.
11431         * modules/unictype/property-punctuation-tests: Likewise.
11432         * modules/unictype/property-quotation-mark-tests: Likewise.
11433         * modules/unictype/property-radical-tests: Likewise.
11434         * modules/unictype/property-sentence-terminal-tests: Likewise.
11435         * modules/unictype/property-soft-dotted-tests: Likewise.
11436         * modules/unictype/property-space-tests: Likewise.
11437         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11438         * modules/unictype/property-test-tests: Likewise.
11439         * modules/unictype/property-titlecase-tests: Likewise.
11440         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11441         * modules/unictype/property-unified-ideograph-tests: Likewise.
11442         * modules/unictype/property-uppercase-tests: Likewise.
11443         * modules/unictype/property-variation-selector-tests: Likewise.
11444         * modules/unictype/property-white-space-tests: Likewise.
11445         * modules/unictype/property-xid-continue-tests: Likewise.
11446         * modules/unictype/property-xid-start-tests: Likewise.
11447         * modules/unictype/property-zero-width-tests: Likewise.
11448         * modules/unictype/scripts-tests: Likewise.
11449         * modules/unictype/syntax-c-ident-tests: Likewise.
11450         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11451         * modules/unictype/syntax-java-ident-tests: Likewise.
11452         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11453         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11454         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11455         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11456         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11457         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11458         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11459         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11460         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11461         * modules/uniname/uniname-tests: Likewise.
11462         * modules/uninorm/canonical-decomposition-tests: Likewise.
11463         * modules/uninorm/compat-decomposition-tests: Likewise.
11464         * modules/uninorm/composition-tests: Likewise.
11465         * modules/uninorm/decomposing-form-tests: Likewise.
11466         * modules/uninorm/decomposition-tests: Likewise.
11467         * modules/uninorm/filter-tests: Likewise.
11468         * modules/uninorm/nfc-tests: Likewise.
11469         * modules/uninorm/nfd-tests: Likewise.
11470         * modules/uninorm/nfkc-tests: Likewise.
11471         * modules/uninorm/nfkd-tests: Likewise.
11472         * modules/uninorm/u8-normcmp-tests: Likewise.
11473         * modules/uninorm/u8-normcoll-tests: Likewise.
11474         * modules/uninorm/u16-normcmp-tests: Likewise.
11475         * modules/uninorm/u16-normcoll-tests: Likewise.
11476         * modules/uninorm/u32-normcmp-tests: Likewise.
11477         * modules/uninorm/u32-normcoll-tests: Likewise.
11478         * modules/unistdio/u8-asnprintf-tests: Likewise.
11479         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11480         * modules/unistdio/u8-vasprintf-tests: Likewise.
11481         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11482         * modules/unistdio/u8-vsprintf-tests: Likewise.
11483         * modules/unistdio/u16-asnprintf-tests: Likewise.
11484         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11485         * modules/unistdio/u16-vasprintf-tests: Likewise.
11486         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11487         * modules/unistdio/u16-vsprintf-tests: Likewise.
11488         * modules/unistdio/u32-asnprintf-tests: Likewise.
11489         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11490         * modules/unistdio/u32-vasprintf-tests: Likewise.
11491         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11492         * modules/unistdio/u32-vsprintf-tests: Likewise.
11493         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11494         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11495         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11496         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11497         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11498         * modules/unistr/u8-check-tests: Likewise.
11499         * modules/unistr/u8-chr-tests: Likewise.
11500         * modules/unistr/u8-cmp-tests: Likewise.
11501         * modules/unistr/u8-cmp2-tests: Likewise.
11502         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11503         * modules/unistr/u8-cpy-tests: Likewise.
11504         * modules/unistr/u8-mblen-tests: Likewise.
11505         * modules/unistr/u8-mbsnlen-tests: Likewise.
11506         * modules/unistr/u8-mbtouc-tests: Likewise.
11507         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11508         * modules/unistr/u8-mbtoucr-tests: Likewise.
11509         * modules/unistr/u8-move-tests: Likewise.
11510         * modules/unistr/u8-next-tests: Likewise.
11511         * modules/unistr/u8-prev-tests: Likewise.
11512         * modules/unistr/u8-set-tests: Likewise.
11513         * modules/unistr/u8-stpcpy-tests: Likewise.
11514         * modules/unistr/u8-stpncpy-tests: Likewise.
11515         * modules/unistr/u8-strcat-tests: Likewise.
11516         * modules/unistr/u8-strcmp-tests: Likewise.
11517         * modules/unistr/u8-strcoll-tests: Likewise.
11518         * modules/unistr/u8-strcpy-tests: Likewise.
11519         * modules/unistr/u8-strdup-tests: Likewise.
11520         * modules/unistr/u8-strlen-tests: Likewise.
11521         * modules/unistr/u8-strmblen-tests: Likewise.
11522         * modules/unistr/u8-strmbtouc-tests: Likewise.
11523         * modules/unistr/u8-strncat-tests: Likewise.
11524         * modules/unistr/u8-strncmp-tests: Likewise.
11525         * modules/unistr/u8-strncpy-tests: Likewise.
11526         * modules/unistr/u8-strnlen-tests: Likewise.
11527         * modules/unistr/u8-to-u16-tests: Likewise.
11528         * modules/unistr/u8-to-u32-tests: Likewise.
11529         * modules/unistr/u8-uctomb-tests: Likewise.
11530         * modules/unistr/u16-check-tests: Likewise.
11531         * modules/unistr/u16-chr-tests: Likewise.
11532         * modules/unistr/u16-cmp-tests: Likewise.
11533         * modules/unistr/u16-cmp2-tests: Likewise.
11534         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11535         * modules/unistr/u16-cpy-tests: Likewise.
11536         * modules/unistr/u16-mblen-tests: Likewise.
11537         * modules/unistr/u16-mbsnlen-tests: Likewise.
11538         * modules/unistr/u16-mbtouc-tests: Likewise.
11539         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11540         * modules/unistr/u16-mbtoucr-tests: Likewise.
11541         * modules/unistr/u16-move-tests: Likewise.
11542         * modules/unistr/u16-next-tests: Likewise.
11543         * modules/unistr/u16-prev-tests: Likewise.
11544         * modules/unistr/u16-set-tests: Likewise.
11545         * modules/unistr/u16-stpcpy-tests: Likewise.
11546         * modules/unistr/u16-stpncpy-tests: Likewise.
11547         * modules/unistr/u16-strcat-tests: Likewise.
11548         * modules/unistr/u16-strcmp-tests: Likewise.
11549         * modules/unistr/u16-strcoll-tests: Likewise.
11550         * modules/unistr/u16-strcpy-tests: Likewise.
11551         * modules/unistr/u16-strdup-tests: Likewise.
11552         * modules/unistr/u16-strlen-tests: Likewise.
11553         * modules/unistr/u16-strmblen-tests: Likewise.
11554         * modules/unistr/u16-strmbtouc-tests: Likewise.
11555         * modules/unistr/u16-strncat-tests: Likewise.
11556         * modules/unistr/u16-strncmp-tests: Likewise.
11557         * modules/unistr/u16-strncpy-tests: Likewise.
11558         * modules/unistr/u16-strnlen-tests: Likewise.
11559         * modules/unistr/u16-to-u32-tests: Likewise.
11560         * modules/unistr/u16-to-u8-tests: Likewise.
11561         * modules/unistr/u16-uctomb-tests: Likewise.
11562         * modules/unistr/u32-check-tests: Likewise.
11563         * modules/unistr/u32-chr-tests: Likewise.
11564         * modules/unistr/u32-cmp-tests: Likewise.
11565         * modules/unistr/u32-cmp2-tests: Likewise.
11566         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11567         * modules/unistr/u32-cpy-tests: Likewise.
11568         * modules/unistr/u32-mblen-tests: Likewise.
11569         * modules/unistr/u32-mbsnlen-tests: Likewise.
11570         * modules/unistr/u32-mbtouc-tests: Likewise.
11571         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11572         * modules/unistr/u32-mbtoucr-tests: Likewise.
11573         * modules/unistr/u32-move-tests: Likewise.
11574         * modules/unistr/u32-next-tests: Likewise.
11575         * modules/unistr/u32-prev-tests: Likewise.
11576         * modules/unistr/u32-set-tests: Likewise.
11577         * modules/unistr/u32-stpcpy-tests: Likewise.
11578         * modules/unistr/u32-stpncpy-tests: Likewise.
11579         * modules/unistr/u32-strcat-tests: Likewise.
11580         * modules/unistr/u32-strcmp-tests: Likewise.
11581         * modules/unistr/u32-strcoll-tests: Likewise.
11582         * modules/unistr/u32-strcpy-tests: Likewise.
11583         * modules/unistr/u32-strdup-tests: Likewise.
11584         * modules/unistr/u32-strlen-tests: Likewise.
11585         * modules/unistr/u32-strmblen-tests: Likewise.
11586         * modules/unistr/u32-strmbtouc-tests: Likewise.
11587         * modules/unistr/u32-strncat-tests: Likewise.
11588         * modules/unistr/u32-strncmp-tests: Likewise.
11589         * modules/unistr/u32-strncpy-tests: Likewise.
11590         * modules/unistr/u32-strnlen-tests: Likewise.
11591         * modules/unistr/u32-to-u16-tests: Likewise.
11592         * modules/unistr/u32-to-u8-tests: Likewise.
11593         * modules/unistr/u32-uctomb-tests: Likewise.
11594         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11595         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11596         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11597         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11598         * modules/uniwidth/u8-strwidth-tests: Likewise.
11599         * modules/uniwidth/u8-width-tests: Likewise.
11600         * modules/uniwidth/u16-strwidth-tests: Likewise.
11601         * modules/uniwidth/u16-width-tests: Likewise.
11602         * modules/uniwidth/u32-strwidth-tests: Likewise.
11603         * modules/uniwidth/u32-width-tests: Likewise.
11604         * modules/uniwidth/width-tests: Likewise.
11605
11606 2010-05-18  Richard Jones  <rjones@redhat.com>
11607
11608         doc: users.txt: list hivex
11609         * users.txt: Add hivex.
11610
11611 2010-05-18  Richard Jones  <rjones@redhat.com>
11612
11613         doc: users.txt: list febootstrap
11614         * users.txt: Add febootstrap.
11615
11616 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11617
11618         bootstrap: fix an error when gnulib is not used as a git submodule
11619         * build-aux/bootstrap (gnulib_path): If its length is zero then
11620         assign "gnulib" to it.
11621         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11622
11623 2010-05-16  Bruno Haible  <bruno@clisp.org>
11624
11625         Avoid autoconf warnings about AM_ICONV.
11626         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11627         2.64.
11628
11629 2010-05-16  Bruno Haible  <bruno@clisp.org>
11630
11631         absolute-header: Make the macro usable in more situations.
11632         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11633         from gl_ABSOLUTE_HEADER.
11634         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11635
11636 2010-05-16  James Youngman  <jay@gnu.org>
11637
11638         doc: update users.txt
11639         * users.txt: Add CSSC.
11640
11641 2010-05-16  Jim Meyering  <meyering@redhat.com>
11642
11643         init.sh: fix an error in the previous change; add more comments
11644         * tests/init.sh: Compare exit code in loop against 9, not 2.
11645         Patch by Bruno Haible.
11646         Make the two tests more similar by adding an empty "then" clause.
11647         Add comments.
11648
11649         init.sh: avoid unnecessary shell re-exec
11650         * tests/init.sh: Improve the re-exec-required check to first test the
11651         current shell.  If it passes the test, do not search for a shell that
11652         does pass, and do not re-exec.  This test is particularly contorted to
11653         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11654         of $(...) evokes a syntax error and causes immediate shell exit with
11655         status 2.  Bruno Haible reported that the re-exec made it impossible
11656         to single-step through any init.sh-using script.
11657
11658 2010-05-16  Bruno Haible  <bruno@clisp.org>
11659
11660         Fix collision between gnulib's and libintl's printf replacements.
11661         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11662         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11663         (printf): When using GNU C, map the __printf__ function to rpl_printf
11664         via __asm__. When not using GNU C, define rpl_printf instead of
11665         __printf__.
11666         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11667         commit.
11668         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11669         commit.
11670         * m4/asm-underscore.m4: New file.
11671         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11672         * modules/stdio (Files): Add m4/asm-underscore.m4.
11673         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11674         Reported by Ben Pfaff.
11675
11676 2010-05-16  Bruno Haible  <bruno@clisp.org>
11677
11678         verify: Avoid skipping the test on openSUSE 11.0.
11679         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11680
11681 2010-05-13  Bruno Haible  <bruno@clisp.org>
11682
11683         Avoid useless warnings from G++.
11684         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11685         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11686         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11687
11688 2010-05-11  Jim Meyering  <meyering@redhat.com>
11689
11690         maint.mk: tweak preceding change
11691         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11692         regexps tighter by anchoring at EOL, and make the new group "shy"
11693         for slightly decreased overhead.
11694
11695 2010-05-11  Eric Blake  <eblake@redhat.com>
11696
11697         maint.mk: gnulib doesn't guarantee NSIG
11698         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11699
11700 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11701
11702         test-pwrite.c: Remove unused variable declaration.
11703         * tests/test-pwrite.c (main): Remove read_buf declaration.
11704
11705         Remove useless test-pwrite.sh file.
11706         * tests/test-pwrite.sh: Delete file.
11707         * modules/pwrite-tests: Remove references.
11708         Reported by Bruno Haible.
11709
11710 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11711
11712         init.sh: fix a typo
11713         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11714
11715 2010-05-10  Jim Meyering  <meyering@redhat.com>
11716
11717         maint.mk: avoid using a temporary file in the always-defined-macros check
11718         * top/maint.mk (.re-defmac): Remove rule.
11719         (gl_trap_): Remove definition.
11720         (sc_prohibit_always-defined_macros): Rewrite not to create and
11721         depend on a temporary file.  Instead, depend on GNU grep's ability
11722         to read a list of regular expressions from stdin when given "-f -".
11723
11724 2010-05-09  Bruno Haible  <bruno@clisp.org>
11725
11726         Update to GNU gettext 0.18, part 1.
11727         * m4/gettext.m4: Update to GNU gettext 0.18.
11728         * m4/intl.m4: Likewise.
11729         * m4/po.m4: Likewise.
11730         * modules/gettext (Files): Add m4/fcntl-o.m4.
11731         (configure.ac): Require gettext infrastructure from version 0.18.
11732
11733 2010-05-09  Jim Meyering  <meyering@redhat.com>
11734
11735         init.sh: enable MALLOC_PERTURB_
11736         * tests/init.sh: Enable glibc's malloc-perturbing option.
11737
11738         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11739         With my recent change in init.sh from the two-line form:
11740             -#   : ${srcdir=.}
11741             -#   . "$srcdir/init.sh"; path_prepend_ .
11742             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11743         I noticed that using the one-line form would cause this test
11744         to fail with a false-positive, or to stop working altogether,
11745         depending on whether help-version changed or all the tests did.
11746         * top/maint.mk (_hv_regex): Remove this definition.
11747         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11748         (_hv_regex_strong): Use a stronger regex to check for conformance.
11749         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11750         Give a separate diagnostic for lack of conforming use.
11751
11752         maint.mk: prohibit definition of symbols defined by gnulib
11753         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11754         definition of symbols defined by gnulib.
11755
11756 2010-05-09  Bruno Haible  <bruno@clisp.org>
11757
11758         acl: Avoid test failure on Cygwin-hosted mingw.
11759         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11760
11761 2010-05-09  Bruno Haible  <bruno@clisp.org>
11762
11763         error: Use system's fcntl function.
11764         * lib/error.c (fcntl): Undefine.
11765
11766 2010-05-09  Jim Meyering  <meyering@redhat.com>
11767
11768         verify: adjust formatting to be more consistent
11769         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11770         argument-list '('s, and after one comma.
11771
11772 2010-05-09  Bruno Haible  <bruno@clisp.org>
11773
11774         error: More reliable output on mingw.
11775         * lib/error.c: Include <windows.h>.
11776         (is_open): New function.
11777         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11778         defined.
11779
11780 2010-05-09  Bruno Haible  <bruno@clisp.org>
11781
11782         vasnprintf: Fix syntax errors in libintl build on mingw.
11783         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11784         pad_ourselves and prec_ourselves after use.
11785
11786 2010-05-08  Bruno Haible  <bruno@clisp.org>
11787
11788         * lib/config.charset: Update comments for Cygwin 1.7.
11789         * lib/localcharset.c: Likewise.
11790
11791 2010-05-07  Jim Meyering  <meyering@redhat.com>
11792
11793         init.sh: improve comments
11794         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11795         . "${srcdir=.}/init.sh"; path_prepend_ .
11796         Add a note about path_prepend_ and the alternative of using
11797         TESTS_ENVIRONMENT.
11798
11799 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11800
11801         exclude: Unescape hashed patterns in wildcard mode.
11802         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11803         to the hash list.
11804         * tests/test-exclude8.sh: New test case.
11805         * modules/exclude-tests: Add new test.
11806
11807 2010-05-05  Eric Blake  <eblake@redhat.com>
11808
11809         verify: automate tests
11810         * modules/verify-tests: New module.
11811         * tests/test-verify.sh: New file.
11812         * tests/test-verify.c: Guard each negative test with a unique id.
11813         Also avoid warning about unused left hand of comma expressions.
11814
11815 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11816
11817         Further improvements to verify.h, suggested by Eric Blake.
11818         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11819         the GL_* versions, to avoid collision with OpenGL.
11820         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11821         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11822         than testing merely whether it's defined.
11823
11824         Modify verify.h to pacify gcc -Wredundant_decls.
11825         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11826         These use the prefix "GL_" since they're likely to be useful elsewhere.
11827         We may need to break them out into a different .h file.
11828         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11829         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11830         of verify_function__.
11831
11832 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11833
11834         Tests for module pwrite.
11835         * modules/pwrite-tests: New file.
11836         * tests/test-pwrite.sh: New file.
11837         * tests/test-pwrite.c: New file.
11838
11839         New module pwrite.
11840         * lib/unistd.in.h (pwrite): New declaration.
11841         * lib/pwrite.c: New file, from glibc with modifications.
11842         * m4/pwrite.m4: New file.
11843         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11844         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11845         REPLACE_PWRITE.
11846         * modules/pwrite: New file.
11847         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11848         REPLACE_PWRITE.
11849         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11850         * doc/posix-functions/pwrite.texi: Mention the new module.
11851
11852 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11853
11854         pread: Update documentation.
11855         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11856
11857 2010-05-04  Eric Blake  <eblake@redhat.com>
11858
11859         docs: update cygwin progress
11860         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11861         this bug.
11862         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11863         Added in cygwin 1.7.2.
11864         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11865         Likewise.
11866         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11867         Likewise.
11868         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11869         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11870         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11871         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11872         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11873         Mention nproc module.
11874         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11875         bug in cygwin 1.7.5 addition.
11876         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11877         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11878         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11879         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11880         1.7.5.
11881         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11882         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11883         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11884         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11885         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11886         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11887         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11888         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11889         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11890         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11891         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11892         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11893         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11894         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11895         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11896         Likewise.
11897         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11898         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11899         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11900         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11901         Likewise.
11902         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11903         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11904         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11905         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11906         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11907         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11908         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11909         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11910         Likewise.
11911         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11912         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11913         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11914         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11915         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11916         Likewise.
11917         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11918         Likewise.
11919         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11920         Likewise.
11921         * doc/glibc-functions/xdrrec_endofrecord.texi
11922         (xdrrec_endofrecord): Likewise.
11923         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11924         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11925         Likewise.
11926         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11927         Likewise.
11928
11929 2010-05-04  Jim Meyering  <meyering@redhat.com>
11930
11931         gendocs.sh: make its "-s FILE" option more useful
11932         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11933         $PACKAGE to reflect the probably-different basename of "FILE".
11934
11935 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11936
11937         bootstrap: don't ignore download_po_files failure
11938         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11939         failure.
11940
11941 2010-05-03  Jim Meyering  <meyering@redhat.com>
11942
11943         maint.mk: allow to pass options to gendocs.sh
11944         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11945         (gendocs_options_): New overridable variable.
11946
11947         gnu-web-doc-update: don't ignore configure or build failure
11948         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11949
11950         announce-gen: backslash-escape '@'s in --help output
11951         * build-aux/announce-gen: Fix syntax errors.
11952
11953         maint.mk, announce-gen: allow project-specific announcement mail headers
11954         * top/maint.mk (translation_project_): Define default.
11955         (announcement_Cc_, announcement_mail_headers_): Likewise.
11956         (announcement): Invoke announce-gen with new --mail-headers option.
11957         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11958
11959         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11960         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11961         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11962         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11963         line in the "err2" output file when running "make check" in verbose
11964         mode (i.e., with set -x enabled).
11965
11966 2010-05-03  Bruno Haible  <bruno@clisp.org>
11967
11968         wctob: Fix for weird platforms.
11969         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11970         argument value.
11971
11972 2010-05-03  Jim Meyering  <meyering@redhat.com>
11973
11974         maint.mk: prohibit unwarranted use of <strings.h>
11975         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11976         strings.h in a file that does not also use strcasecmp, strncasecmp,
11977         ffs or ffsll.
11978
11979         maint.mk: remove obsolete comments
11980         * top/maint.mk: Remove stale, commented-out rules.
11981
11982 2010-05-02  Bruno Haible  <bruno@clisp.org>
11983
11984         wcwidth: Declare also when it's aliased.
11985         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11986         macro.
11987
11988 2010-05-02  Bruno Haible  <bruno@clisp.org>
11989
11990         Fix regression from 2010-04-25.
11991         * gnulib-tool (func_modules_transitive_closure): Check the status of
11992         all modules, not only of the tests that are of the form foo-tests where
11993         foo is a module.
11994
11995 2010-05-02  Bruno Haible  <bruno@clisp.org>
11996
11997         wctob: Work around nasty Cygwin 1.7.2 bug.
11998         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11999         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12000
12001 2010-05-01  Bruno Haible  <bruno@clisp.org>
12002
12003         fpurge: Sharper test.
12004         * tests/test-fpurge.c (main): Add one more ftell check.
12005         * modules/fpurge-tests (Depends-on): Add ftell.
12006         Suggested by Eric Blake.
12007
12008 2010-05-01  Bruno Haible  <bruno@clisp.org>
12009
12010         ftello: Another test.
12011         * tests/test-ftello3.c: New file.
12012         * modules/ftello-tests (Files): Add it.
12013         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12014         MOSTLYCLEANFILES.
12015
12016         ftell: Another test.
12017         * tests/test-ftell3.c: New file.
12018         * modules/ftell-tests (Files): Add it.
12019         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12020         MOSTLYCLEANFILES.
12021
12022 2010-05-01  Bruno Haible  <bruno@clisp.org>
12023
12024         ftell, ftello: Work around Solaris bug.
12025         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12026         * lib/ftello.c: Include stdio-impl.h.
12027         (ftello): On Solaris, when _IOWRT is set, compute the result without
12028         looking at _IOREAD.
12029         * modules/ftello (Files): Add lib/stdio-impl.h.
12030         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12031         * doc/posix-functions/ftello.texi: Likewise.
12032         Reported by Eric Blake.
12033
12034 2010-05-01  Bruno Haible  <bruno@clisp.org>
12035
12036         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12037         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12038         the _IOWRT flag is also set.
12039
12040 2010-05-01  Bruno Haible  <bruno@clisp.org>
12041
12042         Fix doc about a HP-UX stdio bug.
12043         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12044         * doc/posix-functions/ftello.texi: Likewise.
12045
12046 2010-05-01  Bruno Haible  <bruno@clisp.org>
12047
12048         lseek test: Fix failure on Solaris.
12049         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12050         output.
12051
12052 2010-04-30  Jim Meyering  <meyering@redhat.com>
12053
12054         bootstrap: don't ignore failure to generate po*/Makevars
12055         * build-aux/bootstrap (with_gettext): Don't ignore failure
12056         to create po/Makevars or runtime-po/Makevars.
12057
12058 2010-04-29  Eric Blake  <eblake@redhat.com>
12059
12060         headers: relax license to LGPLv2+
12061         * modules/fcntl-h (License): Relax license.
12062         * modules/getopt-posix (License): Likewise.
12063         * modules/locale (License): Likewise.
12064         * modules/math (License): Likewise.
12065         * modules/pty (License): Likewise.
12066         * modules/sched (License): Likewise.
12067         * modules/search (License): Likewise.
12068         * modules/spawn (License): Likewise.
12069         * modules/stdarg (License): Likewise.
12070         * modules/sysexits (License): Likewise.
12071
12072 2010-04-29  Jim Meyering  <meyering@redhat.com>
12073
12074         inttypes: relax license to LGPLv2+
12075         * modules/inttypes (License): Relax license.
12076
12077 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12078
12079         * top/maint.mk (indent): Run twice to produce idempotent results.
12080
12081 2010-04-28  Bruno Haible  <bruno@clisp.org>
12082
12083         getdate: Generate getdate.c in the source directory.
12084         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12085         MOSTLYCLEANFILES.
12086         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12087
12088 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12089
12090         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12091         is not declared as a const *; avoid warnings in that case.
12092
12093 2010-04-28  Eric Blake  <eblake@redhat.com>
12094
12095         canonicalize-lgpl: avoid compiler warning
12096         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12097         declaration' / 'extraneous semicolon' warning with some compilers.
12098         Reported by Andreas Gruenbacher.
12099
12100 2010-04-28  Jim Meyering  <meyering@redhat.com>
12101
12102         init.sh: ensure a more reliable exit status when exiting via trap
12103         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12104         Inspired by patches from Dmitry V. Levin.
12105         Also trap on signal 3 (SIGQUIT).
12106
12107 2010-04-27  Bruno Haible  <bruno@clisp.org>
12108
12109         Update doc about utimes().
12110         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12111         'utimens' module.
12112         Reported by Andreas Gruenbacher <agruen@suse.de>.
12113
12114 2010-04-27  Eric Blake  <eblake@redhat.com>
12115
12116         full-read, full-write: relax license
12117         * modules/full-read (License): Drop to LGPLv2+.
12118         * modules/full-write (License): Likewise.
12119         * modules/safe-read (License): Likewise.
12120         * modules/safe-write (License): Likewise.
12121
12122         pthread: mention library for linking
12123         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12124
12125 2010-04-27  Jim Meyering  <meyering@redhat.com>
12126
12127         maint.mk: fix a bug introduced in last change
12128         * top/maint.mk (gl_assured_headers_): Now that all names are on
12129         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12130         is not anchored to end of word, it should be adequate.
12131
12132         maint.mk: avoid side-effect in latest syntax-check
12133         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12134         to run commands via $(shell...), and hence to incur cost only when
12135         the new rule is actually run.
12136
12137         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12138         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12139         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12140         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12141         (gl_assured_headers_, az_, AZ_): Define.
12142         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12143
12144 2010-04-26  Jim Meyering  <jim@meyering.net>
12145             Bruno Haible  <bruno@clisp.org>
12146
12147         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12148         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12149         Prompted by an exchange with Gilles Espinasse.
12150
12151 2010-04-26  Jim Meyering  <meyering@redhat.com>
12152
12153         git-version-gen: aesthetic tweak
12154         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12155         so that the command remains on a single line.
12156
12157 2010-04-26  Eric Blake  <eblake@redhat.com>
12158
12159         git-version-gen: allow use on EBCDIC hosts
12160         * build-aux/git-version-gen (dirty): Use literal rather than tying
12161         ourselves to ascii.
12162         Reported by Steve Goetze.
12163
12164 2010-04-25  Bruno Haible  <bruno@clisp.org>
12165
12166         netdb: Add support for GNULIB_POSIXCHECK.
12167         * lib/netdb.in.h: Include warn-on-use.h.
12168         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12169         functions are used when GNULIB_POSIXCHECK is defined and the
12170         getaddrinfo module is not in use.
12171         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12172         freeaddrinfo, gai_strerror, getnameinfo are declared.
12173         * modules/netdb (Depends-on): Add warn-on-use.
12174         (Makefile.am): Include warn-on-use.h in netdb.h.
12175
12176 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12177
12178         build: avoid "make check" failure without .git/ directory
12179         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12180         there is no .git/ directory.
12181
12182 2010-04-25  Bruno Haible  <bruno@clisp.org>
12183
12184         ptsname: Fix misuse of ttyname_r.
12185         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12186         of errno.
12187
12188 2010-04-25  Bruno Haible  <bruno@clisp.org>
12189
12190         ttyname_r: Make it work on Solaris 10.
12191         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12192         if the system function has the POSIX declaration. Test whether the
12193         function fails if the buffer is less than 128 bytes large.
12194         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12195         system's ttyname_r function. Provide a reasonably large buffer.
12196         * modules/ttyname_r (Depends-on): Add extensions.
12197         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12198
12199 2010-04-25  Bruno Haible  <bruno@clisp.org>
12200
12201         Use the 'extensions' module for some more functions on Solaris.
12202         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12203         module.
12204         * doc/posix-functions/ctime_r.texi: Likewise.
12205         * doc/posix-functions/getgrgid_r.texi: Likewise.
12206         * doc/posix-functions/getgrnam_r.texi: Likewise.
12207         * doc/posix-functions/getpwnam_r.texi: Likewise.
12208         * doc/posix-functions/getpwuid_r.texi: Likewise.
12209         * doc/posix-functions/readdir_r.texi: Likewise.
12210         * doc/posix-functions/sigwait.texi: Likewise.
12211         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12212         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12213
12214 2010-04-25  Bruno Haible  <bruno@clisp.org>
12215
12216         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12217         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12218         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12219         * lib/ttyname_r.c: Include <limits.h>.
12220         (ttyname_r): Define using the system's ttyname_r function, if it exists
12221         and not on Solaris.
12222         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12223         set.
12224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12225         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12226         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12227         Reported by Simon Josefsson.
12228
12229 2010-04-25  Bruno Haible  <bruno@clisp.org>
12230
12231         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12232         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12233         * doc/posix-functions/ctime_r.texi: Likewise.
12234         * doc/posix-functions/getgrgid_r.texi: Likewise.
12235         * doc/posix-functions/getgrnam_r.texi: Likewise.
12236         * doc/posix-functions/getlogin_r.texi: Likewise.
12237         * doc/posix-functions/getpwnam_r.texi: Likewise.
12238         * doc/posix-functions/getpwuid_r.texi: Likewise.
12239         * doc/posix-functions/readdir_r.texi: Likewise.
12240         * doc/posix-functions/sigwait.texi: Likewise.
12241         * doc/posix-functions/ttyname_r.texi: Likewise.
12242         Reported by Simon Josefsson.
12243
12244 2010-04-25  Bruno Haible  <bruno@clisp.org>
12245
12246         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12247         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12248         also to --create-testdir.
12249         (func_acceptable): Don't consider the status of *-tests modules here.
12250         (func_modules_transitive_closure): Consider it here, before including a
12251         test module.
12252         (func_import, func_create_testdir): Set inc_all_direct_tests,
12253         inc_all_indirect_tests.
12254         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12255         --create-testdir and --create-megatestdir.
12256
12257 2010-04-25  Bruno Haible  <bruno@clisp.org>
12258
12259         gnulib-tool: Add --without-*-tests options.
12260         * gnulib-tool (func_usage): Document the --without-*-tests options.
12261         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12262         excl_unportable_tests): New variables.
12263         Fail if they are specified with --import or --update.
12264         (func_acceptable): Respect the excl_*_tests variables.
12265         (func_import): Set the excl_*_tests variables to empty.
12266
12267 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12268             Bruno Haible  <bruno@clisp.org>
12269
12270         Work around a MacOS X 10.4 bug with openpty.
12271         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12272         * tests/test-openpty.c (main): Close the master side explicitly.
12273
12274 2010-04-25  Bruno Haible  <bruno@clisp.org>
12275
12276         strnlen: Fix a C++ test error on MacOS X and Solaris.
12277         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12278         the function is not declared.
12279         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12280         Simon Josefsson.
12281
12282 2010-04-24  Bruno Haible  <bruno@clisp.org>
12283
12284         Avoid a gcc warning.
12285         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12286         of correct type for %08lx directive.
12287         Reported by Eric Blake.
12288
12289 2010-04-24  Bruno Haible  <bruno@clisp.org>
12290
12291         vasnprintf: Correct errno value in case of out-of-memory.
12292         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12293         or sprintf. Use the errno value from SNPRINTF or sprintf.
12294         Reported by Ian Beckwith <ianb@erislabs.net>.
12295
12296 2010-04-24  Bruno Haible  <bruno@clisp.org>
12297
12298         ansi-c++-opt: Find correct compiler when cross-compiling.
12299         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12300         AC_CHECK_PROGS.
12301         Reported by Simon Josefsson.
12302
12303 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12304
12305         vc-list-files: Add support for subversion
12306         * build-aux/vc-list-files: Use "svn list" to generate the list of
12307         files controlled by subversion.
12308
12309 2010-04-23  Jim Meyering  <meyering@redhat.com>
12310
12311         vc-list-files tests: convert to use init.sh
12312         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12313         path_prepend_.
12314         Use Exit, not exit.
12315         Use skip_ rather than open coding it.
12316         Remove trap set-up and compare definitions.
12317         * tests/test-vc-list-files-git.sh: Likewise.
12318         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12319
12320 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12321
12322         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12323         backup files.
12324
12325 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12326
12327         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12328
12329 2010-04-20  Eric Blake  <eblake@redhat.com>
12330
12331         tests: be robust to ignored SIGPIPE
12332         * tests/test-select-in.sh: Consume all output.
12333         * tests/test-lseek.sh: Check correct exit status, while avoiding
12334         EPIPE.
12335
12336 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12337             Bruno Haible  <bruno@clisp.org>
12338
12339         visibility: Don't use -fvisibility if it leads to a warning.
12340         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12341         yes, don't pretend that visibility works if it leads to a warning.
12342         Reported by Mike Gran <spk121@yahoo.com>.
12343
12344 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12345
12346         * build-aux/bootstrap: Use "git -h" for testing for supported options
12347         instead of "git --help".  The short-form option only shows a summary,
12348         and doesn't layout the full man page.  Grep for the full option name
12349         in the summary, too.
12350
12351 2010-04-19  Bruno Haible  <bruno@clisp.org>
12352
12353         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12354         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12355         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12356         mention of RELOCATABLE_STRIP.
12357         Reported by Sylvain Beucler <beuc@beuc.net>.
12358
12359 2010-04-19  Bruno Haible  <bruno@clisp.org>
12360
12361         * lib/diffseq.h: Fix typo in comment.
12362         Reported by Eric Blake.
12363
12364 2010-04-19  Bruno Haible  <bruno@clisp.org>
12365
12366         ioctl: Move autoconf macro to a .m4 file.
12367         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12368         * modules/ioctl (Files): Add it.
12369         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12370         Reported by Ian Beckwith <ianb@erislabs.net>.
12371
12372 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12373             Bruno Haible  <bruno@clisp.org>
12374
12375         diffseq: Accommodate use-case with abstract arrays.
12376         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12377         is not defined.
12378         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12379         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12380
12381 2010-04-18  Bruno Haible  <bruno@clisp.org>
12382
12383         * doc/posix-headers/stdbool.texi: More precise wording.
12384
12385 2010-04-17  Jim Meyering  <meyering@redhat.com>
12386
12387         maint.mk: use gnu-style indentation in an embedded perl script
12388         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12389         Rename variable: s/two/last_two_bytes/
12390
12391 2010-04-16  Eric Blake  <eblake@redhat.com>
12392
12393         test-stdbool: skip test that fails with Solaris CC
12394         * tests/test-stdbool.c (f): Skip test that causes compilation
12395         error under buggy C++ compiler.
12396         * lib/stdbool.in.h: Document the limitation.
12397         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12398
12399         setenv: allow compilation with C++
12400         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12401         register keyword.
12402
12403         stdint: allow test to pass with C++
12404         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12405
12406         getopt: allow compilation with C++
12407         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12408         struct.
12409         * lib/getopt.c (_getopt_internal_r): Use correct type.
12410         Reported by Dagobert Michelson, via Joel E. Denny.
12411
12412 2010-04-16  Bruno Haible  <bruno@clisp.org>
12413
12414         Override netdb.h always.
12415         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12416         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12417         Reported by Ludovic Courtès <ludo@gnu.org>.
12418
12419 2010-04-15  Bruno Haible  <bruno@clisp.org>
12420
12421         openpty: Fix mistake from 2010-03-21.
12422         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12423         Reported by Simon Josefsson.
12424
12425 2010-04-15  Eric Blake  <eblake@redhat.com>
12426
12427         test-forkpty: fix expected signature
12428         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12429         Reported by Simon Josefsson.
12430
12431 2010-04-15  Jim Meyering  <meyering@redhat.com>
12432
12433         maint.mk: texinfo_suffix_re_: correct the default regexp
12434         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12435
12436         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12437         make it configurable via texinfo_suffix_re_.
12438
12439 2010-04-14  Eric Blake  <eblake@redhat.com>
12440
12441         strtok_r: relax license to LGPLv2+
12442         * modules/strtok_r (License): Relax license.
12443         Reported by Matthias Bolte.
12444
12445 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12446
12447         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12448         version 1.4.4 by default instead of requiring the libgcrypt
12449         version used during build.  This makes it possible to use the
12450         application with older but still binary compatible libgcrypt
12451         versions.
12452
12453 2010-04-13  Eric Blake  <eblake@redhat.com>
12454
12455         getopt-gnu: match recent glibc fixes and posix ruling
12456         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12457         '+' handling, when requesting extensions.
12458         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12459         'W;' handling.
12460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12461         * doc/posix-functions/getopt.texi (getopt): Document this.
12462         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12463         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12464         Likewise.
12465
12466         getopt: merge bug fixes from glibc
12467         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12468         diagnostics.  Honor '+:' correctly.  Reject ';'.
12469
12470         getopt-posix: detect MacOS bug
12471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12472         optind when missing a required argument.
12473         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12474         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12475         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12476         Likewise.
12477
12478         getopt-posix: avoid spurious failure on Solaris
12479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12480         an indicator that setting optind=1 is sufficient for reset.
12481
12482         getopt-posix: avoid spurious failure on FreeBSD
12483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12484         in POSIX mode, since the m4 test uses it.
12485
12486         gnulib-tool: silence warning on BSD sh
12487         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12488
12489 2010-04-13  Jim Meyering  <meyering@redhat.com>
12490
12491         doc: users.txt: GNU patch now uses gnulib
12492         * users.txt: Add patch.
12493
12494 2010-04-12  Jim Meyering  <meyering@redhat.com>
12495
12496         maint.mk: generate more concise timing data for syntax-check rules
12497         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12498         " done" from each line that reports a syntax-check test duration.
12499
12500 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12501
12502         git-version-gen: use "git update-index..." rather than "git status"
12503         * build-aux/git-version-gen: Use git update-index --refresh, not
12504         "git status".  With some versions of git, "git status" would fail
12505         to update the index and result in an unwarranted "-dirty" suffix.
12506
12507 2010-04-11  Jim Meyering  <meyering@redhat.com>
12508
12509         openat: correct formatting (no semantic change)
12510         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12511         Suggested by Bruno Haible.
12512
12513 2010-04-11  Bruno Haible  <bruno@clisp.org>
12514
12515         Stricter declaration checking in testdirs.
12516         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12517         If for_tests is true, augment AM_CPPFLAGS to define
12518         GNULIB_STRICT_CHECKING.
12519         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12520         GNULIB_STRICT_CHECKING is defined, verify that the function is
12521         declared.
12522
12523 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12524             Bruno Haible  <bruno@clisp.org>
12525
12526         libunistring: Improve configure output.
12527         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12528         Don't say "consider installing GNU libunistring" when checking again
12529         with libiconv.
12530
12531 2010-04-11  Bruno Haible  <bruno@clisp.org>
12532
12533         libunistring: Correct value of $LTLIBUNISTRING.
12534         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12535         correct the value of $LTLIBUNISTRING.
12536
12537 2010-04-11  Bruno Haible  <bruno@clisp.org>
12538
12539         havelib: Add static libraries to LIBS in the right order.
12540         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12541         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12542
12543 2010-04-11  Bruno Haible  <bruno@clisp.org>
12544
12545         libunistring: Detect libunistring also when it depends on libiconv.
12546         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12547         the second AC_LIB_HAVE_LINKFLAGS invocation.
12548
12549 2010-04-11  James Youngman  <jay@gnu.org>
12550
12551         close-stream: declare local scalars to be "const"
12552         * lib/close-stream.c (close_stream): Make boolean variables const
12553         to document the fact that we set but do not change them.
12554
12555 2010-04-11  Bruno Haible  <bruno@clisp.org>
12556
12557         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12558
12559 2010-04-11  Jim Meyering  <meyering@redhat.com>
12560
12561         maint.mk: don't include dist-check.mk
12562         * top/maint.mk: Remove bogus include directive.
12563
12564         maint.mk: improve empty-line-at-EOF check
12565         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12566         solution, rather than tail+Perl-based one.  The latter would read
12567         a few kilobytes from the end of each file, and did not handle empty
12568         files properly.
12569
12570         maint.mk: print the elapsed time for each syntax-check rule
12571         * top/maint.mk (sc_m_rules_): Save start time in a file.
12572         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12573         (local-check): Interpose the .z rules
12574
12575 2010-04-11  Jim Meyering  <meyering@redhat.com>
12576
12577         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12578         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12579         empty file with one that ends in an empty line.
12580
12581 2010-04-10  Bruno Haible  <bruno@clisp.org>
12582
12583         mkdir: Make it work on mingw64.
12584         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12585         * lib/mkdir.c: Update comment.
12586         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12587
12588 2010-04-10  Bruno Haible  <bruno@clisp.org>
12589
12590         Don't override improved macro from newer autoconf.
12591         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12592         autoconf >= 2.62.
12593         Reported by Joel E. Denny <jdenny@clemson.edu>.
12594
12595 2010-04-10  Jim Meyering  <meyering@redhat.com>
12596
12597         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12598         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12599
12600         maint.mk: correct a diagnostic
12601         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12602         in diagnostic; now use $prohibit.
12603
12604 2010-04-10  Bruno Haible  <address@hidden>
12605
12606         fchownat: Fix a C++ test error on Solaris 8.
12607         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12608         the function does not exist.
12609
12610 2010-04-10  Bruno Haible  <bruno@clisp.org>
12611
12612         vasnprintf: Add more tests.
12613         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12614         (test_function): Test converting an invalid wide string.
12615
12616         vasnprintf: Correct handling of unconvertible wide string arguments.
12617         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12618         VASNPRINTF.
12619         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12620         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12621         smaller than the expected maximum need for the directive. Set errno to
12622         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12623         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12625         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12626         * modules/vasnprintf (Files): Add m4/printf.m4.
12627         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12628
12629 2010-04-10  Bruno Haible  <bruno@clisp.org>
12630
12631         vasnprintf: Fix crash in %ls directive.
12632         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12633         string is passed as argument to %ls, with no precision and no width.
12634         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12635
12636 2010-04-10  Bruno Haible  <bruno@clisp.org>
12637
12638         vasnprintf: Fix multiple test failures on mingw.
12639         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12640         _snprintf, or snwprintf, not _snwprintf.
12641
12642 2010-04-10  Bruno Haible  <bruno@clisp.org>
12643
12644         write: Fix a C++ test error on mingw.
12645         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12646
12647 2010-04-10  Bruno Haible  <bruno@clisp.org>
12648
12649         vasnprintf test: Reduce code duplication.
12650         * tests/test-vasnprintf.c (test_function): New function, extracted from
12651         test_vasnprintf.
12652         (test_vasnprintf, test_asnprintf): Invoke it.
12653
12654 2010-04-10  Bruno Haible  <bruno@clisp.org>
12655
12656         strnlen: Fix warning in C++ mode on MacOS X.
12657         * lib/string.in.h (strnlen): Use the modern idiom.
12658         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12659         defining strnlen as a macro already in <config.h>.
12660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12661         REPLACE_STRNLEN.
12662         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12663         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12664
12665 2010-04-08  James Youngman  <jay@gnu.org>
12666
12667         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12668         the example.
12669
12670 2010-04-09  Jim Meyering  <meyering@redhat.com>
12671
12672         maint.mk: print better diagnostic when there is no $(_hv_file)
12673         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12674         announce that when $(_hv_file) (aka help-version) does not exist.
12675
12676         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12677         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12678         not try to interpret its random input bytes.  Jarno Rajahalme reported
12679         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12680         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12681         (mktempd_): Likewise, just in case.
12682
12683         ftruncate: add two years to projected module removal date: 2012
12684         * m4/ftruncate.m4: Adjust comments.
12685
12686         ftruncate: mark module as obsolete; even MinGW provides it, now
12687         * modules/ftruncate (Status): Obsolete.
12688         (Notice): Say that.
12689         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12690         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12691
12692 2010-04-08  Bruno Haible  <bruno@clisp.org>
12693
12694         Fix side effects from tests-related modules.
12695         * modules/dprintf-posix (Comment): New section.
12696         * modules/fprintf-posix (Comment): Likewise.
12697         * modules/obstack-printf-posix (Comment): Likewise.
12698         * modules/printf-posix (Comment): Likewise.
12699         * modules/snprintf-posix (Comment): Likewise.
12700         * modules/sprintf-posix (Comment): Likewise.
12701         * modules/vasnprintf-posix (Comment): Likewise.
12702         * modules/vasprintf-posix (Comment): Likewise.
12703         * modules/vdprintf-posix (Comment): Likewise.
12704         * modules/vfprintf-posix (Comment): Likewise.
12705         * modules/vprintf-posix (Comment): Likewise.
12706         * modules/vsnprintf-posix (Comment): Likewise.
12707         * modules/vsprintf-posix (Comment): Likewise.
12708         * modules/xprintf-posix (Comment): Likewise.
12709         * modules/xvasprintf-posix (Comment): Likewise.
12710         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12711         * modules/floorf-tests (Depends-on): Likewise.
12712         * modules/round-tests (Depends-on): Likewise.
12713         * modules/roundf-tests (Depends-on): Likewise.
12714         * modules/trunc-tests (Depends-on): Likewise.
12715         * modules/truncf-tests (Depends-on): Likewise.
12716         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12717         'fprintf-posix' module is not present.
12718         * tests/test-floorf2.c (check): Likewise.
12719         * tests/test-trunc2.c (check): Likewise.
12720         * tests/test-truncf2.c (check): Likewise.
12721         * tests/test-round2.c (equal): Likewise.
12722         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12723
12724 2010-04-07  Karl Berry  <karl@gnu.org>
12725
12726         * config/srclist.txt,
12727         * config/srclistvars.sh,
12728         * config/srclist-update: doc fixes.
12729
12730 2010-04-07  Jim Meyering  <meyering@redhat.com>
12731
12732         maint.mk: add a PATH crosschecking syntax-check rule
12733         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12734         Useful if you use a test like the one in help-version (coreutils,
12735         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12736         printed by prog --version.
12737
12738 2010-04-06  Bruno Haible  <bruno@clisp.org>
12739
12740         Fix link error on mingw.
12741         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12742         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12743
12744 2010-04-06  Bruno Haible  <bruno@clisp.org>
12745
12746         Assume rmdir exists.
12747         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12748
12749 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12750
12751         doc: update users.txt
12752         * users.txt: Add gcal.
12753
12754 2010-04-06  Jim Meyering  <meyering@redhat.com>
12755
12756         init.sh: simply unset TMPDIR rather than risking env -i
12757         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12758         although it probably works fine on all Unix-based systems, some
12759         systems (Cygwin?) cannot tolerate a totally cleared environment.
12760         Suggestion from Eric Blake.
12761
12762 2010-04-06  Jim Meyering  <meyering@redhat.com>
12763
12764         init.sh: portability fix: use env's POSIX-specified -i option not -u
12765         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12766         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12767
12768 2010-04-05  Bruno Haible  <bruno@clisp.org>
12769
12770         btowc: Work around Cygwin 1.7.2 bug.
12771         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12772         does not map NUL to 0.
12773         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12774
12775 2010-04-05  Bruno Haible  <bruno@clisp.org>
12776
12777         Make the multithread modules work on Cygwin 1.7.2.
12778         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12779         imported symbols can be declared weak, so that it returns "no" on
12780         Cygwin 1.7.2.
12781
12782 2010-04-05  Bruno Haible  <bruno@clisp.org>
12783
12784         Use the module 'strncat'.
12785         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12786
12787         Tests for module 'strncat'.
12788         * modules/strncat-tests: New file.
12789         * tests/test-strncat.c: New file.
12790
12791         New module 'strncat'.
12792         * lib/string.in.h (strncat): New declaration.
12793         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12794         * m4/strncat.m4: New file, based on m4/memchr.m4.
12795         * modules/strncat: New file.
12796         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12797         is declared.
12798         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12799         REPLACE_STRNCAT.
12800         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12801         REPLACE_STRNCAT.
12802         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12803         module.
12804         * tests/test-string-c++.cc: Check signature of strncat.
12805
12806 2010-04-05  Jim Meyering  <meyering@redhat.com>
12807
12808         xstrtoumax-tests: convert to use init.sh
12809         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12810         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12811         Use Exit, not exit.
12812         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12813
12814         xstrtoimax-tests: convert to use init.sh
12815         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12816         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12817         Use Exit, not exit.
12818         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12819
12820 2010-04-05  Bruno Haible  <bruno@clisp.org>
12821
12822         sys_socket: Avoid #define replacements in C++ mode.
12823         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12824         warning to the function if possible, rather than #defining the symbol
12825         to a dysfunctional alias.
12826
12827 2010-04-05  Bruno Haible  <bruno@clisp.org>
12828
12829         fseeko: Fix C++ test error on mingw.
12830         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12831         gl_FUNC_FSEEKO.
12832         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12833         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12834         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12835         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12836
12837 2010-04-05  Bruno Haible  <bruno@clisp.org>
12838
12839         duplocale: Improve test output.
12840         * tests/test-duplocale.c (main): Print reason for skipped test.
12841
12842 2010-04-05  Bruno Haible  <bruno@clisp.org>
12843
12844         Assume rmdir exists.
12845         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12846         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12847
12848 2010-04-05  Bruno Haible  <bruno@clisp.org>
12849
12850         Fix link error on Solaris 8 with cc.
12851         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12852
12853 2010-04-05  Bruno Haible  <bruno@clisp.org>
12854
12855         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12856         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12857
12858 2010-04-05  Bruno Haible  <bruno@clisp.org>
12859
12860         vasprintf: Update documentation.
12861         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12862
12863 2010-04-05  Bruno Haible  <bruno@clisp.org>
12864
12865         ptsname: Improve test.
12866         * tests/test-ptsname.c (main): Also try the various master names of BSD
12867         systems.
12868
12869 2010-04-05  Bruno Haible  <bruno@clisp.org>
12870
12871         memchr: Avoid a possible C++ test error.
12872         * lib/string.in.h (memchr): Provide declaration if function is missing.
12873         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12874         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12876         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12877
12878 2010-04-05  Bruno Haible  <bruno@clisp.org>
12879
12880         strtok_r: Improve idiom.
12881         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12882         AC_LIBOBJ is used.
12883
12884 2010-04-05  Bruno Haible  <bruno@clisp.org>
12885
12886         strdup: Improve idiom.
12887         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12888         AC_LIBOBJ is used.
12889         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12890         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12891         when AC_LIBOBJ is used.
12892
12893 2010-04-05  Bruno Haible  <bruno@clisp.org>
12894
12895         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12896         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12897         don't set REPLACE_MBSINIT to 1.
12898         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12899         don't set REPLACE_MBRTOWC to 1.
12900         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12901         exist, don't set REPLACE_MBSRTOWCS to 1.
12902         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12903         exist, don't set REPLACE_MBSNRTOWCS to 1.
12904         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12905         don't set REPLACE_WCRTOMB to 1.
12906         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12907         exist, don't set REPLACE_WCSRTOMBS to 1.
12908         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12909         exist, don't set REPLACE_WCSNRTOMBS to 1.
12910
12911 2010-04-05  Bruno Haible  <bruno@clisp.org>
12912
12913         ldexpl: Improve idiom.
12914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12915         make sure to set HAVE_DECL_LDEXPL to 0.
12916
12917 2010-04-05  Jim Meyering  <meyering@redhat.com>
12918
12919         xstrtol-tests: convert to use init.sh
12920         * modules/xstrtol-tests (Files): Add tests/init.sh.
12921         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12922         Use Exit, not exit.
12923         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12924
12925         atexit-tests: convert to use init.sh
12926         * modules/atexit-tests (Files): Add tests/init.sh.
12927         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12928         Use Exit, not exit.
12929         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12930
12931         init.sh: fix typo
12932         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12933
12934         init.sh: make it easier for a test script to write to the tty, ...
12935         when using automake's parallel-tests mode.
12936         * tests/init.sh (stderr_fileno_): Define overridable variable.
12937         (warn_): New function, to use it.
12938         (fail_, skip_, framework_failure_): Use warn_.
12939
12940 2010-04-04  Bruno Haible  <bruno@clisp.org>
12941
12942         btowc: Avoid warning.
12943         * lib/btowc.c: Include <stdlib.h>.
12944         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12945
12946 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12947             Bruno Haible  <bruno@clisp.org>
12948
12949         wchar: Port to NetBSD 1.5.
12950         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12951         * lib/wctype.in.h (WEOF): Likewise.
12952
12953 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12954             Bruno Haible  <bruno@clisp.org>
12955
12956         Port extended stdio to NetBSD 1.5.
12957         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12958         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12959         older.
12960
12961 2010-04-04  Bruno Haible  <bruno@clisp.org>
12962
12963         string: Remove unused substitution.
12964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12965         HAVE_DECL_STRERROR.
12966         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12967
12968 2010-04-04  Bruno Haible  <bruno@clisp.org>
12969
12970         strtod: Avoid a possible C++ test error.
12971         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12972         set REPLACE_STRTOD.
12973
12974 2010-04-04  Bruno Haible  <bruno@clisp.org>
12975
12976         strerror: Update documentation.
12977         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12978
12979 2010-04-04  Bruno Haible  <bruno@clisp.org>
12980
12981         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12982         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12983         _GL_CXXALIAS_SYS_CAST.
12984
12985 2010-04-04  Bruno Haible  <bruno@clisp.org>
12986
12987         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12988         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12989         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12990         REPLACE_FREXPL to 1.
12991         * doc/posix-functions/frexpl.texi: Update documentation.
12992
12993 2010-04-04  Bruno Haible  <bruno@clisp.org>
12994
12995         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12996         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12997
12998 2010-04-04  Bruno Haible  <bruno@clisp.org>
12999
13000         Implement nanosleep for native Windows.
13001         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13002
13003 2010-04-04  Bruno Haible  <bruno@clisp.org>
13004
13005         math: Fix some C++ test errors on Solaris 8.
13006         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13007
13008 2010-04-04  Bruno Haible  <bruno@clisp.org>
13009
13010         math: Fix some C++ test errors on Cygwin.
13011         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13012         truncl): Provide declaration if the system does not have it.
13013         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13014         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13015         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13016         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13017         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13018         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13019         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13020         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13021         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13022         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13023         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13024         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13025         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13026         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13027         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13028         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13030         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13031         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13032         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13033         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13034         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13035
13036 2010-04-04  Bruno Haible  <bruno@clisp.org>
13037
13038         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13039         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13040         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13041         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13042         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13043         * m4/isinf.m4 (gl_ISINF): Likewise.
13044         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13045
13046 2010-04-04  Bruno Haible  <bruno@clisp.org>
13047
13048         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13049         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13050
13051 2010-04-04  Bruno Haible  <bruno@clisp.org>
13052
13053         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13054         * modules/tmpfile (configure.ac): Update.
13055
13056         tmpfile: Fix C++ test error on mingw.
13057         * lib/stdio.in.h (tmpfile): New declaration.
13058         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13059         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13060         * modules/tmpfile (Depends-on): Add stdio.
13061         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13062         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13063         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13064         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13065         REPLACE_TMPFILE.
13066         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13067
13068 2010-04-04  Bruno Haible  <bruno@clisp.org>
13069
13070         ioctl: Fix C++ test error on mingw.
13071         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13072         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13073         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13074
13075 2010-04-03  Bruno Haible  <bruno@clisp.org>
13076
13077         wcwidth: Fix C++ test error on mingw.
13078         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13080         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13081
13082 2010-04-03  Bruno Haible  <bruno@clisp.org>
13083
13084         nanosleep: Fix C++ test error on mingw.
13085         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13086         * lib/time.in.h (nanosleep): Use modern idiom.
13087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13088         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13089         REPLACE_NANOSLEEP to 1.
13090         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13091         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13092
13093 2010-04-03  Bruno Haible  <bruno@clisp.org>
13094
13095         strptime: Fix C++ test error on mingw.
13096         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13097         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13098         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13099         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13100         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13101         not REPLACE_STRPTIME.
13102         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13103         REPLACE_STRPTIME.
13104
13105 2010-04-03  Bruno Haible  <bruno@clisp.org>
13106
13107         timegm: Fix C++ test error on mingw.
13108         * lib/time.in.h (timegm): Use modern idiom.
13109         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13110         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13111         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13112         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13113
13114 2010-04-03  Bruno Haible  <bruno@clisp.org>
13115
13116         timegm: Assume declaration if function exists.
13117         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13118         if it exists. Don't clobber ac_cv_func_timegm.
13119
13120 2010-04-03  Bruno Haible  <bruno@clisp.org>
13121
13122         time_r: Fix C++ test error on mingw.
13123         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13124         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13125         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13126         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13127         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13128
13129 2010-04-03  Bruno Haible  <bruno@clisp.org>
13130
13131         time_r: Minor updates.
13132         * modules/time_r (Description): Mention the provided functions.
13133         * lib/time_r.c: Don't include <string.h>.
13134         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13135         * doc/posix-functions/localtime_r.texi: Likewise.
13136
13137 2010-04-03  Bruno Haible  <bruno@clisp.org>
13138
13139         time: Fix regression introduced on 2010-03-08.
13140         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13141         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13142
13143 2010-04-03  Jim Meyering  <meyering@redhat.com>
13144
13145         maint.mk: don't silently disable project-specific syntax-check rules
13146         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13147         that they need to convert their project-specific syntax-check rules
13148         to use the new _sc_search_regexp.
13149
13150 2010-04-03  Bruno Haible  <bruno@clisp.org>
13151
13152         fchdir: Fix regression introduced on 2010-03-08.
13153         * lib/unistd.in.h (fchdir): Fix declaration.
13154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13156         REPLACE_FCHDIR.
13157         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13158         REPLACE_FCHDIR.
13159
13160 2010-04-03  Bruno Haible  <bruno@clisp.org>
13161
13162         getpagesize: Fix C++ test error on mingw.
13163         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13164         system does not declare the function.
13165         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13166         declared.
13167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13168         HAVE_DECL_GETPAGESIZE.
13169         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13170
13171 2010-04-03  Bruno Haible  <bruno@clisp.org>
13172
13173         stdio: Make C++ tests work on mingw.
13174         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13175         does not declare the function.
13176
13177 2010-04-03  Bruno Haible  <bruno@clisp.org>
13178
13179         ftello: Fix C++ test error on mingw.
13180         * lib/stdio.in.h (ftello): Use modern idiom.
13181         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13182         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13183         is missing and that it needs to be replaced.
13184         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13186         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13187
13188 2010-04-03  Bruno Haible  <bruno@clisp.org>
13189
13190         fseeko: Fix C++ test error on mingw.
13191         * lib/stdio.in.h (fseeko): Use modern idiom.
13192         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13193         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13194         is missing and that it needs to be replaced.
13195         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13197         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13198
13199 2010-04-03  Bruno Haible  <bruno@clisp.org>
13200
13201         mkstemp: Fix C++ test error on mingw.
13202         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13203         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13204         function is missing and that it needs to be replaced.
13205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13206         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13207
13208 2010-04-03  Bruno Haible  <bruno@clisp.org>
13209
13210         stpncpy: Fix C++ test error on mingw.
13211         * lib/string.in.h (stpncpy): Use modern idiom.
13212         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13213         function is missing and that it needs to be replaced.
13214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13215         REPLACE_STPNCPY.
13216         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13217
13218 2010-04-03  Bruno Haible  <bruno@clisp.org>
13219
13220         sys_stat: Fix C++ test error on mingw.
13221         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13222         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13223
13224 2010-04-03  Bruno Haible  <bruno@clisp.org>
13225
13226         pty: Update doc.
13227         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13228
13229 2010-04-03  Bruno Haible  <bruno@clisp.org>
13230
13231         unistd: Fix C++ test error on mingw.
13232         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13233
13234 2010-04-03  Bruno Haible  <bruno@clisp.org>
13235
13236         Update doc regarding mingw.
13237         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13238         * doc/glibc-functions/login_tty.texi: Likewise.
13239         * doc/glibc-functions/forkpty.texi: Likewise.
13240
13241 2010-04-03  Bruno Haible  <bruno@clisp.org>
13242
13243         stdlib: Avoid compilation failure of c-strtold on mingw.
13244         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13245
13246 2010-04-03  Bruno Haible  <bruno@clisp.org>
13247
13248         locale: Make C++ tests work on Cygwin and mingw.
13249         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13250         cannot provide the function.
13251         Reported by Simon Josefsson.
13252
13253 2010-04-03  Bruno Haible  <bruno@clisp.org>
13254
13255         localename: Port to MacOS X 10.6.
13256         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13257         memory layout of the locales in MacOS X 10.6 as well.
13258         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13259
13260 2010-04-02  Bruno Haible  <bruno@clisp.org>
13261
13262         gnulib-tool: Ensure that long-running tests are executed last.
13263         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13264         running tests after the one for the other tests.
13265
13266 2010-04-02  Bruno Haible  <bruno@clisp.org>
13267
13268         gnulib-tool: Ensure the tests in the main directory are executed first.
13269         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13270         start with the current directory.
13271
13272 2010-04-02  Bruno Haible  <bruno@clisp.org>
13273
13274         Tests for module 'havelib', moved here from GNU gettext.
13275         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13276         modifications.
13277         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13278         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13279         with modifications.
13280         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13281         modifications.
13282         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13283         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13284         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13285         with modifications.
13286         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13287         with modifications.
13288         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13289         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13290         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13291         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13292         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13293         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13294         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13295         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13296         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13297         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13298         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13299         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13300         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13301         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13302         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13303         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13304         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13305         with modifications.
13306         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13307         with modifications.
13308         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13309         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13310         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13311         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13312         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13313         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13314         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13315         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13316         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13317         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13318         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13319         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13320         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13321         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13322         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13323         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13324         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13325         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13326         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13327         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13328         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13329         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13330         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13331         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13332         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13333         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13334         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13335         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13336         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13337         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13338         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13339         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13340         * tests/havelib/rpathx/rpathx.c: New file, from
13341         gettext/autoconf-lib-link.
13342         * tests/havelib/rpathx/Makefile.am: New file, from
13343         gettext/autoconf-lib-link.
13344         * tests/havelib/rpathx/configure.ac: New file, from
13345         gettext/autoconf-lib-link with modifications.
13346         * tests/havelib/rpathy/rpathy.c: New file, from
13347         gettext/autoconf-lib-link.
13348         * tests/havelib/rpathy/Makefile.am: New file, from
13349         gettext/autoconf-lib-link.
13350         * tests/havelib/rpathy/configure.ac: New file, from
13351         gettext/autoconf-lib-link with modifications.
13352         * tests/havelib/rpathz/rpathz.c: New file, from
13353         gettext/autoconf-lib-link.
13354         * tests/havelib/rpathz/Makefile.am: New file, from
13355         gettext/autoconf-lib-link.
13356         * tests/havelib/rpathz/configure.ac: New file, from
13357         gettext/autoconf-lib-link with modifications.
13358         * tests/havelib/rpathlx/usex.c: New file, from
13359         gettext/autoconf-lib-link.
13360         * tests/havelib/rpathlx/Makefile.am: New file, from
13361         gettext/autoconf-lib-link.
13362         * tests/havelib/rpathlx/configure.ac: New file, from
13363         gettext/autoconf-lib-link with modifications.
13364         * tests/havelib/rpathly/usey.c: New file, from
13365         gettext/autoconf-lib-link.
13366         * tests/havelib/rpathly/Makefile.am: New file, from
13367         gettext/autoconf-lib-link.
13368         * tests/havelib/rpathly/configure.ac: New file, from
13369         gettext/autoconf-lib-link with modifications.
13370         * tests/havelib/rpathlz/usez.c: New file, from
13371         gettext/autoconf-lib-link.
13372         * tests/havelib/rpathlz/Makefile.am: New file, from
13373         gettext/autoconf-lib-link.
13374         * tests/havelib/rpathlz/configure.ac: New file, from
13375         gettext/autoconf-lib-link with modifications.
13376         * tests/havelib/rpathlyx/usey.c: New file, from
13377         gettext/autoconf-lib-link.
13378         * tests/havelib/rpathlyx/Makefile.am: New file, from
13379         gettext/autoconf-lib-link.
13380         * tests/havelib/rpathlyx/configure.ac: New file, from
13381         gettext/autoconf-lib-link with modifications.
13382         * tests/havelib/rpathlzyx/usez.c: New file, from
13383         gettext/autoconf-lib-link.
13384         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13385         gettext/autoconf-lib-link.
13386         * tests/havelib/rpathlzyx/configure.ac: New file, from
13387         gettext/autoconf-lib-link with modifications.
13388         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13389         with modifications.
13390
13391 2010-04-02  Bruno Haible  <bruno@clisp.org>
13392
13393         gnulib-tool: Create distributed built sources also for the tests.
13394         * gnulib-tool (func_create_testdir): Also generate distributed built
13395         sources in the tests directory.
13396
13397 2010-04-02  Bruno Haible  <bruno@clisp.org>
13398
13399         gnulib-tool: Obey user's environment variables.
13400         * gnulib-tool (func_create_testdir): When creating built sources,
13401         respect the environment variables for autoconf, automake, etc. given by
13402         the user.
13403
13404 2010-04-02  Bruno Haible  <bruno@clisp.org>
13405
13406         gnulib-tool: Provide the value of --m4-base to modules.
13407         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13408         of gl_m4_base.
13409
13410 2010-04-02  Eric Blake  <eblake@redhat.com>
13411
13412         maint.mk: fix some fallout
13413         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13414         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13415
13416 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13417
13418         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13419         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13420         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13421         (sc_cast_of_x_alloc_return_value): Likewise.
13422         (sc_cast_of_alloca_return_value): Likewise.
13423         (sc_space_tab): Likewise.
13424         (sc_prohibit_atoi_atof): Likewise.
13425         (sc_prohibit_magic_number_exit): Likewise.
13426         (sc_error_exit_success): Likewise.
13427         (sc_file_system): Likewise.
13428         (sc_prohibit_have_config_h): Likewise.
13429         (sc_require_config_h): Likewise.
13430         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13431         (sc_obsolete_symbols): Likewise.
13432         (sc_changelog): Likewise.
13433         (sc_program_name): Likewise.
13434         (sc_the_the): Likewise.
13435         (sc_trailing_blank): Likewise.
13436         (sc_two_space_separator_in_usage): Likewise.
13437         (sc_useless_cpp_parens): Likewise.
13438         (sc_GPL_version): Likewise.
13439         (sc_GFDL_version): Likewise.
13440         (sc_texinfo_acronym): Likewise.
13441         (sc_prohibit_cvs_keyword): Likewise.
13442         (sc_prohibit_stat_st_blocks): Likewise.
13443         (sc_prohibit_S_IS_definition): Likewise.
13444         (sc_redundant_const): Likewise.
13445         (sc_makefile_TAB_only_indentation): Likewise.
13446         (sc_m4_quote_check): Likewise.
13447         (sc_makefile_path_separator_check): Likewise.
13448         (sc_copyright_check): Likewise.
13449         (sc_Wundef_boolean): Likewise.
13450         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13451
13452         maint.mk: match 0 or more whitespace-before-function-call '('
13453         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13454         that have zero or two-and-more spaces between the function name
13455         and the open parenthesis.
13456         (sc_error_message_warn_fatal): Likewise.
13457         (sc_error_message_uppercase): Likewise.
13458         (sc_error_message_period): Likewise.
13459
13460 2010-03-31  Eric Blake  <eblake@redhat.com>
13461
13462         maint.mk: check for [ as well as test
13463         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13464         Based on a libvirt report by Matthias Bolte.
13465
13466         gnumakefile: don't squelch _version output
13467         * top/GNUmakefile (_version): Create one-shot dependency rather
13468         than using $(shell) when version must be regenerated.
13469         (_autoreconf): Run verbosely, by default.
13470
13471         sys_time: avoid compiler warnings
13472         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13473         unconditional, fixing regression from 2010-03-29.
13474         Reported by Simon Josefsson.
13475
13476 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13477
13478         maint.mk: s/_header_without_use/_sc_header_without_use/
13479         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13480         (sc_prohibit_assert_without_use): Use the new name.
13481         (sc_prohibit_close_stream_without_use): Likewise.
13482         (sc_prohibit_getopt_without_use): Likewise.
13483         (sc_prohibit_quotearg_without_use): Likewise.
13484         (sc_prohibit_quote_without_use): Likewise.
13485         (sc_prohibit_long_options_without_use): Likewise.
13486         (sc_prohibit_inttostr_without_use): Likewise.
13487         (sc_prohibit_ignore_value_without_use): Likewise.
13488         (sc_prohibit_error_without_use): Likewise.
13489         (sc_prohibit_xalloc_without_use): Likewise.
13490         (sc_prohibit_hash_without_use): Likewise.
13491         (sc_prohibit_hash_pjw_without_use): Likewise.
13492         (sc_prohibit_safe_read_without_use): Likewise.
13493         (sc_prohibit_argmatch_without_use): Likewise.
13494         (sc_prohibit_canonicalize_without_use): Likewise.
13495         (sc_prohibit_root_dev_ino_without_use): Likewise.
13496         (sc_prohibit_openat_without_use): Likewise.
13497         (sc_prohibit_c_ctype_without_use): Likewise.
13498         (sc_prohibit_signal_without_use): Likewise.
13499         (sc_prohibit_intprops_without_use): Likewise.
13500
13501 2010-03-30  Eric Blake  <eblake@redhat.com>
13502
13503         maint: improve module indicators
13504         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13505         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13506         columns, and avoid extra macro expansion.
13507
13508         fdopendir: work around FreeBSD bug
13509         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13510         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13511         * modules/dirent (Makefile.am): Substitute it.
13512         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13513         declaration.
13514         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13515         fix.
13516         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13517
13518 2010-03-29  Bruno Haible  <bruno@clisp.org>
13519
13520         Emit #pragma system_header after the inclusion guard, not before.
13521         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13522         guard that spans the entire file, not before. This enables an
13523         optimization in GCC's preprocessor.
13524         * lib/ctype.in.h: Likewise.
13525         * lib/dirent.in.h: Likewise.
13526         * lib/errno.in.h: Likewise.
13527         * lib/float.in.h: Likewise.
13528         * lib/getopt.in.h: Likewise.
13529         * lib/iconv.in.h: Likewise.
13530         * lib/langinfo.in.h: Likewise.
13531         * lib/locale.in.h: Likewise.
13532         * lib/math.in.h: Likewise.
13533         * lib/netdb.in.h: Likewise.
13534         * lib/netinet_in.in.h: Likewise.
13535         * lib/pty.in.h: Likewise.
13536         * lib/sched.in.h: Likewise.
13537         * lib/se-selinux.in.h: Likewise.
13538         * lib/search.in.h: Likewise.
13539         * lib/spawn.in.h: Likewise.
13540         * lib/stdarg.in.h: Likewise.
13541         * lib/stdint.in.h: Likewise.
13542         * lib/string.in.h: Likewise.
13543         * lib/strings.in.h: Likewise.
13544         * lib/sys_file.in.h: Likewise.
13545         * lib/sys_ioctl.in.h: Likewise.
13546         * lib/sys_time.in.h: Likewise.
13547         * lib/sys_times.in.h: Likewise.
13548         * lib/sys_utsname.in.h: Likewise.
13549         * lib/sys_wait.in.h: Likewise.
13550         * lib/sysexits.in.h: Likewise.
13551         * lib/wctype.in.h: Likewise.
13552
13553 2010-03-28  James Youngman  <jay@gnu.org>
13554
13555         save-cwd: don't leak a file descriptor when the caller execs.
13556         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13557         saved file descriptor.
13558         * modules/save-cwd (Depends-on): Depend on cloexec.
13559
13560 2010-03-29  Bruno Haible  <bruno@clisp.org>
13561
13562         Remove vestiges of fts-lgpl module.
13563         * lib/fts_.h: Assume GNULIB_FTS is 1.
13564         * lib/fts.c: Likewise.
13565         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13566
13567 2010-03-28  Bruno Haible  <bruno@clisp.org>
13568
13569         Fix definition of tests witness macro.
13570         * gnulib-tool (func_import): Fix definition of witness macro.
13571
13572 2010-03-28  Bruno Haible  <bruno@clisp.org>
13573
13574         Fix ioctl's protoype on glibc systems.
13575         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13576         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13577         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13578         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13579         signature. If not, arrange to replace the ioctl function.
13580         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13581         REPLACE_IOCTL.
13582         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13583         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13584         Reported by Ludovic Courtès <ludo@gnu.org>.
13585
13586 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13587
13588         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13589         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13590         made it so grep -r --include=GLOB* ... did not work.
13591
13592 2010-03-26  Jim Meyering  <meyering@redhat.com>
13593             Eric Blake  <eblake@redhat.com>
13594
13595         maint.mk: prohibit use of test's -o and -a operators
13596         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13597
13598 2010-03-28  Bruno Haible  <bruno@clisp.org>
13599
13600         Remove unused GNULIB_XYZ macro definitions.
13601         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13602         invocation.
13603
13604 2010-03-28  Bruno Haible  <bruno@clisp.org>
13605
13606         Mark privileged tests modules.
13607         * modules/idpriv-drop-tests (Status): New section.
13608         * modules/idpriv-droptemp-tests (Status): New section.
13609
13610 2010-03-28  Bruno Haible  <bruno@clisp.org>
13611
13612         Split C++ tests into separate tests modules.
13613         * modules/dirent-c++-tests: New file, extracted from
13614         modules/dirent-tests.
13615         * modules/dirent-tests: Depend on it.
13616         * modules/fcntl-h-c++-tests: New file, extracted from
13617         modules/fcntl-h-tests.
13618         * modules/fcntl-h-tests: Depend on it.
13619         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13620         * modules/glob-tests: Depend on it.
13621         * modules/iconv-h-c++-tests: New file, extracted from
13622         modules/iconv-h-tests.
13623         * modules/iconv-h-tests: Depend on it.
13624         * modules/langinfo-c++-tests: New file, extracted from
13625         modules/langinfo-tests.
13626         * modules/langinfo-tests: Depend on it.
13627         * modules/locale-c++-tests: New file, extracted from
13628         modules/locale-tests.
13629         * modules/locale-tests: Depend on it.
13630         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13631         * modules/math-tests: Depend on it.
13632         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13633         * modules/pty-tests: Depend on it.
13634         * modules/search-c++-tests: New file, extracted from
13635         modules/search-tests.
13636         * modules/search-tests: Depend on it.
13637         * modules/signal-c++-tests: New file, extracted from
13638         modules/signal-tests.
13639         * modules/signal-tests: Depend on it.
13640         * modules/spawn-c++-tests: New file, extracted from
13641         modules/spawn-tests.
13642         * modules/spawn-tests: Depend on it.
13643         * modules/stdio-c++-tests: New file, extracted from
13644         modules/stdio-tests.
13645         * modules/stdio-tests: Depend on it.
13646         * modules/stdlib-c++-tests: New file, extracted from
13647         modules/stdlib-tests.
13648         * modules/stdlib-tests: Depend on it.
13649         * modules/string-c++-tests: New file, extracted from
13650         modules/string-tests.
13651         * modules/string-tests: Depend on it.
13652         * modules/sys_ioctl-c++-tests: New file, extracted from
13653         modules/sys_ioctl-tests.
13654         * modules/sys_ioctl-tests: Depend on it.
13655         * modules/sys_select-c++-tests: New file, extracted from
13656         modules/sys_select-tests.
13657         * modules/sys_select-tests: Depend on it.
13658         * modules/sys_socket-c++-tests: New file, extracted from
13659         modules/sys_socket-tests.
13660         * modules/sys_socket-tests: Depend on it.
13661         * modules/sys_stat-c++-tests: New file, extracted from
13662         modules/sys_stat-tests.
13663         * modules/sys_stat-tests: Depend on it.
13664         * modules/sys_time-c++-tests: New file, extracted from
13665         modules/sys_time-tests.
13666         * modules/sys_time-tests: Depend on it.
13667         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13668         * modules/time-tests: Depend on it.
13669         * modules/unistd-c++-tests: New file, extracted from
13670         modules/unistd-tests.
13671         * modules/unistd-tests: Depend on it.
13672         * modules/wchar-c++-tests: New file, extracted from
13673         modules/wchar-tests.
13674         * modules/wchar-tests: Depend on it.
13675         * modules/wctype-c++-tests: New file, extracted from
13676         modules/wctype-tests.
13677         * modules/wctype-tests: Depend on it.
13678         Reported by Simon Josefsson.
13679
13680 2010-03-28  Bruno Haible  <bruno@clisp.org>
13681
13682         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13683         * gnulib-tool (func_exists_module): New function, extracted from
13684         func_verify_module.
13685         (func_verify_module): Use it.
13686         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13687         'foo' only if 'foo' exists.
13688         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13689         module.
13690
13691 2010-03-28  Bruno Haible  <bruno@clisp.org>
13692
13693         gnulib-tool: Add support for special categories of tests.
13694         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13695         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13696         (func_usage): Document them.
13697         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13698         inc_unportable_tests, inc_all_tests): New variables.
13699         (func_acceptable): Consider these variables.
13700         (func_modules_transitive_closure): Make it work when the 'Status' field
13701         consists of multiple words.
13702         (func_import): Store and restore the values of inc_cxx_tests,
13703         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13704         inc_all_tests in gnulib-comp.m4.
13705         (func_create_testdir): Set inc_all_tests to true.
13706         * doc/gnulib.texi (Extra tests modules): New section.
13707         Suggested by Jim Meyering.
13708
13709 2010-03-28  Bruno Haible  <bruno@clisp.org>
13710
13711         ansi-c++-opt: Allow turning off the C++ build by default.
13712         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13713         gl_CXX_CHOICE_DEFAULT_NO is defined.
13714         Requested by Eric Blake.
13715
13716 2010-03-28  Bruno Haible  <bruno@clisp.org>
13717
13718         unistd: Avoid #define replacements in C++ mode.
13719         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13720         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13721         setsockopt, shutdown, select): In C++, attach a warning to the function
13722         if possible, rather than #defining the symbol to a dysfunctional alias.
13723         Reported by John W. Eaton <jwe@gnu.org>.
13724
13725 2010-03-28  Bruno Haible  <bruno@clisp.org>
13726
13727         Fix link errors on mingw.
13728         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13729         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13730         $(LIBSOCKET).
13731         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13732         $(LIBSOCKET).
13733
13734 2010-03-28  Bruno Haible  <bruno@clisp.org>
13735             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13736
13737         lib-ignore: Determine different options for different compilers.
13738         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13739         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13740         Add comments.
13741         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13742         * NEWS: Mention the change.
13743
13744 2010-03-27  Bruno Haible  <bruno@clisp.org>
13745
13746         Remove unused GNULIB_XYZ macro definitions.
13747         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13748         * modules/fseek (configure.ac): Likewise.
13749         * modules/ioctl (configure.ac): Likewise.
13750         * modules/open (configure.ac): Likewise.
13751         * modules/stdlib-safer (configure.ac): Likewise.
13752
13753 2010-03-27  Bruno Haible  <bruno@clisp.org>
13754
13755         Add a remark about certain modules.
13756         * modules/malloc (Comment): New section.
13757         * modules/realloc (Comment): Likewise.
13758         * modules/sigpipe (Comment): Likewise.
13759
13760 2010-03-27  Bruno Haible  <bruno@clisp.org>
13761
13762         Resolve conflict between the two kinds of module indicators.
13763         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13764         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13765         * modules/canonicalize (configure.ac): Invoke
13766         gl_MODULE_INDICATOR_FOR_TESTS.
13767         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13768         GNULIB_XYZ.
13769         * tests/test-dirent-c++.cc: Likewise.
13770         * tests/test-dirent-safer.c: Likewise.
13771         * tests/test-dup2.c: Likewise.
13772         * tests/test-fchdir.c: Likewise.
13773         * tests/test-fcntl-h-c++.cc: Likewise.
13774         * tests/test-getopt.c: Likewise.
13775         * tests/test-getopt.h: Likewise.
13776         * tests/test-langinfo-c++.cc: Likewise.
13777         * tests/test-locale-c++.cc: Likewise.
13778         * tests/test-math-c++.cc: Likewise.
13779         * tests/test-pty-c++.cc: Likewise.
13780         * tests/test-search-c++.cc: Likewise.
13781         * tests/test-signal-c++.cc: Likewise.
13782         * tests/test-spawn-c++.cc: Likewise.
13783         * tests/test-stdio-c++.cc: Likewise.
13784         * tests/test-stdlib-c++.cc: Likewise.
13785         * tests/test-string-c++.cc: Likewise.
13786         * tests/test-sys_ioctl-c++.cc: Likewise.
13787         * tests/test-sys_select-c++.cc: Likewise.
13788         * tests/test-sys_socket-c++.cc: Likewise.
13789         * tests/test-sys_stat-c++.cc: Likewise.
13790         * tests/test-sys_time-c++.cc: Likewise.
13791         * tests/test-time-c++.cc: Likewise.
13792         * tests/test-unistd-c++.cc: Likewise.
13793         * tests/test-wchar-c++.cc: Likewise.
13794         * tests/uninorm/test-u8-nfc.c: Likewise.
13795         * tests/uninorm/test-u8-nfd.c: Likewise.
13796         * tests/uninorm/test-u8-nfkc.c: Likewise.
13797         * tests/uninorm/test-u8-nfkd.c: Likewise.
13798         * tests/uninorm/test-u16-nfc.c: Likewise.
13799         * tests/uninorm/test-u16-nfd.c: Likewise.
13800         * tests/uninorm/test-u16-nfkc.c: Likewise.
13801         * tests/uninorm/test-u16-nfkd.c: Likewise.
13802         * tests/uninorm/test-u32-nfc.c: Likewise.
13803         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13804         * tests/uninorm/test-u32-nfd.c: Likewise.
13805         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13806         * tests/uninorm/test-u32-nfkc.c: Likewise.
13807         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13808         * tests/uninorm/test-u32-nfkd.c: Likewise.
13809         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13810         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13811
13812 2010-03-27  Bruno Haible  <bruno@clisp.org>
13813
13814         Distinguish two kinds of module indicators.
13815         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13816         gl_MODULE_INDICATOR.
13817         (gl_MODULE_INDICATOR): New macro.
13818         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13819         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13820         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13821         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13822         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13823         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13824         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13825         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13826         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13827         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13828         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13829         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13832         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13833         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13834         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13835         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13836         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13837         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13838         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13839         * modules/cloexec (configure.ac): Likewise.
13840         * modules/getopt-gnu (configure.ac): Likewise.
13841         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13842         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13843         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13844         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13845
13846 2010-03-27  Bruno Haible  <bruno@clisp.org>
13847
13848         New module description field 'Comment'.
13849         * gnulib-tool: New option --extract-comment.
13850         (func_usage): Document it.
13851         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13852         (func_get_comment): New function.
13853         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13854
13855 2010-03-27  Bruno Haible  <bruno@clisp.org>
13856
13857         Addendum to 2010-02-07 commit.
13858         * gnulib-tool (func_usage): Document --extract-applicability option.
13859
13860 2010-03-27  Bruno Haible  <bruno@clisp.org>
13861
13862         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13863         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13864         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13865         rather than link errors.
13866
13867 2010-03-27  Bruno Haible  <bruno@clisp.org>
13868
13869         Avoid side effects from tests-related modules on the compilation of lib.
13870         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13871         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13872         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13873         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13874         macro.
13875         (func_import): Define a witness macro. Assign it a value that depends
13876         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13877         tests-related modules.
13878         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13879         Reported by Jim Meyering.
13880
13881 2010-03-27  Bruno Haible  <bruno@clisp.org>
13882
13883         Factorize common .m4 code.
13884         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13885         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13886         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13887         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13888         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13889         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13890         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13891         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13892         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13893         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13894         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13895         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13896         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13897         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13898         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13899         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13900         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13901         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13903         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13904         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13905         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13906         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13907         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13908         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13909         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13910         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13913         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13914         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13915         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13916
13917 2010-03-27  Bruno Haible  <bruno@clisp.org>
13918
13919         Fix a compilation error on Cygwin with g++ >= 4.3.
13920         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13921         if it is undefined or if we alias it to chmod.
13922         (lstat): Don't warn about the use of this function if it is undefined
13923         or if we alias it to stat.
13924         Reported by Simon Josefsson.
13925
13926 2010-03-27  Bruno Haible  <bruno@clisp.org>
13927
13928         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13929         * modules/getlogin (configure.ac): Update.
13930
13931         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13932         * modules/getlogin_r (configure.ac): Update.
13933
13934         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13935         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13936         * modules/inet_ntop (configure.ac): Update.
13937
13938         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13939         * modules/inet_pton (configure.ac): Update.
13940
13941         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13942         * modules/mbslen (configure.ac): Update.
13943
13944         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13945         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13946         * modules/forkpty (configure.ac): Update.
13947         * modules/openpty (configure.ac): Update.
13948
13949 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13950
13951         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13952         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13953
13954 2010-03-25  Eric Blake  <eblake@redhat.com>
13955
13956         maint: use pragma consistently across replacement headers
13957         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13958         * lib/dirent.in.h (system_header): Likewise.
13959         * lib/errno.in.h (system_header): Likewise.
13960         * lib/float.in.h (system_header): Likewise.
13961         * lib/getopt.in.h (system_header): Likewise.
13962         * lib/iconv.in.h (system_header): Likewise.
13963         * lib/inttypes.in.h (system_header): Likewise.
13964         * lib/langinfo.in.h (system_header): Likewise.
13965         * lib/locale.in.h (system_header): Likewise.
13966         * lib/math.in.h (system_header): Likewise.
13967         * lib/netdb.in.h (system_header): Likewise.
13968         * lib/netinet_in.in.h (system_header): Likewise.
13969         * lib/pty.in.h (system_header): Likewise.
13970         * lib/sched.in.h (system_header): Likewise.
13971         * lib/se-selinux.in.h (system_header): Likewise.
13972         * lib/search.in.h (system_header): Likewise.
13973         * lib/spawn.in.h (system_header): Likewise.
13974         * lib/stdarg.in.h (system_header): Likewise.
13975         * lib/stdint.in.h (system_header): Likewise.
13976         * lib/string.in.h (system_header): Likewise.
13977         * lib/strings.in.h (system_header): Likewise.
13978         * lib/sys_file.in.h (system_header): Likewise.
13979         * lib/sys_ioctl.in.h (system_header): Likewise.
13980         * lib/sys_socket.in.h (system_header): Likewise.
13981         * lib/sys_times.in.h (system_header): Likewise.
13982         * lib/sys_utsname.in.h (system_header): Likewise.
13983         * lib/sys_wait.in.h (system_header): Likewise.
13984         * lib/sysexits.in.h (system_header): Likewise.
13985         * lib/unistd.in.h (system_header): Likewise.
13986         * lib/wctype.in.h (system_header): Likewise.
13987
13988         arpa/inet: fix mingw compilation warning
13989         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13990         Reported by Matthew Bolte.
13991
13992 2010-03-25  Bruno Haible  <bruno@clisp.org>
13993
13994         Avoid collision between gnulib wrapper and libintl wrapper.
13995         * lib/printf.c (printf): Don't define if a printf wrapper is already
13996         defined in intl/printf.c.
13997         Reported by Michel Boaventura <michel@michelboaventura.com>.
13998
13999 2010-03-25  Bruno Haible  <bruno@clisp.org>
14000
14001         Use ANSI C.
14002         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14003
14004 2010-03-25  Bruno Haible  <bruno@clisp.org>
14005
14006         Minor formatting changes.
14007         * lib/acosl.c: Insert space before function argument list.
14008         * lib/argz.c: Likewise.
14009         * lib/asinl.c: Likewise.
14010         * lib/expl.c: Likewise.
14011         * lib/gen-uni-tables.c: Likewise.
14012         * lib/gettext.h: Likewise.
14013         * lib/glthread/lock.h: Likewise.
14014         * lib/tanl.c: Likewise.
14015         * lib/uniname/uniname.c: Likewise.
14016         * tests/test-idpriv-drop.c: Likewise.
14017         * tests/test-idpriv-droptemp.c: Likewise.
14018         * tests/test-lock.c: Likewise.
14019         * tests/test-tls.c: Likewise.
14020         * lib/argp-help.c: Insert space before function-like macro argument
14021         list.
14022         * lib/memcmp.c: Likewise.
14023         * tests/test-base64.c: Likewise.
14024         * lib/localename.c: Insert space before sizeof's argument list.
14025         * lib/safe-alloc.h: Likewise.
14026         * lib/file-set.h: Insert space before macro argument list.
14027         * tests/test-argp.c: Likewise.
14028         * lib/argp-namefrob.h: Insert space before function parameter list.
14029         * lib/getaddrinfo.c: Likewise.
14030         * lib/netdb.in.h: Likewise.
14031         * lib/parse-duration.h: Likewise.
14032         * lib/parse-duration.c: Likewise.
14033         * lib/poll.c: Likewise.
14034         * lib/select.c: Likewise.
14035         * lib/trim.h: Likewise.
14036         * tests/test-usleep.c: Likewise.
14037         * lib/ldexpl.c: Insert space before function parameter list and before
14038         function argument list.
14039         * lib/logl.c: Likewise.
14040         * lib/sqrtl.c: Likewise.
14041         * lib/trim.c: Likewise.
14042         * lib/cosl.c: Use GNU style indentation. Insert space before function
14043         argument list.
14044         * lib/sinl.c: Likewise.
14045         * lib/tsearch.c: Insert space after 'for'.
14046         Reported by Jim Meyering.
14047
14048 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14049
14050         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14051         config header before grepping, as it's not present before
14052         autoreconf/configure are run.  Reported by Simon Josefsson.
14053
14054 2010-03-23  Bruno Haible  <bruno@clisp.org>
14055
14056         pt_chown: Make it work with automake < 1.11.
14057         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14058         Reported by Simon Josefsson.
14059
14060 2010-03-23  Bruno Haible  <bruno@clisp.org>
14061
14062         pt_chown: Don't depend on GPLed modules.
14063         * lib/pt_chown.c: Don't include idpriv.h.
14064         (main): Don't drop privileges.
14065         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14066         Reported by Simon Josefsson.
14067
14068 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14069
14070         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14071         suggestions from karl@freefriends.org (Karl Berry).
14072
14073 2010-03-22  Eric Blake  <eblake@redhat.com>
14074
14075         gethostname: further tweaks
14076         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14077         are overriding gethostname.
14078         Suggested by Bruno Haible.
14079
14080 2010-03-21  Bruno Haible  <bruno@clisp.org>
14081
14082         Fix comments.
14083         * lib/forkpty.c (rpl_forkpty): Fix comment.
14084         * lib/openpty.c (rpl_openpty): Likewise.
14085         Reported by Eric Blake.
14086
14087 2010-03-22  Eric Blake  <eblake@redhat.com>
14088
14089         gethostname: fix build on mingw
14090         * lib/unistd.in.h (includes): Work around fact that mingw
14091         <winsock2.h> re-includes <unistd.h>, by avoiding any
14092         redeclarations if we are being included by <winsock2.h>.
14093         Reported by Matthias Bolte.
14094
14095 2010-03-21  Bruno Haible  <bruno@clisp.org>
14096
14097         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14098         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14099         modifications.
14100         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14101         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14102         provide the replacement.
14103         * modules/forkpty (Depends-on): Add openpty, login_tty.
14104         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14105         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14106         * doc/glibc-functions/forkpty.texi: More supported platforms.
14107         * config/srclist.txt: Add forkpty.c (commented).
14108
14109 2010-03-21  Bruno Haible  <bruno@clisp.org>
14110
14111         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14112         (Makefile.am): Verify that PTY_LIB is defined.
14113
14114         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14115
14116 2010-03-21  Bruno Haible  <bruno@clisp.org>
14117
14118         Tests for module 'login_tty'.
14119         * modules/login_tty-tests: New file.
14120         * tests/test-login_tty.c: New file.
14121
14122         New module 'login_tty'.
14123         * lib/login_tty.c: New file.
14124         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14125         * modules/login_tty: New file.
14126         * doc/glibc-functions/login_tty.texi: Mention the new module.
14127
14128 2010-03-21  Bruno Haible  <bruno@clisp.org>
14129
14130         login_tty: Documentation.
14131         * doc/glibc-functions/login_tty.texi: New file.
14132         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14133
14134 2010-03-21  Bruno Haible  <bruno@clisp.org>
14135
14136         pty: Consistent macro naming.
14137         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14138         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14139         * modules/pty (configure.ac): Update.
14140
14141 2010-03-21  Bruno Haible  <bruno@clisp.org>
14142
14143         Tests for openpty: Make stricter.
14144         * tests/test-openpty.c (main): Add test of canonical processing and
14145         erase.
14146         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14147
14148         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14149         * lib/openpty.c (openpty): New replacement function.
14150         * lib/pty.in.h: Include <termios.h>.
14151         (openpty): Update declaration. Add comments.
14152         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14153         is not declared, arrange to provide the replacement. Check for _getpty
14154         and posix_openpt.
14155         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14156         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14157         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14158         * modules/pty-tests (test_pty_c___LDADD): New variable.
14159         * doc/glibc-functions/openpty.texi: More supported platforms.
14160
14161 2010-03-21  Bruno Haible  <bruno@clisp.org>
14162
14163         setenv: Tweaks.
14164         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14165         the test program.
14166         * doc/posix-functions/setenv.texi: Update platforms list.
14167
14168 2010-03-21  Bruno Haible  <bruno@clisp.org>
14169
14170         New module 'unlockpt'.
14171         * lib/unlockpt.c: New file, from glibc with modifications.
14172         * m4/unlockpt.m4: New file.
14173         * modules/unlockpt: New file.
14174         * lib/stdlib.in.h (unlockpt): New declaration.
14175         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14176         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14177         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14178         HAVE_UNLOCKPT.
14179         * doc/posix-functions/unlockpt.texi: Mention the new module.
14180         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14181         * config/srclist.txt: Add unlockpt.c (commented).
14182
14183 2010-03-21  Jim Meyering  <meyering@redhat.com>
14184
14185         maint.mk: prohibit inclusion of "intprops.h" without use
14186         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14187
14188 2010-03-21  Bruno Haible  <bruno@clisp.org>
14189
14190         New module 'grantpt'.
14191         * lib/grantpt.c: New file, from glibc with modifications.
14192         * m4/grantpt.m4: New file.
14193         * modules/grantpt: New file.
14194         * lib/stdlib.in.h (grantpt): New declaration.
14195         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14196         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14197         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14198         HAVE_GRANTPT.
14199         * doc/posix-functions/grantpt.texi: Mention the new module.
14200         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14201         * config/srclist.txt: Add grantpt.c (commented).
14202
14203 2010-03-21  Bruno Haible  <bruno@clisp.org>
14204
14205         New module 'pt_chown'.
14206         * lib/pt_chown.c: New file, from glibc with modifications.
14207         * lib/pty-private.h: New file, from glibc with modifications.
14208         * modules/pt_chown: New file.
14209         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14210
14211 2010-03-21  Bruno Haible  <bruno@clisp.org>
14212
14213         Tests for module 'ptsname'.
14214         * modules/ptsname-tests: New file.
14215         * tests/test-ptsname.c: New file.
14216
14217         New module 'ptsname'.
14218         * lib/ptsname.c: New file, from glibc with modifications.
14219         * m4/ptsname.m4: New file.
14220         * modules/ptsname: New file.
14221         * lib/stdlib.in.h (ptsname): New declaration.
14222         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14223         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14224         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14225         HAVE_PTSNAME.
14226         * doc/posix-functions/ptsname.texi: Mention the new module.
14227         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14228         * config/srclist.txt: Add ptsname.c (commented).
14229
14230 2010-03-21  Bruno Haible  <bruno@clisp.org>
14231
14232         Tests for module 'ttyname_r'.
14233         * modules/ttyname_r-tests: New file.
14234         * tests/test-ttyname_r.c: New file.
14235
14236         New module 'ttyname_r'.
14237         * lib/ttyname_r.c: New file.
14238         * m4/ttyname_r.m4: New file.
14239         * modules/ttyname_r: New file.
14240         * lib/unistd.in.h (ttyname_r): New declaration.
14241         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14242         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14243         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14244         HAVE_TTYNAME_R.
14245         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14246         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14247
14248 2010-03-20  Bruno Haible  <bruno@clisp.org>
14249
14250         signal: Undefine macro definitions in C++ mode.
14251         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14252         sigfillset): Undefine macro definitions from the system header in C++
14253         mode.
14254         Reported by John W. Eaton <jwe@gnu.org>.
14255
14256 2010-03-20  Bruno Haible  <bruno@clisp.org>
14257
14258         Ensure no #include statements inside extern "C" { ... }.
14259         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14260         contain #include statements.
14261         * lib/time.in.h: Likewise.
14262
14263 2010-03-20  Bruno Haible  <bruno@clisp.org>
14264
14265         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14266         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14267         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14268         Reported by John W. Eaton <jwe@gnu.org>.
14269
14270 2010-03-20  Bruno Haible  <bruno@clisp.org>
14271
14272         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14273         Reported by Jim Meyering.
14274
14275 2010-03-20  Bruno Haible  <bruno@clisp.org>
14276
14277         pipe: Set errno upon failure.
14278         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14279         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14280         errno value in error message.
14281
14282 2010-03-20  Bruno Haible  <bruno@clisp.org>
14283             Jim Meyering  <meyering@redhat.com>
14284
14285         lchown: Avoid "unused variable" warning.
14286         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14287
14288 2010-03-20  Bruno Haible  <bruno@clisp.org>
14289
14290         Work around unlink() bug on MacOS X 10.5.6.
14291         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14292         attempting to unlink a parent directory.
14293         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14294         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14295         activate for the replacement function.
14296         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14297
14298 2010-03-20  Bruno Haible  <bruno@clisp.org>
14299
14300         Fix link errors on Solaris 8.
14301         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14302         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14303
14304 2010-03-19  Jim Meyering  <meyering@redhat.com>
14305
14306         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14307         The _LIBC implementation of build_range_exp correctly honors the
14308         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14309         However, the non-_LIBC implementation would ignore that syntax-bit
14310         flag and return REG_ERANGE unconditionally.
14311         This change makes it honor that flag.
14312         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14313         Make two pointer parameters "const".
14314         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14315         (parse_bracket_exp): Update caller.
14316
14317         regex.m4: correct the reversed range endpoint ([b-a]) test
14318         * m4/regex.m4: When requiring that [b-a] evoke failure,
14319         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14320         test pass once again for x86-based systems.
14321
14322 2010-03-19  Bruno Haible  <bruno@clisp.org>
14323
14324         scandir: Fix link error on Solaris 8.
14325         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14326         macros.
14327
14328 2010-03-19  Bruno Haible  <bruno@clisp.org>
14329
14330         getusershell: Fix documentation.
14331         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14332         module.
14333         * doc/glibc-functions/setusershell.texi: Likewise.
14334
14335         getusershell: Provide declaration, missing on Solaris 9.
14336         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14337         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14338         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14339         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14341         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14342         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14343         HAVE_GETUSERSHELL.
14344         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14345
14346 2010-03-19  Bruno Haible  <bruno@clisp.org>
14347
14348         wctype: Provide iswblank function.
14349         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14350         exists and is fine.
14351         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14352         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14353         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14354         * doc/posix-functions/iswblank.texi: Update.
14355
14356 2010-03-19  Bruno Haible  <bruno@clisp.org>
14357
14358         Tests of module 'pty' in C++ mode.
14359         * modules/pty-tests: New file.
14360         * tests/test-pty-c++.cc: New file.
14361         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14362
14363 2010-03-19  Eric Blake  <eblake@redhat.com>
14364
14365         logb: fix documentation
14366         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14367         1.5 declaration bug.
14368
14369         forkpty, openpty: prefer glibc's const-safe prototype
14370         * lib/forkpty.c (rpl_forkpty): New file.
14371         * lib/openpty.c (rpl_openpty): Likewise.
14372         * modules/forkpty (Files): Distribute it.
14373         * modules/openpty (Files): Likewise.
14374         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14375         check...
14376         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14377         replacement for for non-const BSD signature.
14378         * modules/pty (Makefile.am): Substitute witnesses.
14379         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14380         * tests/test-forkpty.c: Update signature check.
14381         * tests/test-openpty.c: Likewise.
14382         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14383         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14384
14385         forkpty, openpty: split functions into new modules
14386         * modules/pty (Makefile.am): Substitute new witnesses.
14387         (Libraries): Move library detection...
14388         * modules/forkpty: ...into new module.
14389         * modules/openpty: Another new module.
14390         * modules/pty-tests: Rename and split...
14391         * modules/forkpty-tests: ...to this...
14392         * modules/openpty-tests: ...and this.
14393         * tests/test-pty.c: Rename and split...
14394         * tests/test-forkpty.c: ...to this...
14395         * tests/test-openpty.c: ...and this.
14396         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14397         (gl_PTY): Split library searching...
14398         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14399         (gl_FORKPTY, gl_OPENPTY): New macros.
14400         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14401         * NEWS: Mention the split.
14402         * MODULES.html.sh (Misc): Document the modules.
14403         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14404         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14405
14406         pty: improve replacement header
14407         * lib/pty.in.h: New file.
14408         * modules/pty (Files): Ship it.
14409         (Makefile.am): Always build replacement.
14410         * m4/pty.m4: Rename...
14411         * m4/pty_h.m4: ...to this.
14412         (gl_PTY): Modernize setting of witness macros; update check of
14413         forkpty to take proper advantage of cache.
14414         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14415
14416         getopt: avoid compiler warning
14417         * lib/getopt.c (attribute_hidden): Remove unused macro.
14418
14419 2010-03-18  Bruno Haible  <bruno@clisp.org>
14420
14421         Fix link errors on Solaris 8.
14422         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14423         * modules/search-tests (test_search_c___LDADD): Likewise.
14424         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14425         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14426         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14427         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14428         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14429         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14430         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14431
14432 2010-03-18  Bruno Haible  <bruno@clisp.org>
14433
14434         Fix bug introduced on 2010-03-14.
14435         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14436         (gl_SPAWN_H): Require it.
14437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14438         Reported by Simon Josefsson.
14439
14440 2010-03-18  Bruno Haible  <bruno@clisp.org>
14441
14442         Fix typo introduced on 2009-12-31.
14443         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14444         posix_spawn_file_actions_adddup2.
14445
14446 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14447         and Eric Blake  <eblake@redhat.com>
14448
14449         test-vc-list-files-git: make more robust
14450         * tests/test-vc-list-files-git.sh: Unset problematic environment
14451         variables.  Chain commands together.
14452
14453 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14454
14455         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14456         `AC_CHECK_DECL' invocation.
14457
14458 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14459
14460         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14461         appears before executable statements. Suggested by Petr Sumbera
14462         <Petr.Sumbera@Sun.COM>.
14463
14464 2010-03-14  Bruno Haible  <bruno@clisp.org>
14465
14466         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14467         portability problems. Instead use a simpler test.
14468         (main): Check that invalid arguments are rejected only on Linux.
14469
14470 2010-03-14  Bruno Haible  <bruno@clisp.org>
14471
14472         Fix bug introduced on 2009-12-31.
14473         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14474         gl_PREREQ_SYS_H_WINSOCK2 always.
14475         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14476         SYS_SOCKET_H variable.
14477         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14478         Update comments.
14479         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14480         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14481         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14482         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14483         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14484
14485 2010-03-14  Bruno Haible  <bruno@clisp.org>
14486
14487         Fix values returned by sinl, cosl.
14488         * lib/trigl.h: Add specification comments.
14489         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14490         that combines the values from the precomputed table with the values of
14491         the Chebyshev polynomials.
14492
14493 2010-03-14  Bruno Haible  <bruno@clisp.org>
14494
14495         Fix compilation error when modules 'posix_spawn[p]' are not used.
14496         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14497         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14498
14499 2010-03-14  Bruno Haible  <bruno@clisp.org>
14500
14501         Fix compilation error on mingw when module 'time_r' is not used.
14502         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14503         is 1.
14504         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14505         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14506         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14507         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14508
14509 2010-03-14  Bruno Haible  <bruno@clisp.org>
14510
14511         Fix compilation error with Sun C.
14512         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14513         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14514         instead of GCC specific ULONG_LONG_MAX.
14515         * lib/xstrtoll.c: Likewise.
14516         * lib/xstrtoull.c: Likewise.
14517
14518 2010-03-13  Bruno Haible  <bruno@clisp.org>
14519
14520         Allow the user to disable C++ code and tests.
14521         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14522         (gl_PROG_ANSI_CXX): Require it.
14523
14524 2010-03-13  Bruno Haible  <bruno@clisp.org>
14525
14526         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14527         cases.
14528
14529 2010-03-13  Bruno Haible  <bruno@clisp.org>
14530
14531         Test that gnulib does not break the standard C++ headers.
14532         * tests/test-locale-c++2.cc: New file.
14533         * modules/locale-tests (Files): Add it.
14534         (Makefile.am): Compile it for test-locale-c++.
14535         * tests/test-math-c++2.cc: New file.
14536         * modules/math-tests (Files): Add it.
14537         (Makefile.am): Compile it for test-math-c++.
14538         * tests/test-signal-c++2.cc: New file.
14539         * modules/signal-tests (Files): Add it.
14540         (Makefile.am): Compile it for test-signal-c++.
14541         * tests/test-stdio-c++2.cc: New file.
14542         * modules/stdio-tests (Files): Add it.
14543         (Makefile.am): Compile it for test-stdio-c++.
14544         * tests/test-stdlib-c++2.cc: New file.
14545         * modules/stdlib-tests (Files): Add it.
14546         (Makefile.am): Compile it for test-stdlib-c++.
14547         * tests/test-string-c++2.cc: New file.
14548         * modules/string-tests (Files): Add it.
14549         (Makefile.am): Compile it for test-string-c++.
14550         * tests/test-time-c++2.cc: New file.
14551         * modules/time-tests (Files): Add it.
14552         (Makefile.am): Compile it for test-time-c++.
14553         Reported by John W. Eaton <jwe@gnu.org>.
14554
14555 2010-03-13  Bruno Haible  <bruno@clisp.org>
14556
14557         * gnulib-tool (func_usage): Clarify which options are available for
14558         --create-testdir and --create-megatestdir.
14559
14560 2010-03-13  Bruno Haible  <bruno@clisp.org>
14561
14562         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14563         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14564         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14565         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14566         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14567         when appropriate.
14568         Reported by Jim Meyering.
14569
14570 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14571
14572         * gnulib-tool (func_import): Explain origin of code.
14573
14574 2010-03-12  Bruno Haible  <bruno@clisp.org>
14575
14576         Fix problem with automake's definition of CXXLINK.
14577         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14578         Reported by Simon Josefsson and Ludovic Courtès.
14579
14580 2010-03-12  Bruno Haible  <bruno@clisp.org>
14581
14582         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14583         stable releases.
14584
14585 2010-03-11  Bruno Haible  <bruno@clisp.org>
14586
14587         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14588         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14589         whether the system provides one variant or multiple variants of the
14590         function.
14591         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14592         C++ compilers.
14593         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14594         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14595         Reported by Jim Meyering.
14596
14597 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14598
14599         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14600
14601 2010-03-08  Bruno Haible  <bruno@clisp.org>
14602
14603         gnulib-tool: Add support for --libtool in --create-testdir.
14604         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14605         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14606
14607 2010-03-08  Eric Blake  <eblake@redhat.com>
14608
14609         gnulib-tool.texi: mention possibility of git submodule
14610         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14611         submodules.
14612         * doc/.gitignore: Ignore another generated file.
14613
14614 2010-03-08  Karl Berry  <karl@gnu.org>
14615
14616         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14617         of committing gnulib files while skipping others.
14618
14619 2010-03-07  Bruno Haible  <bruno@clisp.org>
14620
14621         Tests of module 'wctype' in C++ mode.
14622         * tests/test-wctype-c++.cc: New file.
14623         * modules/wctype-tests (Files): Add it and tests/signature.h.
14624         (Depends-on): Add ansi-c++-opt.
14625         (Makefile.am): Arrange to compile and run test-wctype-c++.
14626
14627         Tests of module 'wchar' in C++ mode.
14628         * tests/test-wchar-c++.cc: New file.
14629         * modules/wchar-tests (Files): Add it and tests/signature.h.
14630         (Depends-on): Add ansi-c++-opt.
14631         (Makefile.am): Arrange to compile and run test-wchar-c++.
14632         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14633         gl_MODULE_INDICATOR.
14634
14635         Tests of module 'unistd' in C++ mode.
14636         * tests/test-unistd-c++.cc: New file.
14637         * modules/unistd-tests (Files): Add it and tests/signature.h.
14638         (Depends-on): Add ansi-c++-opt.
14639         (Makefile.am): Arrange to compile and run test-unistd-c++.
14640         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14641         gl_MODULE_INDICATOR.
14642
14643         Tests of module 'time' in C++ mode.
14644         * tests/test-time-c++.cc: New file.
14645         * modules/time-tests (Files): Add it and tests/signature.h.
14646         (Depends-on): Add ansi-c++-opt.
14647         (Makefile.am): Arrange to compile and run test-time-c++.
14648         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14649
14650         Tests of module 'sys_time' in C++ mode.
14651         * tests/test-sys_time-c++.cc: New file.
14652         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14653         (Depends-on): Add ansi-c++-opt.
14654         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14655         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14656         gl_MODULE_INDICATOR.
14657
14658         Tests of module 'sys_stat' in C++ mode.
14659         * tests/test-sys_stat-c++.cc: New file.
14660         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14661         (Depends-on): Add ansi-c++-opt.
14662         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14663         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14664         gl_MODULE_INDICATOR.
14665
14666         Tests of module 'sys_socket' in C++ mode.
14667         * tests/test-sys_socket-c++.cc: New file.
14668         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14669         (Depends-on): Add ansi-c++-opt.
14670         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14671         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14672         gl_MODULE_INDICATOR.
14673
14674         Tests of module 'sys_select' in C++ mode.
14675         * tests/test-sys_select-c++.cc: New file.
14676         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14677         (Depends-on): Add ansi-c++-opt.
14678         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14679         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14680         gl_MODULE_INDICATOR.
14681
14682         Tests of module 'sys_ioctl' in C++ mode.
14683         * tests/test-sys_ioctl-c++.cc: New file.
14684         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14685         (Depends-on): Add ansi-c++-opt.
14686         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14687         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14688         gl_MODULE_INDICATOR.
14689
14690         Tests of module 'string' in C++ mode.
14691         * tests/test-string-c++.cc: New file.
14692         * modules/string-tests (Files): Add it and tests/signature.h.
14693         (Depends-on): Add ansi-c++-opt.
14694         (Makefile.am): Arrange to compile and run test-string-c++.
14695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14696         gl_MODULE_INDICATOR.
14697
14698         Tests of module 'stdlib' in C++ mode.
14699         * tests/test-stdlib-c++.cc: New file.
14700         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14701         (Depends-on): Add ansi-c++-opt.
14702         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14703         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14704         gl_MODULE_INDICATOR.
14705
14706         Tests of module 'stdio' in C++ mode.
14707         * tests/test-stdio-c++.cc: New file.
14708         * modules/stdio-tests (Files): Add it and tests/signature.h.
14709         (Depends-on): Add ansi-c++-opt.
14710         (Makefile.am): Arrange to compile and run test-stdio-c++.
14711         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14712         gl_MODULE_INDICATOR.
14713
14714         Tests of module 'spawn' in C++ mode.
14715         * tests/test-spawn-c++.cc: New file.
14716         * modules/spawn-tests (Files): Add it and tests/signature.h.
14717         (Depends-on): Add ansi-c++-opt.
14718         (Makefile.am): Arrange to compile and run test-spawn-c++.
14719         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14720         gl_MODULE_INDICATOR.
14721
14722         Tests of module 'signal' in C++ mode.
14723         * tests/test-signal-c++.cc: New file.
14724         * modules/signal-tests (Files): Add it and tests/signature.h.
14725         (Depends-on): Add ansi-c++-opt.
14726         (Makefile.am): Arrange to compile and run test-signal-c++.
14727         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14728         gl_MODULE_INDICATOR.
14729
14730         Tests of module 'search' in C++ mode.
14731         * tests/test-search-c++.cc: New file.
14732         * modules/search-tests (Files): Add it and tests/signature.h.
14733         (Depends-on): Add ansi-c++-opt.
14734         (Makefile.am): Arrange to compile and run test-search-c++.
14735         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14736         gl_MODULE_INDICATOR.
14737
14738         Tests of module 'math' in C++ mode.
14739         * tests/test-math-c++.cc: New file.
14740         * modules/math-tests (Files): Add it and tests/signature.h.
14741         (Depends-on): Add ansi-c++-opt.
14742         (Makefile.am): Arrange to compile and run test-math-c++.
14743         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14744
14745         Tests of module 'locale' in C++ mode.
14746         * tests/test-locale-c++.cc: New file.
14747         * modules/locale-tests (Files): Add it and tests/signature.h.
14748         (Depends-on): Add ansi-c++-opt.
14749         (Makefile.am): Arrange to compile and run test-locale-c++.
14750         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14751         gl_MODULE_INDICATOR.
14752
14753         Tests of module 'langinfo' in C++ mode.
14754         * tests/test-langinfo-c++.cc: New file.
14755         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14756         (Depends-on): Add ansi-c++-opt.
14757         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14758         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14759         gl_MODULE_INDICATOR.
14760
14761         Tests of module 'iconv-h' in C++ mode.
14762         * tests/test-iconv-h-c++.cc: New file.
14763         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14764         (Depends-on): Add ansi-c++-opt.
14765         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14766
14767         Tests of module 'glob' in C++ mode.
14768         * tests/test-glob-c++.cc: New file.
14769         * modules/glob-tests (Files): Add it.
14770         (Depends-on): Add ansi-c++-opt.
14771         (Makefile.am): Arrange to compile and run test-glob-c++.
14772
14773         Tests of module 'fcntl-h' in C++ mode.
14774         * tests/test-fcntl-h-c++.cc: New file.
14775         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14776         (Depends-on): Add ansi-c++-opt.
14777         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14778         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14779         gl_MODULE_INDICATOR.
14780
14781         Tests of module 'dirent' in C++ mode.
14782         * tests/test-dirent-c++.cc: New file.
14783         * modules/dirent-tests (Files): Add it and tests/signature.h.
14784         (Depends-on): Add ansi-c++-opt.
14785         (Makefile.am): Arrange to compile and run test-dirent-c++.
14786         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14787         gl_MODULE_INDICATOR.
14788
14789         New module 'ansi-c++-opt'.
14790         * modules/ansi-c++-opt: New file.
14791         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14792
14793         Document C++ namespace mode.
14794         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14795
14796         wctype: Avoid #define replacements in C++ mode.
14797         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14798         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14799         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14800         In C++, define a namespaced alias symbol.
14801         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14802         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14803         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14804         rule.
14805
14806         wchar: Avoid #define replacements in C++ mode.
14807         * lib/wchar.in.h: Include c++defs.h.
14808         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14809         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14810         symbol.
14811         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14812         * modules/wchar (Depends-on): Add c++defs.
14813         (Makefile.am): Update wchar.h rule.
14814
14815         unistd: Avoid #define replacements in C++ mode.
14816         * lib/unistd.in.h: Include c++defs.h.
14817         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14818         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14819         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14820         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14821         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14822         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14823         symbol.
14824         (environ): Update.
14825         * modules/unistd (Depends-on): Add c++defs.
14826         (Makefile.am): Update unistd.h rule.
14827
14828         time: Avoid #define replacements in C++ mode.
14829         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14830         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14831         define a namespaced alias symbol.
14832         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14833         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14834         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14835         * modules/time (Depends-on): Add c++defs, warn-on-use.
14836         (Makefile.am): Update time.h rule.
14837         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14838         * modules/nanosleep (configure.ac): Likewise.
14839         * modules/strptime (configure.ac): Likewise.
14840         * modules/timegm (configure.ac): Likewise.
14841
14842         sys_time: Avoid #define replacements in C++ mode.
14843         * lib/sys_time.in.h: Include c++defs.h.
14844         (gettimeofday): In C++, define a namespaced alias symbol.
14845         * modules/sys_time (Depends-on): Add c++defs.
14846         (Makefile.am): Update sys/time.h rule.
14847
14848         sys_stat: Avoid #define replacements in C++ mode.
14849         * lib/sys_stat.in.h: Include c++defs.h.
14850         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14851         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14852         namespaced alias symbol.
14853         In C++, define a namespaced alias symbol.
14854         * modules/sys_stat (Depends-on): Add c++defs.
14855         (Makefile.am): Update sys/stat.h rule.
14856
14857         sys_socket: Avoid #define replacements in C++ mode.
14858         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14859         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14860         definitions also when the system has a <sys/socket.h>.
14861         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14862         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14863         In C++, define a namespaced alias symbol.
14864         * modules/sys_socket (Depends-on): Add c++defs.
14865         (Makefile.am): Update sys/socket.h rule.
14866
14867         sys_select: Avoid #define replacements in C++ mode.
14868         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14869         definitions also when the system has a <sys/select.h>.
14870         (select): In C++, define a namespaced alias symbol.
14871         * modules/sys_select (Depends-on): Add c++defs.
14872         (Makefile.am): Update sys/select.h rule.
14873
14874         sys_ioctl: Avoid #define replacements in C++ mode.
14875         * lib/sys_ioctl.in.h: Include c++defs.h.
14876         (ioctl): In C++, define a namespaced alias symbol.
14877         * modules/sys_ioctl (Depends-on): Add c++defs.
14878         (Makefile.am): Update sys/ioctl.h rule.
14879
14880         string: Avoid #define replacements in C++ mode.
14881         * lib/string.in.h: Include c++defs.h.
14882         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14883         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14884         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14885         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14886         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14887         * modules/string (Depends-on): Add c++defs.
14888         (Makefile.am): Update string.h rule.
14889
14890         stdlib: Avoid #define replacements in C++ mode.
14891         * lib/stdlib.in.h: Include c++defs.h.
14892         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14893         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14894         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14895         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14896         symbol.
14897         * modules/stdlib (Depends-on): Add c++defs.
14898         (Makefile.am): Update stdlib.h rule.
14899
14900         stdio: Avoid #define replacements in C++ mode.
14901         * lib/stdio.in.h: Include c++defs.h.
14902         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14903         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14904         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14905         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14906         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14907         namespaced alias symbol.
14908         * modules/stdio (Depends-on): Add c++defs.
14909         (Makefile.am): Update stdio.h rule.
14910
14911         spawn: Avoid #define replacements in C++ mode.
14912         * lib/spawn.in.h: Include c++defs.h.
14913         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14914         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14915         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14916         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14917         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14918         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14919         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14920         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14921         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14922         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14923         In C++, define a namespaced alias symbol.
14924         * modules/spawn (Depends-on): Add c++defs.
14925         (Makefile.am): Update spawn.h rule.
14926
14927         signal: Avoid #define replacements in C++ mode.
14928         * lib/signal.in.h: Include c++defs.h.
14929         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14930         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14931         namespaced alias symbol.
14932         * modules/signal (Depends-on): Add c++defs.
14933         (Makefile.am): Update signal.h rule.
14934
14935         search: Avoid #define replacements in C++ mode.
14936         * lib/search.in.h: Include c++defs.h.
14937         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14938         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14939         symbol.
14940         * modules/search (Depends-on): Add c++defs.
14941         (Makefile.am): Update search.h rule.
14942
14943         math: Avoid #define replacements in C++ mode.
14944         * lib/math.in.h: Include c++defs.h.
14945         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14946         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14947         trunc, truncl): In C++, define a namespaced alias symbol.
14948         * modules/math (Depends-on): Add c++defs.
14949         (Makefile.am): Update math.h rule.
14950
14951         locale: Avoid #define replacements in C++ mode.
14952         * lib/locale.in.h: Include c++defs.h.
14953         (duplocale): In C++, define a namespaced alias symbol.
14954         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14955         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14956         * modules/locale (Depends-on): Add c++defs.
14957         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14958
14959         langinfo: Avoid #define replacements in C++ mode.
14960         * lib/langinfo.in.h: Include c++defs.h.
14961         (nl_langinfo): In C++, define a namespaced alias symbol.
14962         * modules/langinfo (Depends-on): Add c++defs.
14963         (Makefile.am): Update langinfo.h rule.
14964
14965         iconv-h: Avoid #define replacements in C++ mode.
14966         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14967         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14968         symbol.
14969         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14970         whenever iconv is present.
14971         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14972         (Makefile.am): Update iconv.h rule.
14973
14974         glob: Avoid #define replacements in C++ mode.
14975         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14976         (_gl_glob_errfunc_fn): New type.
14977         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14978         symbol.
14979         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14980         (Makefile.am): Update glob.h rule.
14981
14982         fcntl-h: Avoid #define replacements in C++ mode.
14983         * lib/fcntl.in.h: Include c++defs.h.
14984         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14985         * modules/fcntl-h (Depends-on): Add c++defs.
14986         (Makefile.am): Update fcntl.h rule.
14987
14988         dirent: Avoid #define replacements in C++ mode.
14989         * lib/dirent.in.h: Include c++defs.h.
14990         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14991         namespaced alias symbol.
14992         (dirfd): Update declaration.
14993         * modules/dirent (Depends-on): Add c++defs.
14994         (Makefile.am): Update dirent.h rule.
14995
14996         ctype: Make it usable in C++ code.
14997         * lib/ctype.in.h: Include c++defs.h.
14998         (isblank): Declare as extern "C".
14999         * modules/ctype (Depends-on): Add c++defs.
15000         (Makefile.am): Update ctype.h rule.
15001
15002         New module 'c++defs'.
15003         * modules/c++defs: New file.
15004         * build-aux/c++defs.h: New file.
15005         Reported by John W. Eaton <jwe@gnu.org>.
15006
15007 2010-03-07  Bruno Haible  <bruno@clisp.org>
15008
15009         logb: Provide missing declaration for Cygwin.
15010         * lib/math.in.h (logb): New declaration.
15011         * m4/logb.m4: New file.
15012         * modules/logb (Files): Add m4/logb.m4.
15013         (Depends-on): Add math.
15014         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15015         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15017         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15018         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15019
15020 2010-03-07  Bruno Haible  <bruno@clisp.org>
15021
15022         Fix test-cond link error.
15023         * tests/test-cond.c: Include <stdio.h>.
15024
15025 2010-03-07  Bruno Haible  <bruno@clisp.org>
15026
15027         Fix test-dirent-safer link error.
15028         * modules/dirent-safer-tests (Makefile.am): Define
15029         test_dirent_safer_LDADD.
15030
15031 2010-03-07  Bruno Haible  <bruno@clisp.org>
15032
15033         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15034         among default module list.
15035
15036 2010-03-07  Bruno Haible  <bruno@clisp.org>
15037
15038         Fix link error on platforms with GNU libiconv.
15039         * modules/unistr/u8-strcoll-tests (Makefile): Define
15040         test_u8_strcoll_LDADD.
15041         * modules/unistr/u16-strcoll-tests (Makefile): Define
15042         test_u16_strcoll_LDADD.
15043         * modules/unistr/u32-strcoll-tests (Makefile): Define
15044         test_u32_strcoll_LDADD.
15045
15046 2010-03-07  Bruno Haible  <bruno@clisp.org>
15047
15048         Use POSIX declarations for socket functions.
15049         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15050         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15051         rpl_sendto): Change declaration to match POSIX.
15052         * lib/connect.c (rpl_connect): Likewise.
15053         * lib/accept.c (rpl_accept): Likewise.
15054         * lib/bind.c (rpl_bind): Likewise.
15055         * lib/getpeername.c (rpl_getpeername): Likewise.
15056         * lib/getsockname.c (rpl_getsockname): Likewise.
15057         * lib/recv.c (rpl_recv): Likewise.
15058         * lib/send.c (rpl_send): Likewise.
15059         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15060         * lib/sendto.c (rpl_sendto): Likewise.
15061
15062 2010-03-06  Bruno Haible  <bruno@clisp.org>
15063
15064         Clarify access, euidaccess, faccessat.
15065         * doc/posix-functions/faccessat.texi: Mention security problem under
15066         "Other problems", not "Portability problems".
15067         * doc/posix-functions/access.texi: Likewise. Mention a related security
15068         problem.
15069         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15070         * lib/euidaccess.c: Add comments about platforms.
15071         * lib/unistd.in.h (access, euidaccess): Add warnings.
15072
15073 2010-03-07  Bruno Haible  <bruno@clisp.org>
15074
15075         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15076         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15077         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15078         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15079         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15080         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15081         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15082         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15083         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15084         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15085         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15086         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15087         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15088         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15089         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15090         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15091         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15092         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15093         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15094         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15095         Likewise.
15096         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15097         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15098         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15099         Likewise.
15100         * tests/test-spawn.c (main): Make it work when
15101         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15102
15103 2010-03-07  Bruno Haible  <bruno@clisp.org>
15104
15105         Fix incorrect Makefile.am generation in German locale.
15106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15107         Execute sed command with character range in C locale.
15108
15109 2010-03-06  Bruno Haible  <bruno@clisp.org>
15110
15111         Tests for module 'iconv-h'.
15112         * modules/iconv-h-tests: New file.
15113         * tests/test-iconv-h.c: New file.
15114
15115         New module 'iconv-h'.
15116         * modules/iconv-h: New file.
15117         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15118         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15119         (configure.ac): Remove gl_ICONV_H.
15120         (Makefile.am): Remove rule for iconv.h.
15121
15122 2010-03-06  Bruno Haible  <bruno@clisp.org>
15123
15124         More consistent naming of *.m4 files.
15125         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15126         * modules/wctype (Files): Update.
15127
15128         More consistent naming of *.m4 files.
15129         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15130         * modules/wchar (Files): Update.
15131
15132 2010-03-06  Jim Meyering  <meyering@redhat.com>
15133
15134         euidaccess: relax license to LGPLv2+
15135         * modules/euidaccess (License): Relax to LGPLv2+.
15136
15137 2010-03-06  Bruno Haible  <bruno@clisp.org>
15138
15139         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15140         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15141         (Makefile.am): Augment lib_SOURCES instead.
15142
15143 2010-03-04  Jim Meyering  <meyering@redhat.com>
15144
15145         utime: remove obsolete module
15146         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15147         unnecessary for years, and has been marked as obsolete for 10 months.
15148         * modules/utime: Remove file.
15149         * lib/utime.c: Remove file.
15150         * m4/utime.m4: Remove file.
15151         * m4/utimes-null.m4: Remove file.
15152         * doc/posix-functions/utime.texi (utime): Remove reference to
15153         the module.  Move the sole "fixed by gnulib" item into the
15154         "problems not fixed by Gnulib" list.
15155         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15156
15157 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15158
15159         * modules/exit (License): Relax license to LGPLv2+.
15160         (Status): Mark as obsolete.
15161         * NEWS: Mention deprecated 'exit' module.
15162         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15163         of now obsolete 'exit'.
15164
15165 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15166
15167         fts-lgpl: remove unused module
15168         * modules/fts-lgpl: Remove.
15169         * MODULES.html.sh (func_all_modules): Adjust.
15170         * check-module (find_included_lib_files): Adjust.
15171         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15172
15173 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15174
15175         copy-acl: enhance Solaris ACL error handling
15176         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15177         * lib/set-mode-acl.c (qset_acl): Likewise.
15178
15179 2010-03-02  Bruno Haible  <bruno@clisp.org>
15180
15181         spawn: Don't override the system defined values on FreeBSD 8.
15182         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15183         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15184         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15185         if HAVE_POSIX_SPAWN is 1.
15186         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15187
15188 2010-03-01  Bruno Haible  <bruno@clisp.org>
15189
15190         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15191         regarding Automake.
15192
15193 2010-02-25  Bruno Haible  <bruno@clisp.org>
15194
15195         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15196         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15197         setting, not afterwards.
15198         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15199
15200 2010-02-24  Eric Blake  <eblake@redhat.com>
15201
15202         bootstrap, git-version-gen: use timestamp
15203         * build-aux/git-version-gen (scriptversion): Force UTC.
15204         * build-aux/bootstrap (scriptversion): New variable.
15205
15206         bootstrap: allow older git
15207         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15208         older than 1.6.4.  Requested by the libvirt project.
15209
15210 2010-02-23  Eric Blake  <eblake@redhat.com>
15211
15212         warn-on-use: work with old autoconf
15213         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15214         AS_VAR semantics of autoconf 2.60.
15215         Reported by Bruno Haible.
15216
15217         bootstrap: improve some comments
15218         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15219         clarification comments.
15220
15221         gettimeofday: provide correct function
15222         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15223         when replacement is declared, otherwise provide gettimeofday.
15224         Reported by Michael Goffioul.
15225
15226 2010-02-23  Jim Meyering  <meyering@redhat.com>
15227
15228         lib-ignore: relax license to "unlimited", not LGPLv2+
15229         * modules/lib-ignore (License): Relax to "unlimited".
15230
15231 2010-02-23  Jim Meyering  <meyering@redhat.com>
15232
15233         lib-ignore: relax license to LGPLv2+
15234         * modules/lib-ignore (License): Relax to LGPLv2+.
15235
15236 2010-02-22  Eric Blake  <eblake@redhat.com>
15237
15238         lseek: avoid bash 3.2 broken pipe bug
15239         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15240         warning from bash 3.2.
15241         Reported by Ben Pfaff, with analysis from Bruno Haible.
15242
15243         bootstrap: support non-FSF copyright holder
15244         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15245         bootstrap.conf override of COPYRIGHT_HOLDER.
15246         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15247
15248         bootstrap: interoperate with gettext 0.14.1
15249         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15250
15251         bootstrap: allow for alternate submodule location
15252         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15253         hardcoding submodule location.
15254         (gnulib_mk): Allow direct use of Makefile.am.
15255
15256         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15257         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15258         rather than reconfiguring where the submodule points.
15259
15260         gettimeofday: restore support for platforms that lack function
15261         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15262         replacement if function is missing.
15263         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15264         * modules/sys_time (Makefile.am): Substitute it.
15265         * lib/sys_time.in.h (gettimeofday): Check it.
15266         Reported by Michael Goffioul.
15267
15268 2010-02-21  Bruno Haible  <bruno@clisp.org>
15269
15270         * lib/stdio.in.h (obstack_printf): Fix typo.
15271
15272 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15273
15274         vc-list-files: use bzr ls's -R option
15275         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15276         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15277
15278 2010-02-21  Jim Meyering  <meyering@redhat.com>
15279
15280         init.sh: fix EXEEXT shims to work also for names like test-prog
15281         * tests/init.sh: Re-exec a better shell, when needed.
15282         If the current shell lacks support for posix $(...), an init.sh-using
15283         test will now try to find a shell that supports that.  If EXEEXT is
15284         nonempty, we also require support for hyphen-in-alias-name and shell
15285         substitutions like ${var#glob}.  Failure to find such a shell results
15286         in a skipped test.
15287
15288 2010-02-21  Bruno Haible  <bruno@clisp.org>
15289
15290         Really work around around "broken pipe" error message from bash 3.2.
15291         * gnulib-tool (func_reset_sigpipe): Remove function.
15292         (echo): In bash 3.2, define to a function that uses printf.
15293         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15294
15295 2010-02-20  Bruno Haible  <bruno@clisp.org>
15296
15297         Restore support for automake 1.9.6 with autoconf 2.61.
15298         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15299         Reported by James Youngman <jay@gnu.org>.
15300
15301 2010-02-20  Bruno Haible  <bruno@clisp.org>
15302
15303         Improve *printf warning condition.
15304         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15305         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15306         and the function is overridden due to SIGPIPE emulation.
15307
15308 2010-02-20  Bruno Haible  <bruno@clisp.org>
15309
15310         * lib/stdio.in.h: Tweak comments.
15311
15312 2010-02-19  Bruno Haible  <bruno@clisp.org>
15313
15314         Make it easier to find modules. New gnulib-tool option '--find'.
15315         * gnulib-tool: New option --find.
15316         (func_usage): Document it.
15317         (func_sanitize_modulelist): New function, extracted from
15318         func_all_modules.
15319         (func_all_modules): Invoke it.
15320         * doc/gnulib-tool.texi (Which modules?): New node.
15321
15322 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15323
15324         * lib/sys_select.in.h: Provide select replacement even if
15325         sys/select.h exists on a system, for Interix.
15326
15327 2010-02-18  Jim Meyering  <meyering@redhat.com>
15328
15329         init.sh: don't use $(...) just yet
15330         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15331         to accommodate e.g., Solaris' /bin/sh.
15332
15333 2010-02-17  Bruno Haible  <bruno@clisp.org>
15334
15335         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15336         Reported by Ludovic Courtès <ludo@gnu.org>.
15337
15338 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15339
15340         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15341         linking with -lintl.
15342
15343 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15344
15345         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15346         if not provided by the system's netdb.h.  Reported by
15347         ludo@gnu.org (Ludovic Courtès).
15348
15349 2010-02-15  Jim Meyering  <meyering@redhat.com>
15350
15351         init.sh: improve portability and efficiency
15352         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15353         "dummy" in a for loop.
15354         Use '!', not '^' to select the complement of a character set used
15355         in a "case" statement.
15356         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15357         Suggestions from Eric Blake.
15358
15359         init.sh: automatically accommodate programs with the .exe suffix
15360         Automatically arrange for an invocation of "prog" to execute the
15361         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15362         may use the simpler "prog", yet still work when built on a system
15363         that requires specifying the added suffix.
15364         Do this by constructing a function named "prog" that invokes
15365         "prog.exe" for each .exe file in selected directories.
15366         * tests/init.sh (find_exe_basenames_): New function.
15367         (create_exe_shim_functions_): New function.
15368         (path_prepend_): Use it.
15369
15370         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15371         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15372         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15373
15374 2010-02-14  Jim Meyering  <meyering@redhat.com>
15375
15376         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15377         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15378         (sc_prohibit_hash_pjw_without_use): New rule.
15379
15380         maint.mk: allow the default upload destination dir to be overridden
15381         * top/maint.mk (upload_dest_dir_): Define with a default that
15382         preserves the status quo.
15383         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15384         Reported by Peter Simons.
15385
15386         maint.mk: prohibit inclusion of "hash.h" without_use
15387         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15388
15389 2010-02-10  Jim Meyering  <meyering@redhat.com>
15390
15391         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15392         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15393
15394 2010-02-09  Eric Blake  <ebb9@byu.net>
15395         and Bruno Haible  <bruno@clisp.org>
15396
15397         obstack-printf-posix: ensure declaration
15398         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15399         extracted from gl_FUNC_OBSTACK_PRINTF.
15400         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15401         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15402         Likewise.
15403         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15404         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15405         0.
15406
15407 2010-02-08  Bruno Haible  <bruno@clisp.org>
15408
15409         gnulib-tool: Fix typo in 2010-02-07 commit.
15410         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15411         Reported by Eric Blake.
15412
15413 2010-02-07  Bruno Haible  <bruno@clisp.org>
15414
15415         gnulib-tool: Fix up caching patches.
15416         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15417         option --no-cache. Use associative arrays when supported by the shell.
15418         (sed_comments): New variable.
15419         (modcache): Renamed from do_cache.
15420         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15421         abbreviate unnecessarily.
15422         (have_associative): New variable.
15423         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15424         way also for ksh and zsh.
15425         (func_init_sed_convert_to_cache_statements): New function, extracted
15426         from func_cache_lookup_module. Add support for associative arrays.
15427         Don't set the c_MODULE_cached variable here. Ignore all lines before
15428         the first field header. Remove only the final newline, not all trailing
15429         newlines. Support empty fields correctly. Limit the use of 'eval' to
15430         assignments.
15431         (func_get_description, func_get_status, func_get_notice,
15432         func_get_applicability, func_get_filelist, func_get_dependencies,
15433         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15434         func_get_automake_snippet, func_get_include_directive,
15435         func_get_link_directive, func_get_license, func_get_maintainer):
15436         Update documentation. List the unoptimized code first. Add support for
15437         associative arrays. Limit the use of 'eval' to assignments.
15438         (func_get_applicability): Undo stylistic pessimisations.
15439         (func_get_automake_snippet, func_get_include_directive): Reduce code
15440         duplication.
15441         (func_modules_transitive_closure, func_modules_add_dummy,
15442         func_modules_notice, func_modules_to_filelist, func_add_file,
15443         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15444         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15445         func_create_testdir, func_create_megatestdir): Update documentation.
15446
15447 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15448
15449         * gnulib-tool (func_cache_lookup_module): Store the module name
15450         belonging to the cache variable; error out if two different
15451         module names map to the same cache variable name.
15452
15453 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15454
15455         gnulib-tool: Make caching optional.
15456         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15457         Update matching short versions of --no-changelog.
15458         (func_usage): Update.
15459         (sed_extract_cache_prog): Renamed from ...
15460         (sed_extract_prog): ... this; revert to old extraction script.
15461         (func_get_description, func_get_status)
15462         (func_get_notice, func_get_applicability, func_get_filelist)
15463         (func_get_dependencies, func_get_autoconf_early_snippet)
15464         (func_get_autoconf_snippet, func_get_automake_snippet)
15465         (func_get_include_directive, func_get_link_directive)
15466         (func_get_license, func_get_maintainer): If $do_cache is false,
15467         use old, non-caching extraction scripts.
15468         Suggestion by Bruno Haible.
15469
15470 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15471
15472         gnulib-tool: cache module metainformation.
15473         * gnulib-tool (sed_extract_prog): Match newline before each
15474         header, and rewrite header to a shell variable suffix.
15475         (func_cache_var, func_cache_lookup_module): New functions,
15476         to turn a module name into a cache variable prefix, and to
15477         look up and cache module metainformation.
15478         (func_get_description, func_get_status)
15479         (func_get_notice, func_get_applicability, func_get_filelist)
15480         (func_get_dependencies, func_get_autoconf_early_snippet)
15481         (func_get_autoconf_snippet, func_get_automake_snippet)
15482         (func_get_include_directive, func_get_link_directive)
15483         (func_get_license, func_get_maintainer): Use
15484         func_cache_lookup_module.
15485
15486 2010-02-07  Bruno Haible  <bruno@clisp.org>
15487
15488         fnctl: Fix missing dependency.
15489         * modules/fcntl (Depends-on): Add getdtablesize.
15490         Reported by John W. Eaton <jwe@gnu.org>.
15491
15492 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15493
15494         Argp: fix recognition of short alias options.
15495
15496         * lib/argp-parse.c (convert_options): Fix improper use of
15497         `|' between character values.
15498         * tests/test-argp.c (group1_option): New alias option
15499         --read (-r).
15500         (group1_parser): Special handling for 'r'.
15501         (test15): New test case.
15502         (test_fun): Add test15.
15503         * tests/test-argp-2.sh: Update expected --help and --usage
15504         outputs.
15505
15506 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15507
15508         * tests/test-argp.c: Fix indentation.
15509
15510 2010-02-04  Eric Blake  <ebb9@byu.net>
15511
15512         gettimeofday: expose type of second argument
15513         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15514         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15515         * tests/test-gettimeofday.c: Use it to silence warning.
15516         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15517         the issue.
15518
15519 2010-02-03  Jim Meyering  <meyering@redhat.com>
15520
15521         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15522         * lib/regcomp.c (TYPE_SIGNED): Define.
15523         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15524
15525         regcomp.c: avoid a new -Wshadow warning
15526         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15527
15528 2010-02-01  Jim Meyering  <meyering@redhat.com>
15529
15530         removing useless parentheses in cpp #define directives
15531         For motivation, see commit c0221df4, "define STREQ(a,b)
15532         consistently, removing useless parentheses"
15533         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15534         * lib/mountlist.c (MNT_IGNORE): Likewise.
15535         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15536
15537 2010-02-01  Eric Blake  <ebb9@byu.net>
15538
15539         sys_time: use link-warning
15540         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15541         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15542         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15543         * modules/sys_time (Depends-on): Add warn-on-use.
15544         (Makefile.am): Always build replacement.
15545         (configure.ac): Update substitutions.
15546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15547         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15548         bother with SYS_TIME_H.
15549         * modules/gettimeofday (configure.ac): Declare indicator.
15550         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15551         in use.
15552
15553         closein-tests: silence compiler warning
15554         * tests/test-closein.c (main): Ignore fread result.
15555         * modules/closein-tests (Depends-on): Add ignore-value.
15556
15557         tests: silence warning about system return
15558         * tests/test-areadlink-with-size.c (main): Ignore system result.
15559         * tests/test-areadlink.c (main): Likewise.
15560         * tests/test-areadlinkat-with-size.c (main): Likewise.
15561         * tests/test-areadlinkat.c (main): Likewise.
15562         * tests/test-canonicalize-lgpl.c (main): Likewise.
15563         * tests/test-canonicalize.c (main): Likewise.
15564         * tests/test-chown.c (main): Likewise.
15565         * tests/test-fchownat.c (main): Likewise.
15566         * tests/test-fdutimensat.c (main): Likewise.
15567         * tests/test-fstatat.c (main): Likewise.
15568         * tests/test-futimens.c (main): Likewise.
15569         * tests/test-lchown.c (main): Likewise.
15570         * tests/test-link.c (main): Likewise.
15571         * tests/test-linkat.c (main): Likewise.
15572         * tests/test-lstat.c (main): Likewise.
15573         * tests/test-mkdir.c (main): Likewise.
15574         * tests/test-mkdirat.c (main): Likewise.
15575         * tests/test-mkfifo.c (main): Likewise.
15576         * tests/test-mkfifoat.c (main): Likewise.
15577         * tests/test-mknod.c (main): Likewise.
15578         * tests/test-readlink.c (main): Likewise.
15579         * tests/test-remove.c (main): Likewise.
15580         * tests/test-rename.c (main): Likewise.
15581         * tests/test-renameat.c (main): Likewise.
15582         * tests/test-rmdir.c (main): Likewise.
15583         * tests/test-symlink.c (main): Likewise.
15584         * tests/test-symlinkat.c (main): Likewise.
15585         * tests/test-unlink.c (main): Likewise.
15586         * tests/test-unlinkat.c (main): Likewise.
15587         * tests/test-utimens.c (main): Likewise.
15588         * tests/test-utimensat.c (main): Likewise.
15589         * modules/areadlink-tests (Depends-on): Add ignore-value.
15590         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15591         * modules/areadlinkat-tests (Depends-on): Likewise.
15592         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15593         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15594         * modules/canonicalize-tests (Depends-on): Likewise.
15595         * modules/chown-tests (Depends-on): Likewise.
15596         * modules/fdutimensat-tests (Depends-on): Likewise.
15597         * modules/futimens-tests (Depends-on): Likewise.
15598         * modules/lchown-tests (Depends-on): Likewise.
15599         * modules/link-tests (Depends-on): Likewise.
15600         * modules/linkat-tests (Depends-on): Likewise.
15601         * modules/lstat-tests (Depends-on): Likewise.
15602         * modules/mkdir-tests (Depends-on): Likewise.
15603         * modules/mkfifo-tests (Depends-on): Likewise.
15604         * modules/mkfifoat-tests (Depends-on): Likewise.
15605         * modules/mknod-tests (Depends-on): Likewise.
15606         * modules/openat-tests (Depends-on): Likewise.
15607         * modules/readlink-tests (Depends-on): Likewise.
15608         * modules/remove-tests (Depends-on): Likewise.
15609         * modules/rename-tests (Depends-on): Likewise.
15610         * modules/renameat-tests (Depends-on): Likewise.
15611         * modules/rmdir-tests (Depends-on): Likewise.
15612         * modules/symlink-tests (Depends-on): Likewise.
15613         * modules/symlinkat-tests (Depends-on): Likewise.
15614         * modules/unlink-tests (Depends-on): Likewise.
15615         * modules/utimens-tests (Depends-on): Likewise.
15616         * modules/utimensat-tests (Depends-on): Likewise.
15617
15618 2010-01-31  Bruno Haible  <bruno@clisp.org>
15619
15620         Perform the same test for many <math.h> functions.
15621         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15622         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15623         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15624         of gl_MATHFUNC.
15625         * modules/acos (configure.ac): Likewise.
15626         * modules/asin (configure.ac): Likewise.
15627         * modules/atan (configure.ac): Likewise.
15628         * modules/atan2 (configure.ac): Likewise.
15629         * modules/cbrt (configure.ac): Likewise.
15630         * modules/copysign (configure.ac): Likewise.
15631         * modules/cos (configure.ac): Likewise.
15632         * modules/cosh (configure.ac): Likewise.
15633         * modules/erf (configure.ac): Likewise.
15634         * modules/erfc (configure.ac): Likewise.
15635         * modules/exp (configure.ac): Likewise.
15636         * modules/fmod (configure.ac): Likewise.
15637         * modules/hypot (configure.ac): Likewise.
15638         * modules/j0 (configure.ac): Likewise.
15639         * modules/j1 (configure.ac): Likewise.
15640         * modules/jn (configure.ac): Likewise.
15641         * modules/lgamma (configure.ac): Likewise.
15642         * modules/log (configure.ac): Likewise.
15643         * modules/log10 (configure.ac): Likewise.
15644         * modules/log1p (configure.ac): Likewise.
15645         * modules/pow (configure.ac): Likewise.
15646         * modules/remainder (configure.ac): Likewise.
15647         * modules/sin (configure.ac): Likewise.
15648         * modules/sinh (configure.ac): Likewise.
15649         * modules/tan (configure.ac): Likewise.
15650         * modules/tanh (configure.ac): Likewise.
15651         * modules/y0 (configure.ac): Likewise.
15652         * modules/y1 (configure.ac): Likewise.
15653         * modules/yn (configure.ac): Likewise.
15654         Suggested by Paolo Bonzini.
15655
15656 2010-01-31  Bruno Haible  <bruno@clisp.org>
15657
15658         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15659
15660 2010-01-31  Bruno Haible  <bruno@clisp.org>
15661
15662         Work around getdelim() bug on FreeBSD 8.0.
15663         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15664         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15665         not work.
15666         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15667         is 1.
15668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15669         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15670         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15671         a non-zero size.
15672         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15673
15674 2010-01-31  Bruno Haible  <bruno@clisp.org>
15675
15676         Work around getline() bug on FreeBSD 8.0.
15677         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15678         and a non-zero size.
15679         * tests/test-getline.c (main): Likewise.
15680         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15681         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15682
15683 2010-01-28  Eric Blake  <ebb9@byu.net>
15684
15685         regex: fix build failure
15686         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15687         platforms.
15688
15689 2010-01-28  Jim Meyering  <meyering@redhat.com>
15690
15691         regex: do not ignore memory allocation failure
15692         * lib/regex_internal.c (create_cd_newstate): Detect
15693         re_node_set_init_copy failure.   Extracted from glibc commit
15694         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15695
15696         regex: sync more white-space changes from libc
15697         * lib/regex_internal.c: White-space only changes.
15698         * lib/regexec.c: Likewise.
15699
15700         regex: add many uses of __attribute_warn_unused_result__
15701         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15702         * lib/regexec.c: Likewise.
15703         Extracted from a messy glibc commit.
15704
15705         regcomp.c: spelling and merge-artifact from glibc
15706         * lib/regcomp.c: Merge remainder of glibc's
15707         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15708
15709         regcomp.c: sync white-space changes from glibc
15710         * lib/regcomp.c: Merge to accommodate white space
15711         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15712
15713         regcomp.c: do not ignore internal return values
15714         * lib/regcomp.c: Do not ignore internal return values.
15715         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15716         but without its white-space changes and spelling fixes.
15717
15718         regex_internal.h: define __attribute_warn_unused_result__
15719         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15720
15721         maint: add a syntax-check rule to check for vulnerable Makefile.in
15722         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15723
15724 2010-01-27  Jim Meyering  <meyering@redhat.com>
15725
15726         ncftpput-ftp: clean up spaces
15727         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15728         Remove trailing blanks.
15729
15730 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15731
15732         * build-aux/git-version-gen: Fix copyright statement.
15733         * build-aux/gnupload: Likewise.
15734         * tests/test-arcfour.c: Likewise.
15735         * tests/test-arctwo.c: Likewise.
15736         * tests/test-count-one-bits.c: Likewise.
15737         * tests/test-crc.c: Likewise.
15738         * tests/test-des.c: Likewise.
15739         * tests/test-gc-arcfour.c: Likewise.
15740         * tests/test-gc-arctwo.c: Likewise.
15741         * tests/test-gc-des.c: Likewise.
15742         * tests/test-gc-hmac-md5.c: Likewise.
15743         * tests/test-gc-hmac-sha1.c: Likewise.
15744         * tests/test-gc-md2.c: Likewise.
15745         * tests/test-gc-md4.c: Likewise.
15746         * tests/test-gc-md5.c: Likewise.
15747         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15748         * tests/test-gc-rijndael.c: Likewise.
15749         * tests/test-gc-sha1.c: Likewise.
15750         * tests/test-gc.c: Likewise.
15751         * tests/test-gethostname.c: Likewise.
15752         * tests/test-gettimeofday.c: Likewise.
15753         * tests/test-hash.c: Likewise.
15754         * tests/test-hmac-md5.c: Likewise.
15755         * tests/test-hmac-sha1.c: Likewise.
15756         * tests/test-md2.c: Likewise.
15757         * tests/test-md4.c: Likewise.
15758         * tests/test-md5.c: Likewise.
15759         * tests/test-memchr.c: Likewise.
15760         * tests/test-memchr2.c: Likewise.
15761         * tests/test-memcmp.c: Likewise.
15762         * tests/test-memmem.c: Likewise.
15763         * tests/test-memrchr.c: Likewise.
15764         * tests/test-rawmemchr.c: Likewise.
15765         * tests/test-read-file.c: Likewise.
15766         * tests/test-rijndael.c: Likewise.
15767         * tests/test-sockets.c: Likewise.
15768         * tests/test-strchrnul.c: Likewise.
15769         * tests/test-strstr.c: Likewise.
15770         * tests/test-strtod.c: Likewise.
15771         * build-aux/ncftpput-ftp: Likewise.
15772
15773 2010-01-26  Eric Blake  <ebb9@byu.net>
15774
15775         ignore-value: update recommended header name
15776         * modules/ignore-value (Include): Only use <> for headers that
15777         exist in glibc.
15778
15779 2010-01-26  Jim Meyering  <meyering@redhat.com>
15780
15781         test-userspec.c: avoid compiler warnings
15782         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15783         and "initialization discards qualifiers..." warnings.
15784         Put the first "uid" in its own scope, and make char* members "const".
15785
15786 2010-01-25  Bruno Haible  <bruno@clisp.org>
15787
15788         gnulib-tool: Make warning diagnostics consistent.
15789         * gnulib-tool (func_warning): New function.
15790         Use it everywhere where gnulib-tool produces output to stderr and it is
15791         not a fatal error.
15792
15793 2010-01-25  Bruno Haible  <bruno@clisp.org>
15794
15795         Fix test dependencies.
15796         * modules/xstrtol-tests (Depends-on): Add inttypes.
15797         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15798
15799 2010-01-25 Pádraig Brady <P@draigBrady.com>
15800
15801         syntax-check: detect incorrect boolean macro values in config.h
15802         * modules/maintainer-makefile (configure.ac): Parameterize the location
15803         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15804         The logic is from Eric Blake and the location indicated by Jim Meyering.
15805         Note the more natural CONFIG_HEADER name is prohibited by automake
15806         for backwards compatibility reasons.
15807         * top/maint.mk (sc_Wundef_boolean): New rule.
15808
15809 2010-01-25  Jim Meyering  <meyering@redhat.com>
15810
15811         bootstrap: detect MacOS 10.6's shasum, too
15812         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15813         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15814
15815 2010-01-23  Jim Meyering  <meyering@redhat.com>
15816
15817         xstrtoll: new module
15818         * modules/xstrtoll: New file.
15819         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15820         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15821         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15822         ./configure fails if you use this module and lack "long long".
15823         * modules/xstrtoll-tests: New module.
15824         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15825         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15826         new init.sh-based test framework.
15827
15828 2010-01-24  Bruno Haible  <bruno@clisp.org>
15829
15830         Tests for module 'yn'.
15831         * modules/yn-tests: New file.
15832         * tests/test-yn.c: New file.
15833
15834         Tests for module 'y1'.
15835         * modules/y1-tests: New file.
15836         * tests/test-y1.c: New file.
15837
15838         Tests for module 'y0'.
15839         * modules/y0-tests: New file.
15840         * tests/test-y0.c: New file.
15841
15842         Tests for module 'tanh'.
15843         * modules/tanh-tests: New file.
15844         * tests/test-tanh.c: New file.
15845
15846         Tests for module 'tan'.
15847         * modules/tan-tests: New file.
15848         * tests/test-tan.c: New file.
15849
15850         Tests for module 'sqrt'.
15851         * modules/sqrt-tests: New file.
15852         * tests/test-sqrt.c: New file.
15853
15854         Tests for module 'sinh'.
15855         * modules/sinh-tests: New file.
15856         * tests/test-sinh.c: New file.
15857
15858         Tests for module 'sin'.
15859         * modules/sin-tests: New file.
15860         * tests/test-sin.c: New file.
15861
15862         Tests for module 'rint'.
15863         * modules/rint-tests: New file.
15864         * tests/test-rint.c: New file.
15865
15866         Tests for module 'remainder'.
15867         * modules/remainder-tests: New file.
15868         * tests/test-remainder.c: New file.
15869
15870         Tests for module 'pow'.
15871         * modules/pow-tests: New file.
15872         * tests/test-pow.c: New file.
15873
15874         Tests for module 'nextafter'.
15875         * modules/nextafter-tests: New file.
15876         * tests/test-nextafter.c: New file.
15877
15878         Tests for module 'modf'.
15879         * modules/modf-tests: New file.
15880         * tests/test-modf.c: New file.
15881
15882         Tests for module 'logb'.
15883         * modules/logb-tests: New file.
15884         * tests/test-logb.c: New file.
15885
15886         Tests for module 'log1p'.
15887         * modules/log1p-tests: New file.
15888         * tests/test-log1p.c: New file.
15889
15890         Tests for module 'log10'.
15891         * modules/log10-tests: New file.
15892         * tests/test-log10.c: New file.
15893
15894         Tests for module 'log'.
15895         * modules/log-tests: New file.
15896         * tests/test-log.c: New file.
15897
15898         Tests for module 'lgamma'.
15899         * modules/lgamma-tests: New file.
15900         * tests/test-lgamma.c: New file.
15901
15902         Tests for module 'ldexp'.
15903         * modules/ldexp-tests: New file.
15904         * tests/test-ldexp.c: New file.
15905
15906         Tests for module 'jn'.
15907         * modules/jn-tests: New file.
15908         * tests/test-jn.c: New file.
15909
15910         Tests for module 'j1'.
15911         * modules/j1-tests: New file.
15912         * tests/test-j1.c: New file.
15913
15914         Tests for module 'j0'.
15915         * modules/j0-tests: New file.
15916         * tests/test-j0.c: New file.
15917
15918         Tests for module 'hypot'.
15919         * modules/hypot-tests: New file.
15920         * tests/test-hypot.c: New file.
15921
15922         Tests for module 'fmod'.
15923         * modules/fmod-tests: New file.
15924         * tests/test-fmod.c: New file.
15925
15926         Tests for module 'fabs'.
15927         * modules/fabs-tests: New file.
15928         * tests/test-fabs.c: New file.
15929
15930         Tests for module 'exp'.
15931         * modules/exp-tests: New file.
15932         * tests/test-exp.c: New file.
15933
15934         Tests for module 'erfc'.
15935         * modules/erfc-tests: New file.
15936         * tests/test-erfc.c: New file.
15937
15938         Tests for module 'erf'.
15939         * modules/erf-tests: New file.
15940         * tests/test-erf.c: New file.
15941
15942         Tests for module 'cosh'.
15943         * modules/cosh-tests: New file.
15944         * tests/test-cosh.c: New file.
15945
15946         Tests for module 'cos'.
15947         * modules/cos-tests: New file.
15948         * tests/test-cos.c: New file.
15949
15950         Tests for module 'copysign'.
15951         * modules/copysign-tests: New file.
15952         * tests/test-copysign.c: New file.
15953
15954         Tests for module 'cbrt'.
15955         * modules/cbrt-tests: New file.
15956         * tests/test-cbrt.c: New file.
15957
15958         Tests for module 'atan2'.
15959         * modules/atan2-tests: New file.
15960         * tests/test-atan2.c: New file.
15961
15962         Tests for module 'atan'.
15963         * modules/atan-tests: New file.
15964         * tests/test-atan.c: New file.
15965
15966         Tests for module 'asin'.
15967         * modules/asin-tests: New file.
15968         * tests/test-asin.c: New file.
15969
15970         Tests for module 'acos'.
15971         * modules/acos-tests: New file.
15972         * tests/test-acos.c: New file.
15973
15974 2010-01-24  Bruno Haible  <bruno@clisp.org>
15975
15976         Fix tests for common <math.h> functions.
15977         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15978         code snippet that references the function pointer, rather than merely
15979         calling the function. Substitute the FUNC_LIBM variable.
15980         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15981         * modules/acos (configure.ac): Likewise.
15982         * modules/asin (configure.ac): Likewise.
15983         * modules/atan (configure.ac): Likewise.
15984         * modules/atan2 (configure.ac): Likewise.
15985         * modules/cbrt (configure.ac): Likewise.
15986         * modules/copysign (configure.ac): Likewise.
15987         * modules/cos (configure.ac): Likewise.
15988         * modules/cosh (configure.ac): Likewise.
15989         * modules/erf (configure.ac): Likewise.
15990         * modules/erfc (configure.ac): Likewise.
15991         * modules/exp (configure.ac): Likewise.
15992         * modules/fabs (configure.ac): Likewise.
15993         * modules/fmod (configure.ac): Likewise.
15994         * modules/hypot (configure.ac): Likewise.
15995         * modules/j0 (configure.ac): Likewise.
15996         * modules/j1 (configure.ac): Likewise.
15997         * modules/jn (configure.ac): Likewise.
15998         * modules/ldexp (configure.ac): Likewise.
15999         * modules/lgamma (configure.ac): Likewise.
16000         * modules/log (configure.ac): Likewise.
16001         * modules/log10 (configure.ac): Likewise.
16002         * modules/log1p (configure.ac): Likewise.
16003         * modules/logb (configure.ac): Likewise.
16004         * modules/modf (configure.ac): Likewise.
16005         * modules/nextafter (configure.ac): Likewise.
16006         * modules/pow (configure.ac): Likewise.
16007         * modules/remainder (configure.ac): Likewise.
16008         * modules/rint (configure.ac): Likewise.
16009         * modules/sin (configure.ac): Likewise.
16010         * modules/sinh (configure.ac): Likewise.
16011         * modules/tan (configure.ac): Likewise.
16012         * modules/tanh (configure.ac): Likewise.
16013         * modules/y0 (configure.ac): Likewise.
16014         * modules/y1 (configure.ac): Likewise.
16015         * modules/yn (configure.ac): Likewise.
16016
16017 2010-01-24  Bruno Haible  <bruno@clisp.org>
16018
16019         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16020         * tests/test-acosl.c (x): New variable.
16021         (main): Store argument in x and fetch it from x.
16022         * tests/test-asinl.c (x): New variable.
16023         (main): Store argument in x and fetch it from x.
16024         * tests/test-atanl.c (x): New variable.
16025         (main): Store argument in x and fetch it from x.
16026         * tests/test-cosl.c (x): New variable.
16027         (main): Store argument in x and fetch it from x.
16028         * tests/test-expl.c (x): New variable.
16029         (main): Store argument in x and fetch it from x.
16030         * tests/test-logl.c (x): New variable.
16031         (main): Store argument in x and fetch it from x.
16032         * tests/test-sinl.c (x): New variable.
16033         (main): Store argument in x and fetch it from x.
16034         * tests/test-sqrtl.c (x): New variable.
16035         (main): Store argument in x and fetch it from x.
16036         * tests/test-tanl.c (x): New variable.
16037         (main): Store argument in x and fetch it from x.
16038
16039 2010-01-24  Bruno Haible  <bruno@clisp.org>
16040
16041         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16042         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16043         assignments to the initial TESTS_ENVIRONMENT.
16044         * doc/gnulib.texi (Unit test modules): Document it.
16045         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16046         TESTS_ENVIRONMENT.
16047         * modules/btowc-tests (Makefile.am): Likewise.
16048         * modules/c-stack-tests (Makefile.am): Likewise.
16049         * modules/c-strcase-tests (Makefile.am): Likewise.
16050         * modules/copy-file-tests (Makefile.am): Likewise.
16051         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16052         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16053         * modules/mbrtowc-tests (Makefile.am): Likewise.
16054         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16055         * modules/mbscasestr-tests (Makefile.am): Likewise.
16056         * modules/mbschr-tests (Makefile.am): Likewise.
16057         * modules/mbscspn-tests (Makefile.am): Likewise.
16058         * modules/mbsinit-tests (Makefile.am): Likewise.
16059         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16060         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16061         * modules/mbspbrk-tests (Makefile.am): Likewise.
16062         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16063         * modules/mbsrchr-tests (Makefile.am): Likewise.
16064         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16065         * modules/mbsspn-tests (Makefile.am): Likewise.
16066         * modules/mbsstr-tests (Makefile.am): Likewise.
16067         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16068         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16069         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16070         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16071         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16072         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16073         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16074         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16075         * modules/wcrtomb-tests (Makefile.am): Likewise.
16076         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16077         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16078         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16079         assignments from TESTS_ENVIRONMENT.
16080         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16081         augmentation.
16082         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16083         * modules/atexit-tests (Makefile.am): Likewise.
16084         * modules/binary-io-tests (Makefile.am): Likewise.
16085         * modules/closein-tests (Makefile.am): Likewise.
16086         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16087         * modules/exclude-tests (Makefile.am): Likewise.
16088         * modules/fflush-tests (Makefile.am): Likewise.
16089         * modules/fpending-tests (Makefile.am): Likewise.
16090         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16091         * modules/freadahead-tests (Makefile.am): Likewise.
16092         * modules/freadptr-tests (Makefile.am): Likewise.
16093         * modules/freadseek-tests (Makefile.am): Likewise.
16094         * modules/fseek-tests (Makefile.am): Likewise.
16095         * modules/fseeko-tests (Makefile.am): Likewise.
16096         * modules/ftell-tests (Makefile.am): Likewise.
16097         * modules/ftello-tests (Makefile.am): Likewise.
16098         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16099         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16100         * modules/lseek-tests (Makefile.am): Likewise.
16101         * modules/parse-duration-tests (Makefile.am): Likewise.
16102         * modules/perror-tests (Makefile.am): Likewise.
16103         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16104         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16105         * modules/pipe-tests (Makefile.am): Likewise.
16106         * modules/pread-tests (Makefile.am): Likewise.
16107         * modules/printf-posix-tests (Makefile.am): Likewise.
16108         * modules/select-tests (Makefile.am): Likewise.
16109         * modules/sigpipe-tests (Makefile.am): Likewise.
16110         * modules/tsearch-tests (Makefile.am): Likewise.
16111         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16112         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16113         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16114         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16115         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16116         * modules/version-etc-tests (Makefile.am): Likewise.
16117         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16118         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16119         * modules/xalloc-die-tests (Makefile.am): Likewise.
16120         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16121         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16122         * modules/xstrtol-tests (Makefile.am): Likewise.
16123         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16124         * modules/yesno-tests (Makefile.am): Likewise.
16125         Suggested by Jim Meyering.
16126
16127 2010-01-24  Bruno Haible  <bruno@clisp.org>
16128
16129         More documentation.
16130         * doc/gnulib.texi (Writing modules): New chapter.
16131         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16132         the new chapter.
16133
16134 2010-01-24  Jim Meyering  <meyering@redhat.com>
16135
16136         maint.mk: do not prepend "./" after filtering
16137         * top/maint.mk (_prepend_srcdir_prefix): New variable
16138         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16139         "./" when $(srcdir) is ".".
16140
16141         define STREQ(a,b) consistently, removing useless parentheses
16142         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16143         since the only risk is that "a" or "b" contains an unparenthesized
16144         comma, but if either did that, STREQ would have 3 or more arguments.
16145         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16146         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16147         * lib/hash-triple.c (STREQ): Likewise.
16148         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16149         * lib/getugroups.c (STREQ): Likewise.
16150
16151 2010-01-23  Jim Meyering  <meyering@redhat.com>
16152
16153         maint.mk: fix syntax-check in a non-srcdir build directory
16154         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16155         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16156
16157 2010-01-22  Jim Meyering  <meyering@redhat.com>
16158
16159         userspec: add unit tests
16160         * tests/test-userspec.c: New file.
16161         * modules/userspec-tests: Likewise.
16162
16163 2010-01-21  Jim Meyering  <meyering@redhat.com>
16164
16165         maint.mk: handle source file names containing "." robustly
16166         * top/maint.mk (_dot_escaped_srcdir): Define.
16167         (VC_LIST): Use it in LHS of sed substitution.
16168
16169 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16170
16171         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16172         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16173         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16174         from a non-srcdir build.
16175
16176 2010-01-20  Eric Blake  <ebb9@byu.net>
16177
16178         warn-on-use: use instead of link-warning
16179         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16180         * modules/unistd (Depends-on, Makefile.am): Likewise.
16181         * modules/arpa_inet (Depends-on): Replace link-warning with
16182         warn-on-use.
16183         (Makefile.am): Update rules accordingly.
16184         * modules/ctype (Depends-on, Makefile.am): Likewise.
16185         * modules/dirent (Depends-on, Makefile.am): Likewise.
16186         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16187         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16188         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16189         * modules/locale (Depends-on, Makefile.am): Likewise.
16190         * modules/math (Depends-on, Makefile.am): Likewise.
16191         * modules/search (Depends-on, Makefile.am): Likewise.
16192         * modules/signal (Depends-on, Makefile.am): Likewise.
16193         * modules/spawn (Depends-on, Makefile.am): Likewise.
16194         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16195         * modules/string (Depends-on, Makefile.am): Likewise.
16196         * modules/strings (Depends-on, Makefile.am): Likewise.
16197         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16198         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16199         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16200         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16201         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16202         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16203         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16204         * modules/wchar (Depends-on, Makefile.am): Likewise.
16205         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16206         should be poisoned.
16207         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16208         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16209         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16210         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16211         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16212         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16213         * m4/math_h.m4 (gl_MATH_H): Likewise.
16214         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16215         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16216         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16217         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16218         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16219         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16220         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16221         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16222         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16226         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16227         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16228         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16229         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16230         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16231         GL_LINK_WARNING.
16232         * lib/ctype.in.h: Likewise.
16233         * lib/dirent.in.h: Likewise.
16234         * lib/fcntl.in.h: Likewise.
16235         * lib/inttypes.in.h: Likewise.
16236         * lib/langinfo.in.h: Likewise.
16237         * lib/locale.in.h: Likewise.
16238         * lib/math.in.h: Likewise.
16239         * lib/search.in.h: Likewise.
16240         * lib/signal.in.h: Likewise.
16241         * lib/spawn.in.h: Likewise.
16242         * lib/stdio.in.h: Likewise.
16243         * lib/stdlib.in.h: Likewise.
16244         * lib/string.in.h: Likewise.
16245         * lib/strings.in.h: Likewise.
16246         * lib/sys_file.in.h: Likewise.
16247         * lib/sys_ioctl.in.h: Likewise.
16248         * lib/sys_select.in.h: Likewise.
16249         * lib/sys_socket.in.h: Likewise.
16250         * lib/sys_stat.in.h: Likewise.
16251         * lib/sys_times.in.h: Likewise.
16252         * lib/sys_utsname.in.h: Likewise.
16253         * lib/unistd.in.h: Likewise.
16254         * lib/wchar.in.h: Likewise.
16255
16256 2010-01-20  Bruno Haible  <bruno@clisp.org>
16257
16258         Avoid duplicate -lm.
16259         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16260         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16261         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16262         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16263         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16264         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16265         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16266         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16267         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16268         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16269         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16270         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16271         Reported by Paolo Bonzini.
16272
16273 2010-01-19  Bruno Haible  <bruno@clisp.org>
16274
16275         langinfo, nl_langinfo: Relicense under LGPLv2+.
16276         * modules/langinfo (License): Change to LGPLv2+.
16277         * modules/nl_langinfo (License): Likewise.
16278         Patch by David Lutterkort <lutter@redhat.com>.
16279
16280 2010-01-19  Bruno Haible  <bruno@clisp.org>
16281
16282         Avoid compilation error with cc on OSF/1 5.1.
16283         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16284         statement, not before.
16285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16286
16287 2010-01-18  Bruno Haible  <bruno@clisp.org>
16288
16289         Avoid a link error due to the __printf__ symbol.
16290         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16291         and 2.6.x.
16292         (__format__, __printf__): Remove definitions.
16293         * lib/argp-fmtstream.h: Likewise.
16294         * lib/argp.h: Likewise.
16295         * lib/error.h: Likewise.
16296         * lib/vasnprintf.h: Likewise.
16297         * lib/xprintf.h: Likewise.
16298         * lib/xvasprintf.h: Likewise.
16299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16300
16301 2010-01-18  Bruno Haible  <bruno@clisp.org>
16302
16303         Tests for module 'tanl'.
16304         * modules/tanl-tests: New file.
16305         * tests/test-tanl.c: New file.
16306
16307         Tests for module 'sqrtl'.
16308         * modules/sqrtl-tests: New file.
16309         * tests/test-sqrtl.c: New file.
16310
16311         Tests for module 'sinl'.
16312         * modules/sinl-tests: New file.
16313         * tests/test-sinl.c: New file.
16314
16315         Tests for module 'logl'.
16316         * modules/logl-tests: New file.
16317         * tests/test-logl.c: New file.
16318
16319         Tests for module 'expl'.
16320         * modules/expl-tests: New file.
16321         * tests/test-expl.c: New file.
16322
16323         Tests for module 'cosl'.
16324         * modules/cosl-tests: New file.
16325         * tests/test-cosl.c: New file.
16326
16327         Tests for module 'atanl'.
16328         * modules/atanl-tests: New file.
16329         * tests/test-atanl.c: New file.
16330
16331         Tests for module 'asinl'.
16332         * modules/asinl-tests: New file.
16333         * tests/test-asinl.c: New file.
16334
16335         Tests for module 'acosl'.
16336         * modules/acosl-tests: New file.
16337         * tests/test-acosl.c: New file.
16338
16339         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16340         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16341         tanl): Use the standard gnulib idiom.
16342         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16343         * lib/sinl.c: Likewise.
16344         * lib/tanl.c: Don't include trigl.c.
16345         (kernel_tanl): Make static.
16346         * lib/sincosl.c: Include trigl.h first.
16347         * lib/trigl.c: Likewise.
16348         * m4/acosl.m4: New file.
16349         * m4/asinl.m4: New file.
16350         * m4/atanl.m4: New file.
16351         * m4/cosl.m4: New file.
16352         * m4/expl.m4: New file.
16353         * m4/logl.m4: New file.
16354         * m4/sinl.m4: New file.
16355         * m4/sqrtl.m4: New file.
16356         * m4/tanl.m4: New file.
16357         * m4/mathl.m4: Remove file.
16358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16359         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16360         Don't initialize GNULIB_MATHL.
16361         * modules/acosl: New file.
16362         * modules/asinl: New file.
16363         * modules/atanl: New file.
16364         * modules/cosl: New file.
16365         * modules/expl: New file.
16366         * modules/logl: New file.
16367         * modules/sinl: New file.
16368         * modules/sqrtl: New file.
16369         * modules/tanl: New file.
16370         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16371         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16372         substitute GNULIB_MATHL.
16373         * modules/mathl: Rewritten.
16374         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16375         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16376         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16377         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16378         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16379         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16380         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16381         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16382         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16383
16384 2010-01-18  Bruno Haible  <bruno@clisp.org>
16385
16386         sqrt: Make gl_FUNC_SQRT requirable.
16387         * m4/sqrt.m4: New file.
16388         * modules/sqrt (Files): Add it.
16389         (configure.ac): Invoke gl_FUNC_SQRT.
16390
16391 2010-01-18  Bruno Haible  <bruno@clisp.org>
16392
16393         New modules for common <math.h> functions.
16394         * m4/mathfunc.m4: New file.
16395         * modules/acos: New file.
16396         * modules/asin: New file.
16397         * modules/atan: New file.
16398         * modules/atan2: New file.
16399         * modules/cbrt: New file.
16400         * modules/copysign: New file.
16401         * modules/cos: New file.
16402         * modules/cosh: New file.
16403         * modules/erf: New file.
16404         * modules/erfc: New file.
16405         * modules/exp: New file.
16406         * modules/fabs: New file.
16407         * modules/fmod: New file.
16408         * modules/hypot: New file.
16409         * modules/j0: New file.
16410         * modules/j1: New file.
16411         * modules/jn: New file.
16412         * modules/ldexp: New file.
16413         * modules/lgamma: New file.
16414         * modules/log: New file.
16415         * modules/log10: New file.
16416         * modules/log1p: New file.
16417         * modules/logb: New file.
16418         * modules/modf: New file.
16419         * modules/nextafter: New file.
16420         * modules/pow: New file.
16421         * modules/remainder: New file.
16422         * modules/rint: New file.
16423         * modules/sin: New file.
16424         * modules/sinh: New file.
16425         * modules/sqrt: New file.
16426         * modules/tan: New file.
16427         * modules/tanh: New file.
16428         * modules/y0: New file.
16429         * modules/y1: New file.
16430         * modules/yn: New file.
16431         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16432         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16433         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16434         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16435         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16436         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16437         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16438         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16439         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16440         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16441         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16442         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16443         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16444         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16445         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16446         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16447         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16448         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16449         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16450         * doc/posix-functions/log.texi: Mention the 'log' module.
16451         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16452         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16453         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16454         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16455         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16456         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16457         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16458         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16459         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16460         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16461         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16462         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16463         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16464         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16465         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16466         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16467
16468 2010-01-18  Jim Meyering  <meyering@redhat.com>
16469
16470         ignore-value: relax license to LGPLv2+
16471         * modules/ignore-value (License): Relax to LGPLv2+.
16472
16473         getdate: don't leak when TZ contains two or more '"'s
16474         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16475         double quote in TZ after the first one.
16476
16477         readtokens: do not leak internal token_lengths buffer
16478         * lib/readtokens.c (readtokens): Free the local, lengths,
16479         when the supplied "token_lengths" parameter is NULL.
16480
16481 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16482
16483         Fix a couple of missing LIBTHREAD link failures on AIX.
16484         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16485         $(LIBTHREAD).
16486         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16487
16488         Link test-poll against INET_PTON_LIB.
16489         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16490         for inet_pton on Solaris 10.
16491
16492 2010-01-17  Bruno Haible  <bruno@clisp.org>
16493
16494         unistdio/*-sprintf: Fix typo in module description.
16495         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16496         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16497         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16498         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16499         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16500         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16501         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16503
16504 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16505
16506         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16507         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16508         variables in shell case patterns, for AIX and HP-UX ksh.
16509
16510         Split large sed scripts, for HP-UX sed.
16511         * modules/stdio: Split sed scripts around 50 sed commands,
16512         to avoid HP-UX limit of 99 commands, in the near future.
16513         * modules/string: Likewise.
16514         * modules/unistd: Likewise.
16515
16516         gnulib-tool: avoid writing in the current directory.
16517         * gnulib-tool (func_emit_lib_Makefile_am)
16518         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16519         not in the current directory, so concurrent gnulib-tool
16520         instances do not interfere.
16521
16522 2010-01-16  Jim Meyering  <meyering@redhat.com>
16523
16524         doc: update users.txt
16525         * users.txt: Add grep.
16526         (diffutils, gzip): Update URLs.
16527
16528 2010-01-12  Bruno Haible  <bruno@clisp.org>
16529
16530         posix_spawn: Avoid test failure on Cygwin.
16531         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16532         characters.
16533         Reported by Simon Josefsson.
16534
16535 2010-01-12  Bruno Haible  <bruno@clisp.org>
16536
16537         * tests/test-cond.c (main): When skipping the test, show the reason.
16538
16539 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16540
16541         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16542
16543 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16544
16545         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16546         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16547
16548 2010-01-12  Eric Blake  <ebb9@byu.net>
16549
16550         build: guarantee AS_VAR_IF
16551         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16552         (gl_AS_VAR_IF): Move...
16553         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16554         Reported by Simon Josefsson.
16555
16556 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16557
16558         * lib/stdio.in.h: Fix typo.
16559
16560 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16561
16562         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16563         libgpg-error.
16564
16565 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16566
16567         * tests/test-xalloc-die.sh: Use $EXEEXT.
16568
16569 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16570             Bruno Haible  <bruno@clisp.org>
16571
16572         getlogin, getlogin_r: Avoid test failure.
16573         * tests/test-getlogin.c: Include <stdio.h>.
16574         (main): Skip the test when the function fails because stdin is not a
16575         tty.
16576         * tests/test-getlogin_r.c: Include <stdio.h>.
16577         (main): Skip the test when the function fails because stdin is not a
16578         tty.
16579
16580 2010-01-11  Eric Blake  <ebb9@byu.net>
16581
16582         tests: avoid more large file warnings
16583         * tests/test-fflush.c: Avoid warning about ftell use.
16584         * tests/test-fseek.c: Avoid warning about fseek use.
16585
16586 2010-01-10  Bruno Haible  <bruno@clisp.org>
16587
16588         nproc: Work better on Linux when /proc and /sys are not mounted.
16589         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16590         as lower bound when, on glibc/Linux systems,
16591         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16592         Suggested by Pádraig Brady <P@draigbrady.com>.
16593         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16594
16595         nproc: Refactor.
16596         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16597         extracted from num_processors.
16598         (num_processors): Call it.
16599
16600 2010-01-11  Jim Meyering  <meyering@redhat.com>
16601
16602         utimecmp: avoid new warning from upcoming gcc-4.5.0
16603         * lib/utimecmp.c (BILLION): Define using #define rather than an
16604         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16605
16606 2010-01-11  Eric Blake  <ebb9@byu.net>
16607
16608         math: add portability warnings for classification macros
16609         * modules/math (Depends-on): Add warn-on-use.
16610         (Makefile.am): Provide new substitutions.
16611         * m4/math_h.m4 (gl_MATH_H): Require inline.
16612         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16613         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16614         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16615         implement warnings.
16616
16617         unistd: warn on use of environ without module
16618         * modules/unistd (Depends-on): Add warn-on-use.
16619         (Makefile.am): Provide new substitutions.
16620         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16621         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16622
16623         stdio: warn on suspicious uses
16624         * modules/stdio (Depends-on): Add warn-on-use.
16625         (Makefile.am): Provide new substitutions.
16626         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16627         fseeko.
16628         * lib/stdio.in.h (gets): Always warn on use.
16629         (fseek, ftell): Adjust when warnings are issued, and honor
16630         _GL_NO_LARGE_FILES as a way to silence the warning.
16631         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16632         any warning about large file offsets.
16633         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16634         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16635         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16636         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16637         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16638         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16639         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16640         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16641
16642         warn-on-use: new module
16643         * modules/warn-on-use: New file.
16644         * build-aux/warn-on-use.h: Likewise.
16645         * m4/warn-on-use.m4: Likewise.
16646         * MODULES.html.sh (Support for building): Mention it.
16647
16648 2010-01-10  Bruno Haible  <bruno@clisp.org>
16649
16650         Tests for module 'unistr/u32-strdup'.
16651         * modules/unistr/u32-strdup-tests: New file.
16652         * tests/unistr/test-u32-strdup.c: New file.
16653
16654         Tests for module 'unistr/u16-strdup'.
16655         * modules/unistr/u16-strdup-tests: New file.
16656         * tests/unistr/test-u16-strdup.c: New file.
16657
16658         Tests for module 'unistr/u8-strdup'.
16659         * modules/unistr/u8-strdup-tests: New file.
16660         * tests/unistr/test-u8-strdup.c: New file.
16661         * tests/unistr/test-strdup.h: New file.
16662
16663         Tests for module 'unistr/u32-strncmp'.
16664         * modules/unistr/u32-strncmp-tests: New file.
16665         * tests/unistr/test-u32-strncmp.c: New file.
16666
16667         Tests for module 'unistr/u16-strncmp'.
16668         * modules/unistr/u16-strncmp-tests: New file.
16669         * tests/unistr/test-u16-strncmp.c: New file.
16670
16671         Tests for module 'unistr/u8-strncmp'.
16672         * modules/unistr/u8-strncmp-tests: New file.
16673         * tests/unistr/test-u8-strncmp.c: New file.
16674         * tests/unistr/test-strncmp.h: New file.
16675
16676         Tests for module 'unistr/u32-strcoll'.
16677         * modules/unistr/u32-strcoll-tests: New file.
16678         * tests/unistr/test-u32-strcoll.c: New file.
16679
16680         Tests for module 'unistr/u16-strcoll'.
16681         * modules/unistr/u16-strcoll-tests: New file.
16682         * tests/unistr/test-u16-strcoll.c: New file.
16683
16684         Tests for module 'unistr/u8-strcoll'.
16685         * modules/unistr/u8-strcoll-tests: New file.
16686         * tests/unistr/test-u8-strcoll.c: New file.
16687
16688         Tests for module 'unistr/u32-strcmp'.
16689         * modules/unistr/u32-strcmp-tests: New file.
16690         * tests/unistr/test-u32-strcmp.c: New file.
16691         * tests/unistr/test-u32-strcmp.h: New file.
16692
16693         Tests for module 'unistr/u16-strcmp'.
16694         * modules/unistr/u16-strcmp-tests: New file.
16695         * tests/unistr/test-u16-strcmp.c: New file.
16696         * tests/unistr/test-u16-strcmp.h: New file.
16697
16698         Tests for module 'unistr/u8-strcmp'.
16699         * modules/unistr/u8-strcmp-tests: New file.
16700         * tests/unistr/test-u8-strcmp.c: New file.
16701         * tests/unistr/test-u8-strcmp.h: New file.
16702         * tests/unistr/test-strcmp.h: New file.
16703
16704         Tests for module 'unistr/u32-strncat'.
16705         * modules/unistr/u32-strncat-tests: New file.
16706         * tests/unistr/test-u32-strncat.c: New file.
16707
16708         Tests for module 'unistr/u16-strncat'.
16709         * modules/unistr/u16-strncat-tests: New file.
16710         * tests/unistr/test-u16-strncat.c: New file.
16711
16712         Tests for module 'unistr/u8-strncat'.
16713         * modules/unistr/u8-strncat-tests: New file.
16714         * tests/unistr/test-u8-strncat.c: New file.
16715         * tests/unistr/test-strncat.h: New file.
16716
16717         Tests for module 'unistr/u32-strcat'.
16718         * modules/unistr/u32-strcat-tests: New file.
16719         * tests/unistr/test-u32-strcat.c: New file.
16720
16721         Tests for module 'unistr/u16-strcat'.
16722         * modules/unistr/u16-strcat-tests: New file.
16723         * tests/unistr/test-u16-strcat.c: New file.
16724
16725         Tests for module 'unistr/u8-strcat'.
16726         * modules/unistr/u8-strcat-tests: New file.
16727         * tests/unistr/test-u8-strcat.c: New file.
16728         * tests/unistr/test-strcat.h: New file.
16729
16730         Tests for module 'unistr/u32-stpncpy'.
16731         * modules/unistr/u32-stpncpy-tests: New file.
16732         * tests/unistr/test-u32-stpncpy.c: New file.
16733
16734         Tests for module 'unistr/u16-stpncpy'.
16735         * modules/unistr/u16-stpncpy-tests: New file.
16736         * tests/unistr/test-u16-stpncpy.c: New file.
16737
16738         Tests for module 'unistr/u8-stpncpy'.
16739         * modules/unistr/u8-stpncpy-tests: New file.
16740         * tests/unistr/test-u8-stpncpy.c: New file.
16741         * tests/unistr/test-stpncpy.h: New file.
16742
16743         Tests for module 'unistr/u32-strncpy'.
16744         * modules/unistr/u32-strncpy-tests: New file.
16745         * tests/unistr/test-u32-strncpy.c: New file.
16746
16747         Tests for module 'unistr/u16-strncpy'.
16748         * modules/unistr/u16-strncpy-tests: New file.
16749         * tests/unistr/test-u16-strncpy.c: New file.
16750
16751         Tests for module 'unistr/u8-strncpy'.
16752         * modules/unistr/u8-strncpy-tests: New file.
16753         * tests/unistr/test-u8-strncpy.c: New file.
16754         * tests/unistr/test-strncpy.h: New file.
16755
16756         Tests for module 'unistr/u32-stpcpy'.
16757         * modules/unistr/u32-stpcpy-tests: New file.
16758         * tests/unistr/test-u32-stpcpy.c: New file.
16759
16760         Tests for module 'unistr/u16-stpcpy'.
16761         * modules/unistr/u16-stpcpy-tests: New file.
16762         * tests/unistr/test-u16-stpcpy.c: New file.
16763
16764         Tests for module 'unistr/u8-stpcpy'.
16765         * modules/unistr/u8-stpcpy-tests: New file.
16766         * tests/unistr/test-u8-stpcpy.c: New file.
16767         * tests/unistr/test-stpcpy.h: New file.
16768
16769         Tests for module 'unistr/u32-strcpy'.
16770         * modules/unistr/u32-strcpy-tests: New file.
16771         * tests/unistr/test-u32-strcpy.c: New file.
16772
16773         Tests for module 'unistr/u16-strcpy'.
16774         * modules/unistr/u16-strcpy-tests: New file.
16775         * tests/unistr/test-u16-strcpy.c: New file.
16776
16777         Tests for module 'unistr/u8-strcpy'.
16778         * modules/unistr/u8-strcpy-tests: New file.
16779         * tests/unistr/test-u8-strcpy.c: New file.
16780         * tests/unistr/test-strcpy.h: New file.
16781
16782         Tests for module 'unistr/u32-strnlen'.
16783         * modules/unistr/u32-strnlen-tests: New file.
16784         * tests/unistr/test-u32-strnlen.c: New file.
16785
16786         Tests for module 'unistr/u16-strnlen'.
16787         * modules/unistr/u16-strnlen-tests: New file.
16788         * tests/unistr/test-u16-strnlen.c: New file.
16789
16790         Tests for module 'unistr/u8-strnlen'.
16791         * modules/unistr/u8-strnlen-tests: New file.
16792         * tests/unistr/test-u8-strnlen.c: New file.
16793         * tests/unistr/test-strnlen.h: New file.
16794
16795         Tests for module 'unistr/u32-strlen'.
16796         * modules/unistr/u32-strlen-tests: New file.
16797         * tests/unistr/test-u32-strlen.c: New file.
16798
16799         Tests for module 'unistr/u16-strlen'.
16800         * modules/unistr/u16-strlen-tests: New file.
16801         * tests/unistr/test-u16-strlen.c: New file.
16802
16803         Tests for module 'unistr/u8-strlen'.
16804         * modules/unistr/u8-strlen-tests: New file.
16805         * tests/unistr/test-u8-strlen.c: New file.
16806
16807         Tests for module 'unistr/u32-prev'.
16808         * modules/unistr/u32-prev-tests: New file.
16809         * tests/unistr/test-u32-prev.c: New file.
16810
16811         Tests for module 'unistr/u16-prev'.
16812         * modules/unistr/u16-prev-tests: New file.
16813         * tests/unistr/test-u16-prev.c: New file.
16814
16815         Tests for module 'unistr/u8-prev'.
16816         * modules/unistr/u8-prev-tests: New file.
16817         * tests/unistr/test-u8-prev.c: New file.
16818
16819         Tests for module 'unistr/u32-next'.
16820         * modules/unistr/u32-next-tests: New file.
16821         * tests/unistr/test-u32-next.c: New file.
16822
16823         Tests for module 'unistr/u16-next'.
16824         * modules/unistr/u16-next-tests: New file.
16825         * tests/unistr/test-u16-next.c: New file.
16826
16827         Tests for module 'unistr/u8-next'.
16828         * modules/unistr/u8-next-tests: New file.
16829         * tests/unistr/test-u8-next.c: New file.
16830
16831         Tests for module 'unistr/u32-strmbtouc'.
16832         * modules/unistr/u32-strmbtouc-tests: New file.
16833         * tests/unistr/test-u32-strmbtouc.c: New file.
16834
16835         Tests for module 'unistr/u16-strmbtouc'.
16836         * modules/unistr/u16-strmbtouc-tests: New file.
16837         * tests/unistr/test-u16-strmbtouc.c: New file.
16838
16839         Tests for module 'unistr/u8-strmbtouc'.
16840         * modules/unistr/u8-strmbtouc-tests: New file.
16841         * tests/unistr/test-u8-strmbtouc.c: New file.
16842
16843         Tests for module 'unistr/u32-strmblen'.
16844         * modules/unistr/u32-strmblen-tests: New file.
16845         * tests/unistr/test-u32-strmblen.c: New file.
16846
16847         Tests for module 'unistr/u16-strmblen'.
16848         * modules/unistr/u16-strmblen-tests: New file.
16849         * tests/unistr/test-u16-strmblen.c: New file.
16850
16851         Tests for module 'unistr/u8-strmblen'.
16852         * modules/unistr/u8-strmblen-tests: New file.
16853         * tests/unistr/test-u8-strmblen.c: New file.
16854
16855         Tests for module 'unistr/u32-cpy-alloc'.
16856         * modules/unistr/u32-cpy-alloc-tests: New file.
16857         * tests/unistr/test-u32-cpy-alloc.c: New file.
16858
16859         Tests for module 'unistr/u16-cpy-alloc'.
16860         * modules/unistr/u16-cpy-alloc-tests: New file.
16861         * tests/unistr/test-u16-cpy-alloc.c: New file.
16862
16863         Tests for module 'unistr/u8-cpy-alloc'.
16864         * modules/unistr/u8-cpy-alloc-tests: New file.
16865         * tests/unistr/test-u8-cpy-alloc.c: New file.
16866         * tests/unistr/test-cpy-alloc.h: New file.
16867
16868         Tests for module 'unistr/u32-mbsnlen'.
16869         * modules/unistr/u32-mbsnlen-tests: New file.
16870         * tests/unistr/test-u32-mbsnlen.c: New file.
16871
16872         Tests for module 'unistr/u16-mbsnlen'.
16873         * modules/unistr/u16-mbsnlen-tests: New file.
16874         * tests/unistr/test-u16-mbsnlen.c: New file.
16875
16876         Tests for module 'unistr/u8-mbsnlen'.
16877         * modules/unistr/u8-mbsnlen-tests: New file.
16878         * tests/unistr/test-u8-mbsnlen.c: New file.
16879
16880         Tests for module 'unistr/u32-chr'.
16881         * modules/unistr/u32-chr-tests: New file.
16882         * tests/unistr/test-u32-chr.c: New file.
16883
16884         Tests for module 'unistr/u16-chr'.
16885         * modules/unistr/u16-chr-tests: New file.
16886         * tests/unistr/test-u16-chr.c: New file.
16887
16888         Tests for module 'unistr/u8-chr'.
16889         * modules/unistr/u8-chr-tests: New file.
16890         * tests/unistr/test-u8-chr.c: New file.
16891         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16892
16893         Tests for module 'unistr/u32-cmp2'.
16894         * modules/unistr/u32-cmp2-tests: New file.
16895         * tests/unistr/test-u32-cmp2.c: New file.
16896
16897         Tests for module 'unistr/u16-cmp2'.
16898         * modules/unistr/u16-cmp2-tests: New file.
16899         * tests/unistr/test-u16-cmp2.c: New file.
16900
16901         Tests for module 'unistr/u8-cmp2'.
16902         * modules/unistr/u8-cmp2-tests: New file.
16903         * tests/unistr/test-u8-cmp2.c: New file.
16904         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16905
16906         Tests for module 'unistr/u32-cmp'.
16907         * modules/unistr/u32-cmp-tests: New file.
16908         * tests/unistr/test-u32-cmp.c: New file.
16909
16910         Tests for module 'unistr/u16-cmp'.
16911         * modules/unistr/u16-cmp-tests: New file.
16912         * tests/unistr/test-u16-cmp.c: New file.
16913
16914         Tests for module 'unistr/u8-cmp'.
16915         * modules/unistr/u8-cmp-tests: New file.
16916         * tests/unistr/test-u8-cmp.c: New file.
16917         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16918
16919         Tests for module 'unistr/u32-set'.
16920         * modules/unistr/u32-set-tests: New file.
16921         * tests/unistr/test-u32-set.c: New file.
16922
16923         Tests for module 'unistr/u16-set'.
16924         * modules/unistr/u16-set-tests: New file.
16925         * tests/unistr/test-u16-set.c: New file.
16926
16927         Tests for module 'unistr/u8-set'.
16928         * modules/unistr/u8-set-tests: New file.
16929         * tests/unistr/test-u8-set.c: New file.
16930         * tests/unistr/test-set.h: New file.
16931
16932         Tests for module 'unistr/u32-move'.
16933         * modules/unistr/u32-move-tests: New file.
16934         * tests/unistr/test-u32-move.c: New file.
16935
16936         Tests for module 'unistr/u16-move'.
16937         * modules/unistr/u16-move-tests: New file.
16938         * tests/unistr/test-u16-move.c: New file.
16939
16940         Tests for module 'unistr/u8-move'.
16941         * modules/unistr/u8-move-tests: New file.
16942         * tests/unistr/test-u8-move.c: New file.
16943         * tests/unistr/test-move.h: New file.
16944
16945         Tests for module 'unistr/u32-cpy'.
16946         * modules/unistr/u32-cpy-tests: New file.
16947         * tests/unistr/test-u32-cpy.c: New file.
16948
16949         Tests for module 'unistr/u16-cpy'.
16950         * modules/unistr/u16-cpy-tests: New file.
16951         * tests/unistr/test-u16-cpy.c: New file.
16952
16953         Tests for module 'unistr/u8-cpy'.
16954         * modules/unistr/u8-cpy-tests: New file.
16955         * tests/unistr/test-u8-cpy.c: New file.
16956         * tests/unistr/test-cpy.h: New file.
16957
16958 2010-01-09  Bruno Haible  <bruno@clisp.org>
16959
16960         Tests for module 'unistr/u32-uctomb'.
16961         * modules/unistr/u32-uctomb-tests: New file.
16962         * tests/unistr/test-u32-uctomb.c: New file.
16963
16964         Tests for module 'unistr/u16-uctomb'.
16965         * modules/unistr/u16-uctomb-tests: New file.
16966         * tests/unistr/test-u16-uctomb.c: New file.
16967
16968         Tests for module 'unistr/u8-uctomb'.
16969         * modules/unistr/u8-uctomb-tests: New file.
16970         * tests/unistr/test-u8-uctomb.c: New file.
16971
16972         Tests for module 'unistr/u32-mbtoucr'.
16973         * modules/unistr/u32-mbtoucr-tests: New file.
16974         * tests/unistr/test-u32-mbtoucr.c: New file.
16975
16976         Tests for module 'unistr/u16-mbtoucr'.
16977         * modules/unistr/u16-mbtoucr-tests: New file.
16978         * tests/unistr/test-u16-mbtoucr.c: New file.
16979
16980         Tests for module 'unistr/u8-mbtoucr'.
16981         * modules/unistr/u8-mbtoucr-tests: New file.
16982         * tests/unistr/test-u8-mbtoucr.c: New file.
16983
16984         Tests for module 'unistr/u32-mbtouc'.
16985         * modules/unistr/u32-mbtouc-tests: New file.
16986         * tests/unistr/test-u32-mbtouc.c: New file.
16987
16988         Tests for module 'unistr/u16-mbtouc'.
16989         * modules/unistr/u16-mbtouc-tests: New file.
16990         * tests/unistr/test-u16-mbtouc.c: New file.
16991
16992         Tests for module 'unistr/u8-mbtouc'.
16993         * modules/unistr/u8-mbtouc-tests: New file.
16994         * tests/unistr/test-u8-mbtouc.c: New file.
16995
16996         Tests for module 'unistr/u32-mbtouc-unsafe'.
16997         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16998         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16999         * tests/unistr/test-u32-mbtouc.h: New file.
17000
17001         Tests for module 'unistr/u16-mbtouc-unsafe'.
17002         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17003         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17004         * tests/unistr/test-u16-mbtouc.h: New file.
17005
17006         Tests for module 'unistr/u8-mbtouc-unsafe'.
17007         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17008         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17009         * tests/unistr/test-u8-mbtouc.h: New file.
17010
17011         Tests for module 'unistr/u32-mblen'.
17012         * modules/unistr/u32-mblen-tests: New file.
17013         * tests/unistr/test-u32-mblen.c: New file.
17014
17015         Tests for module 'unistr/u16-mblen'.
17016         * modules/unistr/u16-mblen-tests: New file.
17017         * tests/unistr/test-u16-mblen.c: New file.
17018
17019         Tests for module 'unistr/u8-mblen'.
17020         * modules/unistr/u8-mblen-tests: New file.
17021         * tests/unistr/test-u8-mblen.c: New file.
17022
17023         Tests for module 'unistr/u32-to-u16'.
17024         * modules/unistr/u32-to-u16-tests: New file.
17025         * tests/unistr/test-u32-to-u16.c: New file.
17026
17027         Tests for module 'unistr/u32-to-u8'.
17028         * modules/unistr/u32-to-u8-tests: New file.
17029         * tests/unistr/test-u32-to-u8.c: New file.
17030
17031         Tests for module 'unistr/u16-to-u32'.
17032         * modules/unistr/u16-to-u32-tests: New file.
17033         * tests/unistr/test-u16-to-u32.c: New file.
17034
17035         Tests for module 'unistr/u16-to-u8'.
17036         * modules/unistr/u16-to-u8-tests: New file.
17037         * tests/unistr/test-u16-to-u8.c: New file.
17038
17039         Tests for module 'unistr/u8-to-u32'.
17040         * modules/unistr/u8-to-u32-tests: New file.
17041         * tests/unistr/test-u8-to-u32.c: New file.
17042
17043         Tests for module 'unistr/u8-to-u16'.
17044         * modules/unistr/u8-to-u16-tests: New file.
17045         * tests/unistr/test-u8-to-u16.c: New file.
17046
17047         Tests for module 'unistr/u32-check'.
17048         * modules/unistr/u32-check-tests: New file.
17049         * tests/unistr/test-u32-check.c: New file.
17050
17051         Tests for module 'unistr/u16-check'.
17052         * modules/unistr/u16-check-tests: New file.
17053         * tests/unistr/test-u16-check.c: New file.
17054
17055         Tests for module 'unistr/u8-check'.
17056         * modules/unistr/u8-check-tests: New file.
17057         * tests/unistr/test-u8-check.c: New file.
17058
17059         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17060         (category_equals): New function.
17061         (main): Add more tests.
17062         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17063
17064         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17065
17066 2010-01-10  Bruno Haible  <bruno@clisp.org>
17067
17068         unistr/u*-strcoll: Try harder to distinguish different strings.
17069         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17070         compare s1 and s2 to see if they are different.
17071
17072 2010-01-10  Bruno Haible  <bruno@clisp.org>
17073
17074         unistr/u*-stpncpy: Fix the return value.
17075         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17076         description of the return value consistent with stpncpy in glibc.
17077         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17078         written non-NUL unit.
17079
17080 2010-01-10  Bruno Haible  <bruno@clisp.org>
17081
17082         unistr/u*-next: Add missing dependencies.
17083         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17084         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17085         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17086
17087 2010-01-10  Bruno Haible  <bruno@clisp.org>
17088
17089         unistr/u8-mbsnlen: Fix return value for incomplete character.
17090         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17091         u8_mblen.
17092         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17093         Remove unistr/u8-mblen.
17094         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17095         u16_mblen.
17096         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17097         Remove unistr/u16-mblen.
17098
17099 2010-01-10  Bruno Haible  <bruno@clisp.org>
17100
17101         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17102         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17103         Reported by Brian Gough <bjg@gnu.org> and
17104         Chris Clayton <chris2553@googlemail.com> via
17105         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17106
17107 2010-01-09  Bruno Haible  <bruno@clisp.org>
17108
17109         unistr/u16-to-u32: Reject invalid input.
17110         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17111         u16_mbtouc.
17112         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17113         Remove unistr/u16-mbtouc.
17114
17115         unistr/u16-to-u8: Reject invalid input.
17116         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17117         u16_mbtouc.
17118         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17119         Remove unistr/u16-mbtouc.
17120
17121         unistr/u8-to-u32: Reject invalid input.
17122         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17123         u8_mbtouc.
17124         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17125         Remove unistr/u8-mbtouc.
17126
17127         unistr/u8-to-u16: Reject invalid input.
17128         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17129         u8_mbtouc.
17130         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17131         Remove unistr/u8-mbtouc.
17132
17133 2010-01-09  Bruno Haible  <bruno@clisp.org>
17134
17135         Tests for module 'getlogin'.
17136         * modules/getlogin-tests: New file.
17137         * tests/test-getlogin.c: New file.
17138
17139         New module 'getlogin'.
17140         * lib/unistd.in.h (getlogin): New declaration.
17141         * lib/getlogin.c: New file.
17142         * m4/getlogin.m4: New file.
17143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17144         HAVE_GETLOGIN.
17145         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17146         HAVE_GETLOGIN.
17147         * modules/getlogin: New file.
17148         * doc/posix-functions/getlogin.texi: Mention the new module.
17149         Reported by John W. Eaton <jwe@gnu.org>.
17150
17151 2010-01-09  Bruno Haible  <bruno@clisp.org>
17152
17153         getlogin_r: Support for native Windows.
17154         * lib/getlogin_r.c: Include <windows.h>
17155         (getlogin_r): Implement for native Windows.
17156         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17157         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17158         via John W. Eaton <jwe@gnu.org>.
17159
17160 2010-01-09  Bruno Haible  <bruno@clisp.org>
17161
17162         getlogin_r: Small fixes.
17163         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17164         succeeds.
17165         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17166         before testing whether getlogin_r is declared. No need to set
17167         HAVE_DECL_GETLOGIN_R to 1.
17168         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17169
17170 2010-01-09  Bruno Haible  <bruno@clisp.org>
17171
17172         * lib/unistd.in.h (getlogin_r): Add comment.
17173
17174 2010-01-09  Bruno Haible  <bruno@clisp.org>
17175
17176         Tests for module 'getlogin_r'.
17177         * modules/getlogin_r-tests: New file.
17178         * tests/test-getlogin_r.c: New file.
17179
17180 2010-01-09  Jim Meyering  <meyering@redhat.com>
17181
17182         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17183         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17184         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17185
17186 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17187
17188         * lib/dup2.c (rpl_dup2): Improve comment.
17189
17190 2010-01-08  Eric Blake  <ebb9@byu.net>
17191
17192         maint.mk: allow packages to add makefile @@ exceptions
17193         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17194         (sc_makefile_check): Rename...
17195         (sc_makefile_at_at_check): ...to this, and use hook.
17196
17197         dup2: work around mingw bug
17198         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17199         Reported by Simon Josefsson.
17200
17201 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17202
17203         glob: Fix C++ compilation.
17204         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17205         C++.
17206
17207 2010-01-07  Bruno Haible  <bruno@clisp.org>
17208
17209         Fix indentation of wctype.in.h, broken since 2007-01-06.
17210         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17211
17212 2010-01-07  Bruno Haible  <bruno@clisp.org>
17213
17214         mbslen: Avoid collision with system function.
17215         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17216         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17217         * m4/mbslen.m4: New file.
17218         * modules/mbslen (Files): Add it.
17219         (configure.ac): Invoke gl_MBSLEN.
17220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17221         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17222         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17223         via Ian Beckwith <ianb@erislabs.net>.
17224
17225 2010-01-07  Bruno Haible  <bruno@clisp.org>
17226
17227         dirent: Document the last fix.
17228         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17229
17230 2010-01-07  Bruno Haible  <bruno@clisp.org>
17231
17232         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17233         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17234         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17235         va_list are defined.
17236         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17237         Reported by Eric Blake.
17238
17239 2010-01-07  Bruno Haible  <bruno@clisp.org>
17240
17241         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17242         * modules/xlist (Depends-on): Add 'list',
17243         * modules/xoset (Depends-on): Add 'oset'.
17244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17245
17246 2010-01-07  Bruno Haible  <bruno@clisp.org>
17247
17248         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17249         * doc/posix-functions/strncasecmp.texi: Likewise.
17250
17251 2010-01-07  Bruno Haible  <bruno@clisp.org>
17252
17253         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17254
17255 2010-01-07  John W. Eaton  <jwe@octave.org>
17256
17257         wctype: allow C++ use
17258         * lib/wctype.in.h: Add extern "C" block for C++.
17259
17260 2010-01-06  Eric Blake  <ebb9@byu.net>
17261
17262         maint.mk: detect incorrect GFDL usage
17263         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17264
17265 2010-01-06  Jim Meyering  <meyering@redhat.com>
17266         and Eric Blake  <ebb9@byu.net>
17267
17268         maint.mk: ignore multi-line copyright in NEWS
17269         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17270
17271 2010-01-06  Eric Blake  <ebb9@byu.net>
17272
17273         select: add missing dependency
17274         * modules/select-tests (Depends-on): Move sockets dependency...
17275         * modules/select (Depends-on): ...here.
17276         Reported by Ian Beckwith.
17277
17278         doc: regenerate INSTALL
17279         * doc/INSTALL: Reflect recent autoconf update.
17280         * doc/INSTALL.ISO: Likewise.
17281         * doc/INSTALL.UTF-8: Likewise.
17282
17283         pread: fix compilation on glibc
17284         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17285         Reported by Ralf Wildenhues.
17286
17287         dirent: fix test failure
17288         * lib/dirent.in.h (includes): Guarantee ino_t.
17289         Reported by Ralf Wildenhues.
17290
17291 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17292
17293         linkat, renameat: avoid bad free
17294         * lib/at-func2.c (at_func2): Fix typo.
17295         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17296
17297 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17298
17299         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17300         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17301         to avoid failure of symlink test later.
17302
17303 2010-01-06  Eric Blake  <ebb9@byu.net>
17304
17305         stdio, unistd: guarantee ssize_t
17306         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17307         2008 are exposed when needed.
17308         * lib/stdio.in.h (includes): Likewise.
17309         Reported by Ralf Wildenhues.
17310
17311 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17312
17313         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17314         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17315         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17316
17317 2010-01-06  Jim Meyering  <meyering@redhat.com>
17318
17319         readtokens: this module *does* require xalloc.h
17320         It uses only functions that were omitted by the old syntax-check rule.
17321         * lib/readtokens.c: Include "xalloc.h" once again.
17322         * modules/readtokens (Depends-on): Add xalloc.
17323         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17324
17325 2010-01-05  Eric Blake  <ebb9@byu.net>
17326
17327         maint: support 'make announcement' from a VPATH build
17328         * top/maint.mk (announcement): Look for correct NEWS file.
17329
17330 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17331
17332         utimens (fdutimens): ignore a negative FD, per contract
17333         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17334         when we have a valid file descriptor.  Otherwise, using a brand
17335         new glibc (with just-patched futimens that now fails with EBADF)
17336         would cause this function to fail with ENOSYS.
17337         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17338         See also http://bugzilla.redhat.com/552320.
17339
17340 2010-01-05  Eric Blake  <ebb9@byu.net>
17341
17342         strcase: document what it provides
17343         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17344         gnulib module.
17345         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17346         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17347
17348 2010-01-05  Jim Meyering  <meyering@redhat.com>
17349
17350         maint: remove useless inclusions of "xalloc.h"
17351         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17352         * lib/readtokens.c: Likewise.
17353         * lib/same.c: Likewise.
17354         * modules/getloadavg (Depends-on): Remove xalloc.
17355         * modules/readtokens: Likewise.
17356         * modules/same: Likewise.
17357
17358         maint.mk: include 4 more function names in alloca.h-checking regexp
17359         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17360         regexp.  Before, we would give a false-positive (saying alloca.h
17361         is included unnecessarily) when the only uses involved omitted symbols.
17362
17363         xalloc.h: use consistent formatting
17364         * lib/xalloc.h: Move declarations to start in the first column.
17365
17366 2010-01-05  Eric Blake  <ebb9@byu.net>
17367
17368         mkdir: avoid xalloc
17369         * lib/mkdir.c (includes): Drop unused header.
17370         Reported by John W. Eaton.
17371
17372 2010-01-04  Jim Meyering  <meyering@redhat.com>
17373
17374         nl_langinfo: avoid configure-time syntax error
17375         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17376         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17377         the empty string.  Don't let that provoke a shell syntax error.
17378
17379         regcomp, regexec, fnmatch: avoid array bounds read error
17380         * lib/regcomp.c (build_equiv_class): From glibc:
17381         Use only the low 24 bits of a findidx return value as an index
17382         into the weights array.  Patch by Ulrich Drepper:
17383         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17384         * lib/regexec.c (check_node_accept_bytes): Likewise.
17385         * lib/fnmatch_loop.c (FCT): Likewise.
17386
17387         regcomp: skip collseq lookup when there are no rules
17388         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17389         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17390
17391         regcomp: recognize ill-formed { } expressions
17392         * lib/regcomp.c (parse_dup_op): From glibc:
17393         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17394
17395         regcomp: fix typo in comment
17396         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17397         s/satisfy/satisfies/.
17398
17399         regcomp: sync from glibc: remove dead store
17400         * lib/regcomp.c (duplicate_node_closure): Remove useless
17401         search_duplicated_node call and dead store.
17402
17403         regcomp: sync from glibc; always use nl_langinfo
17404         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17405         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17406         * modules/regex (Depends-on): Add nl_langinfo.
17407
17408 2010-01-04  Eric Blake  <ebb9@byu.net>
17409
17410         fdopendir: fix configure test
17411         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17412
17413 2010-01-01  Bruno Haible  <bruno@clisp.org>
17414
17415         wchar: Remove unused configure check.
17416         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17417
17418 2010-01-01  Eric Blake  <ebb9@byu.net>
17419
17420         headers: make check of system header explicit
17421         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17422         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17423         ourselves.
17424         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17425         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17426         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17427         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17428         internals.
17429         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17430         missing.
17431         Suggested by Bruno Haible.
17432
17433 2010-01-01  Jim Meyering  <meyering@redhat.com>
17434
17435         ChangeLog: tweak to eliminate unnecessary copyright line
17436         * ChangeLog: Remove a copyright line that was mistakenly updated
17437         by today's update-copyright run.  Reported by Eric Blake.
17438
17439         test-update-copyright: don't let envvar setting cause test failure
17440         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17441
17442 2010-01-01  Bruno Haible  <bruno@clisp.org>
17443
17444         localename: Avoid gcc warning.
17445         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17446         function if it is not used.
17447
17448 2010-01-01  Jim Meyering  <meyering@redhat.com>
17449
17450         update nearly all FSF copyright year lists to include 2010
17451         Use the same procedure as for 2009, outlined in
17452         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17453
17454         version-etc: set COPYRIGHT_YEAR to 2010
17455         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17456
17457 2009-12-31  Eric Blake  <ebb9@byu.net>
17458
17459         doc: correct availability of cygwin 1.5.x getopt
17460         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17461         variables.
17462         * doc/posix-functions/opterr.texi (opterr): Likewise.
17463         * doc/posix-functions/optind.texi (optind): Likewise.
17464         * doc/posix-functions/optopt.texi (optopt): Likewise.
17465         * doc/posix-functions/tzname.texi (tzname): Likewise.
17466
17467         openat: update maintainer
17468         * modules/openat (Maintainer): Add myself.
17469
17470         utimens: avoid shadowing warning
17471         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17472         buffers into one, to avoid shadowing, as well as avoiding a
17473         redundant stat.
17474         Reported by Jim Meyering.
17475
17476         test-dup2: avoid compiler warning
17477         * tests/test-dup2.c (is_inheritable): Only define if used.
17478
17479 2010-01-01  Bruno Haible  <bruno@clisp.org>
17480
17481         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17482         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17483         defined, use wctomb instead of wcrtomb.
17484
17485 2010-01-01  Bruno Haible  <bruno@clisp.org>
17486
17487         iconv: Reject native Solaris iconv.
17488         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17489         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17490
17491 2009-12-31  Bruno Haible  <bruno@clisp.org>
17492
17493         * tests/test-signal.c (main): Remove test of 'SIG'.
17494
17495 2009-12-31  Bruno Haible  <bruno@clisp.org>
17496
17497         spawn: Fix incomplete fix.
17498         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17499         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17500         warnings for GNULIB_POSIXCHECK again.
17501         Reported by Eric Blake.
17502
17503 2009-12-31  Bruno Haible  <bruno@clisp.org>
17504
17505         Avoid namespace pollution on glibc systems.
17506         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17507         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17508         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17509         glibc systems.
17510
17511 2009-12-31  Bruno Haible  <bruno@clisp.org>
17512
17513         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17514         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17515         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17516         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17517         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17518         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17519         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17520
17521 2009-12-31  Bruno Haible  <bruno@clisp.org>
17522
17523         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17524         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17525         afterwards.
17526
17527 2009-12-31  Bruno Haible  <bruno@clisp.org>
17528
17529         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17530         SYS_UTSNAME_H.
17531
17532 2009-12-31  Bruno Haible  <bruno@clisp.org>
17533
17534         spawn: Fix misapplied patch.
17535         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17536         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17537         warnings for GNULIB_POSIXCHECK.
17538
17539 2009-12-31  Bruno Haible  <bruno@clisp.org>
17540
17541         times: Update after sys_times changed.
17542         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17543         * modules/times (Files): Add it.
17544         (configure.ac): Invoke gl_FUNC_TIMES.
17545
17546 2009-12-31  Bruno Haible  <bruno@clisp.org>
17547
17548         Use AC_C_INLINE where necessary.
17549         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17550         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17552         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17553         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17554         * m4/mbiter.m4 (gl_MBITER): Likewise.
17555         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17556         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17557         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17558         * modules/u64 (configure.ac): Likewise.
17559
17560 2009-12-31  Bruno Haible  <bruno@clisp.org>
17561
17562         Use AC_C_INLINE instead of module 'inline' where possible.
17563         * modules/inline (Description): Clarify purpose.
17564         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17565         * modules/count-one-bits (Depends-on): Remove inline.
17566         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17567         * modules/openat (Depends-on): Remove inline.
17568         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17569         instead of depending on module 'inline'.
17570         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17571         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17572         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17573         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17574         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17575         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17576         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17577         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17578         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17579         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17580         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17581         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17582         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17583         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17584         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17585         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17586         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17587         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17588         Likewise.
17589         * modules/unictype/property-ascii-hex-digit (Depends-on,
17590         configure.ac): Likewise.
17591         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17592         configure.ac): Likewise.
17593         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17594         configure.ac): Likewise.
17595         * modules/unictype/property-bidi-block-separator (Depends-on,
17596         configure.ac): Likewise.
17597         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17598         configure.ac): Likewise.
17599         * modules/unictype/property-bidi-common-separator (Depends-on,
17600         configure.ac): Likewise.
17601         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17602         Likewise.
17603         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17604         configure.ac): Likewise.
17605         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17606         configure.ac): Likewise.
17607         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17608         configure.ac): Likewise.
17609         * modules/unictype/property-bidi-european-digit (Depends-on,
17610         configure.ac): Likewise.
17611         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17612         configure.ac): Likewise.
17613         * modules/unictype/property-bidi-left-to-right (Depends-on,
17614         configure.ac): Likewise.
17615         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17616         configure.ac): Likewise.
17617         * modules/unictype/property-bidi-other-neutral (Depends-on,
17618         configure.ac): Likewise.
17619         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17620         Likewise.
17621         * modules/unictype/property-bidi-segment-separator (Depends-on,
17622         configure.ac): Likewise.
17623         * modules/unictype/property-bidi-whitespace (Depends-on,
17624         configure.ac): Likewise.
17625         * modules/unictype/property-combining (Depends-on, configure.ac):
17626         Likewise.
17627         * modules/unictype/property-composite (Depends-on, configure.ac):
17628         Likewise.
17629         * modules/unictype/property-currency-symbol (Depends-on,
17630         configure.ac): Likewise.
17631         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17632         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17633         Likewise.
17634         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17635         configure.ac): Likewise.
17636         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17637         Likewise.
17638         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17639         Likewise.
17640         * modules/unictype/property-extender (Depends-on, configure.ac):
17641         Likewise.
17642         * modules/unictype/property-format-control (Depends-on, configure.ac):
17643         Likewise.
17644         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17645         Likewise.
17646         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17647         Likewise.
17648         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17649         Likewise.
17650         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17651         Likewise.
17652         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17653         Likewise.
17654         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17655         Likewise.
17656         * modules/unictype/property-id-start (Depends-on, configure.ac):
17657         Likewise.
17658         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17659         Likewise.
17660         * modules/unictype/property-ids-binary-operator (Depends-on,
17661         configure.ac): Likewise.
17662         * modules/unictype/property-ids-trinary-operator (Depends-on,
17663         configure.ac): Likewise.
17664         * modules/unictype/property-ignorable-control (Depends-on,
17665         configure.ac): Likewise.
17666         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17667         Likewise.
17668         * modules/unictype/property-join-control (Depends-on, configure.ac):
17669         Likewise.
17670         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17671         Likewise.
17672         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17673         Likewise.
17674         * modules/unictype/property-logical-order-exception (Depends-on,
17675         configure.ac): Likewise.
17676         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17677         Likewise.
17678         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17679         * modules/unictype/property-non-break (Depends-on, configure.ac):
17680         Likewise.
17681         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17682         Likewise.
17683         * modules/unictype/property-numeric (Depends-on, configure.ac):
17684         Likewise.
17685         * modules/unictype/property-other-alphabetic (Depends-on,
17686         configure.ac): Likewise.
17687         * modules/unictype/property-other-default-ignorable-code-point
17688         (Depends-on, configure.ac): Likewise.
17689         * modules/unictype/property-other-grapheme-extend (Depends-on,
17690         configure.ac): Likewise.
17691         * modules/unictype/property-other-id-continue (Depends-on,
17692         configure.ac): Likewise.
17693         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17694         Likewise.
17695         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17696         Likewise.
17697         * modules/unictype/property-other-math (Depends-on, configure.ac):
17698         Likewise.
17699         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17700         Likewise.
17701         * modules/unictype/property-paired-punctuation (Depends-on,
17702         configure.ac): Likewise.
17703         * modules/unictype/property-paragraph-separator (Depends-on,
17704         configure.ac): Likewise.
17705         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17706         Likewise.
17707         * modules/unictype/property-pattern-white-space (Depends-on,
17708         configure.ac): Likewise.
17709         * modules/unictype/property-private-use (Depends-on, configure.ac):
17710         Likewise.
17711         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17712         Likewise.
17713         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17714         Likewise.
17715         * modules/unictype/property-radical (Depends-on, configure.ac):
17716         Likewise.
17717         * modules/unictype/property-sentence-terminal (Depends-on,
17718         configure.ac): Likewise.
17719         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17720         Likewise.
17721         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17722         * modules/unictype/property-terminal-punctuation (Depends-on,
17723         configure.ac): Likewise.
17724         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17725         Likewise.
17726         * modules/unictype/property-unassigned-code-value (Depends-on,
17727         configure.ac): Likewise.
17728         * modules/unictype/property-unified-ideograph (Depends-on,
17729         configure.ac): Likewise.
17730         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17731         Likewise.
17732         * modules/unictype/property-variation-selector (Depends-on,
17733         configure.ac): Likewise.
17734         * modules/unictype/property-white-space (Depends-on, configure.ac):
17735         Likewise.
17736         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17737         Likewise.
17738         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17739         Likewise.
17740         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17741         Likewise.
17742         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17743         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17744         Likewise.
17745
17746 2009-12-31  Bruno Haible  <bruno@clisp.org>
17747
17748         Remove unnecessary AC_C_INLINE invocation.
17749         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17750         since 2009-08-21.
17751
17752 2009-12-31  Jim Meyering  <meyering@redhat.com>
17753
17754         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17755         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17756         With this change, we can all remove the gpg_key_ID = ... definition
17757         from our respective cfg.mk files.
17758
17759         maint.mk: create announcement template in ~/, not in /tmp
17760         * top/maint.mk (emit_upload_commands): Adjust.
17761         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17762         Remove temporary file, .ci-msg.
17763
17764 2009-12-31  Eric Blake  <ebb9@byu.net>
17765
17766         link-warning: always build headers with link warnings
17767         * modules/arpa_inet (Makefile.am): Always build replacement
17768         header.
17769         * modules/ctype (Makefile.am): Likewise.
17770         * modules/dirent (Makefile.am): Likewise.
17771         * modules/inttypes (Makefile.am): Likewise.
17772         * modules/langinfo (Makefile.am): Likewise.
17773         * modules/locale (Makefile.am): Likewise.
17774         * modules/spawn (Makefile.am): Likewise.
17775         * modules/sys_file (Makefile.am): Likewise.
17776         * modules/sys_ioctl (Makefile.am): Likewise.
17777         * modules/sys_select (Makefile.am): Likewise.
17778         * modules/sys_socket (Makefile.am): Likewise.
17779         * modules/sys_times (Makefile.am): Likewise.
17780         * modules/sys_utsname (Makefile.am): Likewise.
17781         * modules/sys_wait (Makefile.am): Likewise.
17782         * modules/wchar (Makefile.am): Likewise.
17783         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17784         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17785         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17786         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17787         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17788         Likewise.
17789         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17790         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17791         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17792         Likewise.
17793         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17794         Likewise.
17795         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17796         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17797         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17799         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17801         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17802         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17803         (gl_WCHAR_H_DEFAULTS): Likewise.
17804
17805 2009-12-31  Eric Blake  <ebb9@byu.net>
17806
17807         signal, spawn: use link warnings
17808         * lib/signal.in.h (sigset_t): Make unconditional.
17809         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17810         (sigpending, sigprocmask, sigaction): Add link warnings.
17811         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17812         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17813         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17814         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17815         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17816         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17817         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17818         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17819         (posix_spawn_file_actions_destroy)
17820         (posix_spawn_file_actions_addopen)
17821         (posix_spawn_file_actions_addclose)
17822         (posix_spawn_file_actions_adddup2): Likewise.
17823         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17824         * tests/test-signal.c (main): Enhance test.
17825
17826         spawn: improve wrapper support
17827         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17828         (gl_SPAWN_H_DEFAULTS): New defaults.
17829         * modules/spawn (Makefile.am): Substitute them.
17830         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17831         Only declare if missing or broken.
17832
17833         sys_times, sys_utsname: use include_next
17834         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17835         header.
17836         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17837         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17838         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17839         * modules/sys_times (Depends-on): Add include_next.
17840         (Makefile.am): Substitute additional values.
17841         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17842         * lib/sys_times.in.h (includes): Include native header, if
17843         available.
17844         * lib/sys_utsname.in.h (includes): Likewise.
17845         * tests/test-sys_times.c (main): Enhance test.
17846
17847         fdutimensat: revert prior patch
17848         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17849         utimens.h.
17850         Reported by Bruno Haible.
17851
17852 2009-12-30  Eric Blake  <ebb9@byu.net>
17853
17854         sys_wait: drop link-warning dependency
17855         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17856         link-warning efforts.
17857         * lib/sys_wait.in.h: Likewise.
17858
17859         fdutimensat: remove bogus dependency
17860         * modules/fdutimensat (Depends-on): Drop inline.
17861
17862         unistd: fix typo
17863         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17864
17865 2009-12-30  Bruno Haible  <bruno@clisp.org>
17866
17867         Fix compilation error with Solaris cc.
17868         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17869         * lib/unicase/u16-is-invariant.c: Likewise.
17870         * lib/unicase/u32-is-invariant.c: Likewise.
17871         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17872
17873 2009-12-30  Bruno Haible  <bruno@clisp.org>
17874
17875         Fix test crash.
17876         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17877         locales.
17878         Reported by Simon Josefsson <simon@josefsson.org>.
17879
17880 2009-12-30  Bruno Haible  <bruno@clisp.org>
17881
17882         Fix compilation error on most platforms.
17883         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17884         Reported by Simon Josefsson <simon@josefsson.org>
17885         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17886
17887 2009-12-30  Eric Blake  <ebb9@byu.net>
17888
17889         futimens, utimensat: work around ntfs-3g bug
17890         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17891         a ctime bug is present, and expand workaround to cover ntfs-3g.
17892         * lib/utimens.c (fdutimens, lutimens): Likewise.
17893         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17894         (validate_timespec): Adjust return value.
17895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17896         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17897         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17898
17899 2009-12-29  Eric Blake  <ebb9@byu.net>
17900
17901         link-warning: make usage consistent
17902         * modules/ctype (Depends-on): Add link-warning.
17903         (Makefile.am): Update rules accordingly.
17904         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17905         * modules/locale (Depends-on, Makefile.am): Likewise.
17906         * modules/sys_file (Makefile.am): Likewise.
17907         * modules/getopt-posix (Makefile.am): Delete unused link warning
17908         efforts.
17909         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17910         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17911         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17912         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17913
17914         stdio: remove unused variables
17915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17916         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17917         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17918
17919         tests: test more substitute headers
17920         * modules/ctype-tests: New file.
17921         * modules/dirent-tests: Likewise.
17922         * modules/spawn-tests: Likewise.
17923         * modules/sys_file-tests: Likewise.
17924         * modules/sys_ioctl-tests: Likewise.
17925         * modules/sys_wait-tests: Likewise.
17926         * tests/test-ctype.c: Likewise.
17927         * tests/test-dirent.c: Likewise.
17928         * tests/test-spawn.c: Likewise.
17929         * tests/test-sys_file.c: Likewise.
17930         * tests/test-sys_ioctl.c: Likewise.
17931         * tests/test-sys_wait.c: Likewise.
17932         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17933         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17934         whether or not flock is in use.
17935
17936         tests: remove License section from module
17937         * modules/arpa_inet-tests: Remove unneeded section.
17938         * modules/byteswap-tests: Likewise.
17939         * modules/ceilf-tests: Likewise.
17940         * modules/ceill-tests: Likewise.
17941         * modules/crypto/des-tests: Likewise.
17942         * modules/crypto/gc-arcfour-tests: Likewise.
17943         * modules/crypto/gc-arctwo-tests: Likewise.
17944         * modules/crypto/gc-des-tests: Likewise.
17945         * modules/crypto/gc-hmac-md5-tests: Likewise.
17946         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17947         * modules/crypto/gc-md2-tests: Likewise.
17948         * modules/crypto/gc-md4-tests: Likewise.
17949         * modules/crypto/gc-md5-tests: Likewise.
17950         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17951         * modules/crypto/gc-rijndael-tests: Likewise.
17952         * modules/crypto/gc-sha1-tests: Likewise.
17953         * modules/crypto/gc-tests: Likewise.
17954         * modules/crypto/md2-tests: Likewise.
17955         * modules/crypto/md4-tests: Likewise.
17956         * modules/fcntl-h-tests: Likewise.
17957         * modules/floorf-tests: Likewise.
17958         * modules/floorl-tests: Likewise.
17959         * modules/frexp-nolibm-tests: Likewise.
17960         * modules/frexp-tests: Likewise.
17961         * modules/frexpl-nolibm-tests: Likewise.
17962         * modules/frexpl-tests: Likewise.
17963         * modules/getaddrinfo-tests: Likewise.
17964         * modules/inttypes-tests: Likewise.
17965         * modules/isfinite-tests: Likewise.
17966         * modules/isinf-tests: Likewise.
17967         * modules/ldexpl-tests: Likewise.
17968         * modules/locale-tests: Likewise.
17969         * modules/math-tests: Likewise.
17970         * modules/netdb-tests: Likewise.
17971         * modules/netinet_in-tests: Likewise.
17972         * modules/printf-frexp-tests: Likewise.
17973         * modules/printf-frexpl-tests: Likewise.
17974         * modules/priv-set-tests: Likewise.
17975         * modules/random_r-tests: Likewise.
17976         * modules/round-tests: Likewise.
17977         * modules/roundf-tests: Likewise.
17978         * modules/roundl-tests: Likewise.
17979         * modules/search-tests: Likewise.
17980         * modules/select-tests: Likewise.
17981         * modules/signal-tests: Likewise.
17982         * modules/stdbool-tests: Likewise.
17983         * modules/stddef-tests: Likewise.
17984         * modules/stdint-tests: Likewise.
17985         * modules/stdio-tests: Likewise.
17986         * modules/stdlib-tests: Likewise.
17987         * modules/string-tests: Likewise.
17988         * modules/strings-tests: Likewise.
17989         * modules/sys_select-tests: Likewise.
17990         * modules/sys_socket-tests: Likewise.
17991         * modules/sys_stat-tests: Likewise.
17992         * modules/sys_time-tests: Likewise.
17993         * modules/sys_utsname-tests: Likewise.
17994         * modules/sysexits-tests: Likewise.
17995         * modules/time-tests: Likewise.
17996         * modules/trunc-tests: Likewise.
17997         * modules/truncf-tests: Likewise.
17998         * modules/truncl-tests: Likewise.
17999         * modules/tsearch-tests: Likewise.
18000         * modules/unistd-tests: Likewise.
18001         * modules/wchar-tests: Likewise.
18002         * modules/wctype-tests: Likewise.
18003
18004         tests: fix license on several tests
18005         * tests/test-des.c: Update to GPLv3+.
18006         * tests/test-flock.c: Likewise.
18007         * tests/test-fsync.c: Likewise.
18008         * tests/test-futimens.h: Likewise.
18009         * tests/test-gc-arcfour.c: Likewise.
18010         * tests/test-gc-arctwo.c: Likewise.
18011         * tests/test-gc-des.c: Likewise.
18012         * tests/test-gc-hmac-md5.c: Likewise.
18013         * tests/test-gc-hmac-sha1.c: Likewise.
18014         * tests/test-gc-md2.c: Likewise.
18015         * tests/test-gc-md4.c: Likewise.
18016         * tests/test-gc-md5.c: Likewise.
18017         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18018         * tests/test-gc-rijndael.c: Likewise.
18019         * tests/test-gc-sha1.c: Likewise.
18020         * tests/test-gc.c: Likewise.
18021         * tests/test-getcwd.c: Likewise.
18022         * tests/test-link.c: Likewise.
18023         * tests/test-link.h: Likewise.
18024         * tests/test-lutimens.h: Likewise.
18025         * tests/test-md2.c: Likewise.
18026         * tests/test-md4.c: Likewise.
18027         * tests/test-mkdir.h: Likewise.
18028         * tests/test-rename.c: Likewise.
18029         * tests/test-rename.h: Likewise.
18030         * tests/test-safe-alloc.c: Likewise.
18031         * tests/test-utimens-common.h: Likewise.
18032         * tests/test-utimens.h: Likewise.
18033
18034         maint: sync license texts
18035         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18036         * doc/gpl-3.0.texi: Revert copyright year update.
18037         * doc/lgpl-3.0.texi: Likewise.
18038
18039 2009-12-29  Jim Meyering  <meyering@redhat.com>
18040
18041         update nearly all FSF copyright year lists to include 2009
18042         The files named by the following are exempted:
18043             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18044               test -f "$dst" && { echo "$dst"; continue; }
18045               test -d "$dst" || continue
18046               echo "$dst"/$(basename "$src")
18047             done > exempt
18048             git ls-files tests/unictype >> exempt
18049         In the remaining files, convert to all-interval notation if
18050         - there is already at least one year interval like 2000-2003
18051         - the file is maintained by me
18052         - the file is in lib/uni*/, where that style already prevails
18053         Otherwise, use update-copyright's default.
18054
18055 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18056         and Eric Blake  <ebb9@byu.net>
18057
18058         tests: don't require debug system() to pass
18059         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18060         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18061         * tests/test-unlink.h (test_unlink_func): Likewise.
18062         * tests/test-fstatat.c (main): ...into callers.
18063         * tests/test-lstat.c (main): Likewise.
18064         * tests/test-rmdir.c (main): Likewise.
18065         * tests/test-unlink.c (main): Likewise.
18066         * tests/test-unlinkat.c (main): Likewise.
18067         * tests/test-areadlink-with-size.c (main): Don't require a
18068         debug-only system call to pass, aiding cross-testing to mingw.
18069         * tests/test-areadlink.c (main): Likewise.
18070         * tests/test-areadlinkat-with-size.c (main): Likewise.
18071         * tests/test-areadlinkat.c (main): Likewise.
18072         * tests/test-canonicalize-lgpl.c (main): Likewise.
18073         * tests/test-canonicalize.c (main): Likewise.
18074         * tests/test-chown.c (main): Likewise.
18075         * tests/test-fchownat.c (main): Likewise.
18076         * tests/test-lchown.c (main): Likewise.
18077         * tests/test-fdutimensat.c (main): Likewise.
18078         * tests/test-futimens.c (main): Likewise.
18079         * tests/test-link.c (main): Likewise.
18080         * tests/test-linkat.c (main): Likewise.
18081         * tests/test-mkdir.c (main): Likewise.
18082         * tests/test-mkdirat.c (main): Likewise.
18083         * tests/test-mkfifo.c (main): Likewise.
18084         * tests/test-mkfifoat.c (main): Likewise.
18085         * tests/test-mknod.c (main): Likewise.
18086         * tests/test-readlink.c (main): Likewise.
18087         * tests/test-remove.c (main): Likewise.
18088         * tests/test-rename.c (main): Likewise.
18089         * tests/test-renameat.c (main): Likewise.
18090         * tests/test-symlink.c (main): Likewise.
18091         * tests/test-symlinkat.c (main): Likewise.
18092         * tests/test-utimens.c (main): Likewise.
18093         * tests/test-utimensat.c (main): Likewise.
18094
18095 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18096
18097         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18098         on $(UNUSED_PARAMETER_H) to avoid build failure.
18099
18100 2009-12-28  Jim Meyering  <meyering@redhat.com>
18101
18102         update-copyright: you may specify a max. line length other than 72
18103         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18104
18105         maint: use consistent FSF copyright line syntax
18106         * lib/posixtm.c: Add missing comma in FSF copyright line.
18107         * lib/posixtm.h: Likewise.
18108         * lib/getugroups.c: Add missing ", Inc.".
18109
18110         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18111         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18112         FSF copyright line.  Remove trailing blanks.
18113
18114 2009-12-28  Eric Blake  <ebb9@byu.net>
18115
18116         test-dup2: reduce dependencies
18117         * modules/cloexec (Configure.ac): Set witness.
18118         * modules/dup2-tests (Depends-on): Drop cloexec.
18119         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18120         not present.
18121         Suggested by Bruno Haible.
18122
18123 2009-12-26  Bruno Haible  <bruno@clisp.org>
18124
18125         Remove an unneeded dependency.
18126         * modules/fseterr (Depends-on): Remove dup2.
18127
18128 2009-12-26  Eric Blake  <ebb9@byu.net>
18129
18130         tests: use macros.h in more places
18131         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18132         (ASSERT_STREAM): Provide default of stderr.
18133         * tests/test-dirent-safer.c: Include macros.h, using alternate
18134         stream for assertions.
18135         * tests/test-dup-safer.c: Likewise.
18136         * tests/test-freopen-safer.c: Likewise.
18137         * tests/test-getopt.c: Likewise.
18138         * tests/test-openat-safer.c: Likewise.
18139         * tests/test-pipe.c: Likewise.
18140         * tests/test-popen-safer.c: Likewise.
18141         * modules/dirent-safer-tests (Files): Include macros.h.
18142         * modules/unistd-safer-tests (Files): Likewise.
18143         * modules/freopen-safer-tests (Files): Likewise.
18144         * modules/getopt-posix-tests (Files): Likewise.
18145         * modules/openat-safer-tests (Files): Likewise.
18146         * modules/pipe-tests (Files): Likewise.
18147
18148 2009-12-26  Bruno Haible  <bruno@clisp.org>
18149
18150         javacomp: Portability fix.
18151         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18152         that it also works on Solaris.
18153
18154 2009-12-26  Bruno Haible  <bruno@clisp.org>
18155
18156         localename: Fix storage allocation of gl_locale_name_thread's result.
18157         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18158         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18159         all platforms that have 'uselocale'.
18160         (gl_locale_name_thread_unsafe): New function, extracted from
18161         gl_locale_name_thread.
18162         (gl_locale_name_thread): Call struniq on all platforms that have
18163         'uselocale'.
18164         * tests/test-localename.c (test_locale_name_thread): Check that the
18165         resulting strings are permanently allocated.
18166         * modules/localename-tests (Depends-on): Add strdup.
18167
18168 2009-12-26  Bruno Haible  <bruno@clisp.org>
18169
18170         * tests/test-localename.c (categories): Fill in the strings.
18171
18172 2009-12-26  Jim Meyering  <meyering@redhat.com>
18173
18174         isdir: complete the removal of m4/isdir.m4
18175         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18176
18177         isdir: clean up, since at least grep still uses it
18178         * lib/isdir.c: Include "isdir.h".
18179         (S_ISDIR): Remove now-unneeded definition.
18180         * modules/isdir (Files): Add lib/isdir.h.
18181         * lib/isdir.h: New file, with declaration.
18182         * m4/isdir.m4: Remove file -- unneeded.
18183
18184 2009-12-25  Bruno Haible  <bruno@clisp.org>
18185
18186         selinux-h: Make generated .h files standalone.
18187         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18188         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18189         * lib/se-selinux.in.h: Likewise.
18190         * modules/selinux-h (Depends-on): Add unused-parameter.
18191         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18192         selinux/selinux.h and selinux/context.h.
18193         Suggested by Eric Blake.
18194
18195 2009-12-25  Bruno Haible  <bruno@clisp.org>
18196
18197         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18198         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18199         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18200         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18201         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18202
18203 2009-12-24  Bruno Haible  <bruno@clisp.org>
18204
18205         openat: Fix warning.
18206         * lib/openat-proc.c: Include <unistd.h>.
18207
18208 2009-12-24  Bruno Haible  <bruno@clisp.org>
18209
18210         New module 'unused-parameter'.
18211         * build-aux/unused-parameter.h: New file, extracted from earlier
18212         gnulib-common.m4.
18213         * modules/unused-parameter: New file.
18214         * lib/unistr.h: Include unused-parameter.h.
18215         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18216         _GL_UNUSED.
18217         * modules/unistr/base (Depends-on): Add unused-parameter.
18218
18219 2009-12-24  Bruno Haible  <bruno@clisp.org>
18220
18221         Add missing dependencies to 'extensions' module.
18222         * m4/extensions.m4: Add comment.
18223         * modules/accept4 (Depends-on): Add extensions.
18224         * modules/dup3 (Depends-on): Likewise.
18225         * modules/fcntl (Depends-on): Likewise.
18226         * modules/futimens (Depends-on): Likewise.
18227         * modules/mknod (Depends-on): Likewise.
18228         * modules/pipe2 (Depends-on): Likewise.
18229         * modules/stat-time (Depends-on): Likewise.
18230         * modules/strcasestr-simple (Depends-on): Likewise.
18231         * modules/strsignal (Depends-on): Likewise.
18232         * modules/utimensat (Depends-on): Likewise.
18233         * modules/localcharset (Depends-on): Likewise. Needed because of
18234         gl_FCNTL_O_FLAGS.
18235         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18236         AC_TYPE_MBSTATE_T.
18237         * modules/wcsnrtombs (Depends-on): Likewise.
18238         * modules/wcsrtombs (Depends-on): Likewise.
18239
18240 2009-12-24  Bruno Haible  <bruno@clisp.org>
18241
18242         binary-io: Avoid gcc warning due to SET_BINARY.
18243         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18244         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18245
18246 2009-12-24  Bruno Haible  <bruno@clisp.org>
18247
18248         Avoid future namespace pollution on glibc systems.
18249         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18250         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18251         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18252         glibc systems.
18253
18254 2009-12-24  Bruno Haible  <bruno@clisp.org>
18255
18256         Refactor common macros used in tests.
18257         * tests/macros.h: New file.
18258         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18259         and/or <stdlib.h>, if appropriate.
18260         (ASSERT, SIZEOF): Remove macros.
18261         * tests/test-areadlink-with-size.c: Likewise.
18262         * tests/test-areadlinkat.c: Likewise.
18263         * tests/test-areadlinkat-with-size.c: Likewise.
18264         * tests/test-argmatch.c: Likewise.
18265         * tests/test-argv-iter.c: Likewise.
18266         * tests/test-array-mergesort.c: Likewise.
18267         * tests/test-array_list.c: Likewise.
18268         * tests/test-array_oset.c: Likewise.
18269         * tests/test-avltree_list.c: Likewise.
18270         * tests/test-avltree_oset.c: Likewise.
18271         * tests/test-avltreehash_list.c: Likewise.
18272         * tests/test-base64.c: Likewise.
18273         * tests/test-binary-io.c: Likewise.
18274         * tests/test-bitrotate.c: Likewise.
18275         * tests/test-btowc.c: Likewise.
18276         * tests/test-byteswap.c: Likewise.
18277         * tests/test-c-ctype.c: Likewise.
18278         * tests/test-c-stack.c: Likewise.
18279         * tests/test-c-strcasecmp.c: Likewise.
18280         * tests/test-c-strcasestr.c: Likewise.
18281         * tests/test-c-strncasecmp.c: Likewise.
18282         * tests/test-c-strstr.c: Likewise.
18283         * tests/test-canonicalize-lgpl.c: Likewise.
18284         * tests/test-canonicalize.c: Likewise.
18285         * tests/test-carray_list.c: Likewise.
18286         * tests/test-ceilf1.c: Likewise.
18287         * tests/test-ceilf2.c: Likewise.
18288         * tests/test-ceill.c: Likewise.
18289         * tests/test-chown.c: Likewise.
18290         * tests/test-cloexec.c: Likewise.
18291         * tests/test-copy-acl.c: Likewise.
18292         * tests/test-copy-file.c: Likewise.
18293         * tests/test-count-one-bits.c: Likewise.
18294         * tests/test-dprintf-posix.c: Likewise.
18295         * tests/test-dup2.c: Likewise.
18296         * tests/test-dup3.c: Likewise.
18297         * tests/test-duplocale.c: Likewise.
18298         * tests/test-fbufmode.c: Likewise.
18299         * tests/test-fchdir.c: Likewise.
18300         * tests/test-fchownat.c: Likewise.
18301         * tests/test-fcntl-safer.c: Likewise.
18302         * tests/test-fcntl.c: Likewise.
18303         * tests/test-fdopendir.c: Likewise.
18304         * tests/test-fdutimensat.c: Likewise.
18305         * tests/test-fflush2.c: Likewise.
18306         * tests/test-file-has-acl.c: Likewise.
18307         * tests/test-filevercmp.c: Likewise.
18308         * tests/test-flock.c: Likewise.
18309         * tests/test-floorf1.c: Likewise.
18310         * tests/test-floorf2.c: Likewise.
18311         * tests/test-floorl.c: Likewise.
18312         * tests/test-fnmatch.c: Likewise.
18313         * tests/test-fopen.h: Likewise.
18314         * tests/test-fpending.c: Likewise.
18315         * tests/test-fprintf-posix.c: Likewise.
18316         * tests/test-fpurge.c: Likewise.
18317         * tests/test-freadable.c: Likewise.
18318         * tests/test-freadahead.c: Likewise.
18319         * tests/test-freading.c: Likewise.
18320         * tests/test-freadptr.c: Likewise.
18321         * tests/test-freadptr2.c: Likewise.
18322         * tests/test-freadseek.c: Likewise.
18323         * tests/test-freopen.c: Likewise.
18324         * tests/test-frexp.c: Likewise.
18325         * tests/test-frexpl.c: Likewise.
18326         * tests/test-fseek.c: Likewise.
18327         * tests/test-fseeko.c: Likewise.
18328         * tests/test-fstatat.c: Likewise.
18329         * tests/test-fstrcmp.c: Likewise.
18330         * tests/test-fsync.c: Likewise.
18331         * tests/test-ftell.c: Likewise.
18332         * tests/test-ftello.c: Likewise.
18333         * tests/test-func.c: Likewise.
18334         * tests/test-futimens.c: Likewise.
18335         * tests/test-fwritable.c: Likewise.
18336         * tests/test-fwriting.c: Likewise.
18337         * tests/test-getcwd.c: Likewise.
18338         * tests/test-getdate.c: Likewise.
18339         * tests/test-getdelim.c: Likewise.
18340         * tests/test-getdtablesize.c: Likewise.
18341         * tests/test-getgroups.c: Likewise.
18342         * tests/test-getline.c: Likewise.
18343         * tests/test-getndelim2.c: Likewise.
18344         * tests/test-glob.c: Likewise.
18345         * tests/test-hash.c: Likewise.
18346         * tests/test-i-ring.c: Likewise.
18347         * tests/test-iconv-utf.c: Likewise.
18348         * tests/test-iconv.c: Likewise.
18349         * tests/test-idpriv-drop.c: Likewise.
18350         * tests/test-idpriv-droptemp.c: Likewise.
18351         * tests/test-inet_ntop.c: Likewise.
18352         * tests/test-inet_pton.c: Likewise.
18353         * tests/test-isblank.c: Likewise.
18354         * tests/test-isfinite.c: Likewise.
18355         * tests/test-isinf.c: Likewise.
18356         * tests/test-isnan.c: Likewise.
18357         * tests/test-isnand.h: Likewise.
18358         * tests/test-isnanf.h: Likewise.
18359         * tests/test-isnanl.h: Likewise.
18360         * tests/test-lchown.c: Likewise.
18361         * tests/test-ldexpl.c: Likewise.
18362         * tests/test-link.c: Likewise.
18363         * tests/test-linkat.c: Likewise.
18364         * tests/test-linked_list.c: Likewise.
18365         * tests/test-linkedhash_list.c: Likewise.
18366         * tests/test-localename.c: Likewise.
18367         * tests/test-lseek.c: Likewise.
18368         * tests/test-lstat.c: Likewise.
18369         * tests/test-mbmemcasecmp.c: Likewise.
18370         * tests/test-mbmemcasecoll.c: Likewise.
18371         * tests/test-mbrtowc.c: Likewise.
18372         * tests/test-mbscasecmp.c: Likewise.
18373         * tests/test-mbscasestr1.c: Likewise.
18374         * tests/test-mbscasestr2.c: Likewise.
18375         * tests/test-mbscasestr3.c: Likewise.
18376         * tests/test-mbscasestr4.c: Likewise.
18377         * tests/test-mbschr.c: Likewise.
18378         * tests/test-mbscspn.c: Likewise.
18379         * tests/test-mbsinit.c: Likewise.
18380         * tests/test-mbsncasecmp.c: Likewise.
18381         * tests/test-mbsnrtowcs.c: Likewise.
18382         * tests/test-mbspbrk.c: Likewise.
18383         * tests/test-mbspcasecmp.c: Likewise.
18384         * tests/test-mbsrchr.c: Likewise.
18385         * tests/test-mbsrtowcs.c: Likewise.
18386         * tests/test-mbsspn.c: Likewise.
18387         * tests/test-mbsstr1.c: Likewise.
18388         * tests/test-mbsstr2.c: Likewise.
18389         * tests/test-mbsstr3.c: Likewise.
18390         * tests/test-memchr.c: Likewise.
18391         * tests/test-memchr2.c: Likewise.
18392         * tests/test-memcmp.c: Likewise.
18393         * tests/test-memmem.c: Likewise.
18394         * tests/test-memrchr.c: Likewise.
18395         * tests/test-mkdir.c: Likewise.
18396         * tests/test-mkdirat.c: Likewise.
18397         * tests/test-mkfifo.c: Likewise.
18398         * tests/test-mkfifoat.c: Likewise.
18399         * tests/test-mknod.c: Likewise.
18400         * tests/test-nanosleep.c: Likewise.
18401         * tests/test-nl_langinfo.c: Likewise.
18402         * tests/test-obstack-printf.c: Likewise.
18403         * tests/test-open.c: Likewise.
18404         * tests/test-openat.c: Likewise.
18405         * tests/test-pipe-filter-gi1.c: Likewise.
18406         * tests/test-pipe-filter-gi2-main.c: Likewise.
18407         * tests/test-pipe-filter-ii1.c: Likewise.
18408         * tests/test-pipe-filter-ii2-main.c: Likewise.
18409         * tests/test-pipe2.c: Likewise.
18410         * tests/test-popen.h: Likewise.
18411         * tests/test-posixtm.c: Likewise.
18412         * tests/test-pread.c: Likewise.
18413         * tests/test-printf-frexp.c: Likewise.
18414         * tests/test-printf-frexpl.c: Likewise.
18415         * tests/test-printf-posix.c: Likewise.
18416         * tests/test-priv-set.c: Likewise.
18417         * tests/test-quotearg.c: Likewise.
18418         * tests/test-random_r.c: Likewise.
18419         * tests/test-rawmemchr.c: Likewise.
18420         * tests/test-rbtree_list.c: Likewise.
18421         * tests/test-rbtree_oset.c: Likewise.
18422         * tests/test-rbtreehash_list.c: Likewise.
18423         * tests/test-readlink.c: Likewise.
18424         * tests/test-remove.c: Likewise.
18425         * tests/test-rename.c: Likewise.
18426         * tests/test-renameat.c: Likewise.
18427         * tests/test-rmdir.c: Likewise.
18428         * tests/test-round1.c: Likewise.
18429         * tests/test-roundf1.c: Likewise.
18430         * tests/test-roundl.c: Likewise.
18431         * tests/test-safe-alloc.c: Likewise.
18432         * tests/test-sameacls.c: Likewise.
18433         * tests/test-set-mode-acl.c: Likewise.
18434         * tests/test-setenv.c: Likewise.
18435         * tests/test-sigaction.c: Likewise.
18436         * tests/test-signbit.c: Likewise.
18437         * tests/test-sleep.c: Likewise.
18438         * tests/test-snprintf-posix.c: Likewise.
18439         * tests/test-snprintf.c: Likewise.
18440         * tests/test-sprintf-posix.c: Likewise.
18441         * tests/test-stat-time.c: Likewise.
18442         * tests/test-stat.c: Likewise.
18443         * tests/test-strcasestr.c: Likewise.
18444         * tests/test-strchrnul.c: Likewise.
18445         * tests/test-strerror.c: Likewise.
18446         * tests/test-striconv.c: Likewise.
18447         * tests/test-striconveh.c: Likewise.
18448         * tests/test-striconveha.c: Likewise.
18449         * tests/test-strsignal.c: Likewise.
18450         * tests/test-strstr.c: Likewise.
18451         * tests/test-strtod.c: Likewise.
18452         * tests/test-strverscmp.c: Likewise.
18453         * tests/test-symlink.c: Likewise.
18454         * tests/test-symlinkat.c: Likewise.
18455         * tests/test-trunc1.c: Likewise.
18456         * tests/test-trunc2.c: Likewise.
18457         * tests/test-truncf1.c: Likewise.
18458         * tests/test-truncf2.c: Likewise.
18459         * tests/test-truncl.c: Likewise.
18460         * tests/test-uname.c: Likewise.
18461         * tests/test-unlink.c: Likewise.
18462         * tests/test-unlinkat.c: Likewise.
18463         * tests/test-unsetenv.c: Likewise.
18464         * tests/test-usleep.c: Likewise.
18465         * tests/test-utimens.c: Likewise.
18466         * tests/test-utimensat.c: Likewise.
18467         * tests/test-vasnprintf-posix.c: Likewise.
18468         * tests/test-vasnprintf-posix2.c: Likewise.
18469         * tests/test-vasnprintf.c: Likewise.
18470         * tests/test-vasprintf-posix.c: Likewise.
18471         * tests/test-vasprintf.c: Likewise.
18472         * tests/test-vdprintf-posix.c: Likewise.
18473         * tests/test-vfprintf-posix.c: Likewise.
18474         * tests/test-vprintf-posix.c: Likewise.
18475         * tests/test-vsnprintf-posix.c: Likewise.
18476         * tests/test-vsnprintf.c: Likewise.
18477         * tests/test-vsprintf-posix.c: Likewise.
18478         * tests/test-wcrtomb.c: Likewise.
18479         * tests/test-wcsnrtombs.c: Likewise.
18480         * tests/test-wcsrtombs.c: Likewise.
18481         * tests/test-wctype.c: Likewise.
18482         * tests/test-wcwidth.c: Likewise.
18483         * tests/test-xfprintf-posix.c: Likewise.
18484         * tests/test-xmemdup0.c: Likewise.
18485         * tests/test-xprintf-posix.c: Likewise.
18486         * tests/test-xvasprintf.c: Likewise.
18487         * tests/unicase/test-locale-language.c: Likewise.
18488         * tests/unicase/test-mapping-part1.h: Likewise.
18489         * tests/unicase/test-predicate-part1.h: Likewise.
18490         * tests/unicase/test-u8-casecmp.c: Likewise.
18491         * tests/unicase/test-u8-casecoll.c: Likewise.
18492         * tests/unicase/test-u8-casefold.c: Likewise.
18493         * tests/unicase/test-u8-is-cased.c: Likewise.
18494         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18495         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18496         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18497         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18498         * tests/unicase/test-u8-tolower.c: Likewise.
18499         * tests/unicase/test-u8-totitle.c: Likewise.
18500         * tests/unicase/test-u8-toupper.c: Likewise.
18501         * tests/unicase/test-u16-casecmp.c: Likewise.
18502         * tests/unicase/test-u16-casecoll.c: Likewise.
18503         * tests/unicase/test-u16-casefold.c: Likewise.
18504         * tests/unicase/test-u16-is-cased.c: Likewise.
18505         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18506         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18507         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18508         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18509         * tests/unicase/test-u16-tolower.c: Likewise.
18510         * tests/unicase/test-u16-totitle.c: Likewise.
18511         * tests/unicase/test-u16-toupper.c: Likewise.
18512         * tests/unicase/test-u32-casecmp.c: Likewise.
18513         * tests/unicase/test-u32-casecoll.c: Likewise.
18514         * tests/unicase/test-u32-casefold.c: Likewise.
18515         * tests/unicase/test-u32-is-cased.c: Likewise.
18516         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18517         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18518         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18519         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18520         * tests/unicase/test-u32-tolower.c: Likewise.
18521         * tests/unicase/test-u32-totitle.c: Likewise.
18522         * tests/unicase/test-u32-toupper.c: Likewise.
18523         * tests/unicase/test-ulc-casecmp.c: Likewise.
18524         * tests/unicase/test-ulc-casecoll.c: Likewise.
18525         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18526         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18527         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18528         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18529         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18530         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18531         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18532         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18533         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18534         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18535         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18536         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18537         * tests/unictype/test-bidi_byname.c: Likewise.
18538         * tests/unictype/test-bidi_name.c: Likewise.
18539         * tests/unictype/test-bidi_of.c: Likewise.
18540         * tests/unictype/test-bidi_test.c: Likewise.
18541         * tests/unictype/test-block_list.c: Likewise.
18542         * tests/unictype/test-block_of.c: Likewise.
18543         * tests/unictype/test-block_test.c: Likewise.
18544         * tests/unictype/test-categ_and.c: Likewise.
18545         * tests/unictype/test-categ_and_not.c: Likewise.
18546         * tests/unictype/test-categ_byname.c: Likewise.
18547         * tests/unictype/test-categ_name.c: Likewise.
18548         * tests/unictype/test-categ_none.c: Likewise.
18549         * tests/unictype/test-categ_of.c: Likewise.
18550         * tests/unictype/test-categ_or.c: Likewise.
18551         * tests/unictype/test-categ_test_withtable.c: Likewise.
18552         * tests/unictype/test-combining.c: Likewise.
18553         * tests/unictype/test-decdigit.c: Likewise.
18554         * tests/unictype/test-digit.c: Likewise.
18555         * tests/unictype/test-mirror.c: Likewise.
18556         * tests/unictype/test-numeric.c: Likewise.
18557         * tests/unictype/test-pr_byname.c: Likewise.
18558         * tests/unictype/test-pr_test.c: Likewise.
18559         * tests/unictype/test-predicate-part1.h: Likewise.
18560         * tests/unictype/test-scripts.c: Likewise.
18561         * tests/unictype/test-sy_c_ident.c: Likewise.
18562         * tests/unictype/test-sy_java_ident.c: Likewise.
18563         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18564         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18565         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18566         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18567         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18568         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18569         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18570         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18571         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18572         * tests/uninorm/test-compat-decomposition.c: Likewise.
18573         * tests/uninorm/test-composition.c: Likewise.
18574         * tests/uninorm/test-decomposing-form.c: Likewise.
18575         * tests/uninorm/test-decomposition.c: Likewise.
18576         * tests/uninorm/test-u8-nfc.c: Likewise.
18577         * tests/uninorm/test-u8-nfd.c: Likewise.
18578         * tests/uninorm/test-u8-nfkc.c: Likewise.
18579         * tests/uninorm/test-u8-nfkd.c: Likewise.
18580         * tests/uninorm/test-u8-normcmp.c: Likewise.
18581         * tests/uninorm/test-u8-normcoll.c: Likewise.
18582         * tests/uninorm/test-u16-nfc.c: Likewise.
18583         * tests/uninorm/test-u16-nfd.c: Likewise.
18584         * tests/uninorm/test-u16-nfkc.c: Likewise.
18585         * tests/uninorm/test-u16-nfkd.c: Likewise.
18586         * tests/uninorm/test-u16-normcmp.c: Likewise.
18587         * tests/uninorm/test-u16-normcoll.c: Likewise.
18588         * tests/uninorm/test-u32-nfc.c: Likewise.
18589         * tests/uninorm/test-u32-nfd.c: Likewise.
18590         * tests/uninorm/test-u32-nfkc.c: Likewise.
18591         * tests/uninorm/test-u32-nfkd.c: Likewise.
18592         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18593         * tests/uninorm/test-u32-normcmp.c: Likewise.
18594         * tests/uninorm/test-u32-normcoll.c: Likewise.
18595         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18596         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18597         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18598         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18599         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18600         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18601         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18602         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18603         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18604         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18605         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18606         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18607         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18608         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18609         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18610         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18611         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18612         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18613         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18614         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18615         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18616         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18617         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18618         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18619         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18620         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18621         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18622         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18623         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18624         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18625         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18626         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18627         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18628         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18629         * tests/uniwidth/test-u8-width.c: Likewise.
18630         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18631         * tests/uniwidth/test-u16-width.c: Likewise.
18632         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18633         * tests/uniwidth/test-u32-width.c: Likewise.
18634         * tests/uniwidth/test-uc_width.c: Likewise.
18635         * tests/uniwidth/test-uc_width2.c: Likewise.
18636         * modules/acl-tests (Files): Add tests/macros.h.
18637         * modules/areadlink-tests (Files): Likewise.
18638         * modules/areadlink-with-size-tests (Files): Likewise.
18639         * modules/areadlinkat-tests (Files): Likewise.
18640         * modules/areadlinkat-with-size-tests (Files): Likewise.
18641         * modules/argmatch-tests (Files): Likewise.
18642         * modules/argv-iter-tests (Files): Likewise.
18643         * modules/array-list-tests (Files): Likewise.
18644         * modules/array-mergesort-tests (Files): Likewise.
18645         * modules/array-oset-tests (Files): Likewise.
18646         * modules/avltree-list-tests (Files): Likewise.
18647         * modules/avltree-oset-tests (Files): Likewise.
18648         * modules/avltreehash-list-tests (Files): Likewise.
18649         * modules/base64-tests (Files): Likewise.
18650         * modules/binary-io-tests (Files): Likewise.
18651         * modules/bitrotate-tests (Files): Likewise.
18652         * modules/btowc-tests (Files): Likewise.
18653         * modules/byteswap-tests (Files): Likewise.
18654         * modules/c-ctype-tests (Files): Likewise.
18655         * modules/c-stack-tests (Files): Likewise.
18656         * modules/c-strcase-tests (Files): Likewise.
18657         * modules/c-strcasestr-tests (Files): Likewise.
18658         * modules/c-strstr-tests (Files): Likewise.
18659         * modules/canonicalize-lgpl-tests (Files): Likewise.
18660         * modules/canonicalize-tests (Files): Likewise.
18661         * modules/carray-list-tests (Files): Likewise.
18662         * modules/ceilf-tests (Files): Likewise.
18663         * modules/ceill-tests (Files): Likewise.
18664         * modules/chown-tests (Files): Likewise.
18665         * modules/cloexec-tests (Files): Likewise.
18666         * modules/copy-file-tests (Files): Likewise.
18667         * modules/count-one-bits-tests (Files): Likewise.
18668         * modules/dprintf-posix-tests (Files): Likewise.
18669         * modules/dup2-tests (Files): Likewise.
18670         * modules/dup3-tests (Files): Likewise.
18671         * modules/duplocale-tests (Files): Likewise.
18672         * modules/fbufmode-tests (Files): Likewise.
18673         * modules/fchdir-tests (Files): Likewise.
18674         * modules/fcntl-safer-tests (Files): Likewise.
18675         * modules/fcntl-tests (Files): Likewise.
18676         * modules/fdopendir-tests (Files): Likewise.
18677         * modules/fdutimensat-tests (Files): Likewise.
18678         * modules/fflush-tests (Files): Likewise.
18679         * modules/filevercmp-tests (Files): Likewise.
18680         * modules/flock-tests (Files): Likewise.
18681         * modules/floorf-tests (Files): Likewise.
18682         * modules/floorl-tests (Files): Likewise.
18683         * modules/fnmatch-tests (Files): Likewise.
18684         * modules/fopen-safer-tests (Files): Likewise.
18685         * modules/fopen-tests (Files): Likewise.
18686         * modules/fpending-tests (Files): Likewise.
18687         * modules/fprintf-posix-tests (Files): Likewise.
18688         * modules/fpurge-tests (Files): Likewise.
18689         * modules/freadable-tests (Files): Likewise.
18690         * modules/freadahead-tests (Files): Likewise.
18691         * modules/freading-tests (Files): Likewise.
18692         * modules/freadptr-tests (Files): Likewise.
18693         * modules/freadseek-tests (Files): Likewise.
18694         * modules/freopen-tests (Files): Likewise.
18695         * modules/frexp-nolibm-tests (Files): Likewise.
18696         * modules/frexp-tests (Files): Likewise.
18697         * modules/frexpl-nolibm-tests (Files): Likewise.
18698         * modules/frexpl-tests (Files): Likewise.
18699         * modules/fseek-tests (Files): Likewise.
18700         * modules/fseeko-tests (Files): Likewise.
18701         * modules/fstrcmp-tests (Files): Likewise.
18702         * modules/fsync-tests (Files): Likewise.
18703         * modules/ftell-tests (Files): Likewise.
18704         * modules/ftello-tests (Files): Likewise.
18705         * modules/func-tests (Files): Likewise.
18706         * modules/futimens-tests (Files): Likewise.
18707         * modules/fwritable-tests (Files): Likewise.
18708         * modules/fwriting-tests (Files): Likewise.
18709         * modules/getcwd-tests (Files): Likewise.
18710         * modules/getdate-tests (Files): Likewise.
18711         * modules/getdelim-tests (Files): Likewise.
18712         * modules/getdtablesize-tests (Files): Likewise.
18713         * modules/getgroups-tests (Files): Likewise.
18714         * modules/getline-tests (Files): Likewise.
18715         * modules/getndelim2-tests (Files): Likewise.
18716         * modules/glob-tests (Files): Likewise.
18717         * modules/hash-tests (Files): Likewise.
18718         * modules/i-ring-tests (Files): Likewise.
18719         * modules/iconv-tests (Files): Likewise.
18720         * modules/iconv_open-utf-tests (Files): Likewise.
18721         * modules/idpriv-drop-tests (Files): Likewise.
18722         * modules/idpriv-droptemp-tests (Files): Likewise.
18723         * modules/inet_ntop-tests (Files): Likewise.
18724         * modules/inet_pton-tests (Files): Likewise.
18725         * modules/isblank-tests (Files): Likewise.
18726         * modules/isfinite-tests (Files): Likewise.
18727         * modules/isinf-tests (Files): Likewise.
18728         * modules/isnan-tests (Files): Likewise.
18729         * modules/isnand-nolibm-tests (Files): Likewise.
18730         * modules/isnand-tests (Files): Likewise.
18731         * modules/isnanf-nolibm-tests (Files): Likewise.
18732         * modules/isnanf-tests (Files): Likewise.
18733         * modules/isnanl-nolibm-tests (Files): Likewise.
18734         * modules/isnanl-tests (Files): Likewise.
18735         * modules/lchown-tests (Files): Likewise.
18736         * modules/ldexpl-tests (Files): Likewise.
18737         * modules/link-tests (Files): Likewise.
18738         * modules/linkat-tests (Files): Likewise.
18739         * modules/linked-list-tests (Files): Likewise.
18740         * modules/linkedhash-list-tests (Files): Likewise.
18741         * modules/localename-tests (Files): Likewise.
18742         * modules/lseek-tests (Files): Likewise.
18743         * modules/lstat-tests (Files): Likewise.
18744         * modules/mbmemcasecmp-tests (Files): Likewise.
18745         * modules/mbmemcasecoll-tests (Files): Likewise.
18746         * modules/mbrtowc-tests (Files): Likewise.
18747         * modules/mbscasecmp-tests (Files): Likewise.
18748         * modules/mbscasestr-tests (Files): Likewise.
18749         * modules/mbschr-tests (Files): Likewise.
18750         * modules/mbscspn-tests (Files): Likewise.
18751         * modules/mbsinit-tests (Files): Likewise.
18752         * modules/mbsncasecmp-tests (Files): Likewise.
18753         * modules/mbsnrtowcs-tests (Files): Likewise.
18754         * modules/mbspbrk-tests (Files): Likewise.
18755         * modules/mbspcasecmp-tests (Files): Likewise.
18756         * modules/mbsrchr-tests (Files): Likewise.
18757         * modules/mbsrtowcs-tests (Files): Likewise.
18758         * modules/mbsspn-tests (Files): Likewise.
18759         * modules/mbsstr-tests (Files): Likewise.
18760         * modules/memchr-tests (Files): Likewise.
18761         * modules/memchr2-tests (Files): Likewise.
18762         * modules/memcmp-tests (Files): Likewise.
18763         * modules/memmem-tests (Files): Likewise.
18764         * modules/memrchr-tests (Files): Likewise.
18765         * modules/mkdir-tests (Files): Likewise.
18766         * modules/mkfifo-tests (Files): Likewise.
18767         * modules/mkfifoat-tests (Files): Likewise.
18768         * modules/mknod-tests (Files): Likewise.
18769         * modules/nanosleep-tests (Files): Likewise.
18770         * modules/nl_langinfo-tests (Files): Likewise.
18771         * modules/obstack-printf-tests (Files): Likewise.
18772         * modules/open-tests (Files): Likewise.
18773         * modules/openat-tests (Files): Likewise.
18774         * modules/pipe-filter-gi-tests (Files): Likewise.
18775         * modules/pipe-filter-ii-tests (Files): Likewise.
18776         * modules/pipe2-tests (Files): Likewise.
18777         * modules/popen-safer-tests (Files): Likewise.
18778         * modules/popen-tests (Files): Likewise.
18779         * modules/posixtm-tests (Files): Likewise.
18780         * modules/pread-tests (Files): Likewise.
18781         * modules/printf-frexp-tests (Files): Likewise.
18782         * modules/printf-frexpl-tests (Files): Likewise.
18783         * modules/printf-posix-tests (Files): Likewise.
18784         * modules/priv-set-tests (Files): Likewise.
18785         * modules/quotearg-tests (Files): Likewise.
18786         * modules/random_r-tests (Files): Likewise.
18787         * modules/rawmemchr-tests (Files): Likewise.
18788         * modules/rbtree-list-tests (Files): Likewise.
18789         * modules/rbtree-oset-tests (Files): Likewise.
18790         * modules/rbtreehash-list-tests (Files): Likewise.
18791         * modules/readlink-tests (Files): Likewise.
18792         * modules/remove-tests (Files): Likewise.
18793         * modules/rename-tests (Files): Likewise.
18794         * modules/renameat-tests (Files): Likewise.
18795         * modules/rmdir-tests (Files): Likewise.
18796         * modules/round-tests (Files): Likewise.
18797         * modules/roundf-tests (Files): Likewise.
18798         * modules/roundl-tests (Files): Likewise.
18799         * modules/safe-alloc-tests (Files): Likewise.
18800         * modules/setenv-tests (Files): Likewise.
18801         * modules/sigaction-tests (Files): Likewise.
18802         * modules/signbit-tests (Files): Likewise.
18803         * modules/sleep-tests (Files): Likewise.
18804         * modules/snprintf-posix-tests (Files): Likewise.
18805         * modules/snprintf-tests (Files): Likewise.
18806         * modules/sprintf-posix-tests (Files): Likewise.
18807         * modules/stat-tests (Files): Likewise.
18808         * modules/stat-time-tests (Files): Likewise.
18809         * modules/strcasestr-tests (Files): Likewise.
18810         * modules/strchrnul-tests (Files): Likewise.
18811         * modules/strerror-tests (Files): Likewise.
18812         * modules/striconv-tests (Files): Likewise.
18813         * modules/striconveh-tests (Files): Likewise.
18814         * modules/striconveha-tests (Files): Likewise.
18815         * modules/strsignal-tests (Files): Likewise.
18816         * modules/strstr-tests (Files): Likewise.
18817         * modules/strtod-tests (Files): Likewise.
18818         * modules/strverscmp-tests (Files): Likewise.
18819         * modules/symlink-tests (Files): Likewise.
18820         * modules/symlinkat-tests (Files): Likewise.
18821         * modules/trunc-tests (Files): Likewise.
18822         * modules/truncf-tests (Files): Likewise.
18823         * modules/truncl-tests (Files): Likewise.
18824         * modules/uname-tests (Files): Likewise.
18825         * modules/unicase/cased-tests (Files): Likewise.
18826         * modules/unicase/ignorable-tests (Files): Likewise.
18827         * modules/unicase/locale-language-tests (Files): Likewise.
18828         * modules/unicase/tolower-tests (Files): Likewise.
18829         * modules/unicase/totitle-tests (Files): Likewise.
18830         * modules/unicase/toupper-tests (Files): Likewise.
18831         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18832         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18833         * modules/unicase/u8-casefold-tests (Files): Likewise.
18834         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18835         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18836         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18837         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18838         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18839         * modules/unicase/u8-tolower-tests (Files): Likewise.
18840         * modules/unicase/u8-totitle-tests (Files): Likewise.
18841         * modules/unicase/u8-toupper-tests (Files): Likewise.
18842         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18843         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18844         * modules/unicase/u16-casefold-tests (Files): Likewise.
18845         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18846         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18847         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18848         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18849         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18850         * modules/unicase/u16-tolower-tests (Files): Likewise.
18851         * modules/unicase/u16-totitle-tests (Files): Likewise.
18852         * modules/unicase/u16-toupper-tests (Files): Likewise.
18853         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18854         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18855         * modules/unicase/u32-casefold-tests (Files): Likewise.
18856         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18857         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18858         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18859         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18860         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18861         * modules/unicase/u32-tolower-tests (Files): Likewise.
18862         * modules/unicase/u32-totitle-tests (Files): Likewise.
18863         * modules/unicase/u32-toupper-tests (Files): Likewise.
18864         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18865         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18866         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18867         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18868         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18869         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18870         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18871         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18872         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18873         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18874         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18875         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18876         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18877         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18878         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18879         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18880         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18881         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18882         * modules/unictype/block-list-tests (Files): Likewise.
18883         * modules/unictype/block-of-tests (Files): Likewise.
18884         * modules/unictype/block-test-tests (Files): Likewise.
18885         * modules/unictype/category-C-tests (Files): Likewise.
18886         * modules/unictype/category-Cc-tests (Files): Likewise.
18887         * modules/unictype/category-Cf-tests (Files): Likewise.
18888         * modules/unictype/category-Cn-tests (Files): Likewise.
18889         * modules/unictype/category-Co-tests (Files): Likewise.
18890         * modules/unictype/category-Cs-tests (Files): Likewise.
18891         * modules/unictype/category-L-tests (Files): Likewise.
18892         * modules/unictype/category-Ll-tests (Files): Likewise.
18893         * modules/unictype/category-Lm-tests (Files): Likewise.
18894         * modules/unictype/category-Lo-tests (Files): Likewise.
18895         * modules/unictype/category-Lt-tests (Files): Likewise.
18896         * modules/unictype/category-Lu-tests (Files): Likewise.
18897         * modules/unictype/category-M-tests (Files): Likewise.
18898         * modules/unictype/category-Mc-tests (Files): Likewise.
18899         * modules/unictype/category-Me-tests (Files): Likewise.
18900         * modules/unictype/category-Mn-tests (Files): Likewise.
18901         * modules/unictype/category-N-tests (Files): Likewise.
18902         * modules/unictype/category-Nd-tests (Files): Likewise.
18903         * modules/unictype/category-Nl-tests (Files): Likewise.
18904         * modules/unictype/category-No-tests (Files): Likewise.
18905         * modules/unictype/category-P-tests (Files): Likewise.
18906         * modules/unictype/category-Pc-tests (Files): Likewise.
18907         * modules/unictype/category-Pd-tests (Files): Likewise.
18908         * modules/unictype/category-Pe-tests (Files): Likewise.
18909         * modules/unictype/category-Pf-tests (Files): Likewise.
18910         * modules/unictype/category-Pi-tests (Files): Likewise.
18911         * modules/unictype/category-Po-tests (Files): Likewise.
18912         * modules/unictype/category-Ps-tests (Files): Likewise.
18913         * modules/unictype/category-S-tests (Files): Likewise.
18914         * modules/unictype/category-Sc-tests (Files): Likewise.
18915         * modules/unictype/category-Sk-tests (Files): Likewise.
18916         * modules/unictype/category-Sm-tests (Files): Likewise.
18917         * modules/unictype/category-So-tests (Files): Likewise.
18918         * modules/unictype/category-Z-tests (Files): Likewise.
18919         * modules/unictype/category-Zl-tests (Files): Likewise.
18920         * modules/unictype/category-Zp-tests (Files): Likewise.
18921         * modules/unictype/category-Zs-tests (Files): Likewise.
18922         * modules/unictype/category-and-not-tests (Files): Likewise.
18923         * modules/unictype/category-and-tests (Files): Likewise.
18924         * modules/unictype/category-byname-tests (Files): Likewise.
18925         * modules/unictype/category-name-tests (Files): Likewise.
18926         * modules/unictype/category-none-tests (Files): Likewise.
18927         * modules/unictype/category-of-tests (Files): Likewise.
18928         * modules/unictype/category-or-tests (Files): Likewise.
18929         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18930         * modules/unictype/combining-class-tests (Files): Likewise.
18931         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18932         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18933         * modules/unictype/ctype-blank-tests (Files): Likewise.
18934         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18935         * modules/unictype/ctype-digit-tests (Files): Likewise.
18936         * modules/unictype/ctype-graph-tests (Files): Likewise.
18937         * modules/unictype/ctype-lower-tests (Files): Likewise.
18938         * modules/unictype/ctype-print-tests (Files): Likewise.
18939         * modules/unictype/ctype-punct-tests (Files): Likewise.
18940         * modules/unictype/ctype-space-tests (Files): Likewise.
18941         * modules/unictype/ctype-upper-tests (Files): Likewise.
18942         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18943         * modules/unictype/decimal-digit-tests (Files): Likewise.
18944         * modules/unictype/digit-tests (Files): Likewise.
18945         * modules/unictype/mirror-tests (Files): Likewise.
18946         * modules/unictype/numeric-tests (Files): Likewise.
18947         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18948         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18949         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18950         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18951         Likewise.
18952         * modules/unictype/property-bidi-block-separator-tests (Files):
18953         Likewise.
18954         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18955         Likewise.
18956         * modules/unictype/property-bidi-common-separator-tests (Files):
18957         Likewise.
18958         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18959         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18960         Likewise.
18961         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18962         Likewise.
18963         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18964         Likewise.
18965         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18966         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18967         Likewise.
18968         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18969         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18970         Likewise.
18971         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18972         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18973         * modules/unictype/property-bidi-segment-separator-tests (Files):
18974         Likewise.
18975         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18976         * modules/unictype/property-byname-tests (Files): Likewise.
18977         * modules/unictype/property-combining-tests (Files): Likewise.
18978         * modules/unictype/property-composite-tests (Files): Likewise.
18979         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18980         * modules/unictype/property-dash-tests (Files): Likewise.
18981         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18982         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18983         Likewise.
18984         * modules/unictype/property-deprecated-tests (Files): Likewise.
18985         * modules/unictype/property-diacritic-tests (Files): Likewise.
18986         * modules/unictype/property-extender-tests (Files): Likewise.
18987         * modules/unictype/property-format-control-tests (Files): Likewise.
18988         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18989         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18990         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18991         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18992         * modules/unictype/property-hyphen-tests (Files): Likewise.
18993         * modules/unictype/property-id-continue-tests (Files): Likewise.
18994         * modules/unictype/property-id-start-tests (Files): Likewise.
18995         * modules/unictype/property-ideographic-tests (Files): Likewise.
18996         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18997         * modules/unictype/property-ids-trinary-operator-tests (Files):
18998         Likewise.
18999         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19000         * modules/unictype/property-iso-control-tests (Files): Likewise.
19001         * modules/unictype/property-join-control-tests (Files): Likewise.
19002         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19003         * modules/unictype/property-line-separator-tests (Files): Likewise.
19004         * modules/unictype/property-logical-order-exception-tests (Files):
19005         Likewise.
19006         * modules/unictype/property-lowercase-tests (Files): Likewise.
19007         * modules/unictype/property-math-tests (Files): Likewise.
19008         * modules/unictype/property-non-break-tests (Files): Likewise.
19009         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19010         * modules/unictype/property-numeric-tests (Files): Likewise.
19011         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19012         * modules/unictype/property-other-default-ignorable-code-point-tests
19013         (Files): Likewise.
19014         * modules/unictype/property-other-grapheme-extend-tests (Files):
19015         Likewise.
19016         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19017         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19018         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19019         * modules/unictype/property-other-math-tests (Files): Likewise.
19020         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19021         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19022         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19023         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19024         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19025         * modules/unictype/property-private-use-tests (Files): Likewise.
19026         * modules/unictype/property-punctuation-tests (Files): Likewise.
19027         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19028         * modules/unictype/property-radical-tests (Files): Likewise.
19029         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19030         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19031         * modules/unictype/property-space-tests (Files): Likewise.
19032         * modules/unictype/property-terminal-punctuation-tests (Files):
19033         Likewise.
19034         * modules/unictype/property-test-tests (Files): Likewise.
19035         * modules/unictype/property-titlecase-tests (Files): Likewise.
19036         * modules/unictype/property-unassigned-code-value-tests (Files):
19037         Likewise.
19038         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19039         * modules/unictype/property-uppercase-tests (Files): Likewise.
19040         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19041         * modules/unictype/property-white-space-tests (Files): Likewise.
19042         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19043         * modules/unictype/property-xid-start-tests (Files): Likewise.
19044         * modules/unictype/property-zero-width-tests (Files): Likewise.
19045         * modules/unictype/scripts-tests (Files): Likewise.
19046         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19047         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19048         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19049         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19050         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19051         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19052         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19053         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19054         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19055         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19056         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19057         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19058         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19059         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19060         * modules/uninorm/composition-tests (Files): Likewise.
19061         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19062         * modules/uninorm/decomposition-tests (Files): Likewise.
19063         * modules/uninorm/filter-tests (Files): Likewise.
19064         * modules/uninorm/nfc-tests (Files): Likewise.
19065         * modules/uninorm/nfd-tests (Files): Likewise.
19066         * modules/uninorm/nfkc-tests (Files): Likewise.
19067         * modules/uninorm/nfkd-tests (Files): Likewise.
19068         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19069         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19070         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19071         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19072         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19073         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19074         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19075         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19076         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19077         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19078         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19079         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19080         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19081         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19082         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19083         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19084         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19085         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19086         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19087         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19088         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19089         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19090         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19091         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19092         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19093         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19094         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19095         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19096         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19097         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19098         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19099         * modules/uniwidth/u8-width-tests (Files): Likewise.
19100         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19101         * modules/uniwidth/u16-width-tests (Files): Likewise.
19102         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19103         * modules/uniwidth/u32-width-tests (Files): Likewise.
19104         * modules/uniwidth/width-tests (Files): Likewise.
19105         * modules/unlink-tests (Files): Likewise.
19106         * modules/unsetenv-tests (Files): Likewise.
19107         * modules/usleep-tests (Files): Likewise.
19108         * modules/utimens-tests (Files): Likewise.
19109         * modules/utimensat-tests (Files): Likewise.
19110         * modules/vasnprintf-posix-tests (Files): Likewise.
19111         * modules/vasnprintf-tests (Files): Likewise.
19112         * modules/vasprintf-posix-tests (Files): Likewise.
19113         * modules/vasprintf-tests (Files): Likewise.
19114         * modules/vdprintf-posix-tests (Files): Likewise.
19115         * modules/vfprintf-posix-tests (Files): Likewise.
19116         * modules/vprintf-posix-tests (Files): Likewise.
19117         * modules/vsnprintf-posix-tests (Files): Likewise.
19118         * modules/vsnprintf-tests (Files): Likewise.
19119         * modules/vsprintf-posix-tests (Files): Likewise.
19120         * modules/wcrtomb-tests (Files): Likewise.
19121         * modules/wcsnrtombs-tests (Files): Likewise.
19122         * modules/wcsrtombs-tests (Files): Likewise.
19123         * modules/wctype-tests (Files): Likewise.
19124         * modules/wcwidth-tests (Files): Likewise.
19125         * modules/xmemdup0-tests (Files): Likewise.
19126         * modules/xprintf-posix-tests (Files): Likewise.
19127         * modules/xvasprintf-tests (Files): Likewise.
19128
19129 2009-12-24  Eric Blake  <ebb9@byu.net>
19130
19131         test-nanosleep: fix typo
19132         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19133         patch.
19134         Reported by Bruno Haible.
19135
19136 2009-12-24  Bruno Haible  <bruno@clisp.org>
19137
19138         Reduce namespace pollution on glibc systems.
19139         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19140         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19141         systems.
19142         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19143         <getopt.h> on glibc systems.
19144         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19145         systems.
19146         * lib/fcntl.c: Include <unistd.h> here instead.
19147
19148 2009-12-24  Bruno Haible  <bruno@clisp.org>
19149
19150         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19151
19152 2009-12-24  Eric Blake  <ebb9@byu.net>
19153
19154         tests: add signature checks
19155         * tests/signature.h (SIGNATURE_CHECK): New file.
19156         * modules/atexit-tests (Files): Use it.
19157         * modules/btowc-tests (Files): Likewise.
19158         * modules/canonicalize-lgpl-tests (Files): Likewise.
19159         * modules/ceilf-tests (Files): Likewise.
19160         * modules/ceill-tests (Files): Likewise.
19161         * modules/chown-tests (Files): Likewise.
19162         * modules/dprintf-posix-tests (Files): Likewise.
19163         * modules/dup2-tests (Files): Likewise.
19164         * modules/dup3-tests (Files): Likewise.
19165         * modules/duplocale-tests (Files): Likewise.
19166         * modules/fchdir-tests (Files): Likewise.
19167         * modules/fcntl-tests (Files): Likewise.
19168         * modules/fdopendir-tests (Files): Likewise.
19169         * modules/fflush-tests (Files): Likewise.
19170         * modules/flock-tests (Files): Likewise.
19171         * modules/floorf-tests (Files): Likewise.
19172         * modules/floorl-tests (Files): Likewise.
19173         * modules/fnmatch-tests (Files): Likewise.
19174         * modules/fopen-tests (Files): Likewise.
19175         * modules/fprintf-posix-tests (Files): Likewise.
19176         * modules/freopen-tests (Files): Likewise.
19177         * modules/frexp-nolibm-tests (Files): Likewise.
19178         * modules/frexp-tests (Files): Likewise.
19179         * modules/frexpl-nolibm-tests (Files): Likewise.
19180         * modules/frexpl-tests (Files): Likewise.
19181         * modules/fseek-tests (Files): Likewise.
19182         * modules/fseeko-tests (Files): Likewise.
19183         * modules/fsync-tests (Files): Likewise.
19184         * modules/ftell-tests (Files): Likewise.
19185         * modules/ftello-tests (Files): Likewise.
19186         * modules/futimens-tests (Files): Likewise.
19187         * modules/getaddrinfo-tests (Files): Likewise.
19188         * modules/getcwd-tests (Files): Likewise.
19189         * modules/getdelim-tests (Files): Likewise.
19190         * modules/getdtablesize-tests (Files): Likewise.
19191         * modules/getgroups-tests (Files): Likewise.
19192         * modules/gethostname-tests (Files): Likewise.
19193         * modules/getline-tests (Files): Likewise.
19194         * modules/getopt-posix-tests (Files): Likewise.
19195         * modules/gettimeofday-tests (Files): Likewise.
19196         * modules/glob-tests (Files): Likewise.
19197         * modules/iconv-tests (Files): Likewise.
19198         * modules/inet_ntop-tests (Files): Likewise.
19199         * modules/inet_pton-tests (Files): Likewise.
19200         * modules/isblank-tests (Files): Likewise.
19201         * modules/lchown-tests (Files): Likewise.
19202         * modules/ldexpl-tests (Files): Likewise.
19203         * modules/link-tests (Files): Likewise.
19204         * modules/linkat-tests (Files): Likewise.
19205         * modules/lseek-tests (Files): Likewise.
19206         * modules/lstat-tests (Files): Likewise.
19207         * modules/mbrtowc-tests (Files): Likewise.
19208         * modules/mbsinit-tests (Files): Likewise.
19209         * modules/mbsnrtowcs-tests (Files): Likewise.
19210         * modules/mbsrtowcs-tests (Files): Likewise.
19211         * modules/memchr-tests (Files): Likewise.
19212         * modules/memcmp-tests (Files): Likewise.
19213         * modules/memmem-tests (Files): Likewise.
19214         * modules/memrchr-tests (Files): Likewise.
19215         * modules/mkdir-tests (Files): Likewise.
19216         * modules/mkfifo-tests (Files): Likewise.
19217         * modules/mkfifoat-tests (Files): Likewise.
19218         * modules/mknod-tests (Files): Likewise.
19219         * modules/nanosleep-tests (Files): Likewise.
19220         * modules/nl_langinfo-tests (Files): Likewise.
19221         * modules/obstack-printf-tests (Files): Likewise.
19222         * modules/open-tests (Files): Likewise.
19223         * modules/openat-tests (Files): Likewise.
19224         * modules/perror-tests (Files): Likewise.
19225         * modules/pipe2-tests (Files): Likewise.
19226         * modules/poll-tests (Files): Likewise.
19227         * modules/popen-tests (Files): Likewise.
19228         * modules/posix_spawn-tests (Files): Likewise.
19229         * modules/posix_spawnp-tests (Files): Likewise.
19230         * modules/pread-tests (Files): Likewise.
19231         * modules/printf-posix-tests (Files): Likewise.
19232         * modules/pty-tests (Files): Likewise.
19233         * modules/random_r-tests (Files): Likewise.
19234         * modules/rawmemchr-tests (Files): Likewise.
19235         * modules/readlink-tests (Files): Likewise.
19236         * modules/remove-tests (Files): Likewise.
19237         * modules/rename-tests (Files): Likewise.
19238         * modules/renameat-tests (Files): Likewise.
19239         * modules/rmdir-tests (Files): Likewise.
19240         * modules/round-tests (Files): Likewise.
19241         * modules/roundf-tests (Files): Likewise.
19242         * modules/roundl-tests (Files): Likewise.
19243         * modules/select-tests (Files): Likewise.
19244         * modules/setenv-tests (Files): Likewise.
19245         * modules/sigaction-tests (Files): Likewise.
19246         * modules/sleep-tests (Files): Likewise.
19247         * modules/snprintf-posix-tests (Files): Likewise.
19248         * modules/snprintf-tests (Files): Likewise.
19249         * modules/sprintf-posix-tests (Files): Likewise.
19250         * modules/stat-tests (Files): Likewise.
19251         * modules/strcasestr-tests (Files): Likewise.
19252         * modules/strchrnul-tests (Files): Likewise.
19253         * modules/strerror-tests (Files): Likewise.
19254         * modules/strsignal-tests (Files): Likewise.
19255         * modules/strstr-tests (Files): Likewise.
19256         * modules/strtod-tests (Files): Likewise.
19257         * modules/strverscmp-tests (Files): Likewise.
19258         * modules/symlink-tests (Files): Likewise.
19259         * modules/symlinkat-tests (Files): Likewise.
19260         * modules/times-tests (Files): Likewise.
19261         * modules/trunc-tests (Files): Likewise.
19262         * modules/truncf-tests (Files): Likewise.
19263         * modules/truncl-tests (Files): Likewise.
19264         * modules/tsearch-tests (Files): Likewise.
19265         * modules/uname-tests (Files): Likewise.
19266         * modules/unlink-tests (Files): Likewise.
19267         * modules/unsetenv-tests (Files): Likewise.
19268         * modules/usleep-tests (Files): Likewise.
19269         * modules/utimensat-tests (Files): Likewise.
19270         * modules/vasprintf-tests (Files): Likewise.
19271         * modules/vdprintf-posix-tests (Files): Likewise.
19272         * modules/vfprintf-posix-tests (Files): Likewise.
19273         * modules/vprintf-posix-tests (Files): Likewise.
19274         * modules/vsnprintf-posix-tests (Files): Likewise.
19275         * modules/vsnprintf-tests (Files): Likewise.
19276         * modules/vsprintf-posix-tests (Files): Likewise.
19277         * modules/wcrtomb-tests (Files): Likewise.
19278         * modules/wcsnrtombs-tests (Files): Likewise.
19279         * modules/wcsrtombs-tests (Files): Likewise.
19280         * modules/wcwidth-tests (Files): Likewise.
19281         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19282         * tests/test-isinf.c (isinf): Likewise.
19283         * tests/test-isnan.c (isnan): Likewise.
19284         * tests/test-signbit.c (signbit): Likewise.
19285         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19286         declaration, either as macro or with correct signature.
19287         (select): Ensure function under test is declared with correct
19288         signature in correct header.
19289         * tests/test-atexit.c (atexit): Likewise.
19290         * tests/test-btowc.c (btowc): Likewise.
19291         * tests/test-canonicalize-lgpl.c (realpath)
19292         (canonicalize_file_name): Likewise.
19293         * tests/test-ceilf1.c (ceilf): Likewise.
19294         * tests/test-ceill.c (ceill): Likewise.
19295         * tests/test-chown.c (chown): Likewise.
19296         * tests/test-dprintf-posix.c (dprintf): Likewise.
19297         * tests/test-dup2.c (dup2): Likewise.
19298         * tests/test-dup3.c (dup3): Likewise.
19299         * tests/test-duplocale.c (duplocale): Likewise.
19300         * tests/test-fchdir.c (fchdir): Likewise.
19301         * tests/test-fchownat.c (fchownat): Likewise.
19302         * tests/test-fcntl.c (fcntl): Likewise.
19303         * tests/test-fdopendir.c (fdopendir): Likewise.
19304         * tests/test-fflush.c (fflush): Likewise.
19305         * tests/test-flock.c (flock): Likewise.
19306         * tests/test-floorf1.c (floorf): Likewise.
19307         * tests/test-floorl.c (floorl): Likewise.
19308         * tests/test-fnmatch.c (fnmatch): Likewise.
19309         * tests/test-fopen.c (fopen): Likewise.
19310         * tests/test-fprintf-posix.c (fprintf): Likewise.
19311         * tests/test-freopen.c (freopen): Likewise.
19312         * tests/test-frexp.c (frexp): Likewise.
19313         * tests/test-frexpl.c (frexpl): Likewise.
19314         * tests/test-fseek.c (fseek): Likewise.
19315         * tests/test-fseeko.c (fseeko): Likewise.
19316         * tests/test-fstatat.c (fstatat): Likewise.
19317         * tests/test-fsync.c (fsync): Likewise.
19318         * tests/test-ftell.c (ftell): Likewise.
19319         * tests/test-ftello.c (ftello): Likewise.
19320         * tests/test-futimens.c (futimens): Likewise.
19321         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19322         (gai_strerror): Likewise.
19323         * tests/test-getcwd.c (getcwd): Likewise.
19324         * tests/test-getdelim.c (getdelim): Likewise.
19325         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19326         * tests/test-getgroups.c (getgroups): Likewise.
19327         * tests/test-gethostname.c (gethostname): Likewise.
19328         * tests/test-getline.c (getline): Likewise.
19329         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19330         Likewise.
19331         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19332         * tests/test-glob.c (glob, globfree): Likewise.
19333         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19334         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19335         * tests/test-inet_pton.c (inet_pton): Likewise.
19336         * tests/test-isblank.c (isblank): Likewise.
19337         * tests/test-lchown.c (lchown): Likewise.
19338         * tests/test-ldexpl.c (ldexpl): Likewise.
19339         * tests/test-link.c (link): Likewise.
19340         * tests/test-linkat.c (linkat): Likewise.
19341         * tests/test-lseek.c (lseek): Likewise.
19342         * tests/test-lstat.c (lstat): Likewise.
19343         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19344         * tests/test-mbsinit.c (mbsinit): Likewise.
19345         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19346         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19347         * tests/test-memchr.c (memchr): Likewise.
19348         * tests/test-memcmp.c (memcmp): Likewise.
19349         * tests/test-memmem.c (memmem): Likewise.
19350         * tests/test-memrchr.c (memrchr): Likewise.
19351         * tests/test-mkdir.c (mkdir): Likewise.
19352         * tests/test-mkdirat.c (mkdirat): Likewise.
19353         * tests/test-mkfifo.c (mkfifo): Likewise.
19354         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19355         * tests/test-mknod.c (mknod): Likewise.
19356         * tests/test-nanosleep.c (nanosleep): Likewise.
19357         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19358         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19359         Likewise.
19360         * tests/test-open.c (open): Likewise.
19361         * tests/test-openat.c (openat): Likewise.
19362         * tests/test-perror.c (perror): Likewise.
19363         * tests/test-pipe2.c (pipe2): Likewise.
19364         * tests/test-poll.c (poll): Likewise.
19365         * tests/test-popen.c (popen, pclose): Likewise.
19366         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19367         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19368         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19369         (posix_spawn_file_actions_destroy)
19370         (posix_spawn_file_actions_addclose)
19371         (posix_spawn_file_actions_addopen)
19372         (posix_spawn_file_actions_adddup2): Likewise.
19373         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19374         * tests/test-pread.c (pread): Likewise.
19375         * tests/test-printf-posix.c (printf): Likewise.
19376         * tests/test-pty.c (openpty, forkpty): Likewise.
19377         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19378         (random_r): Likewise.
19379         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19380         * tests/test-readlink.c (readlink): Likewise.
19381         * tests/test-remove.c (remove): Likewise.
19382         * tests/test-rename.c (rename): Likewise.
19383         * tests/test-renameat.c (renameat): Likewise.
19384         * tests/test-rmdir.c (rmdir): Likewise.
19385         * tests/test-round1.c (round): Likewise.
19386         * tests/test-roundf1.c (roundf): Likewise.
19387         * tests/test-roundl.c (roundl): Likewise.
19388         * tests/test-setenv.c (setenv): Likewise.
19389         * tests/test-sigaction.c (sigaction): Likewise.
19390         * tests/test-sleep.c (sleep): Likewise.
19391         * tests/test-snprintf.c (snprintf): Likewise.
19392         * tests/test-sprintf-posix.c (sprintf): Likewise.
19393         * tests/test-stat.c (stat): Likewise.
19394         * tests/test-stpncpy.c (stpncpy): Likewise.
19395         * tests/test-strcasestr.c (strcasestr): Likewise.
19396         * tests/test-strchrnul.c (strchrnul): Likewise.
19397         * tests/test-strerror.c (strerror): Likewise.
19398         * tests/test-strsignal.c (strsignal): Likewise.
19399         * tests/test-strstr.c (strstr): Likewise.
19400         * tests/test-strtod.c (strtod): Likewise.
19401         * tests/test-strverscmp.c (strverscmp): Likewise.
19402         * tests/test-symlink.c (symlink): Likewise.
19403         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19404         * tests/test-times.c (times): Likewise.
19405         * tests/test-trunc1.c (trunc): Likewise.
19406         * tests/test-truncf1.c (truncf): Likewise.
19407         * tests/test-truncl.c (truncl): Likewise.
19408         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19409         Likewise.
19410         * tests/test-uname.c (uname): Likewise.
19411         * tests/test-unlink.c (unlink): Likewise.
19412         * tests/test-unlinkat.c (unlinkat): Likewise.
19413         * tests/test-unsetenv.c (unsetenv): Likewise.
19414         * tests/test-usleep.c (usleep): Likewise.
19415         * tests/test-utimensat.c (utimensat): Likewise.
19416         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19417         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19418         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19419         * tests/test-vprintf-posix.c (vprintf): Likewise.
19420         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19421         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19422         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19423         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19424         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19425         * tests/test-wcwidth.c (wcwidth): Likewise.
19426
19427         build: pull in conditional headers during GNULIB_POSIXCHECK
19428         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19429         definitions from any conditionally-included headers.
19430         * lib/stdlib.in.h (includes): Likewise.
19431         * lib/unistd.in.h (includes): Likewise.
19432
19433 2009-12-24  Bruno Haible  <bruno@clisp.org>
19434
19435         * tests/test-argv-iter.c: Include header file being tested immediately
19436         after config.h.
19437         * tests/test-base64.c: Likewise.
19438         * tests/test-flock.c: Likewise.
19439         * tests/test-fsync.c: Likewise.
19440         * tests/test-getdate.c: Likewise.
19441         * tests/test-getndelim2.c: Likewise.
19442         * tests/test-isfinite.c: Likewise.
19443         * tests/test-isinf.c: Likewise.
19444         * tests/test-strerror.c: Likewise.
19445         * tests/test-strsignal.c: Likewise.
19446
19447 2009-12-23  Eric Blake  <ebb9@byu.net>
19448
19449         unistd: work around cygwin bug
19450         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19451         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19452         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19453
19454 2009-12-23  Bruno Haible  <bruno@clisp.org>
19455
19456         localename: More tests.
19457         * tests/test-localename.c (SIZEOF): New macro.
19458         (categories): New variable.
19459         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19460         test_locale_name_default): Add test w.r.t. thread locale.
19461         (test_locale_name_thread): New function.
19462         (main): Invoke it.
19463
19464         localename: Make aware of thread locale.
19465         * lib/localename.h (gl_locale_name_thread): New declaration.
19466         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19467         behaviour with respect to thread locale.
19468         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19469         <langinfo.h>, glthread/lock.h.
19470         (SIZE_BITS): New macro.
19471         (string_hash): New function.
19472         (struct hash_node): New type.
19473         (HASH_TABLE_SIZE): New macro.
19474         (struniq_hash_table, struniq_lock): New variables.
19475         (struniq): New function.
19476         (gl_locale_name_thread): New function.
19477         (gl_locale_name): Invoke it.
19478         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19479         * modules/localename (Depends-on): Add lock.
19480         Reported by Mike Gran <spk121@yahoo.com>.
19481
19482 2009-12-23  Eric Blake  <ebb9@byu.net>
19483
19484         va-args: new module
19485         * modules/va-args: New file.
19486         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19487         * MODULES.html.sh (Core language properties): Mention it.
19488
19489         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19490         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19491         named alias for __attribute__((__unused__)).
19492         * lib/chown.c: Update client.
19493         * lib/fchmodat.c: Likewise.
19494         * lib/fts.c: Likewise.
19495         * lib/getdate.y: Likewise.
19496         * lib/getgroups.c: Likewise.
19497         * lib/getopt.c: Likewise.
19498         * lib/getugroups.c: Likewise.
19499         * lib/mkdir.c: Likewise.
19500         * lib/mkfifo.c: Likewise.
19501         * lib/mkfifoat.c: Likewise.
19502         * lib/mknod.c: Likewise.
19503         * lib/mknodat.c: Likewise.
19504         * lib/readlink.c: Likewise.
19505         * lib/se-context.in.h: Likewise.
19506         * lib/se-selinux.in.h: Likewise.
19507         * lib/sockets.c: Likewise.
19508         * lib/symlink.c: Likewise.
19509         * lib/symlinkat.c: Likewise.
19510         * lib/unicodeio.c: Likewise.
19511         * lib/unistr.h: Likewise.
19512         * tests/test-areadlink.c: Likewise.
19513         * tests/test-areadlinkat.c: Likewise.
19514         * tests/test-filenamecat.c: Likewise.
19515         * tests/test-fseeko.c: Likewise.
19516         * tests/test-ftello.c: Likewise.
19517         * tests/test-getdate.c: Likewise.
19518         * tests/test-getgroups.c: Likewise.
19519         * tests/test-gethostname.c: Likewise.
19520         * tests/test-quotearg.c: Likewise.
19521         * tests/test-version-etc.c: Likewise.
19522         * tests/test-xalloc-die.c: Likewise.
19523         * tests/test-xfprintf-posix.c: Likewise.
19524         * tests/test-xprintf-posix.c: Likewise.
19525         * tests/test-xvasprintf.c: Likewise.
19526
19527         tests: avoid compiler warnings
19528         * tests/test-fcntl.c (main): Delete unused parameters.
19529         * tests/test-freopen-safer.c (main): Likewise.
19530         * tests/test-xalloc-die.c (main): Mark unused parameters.
19531         * tests/test-fseeko.c (main): Likewise.
19532         * tests/test-ftello.c (main): Likewise.
19533         * tests/test-nanosleep.c (main): Avoid declaration warning.
19534         * tests/test-sleep.c (main): Likewise.
19535         * tests/test-unsetenv.c (main): Silence warning about string
19536         literal.
19537         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19538
19539 2009-12-23  Bruno Haible  <bruno@clisp.org>
19540
19541         * tests/test-localename.c (test_locale_name): New function, extracted
19542         from main. Also test mixed situations.
19543         (test_locale_name_posix, test_locale_name_environ,
19544         test_locale_name_default): New functions.
19545         (main): Invoke them all.
19546         * modules/localename-tests (configure.ac): Test for newlocale.
19547
19548 2009-12-23  Bruno Haible  <bruno@clisp.org>
19549
19550         unistd: Ensure getcwd gets declared before being overridden.
19551         * lib/unistd.in.h: Conditionally include <io.h>.
19552
19553 2009-12-22  Bruno Haible  <bruno@clisp.org>
19554
19555         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19556         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19557         (gl_WCHAR_H): Invoke it.
19558         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19559         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19560         Reported by Karl Berry <karl@freefriends.org>.
19561
19562 2009-12-22  Eric Blake  <ebb9@byu.net>
19563
19564         math, unistd: avoid redundant includes
19565         * lib/math.in.h (isnan): No need to re-include <math.h>.
19566         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19567
19568         getsubopt: work around cygwin bug
19569         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19570         avoid conflicting with system getsubopt.
19571         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19572         bug.
19573
19574         getopt: synchronize from glibc
19575         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19576         parameter order.  Adjust all callers.
19577         (_getopt_internal_r, main): Adjust quoting in error messages.
19578         Drop considerations for outdated POSIX 1003.2 error message.
19579         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19580         callers.
19581         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19582
19583         test-getopt: test stderr behavior
19584         * modules/getopt-posix-tests (Depends-on): Add dup2.
19585         * tests/test-getopt.c (ASSERT): Avoid stderr.
19586         (main): Move stderr to a temporary file.
19587         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19588         Instead, add parameter to inform caller if output occurred.
19589         (test_getopt): Adjust all existing tests to expect silence, and
19590         add new tests of leading ":".
19591         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19592         glibc shortcomings with leading "-:" or "+:" in optstring.
19593         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19594         Likewise.
19595         * doc/posix-functions/getopt.texi (getopt): Likewise.
19596
19597         test-getopt: enhance test
19598         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19599         supports optind=0.
19600         * tests/test-getopt.c (OPTIND_MIN): Move...
19601         * tests/test-getopt.h (OPTIND_MIN): ...here.
19602         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19603         Require that optind=0 works, since modern BSD supports it in
19604         addition to optreset, and since coreutils expects it.
19605         (test_getopt_long_only): New test.
19606         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19607         glibc shortcomings with 'W;', and enforcement of optind=0.
19608         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19609         Likewise.
19610
19611 2009-12-21  Bruno Haible  <bruno@clisp.org>
19612
19613         localename: Improvements for MacOS X and Cygwin.
19614         * lib/localename.h (gl_locale_name_environ): New declaration.
19615         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19616         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19617         (gl_locale_name_posix): Invoke it.
19618         (gl_locale_name_default): Add comments. Use Windows native API also on
19619         Cygwin.
19620
19621 2009-12-21  Bruno Haible  <bruno@clisp.org>
19622
19623         Update list of Win32 locale ids.
19624         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19625         (LANG_SAMI): Renamed from LANG_SAAMI.
19626         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19627         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19628         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19629         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19630         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19631         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19632         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19633         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19634         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19635         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19636         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19637         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19638         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19639         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19640         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19641         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19642         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19643         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19644         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19645         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19646         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19647         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19648         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19649         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19650         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19651         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19652         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19653         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19654         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19655         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19656         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19657         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19658         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19659         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19660         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19661         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19662         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19663         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19664         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19665         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19666         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19667         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19668         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19669         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19670         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19671         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19672         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19673         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19674         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19675         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19676         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19677         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19678         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19679         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19680         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19681         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19682         Add more languages and countries for Sami, Sorbian. Add more countries
19683         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19684         for Pashto. Change country for Syriac, Tswana.
19685
19686 2009-12-21  Eric Blake  <ebb9@byu.net>
19687
19688         test-utimens: avoid spurious failure
19689         * tests/test-chown.h (nap): Factor...
19690         * tests/nap.h: ...into new file.
19691         * tests/test-lchown.h (nap): Avoid duplication.
19692         * tests/test-utimens-common.h (nap): Use shared implementation,
19693         necessary on file systems with 1-second resolution.
19694         * modules/chown-tests (Files): Include new file.
19695         * modules/fdutimensat-tests (Files): Likewise.
19696         * modules/futimens-tests (Files): Likewise.
19697         * modules/lchown-tests (Files): Likewise.
19698         * modules/openat-tests (Files): Likewise.
19699         * modules/utimens-tests (Files): Likewise.
19700         * modules/utimensat-tests (Files): Likewise.
19701
19702 2009-12-19  Eric Blake  <ebb9@byu.net>
19703
19704         futimens, utimensat: work around Linux bug
19705         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19706         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19707         * lib/utimensat.c (rpl_utimensat): Work around it.
19708         * lib/futimens.c (rpl_futimens): Adjust comment.
19709
19710         utimens: work around Linux ctime bug
19711         * lib/utimens.c (detect_ctime_bug): New helper function.
19712         (update_timespec): Differentiate between workaround needed for
19713         this bug vs. what is needed for systems that lack utimensat.
19714         (fdutimens, lutimens): Work around bug.
19715
19716         utimens: check for ctime update
19717         * tests/test-utimens-common.h (check_ctime): Define.
19718         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19719         * tests/test-futimens.h (test_futimens): Likewise.
19720         * tests/test-lutimens.h (test_lutimens): Likewise.
19721         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19722         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19723
19724 2009-12-19  Bruno Haible  <bruno@clisp.org>
19725
19726         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19727         * tests/test-dprintf-posix2.sh: New file.
19728         * tests/test-dprintf-posix2.c: New file.
19729         * modules/dprintf-posix-tests (Files): Add them.
19730         (configure.ac): Check for getrlimit and setrlimit.
19731         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19732
19733 2009-12-19  Bruno Haible  <bruno@clisp.org>
19734
19735         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19736         * tests/test-fprintf-posix3.sh: New file.
19737         * tests/test-fprintf-posix3.c: New file.
19738         * modules/fprintf-posix-tests (Files): Add them.
19739         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19740
19741 2009-12-19  Eric Blake  <ebb9@byu.net>
19742
19743         dirfd: fix prototype
19744         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19745         * lib/dirfd.c (dirfd): Likewise.
19746
19747         canonicalize: reduce memory usage
19748         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19749         allocation to size.
19750         Reported by Solar Designer <solar@openwall.com>.
19751
19752 2009-12-19  Bruno Haible  <bruno@clisp.org>
19753
19754         New module attribute 'Applicability'.
19755         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19756         * gnulib-tool: New option --extract-applicability.
19757         (func_usage): Document it.
19758         (sed_extract_prog): Recognize it.
19759         (func_get_applicability): New function.
19760         (func_import): Generalize handling of 'link-warning' module.
19761         * modules/link-warning (Applicability): New section.
19762         * modules/arg-nonnull (Applicability): New section.
19763         Repoted by Simon Josefsson <simon@josefsson.org>.
19764
19765 2009-12-19  Bruno Haible  <bruno@clisp.org>
19766
19767         fflush: tweak
19768         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19769         * lib/fseeko.c (rpl_fseeko): Likewise.
19770
19771 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19772
19773         * lib/gl_list.h: Fix typo in comment.
19774
19775 2009-12-16  Eric Blake  <ebb9@byu.net>
19776
19777         fcntl: use to simplify other modules
19778         * modules/cloexec (Depends-on): Add fcntl.
19779         * modules/fchdir (Depends-on): Likewise.
19780         * modules/fd-safer-flag (Depends-on): Likewise.
19781         * modules/unistd-safer (Depends-on): Likewise.
19782         * modules/dup3 (configure.ac): Set module indicator.
19783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19784         missing.
19785         * lib/fchdir.c (_gl_register_dup): Fix comment.
19786         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19787         * lib/dup-safer.c (dup_safer): Likewise.
19788         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19789         * lib/dup3.c (dup3): Likewise.
19790         * tests/test-fchdir.c (main): Enhance test.
19791         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19792
19793         fcntl: port portions of fcntl to mingw
19794         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19795         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19796         replacement for mingw.
19797         * modules/fcntl (Description): Update.
19798         (Depends-on): Add dup2.
19799         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19800         * modules/fcntl-h (Makefile.am): Substitute it.
19801         * lib/fcntl.in.h (fcntl): Update declaration.
19802         (F_DUPFD, F_GETFD): New macros, when needed.
19803         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19804         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19805         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19806         we now guarantee.
19807
19808         fcntl: work around cygwin bug in F_DUPFD
19809         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19810         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19811         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19812         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19813         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19814
19815         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19816         * modules/fcntl (Files): List new files.
19817         (configure.ac): Run a test.
19818         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19819         * lib/fcntl.c (rpl_fcntl): Likewise.
19820         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19821         (gl_FCNTL_H): Always replace fcntl.h.
19822         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19823         * lib/fcntl.in.h (fcntl): Declare replacement.
19824         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19825         needed, plus a witness.
19826         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19827         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19828         * tests/test-fcntl.c: New file.
19829         * modules/fcntl-tests: Likewise.
19830
19831         binary-io: avoid potential compilation warning
19832         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19833         directives.
19834
19835         fflush: avoid compilation error on NetBSD
19836         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19837         between off_t and fpos_t, since the latter is sometimes a struct.
19838         * lib/fseeko.c (rpl_fseeko): Likewise.
19839         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19840
19841 2009-12-15  Eric Blake  <ebb9@byu.net>
19842
19843         fcntl-h, stdio, sys_ioctl: fix declarations
19844         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19845         function must not take arguments.
19846         * lib/sys_ioctl.in.h (ioctl): Likewise.
19847         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19848         (open): Add a link warning.
19849
19850 2009-12-15  Jim Meyering  <meyering@redhat.com>
19851
19852         areadlink, areadlink-with-size: relax license to LGPLv2+
19853         * modules/areadlink (License): Relax to LGPLv2+.
19854         * modules/areadlink-with-size (License): Likewise.
19855
19856 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19857             Bruno Haible  <bruno@clisp.org>
19858
19859         *printf: Fix memory leak.
19860         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19861         * lib/vfprintf.c (vfprintf): Likewise.
19862         * lib/dprintf.c (dprintf): Likewise.
19863         * lib/vdprintf.c (vdprintf): Likewise.
19864
19865 2009-12-14  Eric Blake  <ebb9@byu.net>
19866
19867         accept4: adjust module dependencies
19868         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19869
19870         utimens: one more try at avoiding compiler warning
19871         * lib/utimens.c (lutimens): Lower scope of result.
19872
19873 2009-12-13  Bruno Haible  <bruno@clisp.org>
19874
19875         Move the malloc checking from module 'list' to new module 'xlist'.
19876         * modules/xlist: New file.
19877         * lib/gl_xlist.h: New file.
19878         * lib/gl_xlist.c: New file.
19879         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19880         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19881         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19882         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19883         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19884         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19885         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19886         gl_sortedlist_nx_add): New declarations.
19887         (struct gl_list_implementation): Rename and change methods accordingly.
19888         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19889         (gl_list_nx_create): Renamed from gl_list_create.
19890         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19891         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19892         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19893         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19894         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19895         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19896         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19897         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19898         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19899         gl_list_create_empty.
19900         (gl_list_nx_create): Renamed from gl_list_create.
19901         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19902         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19903         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19904         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19905         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19906         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19907         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19908         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19909         * lib/gl_array_list.c: Don't include xalloc.h.
19910         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19911         NULL upon out-of-memory.
19912         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19913         out-of-memory.
19914         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19915         Change return type to 'int'.
19916         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19917         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19918         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19919         upon out-of-memory.
19920         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19921         upon out-of-memory.
19922         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19923         upon out-of-memory.
19924         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19925         upon out-of-memory.
19926         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19927         out-of-memory.
19928         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19929         Update.
19930         (gl_array_list_implementation): Update.
19931         * lib/gl_carray_list.c: Don't include xalloc.h.
19932         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19933         Return NULL upon out-of-memory.
19934         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19935         out-of-memory.
19936         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19937         Change return type to 'int'.
19938         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19939         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19940         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19941         upon out-of-memory.
19942         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19943         upon out-of-memory.
19944         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19945         out-of-memory.
19946         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19947         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19948         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19949         Update.
19950         (gl_carray_list_implementation): Update.
19951         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19952         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19953         gl_linked_create_empty. Return NULL upon out-of-memory.
19954         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19955         out-of-memory.
19956         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19957         Change return type to 'int'. Return -1 upon out-of-memory.
19958         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19959         out-of-memory.
19960         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19961         upon out-of-memory.
19962         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19963         upon out-of-memory.
19964         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19965         NULL upon out-of-memory.
19966         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19967         upon out-of-memory.
19968         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19969         out-of-memory.
19970         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19971         Update.
19972         * lib/gl_linked_list.c: Don't include xalloc.h.
19973         (gl_linked_list_implementation): Update.
19974         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19975         (add_to_bucket): Change return type to 'int'.
19976         (gl_linkedhash_list_implementation): Update.
19977         * lib/gl_anytree_list1.h (free_subtree): New function.
19978         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19979         gl_tree_create_empty. Return NULL upon out-of-memory.
19980         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19981         Change return type to 'int'. Return -1 upon out-of-memory.
19982         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19983         out-of-memory.
19984         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19985         (gl_tree_remove_node): New function, moved here from
19986         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19987         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19988         Update.
19989         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19990         malloc, not xmalloc. Return NULL upon out-of-memory.
19991         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19992         out-of-memory.
19993         (gl_tree_remove_node_from_tree): New function, extracted from
19994         gl_tree_remove_node.
19995         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19996         upon out-of-memory.
19997         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19998         out-of-memory.
19999         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20000         upon out-of-memory.
20001         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20002         upon out-of-memory.
20003         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20004         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20005         not xmalloc. Return NULL upon out-of-memory.
20006         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20007         out-of-memory.
20008         (gl_tree_remove_node_from_tree): New function, extracted from
20009         gl_tree_remove_node.
20010         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20011         upon out-of-memory.
20012         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20013         out-of-memory.
20014         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20015         upon out-of-memory.
20016         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20017         upon out-of-memory.
20018         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20019         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20020         gl_anytree_list1.h before gl_anyavltree_list2.h.
20021         (gl_avltree_list_implementation): Update.
20022         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20023         gl_anytree_list1.h before gl_anyavltree_list2.h.
20024         (gl_rbtree_list_implementation): Update.
20025         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20026         Change return type to 'int'. Return -1 upon out-of-memory. Use
20027         __builtin_expect.
20028         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20029         (gl_avltreehash_list_implementation): Update.
20030         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20031         (gl_rbtreehash_list_implementation): Update.
20032         * modules/array-list (Depends-on): Remove xalloc.
20033         * modules/carray-list (Depends-on): Likewise.
20034         * modules/linked-list (Depends-on): Likewise.
20035         * modules/linkedhash-list (Depends-on): Likewise.
20036         * modules/avltree-list (Depends-on): Likewise.
20037         * modules/rbtree-list (Depends-on): Likewise.
20038         * modules/avltreehash-list (Depends-on): Likewise.
20039         * modules/rbtreehash-list (Depends-on): Likewise.
20040
20041         * modules/xsublist: New file.
20042         * lib/gl_xsublist.h: New file.
20043         * lib/gl_xsublist.c: New file.
20044         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20045         (gl_sublist_nx_create): New declaration.
20046         * lib/gl_sublist.c: Don't include xalloc.h.
20047         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20048         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20049         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20050         Change return type to 'int'. Return -1 upon out-of-memory.
20051         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20052         upon out-of-memory.
20053         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20054         NULL upon out-of-memory.
20055         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20056         upon out-of-memory.
20057         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20058         NULL upon out-of-memory.
20059         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20060         NULL upon out-of-memory.
20061         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20062         upon out-of-memory.
20063         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20064         (gl_sublist_list_implementation): Update.
20065         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20066         upon out-of-memory.
20067         * modules/sublist (Depends-on): Remove xalloc.
20068
20069         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20070         * tests/test-carray_list.c: Likewise.
20071         * tests/test-linked_list.c: Likewise.
20072         * tests/test-linkedhash_list.c: Likewise.
20073         * tests/test-avltree_list.c: Likewise.
20074         * tests/test-rbtree_list.c: Likewise.
20075         * tests/test-avltreehash_list.c: Likewise.
20076         * tests/test-rbtreehash_list.c: Likewise.
20077         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20078         * modules/carray-list-tests (Makefile.am): Likewise.
20079         * modules/linked-list-tests (Makefile.am): Likewise.
20080         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20081         * modules/avltree-list-tests (Makefile.am): Likewise.
20082         * modules/rbtree-list-tests (Makefile.am): Likewise.
20083         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20084         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20085
20086         * NEWS: Mention the changes.
20087
20088         * lib/clean-temp.c: Include gl_xlist.h.
20089         * modules/clean-temp (Depends-on): Add xlist.
20090
20091         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20092         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20093
20094         * tests/test-array_oset.c: Include gl_xlist.h.
20095         * modules/array-oset-tests (Depends-on): Add xlist.
20096
20097         Reported by José E. Marchesi <jemarch@gnu.org>.
20098
20099 2009-12-13  Bruno Haible  <bruno@clisp.org>
20100
20101         Move the malloc checking from module 'oset' to new module 'xoset'.
20102         * modules/xoset: New file.
20103         * lib/gl_xoset.h: New file.
20104         * lib/gl_xoset.c: New file.
20105         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20106         declarations.
20107         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20108         (struct gl_oset_implementation): Rename and change methods accordingly.
20109         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20110         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20111         'int'. Mark as __warn_unused_result__.
20112         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20113         gl_oset_create_empty.
20114         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20115         'int'.
20116         * lib/gl_array_oset.c: Don't include xalloc.h.
20117         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20118         malloc, not xmalloc.
20119         (grow): Change return type to 'int'. Don't call xalloc_die.
20120         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20121         to 'int'.
20122         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20123         'int'.
20124         (gl_array_oset_implementation): Update.
20125         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20126         gl_tree_create_empty.
20127         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20128         'int'.
20129         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20130         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20131         xmalloc.
20132         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20133         not xmalloc.
20134         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20135         xmalloc.
20136         (gl_avltree_oset_implementation): Update.
20137         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20138         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20139         xmalloc.
20140         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20141         not xmalloc.
20142         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20143         xmalloc.
20144         (gl_rbtree_oset_implementation): Update.
20145         * modules/array-oset (Depends-on): Remove xalloc.
20146         * modules/avltree-oset (Depends-on): Likewise.
20147         * modules/rbtree-oset (Depends-on): Likewise.
20148         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20149         * tests/test-avltree_oset.c: Likewise.
20150         * tests/test-rbtree_oset.c: Likewise.
20151         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20152         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20153         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20154         * NEWS: Mention the change.
20155
20156 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20157
20158         maint.mk: allow a project to override release-prep commands
20159         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20160         commands into a new rule.
20161         (release-prep): New rule.
20162         (release-prep-hook): New overridable variable.
20163
20164 2009-12-13  Bruno Haible  <bruno@clisp.org>
20165
20166         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20167
20168 2009-12-13  Jim Meyering  <meyering@redhat.com>
20169
20170         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20171         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20172
20173 2009-12-12  Bruno Haible  <bruno@clisp.org>
20174
20175         duplocale: Tweak.
20176         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20177
20178 2009-12-12  Karl Berry  <karl@gnu.org>
20179
20180         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20181
20182 2009-12-12  Bruno Haible  <bruno@clisp.org>
20183
20184         * m4/po.m4: Undo incorrect untabification.
20185
20186 2009-12-12  Bruno Haible  <bruno@clisp.org>
20187
20188         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20189         * modules/c-strtod (Depends-on): Add locale.
20190         * modules/c-strtold (Depends-on): Likewise.
20191
20192 2009-12-12  Bruno Haible  <bruno@clisp.org>
20193
20194         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20195
20196 2009-12-11  Eric Blake  <ebb9@byu.net>
20197
20198         setenv: relax requirement in light of POSIX ruling
20199         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20200         not NULL.
20201         * tests/test-setenv.c (main): Relax test.
20202         * tests/test-unsetenv.c (main): Likewise.
20203         * doc/posix-functions/setenv.texi (setenv): Document this.
20204         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20205
20206 2009-12-11  Bruno Haible  <bruno@clisp.org>
20207
20208         New module 'fd-safer-flag'.
20209         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20210         * lib/dup-safer.c (dup_safer_flag): Remove function.
20211         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20212         * lib/fd-safer.c (fd_safer_flag): Remove function.
20213         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20214         * modules/cloexec (configure.ac): Drop indicator macro.
20215         * modules/fd-safer-flag: New file.
20216         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20217         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20218         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20219
20220 2009-12-11  Bruno Haible  <bruno@clisp.org>
20221
20222         Tests for module 'nl_langinfo'.
20223         * modules/nl_langinfo-tests: New file.
20224         * tests/test-nl_langinfo.sh: New file.
20225         * tests/test-nl_langinfo.c: New file.
20226
20227         New module 'nl_langinfo'.
20228         * lib/nl_langinfo.c: New file.
20229         * m4/nl_langinfo.m4: New file.
20230         * modules/nl_langinfo: New file.
20231         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20232
20233 2009-12-11  Bruno Haible  <bruno@clisp.org>
20234
20235         Tests for module 'langinfo'.
20236         * modules/langinfo-tests: New file.
20237         * tests/test-langinfo.c: New file.
20238
20239         New module 'langinfo'.
20240         * lib/langinfo.in.h: New file.
20241         * m4/langinfo_h.m4: New file.
20242         * modules/langinfo: New file.
20243         * doc/posix-headers/langinfo.texi: Mention the new module.
20244
20245 2009-12-11  Bruno Haible  <bruno@clisp.org>
20246
20247         * lib/config.charset: Untabify.
20248
20249 2009-12-11  Bruno Haible  <bruno@clisp.org>
20250
20251         * modules/unistd-safer (configure.ac): Drop indicator macro.
20252
20253 2009-12-11  Bruno Haible  <bruno@clisp.org>
20254
20255         Move pipe2-safer code to its own file.
20256         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20257         * lib/pipe-safer.c (pipe2_safer): Remove function.
20258         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20259         (Makefile.am): Add it to lib_SOURCES.
20260
20261 2009-12-10  Bruno Haible  <bruno@clisp.org>
20262
20263         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20264
20265 2009-12-10  Bruno Haible  <bruno@clisp.org>
20266
20267         Declare which arguments expect non-NULL values, for GCC and clang.
20268         * build-aux/arg-nonnull.h: New file.
20269         * modules/arg-nonnull: New file.
20270         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20271         (inet_ntop, inet_pton): Use it.
20272         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20273         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20274         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20275         (open, openat): Use it.
20276         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20277         (fnmatch): Use it.
20278         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20279         (getopt, getopt_long, getopt_long_only): Use it.
20280         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20281         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20282         Use it.
20283         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20284         (iconv_open): Use it.
20285         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20286         (strtoimax, strtoumax): Use it.
20287         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20288         (duplocale): Use it.
20289         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20290         (frexp, frexpl): Use it.
20291         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20292         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20293         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20294         (tsearch, tfind, tdelete, twalk): Use it.
20295         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20296         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20297         sigpending): Use it.
20298         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20299         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20300         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20301         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20302         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20303         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20304         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20305         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20306         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20307         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20308         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20309         Use it.
20310         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20311         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20312         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20313         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20314         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20315         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20316         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20317         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20318         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20319         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20320         strtoull, unsetenv): Use it.
20321         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20322         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20323         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20324         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20325         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20326         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20327         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20328         (strcasecmp, strncasecmp): Use it.
20329         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20330         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20331         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20332         rpl_setsockopt): Use it.
20333         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20334         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20335         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20336         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20337         (gettimeofday): Use it.
20338         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20339         (times): Use it.
20340         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20341         (uname): Use it.
20342         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20343         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20344         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20345         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20346         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20347         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20348         unlinkat, write): Use it.
20349         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20350         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20351         * lib/argv-iter.h: Include arg-nonnull.h.
20352         (_ATTRIBUTE_NONNULL_): Remove macro.
20353         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20354         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20355         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20356         optimization.
20357         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20358         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20359         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20360         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20361         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20362         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20363         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20364         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20365         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20366         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20367         * modules/dirent (Depends-on): Add arg-nonnull.
20368         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20369         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20370         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20371         * modules/fnmatch (Depends-on): Add arg-nonnull.
20372         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20373         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20374         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20375         * modules/glob (Depends-on): Add arg-nonnull.
20376         (Makefile.am): Insert arg-nonnull.h into glob.h.
20377         * modules/iconv_open (Depends-on): Add arg-nonnull.
20378         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20379         * modules/inttypes (Depends-on): Add arg-nonnull.
20380         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20381         * modules/locale (Depends-on): Add arg-nonnull.
20382         (Makefile.am): Insert arg-nonnull.h into locale.h.
20383         * modules/math (Depends-on): Add arg-nonnull.
20384         (Makefile.am): Insert arg-nonnull.h into math.h.
20385         * modules/netdb (Depends-on): Add arg-nonnull.
20386         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20387         * modules/search (Depends-on): Add arg-nonnull.
20388         (Makefile.am): Insert arg-nonnull.h into search.h.
20389         * modules/signal (Depends-on): Add arg-nonnull.
20390         (Makefile.am): Insert arg-nonnull.h into signal.h.
20391         * modules/spawn (Depends-on): Add arg-nonnull.
20392         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20393         * modules/stdio (Depends-on): Add arg-nonnull.
20394         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20395         * modules/stdlib (Depends-on): Add arg-nonnull.
20396         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20397         * modules/string (Depends-on): Add arg-nonnull.
20398         (Makefile.am): Insert arg-nonnull.h into string.h.
20399         * modules/strings (Depends-on): Add arg-nonnull.
20400         (Makefile.am): Insert arg-nonnull.h into strings.h.
20401         * modules/sys_socket (Depends-on): Add arg-nonnull.
20402         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20403         * modules/sys_stat (Depends-on): Add arg-nonnull.
20404         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20405         * modules/sys_time (Depends-on): Add arg-nonnull.
20406         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20407         * modules/sys_times (Depends-on): Add arg-nonnull.
20408         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20409         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20410         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20411         * modules/time (Depends-on): Add arg-nonnull.
20412         (Makefile.am): Insert arg-nonnull.h into time.h.
20413         * modules/unistd (Depends-on): Add arg-nonnull.
20414         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20415         * modules/wchar (Depends-on): Add arg-nonnull.
20416         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20417         * modules/argv-iter (Depends-on): Add arg-nonnull.
20418         * tests/test-canonicalize.c (null_ptr): New function.
20419         (main): Use it.
20420         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20421         (main): Use it.
20422         * tests/test-memmem.c (null_ptr): New function.
20423         (main): Use it.
20424         Reported by Jim Meyering.
20425
20426 2009-12-10  Bruno Haible  <bruno@clisp.org>
20427
20428         Use spaces for indentation, not tabs.
20429         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20430         * m4/*.m4: Untabify.
20431         * build-aux/*.h: Untabify.
20432         * tests/**/*.[hc]: Untabify.
20433         * README: New section "Indent with spaces, not TABs", based on
20434         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20435         * NEWS: Mention the change.
20436
20437 2009-12-10  Bruno Haible  <bruno@clisp.org>
20438
20439         pty test: Fix link error.
20440         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20441         test_pty_LDADD.
20442
20443 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20444
20445         * modules/pty: New file.
20446         * modules/pty-tests: New file.
20447         * m4/pty.m4: New file.
20448         * tests/test-pty.c: New file.
20449         * doc/glibc-headers/pty.texi: Modified.
20450         * doc/glibc-functions/forkpty.texi: Modified.
20451         * doc/glibc-functions/openpty.texi: Modified.
20452
20453 2009-12-10  Bruno Haible  <bruno@clisp.org>
20454
20455         Avoid syntax error in C++ mode.
20456         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20457
20458 2009-12-10  Bruno Haible  <bruno@clisp.org>
20459
20460         Use sed with option -e.
20461         * gnulib-tool (func_version, func_emit_copyright_notice,
20462         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20463         option -e to sed.
20464         * modules/link-warning (Makefile.am): Likewise.
20465
20466 2009-12-10  Jim Meyering  <meyering@redhat.com>
20467
20468         mgetgroups: do not write bytes beyond end of malloc'd buffer
20469         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20470         username, we call getgroups with a one-element-shorter buffer,
20471         but still told it the length was original, max_n_groups.
20472
20473 2009-12-09  Eric Blake  <ebb9@byu.net>
20474
20475         cloexec: relax license
20476         * modules/cloexec (Maintainer): Add myself.
20477         (License): Use LGPL, not GPL.
20478
20479         link-warning: optimize generation
20480         * modules/link-warning (Makefile.am): Reduce process usage.
20481
20482 2009-12-09  Bruno Haible  <bruno@clisp.org>
20483
20484         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20485         workaround was added on 2009-11-17.
20486
20487 2009-12-09  Jim Meyering  <meyering@redhat.com>
20488             Bruno Haible  <bruno@clisp.org>
20489
20490         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20491         * modules/link-warning (Makefile.am): Make the comment-removing sed
20492         command more robust in the face of bootstrap-prepended comment lines.
20493
20494 2009-12-09  Bruno Haible  <bruno@clisp.org>
20495
20496         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20497         most one group.
20498
20499 2009-12-09  Simon Josefsson <simon@josefsson.org>
20500             Bruno Haible  <bruno@clisp.org>
20501
20502         * build-aux/link-warning.h: Add copyright notice.
20503         * modules/link-warning (Makefile.am): Generate link-warning.h from
20504         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20505         * NEWS: Mention change in link-warning module.
20506         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20507         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20508         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20509         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20510         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20511         * modules/math (Makefile.am): Add dependency to math.h.
20512         * modules/search (Makefile.am): Add dependency to search.h.
20513         * modules/signal (Makefile.am): Add dependency to signal.h.
20514         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20515         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20516         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20517         * modules/string (Makefile.am): Add dependency to string.h.
20518         * modules/strings (Makefile.am): Add dependency to strings.h.
20519         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20520         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20521         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20522         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20523         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20524         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20525         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20526         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20527         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20528
20529 2009-12-09  Bruno Haible  <bruno@clisp.org>
20530
20531         fchdir: Optimize away rpl_fstat when possible.
20532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20533         REPLACE_OPEN_DIRECTORY.
20534         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20535
20536 2009-12-09  Bruno Haible  <bruno@clisp.org>
20537
20538         * lib/fchdir.c: Update comment.
20539
20540 2009-12-09  Bruno Haible  <bruno@clisp.org>
20541
20542         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20543
20544 2009-12-08  Eric Blake  <ebb9@byu.net>
20545
20546         fchdir: avoid memory leak on re-registration.
20547         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20548
20549 2009-12-08  Jim Meyering  <meyering@redhat.com>
20550
20551         init.sh: avoid Solaris 10 /bin/sh portability problem
20552         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20553         sourced script:
20554           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20555           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20556           bar
20557         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20558         and two tests used that idiom.
20559         * tests/init.sh: Update suggested usage comments.
20560         (path_prepend_): New function, to be used in place
20561         of the --src-path=DIR option.
20562         (setup_): Move PATH-prepending code into path_prepend_.
20563         * tests/test-pread.sh: Adapt to new usage.
20564         * tests/test-xalloc-die.sh: Likewise.
20565
20566 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20567
20568         * doc/gnulib.texi (Glibc pty.h): Add.
20569         * doc/glibc-functions/forkpty.texi: Add.
20570         * doc/glibc-functions/openpty.texi: Add.
20571         Suggested by Bruno Haible.
20572
20573 2009-12-08  Eric Blake  <ebb9@byu.net>
20574
20575         fchdir: fix logic bugs
20576         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20577         * tests/test-fchdir.c (main): Enhance test.
20578         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20579         is in use.
20580
20581         dup2: fix logic bugs
20582         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20583         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20584         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20585         exists.
20586         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20587
20588 2009-12-07  Eric Blake  <ebb9@byu.net>
20589
20590         unlink: fix m4 detection
20591         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20592
20593         unistd-safer: add unit test
20594         * modules/unistd-safer-tests: New file.
20595         * tests/test-dup-safer.c: Likewise.
20596         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20597         * tests/test-dup2.c (setmode): Likewise.
20598         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20599
20600         cloexec: preserve text vs. binary across dup_cloexec
20601         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20602         mode.
20603         * modules/dup2-tests (Depends-on): Add binary-io.
20604         * modules/cloexec-tests (Depends-on): Likewise.
20605         * tests/test-dup2.c (setmode, is_mode): New helpers.
20606         (main): Add tests that translation mode is preserved.
20607         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20608         Reported by Bruno Haible.
20609
20610         mgetgroups: reduce duplicate listings
20611         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20612         resulting array.
20613         * tests/test-chown.h (test_chown): Simplify client.
20614         * tests/test-lchown.h (test_lchown): Likewise.
20615
20616 2009-12-06  Bruno Haible  <bruno@clisp.org>
20617
20618         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20619         value.
20620
20621 2009-12-06  Bruno Haible  <bruno@clisp.org>
20622
20623         * lib/progname.c: Include stdio.h, stdlib.h.
20624         (set_program_name): Reject a NULL argument.
20625
20626 2009-12-05  Eric Blake  <ebb9@byu.net>
20627
20628         pipe2-safer: new module
20629         * modules/pipe2-safer: New file.
20630         * lib/unistd-safer.h (pipe2_safer): New prototype.
20631         * lib/unistd--.h (pipe2): New wrapper.
20632         * lib/pipe-safer.c (pipe2_safer): New function.
20633         * modules/pipe (Depends-on): Add pipe2-safer.
20634         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20635
20636         stdlib-safer: preserve cloexec flag for mkostemp[s]
20637         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20638         fd_safer_flag.
20639
20640         unistd-safer: allow preservation of cloexec status via flag
20641         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20642         prototypes.
20643         * lib/dup-safer.c (dup_safer_flag): New function.
20644         * lib/fd-safer.c (fd_safer_flag): Likewise.
20645         * modules/cloexec (configure.ac): Set witness.
20646
20647         test-dup2: enhance test
20648         * modules/dup2-tests (Depends-on): Add cloexec.
20649         * tests/test-dup2.c (main): Enhance test.
20650
20651         cloexec: add dup_cloexec
20652         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20653         header and comments.
20654         * lib/cloexec.c (set_cloexec_flag): Add comments.
20655         (dup_cloexec): New function, with mingw implementation borrowed
20656         from...
20657         * lib/w32spawn.h (dup_noinherit): ...here.
20658         * modules/execute (Depends-on): Add cloexec.
20659         * modules/pipe (Depends-on): Likewise.
20660         * modules/cloexec (Depends-on): Add dup2.
20661         * modules/cloexec-tests (Files): New file.
20662         * tests/test-cloexec.c: Likewise.
20663
20664         test-xalloc-die: fix test for mingw
20665         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20666         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20667         directory and .exe suffix off argv[0] output.
20668
20669         test-fseeko: fix test for mingw
20670         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20671         than undefining fseek, so test will pass on mingw.
20672
20673 2009-12-05  Bruno Haible  <bruno@clisp.org>
20674
20675         * lib/progname.h (set_program_name): Clarify specification.
20676         * lib/progname.c (set_program_name): Likewise.
20677         Reported by Jim Meyering.
20678
20679 2009-12-05  Jim Meyering  <meyering@redhat.com>
20680
20681         maint.mk: backslash-escape parens in default regexp
20682         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20683         backslash-escape the literal parentheses.
20684
20685         maint.mk: news-date-check: use grep -E
20686         * top/maint.mk (today): Define a Make variable, not a...
20687         (news-date-check): ...shell variable.
20688         (news-date-regexp): Use the Make variable.
20689         Use grep's -E option.  Change the failing diagnostic to mention
20690         the variable, $(news-date-regexp).
20691
20692 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20693
20694         maintainer-makefile: allow customization of NEWS entry format
20695         * top/maint.mk (news-date-regexp): New overridable variable.
20696         (news-date-check): Use it.
20697
20698 2009-12-04  Eric Blake  <ebb9@byu.net>
20699
20700         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20701         * lib/mgetgroups.h (xgetgroups): New prototype.
20702         * lib/mgetgroups.c (xgetgroups): New wrapper.
20703         (mgetgroups): Handle ENOSYS.
20704         * modules/mgetgroups (Depends-on): Add realloc.
20705         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20706
20707         mgetgroups: avoid argument promotion issues with -1
20708         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20709         for invalid gid_t.
20710         * tests/test-chown.h (getegid, test_chown): Likewise.
20711         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20712
20713 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20714
20715         exclude: Fix header file problems.
20716         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20717
20718 2009-12-01  Jim Meyering  <meyering@redhat.com>
20719
20720         fts: fts_open: do not let an empty string cause immediate failure
20721         This is required in support of GNU rm, for which the command
20722         "rm A '' B" must process and remove both A and B, in spite of
20723         the empty string argument.
20724         * lib/fts.c (fts_open): Do not let the presence of an empty string
20725         cause fts_open to fail immediately.  Most fts-using tools must be
20726         able to process all arguments, in order, and can be expected to
20727         diagnose such arguments themselves.
20728
20729 2009-11-30  Eric Blake  <ebb9@byu.net>
20730
20731         utimens: fix compilation error
20732         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20733         Declare variable at right scope.
20734
20735 2009-11-29  Jim Meyering  <meyering@redhat.com>
20736
20737         bootstrap: handle perl-5.11's changed --version output
20738         * build-aux/bootstrap (get_version): Handle perl separately,
20739         since perl-5.11's --version output is different.
20740
20741 2009-11-28  Jim Meyering  <meyering@redhat.com>
20742
20743         userspec: depend on the inttostr module, too
20744         * modules/userspec (Depends-on): Add inttostr.
20745
20746         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20747         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20748         number of MAXUID when it evaluates to (uid_t) -1.
20749         Likewise for group ID.  Reported by Matt McCutchen in
20750         <http://savannah.gnu.org/bugs/?28113>
20751
20752         userspec: reformat to use spaces, not TABs
20753         * lib/userspec.c: Expand TABs to spaces.
20754         Add Emacs' "indent-tabs-mode: nil" hint.
20755
20756 2009-11-27  Eric Blake  <ebb9@byu.net>
20757
20758         getopt-gnu: flush out another BSD bug
20759         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20760         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20761         flush out BSD bug.
20762         * tests/test-getopt.h (test_getopt): End lists with NULL.
20763         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20764         (test_getopt_long_posix): Enhance test.
20765         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20766         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20767         getopt-gnu.
20768         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20769         Likewise.
20770
20771 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20772
20773         * modules/idpriv-droptemp-tests (Notice): Fix text.
20774
20775 2009-11-27  Jim Meyering  <meyering@redhat.com>
20776
20777         test-xalloc-die: avoid spurious failure due to libtool argv difference
20778         In a libtool-enabled project, this test would fail due to a difference
20779         in the emitted program name, e.g.,
20780         -test-xalloc-die: memory exhausted
20781         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20782         Use program to avoid that.
20783         * modules/xalloc-die-tests (Depends-on): Add progname.
20784         * tests/test-xalloc-die.c: Include progname.h".
20785         (program_name): Remove decl.
20786         (main): Call set_program_name.
20787         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20788
20789 2009-11-26  Richard Jones  <rjones@redhat.com>
20790
20791         w32sock: leave win32 error in place.
20792         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20793
20794 2009-11-26  Eric Blake  <ebb9@byu.net>
20795
20796         init.sh: suggest to use skip_ and fail_ functions in comments
20797         * tests/init.sh: Add a sentence.
20798
20799 2009-11-25  Bruno Haible  <bruno@clisp.org>
20800
20801         init.sh: add documentation in comments
20802         * tests/init.sh: Add some developer and user documentation.
20803
20804 2009-11-26  Jim Meyering  <meyering@redhat.com>
20805
20806         init.sh: accommodate even those who specify bogus srcdir manually
20807         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20808         configure-time tests to be sanitized, so that there is no need to
20809         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20810         (with no double quotes) suffices.  However, since tests may be
20811         invoked manually, and since you may explicitly set srcdir to the
20812         name of a directory containing spaces, do quote its uses here.
20813         * tests/test-pread.sh: Likewise.
20814         Suggested by Bruno Haible.
20815
20816         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20817         * tests/test-pread.sh: Write no data into the pipe, because
20818         test-pread actually reads none.  This avoids a diagnostic,
20819         "bash: echo: write error: Broken pipe", that arises in the unusual
20820         event something is ignoring SIGPIPE, and might be interpreted
20821         as some sort of failure.  Reported by Bruno Haible.
20822
20823 2009-11-25  Jim Meyering  <meyering@redhat.com>
20824
20825         test-pread: cover failure with ESPIPE and EINVAL
20826         * tests/test-pread.c (main): Test for failure, too.
20827         * tests/test-pread.sh: Invoke with stdin on a pipe.
20828         Suggested by Eric Blake.
20829
20830         pread: improvement and fix
20831         * modules/pread (Depends-on): Depend on lseek, for portability to
20832         e.g., mingw.  Suggested by Eric Blake.
20833         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20834
20835         unistd.in.h: correct declaration of pread
20836         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20837         Reported by Richard W.M. Jones.
20838
20839         test-pread.sh: distribute the test script
20840         * modules/pread-tests (Files): Include test-pread.sh.
20841
20842         test-pread.sh: clean up
20843         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20844         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20845         That is unnecessary, since it's always ".".
20846         Suggestion from Eric Blake.
20847
20848         test-pread.sh: make executable
20849         * tests/test-pread.sh: Set executable bit.
20850         Reported by Eric Blake.
20851
20852         correct typo in test-pread.sh
20853         * tests/test-pread.sh: Add #! line.
20854
20855         test pread
20856         * tests/test-pread.c: New file.
20857         * tests/test-pread.sh: Likewise.
20858         * modules/pread-tests: Likewise.
20859
20860         pread: new module
20861         * modules/pread: New file.
20862         * lib/unistd.in.h (pread): Define/declare.
20863         * lib/pread.c (pread): New file.
20864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20865         * modules/unistd (Makefile.am): Substitute witnesses.
20866         * doc/posix-functions/pread.texi (pread): Update.
20867         * MODULES.html.sh: Add pread.
20868
20869 2009-11-25  Jim Meyering  <meyering@redhat.com>
20870
20871         tests/init.sh: new file to be used via most *.sh tests
20872         * tests/init.sh: New file.
20873
20874 2009-11-25  Eric Blake  <ebb9@byu.net>
20875
20876         utimens: work around older Linux failure with symlinks
20877         * lib/utimens.c (lutimensat_works_really): New variable.
20878         (fdutimens, lutimens): Use it to manage kernels that support
20879         nanosecond times on files, but not on symlinks.
20880         Reported by OndÅ™ej Vašík.
20881
20882         utimes: fix configure grammar
20883         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20884
20885 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20886
20887         regex: Fix fastmap for multibyte character ranges.
20888         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20889         characters when a multibyte character range is included.
20890
20891 2009-11-22  Andy Wingo  <wingo@pobox.com>
20892
20893         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20894         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20895
20896 2009-11-24  Bruno Haible  <bruno@clisp.org>
20897
20898         doc: Most *_l functions exist in MacOS X 10.5.
20899         * doc/posix-functions/duplocale.texi: Update platforms list.
20900         * doc/posix-functions/freelocale.texi: Likewise.
20901         * doc/posix-functions/newlocale.texi: Likewise.
20902         * doc/posix-functions/uselocale.texi: Likewise.
20903         * doc/posix-functions/isalnum_l.texi: Likewise.
20904         * doc/posix-functions/isalpha_l.texi: Likewise.
20905         * doc/posix-functions/isblank_l.texi: Likewise.
20906         * doc/posix-functions/iscntrl_l.texi: Likewise.
20907         * doc/posix-functions/isdigit_l.texi: Likewise.
20908         * doc/posix-functions/isgraph_l.texi: Likewise.
20909         * doc/posix-functions/islower_l.texi: Likewise.
20910         * doc/posix-functions/isprint_l.texi: Likewise.
20911         * doc/posix-functions/ispunct_l.texi: Likewise.
20912         * doc/posix-functions/isspace_l.texi: Likewise.
20913         * doc/posix-functions/isupper_l.texi: Likewise.
20914         * doc/posix-functions/iswalnum_l.texi: Likewise.
20915         * doc/posix-functions/iswalpha_l.texi: Likewise.
20916         * doc/posix-functions/iswblank_l.texi: Likewise.
20917         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20918         * doc/posix-functions/iswctype_l.texi: Likewise.
20919         * doc/posix-functions/iswdigit_l.texi: Likewise.
20920         * doc/posix-functions/iswgraph_l.texi: Likewise.
20921         * doc/posix-functions/iswlower_l.texi: Likewise.
20922         * doc/posix-functions/iswprint_l.texi: Likewise.
20923         * doc/posix-functions/iswpunct_l.texi: Likewise.
20924         * doc/posix-functions/iswspace_l.texi: Likewise.
20925         * doc/posix-functions/iswupper_l.texi: Likewise.
20926         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20927         * doc/posix-functions/isxdigit_l.texi: Likewise.
20928         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20929         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20930         * doc/posix-functions/strcoll_l.texi: Likewise.
20931         * doc/posix-functions/strfmon_l.texi: Likewise.
20932         * doc/posix-functions/strftime_l.texi: Likewise.
20933         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20934         * doc/posix-functions/strxfrm_l.texi: Likewise.
20935         * doc/posix-functions/tolower_l.texi: Likewise.
20936         * doc/posix-functions/toupper_l.texi: Likewise.
20937         * doc/posix-functions/towctrans_l.texi: Likewise.
20938         * doc/posix-functions/towlower_l.texi: Likewise.
20939         * doc/posix-functions/towupper_l.texi: Likewise.
20940         * doc/posix-functions/wcscoll_l.texi: Likewise.
20941         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20942         * doc/posix-functions/wctrans_l.texi: Likewise.
20943         * doc/posix-functions/wctype_l.texi: Likewise.
20944         * doc/glibc-functions/strptime_l.texi: Likewise.
20945         * doc/glibc-functions/strtod_l.texi: Likewise.
20946         * doc/glibc-functions/strtof_l.texi: Likewise.
20947         * doc/glibc-functions/strtol_l.texi: Likewise.
20948         * doc/glibc-functions/strtold_l.texi: Likewise.
20949         * doc/glibc-functions/strtoll_l.texi: Likewise.
20950         * doc/glibc-functions/strtoul_l.texi: Likewise.
20951         * doc/glibc-functions/strtoull_l.texi: Likewise.
20952         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20953         * doc/glibc-functions/wcstod_l.texi: Likewise.
20954         * doc/glibc-functions/wcstof_l.texi: Likewise.
20955         * doc/glibc-functions/wcstol_l.texi: Likewise.
20956         * doc/glibc-functions/wcstold_l.texi: Likewise.
20957         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20958         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20959         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20960
20961 2009-11-24  Bruno Haible  <bruno@clisp.org>
20962
20963         duplocale: Fix logic bug.
20964         * lib/duplocale.c: Don't include <langinfo.h>.
20965         (_NL_LOCALE_NAME): Remove macro.
20966         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20967         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20968
20969 2009-11-23  Jim Meyering  <meyering@redhat.com>
20970
20971         test-update-copyright: don't hard-code /usr/bin/perl
20972         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20973         perl to print the current year.  Gilles Espinasse reported that
20974         the replaced use of perl was hard-coded as /usr/bin/perl.
20975
20976 2009-11-23  Bruno Haible  <bruno@clisp.org>
20977
20978         duplocale: Add support for glibc 2.3.x.
20979         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20980
20981 2009-11-22  Bruno Haible  <bruno@clisp.org>
20982
20983         vasnprintf: Tiny optimization.
20984         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20985         MacOS X.
20986
20987 2009-11-22  Bruno Haible  <bruno@clisp.org>
20988
20989         Tests for module 'duplocale'.
20990         * modules/duplocale-tests: New file.
20991         * tests/test-duplocale.c: New file.
20992
20993         New module 'duplocale'.
20994         * m4/duplocale.m4: New file.
20995         * lib/locale.in.h (duplocale): New declaration.
20996         * lib/duplocale.c: New file.
20997         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20998         gl_LOCALE_H_DEFAULTS): New macros.
20999         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21000         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21001         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21002         REPLACE_DUPLOCALE.
21003         * modules/duplocale: New file.
21004         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21005
21006 2009-11-22  Bruno Haible  <bruno@clisp.org>
21007
21008         * modules/locale-tests (configure.ac): Test for newlocale function.
21009         * tests/test-locale.c: When the system has extended locale functions,
21010         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21011
21012         locale: Make locale_t available when possible.
21013         * lib/locale.in.h: Include <xlocale.h> when it exists.
21014         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21015         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21016         * modules/locale (Depends-on): Add extensions.
21017         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21018         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21019
21020 2009-11-22  Bruno Haible  <bruno@clisp.org>
21021
21022         Add comments.
21023         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21024         invocation.
21025         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21026         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21027         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21028
21029 2009-11-22  Bruno Haible  <bruno@clisp.org>
21030
21031         error: account for the possibility of freopen (stdout).
21032         * lib/error.c: Include <unistd.h>.
21033         (flush_stdout): New function, extracted from error and error_at_line.
21034         Determine stdout's fd dynamically.
21035         (error, error_at_line): Invoke flush_stdout.
21036         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21037         * modules/error (Depends-on): Add unistd.
21038
21039 2009-11-22  Bruno Haible  <bruno@clisp.org>
21040
21041         diffseq: Add comment.
21042         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21043
21044 2009-11-22  Jim Meyering  <meyering@redhat.com>
21045
21046         c-stack: avoid defining an unused static function
21047         * lib/c-stack.c (find_stack_direction): Do not define this function
21048         when it will not be used.
21049
21050         diffseq: avoid spurious gcc warnings
21051         * lib/diffseq.h (IF_LINT2): Define.
21052         (compareseq): Use it to initialize two members of "part".
21053         This avoids two used-uninitialized warnings.
21054
21055 2009-11-21  Jim Meyering  <meyering@redhat.com>
21056
21057         c-stack: avoid "ignoring return value of `write'" warning
21058         * lib/c-stack.c: Include "ignore-value.h".
21059         (die): Explicitly ignore each write return value.
21060         * modules/c-stack (Depends-on): Add ignore-value.
21061
21062 2009-11-21  Bruno Haible  <bruno@clisp.org>
21063
21064         diffseq: reduce scope of variable 'best'.
21065         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21066         variable, earlier used for two different purposes.
21067
21068 2009-11-21  Jim Meyering  <meyering@redhat.com>
21069
21070         diffseq: remove useless assignment to "best"
21071         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21072         assignment.  At that point "best" is already guaranteed to be zero.
21073
21074 2009-11-20  Eric Blake  <ebb9@byu.net>
21075
21076         build: mention ftp redirector in release announcements
21077         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21078         values that used to come from cfg.mk; mention FTP redirect URL.
21079         * build-aux/announce-gen: Mention the mirror list.
21080         Suggested by Karl Berry.
21081
21082         nanosleep: improve port to mingw
21083         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21085         LIB_NANOSLEEP, but only when needed.
21086         * modules/select (Link): Document LIBSOCKET.
21087         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21088         enough.
21089
21090         nanosleep: work around cygwin bug
21091         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21092         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21093         bug.
21094         (getnow): Delete, not needed.
21095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21096         LIB_CLOCK_GETTIME.
21097         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21098         clock-time, gettime.
21099         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21100         bug.
21101         * modules/nanosleep-tests: New test.
21102         * tests/test-nanosleep.c: New file.
21103
21104         sleep: work around cygwin bug
21105         * lib/sleep.c (rpl_sleep): Work around the bug.
21106         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21107         (gl_PREREQ_SLEEP): Delete unused macro.
21108         * modules/sleep (Depends-on): Add verify.
21109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21110         * modules/unistd (Makefile.am): Substitute witness.
21111         * lib/unistd.in.h (sleep): Update prototype.
21112         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21113         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21114         * modules/sleep-tests (Depends-on): Check for alarm.
21115
21116 2009-11-20  Jim Meyering  <meyering@redhat.com>
21117
21118         maint.mk: improve sc_prohibit_magic_number_exit
21119         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21120         so it does not match uses like System.exit(1).
21121         Add comments showing how to correct all offenders.
21122
21123 2009-11-19  Eric Blake  <ebb9@byu.net>
21124
21125         xalloc-die-tests: add missing library
21126         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21127
21128         test-xvasprintf: silence compiler warnings
21129         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21130         empty string from gcc.
21131
21132 2009-11-19  Jim Meyering  <meyering@redhat.com>
21133
21134         xfreopen: new module, from coreutils
21135         * modules/xfreopen: New module.
21136         * lib/xfreopen.c: New file.
21137         * lib/xfreopen.h: New file.
21138         * MODULES.html.sh (File stream based Input/Output"): Add it.
21139
21140 2009-11-19  Eric Blake  <ebb9@byu.net>
21141
21142         manywarnings: depend on warnings
21143         * modules/manywarnings (Depends-on): Add warnings.
21144
21145         build: avoid compiler warnings
21146         * lib/select.c (rpl_select): Delete unused variable.
21147         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21148
21149 2009-11-18  Eric Blake  <ebb9@byu.net>
21150
21151         tests: avoid false negative with --with-packager
21152         * tests/test-version-etc.sh: Discard packager information.
21153         * tests/test-argp-version-etc-1.sh: Likewise.
21154         Reported by Mike Frysinger.
21155
21156         utimens: fix regression on Solaris
21157         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21158         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21159         can only change fd timestamps via futimesat.  Instead, use an
21160         additional witness macro to avoid BSD bug.
21161         Reported by Jim Meyering.
21162
21163 2009-11-17  Eric Blake  <ebb9@byu.net>
21164
21165         usleep: use it to simplify tests
21166         * modules/stat-time-tests (Depends-on): Add usleep.
21167         (configure.ac): Drop usleep check.
21168         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21169         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21170         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21171         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21172         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21173         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21174         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21175         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21176         Likewise.
21177         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21178         * tests/test-lchown.h (nap): Likewise.
21179         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21180         * tests/test-stat-time.c (nap): Likewise.
21181         * tests/test-utimens-common.h (nap): Update comments.
21182
21183         usleep: new module
21184         * modules/usleep: New file.
21185         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21186         * lib/usleep.c (usleep): Likewise.
21187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21188         * modules/unistd (Makefile.am): Substitute witnesses.
21189         * lib/unistd.in.h (usleep): Add declaration.
21190         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21191         * MODULES.html.sh (Date and time): Likewise.
21192         * modules/usleep-tests (Depends-on): New test.
21193         * tests/test-usleep.c: New file.
21194
21195         chown: work around OpenBSD bug
21196         * lib/chown.c (rpl_chown): Work around the bug.
21197         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21198         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21199         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21200         * modules/chown (Depends-on): Add stdbool.
21201         * modules/lchown (Depends-on): Likewise.
21202         * doc/posix-functions/chown.texi (chown): Document the bug.
21203         * doc/posix-functions/lchown.texi (lchown): Likewise.
21204         * tests/test-lchown.h (test_chown): Relax test.
21205
21206         mkstemp: avoid conflict with C++ keyword template
21207         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21208         * lib/mkostemp.c (mkostemp): Likewise.
21209         * lib/mkostemps.c (mkostemps): Likewise.
21210         * lib/mkstemp.c (mkstemp): Likewise.
21211         * lib/mkstemps.c (mkstemps): Likewise.
21212
21213         xalloc-die-tests: optimize
21214         * tests/test-xalloc-die.sh: Reduce number of processes.
21215
21216 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21217
21218         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21219         patch from ludo@gnu.org (Ludovic Courtès).
21220
21221 2009-11-17  Jim Meyering  <meyering@redhat.com>
21222
21223         version-etc: use proper license string
21224         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21225         * modules/version-etc-fsf: Likewise.
21226
21227 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21228
21229         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21230         printed to stdout.  Deal with EOL differences.
21231
21232 2009-11-17  Eric Blake  <ebb9@byu.net>
21233
21234         unsetenv: work around Solaris bug
21235         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21236         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21237         Reported by Jim Meyering.
21238
21239         vasnprintf: avoid compiler warnings
21240         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21241         variables.
21242         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21243
21244 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21245
21246         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21247         settings since xalloc-die is no longer the self test,
21248         xalloc-die.sh is.
21249
21250 2009-11-17  Jim Meyering  <meyering@redhat.com>
21251
21252         test-xalloc-die.sh: make the code agree with the commit log
21253         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21254         at the end, just in case you happen to have a test-xalloc-die
21255         program in some other PATH directory.
21256
21257         test-xalloc-die.sh: fix a portability bug
21258         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21259         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21260         Otherwise, argv[0] (as often seen in diagnostics) would be too
21261         system-dependent, sometimes with, and sometimes without the leading "./".
21262
21263         version-etc-fsf: relax license to LGPLv3+
21264         * modules/version-etc-fsf (License): Relax license.
21265
21266 2009-11-16  Eric Blake  <ebb9@byu.net>
21267
21268         xalloc-die-tests: avoid printing null pointer
21269         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21270         shell script.
21271         * tests/test-xalloc-die.c (program_name): Declare.
21272         * tests/test-xalloc-die.sh (tmpfiles): New file.
21273
21274         setenv, unsetenv: work around various bugs
21275         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21276         (setenv) [HAVE_SETENV]: Work around bugs.
21277         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21278         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21279         for bugs.
21280         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21281         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21283         * modules/stdlib (Makefile.am): Update substitutions.
21284         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21285         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21286         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21287         * modules/setenv-tests: New test.
21288         * modules/unsetenv-tests: Likewise.
21289         * tests/test-setenv.c: New file.
21290         * tests/test-unsetenv.c: Likewise.
21291
21292 2009-11-16  Jim Meyering  <meyering@redhat.com>
21293
21294         version-etc: relax license to LGPLv3+
21295         * modules/version-etc (License): Relax license.
21296
21297         better AC_REQUIRE expanded-before-required-warning avoidance
21298         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21299         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21300         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21301         which is no longer needed.
21302
21303 2009-11-16  Eric Blake  <ebb9@byu.net>
21304
21305         test-freading: clean up temporary file
21306         * tests/test-freading.c (main): Remove file on success, and use
21307         ASSERT more liberally.
21308         Reported by Jim Meyering.
21309
21310 2009-11-16  Jim Meyering  <meyering@redhat.com>
21311
21312         avoid new AC_REQUIRE expanded-before-required warnings
21313         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21314         merely using it.
21315         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21316         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21317
21318 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21319
21320         * tests/test-xalloc-die.c: New file.
21321         * modules/xalloc-die-tests: New file.
21322         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21323         XFAIL_TESTS so it can be appended by modules.
21324
21325 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21326
21327         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21328         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21329
21330 2009-11-14  Eric Blake  <ebb9@byu.net>
21331
21332         fnmatch: avoid compiler warning
21333         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21334         to silence compiler warning about mismatch signedness in ?:.
21335         Reported by Robert Millan.
21336
21337         intprops: add double-inclusion guard
21338         * lib/intprops.h: Allow idempotent includes.
21339         Suggested by Bruce Korb.
21340
21341         openat: detect Solaris fchownat bug
21342         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21343         penalizing glibc chownat when only lchownat is broken.
21344         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21345         trailing slash bugs.
21346         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21347         * modules/openat-tests (Files): Include more files.
21348         (Depends-on): Add mgetgroups, sleep, stat-time.
21349         (configure.ac): Add additional checks.
21350         (Makefile.am): Build new test.
21351         * tests/test-fchownat.c: New file.
21352
21353         lchown: detect Solaris and FreeBSD bug
21354         * lib/lchown.c (rpl_lchown): Work around bug.
21355         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21357         * modules/unistd (Makefile.am): Populate it.
21358         * lib/unistd.in.h (lchown): Update declaration.
21359         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21360         * modules/lchown-tests: New file.
21361         * tests/test-lchown.h (test_lchown): Likewise.
21362         * tests/test-lchown.c (main): Likewise.
21363
21364         chown: detect Solaris and FreeBSD bug
21365         * lib/chown.c (rpl_chown): Work around bug.
21366         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21367         (gl_PREREQ_CHOWN): Delete.
21368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21369         * modules/unistd (Makefile.am): Populate it.
21370         * lib/unistd.in.h (chown): Update declaration.
21371         * lib/lchown.c (chown): Update client.
21372         * modules/lchown (Depends-on): Add lstat.
21373         * doc/posix-functions/chown.texi (chown): Document the bug.
21374         * doc/posix-functions/getgroups.texi (getgroups): Document
21375         getgroups pitfall.
21376         * modules/chown-tests: New file.
21377         * tests/test-chown.h (test_chown): Likewise.
21378         * tests/test-chown.c (main): Likewise.
21379
21380 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21381
21382         gnulib-tool: correctly detect absence of m4 directories
21383         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21384
21385 2009-11-14  Jim Meyering  <meyering@redhat.com>
21386
21387         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21388         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21389
21390 2009-11-14  John W. Eaton  <jwe@gnu.org>
21391
21392         strftime.h: wrap funtion declaration in extern "C" block
21393         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21394
21395 2009-11-13  Eric Blake  <ebb9@byu.net>
21396
21397         getgroups: avoid compiler warning
21398         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21399
21400         getgroups: work around FreeBSD bug
21401         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21402         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21403         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21404         * tests/test-getgroups.c (main): Fix buffer overrun.
21405
21406         getgroups: avoid compilation failure
21407         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21408         * modules/getgroups (Depends-on): Add stdint.
21409
21410 2009-11-13  Jim Meyering  <meyering@redhat.com>
21411
21412         test-getgroups: avoid compilation failure
21413         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21414
21415 2009-11-13  Eric Blake  <ebb9@byu.net>
21416
21417         mgetgroups: new module, taken from coreutils
21418         * modules/mgetgroups: New file.
21419         * lib/mgetgroups.h: Likewise.
21420         * lib/mgetgroups.c (mgetgroups): Likewise.
21421         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21422         * MODULES.html.sh (Users and groups): Mention it.
21423
21424         getgroups: don't expose GETGROUPS_T to user
21425         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21426         an element at a time if GETGROUPS_T is wrong size.
21427         * lib/getugroups.h (getugroups): Change signature.
21428         * lib/unistd.in.h (getgroups): Likewise.
21429         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21430         signature needs fixing.
21431         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21432         AC_TYPE_GETGROUPS.
21433         * modules/group-member (Depends-on): Add getgroups.
21434         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21435         (group_member): Rely on getgroups replacement.
21436         * lib/getugroups.c (getugroups): Use gid_t.
21437         * tests/test-getgroups.c (main): Likewise.
21438         * NEWS: Mention the signature change.
21439         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21440         problem with signature.
21441         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21442         GETGROUPS_T is still useful for setgroups.
21443
21444         getgroups, getugroups: provide stubs for mingw
21445         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21446         * lib/getugroups.c (getugroups): Likewise.
21447         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21448         function.  Modernize replacement scheme.
21449         (gl_PREREQ_GETGROUPS): Delete.
21450         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21451         * modules/getgroups (configure.ac): Declare witness.
21452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21453         * modules/unistd (Depends-on): Substitute witness.
21454         * lib/unistd.in.h (getgroups): Declare replacement.
21455
21456         getgroups: avoid calling exit
21457         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21458         drop xalloc.
21459         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21460         dependencies.
21461         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21462         exiting, in the rare case of malloc failure.
21463
21464         getgroups: fix logic error
21465         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21466         has more than 20 groups.
21467         * modules/getgroups-tests: New test.
21468         * tests/test-getgroups.c: New file.
21469
21470 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21471
21472         * tests/test-base64.c: Improve.
21473
21474 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21475
21476         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21477         Blake <ebb9@byu.net>.
21478
21479 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21480
21481         * tests/test-xvasprintf.c: Add %s%s related checks.
21482
21483 2009-11-12  Eric Blake  <ebb9@byu.net>
21484
21485         version-etc: match standards.texi style
21486         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21487         and use <> only for URLs.
21488
21489 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21490
21491         fts: do not fail on a submount during traversal
21492         * lib/fts.c (fts_build): Read the stat info again after opening
21493         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21494         Original report at http://bugzilla.redhat.com/501848.
21495
21496 2009-11-12  Jim Meyering  <meyering@redhat.com>
21497
21498         bootstrap: sync from coreutils
21499         * build-aux/bootstrap (bootstrap_epilogue): New function.
21500         Use git_modules_config in one more place.  This make bootstrap's
21501         --gnulib-srcdir option more useful for testing.
21502
21503         bootstrap: generalize autoheader check
21504         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21505         AC_CONFIG_HEADERS.
21506
21507 2009-11-11  Eric Blake  <ebb9@byu.net>
21508
21509         mkfifoat: use new modules for Solaris and BSD bugs
21510         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21511         * lib/mkfifoat.c (mknodat): Split...
21512         * lib/mknodat.c (mknodat): ...into new file.
21513         * modules/mkfifoat (Files): Ship new file.
21514         (Depends-on): Add mkfifo, mknod.
21515         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21516         (Depends-on): Add symlink.
21517         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21518         redundant with test_mkfifo.h.
21519         (do_mkfifoat, do_mknodat): New helpers.
21520
21521         mknod: new module
21522         * modules/mknod: New file.
21523         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21524         * lib/mknod.c (mknod): Likewise.
21525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21526         defaults.
21527         * modules/sys_stat (Makefile.am): Substitute them.
21528         * lib/sys_stat.in.h (mknod): Declare replacement.
21529         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21530         Document it.
21531         * doc/posix-functions/mknod.texi (mknod): Likewise.
21532         * modules/mknod-tests: New test.
21533         * tests/test-mknod.c: Likewise.
21534
21535         mkfifo: new module
21536         * modules/mkfifo: New file.
21537         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21538         * lib/mkfifo.c (mkfifo): Likewise.
21539         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21540         defaults.
21541         * modules/sys_stat (Makefile.am): Substitute them.
21542         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21543         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21544         Document it.
21545         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21546         * modules/mkfifo-tests: New test.
21547         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21548         from test-mkfifoat.c.
21549         * tests/test-mkfifo.c: New file.
21550
21551         readlink: detect FreeBSD bug
21552         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21553         slash on symlink.
21554         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21555         * tests/test-readlink.h (test_readlink): Enhance test.
21556
21557         symlink: detect FreeBSD bug
21558         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21559         slash on symlink.
21560         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21561         * tests/test-symlink.h (test_symlink): Enhance test.
21562
21563 2009-11-10  Eric Blake  <ebb9@byu.net>
21564
21565         link: detect FreeBSD bug
21566         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21567         symlink.
21568         * doc/posix-functions/link.texi (link): Document the bug.
21569         * tests/test-link.h (test_link): Enhance test.
21570         * tests/test-linkat.c (main): Update caller.
21571
21572         unlink, remove: detect FreeBSD bug
21573         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21574         slash on symlink.
21575         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21576         * doc/posix-functions/remove.texi (remove): Likewise.
21577         * tests/test-unlink.h (test_unlink): Enhance test.
21578         * tests/test-remove.c (main): Likewise.
21579
21580 2009-11-09  Eric Blake  <ebb9@byu.net>
21581
21582         rename: detect FreeBSD bug
21583         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21584         slash on symlink.
21585         * modules/renameat-tests (Depends-on): Add filenamecat.
21586         * tests/test-rename.h (test_rename): Allow one more errno.
21587         * tests/test-renameat.c (main): Likewise.
21588         * doc/posix-functions/rename.texi (rename): Document the bug.
21589
21590         open: detect FreeBSD bug
21591         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21592         symlink.
21593         * doc/posix-functions/open.texi (open): Document the bug.
21594         * doc/posix-functions/utimes.texi (utimes): Likewise.
21595         * tests/test-open.h (test_open): Add parameters, and test symlink
21596         handling.
21597         * tests/test-open.c (main): Adjust caller.
21598         * tests/test-fcntl-safer.c (main): Likewise.
21599         * modules/open-tests (Depends-on): Add stdbool, symlink.
21600         * modules/fcntl-safer-tests (Depends-on): Likewise.
21601         * tests/test-openat.c (main): Add test-open tests.
21602
21603         stat: detect FreeBSD bug
21604         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21605         symlink.
21606         * doc/posix-functions/stat.texi (stat): Document the bug.
21607         * tests/test-stat.h (test_stat_func): Add argument.
21608         * tests/test-stat.c (main): Adjust caller.
21609         * tests/test-fstatat.c (main): Likewise.
21610         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21611         Reported by Jim Meyering.
21612
21613 2009-11-09  James Youngman  <jay@gnu.org>
21614
21615         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21616         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21617
21618 2009-11-08  Jim Meyering  <meyering@redhat.com>
21619
21620         utimens: remove invalid futimesat call
21621         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21622         It used the file descriptor of the target file as the DIR_FD
21623         parameter and NULL as the file name.  That caused failure with
21624         errno == EFAULT on FreeBSD-8.0-rc2
21625
21626 2009-11-07  Eric Blake  <ebb9@byu.net>
21627
21628         fflush, freadseek: use fseeko, not fseek
21629         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21630         (clear_ungetc_buffer): Avoid potential problems on large files.
21631         * lib/freadseek.c (freadseek): Likewise.
21632         * modules/freadseek (Depends-on): Add fseeko.
21633         * modules/fseek (configure.ac): Set a witness.
21634         * tests/test-fflush.c (main): Use fseeko.
21635         * tests/test-fpurge.c (fseek): Disable link warning.
21636         * tests/test-freadable.c (fseek): Likewise.
21637         * tests/test-freading.c (fseek): Likewise.
21638         * tests/test-fseeko.c (fseek): Likewise.
21639         * tests/test-ftell.c (fseek): Likewise.
21640         * tests/test-ftello.c (fseek): Likewise.
21641         * tests/test-fwritable.c (fseek): Likewise.
21642         * tests/test-fwriting.c (fseek): Likewise.
21643
21644 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21645
21646         * modules/memchr (Depends-on): Drop getpagesize dependency.
21647
21648 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21649
21650         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21651         Reported by Ludovic Courtès.
21652         * build-aux/pmccabe2html: Improve example usage.
21653         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21654
21655 2009-11-06  Jim Meyering  <meyering@redhat.com>
21656
21657         do-release-commit-and-tag: New module.
21658         Automate the release-commit and tag process.
21659         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21660         * modules/do-release-commit-and-tag: New file.
21661         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21662
21663 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21664
21665         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21666         because test-select.c uses inet_pton.
21667
21668 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21669
21670         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21671         GETADDRINFO_LIB.  Bump serial number.
21672         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21673         Suggested by Eric Blake <ebb9@byu.net>.
21674
21675 2009-11-05  Eric Blake  <ebb9@byu.net>
21676
21677         strtod: detect darwin bug
21678         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21679         Reported by Leo Davis.
21680
21681         freopen-safer: new module
21682         * modules/freopen-safer: New module.
21683         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21684         * lib/freopen-safer.c (freopen_safer): New file.
21685         * lib/stdio-safer.h (freopen_safer): New declaration.
21686         * lib/stdio--.h (freopen): New override.
21687         * MODULES.html.sh (File stream based Input/Output): Mention it.
21688         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21689         freopen-safer module.
21690         * doc/posix-functions/stderr.texi (stderr): Likewise.
21691         * doc/posix-functions/stdin.texi (stdin): Likewise.
21692         * doc/posix-functions/stdout.texi (stdout): Likewise.
21693         * modules/freopen-safer-tests: New test.
21694         * tests/test-reopen-safer.c: New file.
21695
21696 2009-11-05  Jim Meyering  <meyering@redhat.com>
21697
21698         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21699         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21700
21701 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21702
21703         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21704
21705 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21706
21707         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21708
21709 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21710
21711         Fix link error.
21712         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21713         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21714
21715 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21716
21717         * tests/test-func.c: Also test value of __func__.
21718
21719 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21720
21721         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21722         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21723
21724 2009-11-05  Bruno Haible  <bruno@clisp.org>
21725
21726         Fix link error.
21727         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21728         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21729         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21730
21731 2009-11-05  Bruno Haible  <bruno@clisp.org>
21732
21733         Tests for module 'inet_pton'.
21734         * modules/inet_pton-tests: New file.
21735         * tests/test-inet_pton.c: New file.
21736
21737 2009-11-05  Bruno Haible  <bruno@clisp.org>
21738
21739         Tests for module 'inet_ntop'.
21740         * modules/inet_ntop-tests: New file.
21741         * tests/test-inet_ntop.c: New file.
21742
21743 2009-11-04  Eric Blake  <ebb9@byu.net>
21744
21745         stdlib-safer: wrap all mkstemp variants
21746         * modules/mkostemp (configure.ac): Set witness.
21747         * modules/mkostemps (configure.ac): Likewise.
21748         * modules/mkstemps (configure.ac): Likewise.
21749         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21750         (mkstemps_safer): Wrap more functions.
21751         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21752         wrapping.
21753         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21754         (mkstemps_safer): Implement the wrappers.
21755
21756         mkstemps, mkostemps: new modules
21757         * modules/mkostemps: New module.
21758         * modules/mkstemps: Likewise.
21759         * lib/mkostemps.c (mkostemps): New file.
21760         * lib/mkstemps.c (mkstemps): Likewise.
21761         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21762         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21764         * modules/stdlib (Makefile.am): Substitute them.
21765         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21766         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21767         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21768         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21769         * MODULES.html.sh (File system functions): Mention them.
21770
21771         tempname: resync from glibc
21772         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21773         same values for __GT_FILE as glibc.  Abort even when assertions
21774         are disabled.
21775         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21776         match its value otherwise.  Allow idempotent inclusion.
21777         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21778         * lib/mkostemp.c (mkostemp): Likewise.
21779         * lib/mkstemp.c (mkstemp): Likewise.
21780         * lib/tmpfile.c (tmpfile): Likewise.
21781         * NEWS: Document this.
21782
21783         utimens: fix use of futimens on older Linux
21784         * lib/utimens.c (fdutimens): Use updated, rather than original,
21785         timespec to avoid bug in older Linux kernel.
21786         Reported by Simon Josefsson.
21787
21788 2009-11-04  Bruno Haible  <bruno@clisp.org>
21789
21790         Make num_processors more flexible and consistent.
21791         * lib/nproc.h (enum nproc_query): New type.
21792         (num_processors): Add a 'query' argument.
21793         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21794         (num_processors): Add a 'query' argument. Test the value of the
21795         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21796         mingw, count the number of CPUs available for the current process.
21797         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21798         Check for sched_getaffinity and sched_getaffinity_np.
21799         * modules/nproc (Depends-on): Add c-ctype, extensions.
21800         * NEWS: Mention the change.
21801
21802 2009-11-03  Bruno Haible  <bruno@clisp.org>
21803
21804         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21805
21806 2009-11-03  Jim Meyering  <meyering@redhat.com>
21807
21808         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21809         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21810         if it is defined.
21811
21812 2009-11-02  Eric Blake  <ebb9@byu.net>
21813
21814         mktime, timegm: share common declaration
21815         * lib/mktime-internal.h: New file.
21816         * lib/mktime.c: Use it rather than open-coding a declaration.
21817         * lib/timegm.c: Likewise.
21818         * modules/mktime (Files): Ship it.
21819         * modules/timegm (Files): Likewise.
21820         Suggested by Bruno Haible.
21821
21822         test-update-copyright: update test to match script changes
21823         * tests/test-update-copyright.sh: Avoid hard-coding perl
21824         location.  Don't update *.bak created by earlier runs.
21825
21826 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21827             Simon Josefsson  <simon@josefsson.org>
21828             Bruno Haible  <bruno@clisp.org>
21829
21830         Fix link error on Solaris 8.
21831         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21832         also in libnsl. Define also INET_PTON_LIB.
21833         * modules/inet_pton (Link): New section.
21834
21835 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21836             Bruno Haible  <bruno@clisp.org>
21837
21838         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21839         * modules/inet_ntop (Link): New section.
21840         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21841
21842 2009-11-02  Eric Blake  <ebb9@byu.net>
21843
21844         maint: avoid compiler warnings in m4 macros
21845         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21846         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21847
21848 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21849
21850         * m4/pmccabe2html.m4: Remove file.
21851         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21852         function.  Change maintainer.
21853         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21854         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21855         Courtès).
21856
21857 2009-10-31  Eric Blake  <ebb9@byu.net>
21858
21859         fseeko: fix m4 regression
21860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21861         regression from 2009-10-27.
21862         Reported by Ralf Wildenhues.
21863
21864 2009-10-31  Jim Meyering  <meyering@redhat.com>
21865
21866         inttostr: aesthetics and improved (compile-time) safety
21867         Define inttype_is_signed rather than inttype_is_unsigned,
21868         since the sole use is via "#if inttype_is_signed".
21869         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21870         inttype_is_unsigned.
21871         * lib/offtostr.c (inttype_is_signed): Likewise.
21872         * lib/uinttostr.c (inttype_is_signed): Likewise.
21873         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21874         * lib/inttostr.c (inttostr): Use verify to cross-check the
21875         inttype_is_signed value and the signedness of the actual type.
21876         * modules/inttostr (Depends-on): Add verify.
21877
21878 2009-10-30  Eric Blake  <ebb9@byu.net>
21879
21880         build: avoid compiler warnings
21881         * lib/fchmodat.c (lchmod): Mark unused variables.
21882         * lib/getopt.c (_getopt_initialize): Likewise.
21883         * lib/mktime.c (__mktime_internal): Provide prototype.
21884         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21885         older gcc that do not understand #pragma GCC diagnostic.
21886         * lib/uinttostr.c (inttype_is_unsigned): Define.
21887         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21888
21889 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21890
21891         stat: fix compilation on AIX
21892         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21893         only see struct stat64.
21894
21895 2009-10-30  Eric Blake  <ebb9@byu.net>
21896
21897         exclude: make more robust
21898         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21899         rather than masking a coding bug.
21900         Suggested by Bruno Haible.
21901
21902 2009-10-30  Jim Meyering  <meyering@redhat.com>
21903
21904         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21905         Rather than putting #!/usr/bin/perl on the first line,
21906         start with a variant of what's recommended by "man perlrun" that
21907         invokes the first "perl" program from your shell's search path.
21908         * build-aux/gitlog-to-changelog: Replace #!... as above.
21909         Add a "Local Variables" perl mode setting.
21910         Prompted by a patch from Ludovic Courtès.
21911         Improved by Eric Blake.
21912         * build-aux/useless-if-before-free: Likewise.
21913         * build-aux/announce-gen: Likewise.
21914         * build-aux/update-copyright: Likewise.
21915
21916 2009-10-29  Eric Blake  <ebb9@byu.net>
21917
21918         filenamecat-lgpl: adjust clients
21919         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21920         filenamecat.
21921         * modules/renameat (Depends-on): Likewise.
21922
21923         filenamecat: split into filenamecat-lgpl
21924         * modules/filenamecat-lgpl: New module.
21925         * modules/filenamecat (Files): Move library-safe files into
21926         filenamecat-lgpl.
21927         (Depends-on): Add filenamecat-lgpl.
21928         (configure.ac): Declare witness.
21929         * lib/filenamecat.h (file_name_concat): Only declare when using
21930         GPL module.
21931         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21932         Move...
21933         * lib/filenamecat-lgpl.c: ...into new file.
21934         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21935         (gl_FILE_NAME_CONCAT): Use it.
21936         * MODULES.html.sh (File system functions): Mention new module.
21937
21938         argp: avoid memory leak
21939         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21940         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21941         base_name, since the latter malloc()s and can call exit().
21942         Leak introduced 2006-07-03.
21943
21944         dirname-lgpl: adjust clients that don't need full dirname
21945         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21946         * modules/filenamecat (Depends-on): Likewise.
21947         * modules/linkat (Depends-on): Likewise.
21948         * modules/mkancesdirs (Depends-on): Likewise.
21949         * modules/mkdir (Depends-on): Likewise.
21950         * modules/openat (Depends-on): Likewise.
21951         * modules/savewd (Depends-on): Likewise.
21952         * modules/rename (Depends-on): Likewise.
21953         (License): Relax license.
21954         * modules/mkdir-tests (Depends-on): Drop progname.
21955         (Makefile.am): Delete unneeded LDADD.
21956         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21957
21958         dirname: split into dirname-lgpl
21959         * modules/dirname-lgpl: New module.
21960         * modules/dirname (Files): Move library-safe files into
21961         dirname-lgpl.
21962         (Depends-on): Add dirname-lgpl.
21963         (configure.ac): Declare witness.
21964         * modules/double-slash-root (License): Relax license.
21965         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21966         module.
21967         * lib/dirname.c (dir_len, mdir_name): Move...
21968         * lib/dirname-lgpl.c: ...into new file.
21969         * lib/basename.c (last_component, base_len): Move...
21970         * lib/basename-lgpl.c: ...into new file.
21971         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21972         (gl_DIRNAME): Use it.
21973         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21974         Mention new module.
21975         * modules/dirname-tests (Depends-on): Add progname.
21976         * tests/test-dirname.c (program_name): Delete.
21977
21978         mkdir: make safe for libraries
21979         * modules/mkdir (Depends-on): Drop xalloc.
21980         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21981         exit.
21982
21983         tests: avoid some compiler warnings
21984         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21985         literals.
21986         * tests/test-memchr.c (main): Avoid type mismatch.
21987         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21988         * tests/test-base64.c (main): Likewise.
21989         * tests/test-getdelim.c (main): Likewise.
21990         * tests/test-gethostname.c (main): Likewise.
21991         * tests/test-getline.c (main): Likewise.
21992         * tests/test-netinet_in.c (main): Likewise.
21993         * tests/test-select.c (open_server_socket, main): Likewise.
21994         * tests/test-select-stdin.c (main): Likewise.
21995         * tests/test-sockets.c (main): Likewise.
21996         * tests/test-strsignal.c (main): Likewise.
21997         * tests/test-sys_select.c (main): Likewise.
21998         * tests/test-sys_socket.c (main): Likewise.
21999         * tests/test-u64.c (main): Likewise.
22000         * tests/test-xfprintf-posix.c (main): Likewise.
22001         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22002
22003         sockets: avoid compiler warning
22004         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22005
22006         maint: detect usage(1) and other suspicious exits
22007         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22008
22009 2009-10-29  Jim Meyering  <meyering@redhat.com>
22010
22011         timespec: long-to-int truncation could make timespec_cmp malfunction
22012         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22013         a multiple of 2^32 nanoseconds as no difference.
22014
22015 2009-10-28  Jim Meyering  <meyering@redhat.com>
22016
22017         fprintftime: wrap macro code argument in "do {...} while(0)"
22018         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22019         cpy macro must be a statement that can be followed by a semicolon.
22020         Now that the else clause contains a comment and is hence longer
22021         than one line, I require curly braces.  That in turn requires
22022         that we wrap this code block in the standard do...while(0).
22023
22024         fprintftime: remove stray semicolon from previous change
22025         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22026
22027         fprintftime: avoid a warning about ignored fwrite return value
22028         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22029         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22030         that is unsafe.
22031         * modules/fprintftime (Depends-on): Add ignore-value.
22032
22033         exclude: avoid an unwarranted warning
22034         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22035
22036 2009-10-27  Eric Blake  <ebb9@byu.net>
22037
22038         fseek: avoid compilation failure when fflush is replaced
22039         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22040         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22041         module is in use.
22042         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22043         module is not in use; since REPLACE_FSEEK worked otherwise.
22044         (GNULIB_FTELLO): Likewise for ftell.
22045         Reported by Ian Beckwith and others.
22046
22047 2009-10-27  Bruno Haible  <bruno@clisp.org>
22048
22049         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22050         Reported by Jim Meyering.
22051
22052 2009-10-27  Jim Meyering  <jim@meyering.net>
22053             Bruno Haible  <bruno@clisp.org>
22054
22055         Avoid warning despite dropping the return value of fwrite.
22056         * lib/unicodeio.c: Include ignore-value.h.
22057         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22058         * modules/unicodeio (Depends-on): Add ignore-value.
22059
22060 2009-10-26  Eric Blake  <ebb9@byu.net>
22061
22062         areadlinkat: fix fallback path
22063         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22064         pointer and zero.
22065
22066 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22067
22068         Use a better IO block size for modern systems
22069         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22070         * lib/md2.c: Likewise.
22071         * lib/md4.c: Likewise.
22072         * lib/md5.c: Likewise.
22073         * lib/sha1.c: Likewise.
22074         * lib/sha256.c: Likewise.
22075         * lib/sha512.c: Likewise.
22076
22077 2009-10-22  Eric Blake  <ebb9@byu.net>
22078
22079         tests: avoid several compiler warnings
22080         * tests/test-getcwd.c (main): Avoid buffer underflow.
22081         * tests/test-getdate.c (main): String literals are not safe with
22082         putenv, so use setenv.  Declare unused argument.
22083         * modules/getdate-tests (Depends-on): Add setenv.
22084         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22085         problems with string literals in char *.
22086         * tests/test-hash.c (main): Avoid shadowing declaration.
22087         (insert_new): Treat string literals as char const *.
22088         * tests/test-getopt.h (test_getopt): Likewise.
22089         (getopt_loop): Alter types to minimize casting elsewhere.
22090         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22091         (test_getopt_long_posix): Likewise.
22092         (do_getopt_long): Add wrapper to minimize casting.
22093         * tests/test-atexit.c (clear_temp_file): Use void.
22094         * tests/test-areadlink-with-size.c (main): Declare unused
22095         arguments.
22096         * tests/test-areadlink.c (main): Likewise.
22097         * tests/test-areadlinkat-with-size.c (main): Likewise.
22098         * tests/test-areadlinkat.c (main): Likewise.
22099         * tests/test-canonicalize-lgpl.c (main): Likewise.
22100         * tests/test-canonicalize.c (main): Likewise.
22101         * tests/test-dirent-safer.c (main): Likewise.
22102         * tests/test-dirname.c (main): Likewise.
22103         * tests/test-dup2.c (main): Likewise.
22104         * tests/test-fchdir.c (main): Likewise.
22105         * tests/test-fcntl-h.c (main): Likewise.
22106         * tests/test-fcntl-safer.c (main): Likewise.
22107         * tests/test-fdopendir.c (main): Likewise.
22108         * tests/test-fdutimensat.c (main): Likewise.
22109         * tests/test-fflush.c (main): Likewise.
22110         * tests/test-filenamecat.c (main): Likewise.
22111         * tests/test-filevercmp.c (main): Likewise.
22112         * tests/test-fopen-safer.c (main): Likewise.
22113         * tests/test-fopen.c (main): Likewise.
22114         * tests/test-fpending.c (main): Likewise.
22115         * tests/test-fpurge.c (main): Likewise.
22116         * tests/test-freading.c (main): Likewise.
22117         * tests/test-fstatat.c (main): Likewise.
22118         * tests/test-fsync.c (main): Likewise.
22119         * tests/test-futimens.c (main): Likewise.
22120         * tests/test-getndelim2.c (main): Likewise.
22121         * tests/test-gettimeofday.c (main): Likewise.
22122         * tests/test-getopt.c (main): Likewise.
22123         * tests/test-i-ring.c (main): Likewise.
22124         * tests/test-inttypes.c (main): Likewise.
22125         * tests/test-link.c (main): Likewise.
22126         * tests/test-lstat.c (main): Likewise.
22127         * tests/test-math.c (main): Likewise.
22128         * tests/test-md5.c (main): Likewise.
22129         * tests/test-memchr2.c (main): Likewise.
22130         * tests/test-memrchr.c (main): Likewise.
22131         * tests/test-mkdir.c (main): Likewise.
22132         * tests/test-mkdirat.c (main): Likewise.
22133         * tests/test-mkfifoat.c (main): Likewise.
22134         * tests/test-open.c (main): Likewise.
22135         * tests/test-openat-safer.c (main): Likewise.
22136         * tests/test-openat.c (main): Likewise.
22137         * tests/test-quotearg.c (main): Likewise.
22138         * tests/test-rawmemchr.c (main): Likewise.
22139         * tests/test-readlink.c (main): Likewise.
22140         * tests/test-remove.c (main): Likewise.
22141         * tests/test-rename.c (main): Likewise.
22142         * tests/test-renameat.c (main): Likewise.
22143         * tests/test-rmdir.c (main): Likewise.
22144         * tests/test-sha1.c (main): Likewise.
22145         * tests/test-signal.c (main): Likewise.
22146         * tests/test-sigaction.c (main): Likewise.
22147         * tests/test-stat.c (main): Likewise.
22148         * tests/test-stat-time.c (main): Likewise.
22149         * tests/test-stddef.c (main): Likewise.
22150         * tests/test-stdint.c (main): Likewise.
22151         * tests/test-stdio.c (main): Likewise.
22152         * tests/test-stdlib.c (main): Likewise.
22153         * tests/test-strchrnul.c (main): Likewise.
22154         * tests/test-strerror.c (main): Likewise.
22155         * tests/test-string.c (main): Likewise.
22156         * tests/test-strtod.c (main): Likewise.
22157         * tests/test-strverscmp.c (main): Likewise.
22158         * tests/test-symlink.c (main): Likewise.
22159         * tests/test-symlinkat.c (main): Likewise.
22160         * tests/test-sys_stat.c (main): Likewise.
22161         * tests/test-sys_time.c (main): Likewise.
22162         * tests/test-time.c (main): Likewise.
22163         * tests/test-unistd.c (main): Likewise.
22164         * tests/test-unlink.c (main): Likewise.
22165         * tests/test-unlinkat.c (main): Likewise.
22166         * tests/test-utimens.c (main): Likewise.
22167         * tests/test-utimensat.c (main): Likewise.
22168         * tests/test-version-etc.c (main): Likewise.
22169         * tests/test-wchar.c (main): Likewise.
22170         * tests/test-wctype.c (main): Likewise.
22171         * tests/test-xprintf-posix.c (main): Likewise.
22172         * tests/test-posixtm.c (main): Likewise.
22173         (STREQ): Delete unused macro.
22174         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22175         shadowed variables.
22176         * tests/test-memchr.c (main): Likewise.
22177
22178 2009-10-21  Eric Blake  <ebb9@byu.net>
22179
22180         areadlinkat: avoid failure on older glibc
22181         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22182         rather than mis-comparing 0 against FUNC_RESULT of char*.
22183
22184 2009-10-21  Bruno Haible  <bruno@clisp.org>
22185
22186         * modules/stpncpy (License): Relicense under LGPLv2+.
22187         Reported by David Lutterkort <lutter@redhat.com>.
22188
22189 2009-10-20  Eric Blake  <ebb9@byu.net>
22190
22191         utimensat: work around Solaris 9 bug
22192         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22193         has trailing slash bugs.
22194         * tests/test-lutimens.h (test_lutimens): Enhance test.
22195         * tests/test-utimens.h (test_utimens): Likewise.
22196         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22197         * doc/posix-functions/utimes.texi (utimes): Likewise.
22198         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22199         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22200         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22201         * doc/posix-functions/futimens.texi (futimens): Likewise.
22202
22203         fdutimensat: new module
22204         * modules/fdutimensat: New file.
22205         * lib/fdutimensat.c (fdutimensat): Likewise.
22206         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22207         * MODULES.html.sh (File system functions): Mention module.
22208         * modules/fdutimensat-tests: New test.
22209         * tests/test-fdutimensat.c: Likewise.
22210
22211         doc: regenerate INSTALL
22212         * doc/INSTALL: Reflect recent autoconf update.
22213         * doc/INSTALL.ISO: Likewise.
22214         * doc/INSTALL.UTF-8: Likewise.
22215
22216 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22217
22218         acl: warn if ACL support is not detected
22219         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22220
22221 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22222
22223         * lib/nproc.h: Add extern "C" block for C++.
22224
22225 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22226             Bruno Haible  <bruno@clisp.org>
22227
22228         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22229         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22230         * doc/posix-functions/isalpha.texi: Likewise.
22231         * doc/posix-functions/isblank.texi: Likewise.
22232         * doc/posix-functions/iscntrl.texi: Likewise.
22233         * doc/posix-functions/isdigit.texi: Likewise.
22234         * doc/posix-functions/isgraph.texi: Likewise.
22235         * doc/posix-functions/islower.texi: Likewise.
22236         * doc/posix-functions/isprint.texi: Likewise.
22237         * doc/posix-functions/ispunct.texi: Likewise.
22238         * doc/posix-functions/isspace.texi: Likewise.
22239         * doc/posix-functions/isupper.texi: Likewise.
22240         * doc/posix-functions/isxdigit.texi: Likewise.
22241
22242 2009-10-18  Bruno Haible  <bruno@clisp.org>
22243
22244         Tests for module 'isblank'.
22245         * modules/isblank-tests: New file.
22246         * tests/test-isblank.c: New file.
22247
22248         New module 'isblank'.
22249         * lib/isblank.c: New file.
22250         * m4/isblank.m4: New file.
22251         * modules/isblank: New file.
22252         * doc/posix-functions/isblank.texi: Mention the new module.
22253
22254 2009-10-18  Bruno Haible  <bruno@clisp.org>
22255
22256         New module 'ctype'.
22257         * lib/ctype.in.h: New file.
22258         * m4/ctype.m4: New file.
22259         * modules/ctype: New file.
22260         * doc/posix-headers/ctype.texi: Mention the new module.
22261
22262 2009-10-18  Jim Meyering  <meyering@redhat.com>
22263
22264         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22265         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22266         right after its initialization, rather than farther down.
22267         Keeping these in close proximity makes it easier to ensure
22268         that each such variable is initialized.  E.g.,
22269
22270             LIB_CLOCK_GETTIME=
22271             AC_SUBST([LIB_CLOCK_GETTIME])
22272
22273         This change also increments these serial numbers.
22274         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22275         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22277
22278 2009-10-18  Bruno Haible  <bruno@clisp.org>
22279
22280         Don't let environment variables perturb build.
22281         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22282         (gl_PREREQ_GETHRXTIME): ... not here.
22283
22284 2009-10-18  Bruno Haible  <bruno@clisp.org>
22285
22286         Avoid symlink attack in localcharset module.
22287         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22288         (O_NOFOLLOW): Define fallback.
22289         (get_charset_aliases): Don't open the file if it is a symbolic link.
22290         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22291         gl_FCNTL_H.
22292         (gl_FCNTL_H): Require it.
22293         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22294         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22295         Reported by Fergal Glynn <fglynn@veracode.com>.
22296
22297 2009-10-18  Bruno Haible  <bruno@clisp.org>
22298
22299         Implement nproc for mingw.
22300         * lib/nproc.c: Include <windows.h>
22301         (num_processors): On native Windows platforms, try GetSystemInfo.
22302
22303 2009-10-18  Bruno Haible  <bruno@clisp.org>
22304
22305         Implement nproc for IRIX.
22306         * lib/nproc.c: Include <sys/sysmp.h>.
22307         (num_processors): On IRIX systems, try sysmp.
22308         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22309
22310 2009-10-18  Bruno Haible  <bruno@clisp.org>
22311
22312         Implement nproc for HP-UX.
22313         * lib/nproc.c: Include <sys/pstat.h>
22314         (num_processors): On HP-UX systems, try pstat_getdynamic.
22315         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22316         pstat_getdynamic.
22317
22318 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22319             Bruno Haible  <bruno@clisp.org>
22320
22321         Implement nproc for NetBSD, OpenBSD.
22322         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22323         (ARRAY_SIZE): New macro.
22324         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22325         * m4/nproc.m4: New file.
22326         * modules/nproc (Files): Add m4/nproc.m4.
22327         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22328         (Makefile.am): Instead, augment lib_SOURCES.
22329
22330 2009-10-18  Bruno Haible  <bruno@clisp.org>
22331
22332         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22333         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22334         sys/param.h.
22335
22336 2009-10-16  Eric Blake  <ebb9@byu.net>
22337
22338         utimensat: new module
22339         * modules/utimensat: New file.
22340         * lib/utimensat.c (utimensat): Likewise.
22341         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22342         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22343         so we can work around Linux bugs.
22344         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22345         * modules/sys_stat (Makefile.am): Substitute them.
22346         * lib/sys_stat.in.h (utimensat): Declare it.
22347         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22348         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22349         * modules/utimensat-tests: New test.
22350         * tests/test-utimensat.c: Likewise.
22351
22352         utimens: let lutimens work on non-symlinks
22353         * lib/utimens.c (lutimens): Fall back to utimens rather than
22354         failing with ENOSYS, when file is not a symlink.
22355         (utimens): Reduce redirection.
22356         * tests/test-lutimens.h (test_lutimens): Update test to cover
22357         non-symlinks.
22358         * tests/test-utimens.h (test_utimens): Update test to cover
22359         symlinks.
22360         * tests/test-utimens.c (main): Update caller.
22361
22362         utimens: cache whether utimensat syscall works
22363         * lib/utimens.c (utimensat_works_really): New cache variable.
22364         (fdutimens, lutimens): Use it to avoid failing syscall.
22365
22366         test-stat-time, test-utimens: improve portability
22367         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22368         ext4 on alpha, and for cygwin.
22369         * tests/test-utimens-common.h: New file.
22370         (nap): Factor delays into single function.
22371         * tests/test-lutimens.h (test_lutimens): Use new header.
22372         * tests/test-futimens.h (test_futimens): Likewise.
22373         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22374         timestamps to occur from same machine, as was done previously for
22375         test_utimens.
22376         * modules/utimens-tests (Files): Ship new file.
22377         * modules/futimens-tests (Files): Likewise.
22378         Reported in part by Jim Meyering.
22379
22380         sys_stat: sort replacement declarations
22381         * lib/sys_stat.in.h: Sort declarations.
22382         * lib/futimens.c (futimens): Fix typo.
22383
22384 2009-10-15  Jim Meyering  <meyering@redhat.com>
22385
22386         don't let environment settings perturb build
22387         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22388         could cause a configure-time and/or build-time malfunction.
22389         Typically, a configure-time function-in-library test is performed
22390         via code like this:
22391
22392           LIB_VAR=
22393           AC_SUBST([LIB_VAR])
22394           prefix_saved_LIBS=$LIBS
22395             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22396                        [test "$ac_cv_search_FUNC" = "none required" ||
22397                         LIB_VAR=$ac_cv_search_FUNC])
22398           LIBS=$prefix_saved_LIBS
22399
22400         However, in each of the files affected by this change, the LIB_VAR=
22401         initialization was omitted.  Thus, when set in the environment, its
22402         value would propagate into generated Makefiles when FUNC is not found
22403         in LIB_NAME.
22404         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22405         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22407
22408 2009-10-14  Eric Blake  <ebb9@byu.net>
22409
22410         fchdir: avoid infinite recursion in mingw
22411         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22412         recursing.
22413
22414         test-stat-time: port to mingw
22415         * tests/test-stat-time.c (force_unlink): Return a value.
22416         (test_ctime) [W32]: Fix compilation error.
22417         (nap): Don't call usleep with too large an argument.  Use
22418         force_unlink.
22419         * doc/pastposix-functions/usleep.texi (usleep): Document the
22420         portability issue.
22421
22422 2009-10-13  Jim Meyering  <meyering@redhat.com>
22423
22424         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22425         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22426         * modules/pipe-filter-ii: Likewise.
22427         * modules/sys_socket-tests: Likewise.
22428         * modules/tsearch-tests: Likewise.
22429         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22430         (check): Depend on it.
22431
22432 2009-10-12  Eric Blake  <ebb9@byu.net>
22433
22434         utimens-tests: port to NFS file systems
22435         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22436         comparisons to avoid spurious failures from timestamp drift
22437         between NFS machines.
22438
22439 2009-10-12  Eric Blake  <ebb9@byu.net>
22440
22441         stat-time-tests: minor cleanups
22442         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22443         * tests/test-stat-time.c (nap): Separate assignment from call.
22444         Suggested by Paolo Bonzini and Bruno Haible.
22445
22446         sys_stat: guarantee struct timespec
22447         * lib/sys_stat.in.h (includes): Always include <time.h>
22448         * modules/sys_stat (Depends-on): Add time.
22449         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22450         mode_t permission values.
22451         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22452         get at subsecond timestamps.
22453
22454 2009-10-10  Eric Blake  <ebb9@byu.net>
22455
22456         futimens: new module
22457         * modules/futimens: New file.
22458         * lib/futimens.c (futimens): Likewise.
22459         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22460         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22461         we can work around Linux bugs.
22462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22463         * modules/sys_stat (Makefile.am): Substitute them.
22464         * lib/sys_stat.in.h (futimens): Declare it.
22465         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22466         * doc/posix-functions/futimens.texi (futimens): Likewise.
22467         * modules/futimens-tests: New test.
22468         * tests/test-futimens.c: Likewise.
22469
22470         utimens: introduce fdutimens
22471         * lib/utimens.h (fdutimens): New prototype.
22472         * lib/utimens.c (gl_futimens): Move guts...
22473         (fdutimens): ...to new interface.
22474         * tests/test-utimens.c (do_fdutimens): Use it.
22475
22476         utimens: add UTIME_NOW and UTIME_OMIT support
22477         * lib/utimens.c (validate_timespec, update_timespec): New helper
22478         functions.
22479         (gl_futimens, lutimens): Use them.
22480         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22481         stdbool, sys_stat.
22482         (Link): Mention resulting library dependency.
22483         * modules/utimecmp (Link): Likewise.
22484         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22485         (Makefile.am): Pick up library dependency.
22486         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22487         definition.
22488         * tests/test-sys_stat.c: Test the definitions.
22489         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22490         * NEWS: Document library dependency.
22491
22492         utimecmp: support symlink timestamps
22493         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22494         hashing when possible.  Use pathconf when available.
22495         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22496         * modules/utimecmp (Depends-on): Add lstat.
22497
22498         utimens: add lutimens interface
22499         * lib/utimens.c (lutimens): New function.
22500         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22501         * lib/utimens.h (lutimens): Declare new interface.
22502         * tests/test-utimens.c (main): Enhance test.
22503         * tests/test-lutimens.h (test_lutimens): New file.
22504         * modules/utimens-tests (Files): Distribute it.
22505         (Depends-on): Add symlink.
22506         (configure.ac): Check for usleep.
22507
22508         utimens: validate futimens usage
22509         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22510         fewer syscalls on failure later on.  Avoid compiler warning on
22511         mingw.
22512         * modules/utimens (Depends-on): Add dup2.
22513
22514         utimens: add test
22515         * modules/utimens-tests: New test.
22516         * tests/test-utimens.h: New file.
22517         * tests/test-futimens.h: Likewise.
22518         * tests/test-utimens.c: Likewise.
22519
22520         doc: mention timestamp portability issues
22521         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22522         instead.
22523         * doc/posix-functions/utime.texi (utime): Likewise.
22524         * doc/posix-functions/utimes.texi (utimes): Likewise.
22525         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22526         instead.
22527         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22528         module.
22529         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22530         Mention weakness with symlink timestamps.
22531         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22532         to utimensat/futimens instead.
22533         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22534
22535         test-dup2: enhance test
22536         * tests/test-dup2.c (main): Also check AT_FDCWD.
22537
22538         test-stat-time: avoid more spurious failures
22539         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22540         xfs; and avoid race if the two timestamps cross quantization edge.
22541
22542         relocatable: prefer 'file system' over 'filesystem'
22543         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22544         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22545         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22546         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22547         * lib/relocatable.c (compute_curr_prefix): Likewise.
22548
22549 2009-10-10  Jim Meyering  <meyering@redhat.com>
22550
22551         stat-time-tests: check for the usleep function
22552         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22553
22554 2009-10-10  Bruno Haible  <bruno@clisp.org>
22555
22556         * modules/xnanosleep: Put the Link section after the Include section.
22557
22558 2009-10-09  Eric Blake  <ebb9@byu.net>
22559
22560         dup2: work around FreeBSD 6.1 bug
22561         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22562         * doc/posix-functions/dup2.texi (dup2): Document it.
22563         Reported by Nelson H. F. Beebe and Jim Meyering.
22564
22565         test-stat-time: port to buggy NFS clients
22566         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22567         (test_ctime): Also skip test if mtime and ctime are skewed.
22568
22569         maint: prefer 'file system' over 'filesystem'
22570         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22571         * doc/posix-functions/lstat.texi (lstat): Likewise.
22572         * lib/file-has-acl.c (file_has_acl): Likewise.
22573         * lib/fwriteerror.c [TEST]: Likewise.
22574         * tests/test-areadlink.h (test_areadlink): Likewise.
22575         * tests/test-areadlinkat-with-size.c (main): Likewise.
22576         * tests/test-areadlinkat.c (main): Likewise.
22577         * tests/test-canonicalize-lgpl.c (main): Likewise.
22578         * tests/test-canonicalize.c (main): Likewise.
22579         * tests/test-fstatat.c (main): Likewise.
22580         * tests/test-linkat.c (main): Likewise.
22581         * tests/test-lstat.h (test_lstat_func): Likewise.
22582         * tests/test-mkdir.h (test_mkdir): Likewise.
22583         * tests/test-readlink.h (test_readlink): Likewise.
22584         * tests/test-remove.c (main): Likewise.
22585         * tests/test-rename.h (test_rename): Likewise.
22586         * tests/test-renameat.c (main): Likewise.
22587         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22588         * tests/test-symlink.h (test_symlink): Likewise.
22589         * tests/test-symlinkat.c (main): Likewise.
22590         * tests/test-unlink.h (test_unlink_func): Likewise.
22591         * tests/test-unlinkat.c (main): Likewise.
22592
22593         maint: make realtime library usage explicit
22594         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22595         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22596         * modules/settime (Link): Likewise.
22597         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22598
22599         test-stat-time: speed up execution
22600         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22601         warning on mingw.
22602         (nap): New helper function.
22603         (prepare_test): Use it to reduce sleep time.
22604         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22605         execution.
22606         * modules/stat-time-tests (configure.ac): Check for usleep.
22607
22608 2009-10-09  Jim Meyering  <meyering@redhat.com>
22609
22610         selinux-h: always use getfilecon wrappers
22611         * lib/getfilecon.c: New file.
22612         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22613         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22614         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22615         (fgetfilecon): Provide a stub.
22616         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22617         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22618         file unconditionally.
22619         When <selinux/selinux.h> is found, arrange to use wrappers.
22620         * modules/selinux-h (Files): Add getfilecon.c.
22621         (Makefile.am): Substitute include-next-related bits
22622         into the now-always-generated selinux/selinux.h file.
22623         * doc/glibc-functions/lgetfilecon.texi: New file.
22624         * doc/glibc-functions/fgetfilecon.texi: New file.
22625         * doc/glibc-functions/getfilecon.texi: New file.
22626         * doc/glibc-functions/getfilecon-desc.texi: New file.
22627         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22628         which to pull in the new files.
22629         * MODULES.html.sh (Misc): Add selinux-h.
22630
22631 2009-10-08  Jim Meyering  <meyering@redhat.com>
22632
22633         unistd: fix comment typo
22634         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22635
22636 2009-10-08  Eric Blake  <ebb9@byu.net>
22637
22638         areadlink: use SIZE_MAX consistently
22639         * modules/areadlink (Depends-on): Add stdint.
22640         * modules/areadlink-with-size (Depends-on): Likewise.
22641         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22642         gives NULL; drop sys/types, since unistd gives size_t; and add
22643         stdint for SIZE_MAX.
22644         (SIZE_MAX): Rely on headers.
22645         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22646         and add stdint.
22647         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22648         (SIZE_MAX): Likewise.
22649         (INITIAL_BUF_SIZE): Turn into enum.
22650         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22651
22652 2009-10-08  Jim Meyering  <meyering@redhat.com>
22653
22654         areadlinkat: avoid compilation failure
22655         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22656         Fix typo in comment.
22657
22658 2009-10-07  Eric Blake  <ebb9@byu.net>
22659
22660         areadlinkat-with-size: new module
22661         * modules/areadlinkat-with-size: New module.
22662         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22663         * lib/areadlink.h (areadlinkat): Declare it.
22664         * MODULES.html.sh (File system functions): Mention it.
22665         * modules/areadlinkat-with-size-tests: New test.
22666         * tests/test-areadlinkat-with-size.c: New file.
22667
22668         xreadlinkat: new module
22669         * modules/xreadlinkat: New module.
22670         * lib/xreadlinkat.c (xreadlinkat): New file.
22671         * lib/xreadlink.h (xreadlinkat): Declare it.
22672         * MODULES.html.sh (File system functions): Mention it.
22673
22674         areadlinkat: new module
22675         * lib/at-func.c (FUNC_FAIL): New define.
22676         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22677         * modules/areadlinkat: New module.
22678         * lib/linkat.c (areadlinkat): Move...
22679         * lib/areadlinkat.c (areadlinkat): ...to new file.
22680         * lib/areadlink.h (areadlinkat): Declare it.
22681         * modules/linkat (Depends-on): Add areadlinkat.
22682         * MODULES.html.sh (File system functions): Mention it.
22683         * modules/areadlinkat-tests: New test.
22684         * tests/test-areadlinkat.c: New file.
22685
22686         areadlink, areadlink-with-size: add tests
22687         * modules/areadlink-tests: New test.
22688         * modules/areadlink-with-size-tests: Likewise.
22689         * tests/test-areadlink.h: New file.
22690         * tests/test-areadlink.c: Likewise.
22691         * tests/test-areadlink-with-size.c: Likewise.
22692
22693         maint: minor cleanups
22694         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22695         _UNUSED_PARAMETER_ instead.
22696         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22697         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22698         * modules/linkat-tests (Files): Distribute test-link.h.
22699
22700         openat, utimens: whitespace cleanup
22701         * lib/openat.c: Prefer space throughout, rather than mix of 8
22702         spaces vs. tabs.
22703         * lib/at-func.c: Likewise.
22704         * lib/utimens.c: Likewise.
22705
22706         openat: avoid using wrong fd
22707         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22708         working directory chooses same fd.
22709         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22710
22711         mkdir, mkdirat: fix cygwin 1.5.x bug
22712         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22713         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22714         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22715         bug.
22716         (gl_PREREQ_MKDIR): Delete unused macro.
22717         * modules/mkdir (Files): Track file rename.
22718         (configure.ac): Update macro name.
22719         * modules/openat (Depends-on): Add mkdir.
22720         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22721
22722         mkdir, mkdirat: add tests
22723         * modules/mkdir-tests: New test.
22724         * tests/test-mkdir.h: New file.
22725         * tests/test-mkdir.c: Likewise.
22726         * tests/test-mkdirat.c: Likewise.
22727         * modules/openat-tests (Files): Add new files.
22728         (Makefile.am): Run new test.
22729
22730 2009-10-06  Eric Blake  <ebb9@byu.net>
22731
22732         doc: tweak *at function documentation
22733         * doc/posix-functions/faccessat.texi (faccessat): Mention
22734         known issue with replacement.
22735         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22736         * doc/posix-functions/linkat.texi (linkat): Likewise.
22737         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22738         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22739         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22740         * doc/posix-functions/renameat.texi (renameat): Likewise.
22741         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22742
22743         openat: fix GNU/Hurd bug in unlinkat
22744         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22745         broken.
22746         * doc/posix-functions/unlink.texi (unlink): Document this.
22747         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22748
22749         fdopendir: fix GNU/Hurd bug
22750         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22751         allowing non-directory fds.
22752         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22753         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22754         * modules/dirent (Makefile.am): Substitute it.
22755         * lib/dirent.in.h (fdopendir): Declare replacement.
22756         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22757         * tests/test-fdopendir.c (main): Test something other than
22758         /dev/null, since on Hurd that behaves like a directory.
22759
22760         test-symlink: port to GNU/Hurd
22761         * tests/test-symlink.h (test_symlink): Relax expected errno.
22762
22763         doc: tweak more cygwin information
22764         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22765         now compatible with glibc.
22766         * doc/posix-functions/getopt.texi (getopt): Likewise.
22767
22768         getopt-gnu: add another test
22769         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22770         guarantee behavior relied on by m4.
22771         * tests/test-getopt.c (main): Use it.
22772         * modules/getopt-posix-tests (Depends-on): Add setenv.
22773         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22774
22775         getopt: fix compilation on darwin
22776         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22777         include.
22778         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22779         Reported by Ludovic Courtès.
22780
22781 2009-10-06  Bruno Haible  <bruno@clisp.org>
22782
22783         * modules/size_max (Description): Discourage its use.
22784         Reported by Simon Josefsson.
22785
22786 2009-10-06  Jim Meyering  <meyering@redhat.com>
22787
22788         linkat: avoid compilation failure
22789         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22790
22791 2009-10-05  Eric Blake  <ebb9@byu.net>
22792
22793         linkat: support Linux 2.6.17
22794         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22795         linkat on Linux, but allow cache variable override.
22796         * lib/linkat.c (rpl_linkat): Define override.
22797         * modules/linkat (Depends-on): Add symlinkat.
22798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22799         * modules/unistd (Makefile.am): Substitute it.
22800         * lib/unistd.in.h (linkat): Declare replacement.
22801         Reported by Pádraig Brady.
22802
22803         quotearg: port test to systems with C.UTF-8 locale
22804         * tests/test-quotearg.c (struct result_strings): Add another
22805         member, differentiating between C.ASCII and C.UTF-8 handling.
22806         (compare_strings): Add parameter.
22807         (main): Adjust all callers.
22808
22809         getopt: avoid clash with FreeBSD _getopt_internal
22810         * lib/getopt.in.h (_getopt_internal): Override the name.
22811         * lib/getopt_int.h (includes): Pick up any overrides.
22812         Reported by Reuben Thomas.
22813
22814         hash: allow C89 compilation
22815         * lib/hash.c (check_tuning): Move declaration before statement.
22816         Reported by Reuben Thomas.
22817
22818 2009-10-05  Karl Berry  <karl@gnu.org>
22819
22820         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22821
22822 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22823             Bruno Haible  <bruno@clisp.org>
22824
22825         * lib/uname.c (uname): Use a table-driven algorithm to compute
22826         Windows NT versions.
22827
22828 2009-10-04  Bruno Haible  <bruno@clisp.org>
22829
22830         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22831         program_invocation_short_name.
22832         * modules/progname (configure.ac): Test for presence of
22833         program_invocation_short_name.
22834         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22835
22836 2009-10-04  Bruno Haible  <bruno@clisp.org>
22837
22838         * lib/progname.c (set_program_name): Fix comment.
22839         Reported by Jim Meyering.
22840
22841 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22842             Bruno Haible  <bruno@clisp.org>
22843
22844         * lib/uname.c: Include <string.h>.
22845         (uname): Do only one call to GetVersionEx in the common case.
22846
22847 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22848             Bruno Haible  <bruno@clisp.org>
22849
22850         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22851         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22852         (uname): Add support for Windows CE and various non-x86 CPU types.
22853
22854 2009-10-03  Bruno Haible  <bruno@clisp.org>
22855
22856         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22857         invocation to tests/configure.ac.
22858         Reported by Ian Beckwith <ianb@erislabs.net>.
22859
22860 2009-10-02  Eric Blake  <ebb9@byu.net>
22861
22862         fchdir: avoid compiler warning
22863         * lib/fchdir.c (canonicalize_file_name)
22864         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22865
22866         test-open: support mingw errno values
22867         * tests/test-open.h (test_open): Relax test.
22868         * tests/test-fopen.h (test_fopen): Likewise.
22869         * tests/test-openat-safer.c (main): Likewise.
22870
22871         open: fix opening directory on mingw
22872         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22873
22874         test-open: on GNU/Hurd, /dev/null is a directory
22875         * tests/test-fopen.h (main): Rename...
22876         (test_fopen): ...to this.  Use a guaranteed non-directory when
22877         confirming open behavior on trailing slash.
22878         * tests/test-openat-safer.c (main): Likewise.
22879         * tests/test-open.h (main): Likewise....
22880         (test_open): ...to this.
22881         * tests/test-fopen.c (main): Adjust caller.
22882         * tests/test-fopen-safer.c (main): Likewise.
22883         * tests/test-open.c (main): Likewise.
22884         * tests/test-fcntl-safer.c (main): Likewise.
22885         Reported by Samuel Thibault.
22886
22887         rename, fchdir: don't ignore chdir failure
22888         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22889         * lib/rename.c (rpl_rename) [W32]: Likewise.
22890         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22891         an empty destination directory if source cannot be renamed,
22892         although there is still possibility for failure.
22893         * doc/posix-functions/rename.texi (rename): Document the race.
22894         Reported by Jim Meyering.
22895
22896         maint: cleanup whitespace in recent commits
22897         * lib/rename.c (rpl_rename): Remove tabs.
22898         * tests/test-link.h (test_link): Likewise.
22899         * lib/fchdir.c (get_name): Likewise.
22900         Reported by Jim Meyering.
22901
22902 2009-10-02  Ben Pfaff  <blp@gnu.org>
22903
22904         relocatable-prog-wrapper: Add missing dependency on
22905         double-slash-root.
22906         * modules/relocatable-prog-wrapper: Add dependency.
22907         Reported by Ian Beckwith <ianb@erislabs.net>.
22908
22909 2009-10-02  Eric Blake  <ebb9@byu.net>
22910
22911         renameat: fix Solaris bugs
22912         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22913         needed fixing.
22914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22915         * modules/stdio (Makefile.am): Substitute it.
22916         * lib/stdio.in.h (renameat): Declare replacement.
22917         * lib/renameat.c (rpl_renameat): Implement fix.
22918
22919         renameat: new module
22920         * modules/renameat: New file.
22921         * lib/renameat.c (renameat): Likewise.
22922         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22924         * modules/stdio (Makefile.am): Substitute them.
22925         * lib/stdio.in.h (renameat): Declare it.
22926         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22927         * doc/posix-functions/renameat.texi (renameat): Likewise.
22928         * modules/renameat-tests: New test.
22929         * tests/test-renameat.c: Likewise.
22930
22931         rename: fix mingw bugs
22932         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22933         directory overwrite bugs.
22934
22935         rename: fix another cygwin 1.5 bug
22936         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22937         checks.
22938         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22939         unnecessary cygwin workarounds.  Also work around bug with moving
22940         full directory onto an empty one.
22941         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22942
22943         rename-dest-slash: merge into rename module
22944         * modules/rename-dest-slash (Status): Mark obsolete.
22945         (Depends-on): Add rename.
22946         (Files): Let rename do it all.
22947         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22948         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22949         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22950         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22951         * lib/rename.c (rpl_rename): Update comments.
22952
22953         rename: fix cygwin 1.5.x bugs
22954         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22955         * lib/rename.c (rpl_rename): Work around them.
22956         * modules/rename (Depends-on): Add same-inode.
22957
22958         rename: fix Solaris 10 bug
22959         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22960         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22961         was the only bug.
22962
22963         rename: fix Solaris 9 bug
22964         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22965         on non-directory.  Avoid calling exit.
22966         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22967         strdup.
22968         * modules/rename-tests (Depends-on): Drop lstat.
22969         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22970         (gl_PREREQ_RENAME): Delete unused macro.
22971
22972         rename-dest-slash: fix NetBSD bug
22973         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22974         links.
22975         * modules/rename-dest-slash (Depends-on): Add same-inode.
22976
22977         rename-tests: new test, exposes several platform bugs
22978         * modules/rename-tests: New file.
22979         * tests/test-rename.h: Likewise.
22980         * tests/test-rename.c: Likewise.
22981         * doc/posix-functions/rename.texi (rename): Improve documentation,
22982         including bugs that will eventually be fixed in gnulib.
22983
22984 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22985
22986         * lib/uname.c: Include <stdlib.h>
22987         (uname): Assume version info is available.
22988
22989 2009-10-02  Jim Meyering  <meyering@redhat.com>
22990
22991         gnu-web-doc-update: correct --help output
22992         * build-aux/gnu-web-doc-update: Make --help output relevant.
22993
22994         gnu-web-doc-update: add standard options
22995         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22996
22997         gnu-web-doc-update: New module.
22998         Use this script to automatically update the on-line web documentation
22999         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23000         * modules/gnu-web-doc-update: New file, from coreutils.
23001         * build-aux/gnu-web-doc-update: New script.
23002
23003 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23004
23005         link: LoadLibrary is not needed.
23006         * lib/link.c: Use GetModuleHandle.
23007
23008 2009-10-01  Eric Blake  <ebb9@byu.net>
23009
23010         getopt: bump serial number
23011         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23012         change.
23013
23014         tests: tighten link, rmdir, and remove tests
23015         * tests/test-link.h (includes): No need to use <config.h> here.
23016         Clean up if directory hard link was created, otherwise test for
23017         trailing '.'.
23018         * tests/test-linkat.c (main): Simplify.
23019         * tests/test-remove.c (main): Enhance test for trailing '.'.
23020         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23021
23022 2009-10-01  Jim Meyering  <meyering@redhat.com>
23023
23024         maint.mk: requiring "make major" was annoying, for a "minor" release.
23025         What is intended is "stable", to contrast with alpha and beta,
23026         so require "make stable", not "make major".
23027         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23028         (get_tool_versions): Likewise.
23029         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23030
23031 2009-09-30  Ben Pfaff  <blp@gnu.org>
23032
23033         Fix broken build of replacement for Windows tmpfile().
23034         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23035         flags argument added along with the 'mkostemp' module.
23036
23037 2009-09-28  Bruno Haible  <bruno@clisp.org>
23038
23039         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23040         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23041         to 'remove_elt'.
23042         (gl_list_remove): Update.
23043         * lib/gl_list.c (gl_list_remove): Update.
23044         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23045         to 'remove_elt'.
23046         (gl_oset_remove): Update.
23047         * lib/gl_list.c (gl_oset_remove): Update.
23048         Reported by Eric Blake.
23049
23050 2009-09-28  Eric Blake  <ebb9@byu.net>
23051
23052         doc: mention yet more cygwin 1.7 status
23053         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23054         cygwin.
23055         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23056         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23057
23058         argp: fix test failure
23059         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23060         that are not upper-case.  Pass correct range to tolower.
23061
23062 2009-09-27  Jim Meyering  <meyering@redhat.com>
23063
23064         test-yesno: work around sparc-dash here-document infelicity
23065         Without this change, the literal \177 byte in a here document
23066         would make dash 0.5.5.1-3 access uninitialized memory.
23067         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23068         Instead, use a marker, "@", and filter through tr to create the desired
23069         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23070
23071 2009-09-27  Bruno Haible  <bruno@clisp.org>
23072
23073         Disable untested support for new flavours of ACLs on AIX.
23074         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23075         progress.
23076         * lib/set-mode-acl.c (qset_acl): Likewise.
23077
23078 2008-12-07  Bruno Haible  <bruno@clisp.org>
23079
23080         Add support for new flavours of ACLs on AIX. (Untested.)
23081         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23082         (file_has_acl): Add support for newer AIX.
23083         * lib/set-mode-acl.c (qset_acl): Likewise.
23084         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23085         Rainer Tammer <tammer@tammer.net>.
23086
23087 2009-09-26  Eric Blake  <ebb9@byu.net>
23088
23089         argp: fix compilation of getopt
23090         * lib/getopt.in.h (includes): Use different guard than glibc.
23091         Reported by Sergey Poznyakoff.
23092
23093         doc: mention more cygwin 1.7 status
23094         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23095         bug.
23096         * doc/posix-functions/execl.texi (execl): Likewise.
23097         * doc/posix-functions/execle.texi (execle): Likewise.
23098         * doc/posix-functions/execlp.texi (execlp): Likewise.
23099         * doc/posix-functions/execv.texi (execv): Likewise.
23100         * doc/posix-functions/execve.texi (execve): Likewise.
23101         * doc/posix-functions/execvp.texi (execvp): Likewise.
23102         * doc/glibc-functions/canonicalize_file_name.texi
23103         (canonicalize_file_name): Cygwin 1.7 now provides this.
23104         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23105         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23106         on AT_SYMLINK_NOFOLLOW.
23107
23108 2009-09-24  Eric Blake  <ebb9@byu.net>
23109
23110         test-linkat: make test more robust
23111         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23112
23113         getopt: fix inclusion guards for cygwin
23114         * modules/getopt-posix (Depends-on): Add include-next.
23115         (Makefile.am): Substitute more items in replacement header.
23116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23117         <getopt.h>.
23118         * lib/getopt.in.h (includes): Use split inclusion guard, and
23119         prefer <getopt.h> over include <unistd.h> when one is present.
23120         (option): Also override name of 'struct option'.
23121
23122         same-inode: revert prior change; it is not yet ready
23123         * NEWS: Undo mention of this change.
23124         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23125         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23126         * lib/cycle-check.c (cycle_check): Likewise.
23127         * lib/same.c (same_name): Likewise.
23128         * lib/at-func2.c (at_func2): Likewise.
23129
23130 2009-09-23  Eric Blake  <ebb9@byu.net>
23131
23132         linkat: new module
23133         * modules/linkat: New file.
23134         * lib/at-func2.c (at_func2): Likewise.
23135         * lib/linkat.c (linkat): Likewise.
23136         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23137         * lib/openat-priv.h (at_func2): Add declaration.
23138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23139         * modules/unistd (Makefile.am): Substitute them.
23140         * lib/unistd.in.h (linkat): Declare it.
23141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23142         * doc/posix-functions/linkat.texi (linkat): Likewise.
23143         * doc/posix-functions/link.texi (link): Tweak wording.
23144         * tests/test-link.c (main): Move guts...
23145         * tests/test-link.h (test_link): ...into new file.
23146         * modules/linkat-tests: New test.
23147         * tests/test-linkat.c: Likewise.
23148         * modules/link-tests (Files): Ship new file.
23149         (Depends-on): Add stdbool.
23150
23151         dirname: add library-safe mdir_name
23152         * lib/dirname.h (mdir_name): New prototype.
23153         * lib/dirname.c (dir_name): Move guts...
23154         (mdir_name): ...to new function that avoids xalloc_die.
23155
23156         fchdir: another mingw fix
23157         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23158         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23159         on mingw (where it has not yet been ported), and make it optional
23160         elsewhere.
23161         (_gl_register_fd): Use it.
23162
23163         same-inode: make SAME_INODE tri-state, to port to mingw
23164         * NEWS: Mention this change.
23165         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23166         st_ino always being 0.
23167         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23168         * lib/cycle-check.c (cycle_check): Likewise.
23169         * lib/same.c (same_name): Likewise.
23170
23171         lstat: avoid mingw compilation error
23172         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23173         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23174         lstat ourselves.
23175         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23176         was adequate.
23177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23178         the checks for lstat.
23179         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23180
23181         link: fix test failure on Solaris 9
23182         * lib/link.c (rpl_link): Don't assume link will catch bogus
23183         trailing slash on source.
23184
23185         test-symlinkat: enhance test
23186         * tests/test-readlink.c (main): Move guts...
23187         * tests/test-readlink.h (test_readlink): ...into new file.
23188         * tests/test-symlink.c (main): Move guts...
23189         * tests/test-symlink.h (test_symlink): ...into new file.
23190         * tests/test-symlinkat.c (main): Use new files for further
23191         coverage.
23192         (do_symlink, do_readlink): New helper functions.
23193         * modules/symlink-tests (Files): Ship new file.
23194         (Depends-on): Add stdbool.
23195         * modules/readlink-tests (Files): Ship new file.
23196         (Depends-on): Add stdbool.
23197         * modules/symlinkat-tests (Files): Use new files.
23198
23199 2009-09-23  Eric Blake  <ebb9@byu.net>
23200
23201         readlink: document portability issue with symlink length
23202         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23203         systems have bogus st_size on symlinks, and mention the
23204         areadlink-with-size module.
23205         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23206         * doc/posix-functions/readlink.texi (readlink): Mention the
23207         areadlink module, and ERANGE failure.
23208         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23209         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23210
23211         readlink: fix Solaris 9 bug with trailing slash
23212         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23213         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23214         * doc/posix-functions/readlink.texi (readlink): Document this.
23215         * modules/readlink-tests: New test.
23216         * tests/test-readlink.c: Likewise.
23217
23218         readlink: fix cygwin 1.5.x bug with return type
23219         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23220         * lib/unistd.in.h (readlink): Use ssize_t.
23221         * lib/readlink.c (readlink): Likewise.
23222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23223         * modules/unistd (Makefile.am): Substitute it.
23224         * lib/unistd.in.h (readlink): Declare replacement.
23225         * doc/posix-functions/readlink.texi (readlink): Document this.
23226
23227         symlink: use throughout gnulib
23228         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23229         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23230         symlink is not used.
23231         * modules/symlinkat (Depends-on): Add symlink.
23232         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23233         * modules/canonicalize-tests (Depends-on): Likewise.
23234         * modules/lstat-tests (Depends-on): Likewise.
23235         * modules/openat-tests (Depends-on): Likewise.
23236         * modules/remove-tests (Depends-on): Likewise.
23237         * modules/rmdir-tests (Depends-on): Likewise.
23238         * modules/unlink-tests (Depends-on): Likewise.
23239         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23240         * tests/test-canonicalize.c (symlink): Likewise.
23241         * tests/test-fstatat.c (symlink): Likewise.
23242         * tests/test-lstat.c (symlink): Likewise.
23243         * tests/test-remove.c (symlink): Likewise.
23244         * tests/test-rmdir.c (symlink): Likewise.
23245         * tests/test-unlink.c (symlink): Likewise.
23246         * tests/test-unlinkat.c (symlink): Likewise.
23247
23248         symlink: new module, for Solaris 9 bug
23249         * modules/symlink: New file.
23250         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23251         * lib/symlink.c: Likewise.
23252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23253         * modules/unistd (Makefile.am): Substitute them.
23254         * lib/unistd.in.h (symlink): Declare replacement.
23255         * MODULES.html.sh (File system functions): Mention it.
23256         * doc/posix-functions/symlink.texi (symlink): Likewise.
23257         * modules/symlink-tests: New test.
23258         * tests/test-symlink.c: Likewise.
23259
23260 2009-09-23  Bruno Haible  <bruno@clisp.org>
23261
23262         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23263         when needed.
23264         Test case: gnulib-tool --import --with-tests atexit inttypes.
23265         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23266
23267 2009-09-23  Bruno Haible  <bruno@clisp.org>
23268
23269         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23270         subcommand, not in a subshell.
23271
23272 2009-09-22  Eric Blake  <ebb9@byu.net>
23273
23274         unistd: sort replacement declarations
23275         * lib/unistd.in.h: Sort declarations.
23276
23277         open, openat: minor optimization
23278         * lib/open.c (open): If open succeeded, len is non-zero.
23279         * lib/openat.c (rpl_openat): Likewise.
23280
23281         link-follow: ensure correct result
23282         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23283         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23284         distinguish between possible failures.
23285
23286 2009-09-21  Eric Blake  <ebb9@byu.net>
23287
23288         fts: avoid compiler warning
23289         * lib/fts.c (dirent_inode_sort_may_be_useful)
23290         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23291
23292 2009-09-19  Bruno Haible  <bruno@clisp.org>
23293
23294         * lib/progreloc.c (canonicalize_file_name): New declaration.
23295
23296 2009-09-19  Eric Blake  <ebb9@byu.net>
23297
23298         link: fix quoting
23299         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23300
23301         openat: fix openat bugs on Solaris 9
23302         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23303         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23304         * modules/openat (Depends-on): Add open.
23305         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23306         * modules/fcntl-h (Makefile.am): Substitute it.
23307         * lib/fcntl.in.h (openat): Declare replacement.
23308         * doc/posix-functions/openat.texi (openat): Document this.
23309
23310         openat: move fstatat and unlinkat into correct files
23311         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23312         compiled.
23313         * lib/openat.c (fstatat, unlinkat): Move...
23314         * lib/fstatat.c (fstatat): ...into correct files.
23315         * lib/unlinkat.c (unlinkat): Likewise.
23316
23317         openat: fix unlinkat bugs on Solaris 9
23318         * lib/unlinkat.c (unlinkat): New file.
23319         * modules/openat (Depends-on): Add unlink.
23320         (Files): Distribute it.
23321         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23322         trailing slash behavior is broken.
23323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23324         * modules/unistd (Makefile.am): Substitute it.
23325         * lib/unistd.in.h (unlinkat): Declare replacement.
23326         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23327
23328         openat: fix fstatat bugs on Solaris 9
23329         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23330         stat.
23331         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23332
23333         test-unlinkat: enhance test, to expose Solaris 9 bug
23334         * tests/test-unlink.c (main): Factor guts...
23335         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23336         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23337         * tests/test-rmdir.c (main): Adjust caller.
23338         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23339         (unlinker): New helper function.
23340         (rmdirat): Enhance check.
23341         * modules/rmdir-tests (Depends-on): Add stdbool.
23342         * modules/unlink-tests (Depends-on): Likewise.
23343         (Files): Add test-unlink.h.
23344         * modules/openat-tests (Files): Likewise.
23345         (Depends-on): Add unlinkdir.
23346
23347         test-fstatat: new test, to expose Solaris 9 bugs
23348         * tests/test-stat.c (main): Factor guts...
23349         * tests/test-stat.h (test_stat_func): ...into new file.
23350         * tests/test-lstat.c (main): Factor guts...
23351         * tests/test-lstat.h (test_lstat_func): ...into new file.
23352         * tests/test-fstatat.c: New file.
23353         * modules/stat-tests (Files): Add test-stat.h.
23354         * modules/lstat-tests (Files): Add test-lstat.h.
23355         (Depends-on): Add stdbool.
23356         * modules/openat-tests (Depends-on): Add pathmax.
23357         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23358         (Makefile.am): Run new test.
23359
23360         remove: new module, for mingw and Solaris 9 bugs
23361         * modules/remove: New file.
23362         * lib/remove.c: Likewise.
23363         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23365         * modules/stdio (Makefile.am): Use them.
23366         * lib/stdio.in.h (remove): Declare replacement.
23367         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23368         * doc/posix-functions/remove.texi (remove): Likewise.
23369         * modules/remove-tests: New test.
23370         * tests/test-remove.c: Likewise.
23371
23372         unlink: new module, for Solaris 9 bug
23373         * modules/unlink: New file.
23374         * lib/unlink.c: Likewise.
23375         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23377         * modules/unistd (Makefile.am): Use them.
23378         * lib/unistd.in.h (stat): Declare replacement.
23379         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23380         * doc/posix-functions/unlink.texi (unlink): Likewise.
23381         * modules/unlink-tests: New test.
23382         * tests/test-unlink.c: Likewise.
23383
23384         lstat: fix Solaris 9 bug
23385         * lib/lstat.c (lstat): Also check for trailing slash on
23386         non-symlink, non-directories.  Use stat module to simplify logic.
23387         * doc/posix-functions/lstat.texi (lstat): Document it.
23388         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23389         (configure.ac): Check for symlink.
23390         * tests/test-lstat.c (main): Add more tests.
23391
23392         stat: add as dependency to other modules
23393         * modules/chown (Depends-on): Add stat.
23394         * modules/euidaccess (Depends-on): Likewise.
23395         * modules/fchdir (Depends-on): Likewise.
23396         * modules/isdir (Depends-on): Likewise.
23397         * modules/link (Depends-on): Likewise.
23398         * modules/lstat (Depends-on): Likewise.
23399         * modules/mkdir-p (Depends-on): Likewise.
23400         * modules/modechange (Depends-on): Likewise.
23401         * modules/open (Depends-on): Likewise.
23402         * modules/readlink (Depends-on): Likewise.
23403         * modules/same (Depends-on): Likewise.
23404
23405         stat: fix Solaris 9 bug
23406         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23407         slash.
23408         * lib/stat.c (rpl_stat): Work around it.
23409         * doc/posix-functions/stat.texi (stat): Update documentation.
23410
23411         stat: new module, for mingw bug
23412         * modules/stat: New file.
23413         * lib/stat.c: Likewise.
23414         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23416         * modules/sys_stat (Makefile.am): Use them.
23417         * lib/sys_stat.in.h (stat): Declare replacement.
23418         * lib/openat.c (fstatat): Deal with lstat and stat being function
23419         macros.
23420         * modules/openat (Depends-on): Add inline.
23421         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23422         * doc/posix-functions/stat.texi (stat): Likewise.
23423         * modules/stat-tests: New test.
23424         * tests/test-stat.c: Likewise.
23425
23426 2009-09-19  Jim Meyering  <meyering@redhat.com>
23427
23428         syntax-check: detect unnecessary inclusion of canonicalize.h
23429         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23430
23431 2009-09-19  Eric Blake  <ebb9@byu.net>
23432
23433         canonicalize-lgpl: adjust clients to use correct header
23434         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23435         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23436         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23437         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23438         * lib/progreloc.c (includes): Likewise.
23439
23440 2009-09-19  Jim Meyering  <meyering@redhat.com>
23441
23442         test-posixtm.c: correct a comment
23443         * tests/test-posixtm.c: Correct first-line comment.
23444         Spotted by Eric Blake.
23445
23446 2009-09-16  Jim Meyering  <meyering@redhat.com>
23447
23448         posixtm-tests: make T const-correct; add a test case
23449         * tests/test-posixtm.c (T): Declare const.
23450         Add a test for -(2^31+1).
23451         Remove useless can-succeed-only-in-2002 test.
23452
23453         posixtm-tests: adjust the sole failing test
23454         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23455         expected output matches what mktime now produces.  Cross-checked via
23456         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23457
23458         posixtm: move #ifdef'd tests into a new module
23459         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23460         * tests/test-posixtm.c: ... this new file.
23461         * modules/posixtm-tests: New module.
23462
23463 2009-09-19  Eric Blake  <ebb9@byu.net>
23464
23465         openat: simplify use of at-func.c
23466         * lib/at-func.c (includes): Include prerequisites here, to
23467         simplify requirements on client files.
23468         * lib/openat-priv.h: Add double-inclusion guard.
23469         * lib/faccessat.c (includes): Simplify.
23470         * lib/fchmodat.c (includes): Likewise.
23471         * lib/fchownat.c (includes): Likewise.
23472         * lib/mkdirat.c (includes): Likewise.
23473         * lib/mkfifoat.c (includes): Likewise.
23474         * lib/symlinkat.c (includes): Likewise.
23475
23476         openat: allow return of fd 0
23477         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23478         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23479         unistd-safer.
23480         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23481         <fcntl.h>; this module does not leak fds.
23482         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23483         must be allowed to return 0, leaving openat_safer to add the
23484         safety.
23485         (openat_permissive): Avoid writing to just-opened fd 2 if
23486         restoring the current directory fails.
23487         * lib/openat-die.c (openat_restore_fail): Add comment.
23488         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23489         (save_cwd): Guarantee safe fd, but without use of open_safer.
23490         * tests/test-openat.c: New test.
23491         * modules/openat-tests (Files, Makefile.am): Distribute and build
23492         new file.
23493
23494         relocatable-prog-wrapper: fix build
23495         * modules/relocatable-prog-wrapper (Files): Update name of
23496         canonicalize m4 file, broken on 2009-09-17.
23497         Reported by emad hajjar <aleppos@hotmail.com>.
23498
23499 2009-09-19  Bruno Haible  <bruno@clisp.org>
23500
23501         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23502         * lib/safe-alloc.c: Likewise.
23503         Reported by Ian Beckwith <ianb@erislabs.net>.
23504
23505 2009-09-18  Bruno Haible  <bruno@clisp.org>
23506
23507         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23508         Reported by <erobles@sensacd.com.mx>.
23509
23510 2009-09-17  Eric Blake  <ebb9@byu.net>
23511
23512         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23513         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23514         slashes when checking if last component is missing.
23515         * tests/test-canonicalize.c (main): Test this.
23516
23517         canonicalize, canonicalize-lgpl: honor // if distinct from /
23518         * modules/canonicalize (Files): Add double-slash-root.m4.
23519         * modules/canonicalize-lgpl (Files): Likewise.
23520         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23521         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23522         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23523         fallback definition.
23524         (canonicalize_filename_mode): Use it to protect //.
23525         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23526         (__realpath): Likewise.
23527         * tests/test-canonicalize.c (main): Test this.
23528         * tests/test-canonicalize-lgpl.c (main): Likewise.
23529         * modules/canonicalize-tests (Depends-on): Add same-inode.
23530         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23531
23532         canonicalize-lgpl: fix glibc bug with trailing slash
23533         * m4/canonicalize-lgpl.m4: Move contents...
23534         * m4/canonicalize.m4: ...here.
23535         (gl_CANONICALIZE_LGPL): Factor realpath check...
23536         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23537         glibc 2.3.5 bug, fixed 2005-04-27.
23538         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23539         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23540         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23541         * modules/canonicalize-lgpl (Files): Manage file rename.
23542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23543         * modules/stdlib (Makefile.am): Substitute witness.
23544         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23545         is needed.
23546         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23547         replacement is required.
23548         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23549         * doc/glibc-functions/canonicalize_file_name.texi
23550         (canonicalize_file_name): Document this.
23551         * doc/posix-functions/realpath.texi (realpath): Likewise.
23552
23553         canonicalize-lgpl: reject non-directory with trailing slash
23554         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23555         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23556         catches failures in glibc 2.3.5.
23557         * tests/test-canonicalize.c (main): Likewise.
23558
23559         canonicalize-lgpl: use native realpath if it works
23560         * lib/canonicalize-lgpl.c (realpath): Guard with
23561         FUNC_REALPATH_WORKS.
23562         * lib/stdlib.in.h (realpath): Make declaration optional based on
23563         HAVE_REALPATH.
23564         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23565         native realpath works.
23566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23567         * modules/stdlib (Makefile.am): Substitute witness.
23568
23569         canonicalize, canonicalize-lgpl: use <stdlib.h>
23570         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23571         (Include): Mention <stdlib.h>.
23572         (configure.ac): Mention functions we provide.
23573         * modules/canonicalize (configure.ac): Likewise.
23574         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23575         realpath if canonicalize_file_name is missing.
23576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23577         * modules/stdlib (Makefile.am): Substitute witnesses.
23578         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23579         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23580         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23581         * NEWS: Document this.
23582         * doc/glibc-functions/canonicalize_file_name.texi
23583         (canonicalize_file_name): Likewise.
23584         * doc/posix-functions/realpath.texi (realpath): Likewise.
23585         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23586
23587         test-canonicalize: consolidate into single C program
23588         * tests/test-canonicalize.sh: Delete; move setup into...
23589         * tests/test-canonicalize.c (main): ...the program, making it
23590         easier to run in debugger.  Add some tests.
23591         * modules/canonicalize-tests (Files): Remove unused file.
23592         (Depends-on): Add progname.
23593         (configure.ac, Makefile.am): Simplify.
23594
23595         test-canonicalize-lgpl: consolidate into single C program
23596         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23597         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23598         easier to run in debugger.  Add some tests.
23599         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23600         (configure.ac, Makefile.am): Simplify.
23601
23602         canonicalize: avoid resolvepath
23603         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23604         unnecessary checks.
23605         * lib/canonicalize.c (includes): Simplify.
23606         (canonicalize_file_name): Drop resolvepath implementation.
23607         * modules/canonicalize (Depends-on): Drop filenamecat.
23608
23609         canonicalize: don't lose errno
23610         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23611         over calls to free.
23612
23613         canonicalize: simplify errno handling
23614         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23615         assignment.
23616
23617         canonicalize, canonicalize-lgpl: update module dependencies
23618         * modules/canonicalize (Depends-on): Add extensions, lstat,
23619         pathmax, stdlib.
23620         (Files): Drop pathmax.h.
23621         (configure.ac): Adjust macro name.
23622         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23623         lstat, stdlib, sys_stat.
23624         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23625         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23626         extensions.
23627         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23628         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23629         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23630         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23631         declaration, if available.
23632         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23633         we can rely on the readlink module.
23634         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23635         (includes): Use <unistd.h> unconditionally.
23636
23637 2009-09-17  Eric Blake  <ebb9@byu.net>
23638
23639         maint: make Include sections of modules consistent
23640         * modules/alloca: Use only header name; no need to list #include.
23641         * modules/alloca-opt: Likewise.
23642         * modules/arpa_inet: Likewise.
23643         * modules/canon-host: Likewise.
23644         * modules/configmake: Likewise.
23645         * modules/dirent: Likewise.
23646         * modules/eealloc: Likewise.
23647         * modules/environ: Likewise.
23648         * modules/fchdir: Likewise.
23649         * modules/fcntl: Likewise.
23650         * modules/fcntl-h: Likewise.
23651         * modules/gethrxtime: Likewise.
23652         * modules/gettime: Likewise.
23653         * modules/ignore-value: Likewise.
23654         * modules/inet_ntop: Likewise.
23655         * modules/inet_pton: Likewise.
23656         * modules/inttypes: Likewise.
23657         * modules/isnand-nolibm: Likewise.
23658         * modules/isnanf-nolibm: Likewise.
23659         * modules/mbchar: Likewise.
23660         * modules/mbfile: Likewise.
23661         * modules/mbiter: Likewise.
23662         * modules/mbuiter: Likewise.
23663         * modules/netdb: Likewise.
23664         * modules/netinet_in: Likewise.
23665         * modules/nproc: Likewise.
23666         * modules/pagealign_alloc: Likewise.
23667         * modules/poll: Likewise.
23668         * modules/printf-frexp: Likewise.
23669         * modules/pthread: Likewise.
23670         * modules/putenv: Likewise.
23671         * modules/random_r: Likewise.
23672         * modules/relocatable-prog: Likewise.
23673         * modules/search: Likewise.
23674         * modules/select: Likewise.
23675         * modules/selinux-h: Likewise.
23676         * modules/settime: Likewise.
23677         * modules/signal: Likewise.
23678         * modules/size_max: Likewise.
23679         * modules/socklen: Likewise.
23680         * modules/ssize_t: Likewise.
23681         * modules/stdarg: Likewise.
23682         * modules/stdbool: Likewise.
23683         * modules/stddef: Likewise.
23684         * modules/stdint: Likewise.
23685         * modules/stdio: Likewise.
23686         * modules/stdlib: Likewise.
23687         * modules/string: Likewise.
23688         * modules/strings: Likewise.
23689         * modules/sys_file: Likewise.
23690         * modules/sys_ioctl: Likewise.
23691         * modules/sys_select: Likewise.
23692         * modules/sys_socket: Likewise.
23693         * modules/sys_stat: Likewise.
23694         * modules/sys_time: Likewise.
23695         * modules/sys_times: Likewise.
23696         * modules/sys_utsname: Likewise.
23697         * modules/sys_wait: Likewise.
23698         * modules/sysexits: Likewise.
23699         * modules/time: Likewise.
23700         * modules/times: Likewise.
23701         * modules/tmpfile: Likewise.
23702         * modules/trim: Likewise.
23703         * modules/unistd: Likewise.
23704         * modules/wchar: Likewise.
23705         * modules/wctype: Likewise.
23706
23707 2009-09-17  Bruno Haible  <bruno@clisp.org>
23708
23709         Make getdate.y compile on QNX and NetBSD 5 / i386.
23710         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23711         TIME_T_FITS_IN_LONG_INT.
23712         * lib/getdate.y (long_time_t): New type.
23713         (relative_time): Change type of 'seconds' field to long_time_t.
23714         (get_date): Update types of local variables. Check against overflow
23715         during conversion from long_time_t to time_t.
23716         Reported by Matt Kraai <kraai@ftbfs.org>
23717         and Hasso Tepper <hasso@netbsd.org>.
23718
23719 2009-09-17  Bruno Haible  <bruno@clisp.org>
23720
23721         * modules/COPYING: Update copyright years.
23722         * modules/README: Likeiwse.
23723         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23724         Reported by Ian Beckwith <ianb@erislabs.net>.
23725
23726 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23727
23728         * users.txt: Update references for gnuit package.
23729
23730 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23731
23732         * m4/getdelim.m4: Fix typo in copyright line.
23733
23734 2009-09-17  Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/atoll.c: Use the standard header with GPL copyright.
23737         * lib/argz.in.h: Likewise.
23738         * lib/glob.c: Likewise.
23739         * lib/glob-libc.h: Likewise.
23740         * lib/random_r.c: Likewise.
23741         * lib/siglist.h: Likewise.
23742         * lib/strsignal.c: Likewise.
23743         Reported by Ian Beckwith <ianb@erislabs.net>.
23744
23745 2009-09-17  Eric Blake  <ebb9@byu.net>
23746
23747         rmdir: ensure correct dependency order
23748         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23749
23750 2009-09-17  Bruno Haible  <bruno@clisp.org>
23751
23752         Disable assertion that fails on NetBSD 5 / i386.
23753         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23754         Reported by Sam Steingold <sds@gnu.org>
23755         and Hasso Tepper <hasso@netbsd.org>.
23756
23757 2009-09-16  Eric Blake  <ebb9@byu.net>
23758
23759         unlinkdir: port to mingw
23760         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23761         on which no one can unlink a directory.
23762
23763         stdlib: sort witness names
23764         * modules/stdlib (Makefile.am): Sort replacements.
23765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23766         * lib/stdlib.in.h: Likewise.
23767
23768         parse-duration-tests: avoid link failure
23769         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23770         LIBINTL.
23771         Reported by Tom G. Christensen.
23772
23773         openat-tests: ensure unlinkat behaves like rmdir
23774         * tests/test-rmdir.c (main): Factor guts...
23775         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23776         * modules/rmdir-tests (Files): Ship new file.
23777         * modules/openat-tests: New test.
23778         * tests/test-unlinkat.c: Likewise.
23779
23780         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23781         * modules/rmdir-errno (Status, Notice): Now obsolete.
23782
23783         rmdir: work around cygwin 1.5.x and mingw bugs
23784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23785         * lib/rmdir.c (rmdir): Work around it.
23786         * modules/rmdir (Status, Notice): No longer obsolete.
23787         (Files): Add dos.m4.
23788         (Depends-on): Add unistd.
23789         (configure.ac): Set witnesses.
23790         (License): Relax to LGPLv2+.
23791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23792         * modules/unistd (Makefile.am): Substitute witnesses.
23793         * lib/unistd.in.h (rmdir): Declare replacement.
23794         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23795         * modules/rmdir-tests: New tests.
23796         * tests/test-rmdir.c: Likewise.
23797
23798 2009-09-15  Eric Blake  <ebb9@byu.net>
23799
23800         fchdir: improve use of replacement functions
23801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23803         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23804         REPLACE_CLOSEDIR.
23805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23806         * modules/sys_stat (Makefile.am): Substitute correct witness.
23807         * modules/dirent (Makefile.am): Likewise.
23808         * modules/unistd (Makefile.am): Likewise.
23809         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23810         * lib/unistd.in.h (dup): Likewise.
23811         * lib/sys_stat.in.h (fstat): Likewise.
23812
23813         maint: ignore gnulib-tool temp files
23814         * .gitignore: Ignore files created during gnulib-tool --test.
23815
23816 2009-09-13  Jim Meyering  <meyering@redhat.com>
23817
23818         posixtm: don't reject a time that specify "60" as the number of seconds
23819         * lib/posixtm.c (posixtime): The code to reject invalid dates
23820         would also reject a time specified with the .60 suffix.
23821         But POSIX allows that, in order to accommodate leap seconds.
23822         So don't reject it.
23823         (main): Adjust tests accordingly.
23824         * modules/posixtm (Depends-on): Add stpcpy.
23825
23826 2009-09-11  Jim Meyering  <meyering@redhat.com>
23827
23828         announce-gen: include [$release_type] in emitted Subject:
23829         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23830         e.g., [stable] in the emitted Subject: line.
23831
23832 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23833
23834         Remove obsolete macros from several modules.
23835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23836         obsolete Autoconf macros with their modern counterparts.
23837         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23838         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23839         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23840         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23841         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23842         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23844         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23845         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23846         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23847         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23848         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23849         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23850         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23851         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23852         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23853         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23854         * m4/time_r.m4 (gl_TIME_R): Likewise.
23855         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23856         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23857         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23858
23859         Fix copyright header in build-aux scripts.
23860         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23861         recommendation.
23862         * build-aux/ncftpput-ftp: Likewise.
23863         * build-aux/update-copyright: Likewise.
23864
23865 2009-09-09  Eric Blake  <ebb9@byu.net>
23866
23867         test-link: allow Linux choice of errno
23868         * tests/test-link.c (main): Relax test for alternate error.
23869
23870         strndup: fix improper m4 caching
23871         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23872         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23873         (gl_PREREQ_STRNDUP): Delete.
23874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23875         * modules/string (Makefile.am): Substitute it.
23876         * lib/string.in.h (strndup): Modernize prototype.
23877
23878         getcwd: port to mingw
23879         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23880         different from the POSIX assumptions made throughout the getcwd
23881         module; fortunately, the mingw getcwd does not need replacement.
23882         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23883         * modules/getcwd-tests: New test.
23884         * tests/test-getcwd.c: Likewise.
23885
23886         link: fix platform bugs
23887         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23888         * lib/link.c (link): Work around them.  Fix related mingw bug.
23889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23890         * modules/unistd (Makefile.am): Substitute it.
23891         * lib/unistd.in.h (link): Declare replacement.
23892         * doc/posix-functions/link.texi (link): Document this.
23893         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23894
23895         test-link: consolidate into single C program, test more cases
23896         * tests/test-link.sh: Delete.
23897         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23898         at least Cygwin and Solaris.
23899         * modules/link-tests (Files): Remove unused file.
23900         (Depends-on): Add errno, sys_stat.
23901         (Makefile.am): Simplify.
23902
23903 2009-09-08  Bruno Haible  <bruno@clisp.org>
23904
23905         Work around towlower, towupper bug on mingw.
23906         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23907         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23908         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23909         * doc/posix-functions/towupper.texi: Likewise.
23910         Reported by Eric Blake.
23911
23912 2009-09-08  Jim Meyering  <meyering@redhat.com>
23913
23914         build: don't try to run autoheader if we don't use it
23915         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23916         is not used in configure.ac.
23917
23918 2009-09-08  Eric Blake  <ebb9@byu.net>
23919
23920         euidaccess: fix compilation error
23921         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23922
23923         rawmemchr: relax license
23924         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23925         okay.
23926         Reported by Jim Meyering.
23927
23928         mkfifoat: new module
23929         * modules/mkfifoat: New file.
23930         * lib/mkfifoat.c: Likewise.
23931         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23933         * modules/sys_stat (Makefile.am): Use them.
23934         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23935         * MODULES.html.sh (File system functions): Mention module.
23936         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23937         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23938         * modules/mkfifoat-tests: New test.
23939         * tests/test-mkfifoat.c: Likewise.
23940
23941         strchrnul: relax license
23942         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23943         okay.
23944         Reported by Jim Meyering.
23945
23946 2009-09-08  Eric Blake  <ebb9@byu.net>
23947
23948         fstatat: fix compilation on Solaris
23949         * lib/fstatat.c (includes): Add fcntl.h.
23950         Reported by Pádraig Brady.
23951
23952 2009-09-07  Eric Blake  <ebb9@byu.net>
23953
23954         rename: modernize replacement
23955         * modules/rename (Depends-on): Add stdio.
23956         (configure.ac): Declare witness.
23957         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23958         stdio take care of replacement.
23959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23960         * modules/stdio (Makefile.am): Substitute them.
23961         * lib/stdio.in.h (rename): Declare replacement.
23962         * lib/rename.c (includes): Allow cross-compilation to non-windows
23963         machines.
23964         * doc/posix-functions/rename.texi (rename): Improve
23965         documentation.
23966
23967         stdio: sort witness names
23968         * modules/stdio (Makefile.am): Sort replacements.
23969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23970         * lib/stdio.in.h: Likewise.
23971
23972         getcwd: minor cleanups
23973         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23974         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23975
23976         openat: provide more convenience names
23977         * modules/faccessat (configure.ac): Add C witness.
23978         * lib/unistd.in.h (readlinkat): Fix typo.
23979         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23980         convenience wrappers.
23981         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23982         wrappers in syntax checks.
23983
23984 2009-09-06  Eric Blake  <ebb9@byu.net>
23985
23986         doc: fix comments in recent patches
23987         * lib/faccessat.c: Mention correct function.
23988         * lib/fchmodat.c: Likewise.
23989         * lib/fchownat.c: Likewise.
23990         * lib/symlinkat.c: Likewise.
23991         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23992         constants.
23993
23994         faccessat, symlinkat: continue cleanup of previous patch
23995         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23996         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23997         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23999         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24000         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24001         set.
24002
24003 2009-09-06  Bruno Haible  <bruno@clisp.org>
24004
24005         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24006         (fstatat): Declare if GNULIB_FSTATAT is set.
24007         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24008         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24009         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24010         * modules/fcntl-h (Files): Remove m4/openat.m4.
24011         * modules/sys_stat (Files): Remove m4/openat.m4.
24012         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24013         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24014         * modules/unistd (Files): Remove m4/openat.m4.
24015         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24016         GNULIB_OPENAT.
24017         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24018         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24019         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24020         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24021         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24022         gl_OPENAT_DEFAULTS.
24023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24024         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24025         Don't require gl_OPENAT_DEFAULTS.
24026         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24027         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24028         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24029         (gl_OPENAT_DEFAULTS): Remove macro.
24030
24031 2009-09-06  Bruno Haible  <bruno@clisp.org>
24032
24033         * modules/openat (configure.ac): Remove unneeded witness.
24034
24035 2009-09-06  Bruno Haible  <bruno@clisp.org>
24036
24037         Set errno to ENOSYS when a function is entirely unsupported.
24038         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24039         EOPNOTSUPP.
24040         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24041         * modules/chown (Depends-on): Remove errno.
24042
24043 2009-09-06  Bruno Haible  <bruno@clisp.org>
24044
24045         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24046
24047 2009-09-06  Bruno Haible  <bruno@clisp.org>
24048
24049         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24050
24051 2009-09-06  Ben Pfaff  <blp@gnu.org>
24052             Bruno Haible  <bruno@clisp.org>
24053
24054         Work around a glibc bug in strtok_r.
24055         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24056         Undefine if UNDEFINE_STRTOK_R is set.
24057         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24059         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24060         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24061         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24062         UNDEFINE_STRTOK_R.
24063         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24064
24065 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24066
24067         exclude: minor fix
24068         * lib/exclude.c: Include wctype.h
24069
24070 2009-09-06  Akim Demaille  <demaille@gostai.com>
24071
24072         bootstrap: improve error message
24073         * build-aux/bootstrap (find_tool): Upon failure, report the list
24074         of candidates.
24075         Honor the initial value of the envvar.
24076
24077 2009-09-05  Eric Blake  <ebb9@byu.net>
24078
24079         symlinkat: new module
24080         * modules/symlinkat: New file.
24081         * lib/symlinkat.c: Likewise.
24082         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24084         * modules/unistd (Makefile.am): Use them.
24085         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24086         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24087         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24088         * MODULES.html.sh (File system functions): Mention module.
24089         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24090         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24091         * modules/symlinkat-tests: New test.
24092         * tests/test-symlinkat.c: Likewise.
24093
24094         test-openat-safer: add more checks
24095         * tests/test-openat-safer.c (main): Check more code paths.
24096
24097 2009-09-05  Jim Meyering  <meyering@redhat.com>
24098
24099         syntax-check: detect unnecessary inclusion of openat.h
24100         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24101
24102 2009-09-05  Bruno Haible  <bruno@clisp.org>
24103
24104         Support towlower, towupper.
24105         * doc/posix-functions/towlower.texi: Mention module wctype.
24106         * doc/posix-functions/towupper.texi: Likewise.
24107         * lib/wctype.in.h (towlower, towupper): New functions.
24108         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24109         (ASSERT): New macro.
24110         (e): New variable.
24111         (main): Test also towlower, towupper. Test WEOF argument.
24112         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24113
24114 2009-09-05  Bruno Haible  <bruno@clisp.org>
24115
24116         Fix conversion behaviour when the input is invalid.
24117         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24118         mark occurring in first pass of indirect conversion.
24119         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24120         input.
24121         Found by clang's static analyzer.
24122
24123 2009-09-05  Bruno Haible  <bruno@clisp.org>
24124
24125         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24126         where direct conversion is possible.
24127
24128 2009-09-04  Eric Blake  <ebb9@byu.net>
24129
24130         openat: fail with ENOENT on empty name
24131         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24132         buffer.
24133
24134         link-follow: fix logic bug in prior patch
24135         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24136         reversed sense of yes and no in prior patch.  Avoid confusing
24137         compilation failure with desired semantics.
24138
24139         link-follow: accomodate mingw and cross-compilation
24140         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24141         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24142         cross-compilation results to -1, to make linkat easier to
24143         implement when cross-compiling.  Trivially support mingw.
24144         * modules/link-follow (configure.ac): Call new name.
24145         * NEWS: Mention this.
24146
24147 2009-09-03  Eric Blake  <ebb9@byu.net>
24148
24149         faccessat: compile replacement
24150         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24151         needed.
24152
24153         fts: fix compilation error
24154         * lib/fts.c (includes): Re-add "openat.h", for
24155         openat_needs_fchdir.
24156
24157         faccessat: new module
24158         * modules/faccessat: New file.
24159         * lib/faccessat.c: Likewise.
24160         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24162         * modules/unistd (Makefile.am): Use it.
24163         * lib/unistd.in.h (faccessat): Declare it.
24164         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24165         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24166         * MODULES.html.sh (File system functions): Mention it.
24167         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24168         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24169
24170         euidaccess: prefer POSIX over non-standard implementation
24171         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24172         * lib/euidaccess.c (euidaccess): Use it if available.
24173
24174         openat: make template easier to use
24175         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24176         AT_FUNC_F2 to be undefined.
24177         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24178         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24179         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24180         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24181         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24182         Likewise.
24183         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24184         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24185         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24186         Likewise.
24187
24188         openat: declare in POSIX headers
24189         * NEWS: Mention this.
24190         * modules/openat (configure.ac): Declare witnesses.
24191         (Depends-on): Add fcntl-h, sys_stat, unistd.
24192         (Include): Mention correct headers.
24193         * modules/fcntl-h (Depends-on): Add link-warning.
24194         (Files): Add openat.m4.
24195         (Makefile.am): Substitute witnesses.
24196         * modules/sys_stat (Files, Makefile.am): Likewise.
24197         * modules/unistd (Files, Makefile.am): Likewise.
24198         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24199         (gl_OPENAT_DEFAULTS): New macro.
24200         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24203         (SYS_STAT_H): Remove unused variable.
24204         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24205         * lib/fcntl--.h (includes): Remove unneeded header.
24206         * lib/openat-safer.c (includes): Likewise.
24207         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24208         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24209         appropriate headers.
24210         (__OPENAT_PREFIX): Delete.
24211         * lib/fcntl.in.h (openat): Provide declaration.
24212         (AT_FDCWD): Fix Solaris bug.
24213         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24214         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24215         * lib/fchmodat.c (includes):  Adjust to find declaration.
24216         * lib/fchownat.c (includes): Likewise.
24217         * lib/mkdirat.c (includes): Likewise.
24218         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24219         still visible.
24220
24221 2009-09-02  Eric Blake  <ebb9@byu.net>
24222
24223         errno: use consistently
24224         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24225         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24226         * lib/canonicalize.c (ELOOP): Likewise.
24227         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24228         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24229         * lib/lchown.c (EOPNOTSUPP): Likewise.
24230         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24231         * lib/savewd.c (ESTALE): Likewise.
24232         * lib/settime.c (ENOSYS): Likewise.
24233         * lib/utimens.c (ENOSYS): Likewise.
24234         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24235         * lib/chdir-safer.c (ELOOP): Likewise.
24236         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24237         * modules/c-stack (Depends-on): Add errno.
24238         * modules/canonicalize (Depends-on): Likewise.
24239         * modules/chdir-safer (Depends-on): Likewise.
24240         * modules/fdopendir (Depends-on): Likewise.
24241         * modules/inet_ntop (Depends-on): Likewise.
24242         * modules/inet_pton (Depends-on): Likewise.
24243         * modules/lchown (Depends-on): Likewise.
24244         * modules/openat (Depends-on): Likewise.
24245         * modules/savewd (Depends-on): Likewise.
24246         * modules/settime (Depends-on): Likewise.
24247         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24248
24249         fts: avoid leaking fds
24250         * modules/fts (Depends-on): Add cloexec.
24251         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24252         flag.
24253
24254         fts: make directory fds more robust
24255         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24256         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24257
24258         backupfile, chdir-long, fts, savedir: make safer
24259         * lib/backupfile.c (includes): Use "dirent--.h", since
24260         numbered_backup can write to stderr during readdir.
24261         * lib/savedir.c (includes): Likewise.
24262         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24263         emulation can write to stderr on failure.
24264         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24265         * lib/getcwd.c: Document why opendir_safer is unused.
24266         * lib/glob.c: Likewise.
24267         * lib/scandir.c: Likewise.
24268         * lib/openat-proc.c: Likewise, for open_safer.
24269         * modules/backupfile (Depends-on): Add dirent-safer.
24270         * modules/savedir (Depends-on): Likewise.
24271         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24272         * modules/chdir-long (Depends-on): Add openat-safer.
24273
24274         openat-safer: new module
24275         * modules/openat-safer: New file.
24276         * lib/openat-safer.c: Likewise.
24277         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24278         * lib/fcntl-safer.h (openat_safer): Declare.
24279         * lib/fcntl--.h (openat): Override.
24280         * MODULES.html.sh (File descriptor based I/O): Mention it.
24281         * lib/openat.h: Add double-inclusion guards.
24282         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24283         "fcntl--.h", so we can implement openat.
24284         * modules/openat-safer-tests: New test.
24285         * tests/test-openat-safer.c: New file.
24286
24287         dirent-safer: new module
24288         * modules/dirent-safer: New file.
24289         * lib/dirent--.h: Likewise.
24290         * lib/dirent-safer.h: Likewise.
24291         * lib/opendir-safer.c: Likewise.
24292         * m4/dirent-safer.m4: Likewise.
24293         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24294         * modules/dirent-safer-tests: New test.
24295         * tests/test-dirent-safer.c: New file.
24296         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24297
24298         fdopendir: optimize on mingw
24299         * lib/unistd.in.h (_gl_directory_name): New prototype.
24300         * lib/fchdir.c (_gl_directory_name): Implement it.
24301         (fchdir): Use it to simplify implementation.
24302         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24303         fchdir, when available, to avoid calling [f]chdir().
24304
24305         fdopendir: split into its own module
24306         * lib/openat.c (fdopendir): Move...
24307         * lib/fdopendir.c: ...into new file.
24308         * modules/fdopendir: New module.
24309         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24310         * modules/openat (Depends-on): Add fdopendir.
24311         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24312         fdopendir here.
24313         * modules/savedir (Depends-on): Only need fdopendir, not full
24314         openat.
24315         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24316         * lib/openat.h (fdopendir): Drop prototype.
24317         * lib/dirent.in.h (fdopendir): Provide prototype.
24318         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24319         * modules/dirent (Makefile.am): Substitute them.
24320         * MODULES.html.sh (File system functions): Mention it.
24321         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24322         * modules/fdopendir-tests: New file.
24323         * tests/test-fdopendir.c: Likewise.
24324
24325         fchdir: use more consistent macro convention
24326         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24327         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24328         REPLACE_FCHDIR, rather than relying on config.h macros.
24329         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24330         inside a single make-time REPLACE_FCHDIR block, rather than using
24331         the config.h FCHDIR_REPLACEMENT.
24332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24333         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24334         Manage fstat replacement.
24335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24336         REPLACE_FCHDIR.
24337         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24338         (Makefile.am): Substitute REPLACE_FCHDIR.
24339         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24340         FCHDIR_REPLACEMENT.
24341         * lib/dup-safer.c (dup_safer): Likewise.
24342         * lib/dup2.c (rpl_dup2): Likewise.
24343         * lib/dup3.c (rpl_dup3): Likewise.
24344         * lib/open.c (rpl_open): Likewise.
24345
24346         fchdir: simplify error handling, and support dup3
24347         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24348         stdbool, malloc-posix, realloc-posix.
24349         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24350         (ensure_dirs_slot): Return false on allocation failure.
24351         (rpl_dup2): Delete.
24352         (_gl_register_dup): New function.
24353         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24354         (_gl_register_fd): Close fd on allocation failure.
24355         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24356         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24357         prototype.
24358         (rpl_dup2_fchdir): Delete prototype.
24359         * lib/open.c (open): Update caller.
24360         * lib/dup2.c (dup2): Track fchdir metadata.
24361         * lib/dup3.c (dup3): Likewise.
24362         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24364
24365 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24366
24367         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24368         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24369         don't pass arguments to AC_OUTPUT.
24370
24371 2009-09-02  Bruno Haible  <bruno@clisp.org>
24372
24373         * modules/mkdtemp (License): Relicense under LGPLv2+.
24374         Reported by Paolo Bonzini.
24375
24376 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24377
24378         Replace uses of obsolete autoconf macros in Jim's modules.
24379         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24380         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24381         can evoke a warning from autoconf when run with -Wobsolete
24382         enabled.  They were declared obsolete for good reasons (see
24383         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24384         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24385         should not continue using the deprecated macros.
24386         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24387         obsolete Autoconf macros with modern counterparts.
24388         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24389         * m4/dos.m4 (gl_AC_DOS): Likewise.
24390         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24392         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24393         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24394         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24396         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24397         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24398         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24399         Likewise.
24400         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24401         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24402         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24403         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24404         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24405         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24406
24407 2009-09-01  Eric Blake  <ebb9@byu.net>
24408
24409         fchdir: fix off-by-one bug in previous patch
24410         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24411         (_gl_unregister_fd): Delete useless if.
24412
24413 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24414
24415         maint.mk: sort the list of syntax-check rules
24416         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24417         easier to get a sense of progress when the rules are run sequentially
24418         and take a long time.
24419
24420 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24421
24422         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24423         * modules/netinet_in: Likewise.
24424         * modules/sys_file: Likewise.
24425         * modules/sys_ioctl: Likewise.
24426         * modules/sys_select: Likewise.
24427         * modules/sys_socket: Likewise.
24428         * modules/sys_stat: Likewise.
24429         * modules/sys_time: Likewise.
24430         * modules/sys_times: Likewise.
24431         * modules/sys_utsname: Likewise.
24432         * modules/sys_wait: Likewise.
24433
24434 2009-09-01  Jim Meyering  <meyering@redhat.com>
24435
24436         fts: help ensure that return values are not ignored
24437         * lib/fts_.h (__GNUC_PREREQ): Define.
24438         (__attribute_warn_unused_result__): Define.
24439         (fts_children, fts_close, fts_open, fts_read): Declare with
24440         __attribute_warn_unused_result__.
24441
24442         fts: fts_close now fails also when closing a dir file descriptor fails
24443         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24444         and propagate to caller, along with errno.
24445
24446         announce-gen: correct formatting in --help output
24447         * build-aux/announce-gen (usage): Move the one-line description in
24448         --help output "up", to where it belongs, just after Usage:.
24449
24450 2009-08-31  Eric Blake  <ebb9@byu.net>
24451
24452         fchdir: port to mingw
24453         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24454         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24455         opened, then use a substitute.
24456         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24457         replacement.
24458         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24459         (_gl_register_fd): No need to check stat if open already filters
24460         all directories.
24461         (fchdir): Fix error condition to match POSIX.
24462         * modules/fchdir (Depends-on): Add sys_stat.
24463         * doc/posix-functions/open.texi (open): Document the limitation.
24464         * modules/fchdir-tests: New file.
24465         * tests/test-fchdir.c: Likewise.
24466
24467         canonicalize: allow cross-testing from cygwin to mingw
24468         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24469         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24470         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24471         Likewise.
24472         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24473         target does not support symlinks.
24474         * tests/test-canonicalize-lgpl.sh: Likewise.
24475
24476         chown: avoid compilation warning on mingw
24477         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24478         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24479         mingw.
24480         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24481         * modules/chown (Depends-on): Add errno.
24482
24483 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24484
24485         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24486         command.
24487
24488 2009-08-31  Jim Meyering  <meyering@redhat.com>
24489
24490         canonicalize: remove useless initialization
24491         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24492         initialization of local, "end".
24493
24494 2009-08-30  Bruno Haible  <bruno@clisp.org>
24495
24496         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24497         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24498         ENOSYS.
24499
24500 2009-08-30  Bruno Haible  <bruno@clisp.org>
24501
24502         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24503         /usr/xpg4/bin/tr when it exists.
24504         * tests/test-pipe-filter-gi1.sh: Likewise.
24505
24506 2009-08-30  Bruno Haible  <bruno@clisp.org>
24507
24508         Work around deficient /usr/bin/id program on Solaris.
24509         * tests/test-file-has-acl.sh (ID): New variable.
24510         * tests/test-set-mode-acl.sh (ID): Likewise.
24511         * tests/test-copy-acl.sh (ID): Likewise.
24512         * tests/test-copy-file.sh (ID): Likewise.
24513
24514 2009-08-30  Bruno Haible  <bruno@clisp.org>
24515
24516         New module 'xstriconveh'.
24517         * lib/xstriconveh.h: New file.
24518         * lib/xstriconveh.c: New file.
24519         * modules/xstriconveh: New file.
24520
24521 2009-08-30  Bruno Haible  <bruno@clisp.org>
24522
24523         Make it easier to use mem_cd_iconveh.
24524         * lib/striconveh.h (iconveh_t): New type.
24525         (iconveh_open, iconveh_close): New declarations.
24526         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24527         with a single 'const iconveh_t *' argument.
24528         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24529         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24530         with a single 'const iconveh_t *' argument.
24531         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24532         * tests/test-striconveh.c (main): Update.
24533         * NEWS: Mention the change.
24534
24535 2009-08-30  Bruno Haible  <bruno@clisp.org>
24536
24537         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24538         problem.
24539
24540 2009-08-30  Bruno Haible  <bruno@clisp.org>
24541
24542         Work around iconv_open problem on Solaris.
24543         * lib/iconv_open-solaris.gperf: New file.
24544         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24545         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24546         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24547         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24548         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24549         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24550
24551 2009-08-29  Jim Meyering  <meyering@redhat.com>
24552
24553         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24554         * top/maint.mk (cvs-check): Remove target; it was just an alias
24555         to the better-named vc-diff-check.
24556         (maintainer-distcheck): Remove rule.  It was used only from
24557         the (alpha/beta/major) target, and all of its commands but one
24558         were coreutils-specific.
24559         (vc-dist): Remove rule.
24560         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24561         Run vc-diff-check, not vc-dist.
24562         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24563
24564 2009-08-27  Bruno Haible  <bruno@clisp.org>
24565
24566         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24567         of 0.
24568
24569 2009-08-27  Bruno Haible  <bruno@clisp.org>
24570
24571         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24572         compilers.
24573         * doc/func.texi: Document the SunPRO C bug.
24574
24575 2009-08-27  Bruno Haible  <bruno@clisp.org>
24576
24577         Fix link error on Solaris.
24578         * tests/test-parse-duration.c (xstrdup): Remove function.
24579
24580 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24581
24582         ignore-value: handle pointer types, too
24583         * lib/ignore-value.h (__attribute__): Remove definition.
24584         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24585         of a more concise and more-often effective "(void) i" statement.
24586         (ignore_ptr): New function to suppress warnings from functions that
24587         return pointers, and to make it explicit that one function doesn't
24588         handle all cases.
24589
24590 2009-08-25  Bruno Haible  <bruno@clisp.org>
24591
24592         dup2: work around a Linux bug.
24593         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24594         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24595         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24596         Reported by Simon Josefsson.
24597
24598 2009-08-25  Jim Meyering  <meyering@redhat.com>
24599
24600         libguestfs uses gnulib
24601         * users.txt: Add libguestfs.
24602
24603 2009-08-24  Eric Blake  <ebb9@byu.net>
24604
24605         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24606         * lib/pipe2.c (includes): Add binary-io.h.
24607         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24608
24609 2009-08-24  Bruno Haible  <bruno@clisp.org>
24610
24611         Tolerate declared but missing accept4 syscall.
24612         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24613         available.
24614         * lib/sys_socket.in.h (accept4): If the function is already present,
24615         override it.
24616         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24617         * modules/accept4 (Makefile.am): Compile accept4.c always.
24618         Reported by Paolo Bonzini and Eric Blake.
24619
24620 2009-08-23  Bruno Haible  <bruno@clisp.org>
24621
24622         New module 'accept4'.
24623         * lib/sys_socket.in.h (accept4): New declaration.
24624         * lib/accept4.c: New file.
24625         * m4/accept4.m4: New file.
24626         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24627         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24628         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24629         HAVE_ACCEPT4.
24630         * modules/accept4: New file.
24631         * doc/glibc-functions/accept4.texi: Mention the new module.
24632
24633 2009-08-24  Jim Meyering  <meyering@redhat.com>
24634
24635         progname: also set global program_invocation_name, when possible
24636         Before this change, a libtool-enabled program that calls glibc's
24637         error function would report the program name as
24638         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24639         * modules/progname (configure.ac): Check for a declaration of
24640         program_invocation_name.
24641         * lib/progname.c:  Include <errno.h>.
24642         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24643         Set program_invocation_name.
24644
24645 2009-08-23  Bruno Haible  <bruno@clisp.org>
24646
24647         * lib/dup3.c: Include <string.h>.
24648
24649 2009-08-23  Bruno Haible  <bruno@clisp.org>
24650
24651         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24652         * lib/pipe2.c (pipe2): Likewise.
24653         Suggested by Eric Blake.
24654
24655 2009-08-23  Bruno Haible  <bruno@clisp.org>
24656
24657         Tolerate declared but missing dup3 syscall.
24658         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24659         * lib/unistd.in.h (dup3): If the function is already present,
24660         override it.
24661         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24662         * modules/dup3 (Makefile.am): Compile dup3.c always.
24663         Reported by Paolo Bonzini.
24664
24665 2009-08-23  Bruno Haible  <bruno@clisp.org>
24666
24667         Tolerate declared but missing pipe2 syscall.
24668         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24669         available.
24670         * lib/unistd.in.h (pipe2): If the function is already present,
24671         override it.
24672         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24673         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24674         Reported by Paolo Bonzini.
24675
24676 2009-08-23  Bruno Haible  <bruno@clisp.org>
24677
24678         * lib/pipe2.c (pipe2): Move #ifs inside function.
24679
24680 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24681
24682         quotearg: document limitations of quote_these_too
24683         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24684         those limitations are created.
24685         * lib/quotearg.h (set_char_quoting): Document that digits and
24686         letters that are special after backslash are not permitted.
24687         (quotearg_char): Cross-reference set_char_quoting documentation.
24688
24689 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24690
24691         quotearg: implement custom_quoting_style
24692         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24693         right_quote fields.
24694         (set_custom_quoting): New public function.
24695         (quotearg_buffer_restyled): Add left_quote and right_quote
24696         arguments, handle them very much like locale quoting, and update
24697         all uses.
24698         (quotearg_n_custom): New public function.
24699         (quotearg_n_custom_mem): New public function.
24700         (quotearg_custom): New public function.
24701         (quotearg_custom_mem): New public function.
24702         * lib/quotearg.h: Prototype and document new public functions.
24703         (enum quoting_style): For escape_quoting_style and
24704         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24705         ignored even though they're otherwise like c_quoting_style.
24706         Add custom_quoting_style member and document with comparison to
24707         clocale_quoting_style.
24708         * tests/test-quotearg.c (custom_quotes): New array.
24709         (custom_results): New array.
24710         (main): Extend to test custom quoting.
24711
24712 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24713
24714         quotearg: fix right quote escaping when it's in quote_these_too
24715         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24716         quote, be sure to prepend only one backslash.
24717         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24718         (main): Test it.
24719
24720 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24721
24722         quotearg-tests: test escaping of embedded locale quotes
24723         * tests/test-quotearg.c (struct result_strings): Add member for
24724         new input.
24725         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24726         (inputs): Add new input.
24727         (results_g): Add expected results.
24728         (flag_results): Likewise.
24729         (locale_results): Likewise.
24730         (compare_strings): Check those.
24731
24732 2009-08-23  Bruno Haible  <bruno@clisp.org>
24733
24734         Tests for module 'dup3'.
24735         * modules/dup3-tests: New file.
24736         * tests/test-dup3.c: New file.
24737
24738         New module 'dup3'.
24739         * lib/unistd.in.h (dup3): New declaration.
24740         * lib/dup3.c: New file.
24741         * m4/dup3.m4: New file.
24742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24743         HAVE_DUP3.
24744         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24745         * modules/dup3: New file.
24746         * doc/glibc-functions/dup3.texi: Mention the new module.
24747
24748 2009-08-23  Bruno Haible  <bruno@clisp.org>
24749
24750         Tweak the dup2 test.
24751         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24752         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24753         the test file is still empty. Fix argument order of lseek.
24754
24755 2009-08-23  Bruno Haible  <bruno@clisp.org>
24756
24757         Avoid test link errors when the modules getopt-gnu, gettext are used.
24758         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24760
24761 2009-08-23  Bruno Haible  <bruno@clisp.org>
24762
24763         Fix getdtablesize() on mingw.
24764         * lib/getdtablesize.c (getdtablesize): Implement differently.
24765         * lib/unistd.in.h (getdtablesize): Improve comment.
24766
24767 2009-08-23  Bruno Haible  <bruno@clisp.org>
24768
24769         New module 'mkostemp'.
24770         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24771         * lib/stdlib.in.h (mksotemp): New declaration.
24772         * lib/mkostemp.c: New file, from glibc with modifications.
24773         * lib/tempname.h (GT_FILE): Remove outdated comment.
24774         (gen_tempname): Add flags argument.
24775         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24776         (__GT_FILE): Map to 1.
24777         (small_open, large_open): Remove macros.
24778         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24779         * lib/mkstemp.c (mkstemp): Update.
24780         * lib/mkdtemp.c (mkdtemp): Likewise.
24781         * m4/mkostemp.m4: New file.
24782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24783         HAVE_MKOSTEMP.
24784         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24785         HAVE_MKOSTEMP.
24786         * modules/mkostemp: New file, based on modules/mkstemp.
24787         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24788         * NEWS: Mention the change.
24789
24790 2009-08-23  Bruno Haible  <bruno@clisp.org>
24791
24792         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24793         Reported by Eric Blake.
24794
24795 2009-08-23  Bruno Haible  <bruno@clisp.org>
24796
24797         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24798         Reported by Eric Blake.
24799
24800 2009-08-23  Bruno Haible  <bruno@clisp.org>
24801
24802         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24803         * modules/pipe2 (Depends-on): Likewise.
24804
24805 2009-08-23  Eric Blake  <ebb9@byu.net>
24806
24807         fcntl-h: add O_TTY_INIT support
24808         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24809         * tests/test-fcntl-h.c (o): Test it.
24810         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24811
24812         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24813         * modules/fcntl: Move <fcntl.h> header replacement...
24814         * modules/fcntl-h: ...to new name, so as not to collide with
24815         like-named function.
24816         * tests/test-fcntl.c: Rename...
24817         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24818         * modules/fcntl-tests: Rename...
24819         * modules/fcntl-h-tests: ...to this.  Update test file name.
24820         * modules/chdir-long (Depends-on): Update clients.
24821         * modules/chdir-safer (Depends-on): Likewise.
24822         * modules/fcntl-safer (Depends-on): Likewise.
24823         * modules/fts (Depends-on): Likewise.
24824         * modules/mkancesdirs (Depends-on): Likewise.
24825         * modules/mkdir-p (Depends-on): Likewise.
24826         * modules/open (Depends-on): Likewise.
24827         * modules/savewd (Depends-on): Likewise.
24828         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24829         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24830
24831 2009-08-22  Bruno Haible  <bruno@clisp.org>
24832
24833         * modules/binary-io (License): Relicense under LGPL.
24834         * modules/pipe2 (License): Likewise.
24835
24836 2009-08-22  Bruno Haible  <bruno@clisp.org>
24837
24838         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24839         return value.
24840         * lib/pipe-filter-gi.c (filter_init): Likewise.
24841         Reported by Eric Blake.
24842
24843 2009-08-22  Bruno Haible  <bruno@clisp.org>
24844
24845         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24846         * modules/pipe (Depends-on): Add pipe2.
24847
24848 2009-08-22  Bruno Haible  <bruno@clisp.org>
24849
24850         Tests for module 'pipe2'.
24851         * modules/pipe2-tests: New file.
24852         * tests/test-pipe2.c: New file.
24853
24854         New module 'pipe2'.
24855         * lib/unistd.in.h (pipe2): New declaration.
24856         * lib/pipe2.c: New file.
24857         * m4/pipe2.m4: New file.
24858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24859         HAVE_PIPE2.
24860         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24861         * modules/pipe2: New file.
24862         * doc/glibc-functions/pipe2.texi: Mention the new module.
24863
24864 2009-08-22  Bruno Haible  <bruno@clisp.org>
24865
24866         Reference some new glibc functions.
24867         * doc/glibc-functions/accept4.texi: New file.
24868         * doc/glibc-functions/dup3.texi: New file.
24869         * doc/glibc-functions/mkostemp.texi: New file.
24870         * doc/glibc-functions/pipe2.texi: New file.
24871         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24872         (Glibc sys/socket.h): Refer to accept4.
24873         (Glibc unistd.h): Refer to dup3, pipe2.
24874         Reported by Eric Blake.
24875
24876 2009-08-22  Jim Meyering  <meyering@redhat.com>
24877             Bruno Haible  <bruno@clisp.org>
24878
24879         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24880         This makes it so packages using automake-1.11's silent-rules option
24881         can print e.g., a single "GEN    configmake.h" line, rather than
24882         the 30+ statements that perform the job.  If you want to see the
24883         actual commands, you can still run "make V=1".
24884         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24885         so that make output is abbreviated when those variables are defined
24886         appropriately.
24887         * modules/argz: Likewise.
24888         * modules/arpa_inet: Likewise.
24889         * modules/byteswap: Likewise.
24890         * modules/configmake: Likewise.
24891         * modules/dirent: Likewise.
24892         * modules/errno: Likewise.
24893         * modules/fcntl: Likewise.
24894         * modules/float: Likewise.
24895         * modules/fnmatch: Likewise.
24896         * modules/getopt-posix: Likewise.
24897         * modules/glob: Likewise.
24898         * modules/iconv_open: Likewise.
24899         * modules/inttypes: Likewise.
24900         * modules/localcharset: Likewise.
24901         * modules/locale: Likewise.
24902         * modules/math: Likewise.
24903         * modules/netdb: Likewise.
24904         * modules/netinet_in: Likewise.
24905         * modules/poll: Likewise.
24906         * modules/posix_spawnp-tests: Likewise.
24907         * modules/sched: Likewise.
24908         * modules/search: Likewise.
24909         * modules/selinux-h: Likewise.
24910         * modules/signal: Likewise.
24911         * modules/spawn: Likewise.
24912         * modules/stdarg: Likewise.
24913         * modules/stdbool: Likewise.
24914         * modules/stddef: Likewise.
24915         * modules/stdint: Likewise.
24916         * modules/stdio: Likewise.
24917         * modules/stdlib: Likewise.
24918         * modules/string: Likewise.
24919         * modules/strings: Likewise.
24920         * modules/sys_file: Likewise.
24921         * modules/sys_ioctl: Likewise.
24922         * modules/sys_select: Likewise.
24923         * modules/sys_socket: Likewise.
24924         * modules/sys_stat: Likewise.
24925         * modules/sys_time: Likewise.
24926         * modules/sys_times: Likewise.
24927         * modules/sys_utsname: Likewise.
24928         * modules/sys_wait: Likewise.
24929         * modules/sysexits: Likewise.
24930         * modules/time: Likewise.
24931         * modules/unistd: Likewise.
24932         * modules/wchar: Likewise.
24933         * modules/wctype: Likewise.
24934
24935 2009-08-22  Jim Meyering  <meyering@redhat.com>
24936
24937         announce-gen: detect write failure
24938         * build-aux/announce-gen: Add Coda at end.
24939         Remove equivalent-but-more-verbose block at top.
24940
24941 2009-08-19  Akim Demaille  <demaille@gostai.com>
24942
24943         bootstrap: --help to stdout.
24944         * bootstrap (usage): Don't send --help to stderr.
24945         Use a here doc instead of a long string.
24946
24947 2009-08-21  Eric Blake  <ebb9@byu.net>
24948
24949         test-popen-safer: split from test-popen
24950         * tests/test-popen.c (main): Move...
24951         * tests/test-popen.h: ...into new file.
24952         * tests/test-popen-safer2.c: New file.
24953         * modules/popen-tests (Files): Add test-popen.h.
24954         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24955         Suggested by Bruno Haible.
24956
24957         test-fcntl-safer: split from test-open
24958         * tests/test-open.c (main): Move...
24959         * tests/test-open.h: ...into new file.
24960         * tests/test-fcntl-safer.c: New file.
24961         * modules/open-tests (Files): Add test-open.h.
24962         * modules/fcntl-safer-tests: New file.
24963         Suggested by Bruno Haible.
24964
24965         test-fopen-safer: split from test-fopen
24966         * tests/test-fopen.c (main): Move...
24967         * tests/test-fopen.h: ...into new file.
24968         * tests/test-fopen-safer.c: New file.
24969         * modules/fopen-tests (Files): Add test-fopen.h.
24970         * modules/fopen-safer-tests: New file.
24971         Suggested by Bruno Haible.
24972
24973 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24974
24975         popen-safer: test O_CLOEXEC at run-time.
24976         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24977
24978 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24979
24980         fcntl: move more flags to the header
24981         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24982         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24983         * lib/fcntl.in.h: Do both things here.
24984
24985 2009-08-21  Jim Meyering  <meyering@redhat.com>
24986
24987         consistently remove $@-t before redirecting to it
24988         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24989         * modules/alloca-opt: Likewise.
24990         * modules/byteswap: Likewise.
24991         * modules/fnmatch: Likewise.
24992         * modules/getopt-posix: Likewise.
24993         * modules/glob: Likewise.
24994         * modules/poll: Likewise.
24995         * modules/posix_spawnp-tests: Likewise.
24996         * modules/sys_socket: Likewise.
24997         * modules/sysexits: Likewise.
24998
24999 2009-08-21  Eric Blake  <ebb9@byu.net>
25000
25001         popen: simplify access to original popen
25002         * lib/popen.c (rpl_popen): No need to worry about popen being a
25003         macro.
25004         Reported by Bruno Haible.
25005
25006 2009-08-20  Eric Blake  <ebb9@byu.net>
25007
25008         build: avoid some compiler warnings
25009         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25010         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25011         type.
25012         (new_exclude_segment, excluded_file_pattern_p)
25013         (excluded_file_name_p): Reduce scope.
25014         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25015         old-style declaration.
25016
25017 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25018
25019         * tests/test-exclude1.sh: Handle Windows EOL.
25020         * tests/test-exclude2.sh: Likewise.
25021         * tests/test-exclude3.sh: Likewise.
25022         * tests/test-exclude4.sh: Likewise.
25023         * tests/test-exclude5.sh: Likewise.
25024         * tests/test-exclude6.sh: Likewise.
25025         * tests/test-exclude7.sh: Likewise.
25026
25027 2009-08-19  Akim Demaille  <demaille@gostai.com>
25028
25029         bootstrap: find sha1sum when named gsha1sum.
25030         * bootstrap (find_tool): New.
25031         ($SHA1SUM): New.
25032         Use it.
25033
25034 2009-08-20  Jim Meyering  <meyering@redhat.com>
25035
25036         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25037         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25038         expression that converts "." in a file name to "\." in the resulting
25039         regexp.  Start with a dummy statement, so that prior shell variable
25040         definitions are expanded portably.  Reported by Simon Josefsson.
25041
25042 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25043
25044         Fix polling for writeability of a screen buffer.
25045         * lib/poll.c: Distinguish input and screen buffers for the
25046         Win32 implementation.
25047         * lib/select.c: Likewise.
25048
25049 2009-08-19  Eric Blake  <ebb9@byu.net>
25050
25051         popen-safer: prevent popen from clobbering std descriptors
25052         * modules/popen-safer: New file.
25053         * lib/popen-safer.c: Likewise.
25054         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25055         * lib/stdio--.h (popen): Provide override.
25056         * lib/stdio-safer.h (popen_safer): Provide declaration.
25057         * tests/test-popen.c (includes): Partially test this.
25058         * modules/popen-safer-tests: New file, for more tests.
25059         * tests/test-popen-safer.c: Likewise.
25060         * MODULES.html.sh (file stream based Input/Output): Mention it.
25061
25062         tests: test some of the *-safer modules
25063         * modules/fopen-safer (Depends-on): Add fopen.
25064         * modules/fcntl-safer (Depends-on): Add fcntl.
25065         * modules/stdlib-safer (Depends-on): Add stdlib.
25066         (configure.ac): Set indicator.
25067         * modules/unistd-safer (configure.ac): Likewise.
25068         * modules/tmpfile-safer (configure.ac): Likewise.
25069         (Depends-on): Add tmpfile.
25070         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25071         active.
25072         * tests/test-fopen.c (includes): Test safer versions when they are
25073         in use.
25074         * tests/test-open.c (includes): Likewise.
25075
25076         popen: fix cygwin 1.5 bug when stdin closed
25077         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25078         * modules/popen: New file.
25079         * modules/popen-tests: Likewise.
25080         * tests/test-popen.c: Likewise.
25081         * m4/popen.m4: Likewise.
25082         * lib/popen.c: Likewise.
25083         * lib/stdio.in.h (popen): New declaration.
25084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25085         * modules/stdio (Makefile.am): Likewise.
25086         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25087
25088 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25089
25090         maint.mk: give full control over update-copyright exclusions
25091         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25092         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25093         (update-copyright): Don't force inclusion of top-level
25094         ChangeLog.  Don't force exclusion of all COPYING files, but make
25095         them the default exclusion instead.
25096
25097 2009-08-16  Bruno Haible  <bruno@clisp.org>
25098
25099         Fix test failures on Solaris 10.
25100         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25101         tests when Solaris iconv() is used.
25102         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25103         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25104         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25105         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25106         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25107
25108 2009-08-16  Bruno Haible  <bruno@clisp.org>
25109
25110         Fix test failures on Solaris 10.
25111         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25112         'tr' program and pass it as first argument.
25113         * tests/test-pipe-filter-gi1.sh: Likewise.
25114         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25115         program as first argument.
25116         * tests/test-pipe-filter-gi1.c (main): Likewise.
25117
25118 2009-08-16  Eric Blake  <ebb9@byu.net>
25119
25120         fpurge: fix previous commits
25121         * modules/fpurge (Makefile.am): Make replacement conditional,
25122         partially reverting 2007-04-29 change; missed in previous
25123         attempt.
25124         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25125         is missing.
25126
25127 2009-08-16  Bruno Haible  <bruno@clisp.org>
25128
25129         Clarify fpurge's effect on the file position.
25130         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25131         * tests/test-fpurge.c (main): Make a second pass for checking the file
25132         position.
25133
25134 2009-08-16  Bruno Haible  <bruno@clisp.org>
25135
25136         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25137         declaration of fpurge is missing.
25138         * tests/test-fpurge.c (main): Check that the file has not more contents
25139         than expected. Close the file before removing it.
25140
25141 2009-08-15  Eric Blake  <ebb9@byu.net>
25142
25143         fpurge: don't wrap working cygwin implementation
25144         * lib/fpurge.c (fpurge): Fix comment typo.
25145         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25146         1.7 to avoid replacement.
25147         * tests/test-fpurge.c (main): Enhance test.
25148
25149 2009-08-15  Eric Blake  <ebb9@byu.net>
25150         and Jim Meyering  <meyering@redhat.com>
25151
25152         test-update-copyright: skip if perl is insufficient
25153         * tests/test-update-copyright.sh: Failure to run maintainer tool
25154         should not cause testsuite failure on cygwin 1.5.
25155
25156 2009-08-14  Eric Blake  <ebb9@byu.net>
25157
25158         doc: mention more functions added in cygwin 1.7.0
25159         * doc/posix-headers/limits.texi (limits.h): Update for recent
25160         cygwin additions.
25161         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25162         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25163         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25164         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25165         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25166
25167 2009-08-14  Eric Blake  <ebb9@byu.net>
25168
25169         maint.mk: simplify update-copyright rule
25170         * top/maint.mk (update-copyright-local): Delete, and document how
25171         to do it in cfg.mk instead.
25172         (update-copyright-exclude-regexp): Delete, and document how to do
25173         it in .x-update-copyright instead.
25174         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25175         exclude ChangeLog.
25176
25177 2009-08-14  Bruno Haible  <bruno@clisp.org>
25178
25179         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25180
25181 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25182
25183         maint.mk: support update-copyright-env
25184         * top/maint.mk (update-copyright-env): Define place-holder.
25185         (update-copyright): Expand $(update-copyright-env) before
25186         invoking update-copyright.
25187
25188 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25189
25190         update-copyright: implement forced reformatting
25191         * build-aux/update-copyright: Implement and document
25192         UPDATE_COPYRIGHT_FORCE.
25193         * tests/test-update-copyright.sh: Test it.
25194
25195 2009-08-14  Eric Blake  <ebb9@byu.net>
25196         and Bruno Haible  <bruno@clisp.org>
25197
25198         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25199         * tests/test-locale.c: Revert previous patch related to NULL.
25200         * tests/test-stdio.c: Likewise.
25201         * tests/test-stdlib.c: Likewise.
25202         * tests/test-string.c: Likewise.
25203         * tests/test-unistd.c: Likewise.
25204         * modules/time-tests (Depends-on): Add verify.
25205         * modules/wchar-tests (Depends-on): Likewise.
25206         * tests/test-time.c: Test for NULL compliance.
25207         * tests/test-wchar.c: Likewise.
25208         * modules/locale (Depends-on): Add stddef.
25209         * modules/stdio (Depends-on): Likewise.
25210         * modules/stdlib (Depends-on): Likewise.
25211         * modules/string (Depends-on): Likewise.
25212         * modules/time (Depends-on): Likewise.
25213         * modules/unistd (Depends-on): Likewise.
25214         * modules/wchar (Depends-on): Likewise.
25215         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25216         * lib/stdlib.in.h (includes): Likewise.
25217         * lib/string.in.h (includes): Likewise.
25218         * lib/time.in.h (includes): Likewise.
25219         * lib/unistd.in.h (includes): Likewise.
25220         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25221         replaced.
25222         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25223         * m4/stddef_h.m4: New file.
25224         * modules/stddef: Likewise.
25225         * lib/stddef.in.h: Likewise.
25226         * modules/stddef-tests: Likewise.
25227         * tests/test-stddef.c: Likewise.
25228         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25229         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25230         * doc/posix-headers/locale.texi (locale.h): Likewise.
25231         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25232         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25233         * doc/posix-headers/string.texi (string.h): Likewise.
25234         * doc/posix-headers/time.texi (time.h): Likewise.
25235         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25236         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25237
25238 2009-08-14  Eric Blake  <ebb9@byu.net>
25239
25240         doc: improve git diff of texinfo files
25241         * .gitattributes: Add rule for *.texi files, with hint on how to
25242         use it.
25243         Copied from m4, and based on a report by Bruno Haible.
25244
25245 2009-08-14  Bruno Haible  <bruno@clisp.org>
25246
25247         Disable multithread support by default on Cygwin 1.5.x for real.
25248         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25249
25250 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25251
25252         update-copyright: much ado about intervals
25253         * build-aux/update-copyright: Implement and document
25254         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25255         of copyright year intervals.
25256         Also, document UPDATE_COPYRIGHT_YEAR.
25257         * tests/test-update-copyright.sh: Test it.
25258
25259         update-copyright: convert 2-digit to 4-digit years
25260         * build-aux/update-copyright: Implement and document.
25261         * tests/test-update-copyright.sh: Update.
25262
25263 2009-08-14  Jim Meyering  <meyering@redhat.com>
25264
25265         test-exclude: avoid coreutils "make check" failure
25266         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25267         just as in test-argmatch.c.
25268
25269 2009-08-13  Eric Blake  <ebb9@byu.net>
25270
25271         test-dup2: fix bad assumption
25272         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25273         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25274
25275         test-version-etc: fix CRLF portability issue
25276         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25277         recognize \r.
25278         * tests/test-argp-version-etc-1.sh: Likewise.
25279
25280         getopt: update client modules
25281         * modules/argp (Depends-on): Use getopt-gnu.
25282         * modules/git-merge-changelog (Depends-on): Likewise.
25283         * modules/long-options (Depends-on): Likewise.
25284         * modules/xstrtol (Depends-on): Likewise.
25285
25286 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25287
25288         * tests/test-version-etc.sh: Don't fail on different
25289         project/version.  Don't fail on CRLF differences.  Rewrite to use
25290         multiple -e instead of multiple sed forks, suggested by Eric Blake
25291         <ebb9@byu.net>.
25292         * tests/test-argp-version-etc-1.sh: Likewise.
25293
25294 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25295
25296         * tests/test-version-etc.sh: Don't fail on different
25297         project/version.
25298
25299 2009-08-12  Bruno Haible  <bruno@clisp.org>
25300
25301         Tests for modules 'getopt-posix', 'getopt-gnu'.
25302         * modules/getopt-posix-tests: New file.
25303         * tests/test-getopt.c: New file.
25304         * tests/test-getopt.h: New file.
25305         * tests/test-getopt_long.h: New file.
25306
25307         New modules 'getopt-posix', 'getopt-gnu'.
25308         * modules/getopt-gnu: New file, renamed from modules/getopt.
25309         * modules/getopt-posix: New file.
25310         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25311         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25312         (gl_GETOPT): Remove macro.
25313         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25314         Disable the test against BSD systems that declare optreset. Test
25315         against mingw bug. Test against lack of support of optional arguments
25316         on many platforms.
25317         * doc/glibc-headers/getopt.texi: Update module name and list of
25318         relevant platforms.
25319         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25320         'getopt-gnu' and more portability problems.
25321         * NEWS: Mention the changes.
25322
25323 2009-08-12  Bruno Haible  <bruno@clisp.org>
25324
25325         Ensure that optarg etc. get declared by <unistd.h>.
25326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25327         AC_USE_SYSTEM_EXTENSIONS.
25328         * modules/getopt (Depends-on): Add 'extensions'.
25329
25330 2009-08-12  Bruno Haible  <bruno@clisp.org>
25331
25332         Avoid test link errors.
25333         * modules/pipe-filter-ii-tests (Makefile.am): Define
25334         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25335         * modules/pipe-filter-gi-tests (Makefile.am): Define
25336         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25338
25339 2009-08-12  Bruno Haible  <bruno@clisp.org>
25340
25341         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25342         gl_GETOPT_SUBSTITUTE before.
25343         (gl_GETOPT): Use it.
25344         * m4/argp.m4 (gl_ARGP): Update.
25345         Reported by Sergey Poznyakoff.
25346
25347         * m4/getopt.m4: Reorder macros.
25348         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25349         (gl_GETOPT_SUBSTITUTE): Remove macro.
25350
25351 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25352
25353         Minor improvement in gitlog-to-changelog
25354
25355         * build-aux/gitlog-to-changelog: New option `--format' makes
25356         output format string configurable.
25357
25358 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25359
25360         Optimize exclude: use hash tables for non-wildcard patterns.
25361
25362         * lib/exclude.c: Include hash.h and mbuiter.h
25363         (struct exclude_pattern, exclude_segment): New data types.
25364         (struct exclude): Rewrite.
25365         (fnmatch_pattern_has_wildcards): New function.
25366         (new_exclude_segment, free_exclude_segment): New functions.
25367         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25368         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25369         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25370         * modules/exclude: Depend on hash and mbuiter.
25371
25372         * modules/exclude-tests: New file.
25373         * tests/test-exclude.c: New file.
25374         * tests/test-exclude1.sh: New file.
25375         * tests/test-exclude2.sh: New file.
25376         * tests/test-exclude3.sh: New file.
25377         * tests/test-exclude4.sh: New file.
25378         * tests/test-exclude5.sh: New file.
25379         * tests/test-exclude6.sh: New file.
25380         * tests/test-exclude7.sh: New file.
25381
25382 2009-08-12  Bruno Haible  <bruno@clisp.org>
25383
25384         Ensure that getopt() gets declared by <unistd.h>.
25385         * lib/unistd.in.h: Conditionally include getopt.h.
25386         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25387         Set GNULIB_UNISTD_H_GETOPT.
25388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25389         GNULIB_UNISTD_H_GETOPT.
25390         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25391
25392 2009-08-12  Bruno Haible  <bruno@clisp.org>
25393
25394         Clarify logic.
25395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25396         gl_replace_getopt instead of GETOPT_H.
25397
25398 2009-08-12  Bruno Haible  <bruno@clisp.org>
25399
25400         * m4/getopt.m4: Add comments.
25401
25402 2009-08-12  Bruno Haible  <bruno@clisp.org>
25403
25404         Disable multithread support by default on Cygwin 1.5.x.
25405         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25406         set gl_use_threads=no if not specified otherwise.
25407
25408 2009-08-11  Bruno Haible  <bruno@clisp.org>
25409
25410         Avoid compilation error on NetBSD 5.0.
25411         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25412         * tests/test-stdio.c: Likewise.
25413         * tests/test-stdlib.c: Likewise.
25414         * tests/test-string.c: Likewise.
25415         * tests/test-unistd.c: Likewise.
25416         Reported by Greg Troxel <gdt@ir.bbn.com>
25417         at <https://savannah.gnu.org/support/?106973>.
25418
25419 2009-08-11  Bruno Haible  <bruno@clisp.org>
25420
25421         * modules/dup2-tests (Depends-on): Remove close.
25422
25423         Undo 2009-07-19 commit.
25424         * modules/acl-tests (Depends-on): Remove close.
25425         * modules/binary-io-tests (Depends-on): Likewise.
25426         * modules/closein-tests (Depends-on): Likewise.
25427         * modules/flock-tests (Depends-on): Likewise.
25428         * modules/fsync-tests (Depends-on): Likewise.
25429         * modules/lseek-tests (Depends-on): Likewise.
25430         * modules/pipe-tests (Depends-on): Likewise.
25431         * modules/posix_spawn-tests (Depends-on): Likewise.
25432         * modules/posix_spawnp-tests (Depends-on): Likewise.
25433         * modules/stat-time-tests (Depends-on): Likewise.
25434         * modules/yesno-tests (Depends-on): Likewise.
25435
25436 2009-08-10  Bruno Haible  <bruno@clisp.org>
25437
25438         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25439
25440 2009-08-10  Bruno Haible  <bruno@clisp.org>
25441
25442         Fix a gcc warning.
25443         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25444
25445 2009-08-10  Bruno Haible  <bruno@clisp.org>
25446
25447         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25448         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25449         not only the first time.
25450         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25451         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25452         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25453         is 1, not only the the first time.
25454
25455 2009-08-10  Bruno Haible  <bruno@clisp.org>
25456
25457         Make it possible to use module 'gethostname' without module 'close'.
25458         * lib/unistd.in.h (close): Evoke a link error only if
25459         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25461         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25462         * modules/unistd (Makefile.am): Substitute
25463         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25464         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25465         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25466         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25467         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25468         * modules/sys_ioctl (Makefile.am): Substitute
25469         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25470         * modules/socket (configure.ac): On native Windows, set
25471         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25472         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25473         Reported by Sam Steingold <sds@gnu.org>.
25474
25475 2009-08-10  Bruno Haible  <bruno@clisp.org>
25476
25477         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25478         * modules/ioctl (configure.ac): Likewise.
25479
25480 2009-08-10  Bruno Haible  <bruno@clisp.org>
25481
25482         Avoid collision between gnulib wrapper and libintl wrapper.
25483         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25484         already defined in intl/printf.c.
25485         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25486         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25487
25488 2009-08-09  Bruno Haible  <bruno@clisp.org>
25489
25490         Make <sys/select.h> really self-contained, also on Solaris 10.
25491         * lib/sys_select.in.h: Include <string.h>.
25492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25493         Solaris 10 problem.
25494         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25495         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25496         Reported by Jim Meyering.
25497
25498 2009-08-09  Bruno Haible  <bruno@clisp.org>
25499
25500         Avoid warnings from 'aclocal' that are due to a use of macro name
25501         AM_XGETTEXT_OPTION that is not defined in automake.
25502         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25503         automake.
25504         * modules/error (configure.ac): Likewise.
25505         * modules/propername (configure.ac): Likewise.
25506         * modules/vasprintf (configure.ac): Likewise.
25507         * modules/verror (configure.ac): Likewise.
25508         * modules/xprintf (configure.ac): Likewise.
25509         * modules/xvasprintf (configure.ac): Likewise.
25510
25511 2009-08-08  Bruno Haible  <bruno@clisp.org>
25512
25513         Avoid compilation error in C++ mode.
25514         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25515         Reported by Sam Steingold <sds@gnu.org>.
25516
25517 2009-08-08  Bruno Haible  <bruno@clisp.org>
25518
25519         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25520         for the various Unix platforms.
25521         * doc/posix-headers/limits.texi: Update platforms list regarding
25522         HOST_NAME_MAX.
25523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25524
25525 2009-08-07  Jim Meyering  <meyering@redhat.com>
25526
25527         selinux-at: fix typo in a comment
25528         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25529         Spotted by Paolo Bonzini.
25530
25531         selinux-at: remove redundant m4 code, add documentation
25532         * modules/selinux-at (configure.ac): Remove redundant code.
25533         LIB_SELINUX is already set via the dependent module, selinux-h.
25534         (Include): Add quotes around selinux-at.h.
25535         * lib/selinux-at.h: Add documentation.
25536         Reported by Bruno Haible in
25537         http://marc.info/?l=gnulib-bug&m=124958988300749
25538
25539 2009-08-07  Bruno Haible  <bruno@clisp.org>
25540
25541         Avoid link error on MacOS X 10.3 and 10.4.
25542         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25543         on non-ELF systems.
25544         * lib/argp-pv.c (argp_program_version): Likewise.
25545         Reported by Simon Josefsson.
25546
25547 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25548
25549         * tests/test-version-etc.sh: Use $EXEEXT.
25550
25551 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25552
25553         update-copyright: update documentation to point to maint.mk
25554         * build-aux/update-copyright: Here.
25555
25556 2009-08-06  Jim Meyering  <meyering@redhat.com>
25557
25558         maint.mk: support update-copyright-local
25559         * top/maint.mk (update-copyright-local): Define place-holder.
25560         (update-copyright): Depend on $(update-copyright-local).
25561
25562 2009-08-06  Jim Meyering  <meyering@redhat.com>
25563
25564         selinux-at: new module
25565         Initially written for coreutils, this module will soon be
25566         used by findutils, too.
25567         * MODULES.html.sh [Misc]: Add selinux-at.
25568         * lib/selinux-at.h: New file, from coreutils.
25569         * lib/selinux-at.c: Likewise.
25570         * modules/selinux-at: Likewise.
25571         (License): Change from LGPL to GPL, since it depends
25572         on the GPL'd openat module.
25573
25574         doc: update README
25575         * README: Remove references to cogito.
25576         Remove cvs-repo-updating instructions from 2007.
25577         Don't imply that CVS is better if you have limited disk space.
25578
25579 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25580
25581         update-copyright: support C-style comments
25582         * build-aux/update-copyright: Implement and document.
25583         * tests/test-update-copyright.sh: Test.
25584
25585 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25586
25587         update-copyright: support omitted "(C)"
25588         * build-aux/update-copyright: Implement and document.  Also,
25589         allow variable whitespace before "(C)".
25590         * tests/test-update-copyright.sh: Test.
25591
25592 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25593
25594         update-copyright: don't trip on non-FSF copyright statements
25595         * build-aux/update-copyright: Fix so that the first correctly
25596         formatted FSF copyright statement is recognized no matter what
25597         appears before it.  Update documentation.
25598         * tests/test-update-copyright.sh: Test that.
25599
25600 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25601
25602         update-copyright: clean up code a little
25603         * build-aux/update-copyright: Append "_re" to the name of any
25604         variable holding a regular expression.
25605         Replace "old" and "new" with "stmt" in variable names.
25606         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25607         handled correctly.
25608         Format code more consistently.
25609
25610 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25611
25612         update-copyright-tests: improve portability
25613         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25614         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25615
25616 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25617
25618         update-copyright: support @copyright{} and &copy;
25619         * build-aux/update-copyright: Implement and document.
25620         * tests/test-update-copyright.sh: Test.
25621
25622 2009-08-04  Jim Meyering  <meyering@redhat.com>
25623
25624         update-copyright-tests: correctly test EOL=\r\n handling
25625         * tests/test-update-copyright.sh: Put \r at the end of some lines
25626         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25627
25628         maint.mk: make update-copyright exclusion list more configurable
25629         * top/maint.mk (update-copyright): Default to excluding COPYING,
25630         but allow an override, in case someone does want to update that file.
25631
25632         maint.mk: don't update copyright date in COPYING
25633         * top/maint.mk (update-copyright): Exclude COPYING.
25634
25635         maint.mk: add a copyright-updating rule
25636         * top/maint.mk (update-copyright): New rule.
25637         Derived from coreutils/Makefile.am.
25638
25639         update-copyright: rename some variables
25640         * build-aux/update-copyright: Rename a few variables for clarity.
25641         Tweak syntax.  List Joel E. Denny as coauthor.
25642
25643 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25644
25645         update-copyright: fix bug for 2-digit last year and add tests
25646         * build-aux/update-copyright: Fix bug.
25647         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25648         specified.
25649         * modules/update-copyright-tests: New
25650         * tests/test-update-copyright.sh: New.
25651
25652 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25653
25654         update-copyright: handle leading tabs in line prefix
25655         * build-aux/update-copyright: Count leading tabs as 8 spaces
25656         when computing margin.  This helps with the formatting of
25657         ChangeLogs, for example.
25658         Fix documentation a little.
25659
25660 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25661
25662         update-copyright: support EOL=\r\n
25663         * build-aux/update-copyright: Implement that.
25664
25665 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25666
25667         update-copyright: automatically format copyright statements
25668         * build-aux/update-copyright: Implement that.
25669         Also, be a little more predictable and safer by always failing
25670         when the full copyright format is not perfectly recognized as an
25671         unbroken whole.  Discussed at
25672         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25673         Rewrite documentation.
25674
25675 2009-08-03  Bruno Haible  <bruno@clisp.org>
25676
25677         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25678
25679 2009-08-02  Bruno Haible  <bruno@clisp.org>
25680
25681         Tests for module 'uname'.
25682         * modules/uname-tests: New file.
25683         * tests/test-uname.c: New file.
25684
25685         New module 'uname'.
25686         * lib/uname.c: New file.
25687         * m4/uname.m4: New file.
25688         * modules/uname: New file.
25689         * doc/posix-functions/uname.texi: Mention the new module.
25690
25691 2009-08-02  Bruno Haible  <bruno@clisp.org>
25692
25693         Tests for module 'sys_utsname'.
25694         * modules/sys_utsname-tests: New file.
25695         * tests/test-sys_utsname.c: New file.
25696
25697         New module 'sys_utsname'.
25698         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25699         * m4/sys_utsname_h.m4: New file.
25700         * modules/sys_utsname: New file.
25701         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25702
25703 2009-08-02  Bruno Haible  <bruno@clisp.org>
25704
25705         Implicitly initialize the sockets library.
25706         * lib/gethostname.c: Include sockets.h.
25707         (rpl_gethostname): Invoke gl_sockets_startup.
25708         * lib/socket.c: Include sockets.h.
25709         (rpl_socket): Invoke gl_sockets_startup.
25710         * modules/gethostname (Depends-on): Add sockets.
25711         * modules/socket (Depends-on): Likewise.
25712         * tests/test-poll.c: Don't include sockets.h.
25713         (main): Don't invoke gl_sockets_startup.
25714         * tests/test-select.c: Don't include sockets.h.
25715         (main): Don't invoke gl_sockets_startup.
25716
25717 2009-08-02  Bruno Haible  <bruno@clisp.org>
25718
25719         Allow multiple calls to gl_sockets_startup.
25720         * lib/sockets.c (initialized_sockets_version): New variable.
25721         (gl_sockets_startup): Do nothing if already called for this or a higher
25722         version.
25723         (gl_sockets_cleanup): Reset initialized_sockets_version.
25724
25725 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25726
25727         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25728         different project/version.
25729
25730 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25731             Bruno Haible  <bruno@clisp.org>
25732
25733         Tests for module 'pipe-filter-gi'.
25734         * modules/pipe-filter-gi-tests: New file.
25735         * tests/test-pipe-filter-gi1.sh: New file.
25736         * tests/test-pipe-filter-gi1.c: New file.
25737         * tests/test-pipe-filter-gi2.sh: New file.
25738         * tests/test-pipe-filter-gi2-main.c: New file.
25739         * tests/test-pipe-filter-gi2-child.c: New file.
25740
25741         New module 'pipe-filter-gi'.
25742         * lib/pipe-filter-gi.c: New file.
25743         * modules/pipe-filter-gi: New file.
25744
25745 2009-08-02  Bruno Haible  <bruno@clisp.org>
25746             Paolo Bonzini  <bonzini@gnu.org>
25747
25748         Tests for module 'pipe-filter-ii'.
25749         * modules/pipe-filter-ii-tests: New file.
25750         * tests/test-pipe-filter-ii1.sh: New file.
25751         * tests/test-pipe-filter-ii1.c: New file.
25752         * tests/test-pipe-filter-ii2.sh: New file.
25753         * tests/test-pipe-filter-ii2-main.c: New file.
25754         * tests/test-pipe-filter-ii2-child.c: New file.
25755
25756         New module 'pipe-filter-ii'.
25757         * lib/pipe-filter.h: New file.
25758         * lib/pipe-filter-ii.c: New file.
25759         * lib/pipe-filter-aux.h: New file.
25760         * modules/pipe-filter-ii: New file.
25761
25762 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25763
25764         * lib/gc-libgcrypt.c: Change copyright to FSF.
25765         * lib/gc-gnulib.c: Likewise.
25766
25767 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25768
25769         * lib/gethostname.c: Include limits.h.
25770
25771 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25772             Bruno Haible  <bruno@clisp.org>
25773
25774         Ensure HOST_NAME_MAX as part of the gethostname module.
25775         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25776         define also HOST_NAME_MAX.
25777         * tests/test-gethostname.c: Include <limits.h>.
25778         (main): Check also HOST_NAME_MAX.
25779         * doc/posix-headers/limits.texi: Document the mingw problem.
25780
25781 2009-08-02  Bruno Haible  <bruno@clisp.org>
25782
25783         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25784         Add comments.
25785
25786 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25787
25788         * lib/gethostname.c: Add Windows wrapper.
25789         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25790         * modules/gethostname: Depend on sys_socket & errno, for also
25791         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25792         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25793
25794 2009-07-31  Jim Meyering  <meyering@redhat.com>
25795
25796         getloadavg: fix symbol name in comment
25797         * lib/getloadavg.c: Correct a typo I introduced when adding
25798         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25799         Matt Kraai spotted the problem.
25800
25801 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25802
25803         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25804         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25805         code also if ! defined N_NAME_POINTER.
25806         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25807         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25808         but the n_name member is a 12-byte array.
25809
25810 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25811
25812         update-copyright: generalize comment handling
25813         * build-aux/update-copyright: Handle copyright statements
25814         within more comment styles.
25815         Document usage.
25816         Report any file with an external copyright holder or parse failure.
25817
25818 2009-07-29  Jim Meyering  <meyering@redhat.com>
25819
25820         mktime: correct setting of REPLACE_MKTIME
25821         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25822
25823         update-copyright: new module
25824         * modules/update-copyright: New file.
25825         * build-aux/update-copyright: New file.
25826         * MODULES.html.sh (maint+release support): Add update-copyright.
25827
25828 2009-07-27  Bruno Haible  <bruno@clisp.org>
25829
25830         Fix compilation error when <ctime> is used and mktime is replaced.
25831         * lib/time.in.h (mktime): New declaration.
25832         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25833         REPLACE_MKTIME instead of defining mktime in config.h.
25834         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25835         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25836         Reported by Ross McFarland <rwmcfa1@neces.com>.
25837
25838 2009-07-27  Bruno Haible  <bruno@clisp.org>
25839
25840         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25841         Reported by Matt Kraai <mkraai@beckman.com>.
25842
25843 2009-07-25  Jim Meyering  <meyering@redhat.com>
25844
25845         maint.mk: avoid warnings about missing files
25846         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25847         diagnostic when .prev-version does not exist.
25848         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25849         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25850         nonexistent cfg.mk.
25851         Suggestions from Simon Josefsson.
25852
25853 2009-07-25  Bruno Haible  <bruno@clisp.org>
25854
25855         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25856         defined as macros. Needed on QNX 6.4.1.
25857         Reported by Matt Kraai <mkraai@beckman.com>.
25858
25859 2009-07-23  Jim Meyering  <meyering@redhat.com>
25860
25861         maint.mk: invoke "make dist" with a working value of XZ_OPT
25862         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25863
25864 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25865
25866         Make fseeko.c compile on QNX.
25867         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25868
25869 2009-07-22  Peter Simons  <simons@cryp.to>
25870
25871         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25872         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25873         * lib/md4.h: Likewise.
25874         * lib/md5.h: Likewise.
25875         * lib/sha1.h: Likewise.
25876         * lib/sha256.h: Likewise.
25877         * lib/sha512.h: Likewise.
25878
25879         tests-sha1: don't assign literal string to 'char *' variable
25880         * tests/test-sha1.c (main): Declare locals with "const" to match
25881         attributes of the right hand side.
25882
25883 2009-07-21  Eric Blake  <ebb9@byu.net>
25884
25885         dup2: fix more mingw problems
25886         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25887         fd to itself.
25888         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25889         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25890         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25891         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25892         care of mingw bugs.
25893
25894 2009-07-21  Jim Meyering  <meyering@redhat.com>
25895
25896         vc-list-files: avoid failure when /bin/sh is dash
25897         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25898         On some Debian based systems, /bin/sh is a symlink to dash, and running
25899         this command would omit the "/" following each 'tests' prefix:
25900           dash -x build-aux/vc-list-files -C . tests
25901         That is because bash and dash work differently:
25902           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25903           bash ok
25904           dash odd
25905
25906 2009-07-21  Eric Blake  <ebb9@byu.net>
25907
25908         dup2-tests: test previous patch
25909         * modules/dup2-tests: New file.
25910         * tests/test-dup2.c: Likewise.
25911         * tests/test-open.c (main): Avoid unspecified behavior.
25912         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25913         test.
25914
25915         dup2: work around mingw and cygwin 1.5 bug
25916         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25918         * modules/unistd (Makefile.am): Substitute it.
25919         * lib/unistd.in.h (dup2): Declare the replacement.
25920         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25921         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25922         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25923         * modules/execute (Depends-on): Add dup2.
25924         * modules/fseterr (Depends-on): Likewise.
25925         * modules/pipe (Depends-on): Likewise.
25926         * modules/posix_spawn-internal (Depends-on): Likewise.
25927
25928 2009-07-21  Bruno Haible  <bruno@clisp.org>
25929
25930         * modules/.gitattributes: New file.
25931
25932 2009-07-20  Bruno Haible  <bruno@clisp.org>
25933
25934         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25935         (main): Use it.
25936
25937 2009-07-20  Eric Blake  <ebb9@byu.net>
25938
25939         test-pipe: make a bit more robust.
25940         * tests/test-pipe.c (myerr): Allow error messages regardless of
25941         what we do to stderr.
25942         (test_pipe): Rearrange to avoid deadlock.
25943         (child_main): Try a larger read, to ensure we avoided deadlock.
25944         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25945         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25946         if misused.
25947
25948 2009-07-19  Jim Meyering  <meyering@redhat.com>
25949
25950         fts: avoid false-positive cycle-detection
25951         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25952         for each new command line argument.
25953
25954 2009-07-19  Bruno Haible  <bruno@clisp.org>
25955
25956         Fix build error on mingw with the modules sys_select and unistd.
25957         * modules/acl-tests (Depends-on): Add close.
25958         * modules/binary-io-tests (Depends-on): Likewise.
25959         * modules/closein-tests (Depends-on): Likewise.
25960         * modules/flock-tests (Depends-on): Likewise.
25961         * modules/fsync-tests (Depends-on): Likewise.
25962         * modules/lseek-tests (Depends-on): Likewise.
25963         * modules/pipe-tests (Depends-on): Likewise.
25964         * modules/posix_spawn-tests (Depends-on): Likewise.
25965         * modules/posix_spawnp-tests (Depends-on): Likewise.
25966         * modules/stat-time-tests (Depends-on): Likewise.
25967         * modules/yesno-tests (Depends-on): Likewise.
25968
25969 2009-07-19  Bruno Haible  <bruno@clisp.org>
25970
25971         Unify conditionals.
25972         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25973         macros, not at the compiler macros.
25974         * lib/pipe.c: Likewise.
25975         * lib/execute.c: Likewise.
25976         * lib/spawni.c: Likewise.
25977
25978 2009-07-19  Bruno Haible  <bruno@clisp.org>
25979
25980         Fix handling of closed stdin/stdout/stderr on mingw.
25981         * lib/w32spawn.h: Include unistd.h.
25982         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25983         file descriptor with O_NOINHERIT flag.
25984         (fd_safer_noinherit): New function, based on fd-safer.c.
25985         (dup_safer_noinherit): New function, based on dup-safer.c.
25986         (undup_safer_noinherit): New function.
25987         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25988         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25989         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25990         instead of fd_safer.
25991         * tests/test-pipe.c: Include <windows.h>.
25992         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25993
25994         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25995         from main.
25996         (test_pipe): Pass an extra argument for disambiguation.
25997         (main): Invoke parent_main or child_main.
25998
25999         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26000         consistently.
26001
26002 2009-07-18  Eric Blake  <ebb9@byu.net>
26003
26004         test-pipe: fix mingw build
26005         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26006
26007 2009-07-18  Bruno Haible  <bruno@clisp.org>
26008
26009         * modules/pipe-tests (Makefile.am): Fix typo.
26010
26011 2009-07-18  Eric Blake  <ebb9@byu.net>
26012
26013         error: fix mingw build
26014         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26015         Reported by Bruno Haible.
26016
26017         error: avoid undefined use of stdout
26018         * lib/error.c (error, error_at_line): Check that fd 1 is open
26019         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26020         is handling faults and the close_stdout module wants to report the
26021         detection of closed stdout as an error.
26022
26023 2009-07-17  Eric Blake  <ebb9@byu.net>
26024
26025         pipe: be robust in face of closed fds
26026         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26027         should cause child to misbehave.
26028         * modules/pipe-tests: New module.
26029         * tests/test-pipe.c: New file.
26030         * tests/test-pipe.sh: New file.
26031         Reported by Akim Demaille.
26032
26033 2009-07-14  Bruno Haible  <bruno@clisp.org>
26034
26035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26036         Reported by anonymous kc.
26037
26038 2009-07-07  Jim Meyering  <meyering@redhat.com>
26039
26040         maint.mk: don't look for translatable strings in *.m4 or *.mk
26041         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26042         when searching for translatable strings.
26043
26044 2009-07-05  Jim Meyering  <meyering@redhat.com>
26045
26046         remove superfluous parentheses in STREQ definition
26047         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26048         * lib/getugroups.c (STREQ): Likewise.
26049         * lib/fnmatch.c (STREQ): Likewise.
26050         Spotted by Bruno Haible.
26051
26052 2009-07-04  Jim Meyering  <meyering@redhat.com>
26053
26054         argv-iter: new module
26055         * MODULES.html.sh: Add argv-iter.
26056         * lib/argv-iter.c, lib/argv-iter.h: New files.
26057         * modules/argv-iter: New file.
26058         * modules/argv-iter-tests: New file.
26059         * tests/test-argv-iter.c: Test it.
26060
26061 2009-07-04  Bruno Haible  <bruno@clisp.org>
26062
26063         Fix assertion.
26064         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26065         contains more exact copies of a given entry than file2, leave the extra
26066         copies unpaired rather than aborting.
26067         Reported by Eric Blake.
26068
26069 2009-07-02  Bruno Haible  <bruno@clisp.org>
26070
26071         Speedup git-merge-changelog for git cherry-pick.
26072         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26073         (entries_mapping_get): New function, extracted from compute_mapping.
26074         (entries_mapping_reverse_get): New function.
26075         (compute_mapping): Add a 'full' argument. Return the result in a
26076         'struct entries_mapping'.
26077         (main): Update. Access the mappings through entries_mapping_get.
26078         Reported by Eric Blake.
26079
26080 2009-07-02  Bruno Haible  <bruno@clisp.org>
26081
26082         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26083         best_i.
26084
26085 2009-07-02  Bruno Haible  <bruno@clisp.org>
26086
26087         Speed up approximate search for matching ChangeLog entries.
26088         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26089         argument. Call fstrcmp_bounded instead of fstrcmp.
26090         (compute_mapping, try_split_merged_entry, main): Update callers.
26091
26092 2009-07-02  Bruno Haible  <bruno@clisp.org>
26093
26094         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26095
26096 2009-06-30  Bruno Haible  <bruno@clisp.org>
26097
26098         Reduce the number of uc_is_cased calls.
26099         * lib/unicase.h (casing_suffix_context_t): Add
26100         'first_char_except_ignorable' field.
26101         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26102         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26103         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26104         Update initializer.
26105         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26106         case-ignorable characters.
26107         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26108         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26109         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26110         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26111         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26112
26113 2009-06-30  Bruno Haible  <bruno@clisp.org>
26114
26115         Tests for module 'unicase/ignorable'.
26116         * modules/unicase/ignorable-tests: New file.
26117         * tests/unicase/test-ignorable.c: New file, generated by
26118         gen-uni-tables.
26119
26120         Tests for module 'unicase/cased'.
26121         * modules/unicase/cased-tests: New file.
26122         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26123         * tests/unicase/test-predicate-part1.h: New file, derived from
26124         tests/unictype/test-predicate-part1.h.
26125         * tests/unicase/test-predicate-part2.h: New file, same as
26126         tests/unictype/test-predicate-part2.h.
26127
26128         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26129         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26130         (output_casing_properties): New function.
26131         (main): Call it.
26132         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26133         * lib/unicase/cased.c: Include unictype/bitmap.h.
26134         (uc_is_cased): Define through a bitmap lookup.
26135         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26136         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26137         (uc_is_case_ignorable): Define through a bitmap lookup.
26138         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26139         lib/unictype/bitmap.h.
26140         (Depends-on): Add inline. Clean up.
26141         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26142         lib/unictype/bitmap.h.
26143         (Depends-on): Add inline. Clean up.
26144         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26145         recognition.
26146         * tests/unicase/test-u16-tolower.c (main): Likewise.
26147         * tests/unicase/test-u32-tolower.c (main): Likewise.
26148
26149 2009-06-30  Bruno Haible  <bruno@clisp.org>
26150
26151         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26152         * lib/unicase/u16-casemap.c: Likewise.
26153         * lib/unicase/u32-casemap.c: Likewise.
26154
26155 2009-06-29  Bruno Haible  <bruno@clisp.org>
26156
26157         Define u32_casefold as a wrapper around u32_ct_casefold.
26158         * lib/unicase/u32-casefold.c: Update.
26159         * modules/unicase/u32-casefold (Depends-on): Add
26160         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26161         unicase/empty-suffix-context. Clean up.
26162
26163         Define u16_casefold as a wrapper around u16_ct_casefold.
26164         * lib/unicase/u16-casefold.c: Update.
26165         * modules/unicase/u16-casefold (Depends-on): Add
26166         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26167         unicase/empty-suffix-context. Clean up.
26168
26169         Define u8_casefold as a wrapper around u8_ct_casefold.
26170         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26171         * lib/unicase/u8-casefold.c: Update.
26172         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26173         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26174
26175         Define u32_totitle as a wrapper around u32_ct_totitle.
26176         * lib/unicase/u32-totitle.c: Update.
26177         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26178         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26179
26180         Define u16_totitle as a wrapper around u16_ct_totitle.
26181         * lib/unicase/u16-totitle.c: Update.
26182         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26183         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26184
26185         Define u8_totitle as a wrapper around u8_ct_totitle.
26186         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26187         functions.
26188         (FUNC): Delegate to U_CT_TOTITLE.
26189         * lib/unicase/u8-totitle.c: Update.
26190         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26191         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26192
26193         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26194         invocation.
26195         * modules/unicase/u32-tolower (Depends-on): Add
26196         unicase/empty-prefix-context, unicase/empty-suffix-context.
26197
26198         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26199         invocation.
26200         * modules/unicase/u16-tolower (Depends-on): Add
26201         unicase/empty-prefix-context, unicase/empty-suffix-context.
26202
26203         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26204         * modules/unicase/u8-tolower (Depends-on): Add
26205         unicase/empty-prefix-context, unicase/empty-suffix-context.
26206
26207         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26208         invocation.
26209         * modules/unicase/u32-toupper (Depends-on): Add
26210         unicase/empty-prefix-context, unicase/empty-suffix-context.
26211
26212         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26213         invocation.
26214         * modules/unicase/u16-toupper (Depends-on): Add
26215         unicase/empty-prefix-context, unicase/empty-suffix-context.
26216
26217         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26218         * modules/unicase/u8-toupper (Depends-on): Add
26219         unicase/empty-prefix-context, unicase/empty-suffix-context.
26220
26221         New module 'unicase/u32-ct-casefold'.
26222         * lib/unicase/u32-ct-casefold.c: New file.
26223         * modules/unicase/u32-ct-casefold: New file.
26224
26225         New module 'unicase/u16-ct-casefold'.
26226         * lib/unicase/u16-ct-casefold.c: New file.
26227         * modules/unicase/u16-ct-casefold: New file.
26228
26229         New module 'unicase/u8-ct-casefold'.
26230         * lib/unicase/u8-ct-casefold.c: New file.
26231         * lib/unicase/u-ct-casefold.h: New file, derived from
26232         lib/unicase/u-casefold.h.
26233         * modules/unicase/u8-ct-casefold: New file.
26234
26235         New module 'unicase/u32-ct-totitle'.
26236         * lib/unicase/u32-ct-totitle.c: New file.
26237         * modules/unicase/u32-ct-totitle: New file.
26238
26239         New module 'unicase/u16-ct-totitle'.
26240         * lib/unicase/u16-ct-totitle.c: New file.
26241         * modules/unicase/u16-ct-totitle: New file.
26242
26243         New module 'unicase/u8-ct-totitle'.
26244         * lib/unicase/u8-ct-totitle.c: New file.
26245         * lib/unicase/u-ct-totitle.h: New file, derived from
26246         lib/unicase/u-totitle.h.
26247         * modules/unicase/u8-ct-totitle: New file.
26248
26249         New module 'unicase/u32-ct-tolower'.
26250         * lib/unicase/u32-ct-tolower.c: New file.
26251         * modules/unicase/u32-ct-tolower: New file.
26252
26253         New module 'unicase/u16-ct-tolower'.
26254         * lib/unicase/u16-ct-tolower.c: New file.
26255         * modules/unicase/u16-ct-tolower: New file.
26256
26257         New module 'unicase/u8-ct-tolower'.
26258         * lib/unicase/u8-ct-tolower.c: New file.
26259         * modules/unicase/u8-ct-tolower: New file.
26260
26261         New module 'unicase/u32-ct-toupper'.
26262         * lib/unicase/u32-ct-toupper.c: New file.
26263         * modules/unicase/u32-ct-toupper: New file.
26264
26265         New module 'unicase/u16-ct-toupper'.
26266         * lib/unicase/u16-ct-toupper.c: New file.
26267         * modules/unicase/u16-ct-toupper: New file.
26268
26269         New module 'unicase/u8-ct-toupper'.
26270         * lib/unicase/u8-ct-toupper.c: New file.
26271         * modules/unicase/u8-ct-toupper: New file.
26272
26273         Add context arguments to u*_casemap functions.
26274         * lib/unicase/unicasemap.h: Include unicase.h.
26275         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26276         suffix_context arguments.
26277         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26278         functions.
26279         (FUNC): Add prefix_context and suffix_context arguments. Use
26280         uc_is_cased and uc_is_case_ignorable.
26281         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26282         * lib/unicase/u16-casemap.c: Likewise.
26283         * lib/unicase/u32-casemap.c: Likewise.
26284         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26285         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26286         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26287         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26288         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26289         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26290
26291         New module 'unicase/u32-suffix-context'.
26292         * lib/unicase/u32-suffix-context.c: New file.
26293         * modules/unicase/u32-suffix-context: New file.
26294
26295         New module 'unicase/u16-suffix-context'.
26296         * lib/unicase/u16-suffix-context.c: New file.
26297         * modules/unicase/u16-suffix-context: New file.
26298
26299         New module 'unicase/u8-suffix-context'.
26300         * lib/unicase/u8-suffix-context.c: New file.
26301         * lib/unicase/u-suffix-context.h: New file.
26302         * modules/unicase/u8-suffix-context: New file.
26303
26304         New module 'unicase/empty-suffix-context'.
26305         * lib/unicase/empty-suffix-context.c: New file.
26306         * modules/unicase/empty-suffix-context: New file.
26307
26308         New module 'unicase/u32-prefix-context'.
26309         * lib/unicase/u32-prefix-context.c: New file.
26310         * modules/unicase/u32-prefix-context: New file.
26311
26312         New module 'unicase/u16-prefix-context'.
26313         * lib/unicase/u16-prefix-context.c: New file.
26314         * modules/unicase/u16-prefix-context: New file.
26315
26316         New module 'unicase/u8-prefix-context'.
26317         * lib/unicase/u8-prefix-context.c: New file.
26318         * lib/unicase/u-prefix-context.h: New file.
26319         * lib/unicase/context.h: New file.
26320         * modules/unicase/u8-prefix-context: New file.
26321
26322         New module 'unicase/empty-prefix-context'.
26323         * lib/unicase/empty-prefix-context.c: New file.
26324         * modules/unicase/empty-prefix-context: New file.
26325
26326         New module 'unicase/ignorable'.
26327         * lib/unicase/ignorable.c: New file.
26328         * modules/unicase/ignorable: New file.
26329
26330         New module 'unicase/cased'.
26331         * lib/unicase/caseprop.h: New file.
26332         * lib/unicase/cased.c: New file.
26333         * modules/unicase/cased: New file.
26334
26335         New functions for case mapping of substrings.
26336         * lib/unicase.h (casing_prefix_context_t): New type.
26337         (unicase_empty_prefix_context): New variable.
26338         (u8_casing_prefix_context, u16_casing_prefix_context,
26339         u32_casing_prefix_context, u8_casing_prefixes_context,
26340         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26341         declarations.
26342         (casing_suffix_context_t): New type.
26343         (unicase_empty_suffix_context): New variable.
26344         (u8_casing_suffix_context, u16_casing_suffix_context,
26345         u32_casing_suffix_context, u8_casing_suffixes_context,
26346         u16_casing_suffixes_context, u32_casing_suffixes_context,
26347         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26348         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26349         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26350         declarations.
26351
26352 2009-06-28  Jim Meyering  <meyering@redhat.com>
26353
26354         boostrap: indent only with spaces
26355         * build-aux/bootstrap: Indent only with spaces, never TABs.
26356
26357         bootstrap: split long lines
26358         * build-aux/bootstrap: Keep line length < 80.
26359
26360         bootstrap: sync from coreutils
26361         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26362         just as autoreconf does.  Verify a list of prerequisite
26363         package-name,version-number pairs if defined in bootstrap.conf.
26364         Refer to README-prereq, if prerequisites are not satisfied.
26365
26366 2009-06-27  Eric Blake  <ebb9@byu.net>
26367
26368         tests: add test for bogus NULL definition
26369         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26370         * tests/test-stdlib.c: Likewise.
26371         * tests/test-string.c: Likewise.
26372         * tests/test-locale.c: Likewise.
26373         * tests/test-unistd.c: Likewise.
26374         * modules/stdio-tests (Depends-on): Add verify.
26375         * modules/stdlib-tests (Depends-on): Likewise.
26376         * modules/string-tests (Depends-on): Likewise.
26377         * modules/locale-tests (Depends-on): Likewise.
26378         * modules/unistd-tests (Depends-on): Likewise.
26379
26380 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26381
26382         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26383         self-explaining comment.
26384         * m4/selinux-selinux-h: Update serial.
26385         (gl_LIBSELINUX): New macro, adding a warning for missing development
26386         packages to code extracted from...
26387         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26388         Add warning for missing development packages here, too.
26389
26390 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26391
26392         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26393
26394 2009-06-25  Eric Blake  <ebb9@byu.net>
26395
26396         version-etc: fix regression
26397         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26398         gcc.
26399         (version_etc): Use it, to catch bugs with trailing NULL.
26400         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26401         (version_etc_va): Fix logic bug.
26402         * modules/version-etc-tests: Add test.
26403         * tests/test-version-etc.c: New file.
26404         * tests/test-version-etc.sh: Likewise.
26405
26406 2009-06-25  Sam Steingold  <sds@gnu.org>
26407
26408         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26409         mbtowc declaration.
26410
26411 2009-06-25  Eric Blake  <ebb9@byu.net>
26412
26413         fpurge: migrate into <stdio.h>
26414         * lib/fpurge.h: Delete...
26415         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26416         * lib/fpurge.c (fpurge): Change declaring header.
26417         * modules/fpurge (Files): Drop deleted file.
26418         (Depends-on): Add stdio.
26419         (configure.ac): Set witness.
26420         * modules/stdio (Makefile.am): Support fpurge macros.
26421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26422         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26423         * lib/fflush.c: Update client.
26424         * tests/test-fpurge.c: Likewise.
26425         * NEWS: Mention the change.
26426
26427 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26428
26429         * lib/argp-version-etc.c (program_authors): Add const
26430         qualifier.
26431         * lib/version-etc.c: Fix typos in the comments.
26432         * modules/argp-version-etc: Depends on version-etc.
26433
26434 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26435
26436         argp-version-etc: new module.
26437
26438         * lib/argp-version-etc.c: New file.
26439         * lib/argp-version-etc.h: New file.
26440         * modules/argp-version-etc: New file.
26441         * modules/argp-version-etc-tests: New file.
26442         * tests/test-argp-version-etc.c: New test.
26443         * tests/test-argp-version-etc-1.sh: New test.
26444
26445 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26446
26447         Provide additional interfaces and documentation for version-etc
26448         module.
26449
26450         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26451         interfaces.
26452         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26453         prototypes.
26454
26455 2009-06-24  Bruno Haible  <bruno@clisp.org>
26456
26457         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26458         HAVE_LIB${NAME} macro.
26459         Reported by Sam Steingold <sds@gnu.org>.
26460
26461 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26462
26463         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26464         needed.
26465
26466 2009-06-21  Bruno Haible  <bruno@clisp.org>
26467
26468         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26469         work.
26470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26471         together with LIB${NAME}, LTLIB${NAME}.
26472         Reported by Sam Steingold <sds@gnu.org>.
26473
26474 2009-06-20  Jim Meyering  <meyering@redhat.com>
26475
26476         tests: make sc_require_test_exit_idiom more generic
26477         * top/maint.mk (Exit_witness_file): New overridable variable.
26478         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26479         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26480
26481 2009-06-19  Jim Meyering  <meyering@redhat.com>
26482
26483         hash: reverse order of src/dst parameters in an internal interface
26484         * lib/hash.c (transfer_entries): Reverse order of parameters to
26485         put DST before SRC.  Adjust callers.
26486
26487         tests: test-hash: avoid wholesale duplication
26488         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26489         Instead, use a loop and add a single conditional.
26490
26491         tests: test-hash: allow seed selection via a command line argument
26492         * tests/test-hash.c (get_seed): New function.
26493         (main): Use it.
26494
26495 2009-06-19  Eric Blake  <ebb9@byu.net>
26496
26497         hash: avoid memory leak on allocation failure
26498         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26499         failure.  Factor repeated algorithm...
26500         (transfer_entries): ...into new helper routine.
26501         (hash_delete): React to hash_rehash return value.
26502
26503         hash: reduce memory pressure in hash_rehash no-op case
26504         * lib/hash.c (next_prime): Avoid overflow.
26505         (hash_initialize): Factor bucket size computation...
26506         (compute_bucket_size): ...into new helper function.
26507         (hash_rehash): Use new function and open coding to reduce memory
26508         pressure, and avoid a memory leak in USE_OBSTACK code.
26509         Reported by Jim Meyering.
26510
26511 2009-06-18  Eric Blake  <ebb9@byu.net>
26512
26513         hash: make rotation more obvious
26514         * modules/hash (Depends-on): Add bitrotate and stdint.
26515         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26516         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26517         (SIZE_MAX): Rely on headers for definition.
26518         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26519         (raw_hasher): Use rotr_sz.
26520         Suggested by Jim Meyering.
26521
26522         hash: fix memory leak in last patch
26523         * lib/hash.c (hash_rehash): Avoid memory leak.
26524
26525         hash: avoid no-op rehashing
26526         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26527
26528         hash: provide default callback functions
26529         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26530         (hash_initialize): Use them as defaults.
26531         * tests/test-hash.c (main): Test this.
26532
26533         hash: minor optimization
26534         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26535         when possible.
26536         (hash_initialize): Document this promise.
26537         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26538         * tests/test-hash.c (hash_compare_strings): Test this.
26539
26540 2009-06-18  Bruno Haible  <bruno@clisp.org>
26541
26542         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26543         going to be replaced anyway.
26544
26545 2009-06-18  Bruno Haible  <bruno@clisp.org>
26546
26547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26548         in one place.
26549         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26550         be replaced anyway.
26551
26552 2009-06-18  Eric Blake  <ebb9@byu.net>
26553
26554         hash: check for resize before insertion
26555         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26556         threshold before insertion, so that a pathological hash_rehash
26557         that fills every bucket can still trigger another rehash.
26558
26559 2009-06-18  Jim Meyering  <meyering@redhat.com>
26560
26561         hash-tests: add a loop around the small tests
26562         * tests/test-hash.c (main): Repeat small tests with selected
26563         small initial table sizes.
26564
26565 2009-06-17  Eric Blake  <ebb9@byu.net>
26566
26567         hash: minor cleanups
26568         * lib/hash.h (hash_entry): Make opaque, by moving...
26569         * lib/hash.c (hash_entry): ...here.
26570         (hash_insert): Clarify restrictions on what can be inserted.
26571         (hash_get_next): Clarify when it is safe to remove an element
26572         during traversal.
26573         (check_tuning): Skip verification when tuning is known safe.
26574         (hash_initialize): Clarify restrictions on tuning.
26575
26576 2009-06-17  Jim Meyering  <jim@meyering.net>
26577         and Eric Blake  <ebb9@byu.net>
26578
26579         hash-tests: new module
26580         * modules/hash-tests: New file.
26581         * tests/test-hash.c: New file.
26582
26583 2009-06-17  Eric Blake  <ebb9@byu.net>
26584
26585         strstr-simple: document new module
26586         * MODULES.html.sh: Document new module.
26587
26588         strstr, strcasestr: replace on platforms with broken memchr
26589         * modules/strstr: Split into...
26590         * modules/strstr-simple: ...new module that does not care about
26591         performance, but does care about glibc bug.
26592         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26593         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26594         if platform memchr is broken, per Debian bug 521737.
26595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26596         memchr.
26597         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26598         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26599         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26600         * modules/mountlist (Depends-on): Add strstr-simple.
26601         * modules/gen-uni-tables (Depends-on): Likewise.
26602         * modules/argz (Depends-on): Add strstr.
26603
26604 2009-06-17  Bruno Haible  <bruno@clisp.org>
26605
26606         * modules/posix_spawn-internal (Depends-on): Add errno.
26607
26608 2009-06-17  Bruno Haible  <bruno@clisp.org>
26609
26610         Define missing ESTALE on Interix 3.5.
26611         * lib/errno.in.h (ESTALE): Assign a value if missing.
26612         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26614         missing.
26615         * doc/posix-headers/errno.texi: Mention the Interix bug.
26616         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26617
26618 2009-06-15  Eric Blake  <ebb9@byu.net>
26619
26620         memchr, memchr2: add valgrind exception
26621         * lib/memchr.valgrind: New file.
26622         * lib/memchr2.valgrind: New file.
26623         * modules/memchr (Files): Distribute valgrind file.
26624         * modules/memchr2 (Files): Likewise.
26625
26626         docs: memchr is no longer obsolete
26627         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26628         * lib/string.in.h (memchr): Simplify logic.
26629
26630 2009-06-14  Jim Meyering  <meyering@redhat.com>
26631
26632         link-follow: fix the "checking..." message to not mention trailing slash
26633         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26634         never considered trailing slashes.
26635
26636 2009-06-14  Bruno Haible  <bruno@clisp.org>
26637
26638         * m4/memchr.m4: Mention also the bug on IA-64.
26639         * doc/posix-functions/memchr.texi: Likewise.
26640
26641 2009-06-12  Eric Blake  <ebb9@byu.net>
26642
26643         memchr: detect broken x86_64 and alpha implementations
26644         * modules/memchr-tests (Depends-on): Move mmap detection...
26645         * modules/memchr (Depends-on): ...here.
26646         (configure.ac): Set indicator.
26647         * lib/string.in.h (memchr): Declare replacement.
26648         * modules/string (Makefile.am): Trigger replacement.
26649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26650         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26651         bugs.
26652         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26653         * modules/getpagesize (License): Relax license.
26654
26655 2009-06-11  Bruno Haible  <bruno@clisp.org>
26656
26657         * lib/idpriv.h: Add more references.
26658
26659 2009-06-08  Bruno Haible  <bruno@clisp.org>
26660
26661         Tests for module 'idpriv-droptemp'.
26662         * modules/idpriv-droptemp-tests: New file.
26663         * tests/test-idpriv-droptemp.sh: New file.
26664         * tests/test-idpriv-droptemp.su.sh: New file.
26665         * tests/test-idpriv-droptemp.c: New file.
26666
26667         New module 'idpriv-droptemp'.
26668         * lib/idpriv-droptemp.c: New file.
26669         * modules/idpriv-droptemp: New file.
26670
26671 2009-06-08  Bruno Haible  <bruno@clisp.org>
26672
26673         Tests for module 'idpriv-drop'.
26674         * modules/idpriv-drop-tests: New file.
26675         * tests/test-idpriv-drop.sh: New file.
26676         * tests/test-idpriv-drop.su.sh: New file.
26677         * tests/test-idpriv-drop.c: New file.
26678
26679         New module 'idpriv-drop'.
26680         * lib/idpriv.h: New file.
26681         * lib-idpriv-drop.c: New file.
26682         * m4/idpriv.m4: New file.
26683         * modules/idpriv-drop: New file.
26684
26685 2009-06-08  Bruno Haible  <bruno@clisp.org>
26686
26687         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26690         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26691         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26692         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26694
26695 2009-06-08  Eric Blake  <ebb9@byu.net>
26696
26697         test-strstr: use memory fence, when possible
26698         * tests/test-strstr.c (main): Use memory fence, in order to be
26699         more likely to trigger Debian bug 521737.
26700         * modules/strstr-tests (Files): Pull in additional files.
26701
26702         memchr: no longer obsolete, for wider field testing
26703         * modules/memchr (Status, Notice): Delete, this module is no
26704         longer obsolete.
26705         * modules/vasnprintf (Depends-on): Add memchr.
26706
26707 2009-06-07  Jim Meyering  <meyering@redhat.com>
26708
26709         hash: declare some functions with the warn_unused_result attribute
26710         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26711
26712 2009-06-07  Bruno Haible  <bruno@clisp.org>
26713
26714         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26715         Reported by Eric Blake.
26716
26717 2009-06-06  Eric Blake  <ebb9@byu.net>
26718
26719         test-alignof: fix typo with long double
26720         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26721         compiler error.
26722
26723 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26724
26725         Escape non-texinfo { and }s.
26726         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26727         markup error.
26728
26729 2009-06-04  Jim Meyering  <meyering@redhat.com>
26730
26731         gitlog-to-changelog: don't infloop on an empty commit log
26732         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26733         Reported by Boris Petersen <transacid@centerim.org>.
26734
26735 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26736
26737         version-etc: extend for packagers
26738         Add three new configure options, intended for packagers:
26739           --with-packager="packager name"
26740           --with-packager-version="packager-specific version"
26741           --with-packager-bug-reports="packager bug reporting"
26742         An example with coreutils:
26743           $ ./configure \
26744             --with-packager=Gentoo \
26745             --with-packager-bug-report=http://bugs.gentoo.org/ \
26746             --with-packager-version="patchset 1.6"
26747           $ ./src/ls --version | head -n2
26748           ls (GNU coreutils) 7.1-dirty
26749           Packaged by Gentoo (patchset 1.6)
26750         Note that the bug reporting info via --help doesn't show up because
26751         coreutils uses its own custom emit_bug_reporting_address() implementation
26752         in src/system.h.  If it didn't, it'd look like:
26753           $ ./src/ls --help | tail -n4
26754           Report bugs to <bug-coreutils@gnu.org>.
26755           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26756           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26757           General help using GNU software: <http://www.gnu.org/gethelp/>.
26758         * lib/version-etc.c: Print new information, if provided.
26759         * m4/version-etc.m4: New file.
26760         * modules/version-etc (Files): Add m4/version-etc.m4.
26761         (configure.ac): Add gl_VERSION_ETC.
26762
26763 2009-05-31  Bruno Haible  <bruno@clisp.org>
26764
26765         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26766         and 'int64_t'.
26767         * modules/alignof-tests (Dependencies): Add stdint.
26768         Reported by Eric Blake.
26769
26770 2009-05-31  Bruno Haible  <bruno@clisp.org>
26771
26772         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26773         restriction due to compiler bugs.
26774         Reported by Eric Blake.
26775
26776 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26777             Bruno Haible  <bruno@clisp.org>
26778
26779         Fix test-alignof failure.
26780         * lib/alignof.h (alignof_slot): New macro.
26781         (alignof_type): New macro, with the same semantics as the previous
26782         'alignof'.
26783         (alignof): Alias to alignof_slot.
26784         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26785         check that the results are usable as constant expressions.
26786
26787 2009-05-31  Bruno Haible  <bruno@clisp.org>
26788
26789         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26790         * tests/test-memchr.c (main): Check that memchr does not read past the
26791         first occurrence of the byte.
26792         * tests/test-strstr.c (main): Update comment.
26793         Suggested by Eric Blake.
26794
26795 2009-05-30  Bruno Haible  <bruno@clisp.org>
26796
26797         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26798         detail how to use dumpbin.
26799         Reported by David Byron <dbyron@dbyron.com>.
26800
26801 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26802
26803         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26804
26805 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26806
26807         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26808
26809 2009-05-28  Bruno Haible  <bruno@clisp.org>
26810
26811         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26812         build-aux/ files.
26813
26814 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26815
26816         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26817
26818 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26819
26820         * gnulib-tool (sed_transform_main_lib_file)
26821         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26822         regexps.
26823
26824 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26825
26826         * tests/test-strstr.c: Add another self-test.
26827         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26828         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26829
26830 2009-05-23  Bruno Haible  <bruno@clisp.org>
26831
26832         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26833         change.
26834
26835 2009-05-21  Bruno Haible  <bruno@clisp.org>
26836
26837         Simplify use of mode_t varargs.
26838         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26839         uses 'mode_t' or 'int'.
26840         * lib/openat.c (openat): Likewise.
26841         * lib/open-safer.c (open_safer): Likewise.
26842         * m4/mode_t.m4: New file.
26843         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26844         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26845         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26846         * modules/open (Files): Add m4/mode_t.m4.
26847         * modules/openat (Files): Likewise.
26848         * modules/fcntl-safer (Files): Likewise.
26849         Suggested by Eric Blake.
26850
26851 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26852
26853         * doc/glibc-functions/fallocate.texi: New file.
26854         * doc/gnulib.texi: Include it.
26855
26856 2009-05-21  Eric Blake  <ebb9@byu.net>
26857             Bruno Haible  <bruno@clisp.org>
26858
26859         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26860         invocations.
26861         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26862
26863 2009-05-21  Eric Blake  <ebb9@byu.net>
26864             Bruno Haible  <bruno@clisp.org>
26865
26866         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26867         include_next. Fix of 2008-11-20 commit.
26868         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26869         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26870         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26871         NEXT_MATH_H.
26872         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26873         instead of NEXT_MATH_H.
26874
26875 2009-05-21  Bruno Haible  <bruno@clisp.org>
26876
26877         Avoid redefinition warnings for SIZE_MAX.
26878         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26879         Reported by Simon Josefsson.
26880
26881 2009-05-21  Bruno Haible  <bruno@clisp.org>
26882
26883         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26884         AC_CACHE_VAL.
26885
26886 2009-05-20  Bruno Haible  <bruno@clisp.org>
26887
26888         Make zeroptr.h work on mingw.
26889         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26890         mprotect.
26891         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26892         * modules/memchr2-tests (configure.ac): Likewise.
26893         * modules/memcmp-tests (configure.ac): Likewise.
26894         * modules/memmem-tests (configure.ac): Likewise.
26895         * modules/memrchr-tests (configure.ac): Likewise.
26896         Reported by Simon Josefsson.
26897
26898 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26899
26900         * tests/test-glob.c: Include string.h for strcmp prototype.
26901
26902 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26903
26904         * modules/getdelim (Depends-on): Add explicit stdint, although it
26905         was implicitly already pulled in via realloc-posix.
26906         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26907
26908 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26909
26910         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26911         G. Christensen" <tgc@jupiterrise.com>.
26912         * m4/sys_socket_h.m4: Check for sa_family_t.
26913         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26914         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26915         * tests/test-sys_socket.c: Check that sa_family_t works.
26916
26917 2009-05-18  Eric Blake  <ebb9@byu.net>
26918
26919         maint.mk: allow gnulib_dir in VPATH build
26920         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26921
26922 2009-05-15  Jim Meyering  <meyering@redhat.com>
26923
26924         maint.mk: Give gnulib_dir a default definition.
26925         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26926         Thus, most packages no longer need to specify this variable in cfg.mk
26927
26928 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26929
26930         rename.m4: fix typos that would make non-mingw cross-configure fail
26931         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26932
26933 2009-05-13  Eric Blake  <ebb9@byu.net>
26934
26935         mmap-anon: avoid out-of-order autoconf expansion
26936         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26937         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26938         * modules/memchr-tests (Depends-on): Add extensions.
26939         * modules/memchr2-tests (Depends-on): Add extensions.
26940         * modules/memcmp-tests (Depends-on): Add extensions.
26941         * modules/memmem-tests (Depends-on): Add extensions.
26942         * modules/memrchr-tests (Depends-on): Add extensions.
26943
26944 2009-05-13  Bruno Haible  <bruno@clisp.org>
26945
26946         Make some tests ISO C 99 compliant.
26947         * tests/zerosize-ptr.h: New file.
26948         * tests/test-memchr.c: Include zerosize-ptr.h.
26949         (main): Use a zero-size object pointer instead of NULL.
26950         * tests/test-memchr2.c: Include zerosize-ptr.h.
26951         (main): Use a zero-size object pointer instead of NULL.
26952         * tests/test-memcmp.c: Include zerosize-ptr.h.
26953         (main): Use a zero-size object pointer instead of NULL.
26954         * tests/test-memmem.c: Include zerosize-ptr.h.
26955         (main): Use a zero-size object pointer instead of NULL.
26956         * tests/test-memrchr.c: Include zerosize-ptr.h.
26957         (main): Use a zero-size object pointer instead of NULL.
26958         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26959         m4/mmap-anon.m4.
26960         (Depends-on): Add getpagesize.
26961         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26962         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26963         m4/mmap-anon.m4.
26964         (Depends-on): Add getpagesize.
26965         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26966         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26967         m4/mmap-anon.m4.
26968         (Depends-on): Add getpagesize.
26969         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26970         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26971         m4/mmap-anon.m4.
26972         (Depends-on): Add getpagesize.
26973         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26974         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26975         m4/mmap-anon.m4.
26976         (Depends-on): Add getpagesize.
26977         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26978
26979 2009-05-12  Bruno Haible  <bruno@clisp.org>
26980
26981         Tests for module 'alignof'.
26982         * modules/alignof-tests: New file.
26983         * tests/test-alignof.c: New file.
26984
26985 2009-05-12  Bruno Haible  <bruno@clisp.org>
26986
26987         Fix alignof macro.
26988         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26989         vendor compilers that are always correct.
26990
26991 2009-05-12  Bruno Haible  <bruno@clisp.org>
26992
26993         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26994         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26995         not whether its fully works.
26996
26997 2009-05-12  Bruno Haible  <bruno@clisp.org>
26998
26999         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27000
27001 2009-05-12  Jim Meyering  <meyering@redhat.com>
27002
27003         * top/maint.mk: Adjust backslash alignment.
27004
27005 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27006
27007         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27008
27009 2009-05-11  Eric Blake  <ebb9@byu.net>
27010
27011         argp: avoid undefined behavior
27012         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27013         macros.
27014
27015 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27016
27017         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27018         user.name to prevent git commit from complaining.
27019
27020 2009-05-10  Bruno Haible  <bruno@clisp.org>
27021
27022         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27023         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27024         it rewrites every file name only once.
27025         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27026
27027 2009-05-08  Bruno Haible  <bruno@clisp.org>
27028
27029         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27030         instead of 'max'.
27031
27032 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27033
27034         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27035         sockaddr_storage test.
27036
27037 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27038
27039         * modules/sys_socket (Makefile.am): Substitute
27040         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27041         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27042         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27043         * tests/test-sys_socket.c: Check sockaddr_storage.
27044
27045 2009-05-08  Bruno Haible  <bruno@clisp.org>
27046
27047         New module 'alignof'.
27048         * lib/alignof.h: New file.
27049         * modules/alignof: New file.
27050
27051 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27052             Bruno Haible  <bruno@clisp.org>
27053
27054         Fix test-file-has-acl on FreeBSD.
27055         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27056         mask is implicitly added.
27057         * tests/test-file-has-acl.c: Include <signal.h>.
27058         (main): Terminate the test after 5 seconds.
27059         * modules/acl-tests (configure.ac): Check for alarm function.
27060
27061 2009-05-04  Bruno Haible  <bruno@clisp.org>
27062
27063         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27064         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27065         * modules/errno (configure.ac): Drop AC_REQUIRE.
27066         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27067         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27068
27069 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27070
27071         * modules/glob-tests: New module.
27072         * tests/test-glob.c: Add.
27073
27074 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27075
27076         * modules/fnmatch-tests: New module.
27077         * tests/test-fnmatch.c: Add.
27078
27079 2009-05-04  Eric Blake  <ebb9@byu.net>
27080
27081         maint: make the new no-submodule-changes rule VPATH-safe
27082         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27083
27084 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27085             Bruno Haible  <bruno@clisp.org>
27086
27087         acl: Fix infinite loop on FreeBSD.
27088         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27089         of return value from acl_get_entry.
27090         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27091         Likewise.
27092
27093 2009-05-03  Bruno Haible  <bruno@clisp.org>
27094
27095         * lib/acl-internal.h (acl_entries): Clarify return value.
27096         * lib/acl_entries.c (acl_entries): Likewise.
27097
27098 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27099
27100         Bug fix in acl module.
27101         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27102
27103 2009-05-03  Bruno Haible  <bruno@clisp.org>
27104
27105         Create gperf-generated file in the source dir, not in the build dir.
27106         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27107         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27108         * modules/unicase/locale-language (unicase/locale-languages.h):
27109         Likewise.
27110         * modules/unicase/special-casing (unicase/special-casing-table.h):
27111         Likewise.
27112         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27113         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27114         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27115         Reported by Ralf Wildenhues.
27116
27117 2009-05-03  Bruno Haible  <bruno@clisp.org>
27118
27119         * modules/fnmatch (Description, configure.ac): Taken from
27120         fnmatch-posix.
27121         * modules/fnmatch-posix: Turn into a symbolic reference to the
27122         'fnmatch' module, and deprecate.
27123         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27124
27125 2009-05-03  Bruno Haible  <bruno@clisp.org>
27126
27127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27128         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27129         Reported by Ralf Wildenhues.
27130
27131 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27132
27133         * m4/fnmatch.m4: Fix fnmatch re-define.
27134
27135 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27136
27137         priv-set: new module and tests; adapt write-any-file
27138         * lib/priv-set.c: New file.
27139         * lib/priv-set.h: New file.
27140         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27141         * lib/write-any-file.c: Simplify by using priv-set module.
27142         * m4/priv-set.m4: New file.
27143         * modules/priv-set: New file.
27144         * modules/unlinkdir: Add dependency on priv-set module.
27145         * modules/write-any-file: Likewise.
27146
27147         Tests for module 'priv-set'.
27148         * modules/priv-set-tests: New file.
27149         * tests/test-priv-set.c: New file.
27150
27151 2009-05-03  Jim Meyering  <meyering@redhat.com>
27152             Bruno Haible  <bruno@clisp.org>
27153
27154         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27155         use the converted UTF-8 variant of the name instead.
27156
27157 2009-05-03  Jim Meyering  <meyering@redhat.com>
27158
27159         tests: tighten some getdate tests
27160         * tests/test-getdate.c (main): Tighten tests: require equality,
27161         not just greater than.  Set TZ envvar to UTC0.
27162
27163 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27164
27165         getdate: correctly interpret "next monday" when run on a Monday
27166         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27167         that e.g., "next tues" (when run on a tuesday) results in a date
27168         that is one week in the future, and not today's date.
27169         I.e., add a week when the wday is the same as the current one.
27170         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27171         and earlier by Martin Bernreuther and Jan Minář.
27172         * tests/test-getdate.c (main): Check that "next DAY" is always in
27173         the future and that "last DAY" is always in the past.
27174
27175 2009-05-02  Jim Meyering  <meyering@redhat.com>
27176
27177         build: ensure that a release build fails when a submodule is unclean
27178         * top/maint.mk (no-submodule-changes): New rule.
27179         (alpha beta major): Depend on it.
27180
27181 2009-05-02  Bruno Haible  <bruno@clisp.org>
27182
27183         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27184         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27185         shell variable gl_fnmatch_required to detect which variant is
27186         requested.
27187         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27188         gl_FUNC_FNMATCH_POSIX.
27189         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27190         exclude fnmatch-posix.
27191
27192 2009-05-02  Bruno Haible  <bruno@clisp.org>
27193
27194         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27195         * modules/mbsrtowcs (License): Change to LGPLv2+.
27196         * modules/strnlen1 (License): Likewise.
27197         Reported by Simon Josefsson.
27198
27199 2009-05-02  Bruno Haible  <bruno@clisp.org>
27200
27201         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27202         "cross".
27203         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27204         gnulib-tool was called with option --source-base=lib.
27205
27206 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27207
27208         Use automake *-local hooks without commands, for extensibility.
27209         * modules/localcharset (Makefile.am): Rename install-exec-local
27210         rule to install-exec-localcharset, and make it a prerequisite of
27211         install-exec-local.  Likewise, rename the uninstall-local rule to
27212         uninstall-localcharset, and make it a prerequisite of the former.
27213
27214 2009-05-01  Bruno Haible  <bruno@clisp.org>
27215
27216         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27217         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27218         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27220         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27221         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27222         m4/locale-zh.m4, m4/codeset.m4.
27223
27224         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27225         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27226         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27227         m4/locale-zh.m4.
27228
27229         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27230         REPLACE_WCRTOMB if mbstate_t must be replaced.
27231         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27232         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27233
27234 2009-05-01  Bruno Haible  <bruno@clisp.org>
27235
27236         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27237         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27238         dngettext, dcngettext, textdomain, bindtextdomain,
27239         bind_textdomain_codeset): Undefine before redefining.
27240
27241 2009-04-30  Bruno Haible  <bruno@clisp.org>
27242
27243         Fix bug introduced on 2009-04-25.
27244         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27245         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27246         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27247         is defined.
27248         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27249         is defined.
27250         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27251         is defined.
27252         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27253
27254 2009-04-28  Bruno Haible  <bruno@clisp.org>
27255
27256         Comment tweaks.
27257         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27258         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27259         * lib/unicase.h (u*_casexfrm): Likewise.
27260         Reported by Paolo Bonzini.
27261
27262 2009-04-28  Bruno Haible  <bruno@clisp.org>
27263
27264         Fix a compilation error.
27265         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27266         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27267         Reported by Jim Meyering.
27268
27269 2009-04-27  Bruno Haible  <bruno@clisp.org>
27270
27271         New module 'libunistring'.
27272         * modules/libunistring: New file.
27273         * m4/libunistring.m4: New file.
27274         * MODULES.html.sh (Unicode string functions): Add it.
27275
27276 2009-04-27  Eric Blake  <ebb9@byu.net>
27277
27278         maint.mk: allow package-specific header to provide <config.h>
27279         * top/maint.mk (sc_require_config_h): New variable.
27280         (sc_require_config_h, sc_require_config_h_first): Use it.
27281
27282 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27283
27284         * top/maint.mk (sc_avoid_if_before_free): Except
27285         useless-if-before-free script.
27286
27287 2009-04-27  Eric Blake  <ebb9@byu.net>
27288
27289         maintainer-makefile: depend on all required helper scripts
27290         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27291         useless-if-before-free.
27292         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27293         version, rather than assuming gnulib checkout is available.
27294         Reported by Simen Josefsson.
27295
27296 2009-04-26  Bruno Haible  <bruno@clisp.org>
27297
27298         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27299         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27300         "../" or "..".
27301
27302 2009-04-26  Bruno Haible  <bruno@clisp.org>
27303
27304         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27305         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27306         AC_LIB_HAVE_LINKFLAGS.
27307
27308 2009-04-26  Bruno Haible  <bruno@clisp.org>
27309
27310         Simplify calling convention of u*_conv_from_encoding.
27311         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27312         u32_conv_from_encoding): Expect a resultbuf argument and return the
27313         result directly as a pointer.
27314         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27315         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27316         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27317         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27318         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27319         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27320         Update.
27321         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27322         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27323         * lib/vasnprintf.c (VASNPRINTF): Update.
27324         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27325         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27326         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27327         * NEWS: Mention the change.
27328
27329 2009-04-26  Bruno Haible  <bruno@clisp.org>
27330
27331         Simplify calling convention of u*_conv_to_encoding.
27332         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27333         u32_conv_to_encoding): Expect a resultbuf argument and return the
27334         result directly as a pointer.
27335         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27336         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27337         freeing scaled_offsets if mem_iconveha failed.
27338         * lib/unicase/u-casexfrm.h (FUNC): Update.
27339         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27340         * lib/vasnprintf.c (VASNPRINTF): Update.
27341         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27342         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27343         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27344         * NEWS: Mention the change.
27345
27346 2009-04-26  Bruno Haible  <bruno@clisp.org>
27347
27348         Avoid test failures on AIX and OSF/1.
27349         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27350         malloc(0).
27351         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27352         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27353         Likewise.
27354         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27355         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27356         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27357         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27358         * doc/posix-functions/malloc.texi: Document the portability problem
27359         related to malloc(0).
27360
27361 2009-04-26  Bruno Haible  <bruno@clisp.org>
27362
27363         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27364         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27365         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27366
27367 2009-04-25  Bruno Haible  <bruno@clisp.org>
27368
27369         Avoid link error when creating a namespace clean library.
27370         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27371         as macro with arguments if already defined as an alias.
27372         * lib/signbitf.c (gl_signbitf): Don't undefine.
27373         * lib/signbitd.c (gl_signbitd): Don't undefine.
27374         * lib/signbitl.c (gl_signbitl): Don't undefine.
27375
27376 2009-04-25  Jim Meyering  <meyering@redhat.com>
27377
27378         vc-list-files: fix another quoting bug
27379         * build-aux/vc-list-files: Avoid sed backslash expansion
27380         of pathological directory names.
27381
27382 2009-04-25  Eric Blake  <ebb9@byu.net>
27383
27384         vc-list-files: fix shell quoting error
27385         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27386         timestamp.
27387
27388 2009-04-25  Jim Meyering  <meyering@redhat.com>
27389
27390         vc-list-files: restore lost functionality with subdir argument
27391         * build-aux/vc-list-files: When given a non-"." sub-directory
27392         argument, substitute the $dir/ prefix back onto each resulting name.
27393         Otherwise, coreutils' root_tests check would fail.
27394
27395 2009-04-24  Eric Blake  <ebb9@byu.net>
27396
27397         vc-list-files: ignore git symlinks
27398         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27399         than ls-files, to ignore git symlinks.
27400
27401         maint.mk: import improvements from m4
27402         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27403         (move_if_change): Delete unused macro.
27404         (news-date-check, vc-diff-check): Support VPATH builds.
27405         (announcement): Likewise.  Split --bootstrap-tools list...
27406         (boostrap-tools): ...into separate list, which can be overridden
27407         in cfg.mk.
27408         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27409         requiring dependency on useless-if-before-free module.
27410         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27411         Support VPATH builds.
27412
27413 2009-04-24  Jim Meyering  <meyering@redhat.com>
27414
27415         maint.mk: remove coreutils-specific rules and variables
27416         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27417         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27418         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27419
27420         maint.mk: remove obsolete rule
27421         * top/maint.mk (rel-check): Remove rule.
27422         (WGET, WGETFLAGS): Remove now-unused variables.
27423
27424 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27425
27426         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27427         consistency.
27428
27429         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27430         '$(PATH_SEPARATOR)' instead of ':'.
27431
27432 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27433
27434         * lib/getopt1.c (main): Use 'const' for static array.
27435
27436 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27437
27438         * top/maint.mk: Sync with coreutils.
27439         * NEWS: Explain incompatibilities.
27440
27441 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27442             Bruno Haible  <bruno@clisp.org>
27443
27444         Fix cross-compilation results.
27445         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27446         statement, as third argument of AC_TRY_RUN.
27447         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27448         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27449         Likewise.
27450         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27451         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27452         Likewise.
27453         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27454         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27455         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27456
27457 2009-04-20  Bruno Haible  <bruno@clisp.org>
27458
27459         Avoid test failure on mingw.
27460         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27461
27462 2009-04-20  Bruno Haible  <bruno@clisp.org>
27463
27464         Avoid compilation error on mingw.
27465         * modules/localename-tests (Depends-on): Add locale.
27466
27467 2009-04-19  Bruno Haible  <bruno@clisp.org>
27468
27469         Support for building a shared library on Windows platforms.
27470         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27471         (main): Test the presence of UNINORM_NFC here.
27472         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27473         (main): Test the presence of UNINORM_NFD here.
27474         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27475         (main): Test the presence of UNINORM_NFKC here.
27476         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27477         (main): Test the presence of UNINORM_NFKD here.
27478
27479 2009-04-19  Bruno Haible  <bruno@clisp.org>
27480
27481         Avoid a compiler warning.
27482         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27483         Change type of variable 'sequence'.
27484
27485 2009-04-19  Bruno Haible  <bruno@clisp.org>
27486
27487         * modules/configmake (Makefile.am): When the contents of configmake.h
27488         does not change, arrange to preserve its modification time.
27489
27490 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27491
27492         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27493         gettext domain.
27494
27495 2009-04-16  Jim Meyering  <meyering@redhat.com>
27496
27497         useless-if-before-free: improve conversion code
27498         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27499         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27500
27501 2009-04-14  Bruno Haible  <bruno@clisp.org>
27502
27503         * modules/fcntl (Depends-on): Add extensions.
27504         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27505
27506 2009-04-12  Ben Pfaff  <blp@gnu.org>
27507
27508         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27509         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27510
27511 2009-03-20  Ben Pfaff  <blp@gnu.org>
27512
27513         Make rename replace existing destinations on Windows.
27514         * m4/rename.m4: Add test for Mingw.
27515         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27516         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27517         * doc/posix-functions/rename.texi: Document.
27518
27519 2009-04-10  Bruno Haible  <bruno@clisp.org>
27520
27521         New include file "iconveh.h".
27522         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27523         * lib/striconveh.h: Include it.
27524         (enum iconv_ilseq_handler): Remove definition.
27525         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27526         striconveh.h.
27527         * lib/striconveha.c: Include striconveh.h.
27528         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27529         * modules/striconveh (Files): Add lib/iconveh.h.
27530         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27531         lib/striconveh.h.
27532
27533 2009-04-10  Bruno Haible  <bruno@clisp.org>
27534
27535         * lib/uniconv.h: Update comment.
27536
27537 2009-04-10  Bruno Haible  <bruno@clisp.org>
27538
27539         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27540         always.
27541         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27542         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27543         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27544         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27545         "unistring-notinline.h", so that the function gets defined always.
27546         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27547         * lib/unistr/u8-uctomb.c: Likewise.
27548         * lib/unistr/u16-mbtouc.c: Likewise.
27549         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27550         * lib/unistr/u16-uctomb.c: Likewise.
27551         * lib/unistr/u32-mbtouc.c: Likewise.
27552         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27553         * lib/unistr/u32-uctomb.c: Likewise.
27554
27555 2009-04-10  Bruno Haible  <bruno@clisp.org>
27556
27557         Mark 'utime' obsolete.
27558         * modules/utime (Status, Notice): New sections.
27559         Suggested by Jim Meyering.
27560
27561         Fix cross-compile guess for utime test.
27562         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27563         autoconf.
27564         * doc/posix-functions/utime.texi: Give more precisions.
27565         Reported by Jan <ipif@ymail.com>.
27566
27567 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27568
27569         filevercmp: correct today's change
27570         * lib/filevercmp.c: Also handle coreutils' test inputs.
27571         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27572
27573         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27574         for reporting it.
27575         * lib/filevercmp.c: Special handle for "", "." and "..".
27576         * tests/test-filevercmp.c: Enlarge the set suite.
27577
27578 2009-04-07  Jim Meyering  <meyering@redhat.com>
27579
27580         useless-if-before-free: show how to remove braced useless free, too
27581         * build-aux/useless-if-before-free: still only in a comment, though.
27582
27583 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27584
27585         maint.mk: import changes to syntax-check macros from coreutils
27586         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27587         Use them in the relevant macros.
27588
27589 2009-04-06  Bruno Haible  <bruno@clisp.org>
27590
27591         Fix unportable use of bit-fields.
27592         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27593         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27594         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27595
27596 2009-04-06  Bruno Haible  <bruno@clisp.org>
27597
27598         Avoid test failures on AIX and OSF/1.
27599         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27600         that malloc(0) = NULL.
27601         * tests/unicase/test-u8-tolower.c (check): Likewise.
27602         * tests/unicase/test-u8-totitle.c (check): Likewise.
27603         * tests/unicase/test-u8-toupper.c (check): Likewise.
27604         * tests/unicase/test-u16-casefold.c (check): Likewise.
27605         * tests/unicase/test-u16-tolower.c (check): Likewise.
27606         * tests/unicase/test-u16-totitle.c (check): Likewise.
27607         * tests/unicase/test-u16-toupper.c (check): Likewise.
27608         * tests/unicase/test-u32-casefold.c (check): Likewise.
27609         * tests/unicase/test-u32-tolower.c (check): Likewise.
27610         * tests/unicase/test-u32-totitle.c (check): Likewise.
27611         * tests/unicase/test-u32-toupper.c (check): Likewise.
27612         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27613         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27614         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27615         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27616         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27617         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27618         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27619         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27620         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27621         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27622         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27623         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27624
27625 2009-04-05  Bruno Haible  <bruno@clisp.org>
27626
27627         Work around an autoconf limitation.
27628         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27629         comment line if it would be longer than 3 KB.
27630
27631 2009-04-05  Bruno Haible  <bruno@clisp.org>
27632
27633         Avoid test failure with libiconv-1.13.
27634         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27635         of the expected test results.
27636
27637 2009-04-05  Bruno Haible  <bruno@clisp.org>
27638
27639         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27640         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27641         that it should be installed.
27642
27643 2009-04-05  Bruno Haible  <bruno@clisp.org>
27644
27645         * gnulib-tool: New option --copy-file.
27646         (func_usage): Document it.
27647         (func_dest_tmpfilename): Moved out of func_import.
27648         (func_add_file, func_update_file): New functions, extracted from
27649         func_import.
27650         (func_import): Update.
27651
27652 2009-04-05  Karl Berry  <karl@gnu.org>
27653
27654         * README: prominently mention gnulib-tool.
27655         Rearrange sections so getting the code is near the top.
27656
27657 2009-04-05  Bruno Haible  <bruno@clisp.org>
27658
27659         * lib/unicase.h: Mention u*_cmp2.
27660         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27661         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27662         * lib/unicase/ulc-casecmp.c: Likewise.
27663         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27664         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27665         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27666         unistr/u8-cmp.
27667         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27668         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27669         unistr/u16-cmp.
27670         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27671         unistr/u32-cmp.
27672
27673         * lib/uninorm.h: Mention u*_cmp2.
27674         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27675         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27676         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27677         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27678         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27679         unistr/u8-cmp.
27680         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27681         unistr/u16-cmp.
27682         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27683         unistr/u32-cmp.
27684
27685         New module 'unistr/u32-cmp2'.
27686         * lib/unistr/u32-cmp2.c: New file.
27687         * modules/unistr/u32-cmp2: New file.
27688
27689         New module 'unistr/u16-cmp2'.
27690         * lib/unistr/u16-cmp2.c: New file.
27691         * modules/unistr/u16-cmp2: New file.
27692
27693         New module 'unistr/u8-cmp2'.
27694         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27695         * lib/unistr/u8-cmp2.c: New file.
27696         * lib/unistr/u-cmp2.h: New file.
27697         * modules/unistr/u8-cmp2: New file.
27698
27699 2009-04-05  Bruno Haible  <bruno@clisp.org>
27700
27701         * lib/unictype.h (uc_property_is_valid): New macro.
27702         * tests/unictype/test-pr_byname.c (main): Use it.
27703
27704         * lib/unistr.h: Doc fixes.
27705         * lib/uniconv.h: Doc fixes.
27706         * lib/unictype.h: Doc fixes.
27707
27708 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27709
27710         Port coreutils 7.2 to Solaris 8.
27711
27712         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27713         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27714         for Solaris 8.  This is a bit of a hack, as it means it's the
27715         caller's responsibility to add -lnsl if needed, but most likely it
27716         won't be needed since only getaddrinfo uses this and getaddrinfo
27717         isn't needed on Solaris 8.
27718
27719         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27720         problem to Solaris 8 encountered with coreutils 7.2, which
27721         resulted in a message "fnmatch.c:292: warning: passing argument 4
27722         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27723         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27724
27725 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27726
27727         * m4/ld-version-script.m4: Add FIXME comment.
27728
27729 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27730
27731         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27732         SOVERSION variable.
27733
27734 2009-04-02  Bruno Haible  <bruno@clisp.org>
27735
27736         * Makefile (info, html, dvi, pdf): Combine the rules.
27737         Suggested by Jim Meyering.
27738
27739 2009-04-01  Bruno Haible  <bruno@clisp.org>
27740
27741         * Makefile (info, html, dvi, pdf): New targets.
27742         Reported by Reuben Thomas <rrt@sc3d.org>.
27743
27744 2009-04-01  Bruno Haible  <bruno@clisp.org>
27745
27746         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27747         can be put into PATH.
27748         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27749
27750 2009-04-01  Bruno Haible  <bruno@clisp.org>
27751
27752         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27753
27754 2009-04-01  Bruno Haible  <bruno@clisp.org>
27755
27756         Rename module 'visibility'.
27757         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27758         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27759         * doc/gnulib.texi: Update.
27760         * MODULES.html.sh (Misc): Update.
27761         * NEWS: Mention the change.
27762
27763 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27764
27765         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27766         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27767         Eric Blake <ebb9@byu.net> for review.
27768         * MODULES.html.sh: Add lib-msvc-compat.
27769         * doc/gnulib.texi: Link to new section.
27770         * m4/ld-output-def.m4: New file.
27771         * doc/ld-output-def.texi: New file.
27772
27773 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27774
27775         Rename ld-version-script to lib-symbol-versions.  Suggested by
27776         Bruno Haible <bruno@clisp.org>.
27777         * modules/ld-version-script: Renamed to lib-symbol-versions.
27778         * doc/ld-version-script.texi: Fix module name.
27779         * MODULES.html.sh: Add lib-symbol-versions.
27780
27781 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27782
27783         * modules/u64-tests: New file.
27784         * tests/test-u64.c: New file.
27785
27786 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27787
27788         * MODULES.html.sh: Mention u64.
27789         * modules/u64: New module.
27790         * modules/crypto/sha512: Depend on u64 module instead of providing
27791         u64.h.
27792
27793 2009-03-27  Eric Blake  <ebb9@byu.net>
27794
27795         test-strerror: make debugging EAI_SYSTEM easier
27796         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27797         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27798         failure was EAI_SYSTEM.
27799
27800 2009-03-25  Bruno Haible  <bruno@clisp.org>
27801
27802         Fix a problem with --enable-relocatable on Solaris 7.
27803         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27804         since 2008-02-24.
27805
27806 2009-03-25  Eric Blake  <ebb9@byu.net>
27807
27808         test-sockets: avoid gcc warning
27809         * tests/test-sockets.c (main): Silence compiler warning.
27810
27811 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27812
27813         New modules nproc, pthread, contributed by Glen Lenker.
27814
27815         * MODULES.html.sh: Add pthread, nproc.
27816         * lib/nproc.c: New file.
27817         * lib/nproc.h: New file.
27818         * lib/pthread.in.h: New file.
27819         * m4/pthread.m4: New file.
27820         * modules/nproc: New file.
27821         * modules/pthread: New file.
27822
27823 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27824
27825         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27826         New variable.
27827
27828 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27829
27830         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27831         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27832         * tests/test-filevercmp.c: Add tests for backup suffixes.
27833
27834 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27835
27836         * modules/stdlib (Depends-on): Add stdint, needed when defining
27837         struct random_data on, for example, HP-UX 10.20.  Reported by
27838         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27839
27840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27841
27842         * lib/readline.c (readline): Call fflush on stdout after printing
27843         prompt.
27844
27845 2009-03-20  Bruno Haible  <bruno@clisp.org>
27846
27847         Remove dependency from 'close' module to -lws2_32 on native Windows.
27848         * lib/close-hook.h: New file.
27849         * lib/close-hook.c: New file.
27850         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27851         w32sock.h.
27852         (_gl_close_fd_maybe_socket): Remove function.
27853         (rpl_close): Invoke execute_all_close_hooks instead of
27854         _gl_close_fd_maybe_socket.
27855         * lib/sockets.c: Include close-hook.h, w32sock.h.
27856         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27857         (close_sockets_hook): New variable.
27858         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27859         (gl_sockets_cleanup): Unregister it.
27860         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27861         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27862         * modules/close-hook: New file.
27863         * modules/close (Files): Remove lib/w32sock.h.
27864         (Depends-on): Add close-hook.
27865         (Link): Remove section.
27866         * modules/sockets (Files): Add lib/w32sock.h.
27867         (Depends-on): Add close-hook.
27868         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27869         invocation.
27870         * NEWS: Mention that LIB_CLOSE is gone.
27871
27872 2009-03-23  Eric Blake  <ebb9@byu.net>
27873
27874         signal-tests: test previous patch
27875         * tests/test-signal.c: New file.
27876         * modules/signal-tests: Likewise.
27877
27878         signal.h: always support 'volatile sig_atomic_t'
27879         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27880         (gl_SIGNAL_H_DEFAULTS): Add a default.
27881         * modules/signal (Makefile.am): Substitute if needed.
27882         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27883         users can blindly add volatile.
27884         * doc/posix-headers/signal.texi (signal.h): Document it.
27885         Reported by Matthew Woehlke.
27886
27887 2009-03-23  Jim Meyering  <meyering@redhat.com>
27888
27889         pathmax: PATH_MAX: use pathconf only when available
27890         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27891         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27892         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27893         This avoids a link failure in a PSP cross-compilation environment
27894         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27895
27896         * lib/vasnprintf.c (divide): Fix typo in comment.
27897
27898 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27899
27900         * gnulib-tool (func_filter_filelist): Fix comment.
27901
27902 2009-03-20  Bruno Haible  <bruno@clisp.org>
27903
27904         Make sockets.h self-contained.
27905         * lib/sockets.c: Include sockets.h first.
27906         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27907
27908 2009-03-19  Eric Blake  <ebb9@byu.net>
27909
27910         doc: mention more functions added in cygwin 1.7.0
27911         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27912         addition.
27913         * doc/posix-functions/log2f.texi: Likewise.
27914
27915 2009-03-19  Jim Meyering  <meyering@redhat.com>
27916
27917         fsusage: avoid syntax error due to statement-before-declaration
27918         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27919         after all declarations.  Reported by Matthew Woehlke in
27920         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27921
27922 2009-03-18  Eric Blake  <ebb9@byu.net>
27923
27924         build-aux/compile: sync from automake
27925         * build-aux/compile: New file, from automake.
27926         * config/srclist.txt: Mention build-aux/compile.
27927
27928 2009-03-17  Bruno Haible  <bruno@clisp.org>
27929
27930         * lib/git-merge-changelog.c: Fix typo in comment.
27931         Reported by Reuben Thomas <rrt@sc3d.org>.
27932
27933 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27934
27935         * m4/regex.m4: update and improve help for
27936         --without-included-regex.
27937
27938 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27939
27940         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27941         failure on missing include files.
27942
27943 2009-03-17  Eric Blake  <ebb9@byu.net>
27944
27945         doc: mention more functions added in cygwin 1.7.0
27946         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27947         addition.
27948         * doc/posix-functions/fwscanf.texi: Likewise.
27949         * doc/posix-functions/swprintf.texi: Likewise.
27950         * doc/posix-functions/swscanf.texi: Likewise.
27951         * doc/posix-functions/vfwprintf.texi: Likewise.
27952         * doc/posix-functions/vfwscanf.texi: Likewise.
27953         * doc/posix-functions/vswprintf.texi: Likewise.
27954         * doc/posix-functions/vswscanf.texi: Likewise.
27955         * doc/posix-functions/vwprintf.texi: Likewise.
27956         * doc/posix-functions/vwscanf.texi: Likewise.
27957         * doc/posix-functions/wcscasecmp.texi: Likewise.
27958         * doc/posix-functions/wcsdup.texi: Likewise.
27959         * doc/posix-functions/wcsftime.texi: Likewise.
27960         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27961         * doc/posix-functions/wprintf.texi: Likewise.
27962         * doc/posix-functions/wscanf.texi: Likewise.
27963         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27964
27965 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27966
27967         maint.mk: really add $(AM_MAKEFLAGS)
27968         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27969         was inadvertently omitted in the last commit.
27970         Spotted by Bruno Haible.
27971
27972         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27973         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27974         $(AM_MAKEFLAGS)' rather than plain `make'.
27975
27976         gnulib-tool: execute $MAKE not make
27977         * gnulib-tool: Default $MAKE to 'make'.
27978         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27979         than make.  Initialize $MAKE in the do-autobuild script.
27980
27981         gnulib-tool: use $MAKE not make in generated files
27982         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27983         make, in generated files.  Initialize $MAKE in the do-autobuild
27984         script.
27985
27986         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27987
27988         GNUmakefile: disable parallelism only for multiple, recursive targets
27989         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27990         additions in the Makefile.
27991         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27992         by Automake.
27993         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27994         are listed on the command line and at least one of them is
27995         listed in $(ALL_RECURSIVE_TARGETS).
27996
27997 2009-03-14  Bruno Haible  <bruno@clisp.org>
27998
27999         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28000         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28001         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28002         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28003         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28004         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28005         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28006         unistr/u8-uctomb.
28007         * modules/unistr/u8-strchr (Depends-on): Likewise.
28008         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28009         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28010         unistr/u16-uctomb.
28011         * modules/unistr/u16-strchr (Depends-on): Likewise.
28012         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28013
28014 2009-03-12  Bruno Haible  <bruno@clisp.org>
28015
28016         Work around select() bug on Interix 3.5.
28017         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28018         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28019         * m4/select.m4: New file.
28020         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28021         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28022         * modules/select (Files): Add m4/select.m4.
28023         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28024         * modules/nanosleep (Depends-on): Add select.
28025         * modules/poll (Depends-on): Likewise.
28026         * doc/posix-functions/select.texi: Mention the Interix bug.
28027         Reported by Markus Duft <mduft@gentoo.org>.
28028
28029         * lib/select.c: Renamed from lib/winsock-select.c.
28030         * modules/select (Files): Add lib/select.c, remove
28031         lib/winsock-select.c.
28032         (configure.ac): Update.
28033
28034 2009-03-12  Jim Meyering  <meyering@redhat.com>
28035
28036         avoid gcc warnings about unused macro definitions
28037         * lib/readtokens.c (STREQ): Remove unused definition.
28038         * lib/xmalloc.c (SIZE_MAX): Likewise.
28039         * lib/openat-die.c (N_): Likewise.
28040         * lib/mountlist.c (SIZE_MAX): Remove definition.
28041         Instead, include <stdint.h>.
28042         * lib/readutmp.c: Likewise.
28043         * modules/readutmp (Depends-on): Add stdint.
28044         * modules/mountlist (Depends-on): Add stdint.
28045         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28046
28047 2009-03-10  Bruno Haible  <bruno@clisp.org>
28048
28049         Tests for module 'mbmemcasecoll'.
28050         * modules/mbmemcasecoll-tests: New file.
28051         * tests/test-mbmemcasecoll1.sh: New file.
28052         * tests/test-mbmemcasecoll2.sh: New file.
28053         * tests/test-mbmemcasecoll3.sh: New file.
28054         * tests/test-mbmemcasecoll.c: New file.
28055
28056         New module 'mbmemcasecoll'.
28057         * lib/mbmemcasecoll.h: New file.
28058         * lib/mbmemcasecoll.c: New file.
28059         * modules/mbmemcasecoll: New file.
28060
28061         * tests/test-mbmemcasecmp.h: New file, extracted from
28062         tests/test-mbmemcasecmp.c.
28063         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28064         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28065         (main): Update.
28066         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28067
28068 2009-03-09  Bruno Haible  <bruno@clisp.org>
28069
28070         Tests for module 'mbmemcasecmp'.
28071         * modules/mbmemcasecmp-tests: New file.
28072         * tests/test-mbmemcasecmp1.sh: New file.
28073         * tests/test-mbmemcasecmp2.sh: New file.
28074         * tests/test-mbmemcasecmp3.sh: New file.
28075         * tests/test-mbmemcasecmp.c: New file.
28076
28077         New module 'mbmemcasecmp'.
28078         * lib/mbmemcasecmp.h: New file.
28079         * lib/mbmemcasecmp.c: New file.
28080         * modules/mbmemcasecmp: New file.
28081
28082 2009-03-09  Bruno Haible  <bruno@clisp.org>
28083
28084         Tests for module 'unicase/ulc-casecoll'.
28085         * modules/unicase/ulc-casecoll-tests: New file.
28086         * tests/unicase/test-ulc-casecoll1.sh: New file.
28087         * tests/unicase/test-ulc-casecoll2.sh: New file.
28088         * tests/unicase/test-ulc-casecoll.c: New file.
28089
28090         New module 'unicase/ulc-casecoll'.
28091         * lib/unicase.h (ulc_casecoll): New declaration.
28092         * lib/unicase/ulc-casecoll.c: New file.
28093         * modules/unicase/ulc-casecoll: New file.
28094
28095         New module 'unicase/ulc-casexfrm'.
28096         * lib/unicase.h (ulc_casexfrm): New declaration.
28097         * lib/unicase/ulc-casexfrm.c: New file.
28098         * modules/unicase/ulc-casexfrm: New file.
28099
28100 2009-03-09  Bruno Haible  <bruno@clisp.org>
28101
28102         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28103         invocations.
28104
28105         * m4/mbscasecmp.m4: Remove file.
28106         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28107         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28108
28109         * m4/mbscasestr.m4: Remove file.
28110         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28111         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28112
28113         * m4/mbschr.m4: Remove file.
28114         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28115         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28116
28117         * m4/mbscspn.m4: Remove file.
28118         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28119         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28120
28121         * m4/mbslen.m4: Remove file.
28122         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28123         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28124
28125         * m4/mbsncasecmp.m4: Remove file.
28126         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28127         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28128
28129         * m4/mbsnlen.m4: Remove file.
28130         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28131         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28132
28133         * m4/mbspbrk.m4: Remove file.
28134         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28135         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28136
28137         * m4/mbspcasecmp.m4: Remove file.
28138         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28139         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28140
28141         * m4/mbsrchr.m4: Remove file.
28142         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28143         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28144
28145         * m4/mbssep.m4: Remove file.
28146         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28147         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28148
28149         * m4/mbsspn.m4: Remove file.
28150         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28151         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28152
28153         * m4/mbsstr.m4: Remove file.
28154         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28155         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28156
28157         * m4/mbstok_r.m4: Remove file.
28158         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28159         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28160
28161         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28162
28163         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28164         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28165
28166         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28167
28168 2009-03-08  Bruno Haible  <bruno@clisp.org>
28169
28170         Tests for module 'unicase/ulc-casecmp'.
28171         * modules/unicase/ulc-casecmp-tests: New file.
28172         * tests/unicase/test-ulc-casecmp1.sh: New file.
28173         * tests/unicase/test-ulc-casecmp2.sh: New file.
28174         * tests/unicase/test-ulc-casecmp.c: New file.
28175
28176         New module 'unicase/ulc-casecmp'.
28177         * lib/unicase.h (ulc_casecmp): New declaration.
28178         * lib/unicase/ulc-casecmp.c: New file.
28179         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28180         'const SRC_UNIT *'.
28181         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28182         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28183         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28184         * modules/unicase/ulc-casecmp: New file.
28185
28186         Tests for module 'unicase/u32-is-cased'.
28187         * modules/unicase/u32-is-cased-tests: New file.
28188         * tests/unicase/test-u32-is-cased.c: New file.
28189
28190         Tests for module 'unicase/u16-is-cased'.
28191         * modules/unicase/u16-is-cased-tests: New file.
28192         * tests/unicase/test-u16-is-cased.c: New file.
28193
28194         Tests for module 'unicase/u8-is-cased'.
28195         * modules/unicase/u8-is-cased-tests: New file.
28196         * tests/unicase/test-u8-is-cased.c: New file.
28197         * tests/unicase/test-is-cased.h: New file.
28198
28199         New module 'unicase/u32-is-cased'.
28200         * lib/unicase/u32-is-cased.c: New file.
28201         * modules/unicase/u32-is-cased: New file.
28202
28203         New module 'unicase/u16-is-cased'.
28204         * lib/unicase/u16-is-cased.c: New file.
28205         * modules/unicase/u16-is-cased: New file.
28206
28207         New module 'unicase/u8-is-cased'.
28208         * lib/unicase/u8-is-cased.c: New file.
28209         * lib/unicase/u-is-cased.h: New file.
28210         * modules/unicase/u8-is-cased: New file.
28211
28212         Tests for module 'unicase/u32-is-casefolded'.
28213         * modules/unicase/u32-is-casefolded-tests: New file.
28214         * tests/unicase/test-u32-is-casefolded.c: New file.
28215
28216         Tests for module 'unicase/u16-is-casefolded'.
28217         * modules/unicase/u16-is-casefolded-tests: New file.
28218         * tests/unicase/test-u16-is-casefolded.c: New file.
28219
28220         Tests for module 'unicase/u8-is-casefolded'.
28221         * modules/unicase/u8-is-casefolded-tests: New file.
28222         * tests/unicase/test-u8-is-casefolded.c: New file.
28223         * tests/unicase/test-is-casefolded.h: New file.
28224
28225         New module 'unicase/u32-is-casefolded'.
28226         * lib/unicase/u32-is-casefolded.c: New file.
28227         * modules/unicase/u32-is-casefolded: New file.
28228
28229         New module 'unicase/u16-is-casefolded'.
28230         * lib/unicase/u16-is-casefolded.c: New file.
28231         * modules/unicase/u16-is-casefolded: New file.
28232
28233         New module 'unicase/u8-is-casefolded'.
28234         * lib/unicase/u8-is-casefolded.c: New file.
28235         * modules/unicase/u8-is-casefolded: New file.
28236
28237         Tests for module 'unicase/u32-is-titlecase'.
28238         * modules/unicase/u32-is-titlecase-tests: New file.
28239         * tests/unicase/test-u32-is-titlecase.c: New file.
28240
28241         Tests for module 'unicase/u16-is-titlecase'.
28242         * modules/unicase/u16-is-titlecase-tests: New file.
28243         * tests/unicase/test-u16-is-titlecase.c: New file.
28244
28245         Tests for module 'unicase/u8-is-titlecase'.
28246         * modules/unicase/u8-is-titlecase-tests: New file.
28247         * tests/unicase/test-u8-is-titlecase.c: New file.
28248         * tests/unicase/test-is-titlecase.h: New file.
28249
28250         New module 'unicase/u32-is-titlecase'.
28251         * lib/unicase/u32-is-titlecase.c: New file.
28252         * modules/unicase/u32-is-titlecase: New file.
28253
28254         New module 'unicase/u16-is-titlecase'.
28255         * lib/unicase/u16-is-titlecase.c: New file.
28256         * modules/unicase/u16-is-titlecase: New file.
28257
28258         New module 'unicase/u8-is-titlecase'.
28259         * lib/unicase/u8-is-titlecase.c: New file.
28260         * modules/unicase/u8-is-titlecase: New file.
28261
28262         Tests for module 'unicase/u32-is-lowercase'.
28263         * modules/unicase/u32-is-lowercase-tests: New file.
28264         * tests/unicase/test-u32-is-lowercase.c: New file.
28265
28266         Tests for module 'unicase/u16-is-lowercase'.
28267         * modules/unicase/u16-is-lowercase-tests: New file.
28268         * tests/unicase/test-u16-is-lowercase.c: New file.
28269
28270         Tests for module 'unicase/u8-is-lowercase'.
28271         * modules/unicase/u8-is-lowercase-tests: New file.
28272         * tests/unicase/test-u8-is-lowercase.c: New file.
28273         * tests/unicase/test-is-lowercase.h: New file.
28274
28275         New module 'unicase/u32-is-lowercase'.
28276         * lib/unicase/u32-is-lowercase.c: New file.
28277         * modules/unicase/u32-is-lowercase: New file.
28278
28279         New module 'unicase/u16-is-lowercase'.
28280         * lib/unicase/u16-is-lowercase.c: New file.
28281         * modules/unicase/u16-is-lowercase: New file.
28282
28283         New module 'unicase/u8-is-lowercase'.
28284         * lib/unicase/u8-is-lowercase.c: New file.
28285         * modules/unicase/u8-is-lowercase: New file.
28286
28287         Tests for module 'unicase/u32-is-uppercase'.
28288         * modules/unicase/u32-is-uppercase-tests: New file.
28289         * tests/unicase/test-u32-is-uppercase.c: New file.
28290
28291         Tests for module 'unicase/u16-is-uppercase'.
28292         * modules/unicase/u16-is-uppercase-tests: New file.
28293         * tests/unicase/test-u16-is-uppercase.c: New file.
28294
28295         Tests for module 'unicase/u8-is-uppercase'.
28296         * modules/unicase/u8-is-uppercase-tests: New file.
28297         * tests/unicase/test-u8-is-uppercase.c: New file.
28298         * tests/unicase/test-is-uppercase.h: New file.
28299
28300         New module 'unicase/u32-is-uppercase'.
28301         * lib/unicase/u32-is-uppercase.c: New file.
28302         * modules/unicase/u32-is-uppercase: New file.
28303
28304         New module 'unicase/u16-is-uppercase'.
28305         * lib/unicase/u16-is-uppercase.c: New file.
28306         * modules/unicase/u16-is-uppercase: New file.
28307
28308         New module 'unicase/u8-is-uppercase'.
28309         * lib/unicase/u8-is-uppercase.c: New file.
28310         * modules/unicase/u8-is-uppercase: New file.
28311
28312         New module 'unicase/u32-is-invariant'.
28313         * lib/unicase/u32-is-invariant.c: New file.
28314         * modules/unicase/u32-is-invariant: New file.
28315
28316         New module 'unicase/u16-is-invariant'.
28317         * lib/unicase/u16-is-invariant.c: New file.
28318         * modules/unicase/u16-is-invariant: New file.
28319
28320         New module 'unicase/u8-is-invariant'.
28321         * lib/unicase/u8-is-invariant.c: New file.
28322         * lib/unicase/invariant.h: New file.
28323         * lib/unicase/u-is-invariant.h: New file.
28324         * modules/unicase/u8-is-invariant: New file.
28325
28326         Tests for module 'unicase/u32-casecoll'.
28327         * modules/unicase/u32-casecoll-tests: New file.
28328         * tests/unicase/test-u32-casecoll.c: New file.
28329
28330         Tests for module 'unicase/u16-casecoll'.
28331         * modules/unicase/u16-casecoll-tests: New file.
28332         * tests/unicase/test-u16-casecoll.c: New file.
28333
28334         Tests for module 'unicase/u8-casecoll'.
28335         * modules/unicase/u8-casecoll-tests: New file.
28336         * tests/unicase/test-u8-casecoll.c: New file.
28337
28338         New module 'unicase/u32-casecoll'.
28339         * lib/unicase/u32-casecoll.c: New file.
28340         * modules/unicase/u32-casecoll: New file.
28341
28342         New module 'unicase/u16-casecoll'.
28343         * lib/unicase/u16-casecoll.c: New file.
28344         * modules/unicase/u16-casecoll: New file.
28345
28346         New module 'unicase/u8-casecoll'.
28347         * lib/unicase/u8-casecoll.c: New file.
28348         * lib/unicase/u-casecoll.h: New file.
28349         * modules/unicase/u8-casecoll: New file.
28350
28351         New module 'unicase/u32-casexfrm'.
28352         * lib/unicase/u32-casexfrm.c: New file.
28353         * modules/unicase/u32-casexfrm: New file.
28354
28355         New module 'unicase/u16-casexfrm'.
28356         * lib/unicase/u16-casexfrm.c: New file.
28357         * modules/unicase/u16-casexfrm: New file.
28358
28359         New module 'unicase/u8-casexfrm'.
28360         * lib/unicase/u8-casexfrm.c: New file.
28361         * lib/unicase/u-casexfrm.h: New file.
28362         * modules/unicase/u8-casexfrm: New file.
28363
28364         Tests for module 'unicase/u32-casecmp'.
28365         * modules/unicase/u32-casecmp-tests: New file.
28366         * tests/unicase/test-u32-casecmp.c: New file.
28367
28368         Tests for module 'unicase/u16-casecmp'.
28369         * modules/unicase/u16-casecmp-tests: New file.
28370         * tests/unicase/test-u16-casecmp.c: New file.
28371
28372         Tests for module 'unicase/u8-casecmp'.
28373         * modules/unicase/u8-casecmp-tests: New file.
28374         * tests/unicase/test-u8-casecmp.c: New file.
28375         * tests/unicase/test-casecmp.h: New file.
28376
28377         New module 'unicase/u32-casecmp'.
28378         * lib/unicase/u32-casecmp.c: New file.
28379         * modules/unicase/u32-casecmp: New file.
28380
28381         New module 'unicase/u16-casecmp'.
28382         * lib/unicase/u16-casecmp.c: New file.
28383         * modules/unicase/u16-casecmp: New file.
28384
28385         New module 'unicase/u8-casecmp'.
28386         * lib/unicase/u8-casecmp.c: New file.
28387         * lib/unicase/u-casecmp.h: New file.
28388         * modules/unicase/u8-casecmp: New file.
28389
28390         Tests for module 'unicase/u32-casefold'.
28391         * modules/unicase/u32-casefold-tests: New file.
28392         * tests/unicase/test-u32-casefold.c: New file.
28393
28394         Tests for module 'unicase/u16-casefold'.
28395         * modules/unicase/u16-casefold-tests: New file.
28396         * tests/unicase/test-u16-casefold.c: New file.
28397
28398         Tests for module 'unicase/u8-casefold'.
28399         * modules/unicase/u8-casefold-tests: New file.
28400         * tests/unicase/test-u8-casefold.c: New file.
28401
28402         New module 'unicase/u32-casefold'.
28403         * lib/unicase/u32-casefold.c: New file.
28404         * modules/unicase/u32-casefold: New file.
28405
28406         New module 'unicase/u16-casefold'.
28407         * lib/unicase/u16-casefold.c: New file.
28408         * modules/unicase/u16-casefold: New file.
28409
28410         New module 'unicase/u8-casefold'.
28411         * lib/unicase/u8-casefold.c: New file.
28412         * lib/unicase/u-casefold.h: New file.
28413         * modules/unicase/u8-casefold: New file.
28414
28415         New module 'unicase/tocasefold'.
28416         * lib/unicase/casefold.h: New file.
28417         * lib/unicase/tocasefold.c: New file.
28418         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28419         * modules/unicase/tocasefold: New file.
28420
28421         Tests for module 'unicase/u32-totitle'.
28422         * modules/unicase/u32-totitle-tests: New file.
28423         * tests/unicase/test-u32-totitle.c: New file.
28424
28425         Tests for module 'unicase/u16-totitle'.
28426         * modules/unicase/u16-totitle-tests: New file.
28427         * tests/unicase/test-u16-totitle.c: New file.
28428
28429         Tests for module 'unicase/u8-totitle'.
28430         * modules/unicase/u8-totitle-tests: New file.
28431         * tests/unicase/test-u8-totitle.c: New file.
28432
28433         New module 'unicase/u32-totitle'.
28434         * lib/unicase/u32-totitle.c: New file.
28435         * modules/unicase/u32-totitle: New file.
28436
28437         New module 'unicase/u16-totitle'.
28438         * lib/unicase/u16-totitle.c: New file.
28439         * modules/unicase/u16-totitle: New file.
28440
28441         New module 'unicase/u8-totitle'.
28442         * lib/unicase/u8-totitle.c: New file.
28443         * lib/unicase/u-totitle.h: New file.
28444         * modules/unicase/u8-totitle: New file.
28445
28446         Tests for module 'unicase/u32-tolower'.
28447         * modules/unicase/u32-tolower-tests: New file.
28448         * tests/unicase/test-u32-tolower.c: New file.
28449
28450         Tests for module 'unicase/u16-tolower'.
28451         * modules/unicase/u16-tolower-tests: New file.
28452         * tests/unicase/test-u16-tolower.c: New file.
28453
28454         Tests for module 'unicase/u8-tolower'.
28455         * modules/unicase/u8-tolower-tests: New file.
28456         * tests/unicase/test-u8-tolower.c: New file.
28457
28458         New module 'unicase/u32-tolower'.
28459         * lib/unicase/u32-tolower.c: New file.
28460         * modules/unicase/u32-tolower: New file.
28461
28462         New module 'unicase/u16-tolower'.
28463         * lib/unicase/u16-tolower.c: New file.
28464         * modules/unicase/u16-tolower: New file.
28465
28466         New module 'unicase/u8-tolower'.
28467         * lib/unicase/u8-tolower.c: New file.
28468         * modules/unicase/u8-tolower: New file.
28469
28470         Tests for module 'unicase/u32-toupper'.
28471         * modules/unicase/u32-toupper-tests: New file.
28472         * tests/unicase/test-u32-toupper.c: New file.
28473
28474         Tests for module 'unicase/u16-toupper'.
28475         * modules/unicase/u16-toupper-tests: New file.
28476         * tests/unicase/test-u16-toupper.c: New file.
28477
28478         Tests for module 'unicase/u8-toupper'.
28479         * modules/unicase/u8-toupper-tests: New file.
28480         * tests/unicase/test-u8-toupper.c: New file.
28481
28482         New module 'unicase/u32-toupper'.
28483         * lib/unicase/u32-toupper.c: New file.
28484         * modules/unicase/u32-toupper: New file.
28485
28486         New module 'unicase/u16-toupper'.
28487         * lib/unicase/u16-toupper.c: New file.
28488         * modules/unicase/u16-toupper: New file.
28489
28490         New module 'unicase/u8-toupper'.
28491         * lib/unicase/u8-toupper.c: New file.
28492         * modules/unicase/u8-toupper: New file.
28493
28494         New module 'unicase/u32-casemap'.
28495         * lib/unicase/u32-casemap.c: New file.
28496         * modules/unicase/u32-casemap: New file.
28497
28498         New module 'unicase/u16-casemap'.
28499         * lib/unicase/u16-casemap.c: New file.
28500         * modules/unicase/u16-casemap: New file.
28501
28502         New module 'unicase/u8-casemap'.
28503         * lib/unicase/unicasemap.h: New file.
28504         * lib/unicase/u8-casemap.c: New file.
28505         * lib/unicase/u-casemap.h: New file.
28506         * modules/unicase/u8-casemap: New file.
28507
28508         New module 'unicase/special-casing'.
28509         * lib/unicase/special-casing.h: New file.
28510         * lib/unicase/special-casing.c: New file.
28511         * lib/unicase/special-casing-table.gperf: New file, generated by
28512         gen-uni-tables.c.
28513         * modules/unicase/special-casing: New file.
28514
28515         Tests for module 'unicase/locale-language'.
28516         * modules/unicase/locale-language-tests: New file.
28517         * tests/unicase/test-locale-language.sh: New file.
28518         * tests/unicase/test-locale-language.c: New file.
28519
28520         New module 'unicase/locale-language'.
28521         * lib/unicase/locale-language.c: New file.
28522         * lib/unicase/locale-languages.gperf: New file.
28523         * modules/unicase/locale-language: New file.
28524
28525         Generate more tables for case conversion and case folding.
28526         * lib/gen-uni-tables.c (SCC_*): New enum items.
28527         (struct special_casing_rule): New type.
28528         (casing_rules, num_casing_rules, allocated_casing_rules): New
28529         variables.
28530         (add_casing_rule, fill_casing_rules): New functions.
28531         (struct casefold_rule): New type.
28532         (casefolding_rules, num_casefolding_rules,
28533         allocated_casefolding_rules): New variables.
28534         (fill_casefolding_rules): New function.
28535         (unicode_casefold): New variable.
28536         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28537         sort_casing_rules, output_casing_rules): New functions.
28538         (main): Accept to more arguments: SpecialCasing.txt and
28539         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28540         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28541         Output mapping for casefolding.
28542
28543         * lib/unicase.h: Include stdbool.h, uninorm.h.
28544         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28545         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28546         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28547         arguments.
28548         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28549         resultp arguments.
28550         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28551         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28552         resultp arguments.
28553         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28554         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28555         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28556         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28557         declarations.
28558         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28559
28560 2009-03-08  Bruno Haible  <bruno@clisp.org>
28561
28562         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28563         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28564         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28565         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28566
28567 2009-03-07  Bruno Haible  <bruno@clisp.org>
28568
28569         Adjust u*_normcmp, u*_normcoll API.
28570         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28571         u16_normcoll, u32_normcoll): Change failure conventions.
28572         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28573         errno and return -1.
28574         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28575
28576 2009-03-07  Bruno Haible  <bruno@clisp.org>
28577
28578         Tests for module 'uninorm/u32-normcoll'.
28579         * modules/uninorm/u32-normcoll-tests: New file.
28580         * tests/uninorm/test-u32-normcoll.c: New file.
28581
28582         Tests for module 'uninorm/u16-normcoll'.
28583         * modules/uninorm/u16-normcoll-tests: New file.
28584         * tests/uninorm/test-u16-normcoll.c: New file.
28585
28586         Tests for module 'uninorm/u8-normcoll'.
28587         * modules/uninorm/u8-normcoll-tests: New file.
28588         * tests/uninorm/test-u8-normcoll.c: New file.
28589
28590 2009-03-07  Bruno Haible  <bruno@clisp.org>
28591
28592         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28593         tests/uninorm/test-u32-normcmp.c.
28594         * tests/uninorm/test-u32-normcmp.c: Include it.
28595         (test_nonascii): New function, extracted from main. Add some more
28596         tests.
28597         (main): Invoke test_ascii and test_nonascii.
28598         * modules/uninorm/u32-normcmp-tests (Files): Add
28599         tests/uninorm/test-u32-normcmp.h.
28600         (Depends-on): Remove uninorm/u32-normcmp.
28601
28602         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28603         tests/uninorm/test-u16-normcmp.c.
28604         * tests/uninorm/test-u16-normcmp.c: Include it.
28605         (test_nonascii): New function, extracted from main. Add some more
28606         tests.
28607         (main): Invoke test_ascii and test_nonascii.
28608         * modules/uninorm/u16-normcmp-tests (Files): Add
28609         tests/uninorm/test-u16-normcmp.h.
28610         (Depends-on): Remove uninorm/u16-normcmp.
28611
28612         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28613         tests/uninorm/test-u8-normcmp.c.
28614         * tests/uninorm/test-u8-normcmp.c: Include it.
28615         (test_nonascii): New function, extracted from main. Add some more
28616         tests.
28617         (main): Invoke test_ascii and test_nonascii.
28618         * modules/uninorm/u8-normcmp-tests (Files): Add
28619         tests/uninorm/test-u8-normcmp.h.
28620         (Depends-on): Remove uninorm/u8-normcmp.
28621
28622 2009-03-07  Bruno Haible  <bruno@clisp.org>
28623
28624         New module 'uninorm/u32-normcoll'.
28625         * lib/uninorm/u32-normcoll.c: New file.
28626         * modules/uninorm/u32-normcoll: New file.
28627
28628         New module 'uninorm/u16-normcoll'.
28629         * lib/uninorm/u16-normcoll.c: New file.
28630         * modules/uninorm/u16-normcoll: New file.
28631
28632         New module 'uninorm/u8-normcoll'.
28633         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28634         declarations.
28635         * lib/uninorm/u8-normcoll.c: New file.
28636         * lib/uninorm/u-normcoll.h: New file.
28637         * modules/uninorm/u8-normcoll: New file.
28638
28639         New module 'uninorm/u32-normxfrm'.
28640         * lib/uninorm/u32-normxfrm.c: New file.
28641         * modules/uninorm/u32-normxfrm: New file.
28642
28643         New module 'uninorm/u16-normxfrm'.
28644         * lib/uninorm/u16-normxfrm.c: New file.
28645         * modules/uninorm/u16-normxfrm: New file.
28646
28647         New module 'uninorm/u8-normxfrm'.
28648         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28649         declarations.
28650         * lib/uninorm/u8-normxfrm.c: New file.
28651         * lib/uninorm/u-normxfrm.h: New file.
28652         * modules/uninorm/u8-normxfrm: New file.
28653
28654 2009-03-07  Bruno Haible  <bruno@clisp.org>
28655
28656         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28657         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28658         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28659
28660 2009-03-07  Bruno Haible  <bruno@clisp.org>
28661
28662         New module 'memxfrm'.
28663         * lib/memxfrm.h: New file.
28664         * lib/memxfrm.c: New file.
28665         * modules/memxfrm: New file.
28666
28667 2009-03-07  Bruno Haible  <bruno@clisp.org>
28668
28669         New module 'memcmp2'.
28670         * lib/memcmp2.h: New file.
28671         * lib/memcmp2.c: New file.
28672         * modules/memcmp2: New file.
28673
28674 2009-03-07  Bruno Haible  <bruno@clisp.org>
28675
28676         Tests for module 'uninorm/decomposing-form'.
28677         * modules/uninorm/decomposing-form-tests: New file.
28678         * tests/uninorm/test-decomposing-form.c: New file.
28679
28680         New module 'uninorm/decomposing-form'.
28681         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28682         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28683         Add 'decomposing_variant' field.
28684         * lib/uninorm/decomposing-form.c: New file.
28685         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28686         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28687         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28688         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28689         * modules/uninorm/decomposing-form: New file.
28690         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28691         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28692
28693 2009-03-07  Bruno Haible  <bruno@clisp.org>
28694
28695         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28696         strings.
28697
28698 2009-03-06  Bruno Haible  <bruno@clisp.org>
28699
28700         Tests for module 'uninorm/u32-normcmp'.
28701         * tests/uninorm/test-u32-normcmp.c: New file.
28702         * modules/uninorm/u32-normcmp-tests: New file.
28703
28704         Tests for module 'uninorm/u16-normcmp'.
28705         * tests/uninorm/test-u16-normcmp.c: New file.
28706         * modules/uninorm/u16-normcmp-tests: New file.
28707
28708         Tests for module 'uninorm/u8-normcmp'.
28709         * tests/uninorm/test-u8-normcmp.c: New file.
28710         * modules/uninorm/u8-normcmp-tests: New file.
28711
28712         New module 'uninorm/u32-normcmp'.
28713         * lib/uninorm/u32-normcmp.c: New file.
28714         * modules/uninorm/u32-normcmp: New file.
28715
28716         New module 'uninorm/u16-normcmp'.
28717         * lib/uninorm/u16-normcmp.c: New file.
28718         * modules/uninorm/u16-normcmp: New file.
28719
28720         New module 'uninorm/u8-normcmp'.
28721         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28722         declarations.
28723         * lib/uninorm/u8-normcmp.c: New file.
28724         * lib/uninorm/u-normcmp.h: New file.
28725         * modules/uninorm/u8-normcmp: New file.
28726
28727 2009-03-06  Bruno Haible  <bruno@clisp.org>
28728
28729         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28730         Reported by Eric Blake.
28731
28732 2009-03-06  Eric Blake  <ebb9@byu.net>
28733             Bruno Haible  <bruno@clisp.org>
28734
28735         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28736         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28737         condition.
28738         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28739         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28740         condition.
28741         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28742
28743 2009-03-06  Eric Blake  <ebb9@byu.net>
28744
28745         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28746         to avoid compiler warnings.
28747         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28748
28749 2009-03-05  Bruno Haible  <bruno@clisp.org>
28750
28751         * tests/test-ftell.c (main): Disable test beyond end of file on
28752         FreeMiNT.
28753         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28754
28755 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28756
28757         * lib/filevercmp.c: Move hidden files up in ordering.
28758         * tests/test-filevercmp.c: Add tests for hidden files.
28759
28760 2009-03-04  Bruno Haible  <bruno@clisp.org>
28761
28762         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28763         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28764         AM_CFLAGS.
28765         Reported by Simon Josefsson.
28766
28767 2009-03-03  Bruno Haible  <bruno@clisp.org>
28768
28769         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28770         Reported by Simon Josefsson.
28771
28772         * doc/ld-version-script.texi: Update node reference.
28773
28774 2009-03-03  Bruno Haible  <bruno@clisp.org>
28775
28776         * modules/visibility (License): Change to 'unlimited'.
28777         Suggested by Simon Josefsson.
28778
28779 2009-03-03  Jim Meyering  <meyering@redhat.com>
28780
28781         unlinkdir: cannot_unlink_dir may modify process state
28782         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28783         it's neither thread-safe nor appropriate for use in a library.
28784
28785 2009-03-03  Eric Blake  <ebb9@byu.net>
28786
28787         test-closein: silence test under Darwin
28788         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28789         care if it dies from EPIPE or EBADF.
28790
28791 2009-03-03  Bruno Haible  <bruno@clisp.org>
28792
28793         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28794         earlier.
28795         * doc/visibility.texi: Fix @node and @section.
28796
28797 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28798
28799         * doc/gnulib.texi: Link to sections for ld version script and
28800         visibility.
28801         * doc/visibility.texi: Add @node and @section.
28802         * modules/ld-version-script: New module.
28803         * m4/ld-version-script.m4: New file.
28804         * doc/ld-version-script.texi: New file.
28805
28806 2009-03-02  David Lutterkort  <lutter@redhat.com>
28807
28808         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28810
28811 2009-03-02  Bruno Haible  <bruno@clisp.org>
28812
28813         * doc/visibility.texi: Mention libtool's -export-symbols option.
28814
28815 2009-03-02  Jim Meyering  <meyering@redhat.com>
28816
28817         announce-gen: new option: --no-print-checksums
28818         * build-aux/announce-gen (usage): Describe it.
28819         (print_checksums): Print a newline here, not in the [*] footnote.
28820         (main): Honor it.
28821
28822 2009-03-01  Bruno Haible  <bruno@clisp.org>
28823
28824         Use socklen_t in the native Windows replacements prototypes.
28825         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28826         instead of 'int'.
28827         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28828         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28829         * modules/getsockopt (Depends-on): Add socklen.
28830         * modules/setsockopt (Depends-on): Add socklen.
28831
28832 2009-03-01  Bruno Haible  <bruno@clisp.org>
28833
28834         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28835         least 4.2.
28836
28837 2009-03-01  Eric Blake  <ebb9@byu.net>
28838             Bruno Haible  <bruno@clisp.org>
28839
28840         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28841         error messages.
28842         * lib/wait-process.c (wait_subprocess): Omit error message about
28843         deadly signal sent to the child of termsigp != NULL.
28844
28845 2009-03-01  Eric Blake  <ebb9@byu.net>
28846
28847         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28848
28849 2009-03-01  Bruno Haible  <bruno@clisp.org>
28850
28851         Avoid a gcc warning.
28852         * tests/test-sched.c (b): Make global.
28853         Reported by Eric Blake.
28854
28855 2009-01-19  Martin Lambers  <marlam@marlam.de>
28856
28857         Provide POSIX semantics for socket timeout options on W32.
28858         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28859         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28860         * modules/setsockopt: Depend on sys_time module for struct timeval.
28861         * modules/getsockopt: Depend on sys_time module for struct timeval.
28862
28863 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28864
28865         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28866         __USE_GNU, for consistency with netdb.in.h.
28867         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28868
28869 2009-03-01  Bruno Haible  <bruno@clisp.org>
28870
28871         More support for FreeMiNT.
28872         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28873         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28874
28875 2009-03-01  Bruno Haible  <bruno@clisp.org>
28876
28877         More support for FreeMiNT.
28878         * lib/fpurge.c (fpurge): Correct last commit.
28879         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28880
28881 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28882
28883         Fix unportable awk script in vc-list-files.
28884         * build-aux/vc-list-files: In the replacement awk script, use
28885         substr with a second argument of 1, not zero.
28886         Report by Simon Josefsson.
28887
28888 2009-02-28  Bruno Haible  <bruno@clisp.org>
28889
28890         More support for FreeMiNT.
28891         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28892         to FreeMiNT today.
28893         * lib/fwriting.c (fwriting): Likewise.
28894         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28895
28896 2009-02-28  Bruno Haible  <bruno@clisp.org>
28897
28898         * tests/test-freadseek.c (main): Disable test beyond end of file on
28899         FreeMiNT.
28900         * tests/test-ftello.c (main): Likewise.
28901         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28902
28903 2009-02-28  Bruno Haible  <bruno@clisp.org>
28904
28905         Add tentative support for FreeMiNT.
28906         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28907         * lib/fpurge.c (fpurge): Likewise.
28908         * lib/freadable.c (freadable): Likewise.
28909         * lib/freading.c (freading): Likewise.
28910         * lib/freadptr.c (freadptr): Likewise.
28911         * lib/freadseek.c (freadptrinc): Likewise.
28912         * lib/fseeko.c (rpl_fseeko): Likewise.
28913         * lib/fseterr.c (fseterr): Likewise.
28914         * lib/fwritable.c (fwritable): Likewise.
28915         * lib/fwriting.c (fwriting): Likewise.
28916         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28917         Hourihane.
28918         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28919
28920 2009-02-28  Bruno Haible  <bruno@clisp.org>
28921
28922         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28923         SIGCHLD.
28924         Reported by Jim Meyering.
28925
28926 2009-02-28  Bruno Haible  <bruno@clisp.org>
28927
28928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28929         Mention the results of these tests on various platforms.
28930         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28931         order.
28932         * doc/posix-functions/printf.texi: Likewise.
28933         * doc/posix-functions/snprintf.texi: Likewise.
28934         * doc/posix-functions/sprintf.texi: Likewise.
28935         * doc/posix-functions/vfprintf.texi: Likewise.
28936         * doc/posix-functions/vprintf.texi: Likewise.
28937         * doc/posix-functions/vsnprintf.texi: Likewise.
28938         * doc/posix-functions/vsprintf.texi: Likewise.
28939         * doc/glibc-functions/obstack_printf.texi: Likewise.
28940         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28941
28942 2009-02-28  Bruno Haible  <bruno@clisp.org>
28943
28944         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28945         Reported by Loïc Minier <lool@dooz.org>.
28946
28947 2009-02-27  Bruno Haible  <bruno@clisp.org>
28948
28949         * gnulib-tool (func_import): Make the sed expression used to create the
28950         sed script for updating the .gitignore file POSIX compliant.
28951         Reported by Eric Blake.
28952
28953 2009-02-27  Bruno Haible  <bruno@clisp.org>
28954
28955         * gnulib-tool (sed): Don't alias as "sed --posix".
28956         Reported by Eric Blake.
28957
28958 2009-02-27  Bruno Haible  <bruno@clisp.org>
28959
28960         Avoid test link errors.
28961         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28962         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28963         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28964         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28966
28967 2009-02-27  Bruno Haible  <bruno@clisp.org>
28968
28969         Avoid spurious "(cached)" in configure output.
28970         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28971         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28972         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28973         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28974         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28975         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28976         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28977         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28978         Reported by Eric Blake.
28979
28980 2009-02-27  Eric Blake  <ebb9@byu.net>
28981
28982         printf: fix regression in previous patch
28983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28984
28985 2009-02-27  Bruno Haible  <bruno@clisp.org>
28986
28987         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28988         value.
28989         * lib/stdint.in.h: Likewise.
28990         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28991
28992 2009-02-27  Eric Blake  <ebb9@byu.net>
28993
28994         doc: mention more functions added in cygwin 1.7.0
28995         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28996         addition.
28997         * doc/posix-functions/open_wmemstream.texi: Likewise.
28998         * doc/posix-functions/wcsnlen.texi: Likewise.
28999         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29000         * doc/posix-functions/wcstod.texi: Likewise.
29001         * doc/posix-functions/wcstof.texi: Likewise.
29002         * doc/posix-functions/wcstoimax.texi: Likewise.
29003         * doc/posix-functions/wcstok.texi: Likewise.
29004         * doc/posix-functions/wcstoumax.texi: Likewise.
29005
29006         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29007         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29008         * doc/posix-functions/fprintf.texi: Update.
29009         * doc/posix-functions/printf.texi: Update.
29010         * doc/posix-functions/snprintf.texi: Update.
29011         * doc/posix-functions/sprintf.texi: Update.
29012         * doc/posix-functions/vfprintf.texi: Update.
29013         * doc/posix-functions/vprintf.texi: Update.
29014         * doc/posix-functions/vsnprintf.texi: Update.
29015         * doc/posix-functions/vsprintf.texi: Update.
29016         * doc/glibc-functions/obstack_printf.texi: Update.
29017         * doc/glibc-functions/obstack_vprintf.texi: Update.
29018
29019 2009-02-26  Eric Blake  <ebb9@byu.net>
29020
29021         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29022         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29023         compilation bug by using runtime conversion.
29024         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29025         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29026         * modules/ceill-tests (Files): Use nan.h.
29027         * modules/floorl-tests (Files): Likewise.
29028         * modules/frexpl-tests (Files): Likewise.
29029         * modules/isnanl-tests (Files): Likewise.
29030         * modules/ldexpl-tests (Files): Likewise.
29031         * modules/roundl-tests (Files): Likewise.
29032         * modules/truncl-tests (Files): Likewise.
29033         * tests/test-ceill.c (main): Use a working NaN.
29034         * tests/test-floorl.c (main): Likewise.
29035         * tests/test-frexpl.c (main): Likewise.
29036         * tests/test-isnan.c (test_long_double): Likewise.
29037         * tests/test-isnanl.h (main): Likewise.
29038         * tests/test-ldexpl.h (main): Likewise.
29039         * tests/test-roundl.h (main): Likewise.
29040         * tests/test-truncl.h (main): Likewise.
29041         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29042
29043 2009-02-26  Eric Blake  <ebb9@byu.net>
29044             Bruno Haible  <bruno@clisp.org>
29045
29046         Work around a *printf bug with %ls on Solaris.
29047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29048         precision is specified, sprintf stops converting the wide string
29049         argument when the number of bytes that have been produced by this
29050         conversion equals or exceeds the precision.
29051         * doc/posix-functions/fprintf.texi: Update.
29052         * doc/posix-functions/printf.texi: Update.
29053         * doc/posix-functions/snprintf.texi: Update.
29054         * doc/posix-functions/sprintf.texi: Update.
29055         * doc/posix-functions/vfprintf.texi: Update.
29056         * doc/posix-functions/vprintf.texi: Update.
29057         * doc/posix-functions/vsnprintf.texi: Update.
29058         * doc/posix-functions/vsprintf.texi: Update.
29059         * doc/glibc-functions/obstack_printf.texi: Update.
29060         * doc/glibc-functions/obstack_vprintf.texi: Update.
29061
29062 2009-02-26  Eric Blake  <ebb9@byu.net>
29063
29064         stdlib: favor compiler check of random.h
29065         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29066         to avoid an ObjC random.h installed by Swarm.
29067
29068 2009-02-26  Bruno Haible  <bruno@clisp.org>
29069
29070         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29071         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29072         Reported by Gary V. Vaughan <gary@gnu.org>.
29073
29074 2009-02-26  Bruno Haible  <bruno@clisp.org>
29075
29076         Fix *printf behaviour regarding the %ls directive.
29077         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29078         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29079         NEED_PRINTF_DIRECTIVE_LS.
29080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29081         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29083         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29084         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29085         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29086         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29091         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29095         * doc/posix-functions/fprintf.texi: Update.
29096         * doc/posix-functions/printf.texi: Update.
29097         * doc/posix-functions/snprintf.texi: Update.
29098         * doc/posix-functions/sprintf.texi: Update.
29099         * doc/posix-functions/vfprintf.texi: Update.
29100         * doc/posix-functions/vprintf.texi: Update.
29101         * doc/posix-functions/vsnprintf.texi: Update.
29102         * doc/posix-functions/vsprintf.texi: Update.
29103         * doc/glibc-functions/obstack_printf.texi: Update.
29104         * doc/glibc-functions/obstack_vprintf.texi: Update.
29105         Reported by Eric Blake.
29106
29107 2009-02-25  Bruno Haible  <bruno@clisp.org>
29108
29109         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29110         with known value.
29111         Reported by Gary V. Vaughan <gary@gnu.org>.
29112
29113 2009-02-25  Bruno Haible  <bruno@clisp.org>
29114
29115         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29116         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29117         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29118         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29119         Reported by Gary V. Vaughan <gary@gnu.org>.
29120
29121 2009-02-25  Bruno Haible  <bruno@clisp.org>
29122
29123         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29124         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29125         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29126         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29127         Reported by Gary V. Vaughan <gary@gnu.org>.
29128
29129 2009-02-25  Eric Blake  <ebb9@byu.net>
29130
29131         tests: skip fseek/ftell tests if ungetc is broken
29132         * m4/ungetc.m4: New file.
29133         * modules/fseek-tests: Split test, so ungetc dependency is
29134         separate from rest of test.
29135         * modules/fseeko-tests: Likewise.
29136         * modules/ftell-tests: Likewise.
29137         * modules/ftello-tests: Likewise.
29138         * tests/test-fseek.c (main): Isolate ungetc dependency.
29139         * tests/test-fseeko.c (main): Likewise.
29140         * tests/test-ftell.c (main): Likewise.
29141         * tests/test-ftello.c (main): Likewise.
29142         * tests/test-fseek2.sh: New file.
29143         * tests/test-fseeko2.sh: Likewise.
29144         * tests/test-ftell2.sh: Likewise.
29145         * tests/test-ftello2.sh: Likewise.
29146
29147 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29148
29149         test-getaddrinfo: fix usage of skip return code 77
29150         * tests/test-gettaddrinfo.c: Return skip code 77 only
29151         for first occurance of skip (4x77 is not 77)
29152
29153 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29154
29155         strtod: avoid C99 decl-after-statement
29156         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29157
29158 2009-02-24  Eric Blake  <ebb9@byu.net>
29159
29160         strtod: detect HP-UX 11.31 bug
29161         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29162         Reported by Gary V. Vaughan.
29163
29164 2009-02-23  Bruno Haible  <bruno@clisp.org>
29165
29166         Fix invalid read past end of memory block.
29167         * lib/vasnprintf.c (DCHAR_SET): Define.
29168         (local_wcslen): Define only when needed.
29169         (local_strnlen, local_wcsnlen): New functions.
29170         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29171         directives that involve a conversion ourselves.
29172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29173         wcsnlen, mbrtowc, wcrtomb.
29174         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29175         * tests/test-vasprintf-posix.c (test_function): Likewise.
29176         * tests/test-snprintf-posix.h (test_function): Likewise.
29177         * tests/test-sprintf-posix.h (test_function): Likewise.
29178         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29179
29180 2009-02-22  Bruno Haible  <bruno@clisp.org>
29181
29182         Implement new clarified decomposition of Hangul syllables.
29183         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29184         of type LTV, return only a pairwise decomposition.
29185         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29186         Likewise.
29187         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29188         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29189         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29190
29191 2009-02-22  Bruno Haible  <bruno@clisp.org>
29192
29193         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29194         zero-length results and shrink excess allocated memory.
29195         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29196         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29197         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29198         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29199         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29200         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29201         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29202         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29203         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29204         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29205         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29206         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29207
29208 2009-02-21  Bruno Haible  <bruno@clisp.org>
29209
29210         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29211         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29212         spaces after a period. Put a space between a macro name and its
29213         argument list. Trivial rewordings.
29214         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29215         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29216         (main): Return 0 explicitly.
29217
29218 2009-02-21  Bruno Haible  <bruno@clisp.org>
29219
29220         Tests for module 'uninorm/filter'.
29221         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29222         * modules/uninorm/filter-tests: New file.
29223
29224         New module 'uninorm/filter'.
29225         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29226         uninorm_filter_flush, uninorm_filter_free): New declarations.
29227         * lib/uninorm/uninorm-filter.c: New file.
29228         * modules/uninorm/filter: New file.
29229
29230 2009-02-21  Bruno Haible  <bruno@clisp.org>
29231
29232         Tests for module 'uninorm/nfkc'.
29233         * tests/uninorm/test-nfkc.c: New file.
29234         * tests/uninorm/test-u8-nfkc.c: New file.
29235         * tests/uninorm/test-u16-nfkc.c: New file.
29236         * tests/uninorm/test-u32-nfkc.c: New file.
29237         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29238         * tests/uninorm/test-u32-nfkc-big.c: New file.
29239         * modules/uninorm/nfkc-tests: New file.
29240
29241         New module 'uninorm/nfkc'.
29242         * lib/uninorm/nfkc.c: New file.
29243         * modules/uninorm/nfkc: New file.
29244
29245         Tests for module 'uninorm/nfkd'.
29246         * tests/uninorm/test-nfkd.c: New file.
29247         * tests/uninorm/test-u8-nfkd.c: New file.
29248         * tests/uninorm/test-u16-nfkd.c: New file.
29249         * tests/uninorm/test-u32-nfkd.c: New file.
29250         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29251         * tests/uninorm/test-u32-nfkd-big.c: New file.
29252         * modules/uninorm/nfkd-tests: New file.
29253
29254         New module 'uninorm/nfkd'.
29255         * lib/uninorm/nfkd.c: New file.
29256         * modules/uninorm/nfkd: New file.
29257
29258         Tests for module 'uninorm/nfc'.
29259         * tests/uninorm/test-nfc.c: New file.
29260         * tests/uninorm/test-u8-nfc.c: New file.
29261         * tests/uninorm/test-u16-nfc.c: New file.
29262         * tests/uninorm/test-u32-nfc.c: New file.
29263         * tests/uninorm/test-u32-nfc-big.sh: New file.
29264         * tests/uninorm/test-u32-nfc-big.c: New file.
29265         * modules/uninorm/nfc-tests: New file.
29266
29267         New module 'uninorm/nfc'.
29268         * lib/uninorm/nfc.c: New file.
29269         * modules/uninorm/nfc: New file.
29270
29271         Tests for module 'uninorm/nfd'.
29272         * tests/uninorm/test-nfd.c: New file.
29273         * tests/uninorm/test-u8-nfd.c: New file.
29274         * tests/uninorm/test-u16-nfd.c: New file.
29275         * tests/uninorm/test-u32-nfd.c: New file.
29276         * tests/uninorm/test-u32-nfd-big.sh: New file.
29277         * tests/uninorm/test-u32-nfd-big.c: New file.
29278         * tests/uninorm/test-u32-normalize-big.h: New file.
29279         * tests/uninorm/test-u32-normalize-big.c: New file.
29280         * tests/uninorm/NormalizationTest.txt: New file, created from
29281         Unicode 5.1.0 NormalizationTest.txt.
29282         * modules/uninorm/nfd-tests: New file.
29283
29284         New module 'uninorm/nfd'.
29285         * lib/uninorm/nfd.c: New file.
29286         * modules/uninorm/nfd: New file.
29287
29288         New module 'uninorm/u32-normalize'.
29289         * lib/uninorm/u32-normalize.c: New file.
29290         * modules/uninorm/u32-normalize: New file.
29291
29292         New module 'uninorm/u16-normalize'.
29293         * lib/uninorm/u16-normalize.c: New file.
29294         * modules/uninorm/u16-normalize: New file.
29295
29296         New module 'uninorm/u8-normalize'.
29297         * lib/uninorm/u8-normalize.c: New file.
29298         * lib/uninorm/normalize-internal.h: New file.
29299         * lib/uninorm/u-normalize-internal.h: New file.
29300         * modules/uninorm/u8-normalize: New file.
29301
29302         New module 'uninorm/decompose-internal'.
29303         * lib/uninorm/decompose-internal.c: New file.
29304         * modules/uninorm/decompose-internal: New file.
29305
29306         Tests for module 'uninorm/composition'.
29307         * tests/uninorm/test-composition.c: New file.
29308         * modules/uninorm/composition-tests: New file.
29309
29310         New module 'uninorm/composition'.
29311         * lib/uninorm/composition.c: New file.
29312         * lib/uninorm/composition-table.gperf: New file, generated by
29313         gen-uni-tables.
29314         * modules/uninorm/composition: New file.
29315
29316         Tests for module 'uninorm/compat-decomposition'.
29317         * tests/uninorm/test-compat-decomposition.c: New file.
29318         * modules/uninorm/compat-decomposition-tests: New file.
29319
29320         New module 'uninorm/compat-decomposition'.
29321         * lib/uninorm/decompose-internal.h: New file.
29322         * lib/uninorm/compat-decomposition.c: New file.
29323         * modules/uninorm/compat-decomposition: New file.
29324
29325         Tests for module 'uninorm/canonical-decomposition'.
29326         * tests/uninorm/test-canonical-decomposition.c: New file.
29327         * modules/uninorm/canonical-decomposition-tests: New file.
29328
29329         New module 'uninorm/canonical-decomposition'.
29330         * lib/uninorm/canonical-decomposition.c: New file.
29331         * modules/uninorm/canonical-decomposition: New file.
29332
29333         Tests for module 'uninorm/decomposition'.
29334         * tests/uninorm/test-decomposition.c: New file.
29335         * modules/uninorm/decomposition-tests: New file.
29336
29337         New module 'uninorm/decomposition'.
29338         * lib/uninorm/decomposition.c: New file.
29339         * modules/uninorm/decomposition: New file.
29340
29341         New module 'uninorm/decomposition-table'.
29342         * lib/uninorm/decomposition-table.h: New file.
29343         * lib/uninorm/decomposition-table.c: New file.
29344         * lib/uninorm/decomposition-table1.h: New file, generated by
29345         gen-uni-tables.
29346         * lib/uninorm/decomposition-table2.h: New file, generated by
29347         gen-uni-tables.
29348         * modules/uninorm/decomposition-table: New file.
29349
29350         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29351         (UC_DECOMP_*): New enumeration items.
29352         (get_decomposition): New function.
29353         (struct decomp_table): New type.
29354         (output_decomposition, output_decomposition_tables): New functions.
29355         (unicode_composition_exclusions): New variable.
29356         (fill_composition_exclusions, debug_output_composition_tables): New
29357         functions.
29358         (main): Accept one more argument. Invoke fill_composition_exclusions.
29359         Output decomposition and composition tables.
29360
29361         New module 'uninorm/base'.
29362         * lib/uninorm.h: New file.
29363         * lib/unictype.h: Update comment.
29364         * modules/uninorm/base: New file.
29365
29366 2009-02-21  David Lutterkort  <lutter@redhat.com>
29367
29368         Tests for module 'safe-alloc'.
29369         * tests/test-safe-alloc.c: New file.
29370         * modules/safe-alloc-tests: New file.
29371
29372         New module 'safe-alloc'.
29373         * lib/safe-alloc.h: New file.
29374         * lib/safe-alloc.c: New file.
29375         * m4/safe-alloc.m4: New file.
29376         * modules/safe-alloc: New file.
29377         * doc/safe-alloc.texi: New file.
29378         * doc/gnulib.texi: Include it.
29379         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29380         safe-alloc.
29381
29382 2009-02-18  Bruno Haible  <bruno@clisp.org>
29383
29384         Fix link error on non-glibc systems.
29385         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29386         variable.
29387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29388
29389 2009-02-18  Jim Meyering  <meyering@redhat.com>
29390
29391         fts: avoid used-uninitialized error due to recent change
29392         * lib/fts.c (fts_read): Guard uses of the new member,
29393         parent->fts_n_dirs_remaining, since it's not relevant for
29394         the parent of a directory specified on the command-line.
29395
29396 2009-02-17  James Youngman  <jay@gnu.org>
29397             Bruno Haible  <bruno@clisp.org>
29398
29399         * m4/include_next.m4: Reformulate comment.
29400
29401 2009-02-16  Jim Meyering  <meyering@redhat.com>
29402
29403         fts: add #if guards so that the fts_lgpl module still builds
29404         * lib/fts.c: Guard just-added hash-table-using parts with
29405         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29406         Reported by Simon Josefsson.
29407
29408 2009-02-15  Bruno Haible  <bruno@clisp.org>
29409
29410         * modules/array-mergesort-tests: New file.
29411         * tests/test-array-mergesort.c: New file.
29412
29413         New module 'array-mergesort'.
29414         * modules/array-mergesort: New file.
29415         * lib/array-mergesort.h: New file.
29416
29417 2009-02-15  Bruno Haible  <bruno@clisp.org>
29418
29419         Fix 2009-02-07 commit.
29420         * lib/gen-uni-tables.c (output_predicate, output_category,
29421         output_combclass, output_bidi_category, output_decimal_digit,
29422         output_digit, output_numeric, output_mirror, output_scripts,
29423         output_ident_category, output_simple_mapping): Fix format directives.
29424         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29425
29426 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29427
29428         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29429         fixes are available from IBM.
29430
29431 2009-02-13  Jim Meyering  <meyering@redhat.com>
29432
29433         fts: arrange not to stat non-directories in more cases
29434         This makes GNU find (when it doesn't need to stat each file)
29435         *much* more efficient at traversing reiserfs file systems.
29436         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29437         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29438         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29439         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29440         (leaf_optimization_applies): New function.
29441         (LCO_hash, LCO_compare): New helper functions.
29442         (link_count_optimize_ok): New function.
29443         (fts_stat): Initialize new member (if dir).
29444         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29445         we've just stat'ed a directory.  Skip the stat call when possible.
29446         ---
29447         Note this AFS-related exchange:
29448         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29449         and note find's pioctl call in find/fstype.c.
29450         But that is necessary only if you want to enable the
29451         optimization for AFS, and for now, I don't.
29452
29453         fts: move a function definition "up" (no semantic change)
29454         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29455         "up" to precede upcoming use of a related function.
29456
29457 2009-02-11  Jim Meyering  <meyering@redhat.com>
29458
29459         fts: correct internal computation of nlinks (optimization-related)
29460         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29461         whether the current entry is a directory, so don't test it.
29462
29463 2009-02-10  Bruno Haible  <bruno@clisp.org>
29464
29465         Tests for module 'uniwbrk/ulc-wordbreaks'.
29466         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29467         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29468         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29469
29470         Tests for module 'uniwbrk/u32-wordbreaks'.
29471         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29472         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29473
29474         Tests for module 'uniwbrk/u16-wordbreaks'.
29475         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29476         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29477
29478         Tests for module 'uniwbrk/u8-wordbreaks'.
29479         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29480         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29481
29482 2009-02-10  Bruno Haible  <bruno@clisp.org>
29483
29484         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29485         property.
29486         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29487         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29488         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29489
29490 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29491
29492         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29493         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29494
29495 2009-02-10  Bruno Haible  <bruno@clisp.org>
29496
29497         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29498         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29499         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29500         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29501         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29502         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29503
29504 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29505
29506         * lib/sockets.h (gl_fd_to_handle): New function.
29507
29508         * tests/test-sockets.c: Call gl_fd_to_handle.
29509
29510 2009-02-09  Bruno Haible  <bruno@clisp.org>
29511
29512         * doc/havelib.texi: Document the conventions on bi-arch systems.
29513
29514 2009-02-08  Bruno Haible  <bruno@clisp.org>
29515
29516         Document the AC_LIB_LINKFLAGS macro.
29517         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29518         * doc/gnulib.texi: Include it.
29519
29520 2009-02-08  Bruno Haible  <bruno@clisp.org>
29521
29522         Fix wrong order of sections, compared to TOC.
29523         * doc/gnulib.texi: Include relocatable-maint.texi after the
29524         "Regular expressions" node, not before.
29525
29526 2009-02-08  Bruno Haible  <bruno@clisp.org>
29527
29528         Tests for module 'unicase/totitle'.
29529         * modules/unicase/totitle-tests: New file.
29530
29531         Tests for module 'unicase/tolower'.
29532         * modules/unicase/tolower-tests: New file.
29533
29534         Tests for module 'unicase/toupper'.
29535         * modules/unicase/toupper-tests: New file.
29536         * tests/unicase/test-mapping-part1.h: New file.
29537         * tests/unicase/test-mapping-part2.h: New file.
29538
29539         New module 'unicase/totitle'.
29540         * modules/unicase/totitle: New file.
29541         * lib/unicase/totitle.c: New file.
29542
29543         New module 'unicase/tolower'.
29544         * modules/unicase/tolower: New file.
29545         * lib/unicase/tolower.c: New file.
29546
29547         New module 'unicase/toupper'.
29548         * modules/unicase/toupper: New file.
29549         * lib/unicase/toupper.c: New file.
29550         * lib/unicase/simple-mapping.h: New file.
29551
29552         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29553         (mapping_table): New structure.
29554         (output_simple_mapping): New function.
29555         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29556         * modules/gen-uni-tables (Description): Update.
29557         * lib/unicase/toupper.h: New file, automatically generated by
29558         gen-uni-tables.
29559         * lib/unicase/tolower.h: New file, automatically generated by
29560         gen-uni-tables.
29561         * lib/unicase/totitle.h: New file, automatically generated by
29562         gen-uni-tables.
29563         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29564         gen-uni-tables.
29565         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29566         gen-uni-tables.
29567         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29568         gen-uni-tables.
29569
29570         New module 'unicase/base'.
29571         * modules/unicase/base: New file.
29572         * lib/unicase.h: New file.
29573
29574 2009-02-08  Bruno Haible  <bruno@clisp.org>
29575
29576         New module 'uniwbrk/ulc-wordbreaks'.
29577         * modules/uniwbrk/ulc-wordbreaks: New file.
29578         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29579
29580         New module 'uniwbrk/u32-wordbreaks'.
29581         * modules/uniwbrk/u32-wordbreaks: New file.
29582         * lib/uniwbrk/u32-wordbreaks.c: New file.
29583
29584         New module 'uniwbrk/u16-wordbreaks'.
29585         * modules/uniwbrk/u16-wordbreaks: New file.
29586         * lib/uniwbrk/u16-wordbreaks.c: New file.
29587
29588         New module 'uniwbrk/u8-wordbreaks'.
29589         * modules/uniwbrk/u8-wordbreaks: New file.
29590         * lib/uniwbrk/u8-wordbreaks.c: New file.
29591         * lib/uniwbrk/u-wordbreaks.h: New file.
29592
29593         New module 'uniwbrk/table'.
29594         * modules/uniwbrk/table: New file.
29595         * lib/uniwbrk/wbrktable.h: New file.
29596         * lib/uniwbrk/wbrktable.c: New file.
29597
29598         New module 'uniwbrk/wordbreak-property'.
29599         * modules/uniwbrk/wordbreak-property: New file.
29600         * lib/uniwbrk/wordbreak-property.c: New file.
29601
29602         * lib/gen-uni-tables.c (WBP_*): New enum items.
29603         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29604         (unicode_org_wbp): New variable.
29605         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29606         New functions.
29607         (wbp_table): New structure.
29608         (output_wbp, output_wbrk_tables): New functions.
29609         (main): Accept additional argument. Invoke fill_org_wbp,
29610         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29611         output_wbrk_tables.
29612         * modules/gen-uni-tables (Description): Update.
29613         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29614         gen-uni-tables.
29615
29616         New module 'uniwbrk/base'.
29617         * modules/uniwbrk/base: New file.
29618         * lib/uniwbrk.h: New file.
29619
29620 2009-02-08  Bruno Haible  <bruno@clisp.org>
29621
29622         Update to Unicode 5.1.0.
29623         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29624         U+2185..U+2188.
29625         (is_property_default_ignorable_code_point): Don't include characters
29626         of category Cc or Cs and not-a-characters.
29627         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29628         U+0D79, U+109E, U+109F, U+A60C.
29629         * lib/unictype/bidi_of.h: Regenerated.
29630         * lib/unictype/blocks.h: Regenerated.
29631         * lib/unictype/categ_C.h: Regenerated.
29632         * lib/unictype/categ_Cf.h: Regenerated.
29633         * lib/unictype/categ_Cn.h: Regenerated.
29634         * lib/unictype/categ_L.h: Regenerated.
29635         * lib/unictype/categ_Ll.h: Regenerated.
29636         * lib/unictype/categ_Lm.h: Regenerated.
29637         * lib/unictype/categ_Lo.h: Regenerated.
29638         * lib/unictype/categ_Lu.h: Regenerated.
29639         * lib/unictype/categ_M.h: Regenerated.
29640         * lib/unictype/categ_Mc.h: Regenerated.
29641         * lib/unictype/categ_Me.h: Regenerated.
29642         * lib/unictype/categ_Mn.h: Regenerated.
29643         * lib/unictype/categ_N.h: Regenerated.
29644         * lib/unictype/categ_Nd.h: Regenerated.
29645         * lib/unictype/categ_Nl.h: Regenerated.
29646         * lib/unictype/categ_No.h: Regenerated.
29647         * lib/unictype/categ_P.h: Regenerated.
29648         * lib/unictype/categ_Pd.h: Regenerated.
29649         * lib/unictype/categ_Pe.h: Regenerated.
29650         * lib/unictype/categ_Pf.h: Regenerated.
29651         * lib/unictype/categ_Pi.h: Regenerated.
29652         * lib/unictype/categ_Po.h: Regenerated.
29653         * lib/unictype/categ_Ps.h: Regenerated.
29654         * lib/unictype/categ_S.h: Regenerated.
29655         * lib/unictype/categ_Sk.h: Regenerated.
29656         * lib/unictype/categ_Sm.h: Regenerated.
29657         * lib/unictype/categ_So.h: Regenerated.
29658         * lib/unictype/categ_of.h: Regenerated.
29659         * lib/unictype/combining.h: Regenerated.
29660         * lib/unictype/ctype_alnum.h: Regenerated.
29661         * lib/unictype/ctype_alpha.h: Regenerated.
29662         * lib/unictype/ctype_graph.h: Regenerated.
29663         * lib/unictype/ctype_lower.h: Regenerated.
29664         * lib/unictype/ctype_print.h: Regenerated.
29665         * lib/unictype/ctype_punct.h: Regenerated.
29666         * lib/unictype/ctype_upper.h: Regenerated.
29667         * lib/unictype/decdigit.h: Regenerated.
29668         * lib/unictype/digit.h: Regenerated.
29669         * lib/unictype/mirror.h: Regenerated.
29670         * lib/unictype/numeric.h: Regenerated.
29671         * lib/unictype/pr_alphabetic.h: Regenerated.
29672         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29673         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29674         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29675         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29676         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29677         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29678         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29679         * lib/unictype/pr_combining.h: Regenerated.
29680         * lib/unictype/pr_dash.h: Regenerated.
29681         * lib/unictype/pr_decimal_digit.h: Regenerated.
29682         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29683         * lib/unictype/pr_deprecated.h: Regenerated.
29684         * lib/unictype/pr_diacritic.h: Regenerated.
29685         * lib/unictype/pr_extender.h: Regenerated.
29686         * lib/unictype/pr_format_control.h: Regenerated.
29687         * lib/unictype/pr_grapheme_base.h: Regenerated.
29688         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29689         * lib/unictype/pr_grapheme_link.h: Regenerated.
29690         * lib/unictype/pr_id_continue.h: Regenerated.
29691         * lib/unictype/pr_id_start.h: Regenerated.
29692         * lib/unictype/pr_ideographic.h: Regenerated.
29693         * lib/unictype/pr_ignorable_control.h: Regenerated.
29694         * lib/unictype/pr_lowercase.h: Regenerated.
29695         * lib/unictype/pr_math.h: Regenerated.
29696         * lib/unictype/pr_numeric.h: Regenerated.
29697         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29698         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29699         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29700         * lib/unictype/pr_other_id_continue.h: Regenerated.
29701         * lib/unictype/pr_other_lowercase.h: Regenerated.
29702         * lib/unictype/pr_other_math.h: Regenerated.
29703         * lib/unictype/pr_punctuation.h: Regenerated.
29704         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29705         * lib/unictype/pr_soft_dotted.h: Regenerated.
29706         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29707         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29708         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29709         * lib/unictype/pr_uppercase.h: Regenerated.
29710         * lib/unictype/pr_xid_continue.h: Regenerated.
29711         * lib/unictype/pr_xid_start.h: Regenerated.
29712         * lib/unictype/pr_zero_width.h: Regenerated.
29713         * lib/unictype/scripts.h: Regenerated.
29714         * lib/unictype/scripts_byname.gperf: Regenerated.
29715         * lib/unictype/sy_java_ident.h: Regenerated.
29716         * lib/unilbrk/lbrkprop1.h: Regenerated.
29717         * lib/unilbrk/lbrkprop2.h: Regenerated.
29718         * tests/unictype/test-categ_C.c: Regenerated.
29719         * tests/unictype/test-categ_Cf.c: Regenerated.
29720         * tests/unictype/test-categ_Cn.c: Regenerated.
29721         * tests/unictype/test-categ_L.c: Regenerated.
29722         * tests/unictype/test-categ_Ll.c: Regenerated.
29723         * tests/unictype/test-categ_Lm.c: Regenerated.
29724         * tests/unictype/test-categ_Lo.c: Regenerated.
29725         * tests/unictype/test-categ_Lu.c: Regenerated.
29726         * tests/unictype/test-categ_M.c: Regenerated.
29727         * tests/unictype/test-categ_Mc.c: Regenerated.
29728         * tests/unictype/test-categ_Me.c: Regenerated.
29729         * tests/unictype/test-categ_Mn.c: Regenerated.
29730         * tests/unictype/test-categ_N.c: Regenerated.
29731         * tests/unictype/test-categ_Nd.c: Regenerated.
29732         * tests/unictype/test-categ_Nl.c: Regenerated.
29733         * tests/unictype/test-categ_No.c: Regenerated.
29734         * tests/unictype/test-categ_P.c: Regenerated.
29735         * tests/unictype/test-categ_Pd.c: Regenerated.
29736         * tests/unictype/test-categ_Pe.c: Regenerated.
29737         * tests/unictype/test-categ_Pf.c: Regenerated.
29738         * tests/unictype/test-categ_Pi.c: Regenerated.
29739         * tests/unictype/test-categ_Po.c: Regenerated.
29740         * tests/unictype/test-categ_Ps.c: Regenerated.
29741         * tests/unictype/test-categ_S.c: Regenerated.
29742         * tests/unictype/test-categ_Sk.c: Regenerated.
29743         * tests/unictype/test-categ_Sm.c: Regenerated.
29744         * tests/unictype/test-categ_So.c: Regenerated.
29745         * tests/unictype/test-ctype_alnum.c: Regenerated.
29746         * tests/unictype/test-ctype_alpha.c: Regenerated.
29747         * tests/unictype/test-ctype_graph.c: Regenerated.
29748         * tests/unictype/test-ctype_lower.c: Regenerated.
29749         * tests/unictype/test-ctype_print.c: Regenerated.
29750         * tests/unictype/test-ctype_punct.c: Regenerated.
29751         * tests/unictype/test-ctype_upper.c: Regenerated.
29752         * tests/unictype/test-decdigit.h: Regenerated.
29753         * tests/unictype/test-digit.h: Regenerated.
29754         * tests/unictype/test-numeric.h: Regenerated.
29755         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29756         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29757         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29758         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29759         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29760         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29761         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29762         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29763         * tests/unictype/test-pr_combining.c: Regenerated.
29764         * tests/unictype/test-pr_dash.c: Regenerated.
29765         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29766         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29767         * tests/unictype/test-pr_deprecated.c: Regenerated.
29768         * tests/unictype/test-pr_diacritic.c: Regenerated.
29769         * tests/unictype/test-pr_extender.c: Regenerated.
29770         * tests/unictype/test-pr_format_control.c: Regenerated.
29771         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29772         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29773         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29774         * tests/unictype/test-pr_id_continue.c: Regenerated.
29775         * tests/unictype/test-pr_id_start.c: Regenerated.
29776         * tests/unictype/test-pr_ideographic.c: Regenerated.
29777         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29778         * tests/unictype/test-pr_lowercase.c: Regenerated.
29779         * tests/unictype/test-pr_math.c: Regenerated.
29780         * tests/unictype/test-pr_numeric.c: Regenerated.
29781         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29782         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29783         Regenerated.
29784         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29785         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29786         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29787         * tests/unictype/test-pr_other_math.c: Regenerated.
29788         * tests/unictype/test-pr_punctuation.c: Regenerated.
29789         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29790         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29791         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29792         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29793         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29794         * tests/unictype/test-pr_uppercase.c: Regenerated.
29795         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29796         * tests/unictype/test-pr_xid_start.c: Regenerated.
29797         * tests/unictype/test-pr_zero_width.c: Regenerated.
29798
29799         Update to Unicode 5.1.0.
29800         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29801         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29802         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29803         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29804         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29805         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29806         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29807         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29808         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29809         (nonspacing_table_ind): Update.
29810         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29811
29812         Update to Unicode 5.1.0.
29813         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29814         code transform.
29815         * lib/uniname/uniname.c (unicode_character_name,
29816         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29817         * lib/uniname/uninames.h: Regenerated.
29818         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29819
29820 2009-02-07  Bruno Haible  <bruno@clisp.org>
29821
29822         Merge gen-ctype and gen-lbrk into a single program.
29823         * lib/gen-uni-tables.c: New file, incorporating
29824         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29825         Add directory prefixes to the names of the generated files.
29826         * lib/unictype/gen-ctype.c: Remove file.
29827         * lib/unilbrk/gen-lbrk.c: Remove file.
29828         * modules/gen-uni-tables: New file.
29829         * modules/unictype/gen-ctype: Remove file.
29830         * modules/unilbrk/gen-lbrk: Remove file.
29831
29832 2009-02-07  Bruno Haible  <bruno@clisp.org>
29833
29834         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29835
29836         New module 'unistr/u32-strcoll'.
29837         * modules/unistr/u32-strcoll: New file.
29838         * lib/unistr/u32-strcoll.c: New file.
29839
29840         New module 'unistr/u16-strcoll'.
29841         * modules/unistr/u16-strcoll: New file.
29842         * lib/unistr/u16-strcoll.c: New file.
29843
29844         New module 'unistr/u8-strcoll'.
29845         * modules/unistr/u8-strcoll: New file.
29846         * lib/unistr/u8-strcoll.c: New file.
29847         * lib/unistr/u-strcoll.h: New file.
29848
29849 2009-02-07  Bruno Haible  <bruno@clisp.org>
29850
29851         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29852         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29853         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29854         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29855         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29856         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29857
29858 2009-02-07  Bruno Haible  <bruno@clisp.org>
29859
29860         Make 64-bit clean.
29861         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29862         output_combclass, output_bidi_category, output_decimal_digit,
29863         output_digit, output_numeric, output_mirror, output_scripts,
29864         output_ident_category): Use proper width specifier in format strings.
29865
29866 2009-02-07  Bruno Haible  <bruno@clisp.org>
29867
29868         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29869         failure behaviour.
29870
29871 2009-02-07  Jim Meyering  <meyering@redhat.com>
29872
29873         regex: avoid compilation failure with upcoming gcc-4.4
29874         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29875         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29876         "... error: integer overflow in preprocessor expression".
29877
29878 2009-02-05  Ben Pfaff  <blp@gnu.org>
29879
29880         Fix link errors on Windows when close module is used.
29881         * modules/close: Add $(LIB_CLOSE) to Link section.
29882         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29883         $(LIB_CLOSE) on Windows.
29884
29885 2009-02-05  Jim Meyering  <meyering@redhat.com>
29886
29887         still avoid unused-parameter warnings, but do it cleanly
29888         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29889         (get_fs_usage): Cast to void instead.
29890         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29891         (dev_from_mount_options, read_file_system_list): Cast to void.
29892         Prompted by Bruno Haible.
29893
29894 2009-02-04  Jim Meyering  <meyering@redhat.com>
29895
29896         fsusage.c: correct copyright year
29897         * lib/fsusage.c: Reflect year in which the change is pushed into
29898
29899         avoid misc. warnings
29900         * lib/fsusage.c (UNUSED_PARAM): Define.
29901         (get_fs_usage): Mark parameter "disk" as unused.
29902         * lib/getugroups.c (getgrent): Use "void" in prototype.
29903         * lib/mountlist.c: Mark unused parameters.
29904         (read_file_system_list): Declare a local with "const".
29905         * lib/nanosleep.c (getnow): Declare static.
29906         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29907
29908         dirfd: set errno upon failure
29909         * lib/dirfd.c: Include <errno.h>.
29910         Set errno to ENOTSUP when returning -1.
29911         * modules/dirfd (Depends-on): Add errno.
29912         Suggested by John Kodis <kodis@comcast.net>.
29913
29914 2009-02-01  Bruno Haible  <bruno@clisp.org>
29915
29916         Don't assume sizeof (long) >= sizeof (void *).
29917         * lib/memcmp.c: Include stdint.h.
29918         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29919         srcp2 to 'const byte *'.
29920         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29921         types to uintptr_t.
29922         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29923         * modules/memcmp (Depends-on): Add stdint.
29924         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29925
29926 2009-01-30  Eric Blake  <ebb9@byu.net>
29927
29928         fix more require-before-expand issues
29929         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29930         expand, AC_PROG_AWK.
29931         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29932
29933 2009-01-28  Eric Blake  <ebb9@byu.net>
29934
29935         version-etc: use consistent URL formatting
29936         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29937         Improve formatting.  Use fputs for string without %.
29938
29939 2009-01-28  Jim Meyering  <meyering@redhat.com>
29940
29941         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29942         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29943         "underquoted definition of NAME" from autoconf-2.59.
29944
29945 2009-01-28  Bruno Haible  <bruno@clisp.org>
29946
29947         * doc/gnulib.texi: Add "Obsolete modules" to index.
29948
29949 2009-01-28  Jim Meyering  <meyering@redhat.com>
29950
29951         useless-if-before-free: recognize more variants
29952         * build-aux/useless-if-before-free: Also recognize e.g.,
29953         if (NULL != p) free (p);
29954
29955 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29956
29957         test-getaddrinfo: skip (don't fail) this test when there's no network
29958         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29959         on the presumption that it means you lack network access.
29960
29961 2009-01-26  Jim Meyering  <meyering@redhat.com>
29962
29963         fflush: avoid warnings on modern systems
29964         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29965         pos and result, into scopes where they're used.
29966
29967 2009-01-26  Eric Blake  <ebb9@byu.net>
29968
29969         Silence warning reintroduced by recent extensions patch.
29970         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29971         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29972         autoconf.
29973
29974         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29975         * m4/00gnulib.m4: New file.
29976         * gnulib-tool (func_get_filelist): Always use it.
29977         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29978         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29979
29980 2009-01-25  Bruno Haible  <bruno@clisp.org>
29981
29982         Make test-quotearg work on MacOS X and AIX.
29983         * tests/test-quotearg.sh: New file.
29984         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29985         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29986         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29987         include <libintl.h>.
29988         (fake_locale): Remove variable.
29989         (gettext, dgettext, dcgettext): Remove functions.
29990         (main): Instead of setting a fake locale, set a real locale. Call
29991         textdomain and bindtextdomain.
29992         * modules/quotearg-tests (Files): Add the new files.
29993         (Depends-on): Add gettext, setenv, unsetenv.
29994         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29995         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29996         Augment TESTS_ENVIRONMENT.
29997
29998 2009-01-25  Bruno Haible  <bruno@clisp.org>
29999
30000         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30001         fr_FR.ISO8859-1 locale on MacOS X.
30002         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30003         ja_JP.eucJP locale on MacOS X.
30004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30005         zh_CN.GB18030 locale on MacOS X.
30006
30007 2009-01-25  Bruno Haible  <bruno@clisp.org>
30008
30009         Avoid link errors on MacOS X 10.3.
30010         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30011         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30012
30013 2009-01-25  Bruno Haible  <bruno@clisp.org>
30014
30015         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30016         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30017         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30018         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30019         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30020         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30021         posix_spawnattr_init, posix_spawnattr_setsigmask,
30022         posix_spawnattr_setflags, posix_spawnattr_destroy.
30023
30024         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30025         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30026         * modules/execute (Files): Remove m4/posix_spawn.m4.
30027         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30028         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30029         posix_spawnattr_init, posix_spawnattr_setsigmask,
30030         posix_spawnattr_setflags, posix_spawnattr_destroy.
30031
30032 2009-01-25  Bruno Haible  <bruno@clisp.org>
30033
30034         * lib/glthread/threadlib.c: Include <stdlib.h>.
30035
30036 2009-01-25  Bruno Haible  <bruno@clisp.org>
30037
30038         * lib/glthread/threadlib.c (dummy): New declaration.
30039
30040 2009-01-25  Bruno Haible  <bruno@clisp.org>
30041
30042         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30043         multibyte characters also for the GB18030 encoding. Don't crash when
30044         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30045
30046 2009-01-25  Bruno Haible  <bruno@clisp.org>
30047
30048         Avoid redefining 'struct random_data' on OSF/1 5.1.
30049         * lib/stdlib.in.h: Include <random.h> if it exists.
30050         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30051         HAVE_RANDOM_H. Include <random.h> when testing whether
30052         'struct random_data' exists.
30053         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30054
30055 2009-01-25  Bruno Haible  <bruno@clisp.org>
30056
30057         Don't install charset.alias on MacOS X >= 10.3.
30058         * lib/localcharset.c (DARWIN7): New macro.
30059         (get_charset_aliases): Hardcode the result for Darwin7.
30060         * modules/localcharset (install-exec-local): Don't install
30061         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30062
30063 2009-01-25  Bruno Haible  <bruno@clisp.org>
30064
30065         Don't install charset.alias on mingw and Cygwin.
30066         * modules/localcharset (install-exec-local): Don't install
30067         charset.alias on mingw and Cygwin, if the file does not yet exist.
30068         The result for these platforms is hardcoded in localcharset.c.
30069
30070 2009-01-25  Bruno Haible  <bruno@clisp.org>
30071
30072         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30074         before requiring AC_USE_SYSTEM_EXTENSIONS.
30075
30076 2009-01-25  Jim Meyering  <meyering@redhat.com>
30077
30078         c-strtod: avoid warnings
30079         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30080         "assignment discards qualifiers from pointer target type" warnings.
30081
30082 2009-01-24  Bruno Haible  <bruno@clisp.org>
30083
30084         Add support for non-UTF-8 locales on MacOS X.
30085         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30086         canonical encodings. For Darwin 7 and newer, don't map traditional
30087         encodings to UTF-8.
30088         Reported by Vincent Lefevre <vincent@vinc17.org>
30089         at <http://savannah.gnu.org/bugs/?25235>.
30090
30091 2009-01-24  Bruno Haible  <bruno@clisp.org>
30092
30093         * doc/gnulib.texi (Obsolete modules): New section.
30094         Reported by Mike Frysinger <vapier@gentoo.org>.
30095
30096 2009-01-24  Bruno Haible  <bruno@clisp.org>
30097
30098         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30099         (%.dvi): New rule.
30100
30101 2009-01-24  Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30104         Reported by Eric Blake.
30105
30106 2009-01-24  Bruno Haible  <bruno@clisp.org>
30107
30108         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30109         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30110         Reported by Gary V. Vaughan <gary@gnu.org>.
30111
30112 2009-01-24  Bruno Haible  <bruno@clisp.org>
30113
30114         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30115
30116 2009-01-23  Bruno Haible  <bruno@clisp.org>
30117
30118         Make c-strtod, c-strtold usable in libraries.
30119         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30120         (C_STRTOD): Call strdup instead of xstrdup.
30121         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30122         * modules/c-strtold (Depends-on): Likewise.
30123         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30124         * NEWS: Mention the change.
30125         Reported by Michael Gold <mgold@ncf.ca>.
30126
30127 2009-01-23  Jim Meyering  <meyering@redhat.com>
30128
30129         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30130         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30131         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30132
30133 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30134
30135         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30136         GNU CoreUtils.
30137         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30138         * modules/version-etc (Description): Update.
30139
30140 2009-01-22  Bruno Haible  <bruno@clisp.org>
30141
30142         Cache the C locale object.
30143         * lib/c-strtod.c (c_locale_cache): New variable.
30144         (c_locale): New function.
30145         (C_STRTOD): Use it, and don't call freelocale.
30146         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30147         Suggested by Paolo Bonzini.
30148
30149 2009-01-21  Bruno Haible  <bruno@clisp.org>
30150
30151         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30152         conditions other than overflow.
30153
30154 2009-01-21  Bruno Haible  <bruno@clisp.org>
30155
30156         * lib/c-strtod.c: Include errno.h.
30157         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30158         value from STRTOD_L and STRTOD.
30159
30160 2009-01-21  Bruno Haible  <bruno@clisp.org>
30161         and Jim Meyering  <meyering@redhat.com>
30162
30163         nanosleep: skip configure test (fail it) for apple universal builds
30164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30165         universal builds, assume that nanosleep does not work.
30166         * modules/nanosleep (Depends-on): Add multiarch.
30167
30168         mktime: skip configure test (fail it) for apple universal builds
30169         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30170         universal builds, assume that mktime does not work.
30171         * modules/mktime (Depends-on): Add multiarch.
30172
30173 2009-01-21  Eric Blake  <ebb9@byu.net>
30174
30175         multiarch: avoid expand-before-require warning
30176         * modules/multiarch (configure.ac): Require, rather than expand,
30177         gl_MULTIARCH.
30178         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30179         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30180         enforce that all clients require it.  Partial reversion of
30181         2008-12-29 patch.
30182
30183         error: avoid expand-before-require warning
30184         * modules/errno (configure.ac): Require, rather than expand,
30185         gl_HEADER_ERRNO_H.
30186         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30187         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30188         enforce that all clients require it.
30189
30190         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30191         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30192         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30193         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30194
30195 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30196
30197         Revert:
30198         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30199
30200         regex: do not depend on obsolete modules.
30201         * modules/regex: Remove memcmp and memmove.
30202
30203 2009-01-20  Bruno Haible  <bruno@clisp.org>
30204
30205         Make the 'link' module link on Windows NT 4.
30206         * lib/link.c (_WIN32_WINNT): Don't define.
30207         (CreateHardLinkFuncType): New type.
30208         (CreateHardLinkFunc, initialized): New variables.
30209         (initialize): New function.
30210         (link): Invoke CreateHardLink indirectly through the function pointer.
30211
30212 2009-01-20  Bruno Haible  <bruno@clisp.org>
30213
30214         Fix compilation failure on mingw.
30215         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30216
30217 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30218
30219         * doc/c-strtod.texi: Mention a couple of restrictions.
30220
30221 2009-01-20  Jim Meyering  <meyering@redhat.com>
30222
30223         gettimeofday: move more declarations out of functions
30224         * lib/gettimeofday.c: Move extern declarations of tzset and
30225         gmtime out of containing functions.  Prompted by Bruno Haible.
30226
30227 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30228
30229         regex: do not depend on obsolete modules.
30230         * modules/regex: Remove memcmp and memmove.
30231
30232 2009-01-19  Bruno Haible  <bruno@clisp.org>
30233
30234         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30235         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30236         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30237         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30238         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30239
30240 2009-01-19  Bruno Haible  <bruno@clisp.org>
30241
30242         * tests/test-link.c: Include <errno.h>.
30243         (main): Exit with code 77 when a hard link cannot be created due to
30244         the file system.
30245         * tests/test-link.sh: Skip test when a hard link cannot be created due
30246         to the file system.
30247         Suggested by Eric Blake.
30248
30249 2009-01-19  Martin Lambers  <marlam@marlam.de>
30250
30251         * modules/link-tests: New file.
30252         * tests/test-link.sh: New file.
30253         * tests/test-link.c: New file.
30254
30255 2009-01-19  Eric Blake  <ebb9@byu.net>
30256
30257         doc: mention another function added in cygwin 1.7.0
30258         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30259         Another new function in cygwin 1.7.
30260
30261 2009-01-19  Bruno Haible  <bruno@clisp.org>
30262
30263         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30264         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30265         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30266         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30267         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30268         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30269         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30270         * m4/md4.m4 (gl_MD4): Likewise.
30271         * m4/md5.m4 (gl_MD5): Likewise.
30272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30273         * m4/sha1.m4 (gl_SHA1): Likewise.
30274         * m4/sha256.m4 (gl_SHA256): Likewise.
30275         * m4/sha512.m4 (gl_SHA512): Likewise.
30276
30277 2009-01-19  Bruno Haible  <bruno@clisp.org>
30278
30279         * modules/uniname/uniname-tests (Depends-on): Add progname.
30280         * tests/uniname/test-uninames.c: Include progname.h.
30281         (main): Call set_program_name.
30282
30283         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30284         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30285         (main): Call set_program_name.
30286
30287         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30288         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30289         (main): Call set_program_name.
30290
30291         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30292         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30293         (main): Call set_program_name.
30294
30295         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30296         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30297         (main): Call set_program_name.
30298
30299         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30300         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30301         (main): Call set_program_name.
30302
30303         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30304         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30305         (main): Call set_program_name.
30306
30307         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30308         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30309         (main): Call set_program_name.
30310
30311         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30312         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30313         (main): Call set_program_name.
30314
30315 2009-01-19  Eric Blake  <ebb9@byu.net>
30316
30317         test-unistd: test previous patch
30318         * tests/test-unistd.c: Test *_FILENO macros.
30319
30320         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30321         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30322         Guarantee a definition.
30323         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30324         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30325         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30326         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30327         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30328         Likewise.
30329         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30330         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30331         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30332         Likewise.
30333         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30334         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30335         (STDERR_FILENO): Likewise.
30336         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30337         (STDERR_FILENO): Likewise.
30338         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30339         (STDERR_FILENO): Likewise.
30340         Reported by Elbert Pol.
30341
30342 2009-01-19  Eric Blake  <ebb9@byu.net>
30343
30344         doc: mention more functions added in cygwin 1.7.0
30345         * doc/posix-functions/abort.texi (abort): Update wording related
30346         to cygwin.
30347         * doc/posix-functions/daylight.texi (daylight): Likewise.
30348         * doc/posix-functions/optarg.texi (optarg): Likewise.
30349         * doc/posix-functions/optarg.texi (opterr): Likewise.
30350         * doc/posix-functions/optarg.texi (optind): Likewise.
30351         * doc/posix-functions/optarg.texi (optopt): Likewise.
30352         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30353         worked in 1.5.x, and was withdrawn in 1.7.
30354         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30355         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30356         cygwin versions.
30357         * doc/posix-functions/perror.texi (perror): Likewise.
30358         * doc/posix-functions/printf.texi (printf): Likewise.
30359         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30360         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30361         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30362         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30363         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30364         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30365         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30366         Likewise.
30367         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30368         Likewise.
30369         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30370         this function.
30371         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30372         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30373         Likewise.
30374         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30375         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30376         * doc/posix-functions/confstr.texi (confstr): Likewise.
30377         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30378         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30379         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30380         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30381         * doc/posix-functions/fputws.texi (fputws): Likewise.
30382         * doc/posix-functions/fwide.texi (fwide): Likewise.
30383         * doc/posix-functions/getwc.texi (getwc): Likewise.
30384         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30385         * doc/posix-functions/putwc.texi (putwc): Likewise.
30386         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30387         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30388         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30389         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30390         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30391         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30392         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30393         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30394         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30395         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30396         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30397
30398 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30399
30400         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30401         * lib/ioctl.c: Include <sys/ioctl.h>.
30402
30403 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30404
30405         * modules/getdate-tests (Depends-on): Add progname.
30406         * tests/test-getdate.c: Use progname module, to avoid link errors
30407         on non-glibc systems.
30408
30409 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30410
30411         * modules/filenamecat-tests (Depends-on): Add progname.
30412         * modules/fstrcmp-tests (Depends-on): Likewise.
30413
30414         * tests/test-filenamecat.c: Use progname module, to avoid link
30415         errors on non-glibc systems.
30416         * tests/test-fstrcmp.c: Likewise.
30417
30418 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30419
30420         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30421         * lib/gettimeofday.c: Move extern declaration out of function.
30422
30423 2009-01-18  Bruno Haible  <bruno@clisp.org>
30424
30425         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30426         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30427         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30428
30429 2009-01-18  Bruno Haible  <bruno@clisp.org>
30430
30431         * lib/strftime.c (MEMPCPY): Remove unused macro.
30432         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30433
30434 2009-01-18  Martin Lambers  <marlam@marlam.de>
30435
30436         New module 'link'.
30437         * lib/unistd.in.h (link): New declaration.
30438         * lib/link.c: New file.
30439         * m4/link.m4: New file.
30440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30441         HAVE_LINK.
30442         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30443         * modules/link: New file.
30444         * doc/posix-functions/link.texi: Mention the new module.
30445
30446 2009-01-18  Bruno Haible  <bruno@clisp.org>
30447
30448         * tests/test-avltree_list.c (main): Call set_program_name.
30449         * tests/test-avltree_oset.c (main): Likewise.
30450         * tests/test-obstack-printf.c: Include progname.h.
30451         (main): Call set_program_name.
30452         * tests/test-quotearg.c: Include progname.h.
30453         (main): Call set_program_name.
30454         * tests/test-xmemdup0.c: Include progname.h.
30455         (main): Call set_program_name.
30456
30457 2009-01-18  Bruno Haible  <bruno@clisp.org>
30458
30459         New module 'alphasort'.
30460         * lib/dirent.in.h (alphasort): New declaration.
30461         * lib/alphasort.c: New file, from glibc with modifications.
30462         * m4/alphasort.m4: New file.
30463         * modules/alphasort: New file.
30464         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30465         HAVE_ALPHASORT.
30466         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30467         HAVE_ALPHASORT.
30468         * doc/posix-functions/alphasort.texi: Mention the new module and the
30469         portability problems.
30470
30471 2009-01-18  Bruno Haible  <bruno@clisp.org>
30472
30473         New module 'scandir'.
30474         * lib/dirent.in.h (scandir): New declaration.
30475         * lib/scandir.c: New file, from glibc with modifications.
30476         * m4/scandir.m4: New file.
30477         * modules/scandir: New file.
30478         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30479         HAVE_SCANDIR.
30480         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30481         HAVE_SCANDIR.
30482         * doc/posix-functions/scandir.texi: Mention the new module and the
30483         portability problems.
30484
30485 2009-01-17  Bruno Haible  <bruno@clisp.org>
30486
30487         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30488         Update documentation.
30489         (func_remove_suffix): Escape all dots in the suffix. Update
30490         documentation.
30491         (func_filter_filelist): Update documentation.
30492         Reported by Ralf Wildenhues.
30493
30494 2009-01-17  Bruno Haible  <bruno@clisp.org>
30495
30496         * modules/dprintf-posix-tests: New file.
30497         * tests/test-dprintf-posix.sh: New file.
30498         * tests/test-dprintf-posix.c: New file.
30499
30500         New modules 'dprintf', 'dprintf-posix'.
30501         * lib/stdio.in.h (dprintf): New declaration.
30502         * lib/dprintf.c: New file.
30503         * m4/dprintf.m4: New file.
30504         * m4/dprintf-posix.m4: New file.
30505         * modules/dprintf: New file.
30506         * modules/dprintf-posix: New file.
30507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30508         HAVE_DPRINTF, REPLACE_DPRINTF.
30509         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30510         HAVE_DPRINTF, REPLACE_DPRINTF.
30511         * doc/posix-functions/dprintf.texi: Mention the new modules.
30512
30513 2009-01-17  Bruno Haible  <bruno@clisp.org>
30514
30515         * modules/vdprintf-posix-tests: New file.
30516         * tests/test-vdprintf-posix.sh: New file.
30517         * tests/test-vdprintf-posix.c: New file.
30518
30519         New modules 'vdprintf', 'vdprintf-posix'.
30520         * lib/stdio.in.h (vdprintf): New declaration.
30521         * lib/vdprintf.c: New file.
30522         * m4/vdprintf.m4: New file.
30523         * m4/vdprintf-posix.m4: New file.
30524         * modules/vdprintf: New file.
30525         * modules/vdprintf-posix: New file.
30526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30527         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30528         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30529         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30530         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30531
30532 2009-01-17  Bruno Haible  <bruno@clisp.org>
30533
30534         Fix replacement of fopen on mingw.
30535         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30536         mingw.
30537
30538 2009-01-17  Bruno Haible  <bruno@clisp.org>
30539
30540         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30541         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30542
30543 2009-01-17  Bruno Haible  <bruno@clisp.org>
30544
30545         Avoid test-fflush2.sh failure on mingw.
30546         * tests/test-fflush2.c: Include binary-io.h.
30547         (main): Put standard input into binary mode.
30548         * modules/fflush-tests (Depends-on): Add binary-io.
30549
30550 2009-01-17  Bruno Haible  <bruno@clisp.org>
30551
30552         * lib/wchar.in.h: In another particular situation, include only the
30553         system's <wchar.h> file.
30554         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30555         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30556         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30557
30558 2009-01-17  Bruno Haible  <bruno@clisp.org>
30559
30560         Support for stripping executables in --enable-relocatable.
30561         * build-aux/install-reloc: Expect one more argument, or an environment
30562         variable RELOC_STRIP_PROG. If set, strip the destination program and
30563         its wrapper.
30564         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30565         RELOC_STRIP_PROG.
30566         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30567         to set RELOCATABLE_STRIP.
30568         * NEWS: Mention the new Makefile requirement.
30569
30570 2009-01-17  Bruno Haible  <bruno@clisp.org>
30571
30572         * build-aux/install-reloc: Remove debugging information left over by
30573         C compiler on MacOS X.
30574
30575 2009-01-17  Bruno Haible  <bruno@clisp.org>
30576
30577         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30578         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30579         _NSGetExecutablePath.
30580
30581 2009-01-16  Jim Meyering  <meyering@redhat.com>
30582
30583         strerror: avoid warnings about discarding "const"
30584         * lib/strerror.c (rpl_strerror): Instead of returning a const
30585         string from each and every "case", use a variable, and add a single
30586         cast after the switch.
30587
30588 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30589
30590         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30591
30592 2009-01-16  Bruno Haible  <bruno@clisp.org>
30593
30594         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30595         array initializer syntax that also works in C++ mode.
30596         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30597
30598 2009-01-16  Jim Meyering  <meyering@redhat.com>
30599
30600         poll: suppress a warning
30601         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30602         to ignore "...unsigned expression < 0 is always false" warnings.
30603
30604 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30605
30606         poll: remove declarations of unused variables
30607         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30608         sockbuf and optlen.
30609
30610 2009-01-15  Bruno Haible  <bruno@clisp.org>
30611
30612         Make fflush-after-ungetc POSIX compliant on BSD systems.
30613         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30614         (clear_ungetc_buffer): Implement also for other systems.
30615         (rpl_fflush): On glibc systems, invoke
30616         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30617         clear_ungetc_buffer after fetching the stream's position, not before.
30618
30619 2009-01-15  Bruno Haible  <bruno@clisp.org>
30620
30621         Make fflush-after-ungetc POSIX compliant on glibc systems.
30622         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30623         after ungetc.
30624         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30625         (rpl_fflush): On glibc systems, simply call the system's fflush
30626         function after clearing the ungetc buffer.
30627         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30628         Instead, lseek only to the end of file, then use the system's fseeko
30629         for the rest. On glibc systems, reset the EOF indicator bit.
30630
30631 2009-01-15  Jim Meyering  <meyering@redhat.com>
30632
30633         openmp.m4: revert quote-adding change, for portability to older autoconf
30634         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30635         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30636         Simon Josefsson noticed the problem when using autoconf-2.61.
30637
30638 2009-01-15  Bruno Haible  <bruno@clisp.org>
30639
30640         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30641         * tests/test-fflush2.c (ASSERT): Always fail.
30642         (main): Add two tests for fflush() after ungetc(), taking into account
30643         the Austin Group's clarification.
30644         Suggested by Eric Blake.
30645
30646 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30647
30648         mktime.m4: remove K&R-style function prototypes
30649         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30650         for the Sun C++ compiler.
30651
30652 2009-01-14  Bruno Haible  <bruno@clisp.org>
30653
30654         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30655         while including <wchar.h>.
30656         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30657         the system's <wchar.h> file.
30658         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30659
30660 2009-01-14  Bruno Haible  <bruno@clisp.org>
30661
30662         * m4/csharp.m4: Don't mention gettext on the serial number line.
30663         * m4/csharpexec.m4: Likewise.
30664         * m4/eaccess.m4: Likewise.
30665         * m4/javaexec.m4: Likewise.
30666         * m4/sig_atomic_t.m4: Likewise.
30667         * m4/tmpdir.m4: Likewise.
30668         * m4/intldir.m4: Bump gettext version.
30669         * m4/lib-ld.m4: Likewise.
30670
30671 2009-01-14  Bruno Haible  <bruno@clisp.org>
30672
30673         * lib/progname.c (set_program_name): Add more comments.
30674         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30675
30676 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30677
30678         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30679         were sys/stat.h does not define it.
30680
30681 2009-01-14  Jim Meyering  <meyering@redhat.com>
30682
30683         many *.m4 files: improve m4 quoting
30684         99% of this change was performed by running the following commands:
30685         git ls-files | grep '\.m4$' | xargs perl -pi \
30686           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30687           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30688           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30689           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30690         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30691         The remainder were to add Copyright dates, increment serial numbers,
30692         undo some changes in comments, exclude m4/intl.m4, and add quotes
30693         around the "1" in ",1" where the unusual spacing prohibited the
30694         above regexps from doing the job.  For more details, see
30695         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30696         * m4/acl.m4: Modified.
30697         * m4/afs.m4: Likewise.
30698         * m4/alloca.m4: Likewise.
30699         * m4/argp.m4: Likewise.
30700         * m4/argz.m4: Likewise.
30701         * m4/atexit.m4: Likewise.
30702         * m4/bison-i18n.m4: Likewise.
30703         * m4/bison.m4: Likewise.
30704         * m4/byteswap.m4: Likewise.
30705         * m4/c-stack.m4: Likewise.
30706         * m4/c-strtod.m4: Likewise.
30707         * m4/calloc.m4: Likewise.
30708         * m4/canonicalize-lgpl.m4: Likewise.
30709         * m4/chown.m4: Likewise.
30710         * m4/clock_time.m4: Likewise.
30711         * m4/codeset.m4: Likewise.
30712         * m4/copy-file.m4: Likewise.
30713         * m4/csharp.m4: Likewise.
30714         * m4/csharpcomp.m4: Likewise.
30715         * m4/csharpexec.m4: Likewise.
30716         * m4/d-ino.m4: Likewise.
30717         * m4/d-type.m4: Likewise.
30718         * m4/dirfd.m4: Likewise.
30719         * m4/double-slash-root.m4: Likewise.
30720         * m4/eaccess.m4: Likewise.
30721         * m4/eealloc.m4: Likewise.
30722         * m4/environ.m4: Likewise.
30723         * m4/errno_h.m4: Likewise.
30724         * m4/euidaccess.m4: Likewise.
30725         * m4/execute.m4: Likewise.
30726         * m4/fatal-signal.m4: Likewise.
30727         * m4/fchdir.m4: Likewise.
30728         * m4/fcntl_h.m4: Likewise.
30729         * m4/fileblocks.m4: Likewise.
30730         * m4/filenamecat.m4: Likewise.
30731         * m4/findprog.m4: Likewise.
30732         * m4/flexmember.m4: Likewise.
30733         * m4/fnmatch.m4: Likewise.
30734         * m4/fopen.m4: Likewise.
30735         * m4/fpending.m4: Likewise.
30736         * m4/fprintf-posix.m4: Likewise.
30737         * m4/free.m4: Likewise.
30738         * m4/frexp.m4: Likewise.
30739         * m4/frexpl.m4: Likewise.
30740         * m4/fsusage.m4: Likewise.
30741         * m4/ftruncate.m4: Likewise.
30742         * m4/gc-camellia.m4: Likewise.
30743         * m4/gc-random.m4: Likewise.
30744         * m4/gc.m4: Likewise.
30745         * m4/getaddrinfo.m4: Likewise.
30746         * m4/getcwd-abort-bug.m4: Likewise.
30747         * m4/getcwd-path-max.m4: Likewise.
30748         * m4/getdate.m4: Likewise.
30749         * m4/getdomainname.m4: Likewise.
30750         * m4/getgroups.m4: Likewise.
30751         * m4/gethostname.m4: Likewise.
30752         * m4/gethrxtime.m4: Likewise.
30753         * m4/getline.m4: Likewise.
30754         * m4/getloadavg.m4: Likewise.
30755         * m4/getndelim2.m4: Likewise.
30756         * m4/getpass.m4: Likewise.
30757         * m4/gettext.m4: Likewise.
30758         * m4/gettime.m4: Likewise.
30759         * m4/gettimeofday.m4: Likewise.
30760         * m4/gnulib-common.m4: Likewise.
30761         * m4/group-member.m4: Likewise.
30762         * m4/host-os.m4: Likewise.
30763         * m4/iconv.m4: Likewise.
30764         * m4/iconv_open.m4: Likewise.
30765         * m4/inet_ntop.m4: Likewise.
30766         * m4/inet_pton.m4: Likewise.
30767         * m4/inline.m4: Likewise.
30768         * m4/intldir.m4: Likewise.
30769         * m4/intlmacosx.m4: Likewise.
30770         * m4/intmax.m4: Likewise.
30771         * m4/intmax_t.m4: Likewise.
30772         * m4/inttypes.m4: Likewise.
30773         * m4/inttypes_h.m4: Likewise.
30774         * m4/inttypes-pri.m4: Likewise.
30775         * m4/isapipe.m4: Likewise.
30776         * m4/isnand.m4: Likewise.
30777         * m4/isnanf.m4: Likewise.
30778         * m4/isnanl.m4: Likewise.
30779         * m4/javacomp.m4: Likewise.
30780         * m4/javaexec.m4: Likewise.
30781         * m4/jm-winsz1.m4: Likewise.
30782         * m4/jm-winsz2.m4: Likewise.
30783         * m4/lchown.m4: Likewise.
30784         * m4/lcmessage.m4: Likewise.
30785         * m4/ldexpl.m4: Likewise.
30786         * m4/lib-ld.m4: Likewise.
30787         * m4/lib-link.m4: Likewise.
30788         * m4/libsigsegv.m4: Likewise.
30789         * m4/link-follow.m4: Likewise.
30790         * m4/localcharset.m4: Likewise.
30791         * m4/locale-fr.m4: Likewise.
30792         * m4/locale-ja.m4: Likewise.
30793         * m4/locale-tr.m4: Likewise.
30794         * m4/locale-zh.m4: Likewise.
30795         * m4/lock.m4: Likewise.
30796         * m4/longlong.m4: Likewise.
30797         * m4/ls-mntd-fs.m4: Likewise.
30798         * m4/lstat.m4: Likewise.
30799         * m4/malloc.m4: Likewise.
30800         * m4/mathl.m4: Likewise.
30801         * m4/mbrtowc.m4: Likewise.
30802         * m4/mbstate_t.m4: Likewise.
30803         * m4/mbswidth.m4: Likewise.
30804         * m4/memchr.m4: Likewise.
30805         * m4/memcmp.m4: Likewise.
30806         * m4/memcpy.m4: Likewise.
30807         * m4/memmem.m4: Likewise.
30808         * m4/memmove.m4: Likewise.
30809         * m4/mempcpy.m4: Likewise.
30810         * m4/memrchr.m4: Likewise.
30811         * m4/memset.m4: Likewise.
30812         * m4/minmax.m4: Likewise.
30813         * m4/mkdir-slash.m4: Likewise.
30814         * m4/mkdtemp.m4: Likewise.
30815         * m4/mktime.m4: Likewise.
30816         * m4/mmap-anon.m4: Likewise.
30817         * m4/mountlist.m4: Likewise.
30818         * m4/nanosleep.m4: Likewise.
30819         * m4/nls.m4: Likewise.
30820         * m4/nocrash.m4: Likewise.
30821         * m4/open.m4: Likewise.
30822         * m4/openat.m4: Likewise.
30823         * m4/openmp.m4: Likewise.
30824         * m4/pathmax.m4: Likewise.
30825         * m4/perl.m4: Likewise.
30826         * m4/physmem.m4: Likewise.
30827         * m4/pipe.m4: Likewise.
30828         * m4/po.m4: Likewise.
30829         * m4/poll.m4: Likewise.
30830         * m4/posixtm.m4: Likewise.
30831         * m4/posixver.m4: Likewise.
30832         * m4/printf-frexp.m4: Likewise.
30833         * m4/printf-frexpl.m4: Likewise.
30834         * m4/printf-posix.m4: Likewise.
30835         * m4/printf-posix-rpl.m4: Likewise.
30836         * m4/printf.m4: Likewise.
30837         * m4/progtest.m4: Likewise.
30838         * m4/putenv.m4: Likewise.
30839         * m4/readline.m4: Likewise.
30840         * m4/readlink.m4: Likewise.
30841         * m4/readutmp.m4: Likewise.
30842         * m4/realloc.m4: Likewise.
30843         * m4/regex.m4: Likewise.
30844         * m4/relocatable.m4: Likewise.
30845         * m4/relocatable-lib.m4: Likewise.
30846         * m4/rename-dest-slash.m4: Likewise.
30847         * m4/rename.m4: Likewise.
30848         * m4/rmdir-errno.m4: Likewise.
30849         * m4/rmdir.m4: Likewise.
30850         * m4/roundf.m4: Likewise.
30851         * m4/roundl.m4: Likewise.
30852         * m4/rpmatch.m4: Likewise.
30853         * m4/save-cwd.m4: Likewise.
30854         * m4/selinux-selinux-h.m4: Likewise.
30855         * m4/setenv.m4: Likewise.
30856         * m4/settime.m4: Likewise.
30857         * m4/sig2str.m4: Likewise.
30858         * m4/sig_atomic_t.m4: Likewise.
30859         * m4/signalblocking.m4: Likewise.
30860         * m4/signbit.m4: Likewise.
30861         * m4/sigpipe.m4: Likewise.
30862         * m4/sockets.m4: Likewise.
30863         * m4/sockpfaf.m4: Likewise.
30864         * m4/st_dm_mode.m4: Likewise.
30865         * m4/stat-time.m4: Likewise.
30866         * m4/stdbool.m4: Likewise.
30867         * m4/stdint.m4: Likewise.
30868         * m4/stdint_h.m4: Likewise.
30869         * m4/stpcpy.m4: Likewise.
30870         * m4/stpncpy.m4: Likewise.
30871         * m4/strcase.m4: Likewise.
30872         * m4/strchrnul.m4: Likewise.
30873         * m4/strcspn.m4: Likewise.
30874         * m4/strdup.m4: Likewise.
30875         * m4/strftime.m4: Likewise.
30876         * m4/strndup.m4: Likewise.
30877         * m4/strnlen.m4: Likewise.
30878         * m4/strpbrk.m4: Likewise.
30879         * m4/strptime.m4: Likewise.
30880         * m4/strsep.m4: Likewise.
30881         * m4/strtod.m4: Likewise.
30882         * m4/strtoimax.m4: Likewise.
30883         * m4/strtok_r.m4: Likewise.
30884         * m4/strtol.m4: Likewise.
30885         * m4/strtoll.m4: Likewise.
30886         * m4/strtoul.m4: Likewise.
30887         * m4/strtoull.m4: Likewise.
30888         * m4/strtoumax.m4: Likewise.
30889         * m4/strverscmp.m4: Likewise.
30890         * m4/threadlib.m4: Likewise.
30891         * m4/timegm.m4: Likewise.
30892         * m4/tm_gmtoff.m4: Likewise.
30893         * m4/tmpdir.m4: Likewise.
30894         * m4/tmpfile.m4: Likewise.
30895         * m4/tzset.m4: Likewise.
30896         * m4/uintmax_t.m4: Likewise.
30897         * m4/unlinkdir.m4: Likewise.
30898         * m4/unlocked-io.m4: Likewise.
30899         * m4/uptime.m4: Likewise.
30900         * m4/userspec.m4: Likewise.
30901         * m4/utimbuf.m4: Likewise.
30902         * m4/utime.m4: Likewise.
30903         * m4/utimes-null.m4: Likewise.
30904         * m4/utimes.m4: Likewise.
30905         * m4/vararrays.m4: Likewise.
30906         * m4/vasnprintf.m4: Likewise.
30907         * m4/vfprintf-posix.m4: Likewise.
30908         * m4/vprintf-posix.m4: Likewise.
30909         * m4/wait-process.m4: Likewise.
30910         * m4/wchar_t.m4: Likewise.
30911         * m4/wint_t.m4: Likewise.
30912         * m4/write-any-file.m4: Likewise.
30913         * m4/yield.m4: Likewise.
30914
30915 2009-01-13  Bruno Haible  <bruno@clisp.org>
30916
30917         Avoid test-copy-file.sh failures when ACL support insufficient.
30918         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30919         TESTS_ENVIRONMENT.
30920         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30921         Reported by Jim Meyering.
30922
30923 2009-01-13  Bruno Haible  <bruno@clisp.org>
30924
30925         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30926         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30927         * modules/unistdio/u8-printf-parse (Files): Likewise.
30928         * modules/unistdio/u32-printf-parse (Files): Likewise.
30929         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30930
30931 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30932
30933         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30934         and m4/inttypes_h.m4 too.
30935
30936 2009-01-12  Eric Blake  <ebb9@byu.net>
30937
30938         tests: IRIX 6.2 cc can't compile -0.0 into .data
30939         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30940         rather than at compile-time.
30941         * tests/test-floorl.c (minus_zero): Likewise.
30942         * tests/test-frexpl.c (minus_zero): Likewise.
30943         * tests/test-isnan.c (minus_zerol): Likewise.
30944         * tests/test-isnanl.h (minus_zero): Likewise.
30945         * tests/test-ldexpl.c (minus_zero): Likewise.
30946         * tests/test-roundl.c (minus_zero): Likewise.
30947         * tests/test-signbit.c (minus_zerol): Likewise.
30948         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30949         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30950         * tests/test-truncl.c (minus_zero): Likewise.
30951         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30952         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30953         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30954
30955 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30956
30957         regex: fix glibc bug 9697
30958         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30959         handling.
30960
30961 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30962
30963         regex: fix glibc bug 697
30964         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30965         being NULL also if there are no backreferences.
30966
30967 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30968
30969         regex: merge glibc changes
30970         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30971         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30972         re_string_skip_chars, re_string_reconstruct): Likewise.
30973         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30974
30975 2009-01-07  Jim Meyering  <meyering@redhat.com>
30976
30977         poll: filter through cppi
30978         * lib/poll.c: Indent cpp directives to reflect nesting.
30979
30980 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30981
30982         poll: don't return uninitialized
30983         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30984
30985 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30986
30987         avoid compile failure on AIX 6.1
30988         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30989         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30990
30991 2009-01-04  Jim Meyering  <meyering@redhat.com>
30992
30993         remove duplicate inclusion of <stdio.h>
30994         * tests/test-fprintf-posix.c: Likewise.
30995         * tests/test-printf-posix.c: Likewise.
30996         * tests/test-snprintf-posix.c: Likewise.
30997         * tests/test-sprintf-posix.c: Likewise.
30998         * tests/test-vasprintf-posix.c: Likewise.
30999         * tests/test-vfprintf-posix.c: Likewise.
31000         * tests/test-vprintf-posix.c: Likewise.
31001         * tests/test-vsnprintf-posix.c: Likewise.
31002         * tests/test-vsprintf-posix.c: Likewise.
31003
31004 2009-01-03  Jim Meyering  <meyering@redhat.com>
31005
31006         gnulib-tool: fix sed-based filtering
31007         * gnulib-tool (func_filter_filelist): Remove extra backslash
31008         in sed_fff_filter definition.
31009
31010 2009-01-02  Jim Meyering  <meyering@redhat.com>
31011
31012         strftime: avoid compilation failure on Solaris 2.6
31013         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31014         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31015         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31016         be available.  Reported by Tom G. Christensen.  Details in
31017         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31018
31019 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31020             Bruno Haible  <bruno@clisp.org>
31021
31022         Speed up gnulib-tool by doing more string processing through shell
31023         built-ins.
31024         * gnulib-tool (fast_func_append): New variable.
31025         (func_remove_prefix, func_remove_suffix): New functions.
31026         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31027         (func_filter_filelist): New function.
31028         (func_get_dependencies): Use func_remove_suffix instead of sed.
31029         (func_get_automake_snippet): Use func_filter_filelist instead of a
31030         subshell and sed invocation.
31031
31032 2009-01-01  Bruno Haible  <bruno@clisp.org>
31033
31034         Fix a security bug.
31035         * gnulib-tool (func_import, import, update): Don't allow the characters
31036         '"', '$', '`', '\' in macro arguments that become part of commands that
31037         are evaluated.
31038
31039 2009-01-01  Bruno Haible  <bruno@clisp.org>
31040
31041         * gnulib-tool (func_reset_sigpipe): Add more comments.
31042
31043 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31044
31045         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31046         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31047         already know the answer.
31048
31049 2009-01-01  Jim Meyering  <meyering@redhat.com>
31050
31051         * lib/version-etc.c (version_etc_va): Update copyright year.
31052
31053 2008-12-30  Bruno Haible  <bruno@clisp.org>
31054
31055         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31056         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31057         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31058
31059 2008-12-29  Eric Blake  <ebb9@byu.net>
31060
31061         multiarch: avoid autoconf AC_REQUIRE bug
31062         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31063         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31064         2.63 and older.
31065         Reported by Bruno Haible, and analyzed in
31066         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31067
31068 2008-12-29  Bruno Haible  <bruno@clisp.org>
31069
31070         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31071         files in subdirectories correctly.
31072         Reported by Ralf Wildenhues.
31073
31074 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31075
31076         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31077         rather than 'join FILE -', for Solaris join.
31078
31079 2008-12-29  Bruno Haible  <bruno@clisp.org>
31080
31081         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31082         quoting.
31083         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31084         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31085         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31086         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31087         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31088         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31089         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31090         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31091         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31092         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31093         * m4/nls.m4 (AM_NLS): Likewise.
31094         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31095         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31096         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31097         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31098         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31099         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31100         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31101         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31102         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31103         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31104         * m4/xsize.m4 (gl_XSIZE): Likewise.
31105         Suggested by Jim Meyering.
31106
31107 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31108
31109         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31110         * lib/parse-duration.c: use a switch instead of cascading if's.
31111
31112 2008-12-29  Eric Blake  <ebb9@byu.net>
31113
31114         wchar.h: supply WEOF on Irix 5.3
31115         * lib/wchar.in.h (wint_t): Also supply WEOF.
31116         * lib/wctype.in.h (wint_t): Likewise.
31117         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31118         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31119         Reported by Tom G. Christensen.
31120
31121 2008-12-26  Bruno Haible  <bruno@clisp.org>
31122
31123         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31124         i486, i586, i686.
31125
31126 2008-12-26  Bruno Haible  <bruno@clisp.org>
31127
31128         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31129
31130 2008-12-26  Bruno Haible  <bruno@clisp.org>
31131
31132         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31133         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31134         not __STDC_CONSTANT_MACROS.
31135         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31136
31137 2008-12-25  Bruno Haible  <bruno@clisp.org>
31138
31139         Add support for universal builds to vasnprintf.
31140         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31141         universal builds, guess no.
31142         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31143         * modules/vasprintf-posix (Depends-on): Likewise.
31144         * modules/fprintf-posix (Depends-on): Likewise.
31145         * modules/vfprintf-posix (Depends-on): Likewise.
31146         * modules/snprintf-posix (Depends-on): Likewise.
31147         * modules/vsnprintf-posix (Depends-on): Likewise.
31148         * modules/sprintf-posix (Depends-on): Likewise.
31149         * modules/vsprintf-posix (Depends-on): Likewise.
31150         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31151         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31152         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31153         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31154         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31155         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31156         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31157
31158         Add support for universal builds to <inttypes.h>.
31159         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31160         _SCNu64_PREFIX): In Apple
31161         universal builds, define directly, using _LP64.
31162         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31163         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31164         * modules/inttypes (Depends-on): Add multiarch.
31165         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31166
31167         Add support for universal builds to <stdint.h>.
31168         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31169         universal builds, define directly, using _LP64.
31170         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31171         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31172         and size_t.
31173         * modules/stdint (Depends-on): Add multiarch.
31174         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31175
31176         New module 'multiarch'.
31177         * modules/multiarch: New file.
31178         * m4/multiarch.m4: New file.
31179
31180 2008-12-25  Bruno Haible  <bruno@clisp.org>
31181
31182         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31183
31184 2008-12-25  Bruno Haible  <bruno@clisp.org>
31185
31186         * modules/btowc (License): Relicense under LGPLv2+.
31187         * modules/mbsinit (License): Likewise.
31188         * modules/mbrtowc (License): Likewise.
31189         * modules/wcrtomb (License): Likewise.
31190         * modules/streq (License): Likewise.
31191         Reported by David Lutterkort <lutter@redhat.com>.
31192
31193 2008-12-23  Bruno Haible  <bruno@clisp.org>
31194
31195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31196
31197 2008-12-23  Bruno Haible  <bruno@clisp.org>
31198
31199         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31201         GETADDRINFO_LIB, not in LIBS.
31202         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31203         * modules/canon-host (Link): Likewise.
31204         * NEWS: Mention the change.
31205         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31206         GETADDRINFO_LIB.
31207
31208 2008-12-22  Bruno Haible  <bruno@clisp.org>
31209
31210         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31211         * doc/posix-functions/iswalpha_l.texi: Likewise.
31212         * doc/posix-functions/iswblank_l.texi: Likewise.
31213         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31214         * doc/posix-functions/iswctype_l.texi: Likewise.
31215         * doc/posix-functions/iswdigit_l.texi: Likewise.
31216         * doc/posix-functions/iswgraph_l.texi: Likewise.
31217         * doc/posix-functions/iswlower_l.texi: Likewise.
31218         * doc/posix-functions/iswprint_l.texi: Likewise.
31219         * doc/posix-functions/iswpunct_l.texi: Likewise.
31220         * doc/posix-functions/iswspace_l.texi: Likewise.
31221         * doc/posix-functions/iswupper_l.texi: Likewise.
31222         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31223         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31224         * doc/posix-functions/open_wmemstream.texi: Likewise.
31225         * doc/posix-functions/swscanf.texi: Likewise.
31226         * doc/posix-functions/towctrans_l.texi: Likewise.
31227         * doc/posix-functions/towlower.texi: Likewise.
31228         * doc/posix-functions/towlower_l.texi: Likewise.
31229         * doc/posix-functions/towupper.texi: Likewise.
31230         * doc/posix-functions/towupper_l.texi: Likewise.
31231         * doc/posix-functions/vfwprintf.texi: Likewise.
31232         * doc/posix-functions/vfwscanf.texi: Likewise.
31233         * doc/posix-functions/vswscanf.texi: Likewise.
31234         * doc/posix-functions/vwprintf.texi: Likewise.
31235         * doc/posix-functions/vwscanf.texi: Likewise.
31236         * doc/posix-functions/wcpcpy.texi: Likewise.
31237         * doc/posix-functions/wcpncpy.texi: Likewise.
31238         * doc/posix-functions/wcscasecmp.texi: Likewise.
31239         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31240         * doc/posix-functions/wcscoll_l.texi: Likewise.
31241         * doc/posix-functions/wcsdup.texi: Likewise.
31242         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31243         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31244         * doc/posix-functions/wcsnlen.texi: Likewise.
31245         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31246         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31247         * doc/posix-functions/wctrans_l.texi: Likewise.
31248         * doc/posix-functions/wctype_l.texi: Likewise.
31249         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31250         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31251         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31252         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31253         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31254         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31255         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31256         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31257         * doc/glibc-functions/wcschrnul.texi: Likewise.
31258         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31259         * doc/glibc-functions/wcstod_l.texi: Likewise.
31260         * doc/glibc-functions/wcstof_l.texi: Likewise.
31261         * doc/glibc-functions/wcstol_l.texi: Likewise.
31262         * doc/glibc-functions/wcstold_l.texi: Likewise.
31263         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31264         * doc/glibc-functions/wcstoq.texi: Likewise.
31265         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31266         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31267         * doc/glibc-functions/wcstouq.texi: Likewise.
31268         * doc/glibc-functions/wmempcpy.texi: Likewise.
31269
31270 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31271             Eric Blake  <ebb9@byu.net>
31272             Paolo Bonzini  <bonzini@gnu.org>
31273             Bruno Haible  <bruno@clisp.org>
31274
31275         Make c-stack work on Haiku.
31276         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31277         (c_stack_action): Use SA_ONSTACK flag.
31278
31279 2008-12-22  Bruno Haible  <bruno@clisp.org>
31280
31281         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31282
31283 2008-12-22  Bruno Haible  <bruno@clisp.org>
31284
31285         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31286         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31287         being overridden.
31288         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31289         New macros.
31290         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31292         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31293         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31294
31295 2008-12-22  Bruno Haible  <bruno@clisp.org>
31296
31297         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31298         from test code.
31299
31300 2008-12-22  Eric Blake  <ebb9@byu.net>
31301
31302         Avoid gcc warnings on cygwin.
31303         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31304         Avoid unused variable.
31305         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31306         Likewise.
31307
31308 2008-12-22  Bruno Haible  <bruno@clisp.org>
31309
31310         Remove HAVE_MBRTOWC conditionals.
31311         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31312         (mbscasecmp): Assume mbrtowc function.
31313         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31314         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31315         * lib/mbschr.c: Include mbuiter.h unconditionally.
31316         (mbschr): Assume mbrtowc function.
31317         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31318         (mbscspn): Assume mbrtowc function.
31319         * lib/mbslen.c: Include mbuiter.h unconditionally.
31320         (mbslen): Assume mbrtowc function.
31321         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31322         (mbsncasecmp): Assume mbrtowc function.
31323         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31324         (mbsnlen): Assume mbrtowc function.
31325         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31326         (mbspbrk): Assume mbrtowc function.
31327         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31328         (mbspcasecmp): Assume mbrtowc function.
31329         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31330         (mbsrchr): Assume mbrtowc function.
31331         * lib/mbssep.c: Include mbuiter.h unconditionally.
31332         (mbssep): Assume mbrtowc function.
31333         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31334         (mbsspn): Assume mbrtowc function.
31335         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31336         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31337         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31338         (mbstok_r): Assume mbrtowc function.
31339         * lib/propername.c: Include mbuiter.h unconditionally.
31340         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31341         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31342         (trim2): Assume mbrtowc function.
31343         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31344         (mbsnwidth): Assume mbrtowc function.
31345         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31346         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31347         fallback definitions.
31348         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31349
31350 2008-12-22  Bruno Haible  <bruno@clisp.org>
31351
31352         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31353
31354 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31355
31356         * modules/regex: Request emulations for the mb*/wc* functions we need.
31357         * m4/regex.m4: Don't look for those functions here.
31358         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31359
31360 2008-12-22  Bruno Haible  <bruno@clisp.org>
31361
31362         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31363
31364 2008-12-21  Bruno Haible  <bruno@clisp.org>
31365
31366         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31367         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31368         (Include): Remove conditionalization.
31369         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31370         (Include): Remove conditionalization.
31371         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31372         (Include): Remove conditionalization.
31373         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31374         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31375         * NEWS: Mention the change.
31376         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31377         via Sergey Poznyakoff <gray@gnu.org.ua>.
31378
31379 2008-12-21  Bruno Haible  <bruno@clisp.org>
31380
31381         * MODULES.html.sh (Extended multibyte and wide character utilities
31382         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31383         wcrtomb, wcsrtombs.
31384         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31385         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31386         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31387         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31388
31389 2008-12-21  Bruno Haible  <bruno@clisp.org>
31390
31391         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31392
31393 2008-12-21  Bruno Haible  <bruno@clisp.org>
31394
31395         * modules/wcsnrtombs-tests: New file.
31396         * tests/test-wcsnrtombs1.sh: New file.
31397         * tests/test-wcsnrtombs2.sh: New file.
31398         * tests/test-wcsnrtombs3.sh: New file.
31399         * tests/test-wcsnrtombs4.sh: New file.
31400         * tests/test-wcsnrtombs.c: New file.
31401
31402         New module 'wcsnrtombs'.
31403         * lib/wchar.in.h (wcsnrtombs): New declaration.
31404         * lib/wcsnrtombs.c: New file.
31405         * lib/wcsrtombs-state.c: New file.
31406         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31407         (internal_state): Remove variable.
31408         * m4/wcsnrtombs.m4: New file.
31409         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31410         compilation units.
31411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31412         HAVE_WCSNRTOMBS.
31413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31414         HAVE_WCSNRTOMBS.
31415         * modules/wcsnrtombs: New file.
31416         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31417         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31418
31419 2008-12-21  Bruno Haible  <bruno@clisp.org>
31420
31421         * modules/wcsrtombs-tests: New file.
31422         * tests/test-wcsrtombs1.sh: New file.
31423         * tests/test-wcsrtombs2.sh: New file.
31424         * tests/test-wcsrtombs3.sh: New file.
31425         * tests/test-wcsrtombs4.sh: New file.
31426         * tests/test-wcsrtombs.c: New file.
31427
31428         New module 'wcsrtombs'.
31429         * lib/wchar.in.h (wcsrtombs): New declaration.
31430         * lib/wcsrtombs.c: New file.
31431         * m4/wcsrtombs.m4: New file.
31432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31433         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31435         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31436         * modules/wcsrtombs: New file.
31437         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31438         bugs.
31439
31440 2008-12-21  Bruno Haible  <bruno@clisp.org>
31441
31442         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31443         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31444         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31445         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31446         if not correct.
31447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31448         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31449         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31450         m4/locale-zh.m4, m4/codeset.m4.
31451         * doc/posix-functions/wcrtomb.texi: Document the bug.
31452
31453 2008-12-21  Bruno Haible  <bruno@clisp.org>
31454
31455         Work around a btowc() bug on IRIX 6.5.
31456         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31457         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31458         REPLACE_WTOBC if not.
31459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31460         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31461         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31462
31463 2008-12-21  Bruno Haible  <bruno@clisp.org>
31464
31465         * modules/wcrtomb-tests: New file.
31466         * tests/test-wcrtomb.sh: New file.
31467         * tests/test-wcrtomb.c: New file.
31468
31469         New module 'wcrtomb'.
31470         * lib/wchar.in.h (wcrtomb): New declaration.
31471         * lib/wcrtomb.c: New file.
31472         * m4/wcrtomb.m4: New file.
31473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31474         HAVE_WCRTOMB.
31475         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31476         HAVE_WCRTOMB.
31477         * modules/wcrtomb: New file.
31478         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31479
31480 2008-12-21  Bruno Haible  <bruno@clisp.org>
31481
31482         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31483         * modules/mbsrtowcs (Files): Likewise.
31484         * modules/wctob (Files): Likewise.
31485         * modules/c-strcase-tests (Files): Likewise.
31486         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31487         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31488         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31489         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31490         * modules/vasnprintf-posix-tests (Files): Likewise.
31491
31492 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31493
31494         gitlog-to-changelog: pass all command-line arguments to git-log
31495         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31496         it is sometimes convenient to filter the commits in various ways.
31497         gitlog-to-changelog only allows --since to specify a start date,
31498         but git-log itself supports many other filtering mechanisms.
31499         At the moment, I want to filter by branch name.  Rather than
31500         adding a --branch option to gitlog-to-changelog, it seems more
31501         flexible to simply pass all options directly to git-log and let
31502         git do the work.  Notice that this effectively makes --since a
31503         redundant option for gitlog-to-changelog, but removing it would
31504         require current usage to change since calls would then require
31505         an additional '--'.
31506
31507 2008-12-21  Bruno Haible  <bruno@clisp.org>
31508
31509         * modules/mbsnrtowcs-tests: New file.
31510         * tests/test-mbsnrtowcs1.sh: New file.
31511         * tests/test-mbsnrtowcs2.sh: New file.
31512         * tests/test-mbsnrtowcs3.sh: New file.
31513         * tests/test-mbsnrtowcs4.sh: New file.
31514         * tests/test-mbsnrtowcs.c: New file.
31515
31516         New module 'mbsnrtowcs'.
31517         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31518         * lib/mbsnrtowcs.c: New file.
31519         * lib/mbsrtowcs-state.c: New file.
31520         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31521         (internal_state): Remove variable.
31522         * m4/mbsnrtowcs.m4: New file.
31523         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31524         compilation units.
31525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31526         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31527         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31528         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31529         * modules/mbsnrtowcs: New file.
31530         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31531         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31532         portability problem.
31533
31534 2008-12-21  Bruno Haible  <bruno@clisp.org>
31535
31536         Work around mbsrtowcs bug.
31537         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31538         (gl_FUNC_MBSRTOWCS): Invoke it.
31539         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31540         m4/locale-zh.m4.
31541         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31542
31543 2008-12-21  Bruno Haible  <bruno@clisp.org>
31544
31545         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31546
31547 2008-12-21  Bruno Haible  <bruno@clisp.org>
31548
31549         Update doc for AIX.
31550         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31551         16-bit wchar_t type.
31552         * doc/posix-functions/btowc.texi: Likewise.
31553         * doc/posix-functions/fgetwc.texi: Likewise.
31554         * doc/posix-functions/fgetws.texi: Likewise.
31555         * doc/posix-functions/fputwc.texi: Likewise.
31556         * doc/posix-functions/fputws.texi: Likewise.
31557         * doc/posix-functions/fwide.texi: Likewise.
31558         * doc/posix-functions/fwprintf.texi: Likewise.
31559         * doc/posix-functions/fwscanf.texi: Likewise.
31560         * doc/posix-functions/getwchar.texi: Likewise.
31561         * doc/posix-functions/getwc.texi: Likewise.
31562         * doc/posix-functions/iswalnum.texi: Likewise.
31563         * doc/posix-functions/iswalpha.texi: Likewise.
31564         * doc/posix-functions/iswblank.texi: Likewise.
31565         * doc/posix-functions/iswcntrl.texi: Likewise.
31566         * doc/posix-functions/iswctype.texi: Likewise.
31567         * doc/posix-functions/iswdigit.texi: Likewise.
31568         * doc/posix-functions/iswgraph.texi: Likewise.
31569         * doc/posix-functions/iswlower.texi: Likewise.
31570         * doc/posix-functions/iswprint.texi: Likewise.
31571         * doc/posix-functions/iswpunct.texi: Likewise.
31572         * doc/posix-functions/iswspace.texi: Likewise.
31573         * doc/posix-functions/iswupper.texi: Likewise.
31574         * doc/posix-functions/iswxdigit.texi: Likewise.
31575         * doc/posix-functions/mbrtowc.texi: Likewise.
31576         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31577         * doc/posix-functions/mbstowcs.texi: Likewise.
31578         * doc/posix-functions/mbtowc.texi: Likewise.
31579         * doc/posix-functions/putwchar.texi: Likewise.
31580         * doc/posix-functions/putwc.texi: Likewise.
31581         * doc/posix-functions/swprintf.texi: Likewise.
31582         * doc/posix-functions/tolower.texi: Likewise.
31583         * doc/posix-functions/toupper.texi: Likewise.
31584         * doc/posix-functions/towctrans.texi: Likewise.
31585         * doc/posix-functions/ungetwc.texi: Likewise.
31586         * doc/posix-functions/vswprintf.texi: Likewise.
31587         * doc/posix-functions/wcrtomb.texi: Likewise.
31588         * doc/posix-functions/wcscat.texi: Likewise.
31589         * doc/posix-functions/wcschr.texi: Likewise.
31590         * doc/posix-functions/wcscmp.texi: Likewise.
31591         * doc/posix-functions/wcscoll.texi: Likewise.
31592         * doc/posix-functions/wcscpy.texi: Likewise.
31593         * doc/posix-functions/wcscspn.texi: Likewise.
31594         * doc/posix-functions/wcsftime.texi: Likewise.
31595         * doc/posix-functions/wcslen.texi: Likewise.
31596         * doc/posix-functions/wcsncat.texi: Likewise.
31597         * doc/posix-functions/wcsncmp.texi: Likewise.
31598         * doc/posix-functions/wcsncpy.texi: Likewise.
31599         * doc/posix-functions/wcspbrk.texi: Likewise.
31600         * doc/posix-functions/wcsrchr.texi: Likewise.
31601         * doc/posix-functions/wcsrtombs.texi: Likewise.
31602         * doc/posix-functions/wcsspn.texi: Likewise.
31603         * doc/posix-functions/wcsstr.texi: Likewise.
31604         * doc/posix-functions/wcstod.texi: Likewise.
31605         * doc/posix-functions/wcstof.texi: Likewise.
31606         * doc/posix-functions/wcstoimax.texi: Likewise.
31607         * doc/posix-functions/wcstok.texi: Likewise.
31608         * doc/posix-functions/wcstold.texi: Likewise.
31609         * doc/posix-functions/wcstoll.texi: Likewise.
31610         * doc/posix-functions/wcstol.texi: Likewise.
31611         * doc/posix-functions/wcstombs.texi: Likewise.
31612         * doc/posix-functions/wcstoull.texi: Likewise.
31613         * doc/posix-functions/wcstoul.texi: Likewise.
31614         * doc/posix-functions/wcstoumax.texi: Likewise.
31615         * doc/posix-functions/wcswidth.texi: Likewise.
31616         * doc/posix-functions/wcsxfrm.texi: Likewise.
31617         * doc/posix-functions/wctob.texi: Likewise.
31618         * doc/posix-functions/wctomb.texi: Likewise.
31619         * doc/posix-functions/wctrans.texi: Likewise.
31620         * doc/posix-functions/wctype.texi: Likewise.
31621         * doc/posix-functions/wcwidth.texi: Likewise.
31622         * doc/posix-functions/wmemchr.texi: Likewise.
31623         * doc/posix-functions/wmemcmp.texi: Likewise.
31624         * doc/posix-functions/wmemcpy.texi: Likewise.
31625         * doc/posix-functions/wmemmove.texi: Likewise.
31626         * doc/posix-functions/wmemset.texi: Likewise.
31627         * doc/posix-functions/wprintf.texi: Likewise.
31628         * doc/posix-functions/wscanf.texi: Likewise.
31629
31630 2008-12-21  Bruno Haible  <bruno@clisp.org>
31631
31632         Update doc for HP-UX 11.11.
31633         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31634         in HP-UX version 11.00, not in all versions of HP-UX 11.
31635         * doc/posix-functions/fwide.texi: Likewise.
31636         * doc/posix-functions/fwprintf.texi: Likewise.
31637         * doc/posix-functions/fwscanf.texi: Likewise.
31638         * doc/posix-functions/inet_ntop.texi: Likewise.
31639         * doc/posix-functions/inet_pton.texi: Likewise.
31640         * doc/posix-functions/mbrlen.texi: Likewise.
31641         * doc/posix-functions/mbrtowc.texi: Likewise.
31642         * doc/posix-functions/mbsinit.texi: Likewise.
31643         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31644         * doc/posix-functions/swprintf.texi: Likewise.
31645         * doc/posix-functions/swscanf.texi: Likewise.
31646         * doc/posix-functions/towctrans.texi: Likewise.
31647         * doc/posix-functions/vfwprintf.texi: Likewise.
31648         * doc/posix-functions/vswprintf.texi: Likewise.
31649         * doc/posix-functions/vwprintf.texi: Likewise.
31650         * doc/posix-functions/wcrtomb.texi: Likewise.
31651         * doc/posix-functions/wcsrtombs.texi: Likewise.
31652         * doc/posix-functions/wcsstr.texi: Likewise.
31653         * doc/posix-functions/wctob.texi: Likewise.
31654         * doc/posix-functions/wctrans.texi: Likewise.
31655         * doc/posix-functions/wmemchr.texi: Likewise.
31656         * doc/posix-functions/wmemcmp.texi: Likewise.
31657         * doc/posix-functions/wmemcpy.texi: Likewise.
31658         * doc/posix-functions/wmemmove.texi: Likewise.
31659         * doc/posix-functions/wmemset.texi: Likewise.
31660         * doc/posix-functions/wprintf.texi: Likewise.
31661         * doc/posix-functions/wscanf.texi: Likewise.
31662
31663 2008-12-21  Bruno Haible  <bruno@clisp.org>
31664
31665         Work around a portability problem.
31666         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31667         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31668
31669 2008-12-20  Bruno Haible  <bruno@clisp.org>
31670
31671         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31672         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31673         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31675         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31676
31677         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31678         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31679         set.
31680         (GNULIB_defined_mbstate_t): New macro.
31681         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31682         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31683         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31684         reuses the system's mbrtowc function but works around the bugs.
31685         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31686         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31687         macros.
31688         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31689         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31690         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31691         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31692         REPLACE_MBSINIT if mbsinit needs to be overridden.
31693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31694         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31695         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31696         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31697         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31698         m4/locale-zh.m4.
31699         (Depends): Add mbsinit.
31700         * modules/mbsinit (Depends): Add mbrtowc.
31701         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31702
31703 2008-12-20  Bruno Haible  <bruno@clisp.org>
31704
31705         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31706         so that there are no conversion errors on AIX.
31707         * tests/test-mbsrtowcs.c (main): LIkewise.
31708
31709 2008-12-20  Bruno Haible  <bruno@clisp.org>
31710
31711         Work around wctob bug on Solaris <= 9.
31712         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31713         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31715         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31716         * modules/wctob (Files): Add m4/locale-fr.m4.
31717         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31718
31719 2008-12-20  Bruno Haible  <bruno@clisp.org>
31720
31721         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31722         /dev/null.
31723         * tests/test-select-in.sh: Likewise.
31724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31725
31726 2008-12-20  Bruno Haible  <bruno@clisp.org>
31727
31728         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31729         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31730         Cygwin 1.5.x.
31731
31732 2008-12-20  Bruno Haible  <bruno@clisp.org>
31733
31734         Ensure mbstate_t is defined on HP-UX 11.11.
31735         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31736         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31737         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31738         AC_USE_SYSTEM_EXTENSIONS.
31739         * modules/fnmatch (Depends-on): Add extensions.
31740         * modules/mbrlen (Depends-on): Likewise.
31741         * modules/mbrtowc (Depends-on): Likewise.
31742         * modules/mbsinit (Depends-on): Likewise.
31743         * modules/mbsrtowcs (Depends-on): Likewise.
31744         * modules/mbswidth (Depends-on): Likewise.
31745         * modules/quotearg (Depends-on): Likewise.
31746         * modules/strftime (Depends-on): Likewise.
31747
31748 2008-12-20  Bruno Haible  <bruno@clisp.org>
31749
31750         Ensure wctob is declared on IRIX 6.5.
31751         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31752         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31753         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31755         of HAVE_WCTOB.
31756         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31757         HAVE_WCTOB.
31758         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31759
31760 2008-12-19  Bruno Haible  <bruno@clisp.org>
31761
31762         * modules/mbsrtowcs-tests: New file.
31763         * tests/test-mbsrtowcs1.sh: New file.
31764         * tests/test-mbsrtowcs2.sh: New file.
31765         * tests/test-mbsrtowcs3.sh: New file.
31766         * tests/test-mbsrtowcs4.sh: New file.
31767         * tests/test-mbsrtowcs.c: New file.
31768
31769         New module 'mbsrtowcs'.
31770         * lib/wchar.in.h (mbsrtowcs): New declaration.
31771         * lib/mbsrtowcs.c: New file.
31772         * m4/mbsrtowcs.m4: New file.
31773         * modules/mbsrtowcs: New file.
31774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31775         HAVE_MBSRTOWCS.
31776         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31777         HAVE_MBSRTOWCS.
31778         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31779
31780 2008-12-19  Bruno Haible  <bruno@clisp.org>
31781
31782         New module 'mbrlen'.
31783         * lib/wchar.in.h (mbrlen): New declaration.
31784         * lib/mbrlen.c: New file.
31785         * m4/mbrlen.m4: New file.
31786         * modules/mbrlen: New file.
31787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31788         HAVE_MBRLEN.
31789         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31790         HAVE_MBRLEN.
31791         * doc/posix-functions/mbrlen.texi: Document the new module.
31792
31793 2008-12-19  Bruno Haible  <bruno@clisp.org>
31794
31795         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31796         * modules/mbrtowc (Depends-on): Add verify.
31797         Suggested by Paul Eggert.
31798
31799 2008-12-18  Bruno Haible  <bruno@clisp.org>
31800
31801         * modules/mbsinit-tests: New file.
31802         * tests/test-mbsinit.sh: New file.
31803         * tests/test-mbsinit.c: New file.
31804
31805 2008-12-18  Bruno Haible  <bruno@clisp.org>
31806
31807         * modules/mbrtowc-tests: New file.
31808         * tests/test-mbrtowc1.sh: New file.
31809         * tests/test-mbrtowc2.sh: New file.
31810         * tests/test-mbrtowc3.sh: New file.
31811         * tests/test-mbrtowc4.sh: New file.
31812         * tests/test-mbrtowc.c: New file.
31813
31814         New module 'mbrtowc'.
31815         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31816         mbsinit and mbrtowc.
31817         (mbrtowc): New declaration.
31818         * lib/mbrtowc.c: New file.
31819         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31820         * modules/mbrtowc: New file.
31821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31822         HAVE_MBRTOWC.
31823         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31824         HAVE_MBRTOWC.
31825         * doc/posix-functions/mbrtowc.texi: Document the new module.
31826
31827 2008-12-18  Bruno Haible  <bruno@clisp.org>
31828
31829         New module 'wctob'.
31830         * lib/wchar.in.h (wctob): New declaration.
31831         * lib/wctob.c: New file.
31832         * m4/wctob.m4: New file.
31833         * modules/wctob: New file.
31834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31835         HAVE_WCTOB.
31836         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31837         * doc/posix-functions/wctob.texi: Document the new module.
31838
31839 2008-12-18  Bruno Haible  <bruno@clisp.org>
31840
31841         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31842         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31843
31844 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31845
31846         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31847         G. Christensen" <tgc@jupiterrise.com>.
31848
31849         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31850         G. Christensen" <tgc@jupiterrise.com>.
31851
31852         * lib/flock.c: Need to include string.h.  Reported by "Tom
31853         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31854         <ebb9@byu.net>.
31855
31856 2008-12-18  Bruno Haible  <bruno@clisp.org>
31857
31858         * m4/locale-ja.m4: New file, from GNU gettext.
31859
31860 2008-12-17  Bruno Haible  <bruno@clisp.org>
31861
31862         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31863         Suggested by Eric Blake.
31864
31865 2008-12-17  Bruno Haible  <bruno@clisp.org>
31866
31867         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31868
31869 2008-12-17  Bruno Haible  <bruno@clisp.org>
31870
31871         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31872         * modules/mbsinit (Depends-on): Add verify.
31873         Suggested by Paul Eggert.
31874
31875 2008-12-17  Bruno Haible  <bruno@clisp.org>
31876
31877         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31878         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31879         gl_FUNC_MBRTOWC.
31880         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31881         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31882         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31883         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31884         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31885         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31886         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31887         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31888         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31889         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31890         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31891         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31892         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31893         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31894         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31895         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31896         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31897         * modules/trim (configure.ac): Likewise.
31898
31899 2008-12-17  Bruno Haible  <bruno@clisp.org>
31900
31901         * modules/btowc-tests: New file.
31902         * tests/test-btowc1.sh: New file.
31903         * tests/test-btowc2.sh: New file.
31904         * tests/test-btowc.c: New file.
31905
31906         New module 'btowc'.
31907         * lib/wchar.in.h (btowc): New declaration.
31908         * lib/btowc.c: New file.
31909         * m4/btowc.m4: New file.
31910         * modules/btowc: New file.
31911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31912         HAVE_BTOWC.
31913         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31914         * doc/posix-functions/btowc.texi: Document the new module.
31915
31916 2008-12-17  Bruno Haible  <bruno@clisp.org>
31917
31918         New module 'mbsinit'.
31919         * lib/wchar.in.h (mbsinit): New declaration.
31920         * lib/mbsinit.c: New file.
31921         * m4/mbsinit.m4: New file.
31922         * modules/mbsinit: New file.
31923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31924         HAVE_MBSINIT.
31925         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31926         HAVE_MBSINIT.
31927         * doc/posix-functions/mbsinit.texi: Document the new module.
31928
31929 2008-12-16  Bruno Haible  <bruno@clisp.org>
31930
31931         * lib/unistd.in.h: Add comment.
31932         * tests/test-environ.c: Don't include <stdlib.h>.
31933
31934 2008-12-16  Bruno Haible  <bruno@clisp.org>
31935
31936         * lib/parse-duration.h (parse_duration): Document return value
31937         convention.
31938         * lib/parse-duration.c: Include specification header first. Add
31939         comments.
31940         (_): Remove macro.
31941         (parse_year_month_day, parse_hour_minute_second): Move side effects
31942         outside of strchr call.
31943         (parse_non_iso8601): Move side effects outside of isspace call.
31944         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31945         call.
31946
31947 2008-12-16  Bruno Haible  <bruno@clisp.org>
31948
31949         * tests/test-parse-duration.sh: Produce no output when the test
31950         succeeds.
31951
31952 2008-12-16  Bruno Haible  <bruno@clisp.org>
31953
31954         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31955         expressions.
31956
31957 2008-12-15  Bruno Haible  <bruno@clisp.org>
31958
31959         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31960         * doc/glibc-functions/flistxattr.texi: Likewise.
31961         * doc/glibc-functions/fopencookie.texi: Likewise.
31962         * doc/glibc-functions/fremovexattr.texi: Likewise.
31963         * doc/glibc-functions/fsetxattr.texi: Likewise.
31964         * doc/glibc-functions/getxattr.texi: Likewise.
31965         * doc/glibc-functions/lgetxattr.texi: Likewise.
31966         * doc/glibc-functions/listxattr.texi: Likewise.
31967         * doc/glibc-functions/llistxattr.texi: Likewise.
31968         * doc/glibc-functions/lremovexattr.texi: Likewise.
31969         * doc/glibc-functions/lsetxattr.texi: Likewise.
31970         * doc/glibc-functions/removexattr.texi: Likewise.
31971         * doc/glibc-functions/setxattr.texi: Likewise.
31972         * doc/posix-functions/open_memstream.texi: Likewise.
31973
31974 2008-12-15  Eric Blake  <ebb9@byu.net>
31975
31976         Update doc for cygwin 1.7.
31977         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31978         functions.
31979         * doc/posix-functions/fchmodat.texi: Likewise.
31980         * doc/posix-functions/fchownat.texi: Likewise.
31981         * doc/posix-functions/fdopendir.texi: Likewise.
31982         * doc/posix-functions/fmemopen.texi: Likewise.
31983         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31984         * doc/posix-functions/fstatat.texi: Likewise.
31985         * doc/posix-functions/futimens.texi: Likewise.
31986         * doc/posix-functions/gai_strerror.texi: Likewise.
31987         * doc/posix-functions/getaddrinfo.texi: Likewise.
31988         * doc/posix-functions/getnameinfo.texi: Likewise.
31989         * doc/posix-functions/if_freenameindex.texi: Likewise.
31990         * doc/posix-functions/if_indextoname.texi: Likewise.
31991         * doc/posix-functions/if_nameindex.texi: Likewise.
31992         * doc/posix-functions/if_nametoindex.texi: Likewise.
31993         * doc/posix-functions/insque.texi: Likewise.
31994         * doc/posix-functions/linkat.texi: Likewise.
31995         * doc/posix-functions/llrint.texi: Likewise.
31996         * doc/posix-functions/llrintf.texi: Likewise.
31997         * doc/posix-functions/llrintl.texi: Likewise.
31998         * doc/posix-functions/lockf.texi: Likewise.
31999         * doc/posix-functions/lrintl.texi: Likewise.
32000         * doc/posix-functions/mkdirat.texi: Likewise.
32001         * doc/posix-functions/mkfifoat.texi: Likewise.
32002         * doc/posix-functions/mknodat.texi: Likewise.
32003         * doc/posix-functions/mq_close.texi: Likewise.
32004         * doc/posix-functions/mq_getattr.texi: Likewise.
32005         * doc/posix-functions/mq_notify.texi: Likewise.
32006         * doc/posix-functions/mq_open.texi: Likewise.
32007         * doc/posix-functions/mq_receive.texi: Likewise.
32008         * doc/posix-functions/mq_send.texi: Likewise.
32009         * doc/posix-functions/mq_setattr.texi: Likewise.
32010         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32011         * doc/posix-functions/mq_timedsend.texi: Likewise.
32012         * doc/posix-functions/mq_unlink.texi: Likewise.
32013         * doc/posix-functions/open_memstream.texi: Likewise.
32014         * doc/posix-functions/openat.texi: Likewise.
32015         * doc/posix-functions/posix_fadvise.texi: Likewise.
32016         * doc/posix-functions/posix_fallocate.texi: Likewise.
32017         * doc/posix-functions/posix_madvise.texi: Likewise.
32018         * doc/posix-functions/posix_memalign.texi: Likewise.
32019         * doc/posix-functions/posix_openpt.texi: Likewise.
32020         * doc/posix-functions/readlinkat.texi: Likewise.
32021         * doc/posix-functions/remque.texi: Likewise.
32022         * doc/posix-functions/renameat.texi: Likewise.
32023         * doc/posix-functions/rintl.texi: Likewise.
32024         * doc/posix-functions/sem_unlink.texi: Likewise.
32025         * doc/posix-functions/shm_open.texi: Likewise.
32026         * doc/posix-functions/shm_unlink.texi: Likewise.
32027         * doc/posix-functions/signgam.texi: Likewise.
32028         * doc/posix-functions/sigset.texi: Likewise.
32029         * doc/posix-functions/stpcpy.texi: Likewise.
32030         * doc/posix-functions/stpncpy.texi: Likewise.
32031         * doc/posix-functions/strerror.texi: Likewise.
32032         * doc/posix-functions/strtod.texi: Likewise.
32033         * doc/posix-functions/symlinkat.texi: Likewise.
32034         * doc/posix-functions/unlinkat.texi: Likewise.
32035         * doc/posix-functions/utimensat.texi: Likewise.
32036         * doc/glibc-functions/bindresvport.texi: Likewise.
32037         * doc/glibc-functions/dn_expand.texi: Likewise.
32038         * doc/glibc-functions/exp10.texi: Likewise.
32039         * doc/glibc-functions/exp10f.texi: Likewise.
32040         * doc/glibc-functions/fgetxattr.texi: Likewise.
32041         * doc/glibc-functions/flistxattr.texi: Likewise.
32042         * doc/glibc-functions/fopencookie.texi: Likewise.
32043         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32044         * doc/glibc-functions/fremovexattr.texi: Likewise.
32045         * doc/glibc-functions/fsetxattr.texi: Likewise.
32046         * doc/glibc-functions/getifaddrs.texi: Likewise.
32047         * doc/glibc-functions/getxattr.texi: Likewise.
32048         * doc/glibc-functions/lgetxattr.texi: Likewise.
32049         * doc/glibc-functions/listxattr.texi: Likewise.
32050         * doc/glibc-functions/llistxattr.texi: Likewise.
32051         * doc/glibc-functions/lremovexattr.texi: Likewise.
32052         * doc/glibc-functions/lsetxattr.texi: Likewise.
32053         * doc/glibc-functions/pow10.texi: Likewise.
32054         * doc/glibc-functions/pow10f.texi: Likewise.
32055         * doc/glibc-functions/rcmd_af.texi: Likewise.
32056         * doc/glibc-functions/removexattr.texi: Likewise.
32057         * doc/glibc-functions/res_init.texi: Likewise.
32058         * doc/glibc-functions/res_mkquery.texi: Likewise.
32059         * doc/glibc-functions/res_query.texi: Likewise.
32060         * doc/glibc-functions/res_querydomain.texi: Likewise.
32061         * doc/glibc-functions/res_send.texi: Likewise.
32062         * doc/glibc-functions/rresvport_af.texi: Likewise.
32063         * doc/glibc-functions/setxattr.texi: Likewise.
32064         * doc/glibc-functions/strcasestr.texi: Likewise.
32065
32066 2008-12-15  Bruno Haible  <bruno@clisp.org>
32067
32068         Fix compilation error on OSF/1 4.0.
32069         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32070         <sys/time.h>, simply delegate to the system header.
32071         Reported by Daniel Richard G. <oss@teragram.com>.
32072
32073 2008-12-15  Bruno Haible  <bruno@clisp.org>
32074
32075         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32076         * doc/posix-functions/fchmodat.texi: Likewise.
32077         * doc/posix-functions/fchownat.texi: Likewise.
32078         * doc/posix-functions/fdopendir.texi: Likewise.
32079         * doc/posix-functions/fstatat.texi: Likewise.
32080         * doc/posix-functions/mkdirat.texi: Likewise.
32081         * doc/posix-functions/unlinkat.texi: Likewise.
32082
32083 2008-12-14  Bruno Haible  <bruno@clisp.org>
32084
32085         Update doc for POSIX:2008.
32086         * doc/posix-functions/faccessat.texi: New file.
32087         * doc/posix-functions/fchmodat.texi: New file.
32088         * doc/posix-functions/fchownat.texi: New file.
32089         * doc/posix-functions/fdopendir.texi: New file.
32090         * doc/posix-functions/fstatat.texi: New file.
32091         * doc/posix-functions/futimens.texi: New file.
32092         * doc/posix-functions/linkat.texi: New file.
32093         * doc/posix-functions/mkdirat.texi: New file.
32094         * doc/posix-functions/mkfifoat.texi: New file.
32095         * doc/posix-functions/mknodat.texi: New file.
32096         * doc/posix-functions/open_wmemstream.texi: New file.
32097         * doc/posix-functions/openat.texi: New file.
32098         * doc/posix-functions/psiginfo.texi: New file.
32099         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32100         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32101         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32102         * doc/posix-functions/readlinkat.texi: New file.
32103         * doc/posix-functions/renameat.texi: New file.
32104         * doc/posix-functions/strerror_l.texi: New file.
32105         * doc/posix-functions/symlinkat.texi: New file.
32106         * doc/posix-functions/unlinkat.texi: New file.
32107         * doc/posix-functions/utimensat.texi: New file.
32108         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32109
32110 2008-12-14  Bruno Haible  <bruno@clisp.org>
32111
32112         Update doc for POSIX:2008.
32113         * doc/posix-functions/alphasort.texi: Renamed from
32114         doc/glibc-functions/alphasort.texi.
32115         * doc/posix-functions/dirfd.texi: Renamed from
32116         doc/glibc-functions/dirfd.texi.
32117         * doc/posix-functions/dprintf.texi: Renamed from
32118         doc/glibc-functions/dprintf.texi.
32119         * doc/posix-functions/duplocale.texi: Renamed from
32120         doc/glibc-functions/duplocale.texi.
32121         * doc/posix-functions/fexecve.texi: Renamed from
32122         doc/glibc-functions/fexecve.texi.
32123         * doc/posix-functions/fmemopen.texi: Renamed from
32124         doc/glibc-functions/fmemopen.texi.
32125         * doc/posix-functions/freelocale.texi: Renamed from
32126         doc/glibc-functions/freelocale.texi.
32127         * doc/posix-functions/getdate_err.texi: Renamed from
32128         doc/glibc-functions/getdate_err.texi.
32129         * doc/posix-functions/isalnum_l.texi: Renamed from
32130         doc/glibc-functions/isalnum_l.texi.
32131         * doc/posix-functions/isalpha_l.texi: Renamed from
32132         doc/glibc-functions/isalpha_l.texi.
32133         * doc/posix-functions/isblank_l.texi: Renamed from
32134         doc/glibc-functions/isblank_l.texi.
32135         * doc/posix-functions/iscntrl_l.texi: Renamed from
32136         doc/glibc-functions/iscntrl_l.texi.
32137         * doc/posix-functions/isdigit_l.texi: Renamed from
32138         doc/glibc-functions/isdigit_l.texi.
32139         * doc/posix-functions/isgraph_l.texi: Renamed from
32140         doc/glibc-functions/isgraph_l.texi.
32141         * doc/posix-functions/islower_l.texi: Renamed from
32142         doc/glibc-functions/islower_l.texi.
32143         * doc/posix-functions/isprint_l.texi: Renamed from
32144         doc/glibc-functions/isprint_l.texi.
32145         * doc/posix-functions/ispunct_l.texi: Renamed from
32146         doc/glibc-functions/ispunct_l.texi.
32147         * doc/posix-functions/isspace_l.texi: Renamed from
32148         doc/glibc-functions/isspace_l.texi.
32149         * doc/posix-functions/isupper_l.texi: Renamed from
32150         doc/glibc-functions/isupper_l.texi.
32151         * doc/posix-functions/iswalnum_l.texi: Renamed from
32152         doc/glibc-functions/iswalnum_l.texi.
32153         * doc/posix-functions/iswalpha_l.texi: Renamed from
32154         doc/glibc-functions/iswalpha_l.texi.
32155         * doc/posix-functions/iswblank_l.texi: Renamed from
32156         doc/glibc-functions/iswblank_l.texi.
32157         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32158         doc/glibc-functions/iswcntrl_l.texi.
32159         * doc/posix-functions/iswctype_l.texi: Renamed from
32160         doc/glibc-functions/iswctype_l.texi.
32161         * doc/posix-functions/iswdigit_l.texi: Renamed from
32162         doc/glibc-functions/iswdigit_l.texi.
32163         * doc/posix-functions/iswgraph_l.texi: Renamed from
32164         doc/glibc-functions/iswgraph_l.texi.
32165         * doc/posix-functions/iswlower_l.texi: Renamed from
32166         doc/glibc-functions/iswlower_l.texi.
32167         * doc/posix-functions/iswprint_l.texi: Renamed from
32168         doc/glibc-functions/iswprint_l.texi.
32169         * doc/posix-functions/iswpunct_l.texi: Renamed from
32170         doc/glibc-functions/iswpunct_l.texi.
32171         * doc/posix-functions/iswspace_l.texi: Renamed from
32172         doc/glibc-functions/iswspace_l.texi.
32173         * doc/posix-functions/iswupper_l.texi: Renamed from
32174         doc/glibc-functions/iswupper_l.texi.
32175         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32176         doc/glibc-functions/iswxdigit_l.texi.
32177         * doc/posix-functions/isxdigit_l.texi: Renamed from
32178         doc/glibc-functions/isxdigit_l.texi.
32179         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32180         doc/glibc-functions/mbsnrtowcs.texi.
32181         * doc/posix-functions/mkdtemp.texi: Renamed from
32182         doc/glibc-functions/mkdtemp.texi.
32183         * doc/posix-functions/newlocale.texi: Renamed from
32184         doc/glibc-functions/newlocale.texi.
32185         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32186         doc/glibc-functions/nl_langinfo_l.texi.
32187         * doc/posix-functions/open_memstream.texi: Renamed from
32188         doc/glibc-functions/open_memstream.texi.
32189         * doc/posix-functions/opterr.texi: Renamed from
32190         doc/glibc-functions/opterr.texi.
32191         * doc/posix-functions/optind.texi: Renamed from
32192         doc/glibc-functions/optind.texi.
32193         * doc/posix-functions/optopt.texi: Renamed from
32194         doc/glibc-functions/optopt.texi.
32195         * doc/posix-functions/psignal.texi: Renamed from
32196         doc/glibc-functions/psignal.texi.
32197         * doc/posix-functions/scandir.texi: Renamed from
32198         doc/glibc-functions/scandir.texi.
32199         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32200         doc/glibc-functions/sched_get_priority_min.texi.
32201         * doc/posix-functions/signgam.texi: Renamed from
32202         doc/glibc-functions/signgam.texi.
32203         * doc/posix-functions/stpcpy.texi: Renamed from
32204         doc/glibc-functions/stpcpy.texi.
32205         * doc/posix-functions/stpncpy.texi: Renamed from
32206         doc/glibc-functions/stpncpy.texi.
32207         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32208         doc/glibc-functions/strcasecmp_l.texi.
32209         * doc/posix-functions/strcoll_l.texi: Renamed from
32210         doc/glibc-functions/strcoll_l.texi.
32211         * doc/posix-functions/strfmon_l.texi: Renamed from
32212         doc/glibc-functions/strfmon_l.texi.
32213         * doc/posix-functions/strftime_l.texi: Renamed from
32214         doc/glibc-functions/strftime_l.texi.
32215         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32216         doc/glibc-functions/strncasecmp_l.texi.
32217         * doc/posix-functions/strndup.texi: Renamed from
32218         doc/glibc-functions/strndup.texi.
32219         * doc/posix-functions/strnlen.texi: Renamed from
32220         doc/glibc-functions/strnlen.texi.
32221         * doc/posix-functions/strsignal.texi: Renamed from
32222         doc/glibc-functions/strsignal.texi.
32223         * doc/posix-functions/strxfrm_l.texi: Renamed from
32224         doc/glibc-functions/strxfrm_l.texi.
32225         * doc/posix-functions/timer_gettime.texi: Renamed from
32226         doc/glibc-functions/timer_gettime.texi.
32227         * doc/posix-functions/tolower_l.texi: Renamed from
32228         doc/glibc-functions/tolower_l.texi.
32229         * doc/posix-functions/toupper_l.texi: Renamed from
32230         doc/glibc-functions/toupper_l.texi.
32231         * doc/posix-functions/towctrans_l.texi: Renamed from
32232         doc/glibc-functions/towctrans_l.texi.
32233         * doc/posix-functions/towlower_l.texi: Renamed from
32234         doc/glibc-functions/towlower_l.texi.
32235         * doc/posix-functions/towupper_l.texi: Renamed from
32236         doc/glibc-functions/towupper_l.texi.
32237         * doc/posix-functions/uselocale.texi: Renamed from
32238         doc/glibc-functions/uselocale.texi.
32239         * doc/posix-functions/vdprintf.texi: Renamed from
32240         doc/glibc-functions/vdprintf.texi.
32241         * doc/posix-functions/wcpcpy.texi:
32242         Renamed from doc/glibc-functions/wcpcpy.texi.
32243         * doc/posix-functions/wcpncpy.texi: Renamed from
32244         doc/glibc-functions/wcpncpy.texi.
32245         * doc/posix-functions/wcscasecmp.texi: Renamed from
32246         doc/glibc-functions/wcscasecmp.texi.
32247         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32248         doc/glibc-functions/wcscasecmp_l.texi.
32249         * doc/posix-functions/wcscoll_l.texi: Renamed from
32250         doc/glibc-functions/wcscoll_l.texi.
32251         * doc/posix-functions/wcsdup.texi: Renamed from
32252         doc/glibc-functions/wcsdup.texi.
32253         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32254         doc/glibc-functions/wcsncasecmp.texi.
32255         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32256         doc/glibc-functions/wcsncasecmp_l.texi.
32257         * doc/posix-functions/wcsnlen.texi: Renamed from
32258         doc/glibc-functions/wcsnlen.texi.
32259         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32260         doc/glibc-functions/wcsnrtombs.texi.
32261         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32262         doc/glibc-functions/wcsxfrm_l.texi.
32263         * doc/posix-functions/wctrans_l.texi: Renamed from
32264         doc/glibc-functions/wctrans_l.texi.
32265         * doc/posix-functions/wctype_l.texi: Renamed from
32266         doc/glibc-functions/wctype_l.texi.
32267         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32268         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32269         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32270         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32271         these subsections.
32272         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32273         Remove sections.
32274
32275 2008-12-14  Bruno Haible  <bruno@clisp.org>
32276
32277         Update doc for POSIX:2008.
32278         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32279
32280 2008-12-14  Bruno Haible  <bruno@clisp.org>
32281
32282         Update doc for POSIX:2008.
32283         * doc/pastposix-functions/bcmp.texi: Renamed from
32284         doc/posix-functions/bcmp.texi.
32285         * doc/pastposix-functions/bcopy.texi: Renamed from
32286         doc/posix-functions/bcopy.texi.
32287         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32288         doc/posix-functions/bsd_signal.texi.
32289         * doc/pastposix-functions/bzero.texi: Renamed from
32290         doc/posix-functions/bzero.texi.
32291         * doc/pastposix-functions/ecvt.texi: Renamed from
32292         doc/posix-functions/ecvt.texi.
32293         * doc/pastposix-functions/fcvt.texi: Renamed from
32294         doc/posix-functions/fcvt.texi.
32295         * doc/pastposix-functions/ftime.texi: Renamed from
32296         doc/posix-functions/ftime.texi.
32297         * doc/pastposix-functions/gcvt.texi: Renamed from
32298         doc/posix-functions/gcvt.texi.
32299         * doc/pastposix-functions/getcontext.texi: Renamed from
32300         doc/posix-functions/getcontext.texi.
32301         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32302         doc/posix-functions/gethostbyaddr.texi.
32303         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32304         doc/posix-functions/gethostbyname.texi.
32305         * doc/pastposix-functions/getwd.texi: Renamed from
32306         doc/posix-functions/getwd.texi.
32307         * doc/pastposix-functions/h_errno.texi: Renamed from
32308         doc/posix-functions/h_errno.texi.
32309         * doc/pastposix-functions/index.texi: Renamed from
32310         doc/posix-functions/index.texi.
32311         * doc/pastposix-functions/makecontext.texi: Renamed from
32312         doc/posix-functions/makecontext.texi.
32313         * doc/pastposix-functions/mktemp.texi: Renamed from
32314         doc/posix-functions/mktemp.texi.
32315         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32316         doc/posix-functions/pthread_attr_getstackaddr.texi.
32317         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32318         doc/posix-functions/pthread_attr_setstackaddr.texi.
32319         * doc/pastposix-functions/rindex.texi: Renamed from
32320         doc/posix-functions/rindex.texi.
32321         * doc/pastposix-functions/scalb.texi: Renamed from
32322         doc/posix-functions/scalb.texi.
32323         * doc/pastposix-functions/setcontext.texi: Renamed from
32324         doc/posix-functions/setcontext.texi.
32325         * doc/pastposix-functions/swapcontext.texi: Renamed from
32326         doc/posix-functions/swapcontext.texi.
32327         * doc/pastposix-functions/ualarm.texi: Renamed from
32328         doc/posix-functions/ualarm.texi.
32329         * doc/pastposix-functions/usleep.texi: Renamed from
32330         doc/posix-functions/usleep.texi.
32331         * doc/pastposix-functions/vfork.texi: Renamed from
32332         doc/posix-functions/vfork.texi.
32333         * doc/pastposix-functions/wcswcs.texi: Renamed from
32334         doc/posix-functions/wcswcs.texi.
32335         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32336         (Function Substitutes): Update.
32337
32338 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32339
32340         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32341         m4/strerror.m4.
32342
32343 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32344             Bruno Haible  <bruno@clisp.org>
32345
32346         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32347
32348 2008-12-13  Bruno Haible  <bruno@clisp.org>
32349
32350         * modules/strtoull (Depends-on): Remove unistd.
32351
32352 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32353
32354         * modules/strtoull (Depends-on): Add stdlib.
32355
32356 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32357
32358         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32359
32360 2008-12-10  Jim Meyering  <meyering@redhat.com>
32361
32362         gl_ASSERT: don't say assertions are disabled when they're not
32363         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32364         "checking whether to enable assertions... no", when they are in
32365         fact enabled.  This is solely a bug in the output of configure.
32366         In spite of saying "no", NDEBUG was not defined in that case.
32367         Also, as noted by Eric Blake, leave assertions enabled upon
32368         --enable-assert=INVALID.
32369
32370 2008-12-10  Bruno Haible  <bruno@clisp.org>
32371
32372         Change MODULES.html to refer to POSIX:2008 where possible.
32373         * MODULES.html.sh (POSIX2008_URL): New variable.
32374         (posix_headers): Remove sys/timeb, ucontext.
32375         (posix2001_headers): New variable.
32376         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32377         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32378         index, makecontext, mktemp, pthread_attr_getstackaddr,
32379         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32380         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32381         (posix2001_functions): New variable.
32382         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32383         otherwise.
32384
32385 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32386
32387         add missing include to parse-duration.c
32388         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32389         * modules/parse-duration (Depends-on): Add xalloc.
32390
32391         fix sed script reading maint.mk
32392         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32393         (syntax-check-rules): Use it.
32394
32395 2008-12-09  Bruno Haible  <bruno@clisp.org>
32396
32397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32398         MacOS X 10.4/PowerPC.
32399         Reported by Simon Josefsson.
32400
32401 2008-12-08  Jim Meyering  <meyering@redhat.com>
32402
32403         work around mingw's lack of some S_IF definitions
32404         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32405         Reported by Simon Josefsson.
32406
32407 2008-12-08  Bruno Haible  <bruno@clisp.org>
32408
32409         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32410         applied to variables. Needed on MacOS X 10.4/PowerPC.
32411         Reported by Simon Josefsson.
32412
32413 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32414         and Eric Blake  <ebb9@byu.net>
32415
32416         assert: honor --enable-assert
32417         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32418         order to honor --enable-assert, rather than treating it as a
32419         synonym for --disable-assert.
32420
32421 2008-12-08  Jim Meyering  <meyering@redhat.com>
32422
32423         * lib/posixtm.c: Remove now-useless declaration of mktime.
32424
32425         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32426
32427 2008-12-07  Bruno Haible  <bruno@clisp.org>
32428
32429         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32430         test_once): Mark functions as static.
32431         * tests/test-tls.c (test_tls): Likewise.
32432
32433 2008-12-07  Bruno Haible  <bruno@clisp.org>
32434
32435         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32436         iconv_register_autodetect.
32437
32438 2008-12-07  Jim Meyering  <meyering@redhat.com>
32439
32440         posixtm.c: avoid a warning
32441         * lib/posixtm.c (posixtime): Don't initialize tm0.
32442         It's no longer needed to placate gcc4's -Wuninitialized,
32443         and the attempt to placate would elicit a new warning.
32444
32445         unicodeio.c: mark unused parameters
32446         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32447         (fallback_failure_callback): Likewise.
32448
32449 2008-12-07  Bruno Haible  <bruno@clisp.org>
32450
32451         * gnulib-tool (func_create_testdir): When building the tests
32452         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32453         Reported by Simon Josefsson.
32454
32455 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32456
32457         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32458
32459 2008-12-06  Bruno Haible  <bruno@clisp.org>
32460
32461         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32462         Suggested by Eric Blake.
32463
32464 2008-12-06  Bruno Haible  <bruno@clisp.org>
32465
32466         Fix a c-stack test failure on MacOS X.
32467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32468         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32469         handler for SIGBUS as well.
32470         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32471         install a signal handler for SIGBUS as well.
32472         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32473
32474 2008-12-06  Bruno Haible  <bruno@clisp.org>
32475
32476         Advocacy documentation.
32477         * doc/gnulib-intro.texi (Benefits): New section.
32478         * doc/gnulib.texi: Update.
32479
32480 2008-12-06  Bruno Haible  <bruno@clisp.org>
32481
32482         Document the 'manywarnings' module.
32483         * doc/manywarnings.texi: New file.
32484         * doc/gnulib.texi: Include it.
32485
32486 2008-12-05  Eric Blake  <ebb9@byu.net>
32487
32488         tests: silence some gcc warnings
32489         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32490         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32491         type mismatches.
32492
32493 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32494             Bruno Haible  <bruno@clisp.org>
32495
32496         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32497
32498 2008-11-29  Jim Meyering  <meyering@redhat.com>
32499
32500         unicodeio.c: mark unused parameters
32501         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32502         (fallback_failure_callback): Likewise.
32503
32504         fts: fix a thinko
32505         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32506         (set_stat_type): Return S_IF*-valued "type" directly.
32507         Prompted by James Youngman's spotting a related bug.
32508         Confirmed by further testing through find.
32509
32510         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32511         * lib/fts.c (D_TYPE): Define.
32512         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32513         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32514         (s_ifmt_shift_bits): New function.
32515         (set_stat_type): New function.
32516         (fts_build): When not calling fts_stat, call set_stat_type
32517         to propagate dirent.d_type info to fts_read caller.
32518         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32519         fts_statp->st_mode type information may be valid.
32520
32521 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32522
32523         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32524         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32525         <sds@gnu.org>.
32526
32527 2008-11-20  Bruno Haible  <bruno@clisp.org>
32528
32529         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32530         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32531         INCLUDE_NEXT.
32532         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32533         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32534         * modules/math (Makefile.am): Substitute
32535         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32536         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32537
32538 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32539             Bruno Haible  <bruno@clisp.org>
32540
32541         * lib/stdint.in.h: Define all type macros so that their expansion is
32542         a single typedef'ed token. Fixes a compilation failure in Boost which
32543         does "using ::int8_t;".
32544
32545 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32546
32547         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32548         gl_MANYWARN_ALL_GCC.
32549         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32550         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32551         * modules/manywarnings: New file.
32552         * MODULES.html.sh: Mention manywarnings module.
32553
32554 2008-11-18  Bruno Haible  <bruno@clisp.org>
32555
32556         * doc/gnulib-tool.texi (Unit tests): New section.
32557
32558 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32559
32560         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32561         paths like 'lib/po/foo.po'.
32562
32563 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32564
32565         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32566         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32567
32568 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32569
32570         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32571         parameter works.
32572
32573 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32574
32575         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32576
32577 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32578
32579         * modules/parse-duration-tests: New file.
32580         * tests/test-parse-duration.sh: New file.
32581         * tests/test-parse-duration.c: New file.
32582
32583         New module 'parse-duration'.
32584         * lib/parse-duration.h: New file.
32585         * lib/parse-duration.c: New file.
32586         * modules/parse-duration: New file.
32587
32588 2008-11-17  Bruno Haible  <bruno@clisp.org>
32589
32590         * tests/test-select-out.sh: Comment out the first pipe test.
32591         Reported by Simon Josefsson.
32592
32593 2008-11-17  Bruno Haible  <bruno@clisp.org>
32594
32595         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32597         gl_HOSTENT.
32598
32599 2008-11-17  Bruno Haible  <bruno@clisp.org>
32600
32601         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32602         -lnetwork and -lnet. Needed for Haiku and BeOS.
32603
32604 2008-11-16  Bruno Haible  <bruno@clisp.org>
32605
32606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32607
32608 2008-11-16  Bruno Haible  <bruno@clisp.org>
32609
32610         Avoid test failure on Haiku.
32611         * tests/test-fsync.c: Include <errno.h>.
32612         (main): Don't require that fsync (0) fails.
32613
32614 2008-11-15  Bruno Haible  <bruno@clisp.org>
32615
32616         New module 'hostent'.
32617         * modules/hostent: New file.
32618         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32619
32620 2008-11-15  Bruno Haible  <bruno@clisp.org>
32621
32622         New module 'servent'.
32623         * modules/servent: New file.
32624         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32625
32626 2008-11-15  Bruno Haible  <bruno@clisp.org>
32627
32628         Avoid generating same test program with two different rules.
32629         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32630         test-frexp to test-frexp-nolibm.
32631         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32632         test-frexpl to test-frexpl-nolibm.
32633
32634 2008-11-15  Bruno Haible  <bruno@clisp.org>
32635
32636         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32637         $(FREXPL_LIBM).
32638
32639 2008-11-15  Bruno Haible  <bruno@clisp.org>
32640
32641         * lib/netdb.in.h: Activate the definitions also when the system's
32642         <netdb.h> has 'struct addrinfo'.
32643         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32644         EAI_OVERFLOW or AI_NUMERICSERV.
32645         * doc/posix-headers/netdb.texi: Document the problem.
32646
32647 2008-11-15  Bruno Haible  <bruno@clisp.org>
32648
32649         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32650
32651         Make the 'sched' module work on platforms where <sched.h> exists but
32652         is incomplete (such as Haiku).
32653         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32654         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32655         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32656         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32657         HAVE_STRUCT_SCHED_PARAM.
32658         * modules/sched (Depends-on): Add include_next.
32659         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32660         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32661         * doc/posix-headers/sched.texi: Document the issue.
32662
32663 2008-11-13  Jim Meyering  <meyering@redhat.com>
32664
32665         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32666         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32667         test would fail due to the difference in the Report bugs to ...
32668         line.  The expected address is empty, "<>", while the actual
32669         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32670
32671 2008-11-12  Bruno Haible  <bruno@clisp.org>
32672
32673         lstat: don't compile lstat.c on systems lacking lstat
32674         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32675         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32676         Reported by Daniel P. Berrange via Jim Meyering.
32677
32678 2008-11-12  Jim Meyering  <meyering@redhat.com>
32679
32680         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32681
32682 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32683
32684         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32685         instead.
32686
32687 2008-11-12  Bruno Haible  <bruno@clisp.org>
32688
32689         * lib/unicodeio.c: Include unistr.h.
32690         (utf8_wctomb): Remove function.
32691         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32692
32693 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32694
32695         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32696         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32697         <bruno@clisp.org>.
32698         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32699
32700 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32701
32702         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32703         * doc/gnulib.texi: Add section for warnings.
32704
32705 2008-11-11  Bruno Haible  <bruno@clisp.org>
32706
32707         * lib/sockets.h: Add a comment.
32708
32709 2008-11-11  Karl Berry  <karl@gnu.org>
32710
32711         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32712
32713 2008-11-11  Eric Blake  <ebb9@byu.net>
32714
32715         fdl.texi: avoid git symlinks
32716         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32717
32718 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32719
32720         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32721
32722 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32723
32724         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32725         (gl_WARN_ADD): Substitute $2 if literal.
32726
32727 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32728
32729         * m4/warning.m4: Remove.
32730
32731 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32732
32733         * m4/warnings.m4: Almost complete rewrite. :-)
32734
32735 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32736
32737         * modules/warnings: New module.
32738         * m4/warnings.m4: New file.
32739         * MODULES.html.sh: Mention warnings module.
32740         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32741         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32742
32743 2008-11-10  Eric Blake  <ebb9@byu.net>
32744
32745         fdl.texi: make a symlink to the latest version
32746         * doc/standards.texi: Revert today's earlier change.
32747         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32748         * doc/fdl.texi: ...and replace this with a symlink to the newer
32749         fdl-1.3.texi.
32750
32751 2008-11-10  Bruno Haible  <bruno@clisp.org>
32752
32753         * tests/test-select-fd.c (main): Accept the result file name as fourth
32754         argument.
32755         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32756         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32757
32758 2008-11-10  Bruno Haible  <bruno@clisp.org>
32759
32760         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32761         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32762         as autoconf-substituted macros.
32763         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32764         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32765         gl_NETDB_H_DEFAULTS. Set these variables.
32766         * modules/netdb (Makefile.am): Substitute these variables.
32767
32768 2008-11-10  Eric Blake  <ebb9@byu.net>
32769
32770         standards.texi: include correct file for FDL 1.3
32771         * doc/standards.texi (GNU Free Documentation License): Change
32772         include file to pull in FDL 1.3, not 1.2.
32773
32774         fdl.texi: revert accidental change to license
32775         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32776
32777 2008-11-10  Bruno Haible  <bruno@clisp.org>
32778
32779         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32780         cross-compiling guesses also when the native compile gives no result.
32781
32782 2008-11-10  Bruno Haible  <bruno@clisp.org>
32783
32784         * lib/spawni.c (__spawni): Force variable into the stack.
32785
32786 2008-11-10  Bruno Haible  <bruno@clisp.org>
32787
32788         Add support for Haiku.
32789         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32790         glibc and BeOS, but also on Haiku.
32791         * lib/fpurge.c (fpurge): Likewise.
32792         * lib/freadable.c (freadable): Likewise.
32793         * lib/freadahead.c (freadahead): Likewise.
32794         * lib/freading.c (freading): Likewise.
32795         * lib/freadptr.c (freadptr): Likewise.
32796         * lib/freadseek.c (freadptrinc): Likewise.
32797         * lib/fseeko.c (rpl_fseeko): Likewise.
32798         * lib/fseterr.c (fseterr): Likewise.
32799         * lib/fwritable.c (fwritable): Likewise.
32800         * lib/fwriting.c (fwriting): Likewise.
32801         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32802
32803 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32804
32805         * lib/config.charset: Treat Haiku like BeOS.
32806
32807 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32808
32809         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32810         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32811
32812 2008-11-08  Bruno Haible  <bruno@clisp.org>
32813
32814         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32815         AC_CACHE_CHECK.
32816
32817 2008-11-08  Bruno Haible  <bruno@clisp.org>
32818
32819         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32820
32821 2008-11-08  Bruno Haible  <bruno@clisp.org>
32822
32823         * tests/test-select-fd.c: New file.
32824         * tests/test-select-in.sh: New file.
32825         * tests/test-select-out.sh: New file.
32826         * tests/test-select-stdin.c: New file.
32827         * modules/select-tests (Files): Add the new files.
32828         (Depends-on): Add gettimeofday.
32829         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32830         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32831         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32832
32833 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32834             Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32837
32838 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32839
32840         * build-aux/pmccabe2html: Added support for C++ source files.
32841
32842 2008-11-05  Ben Pfaff  <blp@gnu.org>
32843
32844         Fix lib/close.c build on Windows.
32845         * modules/close (Files): Add lib/w32sock.h.
32846
32847 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32848
32849         Accept Bison's NEWS format.
32850         * build-aux/announce-gen (print_news_deltas): Tweak
32851         $re_prefix.
32852
32853 2008-11-04  Bruno Haible  <bruno@clisp.org>
32854
32855         * modules/random_r (Maintainer): Add glibc.
32856
32857 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32858
32859         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32860         by karl@freefriends.org (Karl Berry).
32861         * doc/alloca.texi: Likewise.
32862         * doc/c-ctype.texi: Likewise.
32863         * doc/c-strcase.texi: Likewise.
32864         * doc/c-strcaseeq.texi: Likewise.
32865         * doc/c-strcasestr.texi: Likewise.
32866         * doc/c-strstr.texi: Likewise.
32867         * doc/c-strtod.texi: Likewise.
32868         * doc/c-strtold.texi: Likewise.
32869         * doc/ctime.texi: Likewise.
32870         * doc/error.texi: Likewise.
32871         * doc/fdl.texi: Likewise.
32872         * doc/gcd.texi: Likewise.
32873         * doc/getdate.texi: Likewise.
32874         * doc/gnulib-intro.texi: Likewise.
32875         * doc/gnulib-tool.texi: Likewise.
32876         * doc/gnulib.texi: Likewise.
32877         * doc/inet_ntoa.texi: Likewise.
32878         * doc/maintain.texi: Likewise.
32879         * doc/make-stds.texi: Likewise.
32880         * doc/quote.texi: Likewise.
32881         * doc/regexprops-generic.texi: Likewise.
32882         * doc/standards.texi: Likewise.
32883         * doc/verify.texi: Likewise.
32884         * doc/visibility.texi: Likewise.
32885         * doc/gnulib.texi (GNU Free Documentation License): Include
32886         fdl-1.3.texi instead of fdl.texi.
32887
32888 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32889
32890         * doc/fdl-1.3.texi: New file, from
32891         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32892         * modules/fdl-1.3: Add.
32893         * MODULES.html.sh: Add fdl-1.3.
32894
32895 2008-11-03  Bruno Haible  <bruno@clisp.org>
32896
32897         Make determination of absolute name of header file work with AIX xlc.
32898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32899         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32900         preprocessing.
32901         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32902         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32903
32904 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32905
32906         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32907         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32908         <ludo@gnu.org>.
32909
32910 2008-11-02  Bruno Haible  <bruno@clisp.org>
32911
32912         Mark 'strpbrk' obsolete.
32913         * modules/strpbrk (Status, Notice): New sections.
32914         * modules/strtok_r (Depends-on): Add strpbrk.
32915
32916 2008-11-02  Bruno Haible  <bruno@clisp.org>
32917
32918         Mark 'strdup' obsolete.
32919         * modules/strdup (Status, Notice): New sections.
32920         * modules/findprog (Depends-on): Add strdup.
32921         * modules/getaddrinfo (Depends-on): Likewise.
32922         * modules/localename (Depends-on): Likewise.
32923         * modules/relocatable-lib (Depends-on): Likewise.
32924         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32925         * modules/relocatable-prog (Depends-on): Likewise.
32926         * modules/trim (Depends-on): Likewise.
32927         * modules/unictype/gen-ctype (Depends-on): Likewise.
32928         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32929
32930 2008-11-02  Bruno Haible  <bruno@clisp.org>
32931
32932         Mark 'strcspn' obsolete.
32933         * modules/strcspn (Status, Notice): New sections.
32934
32935 2008-11-02  Bruno Haible  <bruno@clisp.org>
32936
32937         Mark 'rmdir' obsolete.
32938         * modules/rmdir (Status, Notice): New sections.
32939         * modules/clean-temp (Depends-on): Add rmdir.
32940         * modules/openat (Depends-on): Likewise.
32941
32942 2008-11-02  Bruno Haible  <bruno@clisp.org>
32943
32944         Mark 'raise' obsolete.
32945         * modules/raise (Status, Notice): New sections.
32946         (Include): Specify <signal.h>.
32947         * modules/stdio (Depends-on): Add raise.
32948         * modules/write (Depends-on): Likewise.
32949
32950 2008-11-02  Bruno Haible  <bruno@clisp.org>
32951
32952         Mark 'memset' obsolete.
32953         * modules/memset (Status, Notice): New sections.
32954
32955 2008-11-02  Bruno Haible  <bruno@clisp.org>
32956
32957         Mark 'memmove' obsolete.
32958         * modules/memmove (Status, Notice): New sections.
32959         * modules/argp (Depends-on): Add memmove.
32960         * modules/argz (Depends-on): Likewise.
32961         * modules/canonicalize (Depends-on): Likewise.
32962         * modules/canonicalize-lgpl (Depends-on): Likewise.
32963         * modules/fts (Depends-on): Likewise.
32964         * modules/getcwd (Depends-on): Likewise.
32965         * modules/human (Depends-on): Likewise.
32966         * modules/regex (Depends-on): Likewise.
32967         * modules/striconveh (Depends-on): Likewise.
32968         * modules/trim (Depends-on): Likewise.
32969         * modules/unistr/u8-move (Depends-on): Likewise.
32970         * modules/unistr/u16-move (Depends-on): Likewise.
32971         * modules/unistr/u32-move (Depends-on): Likewise.
32972
32973 2008-11-02  Bruno Haible  <bruno@clisp.org>
32974
32975         Mark 'memcpy' obsolete.
32976         * modules/memcpy (Status, Notice): New sections.
32977
32978 2008-11-02  Bruno Haible  <bruno@clisp.org>
32979
32980         Mark 'memcmp' obsolete.
32981         * modules/memcmp (Status, Notice): New sections.
32982         * modules/argmatch (Depends-on): Add memchr.
32983         * modules/backupfile (Depends-on): Likewise.
32984         * modules/c-strcasestr (Depends-on): Likewise.
32985         * modules/crypto/des (Depends-on): Likewise.
32986         * modules/csharpcomp (Depends-on): Likewise.
32987         * modules/fnmatch (Depends-on): Likewise.
32988         * modules/git-merge-changelog (Depends-on): Likewise.
32989         * modules/isnand (Depends-on): Likewise.
32990         * modules/isnand-nolibm (Depends-on): Likewise.
32991         * modules/isnanf (Depends-on): Likewise.
32992         * modules/isnanf-nolibm (Depends-on): Likewise.
32993         * modules/isnanl (Depends-on): Likewise.
32994         * modules/isnanl-nolibm (Depends-on): Likewise.
32995         * modules/mbchar (Depends-on): Likewise.
32996         * modules/memcoll (Depends-on): Likewise.
32997         * modules/quotearg (Depends-on): Likewise.
32998         * modules/regex (Depends-on): Likewise.
32999         * modules/relocatable-prog (Depends-on): Likewise.
33000         * modules/same (Depends-on): Likewise.
33001         * modules/signbit (Depends-on): Likewise.
33002         * modules/strcasestr-simple (Depends-on): Likewise.
33003         * modules/unictype/gen-ctype (Depends-on): Likewise.
33004         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33005         * modules/uniname/uniname (Depends-on): Likewise.
33006         * modules/unistr/u8-cmp (Depends-on): Likewise.
33007
33008 2008-11-02  Bruno Haible  <bruno@clisp.org>
33009
33010         Mark 'memchr' obsolete.
33011         * modules/memchr (Status, Notice): New sections.
33012         * modules/argp (Depends-on): Add memchr.
33013         * modules/base64 (Depends-on): Likewise.
33014         * modules/c-strcasestr (Depends-on): Likewise.
33015         * modules/chdir-long (Depends-on): Likewise.
33016         * modules/fnmatch (Depends-on): Likewise.
33017         * modules/getsubopt (Depends-on): Likewise.
33018         * modules/git-merge-changelog (Depends-on): Likewise.
33019         * modules/glob (Depends-on): Likewise.
33020         * modules/strcasestr-simple (Depends-on): Likewise.
33021         * modules/strnlen (Depends-on): Likewise.
33022
33023 2008-11-02  Bruno Haible  <bruno@clisp.org>
33024
33025         Mark 'atexit' obsolete.
33026         * modules/atexit (Status, Notice): New sections.
33027         * modules/chdir-long (Depends-on): Add atexit.
33028         * modules/wait-process (Depends-on): Likewise.
33029
33030 2008-11-02  Bruno Haible  <bruno@clisp.org>
33031
33032         * gnulib-tool: New option --with-obsolete.
33033         (func_usage): Document it.
33034         (func_modules_transitive_closure): Drop obsolete dependencies if
33035         incobsolete is not true.
33036         (func_import): Read and save the incobsolete variable to the cache.
33037
33038 2008-11-02  Bruno Haible  <bruno@clisp.org>
33039
33040         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33041         * gnulib-tool: New option --extract-status.
33042         (func_usage): Document it.
33043         (sed_extract_prog): Recognize it.
33044         (func_get_status): New function.
33045
33046 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33047
33048         * modules/sockets (License): Change from LGPL to LGPLv2+.
33049
33050 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33051
33052         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33053
33054 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33055
33056         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33057         Mention times and sys_times.
33058         * modules/sys_times, modules/sys_times-tests: New modules.
33059         * modules/times, modules/times-tests: Likewise
33060         * m4/sys_times_h.m4: New file.
33061         * lib/sys_times.in.h: Likewise
33062         * lib/times.c: Likewise.
33063         * tests/test-sys_times.c: Likewise.
33064         * tests/test-times.c: Likewise.
33065         * doc/posix-headers/sys_times.texi: Update.
33066         * doc/posix-functions/times.texi: Update.
33067
33068 2008-10-28  Jim Meyering  <meyering@redhat.com>
33069
33070         * modules/tempname (Depends-on): Add lstat.
33071
33072         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33073
33074 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33075
33076         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33077         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33078         using idiom used elsewhere in gnulib.
33079
33080 2008-10-27  Jim Meyering  <meyering@redhat.com>
33081
33082         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33083
33084 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33085
33086         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33087         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33088         programs.
33089         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33090
33091 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33092
33093         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33094
33095 2008-10-27  Bruno Haible  <bruno@clisp.org>
33096
33097         * tests/test-lstat.c: Include <stdio.h>.
33098
33099 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33100
33101         * modules/lstat-tests: New module.
33102         * tests/test-lstat.c: New file.
33103
33104 2008-10-26  Jim Meyering  <meyering@redhat.com>
33105
33106         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33107
33108 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33109             Bruno Haible  <bruno@clisp.org>
33110
33111         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33112         * modules/configmake (Include): Add a note that the include must come
33113         after all system headers.
33114         * lib/javaversion.c: Include configmake.h after all other includes.
33115
33116 2008-10-26  Bruno Haible  <bruno@clisp.org>
33117
33118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33119         HAVE_STRUCT_RANDOM_DATA to 1.
33120         (gl_STDLIB_H): Simplify.
33121
33122 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33123
33124         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33125         substitute HAVE_STRUCT_RANDOM_DATA.
33126         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33127         random_data.
33128         * modules/stdlib (Makefile.am): Substitute
33129         HAVE_STRUCT_RANDOM_DATA.
33130
33131 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33132
33133         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33134         * doc/gnulib-intro.texi (Copyright): Likewise.
33135
33136 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33137
33138         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33139         findings.
33140
33141 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33142             Bruno Haible  <bruno@clisp.org>
33143
33144         * lib/unistd.in.h: Include <winsock2.h>.
33145         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33146         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33147         Provide dummy declarations.
33148         (gethostname): Override.
33149         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33150         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33151         gl_PREREQ_SYS_H_WINSOCK2.
33152         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33153         * doc/posix-functions/gethostname.texi: More details.
33154
33155 2008-10-25  Bruno Haible  <bruno@clisp.org>
33156
33157         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33158         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33159         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33160
33161         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33162         here ...
33163         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33164         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33165         gl_UNISTD_H_DEFAULTS.
33166
33167 2008-10-25  Eric Blake  <ebb9@byu.net>
33168
33169         signbit: avoid spurious compiler failure
33170         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33171         declarations inside function.
33172
33173 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33174             Bruno Haible  <bruno@clisp.org>
33175
33176         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33177         * modules/random_r (Depends-on): Add stdint.
33178
33179 2008-10-24  Bruno Haible  <bruno@clisp.org>
33180
33181         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33182         Eggert.
33183         * modules/strerror (License): Likewise.
33184
33185 2008-10-24  Jim Meyering  <meyering@redhat.com>
33186
33187         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33188         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33189
33190 2008-10-24  Eric Blake  <ebb9@byu.net>
33191
33192         getgroups: fix compilation when getgroups is available
33193         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33194         but with <config.h> override of getgroups disabled.
33195
33196 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33197
33198         * doc/gnulib.texi (Header files): Add note about C++ problems.
33199         Explained by Bruno Haible <bruno@clisp.org>.
33200
33201 2008-10-23  Bruno Haible  <bruno@clisp.org>
33202
33203         Define a dummy SA_NODEFER macro on Interix.
33204         * lib/signal.in.h (SA_NODEFER): Define fallback.
33205         Reported by Aleksey Cheusov <cheusov@tut.by> via
33206         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33207
33208 2008-10-23  Bruno Haible  <bruno@clisp.org>
33209
33210         * modules/freadahead (License): Change to LGPLv2+.
33211         Suggested by Simon Josefsson.
33212
33213 2008-10-23  Jim Meyering  <meyering@redhat.com>
33214
33215         random_r: new module
33216         * modules/random_r: New file.
33217         * m4/random_r.m4: New file.
33218         * lib/random_r.c: New file, from glibc.
33219         * modules/random_r-tests: New file.
33220         * tests/test-random_r.c: New file.
33221         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33222          Declare.
33223         (RAND_MAX): Define.
33224         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33225         * modules/stdlib: Substitute them, too.
33226         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33227         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33228         * doc/glibc-functions/random_r.texi: Likewise.
33229         * doc/glibc-functions/setstate_r.texi: Likewise.
33230         * doc/glibc-functions/srandom_r.texi: Likewise.
33231         * config/srclist.txt: Mention it.
33232
33233 2008-10-23  David Lutterkort  <lutter@redhat.com>
33234
33235         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33236         link requirement
33237
33238 2008-10-23  Jim Meyering  <meyering@redhat.com>
33239
33240         selinux-h: mark parameters of stub functions as intentionally unused
33241         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33242         * lib/se-context.in.h: Likewise.
33243
33244 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33245
33246         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33247
33248 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33249
33250         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33251
33252 2008-10-22  Eric Blake  <ebb9@byu.net>
33253
33254         glthread/thread: avoid compiler warning
33255         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33256         Add unreachable abort to silence compiler.
33257
33258 2008-10-22  Eric Blake  <ebb9@byu.net>
33259
33260         netdb: also supply struct addrinfo for cygwin 1.5.x
33261         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33262         older cygwin.
33263         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33264         cygwin.
33265         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33266
33267 2008-10-22  Bruno Haible  <bruno@clisp.org>
33268
33269         * users.txt: Update entry about pspp.
33270
33271 2008-10-21  Bruno Haible  <bruno@clisp.org>
33272
33273         Simplification.
33274         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33275         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33276
33277         Simplification.
33278         * lib/ioctl.c (ioctl): Don't undefine.
33279         * lib/socket.c (socket): Don't undefine.
33280
33281         Remove unused module indicator macros.
33282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33283         GNULIB_$1 as a C macro.
33284
33285         * doc/posix-functions/close.texi: Undo last change.
33286         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33287         Windows platforms.
33288
33289 2008-10-21  Bruno Haible  <bruno@clisp.org>
33290
33291         Add gethostname() declaration to <unistd.h>.
33292         * lib/unistd.in.h (gethostname): New declaration.
33293         * lib/gethostname.c: Include <unistd.h>.
33294         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33295         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33297         and HAVE_GETHOSTNAME.
33298         * modules/gethostname (Depends-on): Add unistd.
33299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33300         (Include): Specify <unistd.h>.
33301         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33302         HAVE_GETHOSTNAME.
33303         * tests/test-gethostname.c: Include <unistd.h> first.
33304
33305 2008-10-21  Bruno Haible  <bruno@clisp.org>
33306
33307         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33308         * modules/select-tests (Depends-on): Likewise.
33309         Reported by Simon Josefsson.
33310
33311 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33312
33313         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33314         * lib/accept.c: New file, based on winsock.c.
33315         * lib/bind.c: New file, based on winsock.c.
33316         * lib/connect.c: New file, based on winsock.c.
33317         * lib/getpeername.c: New file, based on winsock.c.
33318         * lib/getsockname.c: New file, based on winsock.c.
33319         * lib/getsockopt.c: New file, based on winsock.c.
33320         * lib/ioctl.c: New file, based on winsock.c.
33321         * lib/listen.c: New file, based on winsock.c.
33322         * lib/recv.c: New file, based on winsock.c.
33323         * lib/recvfrom.c: New file, based on winsock.c.
33324         * lib/send.c: New file, based on winsock.c.
33325         * lib/sendto.c: New file, based on winsock.c.
33326         * lib/setsockopt.c: New file, based on winsock.c.
33327         * lib/shutdown.c: New file, based on winsock.c.
33328         * lib/socket.c: New file, based on winsock.c.
33329         * lib/w32sock.h: New file, based on winsock.c.
33330         * lib/winsock.c: Remove file.
33331         * modules/accept: Likewise.
33332         * modules/bind: Likewise.
33333         * modules/connect: Likewise.
33334         * modules/getpeername: Likewise.
33335         * modules/getsockname: Likewise.
33336         * modules/getsockopt: Likewise.
33337         * modules/ioctl: Likewise.
33338         * modules/listen: Likewise.
33339         * modules/recv: Likewise.
33340         * modules/recvfrom: Likewise.
33341         * modules/send: Likewise.
33342         * modules/sendto: Likewise.
33343         * modules/setsockopt: Likewise.
33344         * modules/shutdown: Likewise.
33345         * modules/socket: Use socket.c instead of winsock.c.
33346         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33347         * doc/posix-functions/accept.texi: Doc fix.
33348         * doc/posix-functions/bind.texi: Doc fix.
33349         * doc/posix-functions/close.texi: Doc fix.
33350         * doc/posix-functions/connect.texi: Doc fix.
33351         * doc/posix-functions/getpeername.texi: Doc fix.
33352         * doc/posix-functions/getsockname.texi: Doc fix.
33353         * doc/posix-functions/getsockopt.texi: Doc fix.
33354         * doc/posix-functions/ioctl.texi: Doc fix.
33355         * doc/posix-functions/listen.texi: Doc fix.
33356         * doc/posix-functions/recv.texi: Doc fix.
33357         * doc/posix-functions/recvfrom.texi: Doc fix.
33358         * doc/posix-functions/send.texi: Doc fix.
33359         * doc/posix-functions/sendto.texi: Doc fix.
33360         * doc/posix-functions/setsockopt.texi: Doc fix.
33361         * doc/posix-functions/shutdown.texi: Doc fix.
33362         * doc/posix-functions/socket.texi: Doc fix.
33363
33364 2008-10-20  Bruno Haible  <bruno@clisp.org>
33365
33366         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33367         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33368         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33369         as an alias for SIGABRT.
33370         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33371         (sigaction): Map it to SIGABRT.
33372         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33373
33374 2008-10-20  Bruno Haible  <bruno@clisp.org>
33375
33376         * lib/fts.c: Don't include lstat.h.
33377         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33378
33379         Move the lstat() declaration to <sys/stat.h>.
33380         * lib/lstat.h: Remove file.
33381         * lib/sys_stat.in.h: Add special invocation convention.
33382         (lstat): New declaration.
33383         * lib/lstat.c (orig_lstat): New function.
33384         (rpl_lstat): Use orig_lstat instead of lstat.
33385         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33386         AC_C_INLINE. Set REPLACE_LSTAT.
33387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33388         and REPLACE_LSTAT.
33389         * modules/lstat (Files): Remove lib/lstat.h.
33390         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33391         (Include): Specify <sys/stat.h> instead of lstat.h.
33392         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33393         REPLACE_LSTAT.
33394         * NEWS: Mention the change.
33395
33396 2008-10-20  Bruno Haible  <bruno@clisp.org>
33397
33398         * modules/posix_spawn-tests: New file.
33399         * tests/test-posix_spawn3.c: New file.
33400
33401 2008-10-20  Bruno Haible  <bruno@clisp.org>
33402
33403         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33404         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33405         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33406         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33407         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33408
33409 2008-10-20  Bruno Haible  <bruno@clisp.org>
33410
33411         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33412         of posix_spawn on AIX 5.3.
33413
33414 2008-10-20  Bruno Haible  <bruno@clisp.org>
33415
33416         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33417
33418 2008-10-20  Bruno Haible  <bruno@clisp.org>
33419
33420         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33421         of AC_LANG_PROGRAM.
33422
33423 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33424
33425         * lib/netdb.in.h: Don't define GNU specific constants until they
33426         are supported or needed.  Reported by Bruno Haible
33427         <bruno@clisp.org>.
33428
33429 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33430
33431         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33432
33433 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33434
33435         * lib/getaddrinfo.h: Remove file.
33436         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33437         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33438         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33439         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33440         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33441         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33442         * tests/test-getaddrinfo.c: Likewise.
33443         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33444         * NEWS: Mention change.
33445
33446 2008-10-19  Bruno Haible  <bruno@clisp.org>
33447
33448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33449
33450 2008-10-19  Bruno Haible  <bruno@clisp.org>
33451
33452         * lib/wait-process.c: Include simply <sys/wait.h>.
33453         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33454         WIFSTOPPED): Remove fallback definitions.
33455         * modules/wait-process (Depends-on): Add sys_wait.
33456
33457         New module 'sys_wait'.
33458         * modules/sys_wait: New file.
33459         * lib/sys_wait.in.h: New file, partially copied from
33460         lib/wait-process.c.
33461         * m4/sys_wait_h.m4: New file.
33462         * doc/posix-headers/sys_wait.texi: Mention the new module.
33463
33464 2008-10-19  Bruno Haible  <bruno@clisp.org>
33465
33466         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33467
33468 2008-10-19  Bruno Haible  <bruno@clisp.org>
33469
33470         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33471         * lib/wait-process.c (WAIT_T): Remove type.
33472         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33473         (wait_subprocess): Update.
33474
33475 2008-10-19  Bruno Haible  <bruno@clisp.org>
33476
33477         New module 'atoll'.
33478         * modules/atoll: New file.
33479         * lib/stdlib.in.h (atoll): New declaration.
33480         * lib/atoll.c: New file, from glibc with modifications.
33481         * m4/atoll.m4: New file.
33482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33483         HAVE_ATOLL.
33484         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33485         * doc/posix-functions/atoll.texi: Mention the new module.
33486
33487 2008-10-19  Bruno Haible  <bruno@clisp.org>
33488
33489         Add strtoull() declaration to <stdlib.h>.
33490         * lib/stdlib.in.h (strtoull): New declaration.
33491         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33492         Set HAVE_STRTOULL.
33493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33494         HAVE_STRTOULL.
33495         * modules/strtoull (Depends-on): Add stdlib.
33496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33497         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33498         HAVE_STRTOULL.
33499
33500 2008-10-19  Bruno Haible  <bruno@clisp.org>
33501
33502         Add strtoll() declaration to <stdlib.h>.
33503         * lib/stdlib.in.h (strtoll): New declaration.
33504         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33505         Set HAVE_STRTOLL.
33506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33507         HAVE_STRTOLL.
33508         * modules/strtoll (Depends-on): Add stdlib.
33509         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33510         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33511
33512 2008-10-19  Bruno Haible  <bruno@clisp.org>
33513
33514         * modules/bcopy (Depends-on): Add strings.
33515         (Include): Specify <strings.h>.
33516
33517 2008-10-19  Bruno Haible  <bruno@clisp.org>
33518
33519         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33520
33521 2008-10-19  Bruno Haible  <bruno@clisp.org>
33522
33523         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33524         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33525         mingw.
33526
33527 2008-10-19  Bruno Haible  <bruno@clisp.org>
33528
33529         * lib/atanl.c: Don't include isnanl.h.
33530         * lib/cosl.c: Likewise.
33531         * lib/ldexpl.c: Likewise.
33532         * lib/logl.c: Likewise.
33533         * lib/sinl.c: Likewise.
33534         * lib/sqrtl.c: Likewise.
33535         * lib/tanl.c: Likewise.
33536
33537         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33538         * lib/isnanf.h: Remove file.
33539         * lib/isnand.h: Remove file.
33540         * lib/isnanl.h: Remove file.
33541         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33542         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33543         macros.
33544         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33545         HAVE_ISNANF, don't define it as a C macro.
33546         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33547         HAVE_ISNAND, don't define it as a C macro.
33548         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33549         HAVE_ISNANL, don't define it as a C macro.
33550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33551         HAVE_ISNAN[FDL].
33552         * modules/isnanf (Files): Remove lib/isnanf.h.
33553         (Depends-on): Add math.
33554         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33555         (Include): Specify <math.h> instead of isnanf.h.
33556         * modules/isnand (Files): Remove lib/isnand.h.
33557         (Depends-on): Add math.
33558         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33559         (Include): Specify <math.h> instead of isnand.h.
33560         * modules/isnanl (Files): Remove lib/isnanl.h.
33561         (Depends-on): Add math.
33562         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33563         (Include): Specify <math.h> instead of isnanl.h.
33564         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33565         HAVE_ISNAN[FDL].
33566         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33567         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33568         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33569         * NEWS: Mention the change.
33570
33571 2008-10-18  Bruno Haible  <bruno@clisp.org>
33572
33573         Add getusershell(), setusershell(), endusershell() declarations to
33574         <unistd.h>.
33575         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33576         declarations.
33577         * lib/getusershell.c: Include unistd.h.
33578         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33579         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33580         HAVE_GETUSERSHELL.
33581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33582         and HAVE_GETUSERSHELL.
33583         * modules/getusershell (Depends-on): Add unistd, extensions.
33584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33585         (Include): Specify <unistd.h>.
33586         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33587         HAVE_GETUSERSHELL.
33588
33589 2008-10-18  Bruno Haible  <bruno@clisp.org>
33590
33591         Add a getloadavg() declaration to <stdlib.h>.
33592         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33593         getloadavg declaration.
33594         (getloadavg): New declaration.
33595         * lib/getloadavg.c: Include <stdlib.h> first.
33596         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33597         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33598         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33600         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33601         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33602         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33603         (Include): Specify <stdlib.h>.
33604         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33605         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33606
33607 2008-10-18  Bruno Haible  <bruno@clisp.org>
33608
33609         * lib/dirchownmod.c: Don't include lchmod.h.
33610
33611         Move the lchmod() declaration to <sys/stat.h>.
33612         * lib/lchmod.h: Remove file.
33613         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33614         (lchmod): New declaration, moved here from lib/lchown.h.
33615         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33616         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33617         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33618         and HAVE_LCHMOD.
33619         * modules/lchmod (Files): Remove lib/lchmod.h.
33620         (Depends-on): Add sys_stat, extensions.
33621         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33622         (Include): Specify <sys/stat.h> instead of lchmod.h.
33623         * modules/sys_stat (Depends-on): Add link-warning.
33624         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33625         definition of GL_LINK_WARNING.
33626         * NEWS: Mention the change.
33627
33628 2008-10-18  Bruno Haible  <bruno@clisp.org>
33629
33630         * lib/fchdir.c: Don't include dirfd.h.
33631         * lib/fts.c: Likewise.
33632         * lib/getcwd.c: Likewise.
33633         * lib/glob.c: Likewise.
33634
33635         Move the dirfd() declaration to <dirent.h>.
33636         * lib/dirfd.h: Remove file.
33637         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33638         (dirfd): New declaration.
33639         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33640         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33641         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33642         HAVE_DECL_DIRFD.
33643         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33644         HAVE_DECL_DIRFD.
33645         * modules/dirfd (Files): Remove lib/dirfd.h.
33646         (Depends-on): Add dirent, extensions.
33647         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33648         (Include): Specify <dirent.h> instead of dirfd.h.
33649         * modules/dirent (Depends-on): Add link-warning.
33650         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33651         definition of GL_LINK_WARNING.
33652         * NEWS: Mention the change.
33653
33654 2008-10-18  Bruno Haible  <bruno@clisp.org>
33655
33656         Move the euidaccess() declaration to <unistd.h>.
33657         * lib/euidaccess.h: Remove file.
33658         * lib/unistd.in.h (euidaccess): New declaration.
33659         * lib/euidaccess.c: Don't include euidaccess.h.
33660         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33661         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33663         and HAVE_EUIDACCESS.
33664         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33665         (Depends-on): Add unistd.
33666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33667         (Include): Specify <unistd.h> instead of euidaccess.h.
33668         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33669         HAVE_EUIDACCESS.
33670         * NEWS: Mention the change.
33671
33672 2008-10-18  Bruno Haible  <bruno@clisp.org>
33673
33674         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33675
33676         Move the getdomainname() declaration to <unistd.h>.
33677         * lib/getdomainname.h: Remove file.
33678         * lib/unistd.in.h (getdomainname): New declaration.
33679         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33680         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33681         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33682         HAVE_GETDOMAINNAME.
33683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33684         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33685         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33686         (Depends-on): Add unistd, extensions.
33687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33688         (Includes): Specify <unistd.h> instead of getdomainname.h.
33689         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33690         HAVE_GETDOMAINNAME.
33691         * NEWS: Mention the change.
33692
33693 2008-10-18  Bruno Haible  <bruno@clisp.org>
33694
33695         * modules/dirent: New file.
33696         * m4/dirent_h.m4: New file.
33697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33698         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33699         * modules/fchdir (Files): Remove lib/dirent.in.h.
33700         (Depends-on): Add dirent.
33701         (Makefile.am): Move rules to modules/dirent.
33702         * doc/posix-headers/dirent.texi: Mention the new module.
33703
33704 2008-10-18  Bruno Haible  <bruno@clisp.org>
33705
33706         Avoid -Wunused-parameter warnings in public gnulib header files.
33707         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33708         macro.
33709         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33710
33711 2008-10-18  Bruno Haible  <bruno@clisp.org>
33712
33713         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33714         * doc/glibc-functions/error.texi: Mention the module 'error'.
33715         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33716         * doc/glibc-functions/getdomainname.texi: Mention the module
33717         'getdomainname'.
33718         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33719         * doc/glibc-functions/getpagesize.texi: Mention the module
33720         'getpagesize'.
33721         * doc/glibc-functions/getusershell.texi: Mention the module
33722         'getusershell'.
33723         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33724         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33725         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33726         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33727         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33728         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33729         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33730         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33731         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33732         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33733         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33734         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33735         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33736         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33737
33738 2008-10-17  Bruno Haible  <bruno@clisp.org>
33739
33740         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33741         HP-UX and IRIX, use -0.0L.
33742         * tests/test-ceill.c (minus_zero): Likewise.
33743         * tests/test-floorl.c (minus_zero): Likewise.
33744         * tests/test-frexpl.c (minus_zero): Likewise.
33745         * tests/test-isnan.c (minus_zerol): Likewise.
33746         * tests/test-isnanl.h (minus_zero): Likewise.
33747         * tests/test-ldexpl.c (minus_zero): Likewise.
33748         * tests/test-roundl.c (minus_zero): Likewise.
33749         * tests/test-signbit.c (minus_zerol): Likewise.
33750         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33751         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33752         * tests/test-truncl.c (minus_zero): Likewise.
33753         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33754         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33755         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33756         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33757
33758 2008-10-17  Bruno Haible  <bruno@clisp.org>
33759
33760         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33761         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33762         that it gets activated only for gcc >= 3.0.
33763         * lib/dirent.in.h: Likewise.
33764         * lib/errno.in.h: Likewise.
33765         * lib/fcntl.in.h: Likewise.
33766         * lib/float.in.h: Likewise.
33767         * lib/iconv.in.h: Likewise.
33768         * lib/inttypes.in.h: Likewise.
33769         * lib/locale.in.h: Likewise.
33770         * lib/math.in.h: Likewise.
33771         * lib/netdb.in.h: Likewise.
33772         * lib/netinet_in.in.h: Likewise.
33773         * lib/search.in.h: Likewise.
33774         * lib/signal.in.h: Likewise.
33775         * lib/spawn.in.h: Likewise.
33776         * lib/stdarg.in.h: Likewise.
33777         * lib/stdint.in.h: Likewise.
33778         * lib/stdio.in.h: Likewise.
33779         * lib/stdlib.in.h: Likewise.
33780         * lib/string.in.h: Likewise.
33781         * lib/strings.in.h: Likewise.
33782         * lib/sys_file.in.h: Likewise.
33783         * lib/sys_ioctl.in.h: Likewise.
33784         * lib/sys_select.in.h: Likewise.
33785         * lib/sys_socket.in.h: Likewise.
33786         * lib/sys_stat.in.h: Likewise.
33787         * lib/sys_time.in.h: Likewise.
33788         * lib/sysexits.in.h: Likewise.
33789         * lib/time.in.h: Likewise.
33790         * lib/unistd.in.h: Likewise.
33791         * lib/wchar.in.h: Likewise.
33792         * lib/wctype.in.h: Likewise.
33793         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33794
33795 2008-10-17  Jim Meyering  <meyering@redhat.com>
33796
33797         ignore-value: don't depend on inline module
33798         * modules/ignore-value (Depends-on): Remove 'inline'.
33799         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33800         Suggestion from Bruno Haible.
33801
33802 2008-10-17  Bruno Haible  <bruno@clisp.org>
33803
33804         New implementation of condition variables for Win32.
33805         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33806         (gl_linked_waitqueue_t): New type.
33807         (gl_cond_t): Use it.
33808         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33809         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33810         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33811         (glthread_cond_init_func, glthread_cond_wait_func,
33812         glthread_cond_timedwait_func, glthread_cond_signal_func,
33813         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33814         Reimplemented on the basis of gl_linked_waitqueue_t.
33815         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33816         gl_waitqueue_t.
33817         (gl_rwlock_t): Update.
33818         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33819
33820 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33821
33822         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33823         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33824
33825 2008-10-17  Jim Meyering  <meyering@redhat.com>
33826
33827         ignore-value: new module
33828         * modules/ignore-value: New file.
33829         * lib/ignore-value.h: New file.
33830         * MODULES.html.sh (Compiler warning management): New section,
33831         just for this module.  More to come.
33832
33833 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33834
33835         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33836         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33837         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33838
33839 2008-10-16  Jim Meyering  <meyering@redhat.com>
33840
33841         openat-die.c: avoid 'no previous prototype' warning
33842         * lib/openat-die.c: Include "openat.h".
33843         Reported by Reuben Thomas <rrt@sc3d.org>.
33844
33845 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33846
33847         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33848         * lib/netdb.in.h: Fix typo.
33849         Reported by Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/netdb.in.h: Include sys/socket.h for platforms without
33852         netdb.h, to get structures like hostent on MinGW.
33853         * modules/netdb (Depends-on): Add sys_socket.
33854
33855 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33856
33857         * modules/netdb, modules/netdb-tests: New file.
33858         * m4/netdb_h.m4: New file.
33859         * lib/netdb.in.h: Add, currently just an empty file pending
33860         definitions.
33861         * tests/test-netdb.c: New file.
33862         * doc/posix-headers/netdb.texi: Mention that we replace it if
33863         needed.
33864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33865         netdb.
33866
33867 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33868
33869         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33870         with code.
33871
33872 2008-10-13  Bruno Haible  <bruno@clisp.org>
33873
33874         * lib/glthread/cond.c (glthread_cond_wait_func,
33875         glthread_cond_timedwait_func): Add a comment.
33876
33877 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33878
33879         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33880         * tests/test-select.c: Likewise,
33881
33882 2008-10-13  Bruno Haible  <bruno@clisp.org>
33883
33884         * lib/glthread/cond.c (glthread_cond_wait_func,
33885         glthread_cond_timedwait_func): Fix variable name.
33886         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33887
33888 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33889
33890         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33892         struct sockaddr.sa_len.
33893         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33894
33895 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33896
33897         * build-aux/pmccabe2html: Add css and css_url parameters.
33898
33899 2008-10-12  Bruno Haible  <bruno@clisp.org>
33900
33901         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33902         calling aclx_get.
33903         Reported by Rainer Tammer <tammer@tammer.net>.
33904
33905 2008-10-12  Bruno Haible  <bruno@clisp.org>
33906
33907         Use msvcrt aware primitives for creation/termination of Win32 threads.
33908         * lib/glthread/thread.c: Include <process.h>.
33909         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33910         (wrapper_func): Update signature.
33911         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33912
33913 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33914             Bruno Haible  <bruno@clisp.org>
33915
33916         Provide a Win32 implementation of the 'cond' module.
33917         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33918         * lib/glthread/cond.c (glthread_cond_init_func,
33919         glthread_cond_wait_func, glthread_cond_timedwait_func,
33920         glthread_cond_signal_func, glthread_cond_broadcast_func,
33921         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33922         * modules/cond (Dependencies): Add gettimeofday.
33923
33924 2008-10-11  Bruno Haible  <bruno@clisp.org>
33925
33926         Make sleep work on older versions of mingw.
33927         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33928         only whether it exists.
33929         * doc/posix-functions/sleep.texi: Mention the problem with older
33930         versions of mingw.
33931
33932 2008-10-11  Bruno Haible  <bruno@clisp.org>
33933
33934         New module 'shutdown'.
33935         * modules/shutdown: New file.
33936         * lib/sys_socket.in.h (shutdown): New declaration.
33937         * lib/winsock.c (shutdown): New function.
33938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33939         GNULIB_SHUTDOWN.
33940         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33941         * doc/posix-functions/shutdown.texi: Document the new module.
33942
33943 2008-10-11  Jim Meyering  <meyering@redhat.com>
33944
33945         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33946
33947 2008-10-11  Bruno Haible  <bruno@clisp.org>
33948
33949         New module 'fclose'.
33950         * modules/fclose: New file.
33951         * lib/stdio.in.h (fclose): New declaration.
33952         * lib/fclose.c: New file.
33953         * m4/fclose.m4: New file.
33954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33955         REPLACE_FCLOSE.
33956         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33957         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33958         REPLACE_FCLOSE.
33959         * modules/close (Depends-on): fclose.
33960         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33961
33962 2008-10-11  Bruno Haible  <bruno@clisp.org>
33963
33964         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33965         set errno and don't call _close.
33966
33967 2008-10-10  Bruno Haible  <bruno@clisp.org>
33968
33969         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33970         ACL, not afterwards. Fixes test failure on Cygwin.
33971
33972 2008-10-09  Ben Pfaff  <blp@gnu.org>
33973
33974         * build-aux/announce-gen: Fix gnulib version related part of usage
33975         message.  Die with a useful error message if no tarballs are
33976         found.
33977
33978 2008-10-10  Jim Meyering  <meyering@redhat.com>
33979
33980         bootstrap: use git's --depth=N option only if it's supported
33981         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33982         recognize the --depth option.  Reported by Pádraig Brady.
33983
33984 2008-10-09  Bruno Haible  <bruno@clisp.org>
33985
33986         New module 'ioctl'.
33987         * modules/ioctl: New file.
33988         * lib/sys_socket.in.h (ioctl): Remove declaration.
33989         * lib/winsock.c: Include <sys/ioctl.h>.
33990         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33991         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33992         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33993         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33994         * doc/posix-functions/ioctl.texi: Mention the new module.
33995
33996 2008-10-09  Bruno Haible  <bruno@clisp.org>
33997
33998         New module 'sys_ioctl'.
33999         * lib/sys_ioctl.in.h: New file.
34000         * m4/sys_ioctl_h.m4: New file.
34001         * modules/sys_ioctl: New file.
34002         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34003
34004 2008-10-09  Bruno Haible  <bruno@clisp.org>
34005
34006         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34007         * lib/winsock.c: Include <stdarg.h>.
34008         (rpl_ioctl): Change to second argument 'int' and then varargs.
34009
34010 2008-10-09  Bruno Haible  <bruno@clisp.org>
34011
34012         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34013         when the sys_socket module is present and the system has <winsock2.h>.
34014
34015 2008-10-09  Bruno Haible  <bruno@clisp.org>
34016
34017         * doc/posix-functions/close.texi: Mention module 'close' instead of
34018         module 'sys_socket'.
34019
34020 2008-10-09  Bruno Haible  <bruno@clisp.org>
34021
34022         * doc/glibc-headers/sys_ioctl.texi: New file.
34023         * doc/gnulib.texi: Include it.
34024
34025 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34026             Bruno Haible  <bruno@clisp.org>
34027
34028         Combine the two replacements of 'close'.
34029         * lib/sys_socket.in.h (close): Define to a reminder to include
34030         <unistd.h>.
34031         (_gl_close_fd_maybe_socket): New declaration.
34032         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34033         * lib/winsock.c (close): Remove undefinition.
34034         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34035         needed for the gnulib module 'close'.
34036         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34037         define to an error symbol or to a warning, if suitable.
34038         * lib/close.c: Include <sys/socket.h>.
34039         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34040         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34041         UNISTD_H_HAVE_WINSOCK2_H.
34042         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34044         UNISTD_H_HAVE_WINSOCK2_H.
34045         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34046         (configure.ac): Set a module indicator.
34047         (Makefile.am): Substitute GNULIB_CLOSE.
34048         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34049         * modules/poll-tests (Depends-on): Add close.
34050         * modules/select-tests (Depends-on): Likewise.
34051
34052 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34053             Bruno Haible  <bruno@clisp.org>
34054
34055         New module 'close'.
34056         * modules/close: New file.
34057         * lib/unistd.in.h (close): Move declaration out of the
34058         FCHDIR_REPLACEMENT scope.
34059         (_gl_unregister_fd): New declaration.
34060         * lib/close.c: New file.
34061         * lib/fchdir.c (rpl_close): Remove function.
34062         * m4/close.m4: New file.
34063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34064         close.
34065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34066         REPLACE_CLOSE.
34067         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34068         REPLACE_CLOSE.
34069         * modules/fchdir (Depends-on): Add close.
34070
34071 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34072             Bruno Haible  <bruno@clisp.org>
34073
34074         * lib/fcntl.in.h (open): Simplify conditionals.
34075         (_gl_register_fd): New declaration.
34076         * lib/fchdir.c (rpl_open): Remove function.
34077         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34078         also.
34079         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34081         open.
34082
34083 2008-10-09  Jim Meyering  <meyering@redhat.com>
34084
34085         GNUmakefile: use the more name-space-friendly "_version"
34086         * top/GNUmakefile (_dummy): Update.
34087         (_version): Rename from "version".
34088
34089 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34090             Bruno Haible  <bruno@clisp.org>
34091
34092         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34093         rpl_close.
34094         (_gl_register_fd): New function, extracted from rpl_open.
34095         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34096         (rpl_open, rpl_opendir): Use _gl_register_fd.
34097
34098 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34099
34100         Fix organization of 'open' replacement.
34101         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34102         (gl_FUNC_OPEN): Use it.
34103         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34104
34105 2008-10-08  Bruno Haible  <bruno@clisp.org>
34106
34107         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34108
34109 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34110
34111         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34112         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34113         listen).
34114
34115 2008-10-08  Eric Blake  <ebb9@byu.net>
34116
34117         GNUmakefile: add 'make version' target
34118         * top/GNUmakefile (_curr-ver): Split version update rules...
34119         (version): ...into a target.
34120
34121 2008-10-07  Bruno Haible  <bruno@clisp.org>
34122
34123         Use a more portable replacement expression for -0.0L.
34124         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34125         instead of -0.0L. Fix m4 quotation.
34126
34127         * tests/test-signbit.c: Include <float.h>.
34128         (minus_zero): New variable.
34129         (test_signbitl): Use minus_zero instead of -zero.
34130         * modules/signbit-tests (Depends-on): Add float.
34131
34132         * tests/test-ceill.c: Include <float.h>.
34133         (zero): Remove variable.
34134         (minus_zero): New variable.
34135         (main): Use minus_zero instead of -zero.
34136         * modules/ceill-tests (Depends-on): Add float.
34137
34138         * tests/test-floorl.c: Include <float.h>.
34139         (zero): Remove variable.
34140         (minus_zero): New variable.
34141         (main): Use minus_zero instead of -zero.
34142         * modules/floorl-tests (Depends-on): Add float.
34143
34144         * tests/test-roundl.c: Include <float.h>.
34145         (zero): Remove variable.
34146         (minus_zero): New variable.
34147         (main): Use minus_zero instead of -zero.
34148         * modules/roundl-tests (Depends-on): Add float.
34149
34150         * tests/test-truncl.c: Include <float.h>.
34151         (zero): Remove variable.
34152         (minus_zero): New variable.
34153         (main): Use minus_zero instead of -zero.
34154         * modules/truncl-tests (Depends-on): Add float.
34155
34156         * tests/test-frexpl.c (zero): Remove variable.
34157         (minus_zero): New variable.
34158         (main): Use minus_zero instead of -zero.
34159         * modules/frexpl-tests (Depends-on): Add float.
34160
34161         * tests/test-isnan.c (zerol): Remove variable.
34162         (minus_zerol): New variable.
34163         (test_long_double): Use minus_zerol instead of -zerol.
34164         * modules/isnan-tests (Depends-on): Add float.
34165
34166         * tests/test-isnanl.h (zero): Remove variable.
34167         (minus_zero): New variable.
34168         (main): Use minus_zero instead of -zero.
34169         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34170         * modules/isnanl-tests (Depends-on): Add float.
34171
34172         * tests/test-ldexpl.c (zero): Remove variable.
34173         (minus_zero): New variable.
34174         (main): Use minus_zero instead of -zero.
34175         * modules/ldexpl-tests (Depends-on): Add float.
34176
34177         * tests/test-snprintf-posix.h (zerol): Remove variable.
34178         (minus_zerol): New variable.
34179         (test_function): Use minus_zerol instead of -zerol.
34180         * modules/snprintf-posix-tests (Depends-on): Add float.
34181         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34182
34183         * tests/test-sprintf-posix.h (zerol): Remove variable.
34184         (minus_zerol): New variable.
34185         (test_function): Use minus_zerol instead of -zerol.
34186         * modules/sprintf-posix-tests (Depends-on): Add float.
34187         * modules/vsprintf-posix-tests (Depends-on): Add float.
34188
34189         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34190         (minus_zerol): New variable.
34191         (test_function): Use minus_zerol instead of -zerol.
34192         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34193
34194         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34195         (minus_zerol): New variable.
34196         (test_function): Use minus_zerol instead of -zerol.
34197         * modules/vasprintf-posix-tests (Depends-on): Add float.
34198
34199 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34200
34201         * MODULES.html.sh (Support for building documentation): Mention
34202         pmccabe2html.  Sort entries.
34203
34204         Add pmccabe2html module, from gnupdf.
34205         * build-aux/pmccabe.css: New file.
34206         * build-aux/pmccabe2html: New file.
34207         * m4/pmccabe2html.m4: New file.
34208         * modules/pmccabe2html: New file.
34209
34210 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34211
34212         flock: new module
34213         * MODULES.html.sh: Add to list of modules.
34214         * lib/flock.c: flock implementation for Windows and Unix systems
34215         which have fcntl.
34216         * doc/glibc-functions/flock.texi: Update documentation.
34217         * lib/sys_file.in.h: <sys/file.h> header file.
34218         * m4/flock.m4: M4 macros.
34219         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34220         * modules/flock: flock module.
34221         * modules/flock-tests: flock tests module.
34222         * modules/sys_file: sys/file.h module.
34223         * tests/test-flock.c: test suite for flock.
34224
34225 2008-10-06  Jim Meyering  <meyering@redhat.com>
34226
34227         bootstrap: check for LT_INIT more portably still ;-)
34228         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34229         Spotted by Bruno Haible.
34230
34231 2008-10-06  Eric Blake  <ebb9@byu.net>
34232
34233         test-signbit: avoid tripping Irix cc bug on -0.0L
34234         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34235         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34236         entire testsuite consistent and avoids an Irix 6.2 bug.
34237
34238 2008-10-05  Bruno Haible  <bruno@clisp.org>
34239             Jim Meyering  <jim@meyering.net>
34240
34241         Add an option for ignoring EPIPE during close_stdout.
34242         * lib/closeout.h: Include <stdbool.h>.
34243         (close_stdout_set_ignore_EPIPE): New declaration.
34244         * lib/closeout.c: Include <stdbool.h>.
34245         (ignore_EPIPE): New variable.
34246         (close_stdout_set_ignore_EPIPE): New function.
34247         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34248         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34249         failure.
34250         * modules/closeout (Depends-on): Add stdbool.
34251
34252 2008-10-05  Bruno Haible  <bruno@clisp.org>
34253
34254         * modules/accept: New file.
34255         * modules/bind: New file.
34256         * modules/connect: New file.
34257         * modules/getpeername: New file.
34258         * modules/getsockname: New file.
34259         * modules/getsockopt: New file.
34260         * modules/listen: New file.
34261         * modules/recv: New file.
34262         * modules/recvfrom: New file.
34263         * modules/send: New file.
34264         * modules/sendto: New file.
34265         * modules/setsockopt: New file.
34266         * modules/socket: New file.
34267         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34268         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34269         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34270         the particular module is requested. Add a link warning when the
34271         particular module is not requested.
34272         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34273         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34274         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34275         the particular module is requested.
34276         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34277         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34278         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34279         * modules/sys_socket (Depends-on): Add link-warning.
34280         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34281         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34282         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34283         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34284         GL_LINK_WARNING.
34285         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34286         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34287         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34288         * doc/posix-functions/getpeername.texi: Mention the new module
34289         'getpeername'.
34290         * doc/posix-functions/getsockname.texi: Mention the new module
34291         'getsockname'.
34292         * doc/posix-functions/getsockopt.texi: Mention the new module
34293         'getsockopt'.
34294         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34295         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34296         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34297         * doc/posix-functions/send.texi: Mention the new module 'send'.
34298         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34299         * doc/posix-functions/setsockopt.texi: Mention the new module
34300         'setsockopt'.
34301         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34302         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34303         listen, connect, accept.
34304         * modules/select-tests (Depends-on): Likewise.
34305
34306 2008-10-05  Bruno Haible  <bruno@clisp.org>
34307
34308         * lib/winsock.c (strerror): Remove unused #undef.
34309         (rpl_close): Remove unused local variable.
34310
34311         * modules/sys_socket (Depends-on); Add errno.
34312
34313 2008-10-05  Bruno Haible  <bruno@clisp.org>
34314
34315         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34316         (select): Add a link warning when the 'select' module is not used.
34317         * modules/sys_select (Depends-on): Add link-warning.
34318         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34319         Suggested by Paolo Bonzini.
34320
34321 2008-10-05  Jim Meyering  <meyering@redhat.com>
34322
34323         bootstrap: check for LT_INIT more portably
34324         * build-aux/bootstrap: Avoid using grep -E, since it's not
34325         portable enough.  Suggestion from Bruno Haible.
34326
34327 2008-10-05  Bruno Haible  <bruno@clisp.org>
34328
34329         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34330         as being fixed by gnulib.
34331
34332 2008-10-05  Bruno Haible  <bruno@clisp.org>
34333
34334         * modules/select-tests: New file, mostly copied from
34335         modules/sys_select-tests.
34336         * tests/test-select.c: New file, mostly copied from
34337         tests/test-sys_select.c.
34338         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34339         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34340         (Makefile.am): Remove test_sys_select_LDADD.
34341
34342         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34343         to an undefined symbol, for an error message.
34344         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34345         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34346         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34347         winsock-select.c here.
34348         * modules/sys_select (Files): Remove lib/winsock-select.c.
34349         (Depends-on): Remove alloca.
34350         (Makefile.am): Substitute GNULIB_SELECT.
34351         * modules/select: New file.
34352         * doc/posix-functions/select.texi: Update.
34353
34354 2008-10-05  Bruno Haible  <bruno@clisp.org>
34355
34356         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34357         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34358         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34359         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34360         getdtablesize.
34361         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34362         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34363
34364 2008-10-05  Bruno Haible  <bruno@clisp.org>
34365
34366         * modules/getdtablesize-tests: New file.
34367         * tests/test-getdtablesize.c: New file.
34368
34369         New module 'getdtablesize'.
34370         * lib/unistd.in.h (getdtablesize): New declaration.
34371         * lib/getdtablesize.c: New file.
34372         * m4/getdtablesize.m4: New file.
34373         * modules/getdtablesize: New file.
34374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34375         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34376         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34377         HAVE_GETDTABLESIZE.
34378         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34379
34380 2008-10-05  Bruno Haible  <bruno@clisp.org>
34381
34382         * modules/sched (Makefile.am): Fix typo.
34383         Reported by Simon Josefsson.
34384
34385 2008-10-05  Jim Meyering  <meyering@redhat.com>
34386
34387         bootstrap: check for LT_INIT, too
34388         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34389         are deprecated.  Suggestion from Ralf Wildenhues.
34390
34391 2008-10-05  Bruno Haible  <bruno@clisp.org>
34392
34393         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34394         overriding them by ours.
34395         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34396
34397 2008-10-05  Jim Meyering  <meyering@redhat.com>
34398
34399         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34400         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34401         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34402
34403 2008-10-04  Bruno Haible  <bruno@clisp.org>
34404
34405         * modules/dup2 (License): Change to LGPLv2+.
34406         * modules/sleep (License): Likewise.
34407         * modules/perror (License): Likewise.
34408         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34409         Blake.
34410         * modules/signal (License): Likewise.
34411         * modules/sigprocmask (License): Likewise.
34412         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34413         Meyering.
34414
34415 2008-10-04  Bruno Haible  <bruno@clisp.org>
34416
34417         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34418         Reported by Rainer Tammer <tammer@tammer.net>.
34419
34420 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34421             Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34424         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34425         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34426
34427 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34428
34429         filevercmp: new module
34430         * lib/filevercmp.h: New function filevercmp comparing version strings.
34431         * lib/filevercmp.c: Implementation of filevercmp function.
34432         * modules/filevercmp: Module metadata.
34433         * tests/test-filevercmp.c: Unit test for new module.
34434         * modules/filevercmp-tests: Unit test metadata.
34435         * MODULES.html.sh: Add filevercmp module.
34436
34437 2008-10-03  Bruno Haible  <bruno@clisp.org>
34438
34439         * lib/c-ctype.h: Add comment.
34440         Reported by Jim Meyering.
34441
34442 2008-10-02  Bruno Haible  <bruno@clisp.org>
34443
34444         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34445
34446 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34447
34448         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34449         name of bootstrap.conf accordingly.
34450
34451 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34452
34453         * build-aux/bootstrap: Install git-merge-changelog configuration
34454         items into .gitconfig if needed.
34455
34456 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34457
34458         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34459         git repository, and initialize/update it accordingly.
34460
34461 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34462
34463         * modules/fsync-tests: New file.
34464         * tests/test-fsync.c: New file.
34465
34466         New module 'fsync'.
34467         * lib/fsync.c: New file.
34468         * m4/fsync.m4: New file.
34469         * modules/fsync: New file.
34470         * lib/unistd.in.h (fsync): New declaration.
34471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34472         GNULIB_FSYNC and HAVE_FSYNC.
34473         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34474         * MODULES.html.sh (posix_functions): Add fsync.
34475         * doc/posix-functions/fsync.texi: Mention the new module.
34476
34477 2008-10-02  Jim Meyering  <meyering@redhat.com>
34478
34479         fts.c: sync with similar code from coreutils' remove.c
34480         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34481         Guard also with "#if defined __linux__", since for now at least,
34482         this code is Linux-kernel-specific.
34483
34484 2008-10-02  Jim Meyering  <meyering@redhat.com>
34485
34486         fts: bug fixes
34487         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34488         Include <sys/vfs.h>, not <sys/statfs.h>.
34489
34490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34491         Include <sys/vfs.h>, not <sys/statfs.h>.
34492
34493 2008-10-01  Bruno Haible  <bruno@clisp.org>
34494
34495         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34497         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34498         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34499         * doc/posix-functions/posix_spawnp.texi: Likewise.
34500         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34501         whether posix_spawn actually works.
34502         * m4/pipe.m4 (gl_PIPE): Likewise.
34503         * modules/execute (Files): Add m4/posix_spawn.m4.
34504         * modules/pipe (Files): Add m4/posix_spawn.m4.
34505         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34506
34507 2008-10-01  Jim Meyering  <meyering@redhat.com>
34508
34509         remove trailing spaces
34510         * NEWS: Likewise.
34511         * lib/poll.c (poll): Likewise.
34512         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34513         * lib/winsock.c (rpl_close): Likewise.
34514         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34515         * modules/yield: Likewise.
34516         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34517         * tests/test-sys_select.c (connect_to_socket): Likewise.
34518
34519         fts.c: adjust a new interface to be more generally useful
34520         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34521         (fts_build): Adjust caller.
34522
34523 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34524
34525         * modules/cond-tests: New file.
34526         * tests/test-cond.c: New file.
34527
34528 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34529             Bruno Haible  <bruno@clisp.org>
34530
34531         * modules/cond (Dependencies): Add errno, time.
34532         * lib/glthread/cond.h: Include <time.h>.
34533         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34534         across platforms.
34535
34536 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34537             Bruno Haible  <bruno@clisp.org>
34538
34539         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34540
34541 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34542             Bruno Haible  <bruno@clisp.org>
34543
34544         * modules/tls-tests (Depends-on): Add thread, yield.
34545         (configure.ac): Remove all checks.
34546         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34547         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34548         gl_thread_self): Remove definitions. Include glthread/thread.h and
34549         glthread/yield.h instead.
34550         (test_tls): Pass an additional NULL argument to gl_thread_join.
34551
34552 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34553             Bruno Haible  <bruno@clisp.org>
34554
34555         * modules/lock-tests (Depends-on): Add thread, yield.
34556         (configure.ac): Remove all checks.
34557         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34558         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34559         gl_thread_self): Remove definitions. Include glthread/thread.h and
34560         glthread/yield.h instead.
34561         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34562         additional NULL argument to gl_thread_join.
34563
34564 2008-09-30  Bruno Haible  <bruno@clisp.org>
34565
34566         Fix the Win32 implementation of the 'thread' module.
34567         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34568         pointer type.
34569         (gl_thread_self): Invoke gl_thread_self_func.
34570         (gl_thread_self_func): New declaration.
34571         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34572         (do_init_self_key, init_self_key): New functions.
34573         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34574         Remove some fields.
34575         (running_threads, running_lock): Remove variables.
34576         (get_current_thread_handle): New function.
34577         (gl_thread_self_func, wrapper_func, glthread_create_func,
34578         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34579         simplified.
34580
34581 2008-09-30  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34584         files.
34585
34586 2008-09-30  Jim Meyering  <meyering@redhat.com>
34587
34588         fts.m4: correct the test for statfs.f_type
34589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34590         when checking for statfs.f_type.
34591
34592 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34593
34594         tests: avoid some compiler warnings
34595         * tests/test-memchr.c (main): Pass NULL indirectly.
34596         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34597
34598 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34599
34600         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34601         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34602         exactly specified dayshifts.
34603         (dayshift): New rule.
34604         (rel): Add dayshift.
34605         (relative_time_table) [tomorrow, yesterday, today, now]:
34606         Use tDAY_SHIFT in place of tDAY_UNIT.
34607         * tests/test-getdate.c: Add tests for now-disallowed countable
34608         dayshifts, e.g., "4 yesterday ago".
34609
34610 2008-09-29  Bruno Haible  <bruno@clisp.org>
34611
34612         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34613         * tests/test-posix_spawn1.in.sh: Renamed from
34614         tests/test-posix_spawn.in.sh.
34615         * tests/test-posix_spawn2.c: New file.
34616         * tests/test-posix_spawn2.in.sh: New file.
34617         * modules/posix_spawnp-tests (Files): Update.
34618         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34619
34620 2008-09-29  Bruno Haible  <bruno@clisp.org>
34621
34622         Propagate effects of putenv/setenv/unsetenv to child processes.
34623         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34624         * lib/pipe.c (create_pipe): Likewise.
34625
34626 2008-09-29  Bruno Haible  <bruno@clisp.org>
34627
34628         Enable use of shell scripts as executables in mingw.
34629         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34630         run the program as a shell script.
34631         * lib/pipe.c (create_pipe): Likewise.
34632         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34633         resulting array.
34634
34635 2008-09-29  Eric Blake  <ebb9@byu.net>
34636
34637         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34638
34639 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34640
34641         * doc/posix-functions/accept.texi: Update mingw problems.
34642         * doc/posix-functions/bind.texi: Update mingw problems.
34643         * doc/posix-functions/close.texi: Update mingw problems.
34644         * doc/posix-functions/connect.texi: Update mingw problems.
34645         * doc/posix-functions/getpeername.texi: Update mingw problems.
34646         * doc/posix-functions/getsockname.texi: Update mingw problems.
34647         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34648         * doc/posix-functions/ioctl.texi: Update mingw problems.
34649         * doc/posix-functions/listen.texi: Update mingw problems.
34650         * doc/posix-functions/recv.texi: Update mingw problems.
34651         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34652         * doc/posix-functions/select.texi: Update mingw problems.
34653         * doc/posix-functions/send.texi: Update mingw problems.
34654         * doc/posix-functions/sendto.texi: Update mingw problems.
34655         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34656         * doc/posix-functions/socket.texi: Update mingw problems.
34657
34658 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34659             Bruno Haible  <bruno@clisp.org>
34660
34661         * lib/sys_select.in.h: Include sys/time.h.
34662         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34663         * modules/sys_select: Depend on sys_time.
34664         * tests/test-sys_select.c: Test that sys/select.h defines struct
34665         timeval fully.
34666
34667 2008-09-29  Bruno Haible  <bruno@clisp.org>
34668
34669         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34670         * lib/sys_select.in.h: Likewise.
34671
34672 2008-09-29  Bruno Haible  <bruno@clisp.org>
34673
34674         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34675
34676 2008-09-29  Bruno Haible  <bruno@clisp.org>
34677
34678         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34679         Set LIBSOCKET instead of augmenting LIBS.
34680         * modules/sockets (Link): New section.
34681         * modules/sockets-tests (test_sockets_LDADD): New variable.
34682         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34683         * modules/poll-tests (test_poll_LDADD): New variable.
34684         * NEWS: Document the change.
34685
34686 2008-09-29  Bruno Haible  <bruno@clisp.org>
34687
34688         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34689         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34690         ARPA_INET_H directly.
34691         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34692
34693 2008-09-28  Bruno Haible  <bruno@clisp.org>
34694
34695         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34696         from gl_HEADER_SYS_SOCKET.
34697         (gl_HEADER_SYS_SOCKET): Invoke it.
34698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34699
34700 2008-09-28  Bruno Haible  <bruno@clisp.org>
34701
34702         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34703         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34704         Needed on OSF/1 4.0.
34705
34706 2008-09-28  Bruno Haible  <bruno@clisp.org>
34707
34708         Override open more carefully.
34709         * lib/open.c (orig_open): New function.
34710         (rpl_open): Use orig_open instead of open.
34711         * lib/fcntl.in.h: Add special invocation convention.
34712         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34713         (gl_FUNC_OPEN): Invoke it.
34714
34715         Override freopen more carefully.
34716         * lib/freopen.c (orig_freopen): New function.
34717         (rpl_freopen): Use orig_freopen instead of freopen.
34718         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34719         (gl_FUNC_FREOPEN): Invoke it.
34720
34721         Override fopen more carefully.
34722         * lib/fopen.c (orig_fopen): New function.
34723         (rpl_fopen): Use orig_fopen instead of fopen.
34724         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34725         (gl_FUNC_FOPEN): Invoke it.
34726         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34727
34728 2008-09-28  Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34731         SIGPIPE.
34732
34733 2008-09-28  Bruno Haible  <bruno@clisp.org>
34734
34735         * tests/test-sigaction.c (handler, main): Disable the check whether
34736         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34737         glibc systems with LinuxThreads.
34738
34739 2008-09-28  Bruno Haible  <bruno@clisp.org>
34740
34741         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34742
34743         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34744         with AIX xlc.
34745         * lib/fcntl.in.h (open): Likewise.
34746         Reported by Rainer Tammer <tammer@tammer.net>.
34747
34748 2008-09-28  Bruno Haible  <bruno@clisp.org>
34749
34750         * modules/posix_spawnp-tests: New file.
34751         * tests/test-posix_spawn.c: New file.
34752         * tests/test-posix_spawn.in.sh: New file.
34753
34754         New module 'posix_spawnp'.
34755         * modules/posix_spawnp: New file.
34756         * lib/spawnp.c: New file, from GNU libc with modifications.
34757         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34758
34759         New module 'posix_spawn'.
34760         * modules/posix_spawn: New file.
34761         * lib/spawn.c: New file, from GNU libc with modifications.
34762         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34763
34764         New module 'posix_spawnattr_destroy'.
34765         * modules/posix_spawnattr_destroy: New file.
34766         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34767         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34768         module.
34769
34770         New module 'posix_spawnattr_setsigmask'.
34771         * modules/posix_spawnattr_setsigmask: New file.
34772         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34773         modifications.
34774         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34775         new module.
34776
34777         New module 'posix_spawnattr_getsigmask'.
34778         * modules/posix_spawnattr_getsigmask: New file.
34779         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34780         modifications.
34781         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34782         new module.
34783
34784         New module 'posix_spawnattr_setsigdefault'.
34785         * modules/posix_spawnattr_setsigdefault: New file.
34786         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34787         modifications.
34788         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34789         new module.
34790
34791         New module 'posix_spawnattr_getsigdefault'.
34792         * modules/posix_spawnattr_getsigdefault: New file.
34793         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34794         modifications.
34795         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34796         new module.
34797
34798         New module 'posix_spawnattr_setschedpolicy'.
34799         * modules/posix_spawnattr_setschedpolicy: New file.
34800         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34801         modifications.
34802         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34803         new module.
34804
34805         New module 'posix_spawnattr_getschedpolicy'.
34806         * modules/posix_spawnattr_getschedpolicy: New file.
34807         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34808         modifications.
34809         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34810         new module.
34811
34812         New module 'posix_spawnattr_setschedparam'.
34813         * modules/posix_spawnattr_setschedparam: New file.
34814         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34815         modifications.
34816         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34817         new module.
34818
34819         New module 'posix_spawnattr_getschedparam'.
34820         * modules/posix_spawnattr_getschedparam: New file.
34821         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34822         modifications.
34823         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34824         new module.
34825
34826         New module 'posix_spawnattr_setpgroup'.
34827         * modules/posix_spawnattr_setpgroup: New file.
34828         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34829         modifications.
34830         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34831         module.
34832
34833         New module 'posix_spawnattr_getpgroup'.
34834         * modules/posix_spawnattr_getpgroup: New file.
34835         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34836         modifications.
34837         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34838         module.
34839
34840         New module 'posix_spawnattr_setflags'.
34841         * modules/posix_spawnattr_setflags: New file.
34842         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34843         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34844         module.
34845
34846         New module 'posix_spawnattr_getflags'.
34847         * modules/posix_spawnattr_getflags: New file.
34848         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34849         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34850         module.
34851
34852         New module 'posix_spawnattr_init'.
34853         * modules/posix_spawnattr_init: New file.
34854         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34855         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34856         module.
34857
34858         New module 'posix_spawn_file_actions_destroy'.
34859         * modules/posix_spawn_file_actions_destroy: New file.
34860         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34861         modifications.
34862         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34863         the new module.
34864
34865         New module 'posix_spawn_file_actions_addopen'.
34866         * modules/posix_spawn_file_actions_addopen: New file.
34867         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34868         modifications.
34869         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34870         the new module.
34871
34872         New module 'posix_spawn_file_actions_adddup2'.
34873         * modules/posix_spawn_file_actions_adddup2: New file.
34874         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34875         modifications.
34876         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34877         the new module.
34878
34879         New module 'posix_spawn_file_actions_addclose'.
34880         * modules/posix_spawn_file_actions_addclose: New file.
34881         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34882         modifications.
34883         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34884         the new module.
34885
34886         New module 'posix_spawn_file_actions_init'.
34887         * modules/posix_spawn_file_actions_init: New file.
34888         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34889         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34890         new module.
34891
34892         New module 'posix_spawn-internal'.
34893         * modules/posix_spawn-internal: New file.
34894         * lib/spawn_int.h: New file, from GNU libc with modifications.
34895         * lib/spawni.c: New file, from GNU libc with modifications.
34896         * m4/posix_spawn.m4: New file.
34897
34898         New module 'spawn'.
34899         * modules/spawn: New file.
34900         * lib/spawn.in.h: New file, from GNU libc with modifications.
34901         * m4/spawn_h.m4: New file.
34902         * doc/posix-headers/spawn.texi: Mention the new module.
34903
34904 2008-09-28  Bruno Haible  <bruno@clisp.org>
34905
34906         * modules/sched-tests: New file.
34907         * tests/test-sched.c: New file.
34908
34909         New module 'sched'.
34910         * modules/sched: New file.
34911         * lib/sched.in.h: New file.
34912         * m4/sched_h.m4: New file.
34913         * doc/posix-headers/sched.texi: Mention the new module.
34914
34915 2008-09-27  Eric Blake  <ebb9@byu.net>
34916
34917         Fix previous patch, and tweak references to $0.
34918         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34919         (func_version, func_gnulib_dir): Don't call this program
34920         gnulib-tool.
34921         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34922         with using $0 in function.
34923         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34924         (func_fatal_error): Reuse the name the user invoked us with.
34925
34926 2008-09-27  Bruno Haible  <bruno@clisp.org>
34927
34928         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34929         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34930         (gl_ICONV_H): Not here.
34931         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34932         instead of assigning ICONV_H directly.
34933
34934         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34936         WCHAR_H directly.
34937
34938 2008-09-27  Bruno Haible  <bruno@clisp.org>
34939
34940         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34941         * modules/arpa_inet (Depends-on): Add link-warning.
34942         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34943         * modules/unistd (Makefile.am): Likewise.
34944
34945 2008-09-26  Bruno Haible  <bruno@clisp.org>
34946
34947         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34948         variables.
34949         (func_version): Essentially copied from gnulib-tool.
34950         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34951         func_readlink): Copied from gnulib-tool.
34952
34953 2008-09-26  Bruno Haible  <bruno@clisp.org>
34954
34955         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34956         invoking git-version-gen.
34957
34958 2008-09-26  Bruno Haible  <bruno@clisp.org>
34959
34960         * posix-modules: Update to directory names changed on 2008-01-19.
34961         Remove commas in output before splitting into words. No more need to
34962         avoid 'ftruncate' since 2007-02-19.
34963
34964 2008-09-26  Bruno Haible  <bruno@clisp.org>
34965
34966         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34967
34968 2008-09-26  Bruno Haible  <bruno@clisp.org>
34969
34970         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34971         * modules/fwriteerror (Depends-on): Add errno.
34972
34973 2008-09-26  Bruno Haible  <bruno@clisp.org>
34974
34975         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34976         * tests/test-vc-list-files-cvs.sh: Likewise.
34977
34978 2008-09-26  Bruno Haible  <bruno@clisp.org>
34979
34980         * doc/posix-headers/sys_resource.texi: Reorder items.
34981
34982 2008-09-26  Jim Meyering  <meyering@redhat.com>
34983
34984         fts: tweak inode comparison function
34985         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34986         inode numbers, as documented.
34987
34988         fts: sort dirent entries on inode number before traversing
34989         This avoids a quadratic, seek-related performance penalty when
34990         operating on a directory containing many entries (measurable at 10k;
34991         3.5 hours at 2 million entries with a cold cache) on certain types
34992         of file systems, including ext3 and ext4, but not tmpfs.
34993         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34994         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34995         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34996         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34997         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34998         (fts_build): Set the stat.st_ino member from D_INO.
34999         If it is likely to be useful, sort dirent entries on inode number.
35000
35001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35002         and the struct statfs.f_type member.
35003         * modules/fts (Depends-on): Add d-ino.
35004
35005 2008-09-26  Bruno Haible  <bruno@clisp.org>
35006
35007         * modules/sigpipe-die (Depends-on): Add sigpipe.
35008
35009         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35010         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35011         and GNULIB_STDIO_H_SIGPIPE are set.
35012         * lib/stdio-write.c: New file.
35013         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35014         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35015         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35016         REPLACE_STDIO_WRITE_FUNCS.
35017         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35018         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35019         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35020         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35021         * modules/stdio (Files): Add lib/stdio-write.c.
35022         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35023         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35024         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35025         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35026         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35027         REPLACE_FPRINTF_POSIX.
35028         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35029         REPLACE_PRINTF_POSIX.
35030         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35031         REPLACE_VFPRINTF_POSIX.
35032         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35033         REPLACE_VPRINTF_POSIX.
35034         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35035         SIGPIPE issue.
35036         * doc/posix-functions/fputc.texi: Likewise.
35037         * doc/posix-functions/fputs.texi: Likewise.
35038         * doc/posix-functions/fwrite.texi: Likewise.
35039         * doc/posix-functions/printf.texi: Likewise.
35040         * doc/posix-functions/putc.texi: Likewise.
35041         * doc/posix-functions/putchar.texi: Likewise.
35042         * doc/posix-functions/puts.texi: Likewise.
35043         * doc/posix-functions/vfprintf.texi: Likewise.
35044         * doc/posix-functions/vprintf.texi: Likewise.
35045
35046         * modules/safe-write (Depends-on): Add write.
35047
35048         * modules/sigpipe-tests: New file.
35049         * tests/test-sigpipe.c: New file.
35050         * tests/test-sigpipe.sh: New file.
35051
35052         * modules/write: New file.
35053         * lib/unistd.in.h: Include <sys/types.h>.
35054         (write): New declaration.
35055         * lib/write.c: New file.
35056         * m4/write.m4: New file.
35057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35058         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35059         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35060         GNULIB_WRITE, REPLACE_WRITE.
35061         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35062         and the SIGPIPE issue.
35063
35064         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35065         (raise): New declaration.
35066         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35067         (ext_signal): New function.
35068         (rpl_raise): New function.
35069         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35070         GNULIB_SIGNAL_H_SIGPIPE.
35071         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35072         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35073
35074         * modules/sigpipe: New file.
35075         * m4/sigpipe.m4: New file.
35076
35077 2008-09-25  Derek Price  <derek@ximbiot.com>
35078             Bruno Haible  <bruno@clisp.org>
35079
35080         * gnulib-tool (func_import): Report all license incompatibilities, not
35081         just the first one.
35082
35083 2008-09-25  Bruno Haible  <bruno@clisp.org>
35084
35085         * gnulib-tool (func_import): When computing the edits, consider not
35086         only the Makefile.ams that exist but also those that will be generated.
35087
35088 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35089
35090         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35091         fixes gnulib-tool --test warning about duplicate dependency.
35092
35093 2008-09-25  Bruno Haible  <bruno@clisp.org>
35094
35095         * gnulib-tool: Don't ask the user to perform edits in the generated
35096         Makefile.ams.
35097         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35098         apply to the Makefile.am being generated.
35099         (func_emit_tests_Makefile_am): Execute edits that apply to the
35100         Makefile.am being generated.
35101         (func_import): Setup list of Makefile.am edits before emitting the
35102         Makefile.ams, not at the end.
35103         (func_create_testdir): Update.
35104         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35105
35106 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35107
35108         * gnulib-tool (func_import): Store the --tests-base option in the
35109         comment in gnulib-cache.m4.
35110
35111 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35112
35113         * NEWS: Document increased portability that sys_select now provides.
35114
35115         * lib/sys_select.in.h: Install select wrapper.
35116         * lib/sys_socket.in.h: Use more descriptive name when there is no
35117         select wrapper.
35118         * lib/winsock-select.c: New.
35119         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35120         Require gl_HEADER_SYS_SOCKET.
35121         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35122         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35123         * tests/test-sys_select.c: Add functional tests.
35124
35125 2008-09-24  Eric Blake  <ebb9@byu.net>
35126
35127         open, fopen: close fd leak in last patch
35128         * lib/open.c (rpl_open): Close fd before returning error.
35129         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35130         * doc/posix-functions/open.texi (open): Document that Irix also
35131         has the bug.
35132         * doc/posix-functions/fopen.texi (fopen): Likewise.
35133         Reported by Paolo Bonzini.
35134
35135 2008-09-24  Bruno Haible  <bruno@clisp.org>
35136
35137         Ensure that a filename ending in a slash cannot be used to access a
35138         non-directory.
35139         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35140         to check whether it's really a directory.
35141         * lib/fopen.c: Include fcntl.h, unistd.h.
35142         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35143         and fdopen().
35144         * modules/fopen (Depends-on): Add unistd.
35145         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35146         * tests/test-fopen.c (main): Likewise.
35147         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35148         * doc/posix-functions/fopen.texi: Likewise.
35149         Reported by Eric Blake.
35150
35151 2008-09-23  Eric Blake  <ebb9@byu.net>
35152
35153         c-stack: avoid compiler optimizations when provoking overflow
35154         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35155         recursion harder to optimize, to ensure a stack overflow occurs.
35156         * tests/test-c-stack.c (recurse): Likewise.
35157         Borrowed from libsigsegv.
35158
35159         c-stack: work around Irix sigaltstack bug
35160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35161         whether sigaltstack uses wrong end of stack_t (copied in part from
35162         libsigsegv).
35163         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35164         Irix bug, without requiring an over-allocation.
35165         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35166         bug.
35167
35168         fopen: document mingw bug on directories
35169         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35170         not allowing a stream visiting a directory, even though reading
35171         from such a stream is not portable.
35172
35173 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35174
35175         * lib/poll.c: Rewrite.
35176         * modules/poll: Depend on alloca.
35177
35178 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35179
35180         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35181         instead define prototypes for a full set of wrappers.  Ensure
35182         that Cygwin does not use the compatibility code, which is only
35183         for MinGW.
35184         * lib/winsock.c: New.
35185         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35186         * modules/sys_socket: Add lib/winsock.c.
35187
35188         * modules/poll-tests: Add errno and perror.
35189         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35190
35191 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35192
35193         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35194
35195 2008-09-23  Bruno Haible  <bruno@clisp.org>
35196
35197         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35198         * doc/glibc-functions/*: Likewise.
35199
35200 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35201
35202         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35203         success.
35204
35205 2008-09-22  Eric Blake  <ebb9@byu.net>
35206             Bruno Haible  <bruno@clisp.org>
35207
35208         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35209         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35210         supply %A but mishandle pseudo-NaN.
35211         Reported by Simon Josefsson.
35212
35213 2008-09-21  Bruno Haible  <bruno@clisp.org>
35214
35215         * tests/test-lock.c (main): Tweak skip message.
35216         * tests/test-tls.c (main): Likewise.
35217
35218 2008-09-21  Bruno Haible  <bruno@clisp.org>
35219
35220         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35221         whether 'struct sigaction' has sa_sigaction here...
35222         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35223         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35224
35225 2008-09-21  Bruno Haible  <bruno@clisp.org>
35226
35227         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35228         section.
35229         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35230         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35231         the new section.
35232         (Support for obsolete systems lacking POSIX:2001): New section.
35233         (String handling <string.h>): Move strdup to the new section.
35234         Suggested by Simon Josefsson and Paolo Bonzini.
35235
35236 2008-09-21  Bruno Haible  <bruno@clisp.org>
35237
35238         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35239         exponents in %e and %g results on 'long double'. Needed for mingw's
35240         improved *printf functions.
35241         * tests/test-vasprintf-posix.c (test_function): Likewise.
35242         * tests/test-snprintf-posix.h (test_function): Likewise.
35243         * tests/test-sprintf-posix.h (test_function): Likewise.
35244         Reported by Eric Blake.
35245
35246 2008-09-21  Bruno Haible  <bruno@clisp.org>
35247
35248         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35249         * tests/test-sprintf-posix.h (test_function): Likewise.
35250
35251 2008-09-21  Bruno Haible  <bruno@clisp.org>
35252
35253         * modules/getpass (Depends-on): Add strdup-posix.
35254
35255         New module 'strdup-posix'.
35256         * modules/strdup-posix: New file.
35257         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35258         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35260         REPLACE_STRDUP.
35261         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35262         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35264         strdup-posix.
35265
35266         * modules/strdup (Depends-on): Remove malloc-posix.
35267
35268 2008-09-20  Bruno Haible  <bruno@clisp.org>
35269
35270         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35271         Wildenhues.
35272
35273 2008-09-20  Bruno Haible  <bruno@clisp.org>
35274
35275         Ensure that wint_t gets defined on IRIX 5.3.
35276         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35277         * lib/wctype.in.h (wint_t): Likewise.
35278         (__wctype_wint_t): Remove type.
35279         (isw*): Use wint_t instead of __wctype_wint_t.
35280         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35281         * modules/wchar (Files): Add m4/wint_t.m4.
35282         (Makefile.am): Substitute HAVE_WINT_T.
35283         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35284         * tests/test-wctype.c: Check that wint_t is defined.
35285         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35286         * doc/posix-headers/wctype.texi: Likewise.
35287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35288
35289 2008-09-18  Bruno Haible  <bruno@clisp.org>
35290
35291         * gnulib-tool (func_exit): Update comment.
35292
35293 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35294
35295         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35296         assumes strdup exists and does not depend on strdup to return
35297         ENOMEM on out of memory conditions.
35298
35299 2008-09-18  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35302         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35303         digits for the exponent.
35304
35305 2008-09-18  Jim Meyering  <meyering@redhat.com>
35306             Bruno Haible  <bruno@clisp.org>
35307
35308         * lib/vasnprintf.c (decimal_point_char): Define also if
35309         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35310
35311 2008-09-16  Bruno Haible  <bruno@clisp.org>
35312         and Eric Blake  <ebb9@byu.net>
35313
35314         vasnprintf: support Irix 5.3
35315         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35316         that mishandle long double infinity.
35317         Reported by Tom G. Christensen.
35318
35319 2008-09-16  Bruno Haible  <bruno@clisp.org>
35320
35321         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35322         Solaris 9.
35323         * doc/glibc-functions/alphasort.texi: Likewise.
35324         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35325
35326 2008-09-16  Jim Meyering  <meyering@redhat.com>
35327
35328         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35329         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35330         a umask modification leak out of a subshell.  Otherwise, the
35331         opensolaris /bin/sh would be accepted and thus cause unwarranted
35332         failures in the coreutils test suite.
35333
35334 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35335
35336         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35337         to succeed.
35338
35339 2008-09-16  Jim Meyering  <meyering@redhat.com>
35340
35341         avoid spurious test failure when library is built without ACL support
35342         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35343         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35344         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35345         * tests/test-copy-acl.sh: Likewise.
35346
35347 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35348
35349         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35350         based on character occurrence counts.
35351
35352 2008-09-15  Eric Blake  <ebb9@byu.net>
35353
35354         tests: avoid some compiler warnings
35355         * tests/test-memchr.c (main): Pass NULL indirectly.
35356         * tests/test-closein.c (main): Avoid unused variable.
35357
35358 2008-09-15  Bruno Haible  <bruno@clisp.org>
35359
35360         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35361         are missing on OpenBSD 4.0 individually.
35362         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35363
35364 2008-09-15  Bruno Haible  <bruno@clisp.org>
35365
35366         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35367         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35368         * doc/posix-functions/perror.texi: Likewise.
35369         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35370         is missing.
35371         Reported by Eric Blake.
35372
35373         * lib/errno.in.h: Use replacement values >= 2000.
35374         Reported by Eric Blake.
35375
35376 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35377
35378         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35379         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35380         limit.
35381         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35382         compareseq was aborted.
35383
35384 2008-09-14  Bruno Haible  <bruno@clisp.org>
35385
35386         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35387         yvec_edit_count.
35388         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35389         (fstrcmp_bounded): Simplify result computation accordingly.
35390
35391 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35392
35393         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35394         (fstrcmp): Define in terms of fstrcmp_bounded.
35395         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35396         lower_bound argument.
35397         Return quickly if the result is certainly < lower_bound.
35398         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35399
35400 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35401
35402         * lib/diffseq.h (EARLY_ABORT): New macro.
35403         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35404         evaluates to true.
35405
35406 2008-09-14  Bruno Haible  <bruno@clisp.org>
35407
35408         * modules/perror-tests: New file.
35409         * tests/test-perror.sh: New file.
35410         * tests/test-perror.c: New file.
35411
35412         New module 'perror'.
35413         * lib/stdio.in.h (perror): New declaration.
35414         * lib/perror.c: New file.
35415         * m4/perror.m4: New file.
35416         * modules/perror: New file.
35417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35418         * doc/posix-functions/perror.texi: Mention the perror module.
35419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35420         REPLACE_PERROR.
35421         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35422         REPLACE_PERROR.
35423
35424 2008-09-14  Bruno Haible  <bruno@clisp.org>
35425
35426         * modules/stdio (Makefile.am): Reorder to match the order in
35427         lib/stdio.in.h.
35428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35429
35430 2008-09-13  Bruno Haible  <bruno@clisp.org>
35431
35432         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35433
35434 2008-09-13  Bruno Haible  <bruno@clisp.org>
35435
35436         Extend strerror to cover the added errno values.
35437         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35438         (rpl_strerror): Provide error messages for the added errno values and
35439         for the WSA* values.
35440         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35441         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35442         strerror.
35443         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35444         * modules/strerror (Depends-on): Add errno.
35445         * doc/posix-functions/strerror.texi: Document the change.
35446         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35447         and EOVERFLOW.
35448
35449 2008-09-13  Bruno Haible  <bruno@clisp.org>
35450
35451         * modules/EOVERFLOW: Remove file.
35452         * m4/eoverflow.m4: Remove file.
35453         * modules/EOVERFLOW-tests: Remove file.
35454         * tests/test-EOVERFLOW.c: Remove file.
35455         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35456         * modules/ftell (Depends-on): Likewise.
35457         * modules/getdelim (Depends-on): Likewise.
35458         * modules/getugroups (Depends-on): Likewise.
35459         * modules/poll (Depends-on): Likewise.
35460         * modules/snprintf (Depends-on): Likewise.
35461         * modules/sprintf-posix (Depends-on): Likewise.
35462         * modules/vasnprintf (Depends-on): Likewise.
35463         * modules/vasprintf (Depends-on): Likewise.
35464         * modules/vfprintf-posix (Depends-on): Likewise.
35465         * modules/vsnprintf (Depends-on): Likewise.
35466         * modules/vsprintf-posix (Depends-on): Likewise.
35467         * modules/xvasprintf (Depends-on): Likewise.
35468         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35469         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35470         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35471         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35472         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35473         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35474         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35475         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35477         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35478         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35479         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35480         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35481         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35482         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35483         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35484         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35485         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35486         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35487         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35488         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35489         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35490         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35491         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35492         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35494         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35495         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35496         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35497         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35498         * MODULES.html.sh: Remove EOVERFLOW.
35499         * NEWS: Mention the change.
35500
35501 2008-09-13  Bruno Haible  <bruno@clisp.org>
35502
35503         * modules/errno-tests: New file.
35504         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35505
35506         * lib/errno.in.h: New file.
35507         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35508         * modules/errno: New file.
35509         * doc/posix-headers/errno.texi: Update documentation.
35510         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35511
35512 2008-09-13  Bruno Haible  <bruno@clisp.org>
35513
35514         * tests/test-poll.c: Use #if for native Windows, rather than testing
35515         __MSVCRT__.
35516
35517 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35518             Bruno Haible  <bruno@clisp.org>
35519
35520         * lib/glob.c: Don't include <pwd.h> on native Windows.
35521         (WINDOWS32): New macro.
35522         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35523
35524 2008-09-13  Bruno Haible  <bruno@clisp.org>
35525
35526         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35527         (ETIMEDOUT): Remove macro.
35528         (glthread_cond_timedwait_multithreaded): New declaration.
35529         (glthread_cond_timedwait): Use it.
35530         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35531         (glthread_cond_timedwait_multithreaded): New function.
35532
35533 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35534
35535         * modules/poll-tests: Do not check for io.h.
35536         * tests/test-poll.c: Check for __MSVCRT__ instead.
35537
35538 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35539
35540         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35541         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35542         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35543
35544 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35545
35546         * modules/poll-tests: New.
35547         * tests/test-poll.c: New.
35548
35549 2008-09-12  Eric Blake  <ebb9@byu.net>
35550
35551         frexp: test for NetBSD failure on -0.0
35552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35553         not all, bugs from NetBSD 3.0 have been fixed.
35554         * doc/posix-functions/frexp.texi (frexp): Document bug.
35555         Reported by Thomas Klausner.
35556
35557         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35558         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35559         literal -0.0.
35560         Reported by Jonathan C. Patschke <jp@centtech.com>.
35561
35562 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35563
35564         * lib/glthread/cond.h: Use dummy implementation also if
35565         USE_WIN32_THREADS.
35566
35567 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35568
35569         * modules/fnmatch-posix (License): Change to LGPLv2+.
35570         * modules/fnmatch-gnu (License): Likewise.
35571
35572 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35573
35574         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35575
35576 2008-09-11  Jim Meyering  <meyering@redhat.com>
35577
35578         * users.txt: Add gtk-vnc.
35579
35580 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35581
35582         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35583         rotate amounts.
35584
35585         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35586         required for 16-bit and 8-bit rotates.
35587         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35588         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35589         UINT8_MAX instead of hard-coded constants.
35590         Suggested by Paul Eggert.
35591
35592 2008-09-07  Bruno Haible  <bruno@clisp.org>
35593
35594         * tests/test-striconveh.c (main): Check behaviour when converting from
35595         UTF-7.
35596
35597         Make striconveh work better with stateful encodings.
35598         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35599         that iconv does not increment the inptr when returning -1/EINVAL.
35600
35601 2008-09-07  Bruno Haible  <bruno@clisp.org>
35602
35603         * build-aux/config.rpath: Update according to libtool-2.2.6.
35604         * build-aux/config.libpath: Likewise.
35605
35606 2008-09-06  Bruno Haible  <bruno@clisp.org>
35607
35608         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35609         * lib/freadptr.c (freadptr): Likewise.
35610         * lib/freadseek.c (freadptrinc): Likewise.
35611         Reported by Simon Josefsson.
35612
35613 2008-09-06  Bruno Haible  <bruno@clisp.org>
35614
35615         * modules/freadptr (License): Change to LGPLv2+.
35616         * modules/freadseek (License): Likewise.
35617         Suggested by Eric Blake.
35618
35619         * modules/memchr2 (License): Change to LGPLv2+.
35620         Approved by Eric Blake.
35621
35622 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35623             Bruno Haible  <bruno@clisp.org>
35624
35625         Make gnulib-tool work with native 'sed' on AIX.
35626         * gnulib-tool (sed_noop): New variable.
35627         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35628         func_add_or_update, func_create_testdir): Use it to initialize sed
35629         script variables.
35630         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35631
35632 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35633             Bruno Haible  <bruno@clisp.org>
35634
35635         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35636         also works after #include directives.
35637
35638 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35639
35640         getdate.y: reject an out-of-range timezone value
35641         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35642         the range [-24...+24].  When specified with only one or two digits,
35643         * tests/test-getdate.c: Tests for the fix.
35644         * doc/getdate.texi: Document this change.
35645
35646 2008-09-03  Bruno Haible  <bruno@clisp.org>
35647
35648         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35649
35650 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35651
35652         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35653         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35654         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35655         Blake <ebb9@byu.net>.
35656
35657         * tests/test-bitrotate.c: Add more test vectors.
35658
35659 2008-09-02  Eric Blake  <ebb9@byu.net>
35660
35661         vasnprintf-posix: handle large precision via %.*d
35662         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35663         when handling it ourselves.
35664         * tests/test-vasnprintf-posix.c (test_function): Add test.
35665         * tests/test-snprintf-posix.h (test_function): Likewise.
35666         * tests/test-sprintf-posix.h (test_function): Likewise.
35667         * tests/test-vasprintf-posix.c (test_function): Likewise.
35668         Reported by Alain Guibert.
35669
35670 2008-09-01  Eric Blake  <ebb9@byu.net>
35671
35672         c-stack: make configure-time check more robust
35673         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35674         successful sigaction call.
35675         Reported by Tom G. Christensen.
35676
35677 2008-09-01  Bruno Haible  <bruno@clisp.org>
35678
35679         New module 'findprog-lgpl'.
35680         * modules/findprog-lgpl: New file.
35681         * lib/findprog-lgpl.c: New file.
35682         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35683         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35684         to decide whether to use strdup or xstrdup, concatenated_filename or
35685         xconcatenated_filename.
35686
35687 2008-09-01  Bruno Haible  <bruno@clisp.org>
35688
35689         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35690         'xconcat-filename' (GPL).
35691         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35692         (License): Change to LGPLv2+.
35693         * modules/xconcat-filename: New file.
35694         * lib/concat-filename.h (concatenated_filename): Change specification.
35695         (xconcatenated_filename): New declaration.
35696         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35697         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35698         memory situations.
35699         * lib/xconcat-filename.c: New file.
35700         * NEWS: Mention the change.
35701         * lib/findprog.c: Include concat-filename.h, not filename.h.
35702         (find_in_path): Use xconcatenated_filename instead of
35703         concatenated_filename.
35704         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35705         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35706         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35707         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35708         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35709         instead of concatenated_filename.
35710         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35711         (execute_java_class): Use xconcatenated_filename instead of
35712         concatenated_filename.
35713         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35714         * modules/javacomp (Depends-on): Likewise.
35715         * modules/javaexec (Depends-on): Likewise.
35716
35717 2008-09-01  Bruno Haible  <bruno@clisp.org>
35718
35719         Split module 'filename' into 'filename' and 'concat-filename'.
35720         * modules/filename: Keep only lib/filename.h.
35721         (License): Change to LGPLv2+.
35722         * modules/concat-filename: New file, extracted from modules/filename.
35723         * lib/filename.h (concatenated_filename): Remove declaration.
35724         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35725         * lib/concat-filename.c: Include concat-filename.h.
35726         * NEWS: Mention the change.
35727
35728 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35729
35730         * lib/bitrotate.h (rotl8, rotr8): Add.
35731
35732         * modules/bitrotate (configure.ac): Need
35733         AC_REQUIRE([AC_C_INLINE]).
35734         (Description): Mention stdint.h.  Reported by Bruno Haible
35735         <bruno@clisp.org>.
35736
35737         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35738         Paolo Bonzini <bonzini@gnu.org>.
35739
35740 2008-08-31  Bruno Haible  <bruno@clisp.org>
35741
35742         Assume Solaris specific bi-arch conventions on Solaris systems.
35743         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35744         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35745         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35746         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35747         like acl_libdirstem.
35748         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35749         acl_libdirstem.
35750         * NEWS: Mention the change.
35751         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35752
35753 2008-08-31  Jim Meyering  <meyering@redhat.com>
35754
35755         * lib/strftime.h: Add comments describing the two added arguments.
35756
35757         remove duplicate #include directives
35758         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35759         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35760
35761 2008-08-31  Bruno Haible  <bruno@clisp.org>
35762
35763         New module 'sigpipe-die'.
35764         * modules/sigpipe-die: New file.
35765         * lib/sigpipe-die.h: New file.
35766         * lib/sigpipe-die.c: New file.
35767         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35768
35769 2008-08-31  Bruno Haible  <bruno@clisp.org>
35770
35771         Don't override previously installed signal handlers.
35772         * lib/fatal-signal.c (saved_sigactions): New variable.
35773         (uninstall_handlers): Reset the signal to the saved handler, not
35774         to SIG_DFL (except when ignored).
35775         (install_handlers): Save the previous handlers.
35776
35777 2008-08-30  Bruno Haible  <bruno@clisp.org>
35778
35779         * gnulib-tool (func_reset_sigpipe): New function.
35780         (func_get_automake_snippet, func_modules_transitive_closure,
35781         func_import): Invoke it before a join command that reads from stdin,
35782         to avoid "echo: write error: Broken pipe" error messages on stderr.
35783         Reported by Sam Steingold <sds@gnu.org>.
35784
35785 2008-08-30  Bruno Haible  <bruno@clisp.org>
35786
35787         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35788         Code copied from m4/open.m4.
35789         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35790         access and the filename ends in a slash. Code copied from lib/open.c.
35791         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35792         * tests/test-fopen.c (main): Check against bug with trailing slash.
35793
35794 2008-08-29  Bruno Haible  <bruno@clisp.org>
35795
35796         Avoid some "gcc -pedantic" warnings.
35797         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35798         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35799         * lib/dirent.in.h: Likewise.
35800         * lib/fcntl.in.h: Likewise.
35801         * lib/float.in.h: Likewise.
35802         * lib/iconv.in.h: Likewise.
35803         * lib/inttypes.in.h: Likewise.
35804         * lib/locale.in.h: Likewise.
35805         * lib/math.in.h: Likewise.
35806         * lib/netinet_in.in.h: Likewise.
35807         * lib/search.in.h: Likewise.
35808         * lib/signal.in.h: Likewise.
35809         * lib/stdarg.in.h: Likewise.
35810         * lib/stdint.in.h: Likewise.
35811         * lib/stdio.in.h: Likewise.
35812         * lib/stdlib.in.h: Likewise.
35813         * lib/string.in.h: Likewise.
35814         * lib/strings.in.h: Likewise.
35815         * lib/sys_select.in.h: Likewise.
35816         * lib/sys_socket.in.h: Likewise.
35817         * lib/sys_stat.in.h: Likewise.
35818         * lib/sys_time.in.h: Likewise.
35819         * lib/sysexits.in.h: Likewise.
35820         * lib/time.in.h: Likewise.
35821         * lib/unistd.in.h: Likewise.
35822         * lib/wchar.in.h: Likewise.
35823         * lib/wctype.in.h: Likewise.
35824         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35825         * modules/fchdir (Makefile.am): Likewise.
35826         * modules/fcntl (Makefile.am): Likewise.
35827         * modules/float (Makefile.am): Likewise.
35828         * modules/iconv_open (Makefile.am): Likewise.
35829         * modules/inttypes (Makefile.am): Likewise.
35830         * modules/locale (Makefile.am): Likewise.
35831         * modules/math (Makefile.am): Likewise.
35832         * modules/netinet_in (Makefile.am): Likewise.
35833         * modules/search (Makefile.am): Likewise.
35834         * modules/signal (Makefile.am): Likewise.
35835         * modules/stdarg (Makefile.am): Likewise.
35836         * modules/stdint (Makefile.am): Likewise.
35837         * modules/stdio (Makefile.am): Likewise.
35838         * modules/stdlib (Makefile.am): Likewise.
35839         * modules/string (Makefile.am): Likewise.
35840         * modules/strings (Makefile.am): Likewise.
35841         * modules/sys_select (Makefile.am): Likewise.
35842         * modules/sys_socket (Makefile.am): Likewise.
35843         * modules/sys_stat (Makefile.am): Likewise.
35844         * modules/sys_time (Makefile.am): Likewise.
35845         * modules/sysexits (Makefile.am): Likewise.
35846         * modules/time (Makefile.am): Likewise.
35847         * modules/unistd (Makefile.am): Likewise.
35848         * modules/wchar (Makefile.am): Likewise.
35849         * modules/wctype (Makefile.am): Likewise.
35850         Reported by Reuben Thomas <rrt@sc3d.org>.
35851
35852 2008-08-29  Bruno Haible  <bruno@clisp.org>
35853
35854         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35855         any more.
35856
35857 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35858
35859         * MODULES.html.sh (Misc): Add bitrotate.
35860
35861         * modules/bitrotate: New file.
35862
35863         * lib/bitrotate.h: New file.
35864
35865         * modules/bitrotate-tests: New file.
35866
35867         * tests/test-bitrotate.c: New file.
35868
35869         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35870         on the bitrotate module.
35871
35872         * lib/arctwo.c: Use new bitrotate module.
35873
35874 2008-08-29  Jim Meyering  <meyering@redhat.com>
35875
35876         bootstrap: merge changes from coreutils
35877         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35878         of copied files.  Remove a kludge, now that this is fixed.
35879         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35880         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35881         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35882
35883 2008-08-29  Bruno Haible  <bruno@clisp.org>
35884
35885         * MODULES.html.sh: Remove --cvs-urls option.
35886
35887 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35888
35889         maint.mk: adjust to file name change
35890         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35891
35892 2008-08-28  Jim Meyering  <meyering@redhat.com>
35893
35894         * modules/getndelim2 (License): Relicense to LGPLv2+.
35895         Approved by Richard Stallman for the version of 1995, and by
35896         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35897
35898 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35899
35900         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35901         dummy if one is not available.  Do not touch them if
35902         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35903         (getc_maybe_unlocked): New.
35904         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35905
35906 2008-08-26  Eric Blake  <ebb9@byu.net>
35907
35908         doc/INSTALL: resync from autoconf
35909         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35910         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35911         moving...
35912         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35913         * INSTALL: Regenerate.
35914         * INSTALL.ISO: New file.
35915         * INSTALL.UTF-8: Likewise.
35916
35917 2008-08-26  Jim Meyering  <meyering@redhat.com>
35918
35919         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35920         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35921         these definitions conditional, so that they may be overridden, too.
35922
35923 2008-08-26  Bruno Haible  <bruno@clisp.org>
35924
35925         Generate INSTALL file variants with prettier quotes.
35926         * doc/Makefile (INSTALL_PRELUDE): New macro.
35927         (INSTALL): Use it.
35928         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35929
35930 2008-08-26  Bruno Haible  <bruno@clisp.org>
35931
35932         Run makeinfo in an English locale.
35933         * doc/Makefile (MAKEINFO): New variable.
35934
35935 2008-08-26  Bruno Haible  <bruno@clisp.org>
35936
35937         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35938         Suggested by Eric Blake.
35939
35940 2008-08-25  Bruno Haible  <bruno@clisp.org>
35941
35942         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35943
35944 2008-08-25  Eric Blake  <ebb9@byu.net>
35945
35946         c-stack: test that stack overflow can be caught
35947         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35948         that platform allows handling stack overflow; at least OS/2 EMX
35949         has sigaltstack, but crashes before transferring control to
35950         handler on stack overflow.
35951         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35952         check for HAVE_STACK_OVERFLOW_HANDLING.
35953         Reported by Elbert Pol.
35954
35955 2008-08-25  Bruno Haible  <bruno@clisp.org>
35956
35957         * doc/posix-functions/strftime.texi: Fix description of strftime
35958         module.
35959
35960 2008-08-24  Bruno Haible  <bruno@clisp.org>
35961
35962         * tests/uniwidth/test-uc_width2.c: New file.
35963         * tests/uniwidth/test-uc_width2.sh: New file.
35964         * modules/uniwidth/width-tests (Files): Add the new files.
35965         (TESTS): Add uniwidth/test-uc_width2.sh.
35966         (TESTS_ENVIRONMENT): New variable.
35967         (check_PROGRAMS): Add test-uc_width2.
35968         (test_uc_width2_SOURCES): New variable.
35969
35970         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35971         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35972         not 0x00AB.
35973         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35974
35975 2008-08-22  Eric Blake  <ebb9@byu.net>
35976
35977         test-lock, test-tls: mention why a test is skipped
35978         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35979         skipped.
35980         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35981
35982         count-one-bits: relax license
35983         * modules/count-one-bits (License): Relicense to LGPLv2+.
35984         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35985
35986 2008-08-22  Andreas Schwab  <schwab@suse.de>
35987
35988         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35989         Remove spurious space in assignment.
35990
35991 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35992
35993         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35994         Paul Eggert <eggert@CS.UCLA.EDU>.
35995
35996 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35997
35998         * modules/gettext: Add m4/threadlib.m4.
35999
36000 2008-08-19  Eric Blake  <ebb9@byu.net>
36001
36002         test-c-stack: fix compilation failure on FreeBSD 5.0
36003         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36004         headers before <sys/resource.h>.
36005         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36006         the bug.
36007         Reported by Nelson H. F. Beebe.
36008
36009         strverscmp: migrate from "strverscmp.h" to <string.h>
36010         * modules/string (Makefile.am): Add new hooks.
36011         * modules/strverscmp (Files): Remove strverscmp.h.
36012         (Depends-on): Add string.
36013         (configure.ac): Add indicator.
36014         (Include): Mention new header.
36015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36016         defaults.
36017         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36018         results.
36019         * lib/strverscmp.h: Delete.
36020         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36021         * tests/test-strverscmp.c (includes): Adjust client.
36022         * lib/check-version.c (includes): Likewise.
36023         * NEWS: Document the change.
36024
36025         strverscmp: add unit test
36026         * modules/strverscmp-tests: New file.
36027         * tests/test-strverscmp.c: Likewise.
36028
36029 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36030
36031         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36032         regarding Windows crypto stuff, from Mono.
36033
36034 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36035
36036         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36037         if present, for intel RND.  Return error on failures.
36038
36039 2008-08-18  Ben Pfaff  <blp@gnu.org>
36040
36041         gitlog-to-changelog: give better diagnostic for failed pipe-open
36042         * build-aux/gitlog-to-changelog: Improve error message: suggest
36043         that the version of Git may be too old.
36044
36045 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36046
36047         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36048         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36049
36050 2008-08-18  Bruno Haible  <bruno@clisp.org>
36051
36052         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36053         pthread_in_use().
36054
36055 2008-08-18  Bruno Haible  <bruno@clisp.org>
36056
36057         * lib/glthread/threadlib.c: Include <pthread.h>.
36058
36059 2008-08-18  Bruno Haible  <bruno@clisp.org>
36060
36061         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36062         glthread_recursive_lock_* macros.
36063         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36064         Fix syntax error.
36065
36066 2008-08-18  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/glthread/thread.c: Avoid forcing a context switch right after
36069         thread creation.
36070
36071 2008-08-17  Bruno Haible  <bruno@clisp.org>
36072
36073         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36074         * lib/glthread/thread.h: Provide Win32 specific implementation.
36075         * modules/thread (Files): Add lib/glthread/thread.c.
36076         (Depends-on): Add lock.
36077         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36078
36079 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36080
36081         New module 'yield'.
36082         * modules/yield: New file.
36083         * lib/glthread/yield.h: New file.
36084         * m4/yield.m4: New file.
36085         * MODULES.html.sh (Multithreading): Add yield.
36086
36087 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36088
36089         New module 'thread'.
36090         * modules/thread: New file.
36091         * lib/glthread/thread.h: New file.
36092         * m4/thread.m4: New file.
36093         * MODULES.html.sh (Multithreading): Add thread.
36094
36095 2008-08-17  Bruno Haible  <bruno@clisp.org>
36096
36097         * lib/glthread/lock.h: Include <stdlib.h> always.
36098         * lib/glthread/tls.h: Likewise.
36099         * lib/glthread/cond.h: Likewise.
36100
36101 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36102
36103         New module 'cond'.
36104         * modules/cond: New file.
36105         * lib/glthread/cond.h: New file.
36106         * lib/glthread/cond.c: New file.
36107         * m4/cond.m4: New file.
36108         * MODULES.html.sh (Multithreading): Add cond.
36109
36110 2008-08-16  Eric Blake  <ebb9@byu.net>
36111
36112         c-stack: fix regression on Irix 5.3 from 2008-06-21
36113         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36114         sa_sigaction...
36115         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36116         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36118         * modules/signal (Makefile.am): Use the value.
36119         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36120         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36121         * doc/posix-headers/signal.texi (signal.h): Document this
36122         portability issue.
36123         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36124         Reported by Tom G. Christensen.
36125
36126 2008-08-17  Bruno Haible  <bruno@clisp.org>
36127
36128         New module 'threadlib'.
36129         * modules/threadlib: New file.
36130         * lib/glthread/threadlib.c: New file, extracted from
36131         lib/glthread/lock.c.
36132         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36133         functions.
36134         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36135         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36136         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36137         macros.
36138         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36139         (gl_DISABLE_THREADS): Remove macro.
36140         * modules/lock (Files): Remove build-aux/config.rpath.
36141         (Depends-on): Remove havelib. Add threadlib.
36142         (configure.ac-early): Remove section.
36143         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36144         * modules/tls (Depends-on): Remove lock. Add threadlib.
36145         (Link): New section, copied from threadlib.
36146         * MODULES.html.sh (Multithreading): Add threadlib.
36147
36148 2008-08-14  Bruno Haible  <bruno@clisp.org>
36149
36150         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36151         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36152         glthread_rwlock_unlock, glthread_rwlock_destroy,
36153         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36154         glthread_recursive_lock_destroy): Define as macros always.
36155         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36156         glthread_lock_lock.
36157         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36158         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36159         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36160         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36161         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36162         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36163         (glthread_recursive_lock_lock_func): Renamed from
36164         glthread_recursive_lock_lock.
36165         (glthread_recursive_lock_unlock_func): Renamed from
36166         glthread_recursive_lock_unlock.
36167         (glthread_recursive_lock_destroy_func): Renamed from
36168         glthread_recursive_lock_destroy.
36169
36170 2008-08-14  Bruno Haible  <bruno@clisp.org>
36171
36172         * lib/glthread/lock.h: Renamed from lib/lock.h.
36173         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36174         * lib/glthread/tls.h: Renamed from lib/tls.h.
36175         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36176         * lib/fstrcmp.c: Update includes.
36177         * lib/strsignal.c: Update includes.
36178         * modules/lock (Files, Makefile.am): Update.
36179         (Include): Change to "glthread/lock.h".
36180         * modules/tls (Files, Makefile.am): Update.
36181         (Include): Change to "glthread/tls.h".
36182         * tests/test-lock.c: Update includes.
36183         * tests/test-tls.c: Update includes.
36184         * NEWS: Mention the renamed header files.
36185
36186 2008-08-11  Jim Meyering  <meyering@redhat.com>
36187
36188         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36189
36190 2008-08-11  Eric Blake  <ebb9@byu.net>
36191
36192         test-c-stack: avoid C99-ism
36193         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36194         before statement.
36195         Reported by Alain Guibert.
36196
36197 2008-08-10  Jim Meyering  <meyering@redhat.com>
36198
36199         ensure that return value of uinttostr et al are not ignored
36200         * lib/inttostr.h (__GNUC_PREREQ): Define.
36201         (__attribute_warn_unused_result__): Define.
36202         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36203
36204 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36205
36206         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36207         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36208
36209 2008-08-07  Jim Meyering  <meyering@redhat.com>
36210
36211         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36212
36213         * modules/mkstemp (License): Relicense under LGPLv2+.
36214         * modules/tempname (License): Likewise.
36215
36216 2008-08-06  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/poll.c (poll): Further micro-optimization.
36219
36220 2008-08-06  Jim Meyering  <meyering@redhat.com>
36221
36222         inet_pton.c: use locale-independent tolower
36223         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36224         (inet_pton6): Use c_tolower rather than tolower.
36225         * modules/inet_pton (Depends-on): Add c-ctype.
36226
36227 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36228
36229         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36230         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36231
36232 2008-08-06  Jim Meyering  <meyering@redhat.com>
36233
36234         * modules/inet_pton (License): Relicense under LGPLv2+.
36235
36236 2008-08-03  Bruno Haible  <bruno@clisp.org>
36237
36238         Additional non-aborting API for lock and tls.
36239         * lib/lock.h: Include <errno.h>.
36240         (glthread_lock_init): New macro/function.
36241         (gl_lock_init): Define as wrapper around glthread_lock_init.
36242         (glthread_lock_lock): New macro/function.
36243         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36244         (glthread_lock_unlock): New macro/function.
36245         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36246         (glthread_lock_destroy): New macro/function.
36247         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36248         (glthread_rwlock_init): New macro/function.
36249         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36250         (glthread_rwlock_rdlock): New macro/function.
36251         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36252         (glthread_rwlock_wrlock): New macro/function.
36253         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36254         (glthread_rwlock_unlock): New macro/function.
36255         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36256         (glthread_rwlock_destroy): New macro/function.
36257         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36258         (glthread_recursive_lock_init): New macro/function.
36259         (gl_recursive_lock_init): Define as wrapper around
36260         glthread_recursive_lock_init.
36261         (glthread_recursive_lock_lock): New macro/function.
36262         (gl_recursive_lock_lock): Define as wrapper around
36263         glthread_recursive_lock_lock.
36264         (glthread_recursive_lock_unlock): New macro/function.
36265         (gl_recursive_lock_unlock): Define as wrapper around
36266         glthread_recursive_lock_unlock.
36267         (glthread_recursive_lock_destroy): New macro/function.
36268         (gl_recursive_lock_destroy): Define as wrapper around
36269         glthread_recursive_lock_destroy.
36270         (glthread_once): New macro/function.
36271         (gl_once): Define as wrapper around glthread_once.
36272         Update function declarations.
36273         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36274         glthread_rwlock_init. Return error code.
36275         (glthread_rwlock_rdlock_multithreaded): Renamed from
36276         glthread_rwlock_rdlock. Return error code.
36277         (glthread_rwlock_wrlock_multithreaded): Renamed from
36278         glthread_rwlock_wrlock. Return error code.
36279         (glthread_rwlock_unlock_multithreaded): Renamed from
36280         glthread_rwlock_unlock. Return error code.
36281         (glthread_rwlock_destroy_multithreaded): Renamed from
36282         glthread_rwlock_destroy. Return error code.
36283         (glthread_recursive_lock_init_multithreaded): Renamed from
36284         glthread_recursive_lock_init. Return error code.
36285         (glthread_recursive_lock_lock_multithreaded): Renamed from
36286         glthread_recursive_lock_lock. Return error code.
36287         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36288         glthread_recursive_lock_unlock. Return error code.
36289         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36290         glthread_recursive_lock_destroy. Return error code.
36291         (glthread_once_call): Make static.
36292         (glthread_once_multithreaded): Renamed from glthread_once.
36293         * lib/tls.h: Include <errno.h>.
36294         (glthread_tls_key_init): New macro/function.
36295         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36296         (glthread_tls_set): New macro/function.
36297         (gl_tls_set): Define as wrapper around glthread_tls_set.
36298         (glthread_tls_key_destroy): New macro/function.
36299         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36300         Update function declarations.
36301         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36302         glthread_tls_get.
36303         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36304
36305 2008-08-04  Eric Blake  <ebb9@byu.net>
36306
36307         gnumakefile: use space, not TAB, outside of targets
36308         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36309
36310 2008-08-02  Jim Meyering  <meyering@redhat.com>
36311
36312         getdate.y: avoid locale-dependent date parsing failure
36313         In Turkish locales, getdate would fail to recognize keywords
36314         containing a lowercase "i".  The solution is not to rely on
36315         locale-sensitive case-conversion.
36316         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36317         (lookup_word): Use c_toupper in place of toupper.
36318         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36319         Reported by Vefa Bicakci <bicave@superonline.com> in
36320         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36321         * modules/getdate (Depends-on): Add c-ctype.
36322
36323 2008-08-02  Bruno Haible  <bruno@clisp.org>
36324
36325         * gnulib-tool (func_import): When updating or creating a .gitignore
36326         file, prepend each added line with a slash, and ignore leading slashes
36327         from the existing lines.
36328         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36329
36330 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36331
36332         Portability fix for GNU make 3.79.1.
36333         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36334         versions do not understand.
36335
36336 2008-08-01  Bruno Haible  <bruno@clisp.org>
36337
36338         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36339         * tests/test-isnanf.h (zero): New variable.
36340         (main): Avoid literal -0.0f.
36341         * tests/test-isnand.h (zero): New variable.
36342         (main): Avoid literal -0.0.
36343         * tests/test-isnanl.h (zero): New variable.
36344         (main): Avoid literal -0.0L.
36345         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36346         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36347         -0.0, -0.0L.
36348         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36349         (test_signbitd): Avoid literal -0.0.
36350         (test_signbitl): Avoid literal -0.0L.
36351         * tests/test-ceilf1.c (zero): New variable.
36352         (main): Avoid literal -0.0f.
36353         * tests/test-ceill.c (zero): New variable.
36354         (main): Avoid literal -0.0L.
36355         * tests/test-floorf1.c (zero): New variable.
36356         (main): Avoid literal -0.0f.
36357         * tests/test-floorl.c (zero): New variable.
36358         (main): Avoid literal -0.0L.
36359         * tests/test-roundf1.c (zero): New variable.
36360         (main): Avoid literal -0.0f.
36361         * tests/test-round1.c (zero): New variable.
36362         (main): Avoid literal -0.0.
36363         * tests/test-roundl.c (zero): New variable.
36364         (main): Avoid literal -0.0L.
36365         * tests/test-truncf1.c (zero): New variable.
36366         (main): Avoid literal -0.0f.
36367         * tests/test-trunc1.c (zero): New variable.
36368         (main): Avoid literal -0.0.
36369         * tests/test-truncl.c (zero): New variable.
36370         (main): Avoid literal -0.0L.
36371         * tests/test-frexp.c (zero): New variable.
36372         (main): Avoid literal -0.0.
36373         * tests/test-frexpl.c (zero): New variable.
36374         (main): Avoid literal -0.0L.
36375         * tests/test-ldexpl.c (zero): New variable.
36376         (main): Avoid literal -0.0L.
36377         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36378         (zerod, zerol): New variables.
36379         (test_function): Avoid literals -0.0, -0.0L.
36380         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36381         (zerod, zerol): New variables.
36382         (test_function): Avoid literals -0.0, -0.0L.
36383         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36384         (zerod, zerol): New variables.
36385         (test_function): Avoid literals -0.0, -0.0L.
36386         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36387         (zerod, zerol): New variables.
36388         (test_function): Avoid literals -0.0, -0.0L.
36389         * tests/test-strtod.c (zero): New variable.
36390         (main): Avoid literal -0.0.
36391         Reported by Jonathan C. Patschke <jp@centtech.com>.
36392
36393 2008-07-31  Jim Meyering  <meyering@redhat.com>
36394
36395         sha256.h: correct definition of SHA224_DIGEST_SIZE
36396         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36397         Reported by Paulie Pena IV <paulie4@gmail.com>.
36398         Define as 224 / 8, rather than as a literal.
36399         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36400         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36401         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36402
36403 2008-07-31  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36406         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36407         Reported by Jonathan Patschke <jp@centtech.com>.
36408
36409 2008-07-31  Bruno Haible  <bruno@clisp.org>
36410
36411         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36412         Reported by Paolo Bonzini <bonzini@gnu.org>.
36413
36414 2008-07-30  Eric Blake  <ebb9@byu.net>
36415
36416         test-strtod: allow compilation without -lm
36417         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36418         Reported by Dennis Clarke <blastwave@gmail.com>.
36419
36420 2008-07-28  Jim Meyering  <meyering@redhat.com>
36421
36422         bootstrap: work also when there are no .po files in po/
36423         * build-aux/bootstrap (update_po_files): Complete the change
36424         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36425
36426 2008-07-27  Jim Meyering  <meyering@redhat.com>
36427
36428         * users.txt: Add zile.
36429
36430 2008-07-26  Ben Pfaff  <blp@gnu.org>
36431
36432         Add missing dependencies on new m4/exponent[fdl].m4 files.
36433         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36434         * modules/isnand-nolibm: Add m4/exponentd.m4.
36435         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36436         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36437         m4/isnan[fdl].m4, because the macros actually used moved.
36438         Reported by Jim Meyering.
36439
36440 2008-07-14  Ben Pfaff  <blp@gnu.org>
36441
36442         Add isinf module.
36443         * lib/isinf.c: New file.
36444         * lib/math.in.h: Define isinf macro if we have decided to replace
36445         it.
36446         * m4/isinf.m4: New file.
36447         * m4/math_h.m4: Initialize and substitute variables for isinf
36448         module.
36449         * modules/isinf: New file.
36450         * modules/isinf-tests: New file.
36451         * modules/math: Add substitutions for new module.
36452         * tests/test-isinf.c: New file.
36453         * doc/posix-functions/isinf.texi: Mention new module.
36454         * MODULES.html.sh: Mention new module.
36455
36456 2008-07-14  Ben Pfaff  <blp@gnu.org>
36457
36458         Factor out some macros for use by additional modules.
36459         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36460         exponentf.m4.
36461         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36462         exponentd.m4.
36463         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36464         file exponentl.m4.
36465         * m4/exponentf.m4: New file.
36466         * m4/exponentd.m4: New file.
36467         * m4/exponentl.m4: New file.
36468         * modules/isnanf: Use new file m4/exponentf.m4.
36469         * modules/isnand: Use new file m4/exponentd.m4.
36470         * modules/isnanl: Use new file m4/exponentl.m4.
36471
36472 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36473
36474         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36475         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36476         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36477         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36478
36479         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36480         readlink on platforms without PATH_MAX.
36481
36482 2008-07-21  Eric Blake  <ebb9@byu.net>
36483
36484         Warn, not fail, on stale version.
36485         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36486
36487         Don't allow installation with stale devel version number.
36488         * top/GNUmakefile (_is-install-target): New macro.
36489         (_curr-ver): Forbid installation with stale version number.
36490
36491 2008-07-20  Bruno Haible  <bruno@clisp.org>
36492
36493         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36494         TESTS_ENVIRONMENT.
36495         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36496
36497 2008-07-20  Bruno Haible  <bruno@clisp.org>
36498
36499         * lib/c-stack.h (c_stack_action): Add documentation.
36500         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36501
36502 2008-07-20  Bruno Haible  <bruno@clisp.org>
36503
36504         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36505         * modules/readlink (License): Likewise.
36506
36507 2008-07-17  Eric Blake  <ebb9@byu.net>
36508
36509         * modules/c-stack (Link): Fix typo.
36510
36511         Make c-stack use libsigsegv, when available.
36512         * modules/c-stack (Depends-on): Add libsigsegv.
36513         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36514         needed.
36515         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36516         (segv_handler, overflow_handler, c_stack_action)
36517         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36518         implementation when libsigsegv is available, but only when using
36519         the library is necessary.
36520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36521         comment, explaining why XSI check fails on Linux.
36522         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36523         * tests/test-c-stack2.sh: Tweak skip message.
36524         * NEWS: Document new link-time requirements.
36525
36526 2008-07-16  Eric Blake  <ebb9@byu.net>
36527
36528         c-stack: Expose false positives when not using libsigsegv.
36529         * modules/c-stack-tests (Files): Expand test.
36530         * tests/test-c-stack.c (main): Add means to conditionally trigger
36531         non-overflow SIGSEGV.
36532         * tests/test-c-stack2.sh: New file.
36533
36534 2008-07-14  Bruno Haible  <bruno@clisp.org>
36535
36536         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36537         Reported by Eric Blake.
36538
36539 2008-07-14  Sam Steingold  <sds@gnu.org>
36540             Bruno Haible  <bruno@clisp.org>
36541
36542         New module libsigsegv.
36543         * modules/libsigsegv: New file.
36544         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36545         modifications.
36546         * MODULES.html.sh (Signal handling): New section.
36547
36548 2008-07-14  Bruno Haible  <bruno@clisp.org>
36549
36550         * modules/unictype/ctype-* (Description): Add the word "function".
36551         Improves the resulting doc in MODULES.html.
36552
36553 2008-07-12  Ben Pfaff  <blp@gnu.org>
36554
36555         Add longlong module.
36556         * modules/longlong: New file.
36557
36558 2008-07-12  Bruno Haible  <bruno@clisp.org>
36559
36560         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36561         to empty.
36562
36563 2008-07-10  Ben Pfaff  <blp@gnu.org>
36564
36565         Add isnan module.
36566         * doc/posix-functions/isnan.texi: Mention new module.
36567         * lib/math.in.h: Define isnan macro if we have decided to replace
36568         it.
36569         * m4/isnan.m4: New file.
36570         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36571         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36572         also.
36573         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36574         redundancy.
36575         * m4/math_h.m4: Initialize and substitute variables for isnan
36576         module.
36577         * modules/isnan: New file.
36578         * modules/isnan-tests: New file.
36579         * modules/math: Add substitutions for new module.
36580         * tests/test-isnan.c: New file.
36581         * MODULES.html.sh: Mention new module.
36582
36583 2008-07-10  Ben Pfaff  <blp@gnu.org>
36584
36585         Add isnanf module.
36586         * lib/isnanf.m4: New file.
36587         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36588         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36589         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36590         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36591         * modules/isnanf: New file.
36592         * modules/isnanf-tests: New file.
36593         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36594         files.
36595         * tests/test-isnanf-nolibm.c: factored most of its contents into
36596         new file tests/test-isnanf.h.
36597         * tests/test-isnanf.h: New file.
36598         * tests/test-isnanf.c: New file.
36599         * MODULES.html.sh: Mention new module.
36600         * doc/glibc-functions/isnanf.texi: Mention new module.
36601
36602 2008-07-10  Ben Pfaff  <blp@gnu.org>
36603
36604         Add isnand module.
36605         * lib/isnand.h: New file.
36606         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36607         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36608         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36609         functionality also.
36610         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36611         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36612         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36613         * modules/isnand: New file.
36614         * modules/isnand-tests: New file.
36615         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36616         files.
36617         * tests/test-isnand-nolibm.c: factored most of its contents into
36618         new file tests/test-isnand.h.
36619         * tests/test-isnand.h: New file.
36620         * tests/test-isnand.c: New file.
36621         * MODULES.html.sh: Mention new module.
36622
36623 2008-07-10  Ben Pfaff  <blp@gnu.org>
36624
36625         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36626         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36627         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36628         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36629         * modules/isnanf-nolibm: Update references to renamed files.
36630         * modules/isnand-nolibm: Likewise.
36631         * modules/isnanf-nolibm-tests: Likewise.
36632         * modules/isnand-nolibm-tests: Likewise.
36633         * lib/frexp.c: Likewise.
36634         * lib/isfinite.c: Likewise.
36635         * lib/signbitd.c: Likewise.
36636         * lib/signbitf.c: Likewise.
36637         * lib/vasnprintf.c: Likewise.
36638         * tests/test-ceilf1.c: Likewise.
36639         * tests/test-ceilf2.c: Likewise.
36640         * tests/test-floorf1.c: Likewise.
36641         * tests/test-floorf2.c: Likewise.
36642         * tests/test-frexp.c: Likewise.
36643         * tests/test-round1.c: Likewise.
36644         * tests/test-round2.c: Likewise.
36645         * tests/test-roundf1.c: Likewise.
36646         * tests/test-strtod.c: Likewise.
36647         * tests/test-trunc1.c: Likewise.
36648         * tests/test-trunc2.c: Likewise.
36649         * tests/test-truncf1.c: Likewise.
36650         * tests/test-truncf2.c: Likewise.
36651         * NEWS: Mention the renamed header files.
36652
36653 2008-07-11  Jim Meyering  <meyering@redhat.com>
36654
36655         vc-list-files: make the last-resort awk code more portable
36656         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36657         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36658         does not support it.
36659
36660 2008-07-10  Eric Blake  <ebb9@byu.net>
36661
36662         Work with tar's bootstrap.
36663         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36664         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36665         an m4 comment.
36666
36667 2008-07-09  Jim Meyering  <meyering@redhat.com>
36668
36669         posix-shell.m4: fix typo that made this test malfunction
36670         * m4/posix-shell.m4: Remove capitalization in variable name.
36671
36672 2008-07-08  Bruno Haible  <bruno@clisp.org>
36673
36674         * m4/onceonly.m4: Update comments.
36675         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36676
36677 2008-07-04  Jim Meyering  <meyering@redhat.com>
36678
36679         * users.txt: Add vc-dwim.
36680         (bison, coreutils): Use the gitweb URL.
36681
36682 2008-07-03  Jim Meyering  <meyering@redhat.com>
36683
36684         * users.txt: Add libffcall.  From Sam Steingold.
36685
36686 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36687
36688         getdate.y: do not ignore TZ with relative day, month or year offset
36689         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36690         relative-date-handling, since otherwise, the latter would clobber the
36691         sole output (an updated Start value) of the tz-handling block.
36692         * tests/test-getdate.c: Tests for the fix
36693
36694 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36695
36696         Recognize 'foo_LIBRARIES += libgnu.a'.
36697         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36698         makefile snippet has already specified an installation location,
36699         also using '+='.
36700
36701 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36702
36703         getdate.y: factor out common actions
36704         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36705         Use them in place of open-coded actions.
36706
36707 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36708
36709         Add self-test for getdate module.
36710         * modules/getdate-tests: New file.
36711         * tests/test-getdate.c: New file.
36712
36713 2008-06-29  Bruno Haible  <bruno@clisp.org>
36714
36715         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36716         .gitignore.
36717         Reported by Sylvain Beucler <beuc@beuc.net>.
36718
36719 2008-06-29  Bruno Haible  <bruno@clisp.org>
36720
36721         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36722         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36723
36724 2008-06-29  Bruno Haible  <bruno@clisp.org>
36725
36726         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36727         EXTRA_DIST.
36728         Reported by Sylvain Beucler <beuc@beuc.net>.
36729
36730 2008-06-26  Jim Meyering  <meyering@redhat.com>
36731
36732         make several modules depend on the "open" module
36733         This provides slightly increased consistency when opening-for-write
36734         the name of a non-directory spelled with a trailing slash.
36735         * modules/chdir-safer: Likewise.
36736         * modules/chown: Likewise.
36737         * modules/clean-temp: Likewise.
36738         * modules/copy-file: Likewise.
36739         * modules/fchdir: Likewise.
36740         * modules/fcntl-safer: Likewise.
36741         * modules/pipe: Likewise.
36742         * modules/utime: Likewise.
36743         Prompted by Eric Blake and Bruno Haible.
36744
36745 2008-06-24  Andreas Schwab  <schwab@suse.de>
36746
36747         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36748         literals can be used as initializers for global variables.
36749
36750 2008-06-23  Eric Blake  <ebb9@byu.net>
36751
36752         Make gnulib-cache.m4 easier to diff.
36753         * gnulib-tool (func_import): Allow newlines when reading cached
36754         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36755
36756 2008-06-23  Bruno Haible  <bruno@clisp.org>
36757
36758         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36759         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36760         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36761         m4/signalblocking.m4.
36762         (gl_PREREQ_SIGACTION): Don't invoke it.
36763         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36764         gl_PREREQ_SIG_HANDLER_H.
36765         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36766         Don't check for sigaction here.
36767
36768 2008-06-23  Bruno Haible  <bruno@clisp.org>
36769
36770         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36771         (install_handlers): Don't set the SA_RESETHAND flag.
36772
36773 2008-06-23  Bruno Haible  <bruno@clisp.org>
36774
36775         * m4/sigaction.m4: Comment fixes.
36776         * lib/signal.in.h: Likewise.
36777
36778 2008-06-23  Eric Blake  <ebb9@byu.net>
36779
36780         Fix typo.
36781         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36782
36783         Avoid SA_ namespace.
36784         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36785         Reported by Ralf Wildenhues.
36786
36787         Avoid test failure due to SA_RESTORER.
36788         * tests/test-sigaction.c (SA_MASK): New macro.
36789         (main): Avoid failing due to extension flags being set.
36790         Reported by Jim Meyering.
36791
36792         Revert use of sig-handler.h in sigprocmask.c.
36793         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36794         it requires the existence of struct sigaction.
36795         * lib/sigprocmask.c (handler_t): Restore typedef.
36796         (rpl_signal, old_handlers): Use local type.
36797
36798 2008-06-22  Bruno Haible  <bruno@clisp.org>
36799
36800         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36801         conditionally.
36802         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36803
36804 2008-06-22  Bruno Haible  <bruno@clisp.org>
36805
36806         * doc/posix-functions/siginterrupt.texi: Move note.
36807
36808         * lib/signal.in.h (SA_RESTART): New macro.
36809         * lib/sigaction.c: Update comment.
36810
36811         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36812
36813         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36814         (gl_PREREQ_SIGPROCMASK): Invoke it.
36815         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36816
36817         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36818
36819         * lib/sigprocmask.c: Update a comment.
36820
36821 2008-06-21  Eric Blake  <ebb9@byu.net>
36822
36823         Use sigaction module rather than signal().
36824         * modules/c-stack (Depends-on): Add sigaction.
36825         * modules/fatal-signal (Depends-on): Likewise.
36826         * modules/nanosleep (Depends-on): Likewise.
36827         * modules/sigprocmask (Files): Add sig-handler.h.
36828         * modules/sigaction (Files): Likewise.
36829         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36830         Eggert.
36831         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36832         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36833         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36834         (init_fatal_signals): Likewise.
36835         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36836         (siginterrupt): Delete fallback.
36837         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36838         instead.
36839         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36840         siginterrupt.
36841
36842         New module sigaction, for mingw.
36843         * modules/sigaction: New module...
36844         * modules/sigaction-tests: ...and its test.
36845         * m4/sigaction.m4: New file.
36846         * lib/sigaction.c: Likewise.
36847         * tests/test-sigaction.c: Likewise.
36848         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36849         * modules/signal (Makefile.am): Likewise.
36850         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36851         needed.
36852         * doc/posix-headers/signal.texi (signal.h): Mention provided
36853         types.
36854         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36855         that sigaction is preferable.
36856         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36857         module.
36858         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36859         sigaction.
36860
36861         Improve robustness of sigprocmask by overriding signal.
36862         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36863         is in use.
36864         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36865         (SIGKILL, SIGSTOP): Provide fallbacks.
36866         (rpl_signal): Implement.
36867         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36868         signal can be called inside handlers.
36869
36870         Fix nanosleep module on mingw.
36871         * modules/nanosleep (Depends-on): Add sys_select.
36872         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36873
36874         Fix licensing of sigprocmask.
36875         * modules/raise (License): Relicense as LGPL.
36876
36877 2008-06-21  Bruno Haible  <bruno@clisp.org>
36878
36879         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36880         result if it contains question marks.
36881         Reported by Michael Geng <linux@michaelgeng.de>.
36882
36883 2008-06-19  Bruno Haible  <bruno@clisp.org>
36884
36885         Fix CVS-ism.
36886         * doc/gnulib.texi: Include updated-stamp.texi.
36887         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36888         (updated-stamp.texi): New rule.
36889         (gnulib.info): Depend on it.
36890         * doc/.gitignore: Add updated-stamp.texi.
36891         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36892
36893 2008-06-19  Bruno Haible  <bruno@clisp.org>
36894
36895         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36896         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36897
36898 2008-06-19  Eric Blake  <ebb9@byu.net>
36899
36900         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36901         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36902         Reported by Stepan Kasal.
36903
36904 2008-06-18  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36907         Reported by Eric Blake.
36908
36909 2008-06-18  Eric Blake  <ebb9@byu.net>
36910
36911         Work around cygwin 1.5.25 strsignal bug.
36912         * tests/test-strsignal.c: Allow for const char *.
36913         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36914
36915 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36916
36917         * users.txt: Update URL to article and add author/date
36918         information.
36919
36920 2008-06-17  Bruno Haible  <bruno@clisp.org>
36921
36922         New macro gl_DISABLE_THREADS.
36923         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36924         if the user did not pass --enable-threads or --disable-threads option.
36925         (gl_DISABLE_THREADS): New macro.
36926         Reported by Eric Blake <ebb9@byu.net>.
36927
36928 2008-06-17  Bruno Haible  <bruno@clisp.org>
36929
36930         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36931         when the macro ignores it.
36932         Based on a patch by Eric Blake <ebb9@byu.net>.
36933
36934 2008-06-17  Bruno Haible  <bruno@clisp.org>
36935
36936         * modules/tls (License): Change to LGPLv2+.
36937         Reported by Eric Blake.
36938
36939 2008-06-17  Eric Blake  <ebb9@byu.net>
36940
36941         Simplify c-stack prerequisites.
36942         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36944         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36945         check.
36946         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36947         <sys/resource.h>.
36948
36949         Move c-stack test into testsuite.
36950         * modules/c-stack-tests: New file.
36951         * lib/c-stack.c [DEBUG]: Move test program...
36952         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36953         fail test if sigaltstack is lacking.
36954         * tests/test-c-stack.sh: New driver file.
36955
36956 2008-06-16  Eric Blake  <ebb9@byu.net>
36957
36958         Use raise module consistently.
36959         * modules/fatal-signal (Depends-on): Add raise.
36960         * modules/sigprocmask (Depends-on): Likewise.
36961         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36962         * lib/sigprocmask.c (sigprocmask): Likewise.
36963         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36964         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36965
36966         Fix compliance bug in sigpending.
36967         * lib/sigprocmask.c (sigpending): Return pending array via
36968         parameter, not return value.
36969
36970 2008-06-14  Eric Blake  <ebb9@byu.net>
36971
36972         Improve obstack-printf test code.
36973         * tests/test-obstack-printf.c (test_function): Fix comment, and
36974         simplify usage of obstack_* in macros.  Add a test for coverage.
36975         Reported by Bruno Haible.
36976
36977 2008-06-14  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36980         array size as a constant, not as a const variable.
36981         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36982         AC_USE_SYSTEM_EXTENSIONS.
36983         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36984         Test whether the obstack_printf function actually exists.
36985         * modules/obstack-printf (Depends-on): Add extensions.
36986         (Include): Remove obstack.h.
36987         * modules/obstack-printf-posix (Depends-on): Add extensions.
36988         (Include): Remove obstack.h.
36989
36990 2008-06-13  Eric Blake  <ebb9@byu.net>
36991
36992         Add obstack-printf and obstack-printf-posix modules.
36993         * modules/obstack-printf: New file.
36994         * modules/obstack-printf-posix: Likewise.
36995         * MODULES.html.sh (Misc): Mention them.
36996         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36997         Likewise.
36998         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36999         Likewise.
37000         * modules/stdio (Makefile.am): Accomodate new modules.
37001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37002         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37003         Declare.
37004         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37005         functions.
37006         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37007         (gl_REPLACE_OBSTACK_PRINTF): New macros
37008         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37009         * tests/test-obstack-printf.c: New file.
37010         * modules/obstack-printf-tests: Likewise.
37011         * modules/obstack-printf-posix-tests: Likewise.
37012
37013 2008-06-11  Bruno Haible  <bruno@clisp.org>
37014
37015         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37016         * lib/open.c: Include errno.h.
37017         (open): Fail when attempting to write to a file that has a trailing
37018         slash.
37019         * tests/test-open.c (main): Test against trailing slash bug.
37020         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37021
37022 2008-06-10  Bruno Haible  <bruno@clisp.org>
37023
37024         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37025         for $? to work inside the trap command, with various /bin/sh-s.
37026         * tests/test-vc-list-files-cvs.sh: Likewise.
37027
37028 2008-06-10  Bruno Haible  <bruno@clisp.org>
37029
37030         * lib/acl-internal.h: Don't include gettext.h here.
37031         * lib/set-mode-acl.c: Include gettext.h here.
37032         * lib/copy-acl.c: Likewise.
37033
37034 2008-06-10  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37037         * lib/wait-process.c (wait_subprocess): Likewise.
37038         * lib/execute.h (execute): Add termsigp argument.
37039         * lib/execute.c (execute): Likewise.
37040         * lib/csharpcomp.c (compile_csharp_using_pnet,
37041         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37042         * lib/csharpexec.c (execute_csharp_using_pnet,
37043         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37044         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37045         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37046         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37047         is_jikes_present): Update.
37048         * lib/javaexec.c (execute_java_class): Update.
37049         * lib/javaversion.c (execute_and_read_line): Update.
37050         * NEWS: Document the changes.
37051         Reported by Eric Blake.
37052
37053 2008-06-10  Eric Blake  <ebb9@byu.net>
37054
37055         Add missing include.
37056         * tests/test-strstr.c (includes): Add <signal.h>.
37057         * tests/test-strcasestr.c (includes): Likewise.
37058         * tests/test-memmem.c (includes): Likewise.
37059
37060 2008-06-10  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/wait-process.c (wait_subprocess): Add an assertion.
37063
37064 2008-06-10  Bruno Haible  <bruno@clisp.org>
37065
37066         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37067
37068 2008-06-10  Bruno Haible  <bruno@clisp.org>
37069
37070         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37071         using alarm().
37072         * tests/test-strcasestr.c (main): Likewise.
37073         * tests/test-strstr.c (main): Likewise.
37074
37075 2008-06-09  Bruno Haible  <bruno@clisp.org>
37076
37077         Work around the Solaris 10 ACE ACLs ABI change.
37078         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37079         declare if ACL_NO_TRIVIAL is present.
37080         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37081         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37082         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37083         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37084         define if ACL_NO_TRIVIAL is present.
37085         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37086         and use the current ABI.
37087         (file_has_acl): Use same #if condition as elsewhere.
37088         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37089         in use, and use the current ABI.
37090         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37091         Reported by Jim Meyering.
37092
37093 2008-06-09  Eric Blake  <ebb9@byu.net>
37094
37095         Work around environments that (stupidly) ignore SIGALRM.
37096         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37097         before using alarm().
37098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37099         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37100         Reported by Ian Beckwith <ianb@erislabs.net>.
37101
37102         Produce autobuild blurb earlier in log.
37103         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37104
37105 2008-06-09  Jim Meyering  <meyering@redhat.com>
37106         and OndÅ™ej Vašík  <ovasik@redhat.com>
37107
37108         utimens.c: correct kernel bug work-around
37109         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37110         failure, not success, and the kernel bug we're trying to work
37111         around affects not just the utimensat call, but also the fallback
37112         futimens call.
37113         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37114         not success.
37115         [HAVE_FUTIMENS]: Use the same work-around, here.
37116
37117 2008-06-09  Jim Meyering  <meyering@redhat.com>
37118
37119         add more guards around definition of ACE_-related code
37120         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37121         ALLOW and ACE_OWNER are also defined.
37122
37123 2008-06-08  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/acl-internal.h: Add me as co-author.
37126         * lib/file-has-acl.c: Likewise.
37127         * lib/set-mode-acl.c: Likewise.
37128         * lib/copy-acl.c: Likewise.
37129
37130 2008-06-08  Bruno Haible  <bruno@clisp.org>
37131
37132         Add support for AIX ACLs.
37133         * lib/acl-internal.h (acl_nontrivial): New declaration.
37134         * lib/file-has-acl.c (acl_nontrivial): New function.
37135         (file_has_acl): Add implementation using AIX 4 ACL API.
37136         * lib/set-mode-acl.c (qset_acl): Likewise.
37137         * lib/copy-acl.c (qcopy_acl): Likewise.
37138
37139 2008-06-08  Bruno Haible  <bruno@clisp.org>
37140
37141         Add support for HP-UX ACLs.
37142         * lib/acl-internal.h (acl_nontrivial): New declaration.
37143         * lib/file-has-acl.c (acl_nontrivial): New function.
37144         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37145         * lib/set-mode-acl.c (qset_acl): Likewise.
37146         * lib/copy-acl.c (qcopy_acl): Likewise.
37147
37148 2008-06-08  Bruno Haible  <bruno@clisp.org>
37149
37150         Add support for Cygwin ACLs.
37151         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37152         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37153         the chmod_or_fchmod call.
37154         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37155
37156 2008-06-08  Bruno Haible  <bruno@clisp.org>
37157
37158         Fix bug with setuid modes in Solaris 10+ code.
37159         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37160         succeeded, when the mode contains some special bits.
37161
37162 2008-06-08  Bruno Haible  <bruno@clisp.org>
37163
37164         Add support for Solaris 7..10 ACLs.
37165         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37166         declarations.
37167         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37168         functions.
37169         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37170         * lib/set-mode-acl.c (qset_acl): Likewise.
37171         * lib/copy-acl.c (qcopy_acl): Likewise.
37172
37173 2008-06-08  Bruno Haible  <bruno@clisp.org>
37174
37175         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37176         declaration.
37177         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37178         (acl_access_nontrivial): Remove MacOS X case.
37179         (file_has_acl): Use acl_extended_nontrivial.
37180         * lib/copy-acl.c (qcopy_acl): Likewise.
37181
37182 2008-06-08  Bruno Haible  <bruno@clisp.org>
37183
37184         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37185
37186 2008-06-08  Jim Meyering  <meyering@redhat.com>
37187
37188         * modules/acl (Maintainer): Add Bruno Haible.
37189
37190 2008-06-07  Bruno Haible  <bruno@clisp.org>
37191
37192         Improve support for Tru64 ACLs.
37193         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37194         ACL on OSF/1.
37195
37196 2008-06-07  Bruno Haible  <bruno@clisp.org>
37197
37198         Add support for MacOS X ACLs.
37199         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37200         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37201         * lib/set-mode-acl.c (qset_acl): Likewise.
37202         * lib/copy-acl.c (qcopy_acl): Likewise.
37203
37204 2008-06-07  Bruno Haible  <bruno@clisp.org>
37205
37206         Fix memory leak introduced on 2008-05-22.
37207         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37208         use.
37209
37210 2008-06-07  Bruno Haible  <bruno@clisp.org>
37211
37212         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37213         to construct an empty ACL.
37214
37215 2008-06-07  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37218         precisely.
37219         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37220
37221 2008-06-07  Bruno Haible  <bruno@clisp.org>
37222
37223         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37224         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37225
37226 2008-06-07  Bruno Haible  <bruno@clisp.org>
37227
37228         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37229         regardless of POSIX.
37230         * doc/posix-functions/_longjmp.texi: Likewise.
37231         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37232         SystemV platform in this case.
37233
37234 2008-06-06  Eric Blake  <ebb9@byu.net>
37235
37236         Document abort() bugs.
37237         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37238
37239         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37240         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37241         sigsetjmp.
37242         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37243         siglongjmp, but only as a macro.
37244         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37245         is obsolete.
37246         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37247
37248         Tweak documentation to cover cygwin argz bugs.
37249         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37250         argz bug fix; no code change needed since no cygwin releases
37251         occurred between the last fix and the bug being tested.
37252         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37253         module and recently fixed cygwin bugs.
37254         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37255         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37256         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37257         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37258         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37259         Likewise.
37260         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37261         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37262         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37263         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37264         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37265         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37266         Likewise.
37267
37268         Avoid gcc warning on cygwin.
37269         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37270         !ACL_NO_TRIVIAL]: Avoid unused variable.
37271
37272 2008-06-05  Eric Blake  <ebb9@byu.net>
37273
37274         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37275         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37276         git-version-gen fails to come up with a version.
37277         Reported by Simon Josefsson.
37278
37279 2008-06-05  Jim Meyering  <meyering@redhat.com>
37280             Paul Eggert  <eggert@cs.ucla.edu>
37281
37282         utimens.c: work around a probable Linux kernel bug
37283         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37284         appears to be a kernel bug that causes utimensat to return 280
37285         instead of 0, indicating success.
37286
37287 2008-06-04  Bruno Haible  <bruno@clisp.org>
37288
37289         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37290         2008-06-01 commit.
37291
37292 2008-06-04  Bruno Haible  <bruno@clisp.org>
37293
37294         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37295         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37296         (file_has_acl): Use it. Save errno afterwards.
37297         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37298
37299 2008-06-03  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37302         draft code. Simplify #ifs.
37303         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37304         Put Solaris code after POSIX-draft code. Fix comments regarding
37305         Solaris 10, HP-UX. Mention Cygwin.
37306         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37307
37308 2008-06-03  Eric Blake  <ebb9@byu.net>
37309
37310         Provide fallback for older kernels.
37311         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37312         Provide runtime fallback if kernel lacks support.
37313         Reported by Mike Frysinger.
37314
37315 2008-06-02  Bruno Haible  <bruno@clisp.org>
37316
37317         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37318         it exists.
37319
37320 2008-06-02  Bruno Haible  <bruno@clisp.org>
37321
37322         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37323         * lib/copy-acl.c (qcopy_acl): Update comment.
37324
37325 2008-06-02  Bruno Haible  <bruno@clisp.org>
37326
37327         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37328         like ACL APIs.
37329
37330 2008-06-02  Bruno Haible  <bruno@clisp.org>
37331
37332         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37333         * tests/test-set-mode-acl.sh: Likewise.
37334         * tests/test-copy-acl.sh: Likewise.
37335         * tests/test-copy-file.sh: Likewise.
37336
37337 2008-06-02  Bruno Haible  <bruno@clisp.org>
37338
37339         * tests/test-file-has-acl.sh: Remove unused code.
37340
37341 2008-06-01  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37344         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37345         messages.
37346         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37347
37348 2008-06-01  Bruno Haible  <bruno@clisp.org>
37349
37350         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37351         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37352         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37353         APIs.
37354         * modules/acl-tests (configure.ac): Remove tests now contained in
37355         m4/acl.m4.
37356
37357 2008-06-02  Jim Meyering  <meyering@redhat.com>
37358
37359         announce-gen: use a better key-server host name
37360         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37361         it may be more consistently reliable.  Suggested by Werner Koch
37362         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37363
37364 2008-06-01  Bruno Haible  <bruno@clisp.org>
37365
37366         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37367         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37368
37369 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37370
37371         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37372
37373 2008-06-01  Bruno Haible  <bruno@clisp.org>
37374
37375         New ACL tests.
37376         * tests/test-file-has-acl.sh: New file.
37377         * tests/test-file-has-acl.c: New file.
37378         * tests/test-set-mode-acl.sh: New file.
37379         * tests/test-set-mode-acl.c: New file.
37380         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37381         * tests/test-copy-acl.c: New file.
37382         * modules/acl-tests: New file, based on modules/copy-file-tests.
37383         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37384         (Depends-on): Add acl-tests.
37385         (configure.ac): Remove checks.
37386         (Makefile.am): Don't create test-sameacls program here any more.
37387
37388 2008-06-01  Bruno Haible  <bruno@clisp.org>
37389
37390         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37391         * tests/test-sameacls.c: Include progname.h.
37392         (main): Invoke set_program_name. Portability fixes for MacOS X,
37393         Solaris, HP-UX.
37394
37395 2008-06-01  Bruno Haible  <bruno@clisp.org>
37396
37397         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37398         function.
37399         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37400
37401 2008-06-01  Bruno Haible  <bruno@clisp.org>
37402
37403         * modules/rpmatch (Depends-on): Add strdup.
37404
37405 2008-06-01  Bruno Haible  <bruno@clisp.org>
37406
37407         * lib/pipe.c: Include unistd-safer.h.
37408         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37409         * modules/pipe (Depends-on): Add unistd-safer.
37410
37411 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37412
37413         * modules/autobuild (configure.ac): Call AB_INIT.
37414
37415 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37416
37417         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37418         Suggested by Bruno Haible <bruno@clisp.org>.
37419
37420 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37421
37422         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37423         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37424         <bruno@clisp.org>.
37425
37426 2008-05-29  Eric Blake  <ebb9@byu.net>
37427
37428         Prefer new POSIX 200x interfaces over futimesat.
37429         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37430         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37431         when available.
37432         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37433
37434 2008-05-28  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/stpcpy (License): Change to LGPLv2+.
37437         Requested by David Lutterkort <dlutter@redhat.com>.
37438
37439 2008-05-27  Bruno Haible  <bruno@clisp.org>
37440
37441         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37442         current mingw.
37443         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37444
37445 2008-05-27  Bruno Haible  <bruno@clisp.org>
37446
37447         * modules/iconv_open (Link): New section, from module 'iconv'.
37448         * modules/striconv (Link): Likewise.
37449         * modules/striconveh (Link): Likewise.
37450         * modules/xstriconv (Link): Likewise.
37451         * modules/unicodeio (Link): Likewise.
37452         * modules/propername (Link): Likewise.
37453         Reported by Jim Meyering.
37454
37455 2008-05-26  Jim Meyering  <meyering@redhat.com>
37456
37457         sha256: do not artificially restrict buffer length to be < 2^32
37458         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37459         uint32_t to size_t.
37460         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37461         to match.
37462
37463         avoid unaligned access errors, e.g., on sparc
37464         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37465         direct access through a possibly-unaligned uint64* pointer.
37466         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37467         direct access through a possibly-unaligned uint32* pointer.
37468         Prompted by this patch from Tom "spot" Callaway:
37469         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37470
37471         sha512.c: fix typo in comment
37472         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37473
37474 2008-05-25  Bruno Haible  <bruno@clisp.org>
37475
37476         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37477         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37478         (Makefile.am): Update lib_SOURCES.
37479
37480 2008-05-25  Bruno Haible  <bruno@clisp.org>
37481
37482         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37483
37484 2008-05-25  Jim Meyering  <meyering@redhat.com>
37485
37486         useless-if-before-free: freed expr may have white-space differences
37487         * build-aux/useless-if-before-free: Recognize cases in which the
37488         freed expression differs from the tested one in embedded white
37489         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37490         $1 was used, so we can't make any regexp shy.  Improved tests now
37491         detect this.
37492
37493         useless-if-before-free: accept white space in the expression.
37494         * build-aux/useless-if-before-free: For now, any white space
37495         in the expression must be identical in the free argument.
37496
37497         useless-if-before-free: efficiency tweak
37498         * build-aux/useless-if-before-free: Make the expression-matching
37499         regexp "shy".
37500         Make the *outer* regexp shy, not the expr-matching one.
37501
37502         update code-in-comment to accept cast of free arg
37503         * build-aux/useless-if-before-free: Update regexp.
37504
37505 2008-05-25  Bruno Haible  <bruno@clisp.org>
37506
37507         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37508         * modules/copy-file-tests (Files, Makefile.am): Update.
37509         * tests/test-copy-file.c (func_test_copy): Update.
37510
37511 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37512
37513         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37514
37515 2008-05-23  Bruno Haible  <bruno@clisp.org>
37516
37517         Improve support for ACLs on OSF/1.
37518         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37519         Remove fallback for unknown flavors of ACLs.
37520
37521 2008-05-22  Bruno Haible  <bruno@clisp.org>
37522
37523         Add support for ACLs on OSF/1.
37524         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37525         replacements.
37526         (acl_free_text): New macro fallback.
37527         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37528         acl_free.
37529         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37530         acl_free_text function. Require AC_C_INLINE.
37531
37532 2008-05-22  Bruno Haible  <bruno@clisp.org>
37533
37534         Make copy_acl work on MacOS X 10.5.
37535         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37536         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37537         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37538         If MODE_INSIDE_ACL, don't assume that every system has the same text
37539         representation for ACLs as FreeBSD.
37540         * lib/copy-acl.c (copy_acl): Add support for platforms with
37541         !MODE_INSIDE_ACL.
37542         * lib/file-has-acl.c (file_has_acl): Likewise.
37543         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37544         FreeBSD, MacOS X, or IRIX, respectively.
37545
37546 2008-05-22  Bruno Haible  <bruno@clisp.org>
37547
37548         * lib/acl.h: Don't include <sys/acl.h>.
37549         (GETACLCNT): Move fallback to lib/acl-internal.h.
37550         * lib/acl-internal.h: Include <sys/acl.h> here.
37551         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37552
37553 2008-05-22  Bruno Haible  <bruno@clisp.org>
37554
37555         Split off copy_acl function to separate file.
37556         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37557         * lib/acl.c (copy_acl): Moved function to separate file.
37558         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37559         * modules/acl (Files): Add lib/copy-acl.c.
37560         (Makefiles.am): Augment lib_SOURCES.
37561
37562 2008-05-22  Bruno Haible  <bruno@clisp.org>
37563
37564         * modules/copy-file-tests: New file.
37565         * tests/test-copy-file.sh: New file.
37566         * tests/test-copy-file.c: New file.
37567         * tests/test-copy-file-sameacls.c: New file.
37568
37569 2008-05-22  Eric Blake  <ebb9@byu.net>
37570
37571         Avoid gcc warning.
37572         * tests/test-memcmp.c (main): Pass NULL indirectly.
37573
37574 2008-05-21  Bruno Haible  <bruno@clisp.org>
37575
37576         Add reference doc about ACLs.
37577         * doc/acl-resources.txt: New file.
37578         * doc/acl-cygwin.txt: New file.
37579
37580 2008-05-21  Bruno Haible  <bruno@clisp.org>
37581
37582         Avoid one more warning from gcc.
37583         * lib/vasnprintf.c (IF_LINT): Update comments.
37584         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37585
37586 2008-05-21  Jim Meyering  <meyering@redhat.com>
37587
37588         avoid a warning from gcc
37589         * lib/vasnprintf.c (IF_LINT): Define.
37590         (scale10_round_decimal_long_double):
37591         Use it to avoid a "may be used uninitialized" warning.
37592         (scale10_round_decimal_double): Likewise.
37593
37594 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37595
37596         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37597         declared.
37598
37599 2008-05-20  Bruno Haible  <bruno@clisp.org>
37600
37601         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37602         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37603
37604 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37605
37606         * modules/memcmp-tests: New file.
37607         * tests/test-memcmp.c: New file.
37608
37609 2008-05-19  Bruno Haible  <bruno@clisp.org>
37610
37611         * modules/propername (Notice, configure.ac): Put quoted "..." into
37612         --keyword option.
37613         * lib/propername.h: Update comments accordingly.
37614         Reported by Eric Blake.
37615
37616 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37617
37618         * modules/getpass-gnu (Depends-on): Add fseeko.
37619
37620 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37621
37622         * modules/base64-tests: New file.
37623
37624 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37625
37626         * lib/base64.c (base64_decode_ctx): If a decode context structure
37627         was passed in use it to ignore newlines.  If a context structure
37628         was _not_ passed in, continue to treat newlines as garbage (this
37629         is the historical behavior).  Formerly base64_decode.
37630         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37631         takes a decode context structure.
37632         * lib/base64.h (base64_decode): Macro for four-argument calls.
37633         (base64_decode_alloc): Likewise.
37634         * lib/base64.c (base64_decode_ctx): If a decode context structure
37635         was passed in use it to ignore newlines.  If a context structure
37636         was _not_ passed in, continue to treat newlines as garbage (this
37637         is the historical behavior).  Formerly base64_decode.
37638         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37639         takes a decode context structure.
37640         * lib/base64.h (base64_decode): Macro for four-argument calls.
37641         (base64_decode_alloc): Likewise.
37642
37643 2008-05-19  Jim Meyering  <meyering@redhat.com>
37644
37645         avoid a warning from gcc
37646         * lib/trim.c (IF_LINT): Define.
37647         (trim2): Use it to avoid a "may be used uninitialized" warning.
37648
37649         Fix doc typo.
37650         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37651
37652 2008-05-19  Bruno Haible  <bruno@clisp.org>
37653
37654         * doc/glibc-functions/getpass.texi: Document limits of other
37655         implementations.
37656
37657 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37658             Bruno Haible <bruno@clisp.org>
37659
37660         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37661
37662 2008-05-18  Bruno Haible  <bruno@clisp.org>
37663
37664         * modules/propername: New file, from GNU gettext.
37665         * lib/propername.h: New file, from GNU gettext.
37666         * lib/propername.c: New file, from GNU gettext.
37667         * MODULES.html.sh (Internationalization functions): Add propername.
37668
37669 2008-05-16  Jim Meyering  <meyering@redhat.com>
37670             Bruno Haible  <bruno@clisp.org>
37671
37672         Avoid some warnings from "gcc -Wshadow".
37673         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37674
37675 2008-05-15  Eric Blake  <ebb9@byu.net>
37676
37677         Extend previous patch to cygwin 1.7.0.
37678         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37679         fast implementation in cygwin >= 1.7.0.
37680         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37682
37683 2008-05-15  Bruno Haible  <bruno@clisp.org>
37684
37685         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37686         implementation in glibc >= 2.9.
37687         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37689
37690 2008-05-15  Bruno Haible  <bruno@clisp.org>
37691
37692         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37693         (Unicode string functions): Add unilbrk/*.
37694         Reported by Karl Berry.
37695
37696 2008-05-15  Eric Blake  <ebb9@byu.net>
37697
37698         Fix violation of <stdbool.h> replacement in regex.
37699         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37700         * lib/regexec.c (re_search_internal): Likewise.
37701         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37702
37703 2008-05-15  Jim Meyering  <meyering@redhat.com>
37704
37705         avoid distracting test output when git or cvs is not found
37706         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37707         * tests/test-vc-list-files-git.sh: Likewise.
37708
37709 2008-05-15  Eric Blake  <ebb9@byu.net>
37710
37711         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37712         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37713         glibc version.
37714         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37715         * doc/posix-functions/strstr.texi (strstr): Likewise.
37716         * lib/str-two-way.h (MAX): Sychronize with glibc.
37717
37718 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37719
37720         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37721         opr.ctx_type.
37722         (calc_first): Initialize constraint field.
37723         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37724         Fix grammar.
37725         (duplicate_node): Merge constraint field for all node types.
37726         (calc_eclosure_iter): Look at constraint field for all node types.
37727         * lib/regex_internal.c (create_cd_newstate): Don't look at
37728         opr.ctx_type.
37729
37730 2008-05-14  Bruno Haible  <bruno@clisp.org>
37731
37732         Help GCC to do better code generation.
37733         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37734         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37735         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37736         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37737         Declare with attribute 'malloc' if supported.
37738
37739 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37740
37741         use "echo STR|wc -c" rather than unportable "expr length STR"
37742         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37743         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37744
37745 2008-05-14  Jim Meyering  <meyering@redhat.com>
37746
37747         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37748         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37749         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37750         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37751         via Collin Lasse.
37752
37753 2008-05-14  Eric Blake  <ebb9@byu.net>
37754
37755         Avoid quadratic growth in gl_LIBSOURCES.
37756         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37757         Suggested by Bruno Haible.
37758
37759         Test xmemdup0.
37760         * modules/xmemdup0-tests: New file.
37761         * tests/test-xmemdup0.c: Likewise.
37762
37763 2008-05-13  Eric Blake  <ebb9@byu.net>
37764
37765         Split xmemdup0 into its own module.
37766         * modules/xmemdup0: New file.
37767         * lib/xmemdup0.h: Likewise.
37768         * lib/xmemdup0.c: Likewise.
37769         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37770         * lib/xalloc.h (xmemdup0): Remove.
37771         * lib/xmalloc.c (xmemdup0): Likewise.
37772
37773 2008-05-13  Eric Blake  <ebb9@byu.net>
37774             Bruno Haible  <bruno@clisp.org>
37775
37776         Reduce number of forks required during autoconf.
37777         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37778         and gl_LIBSOURCES_DIR.
37779         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37780         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37781         m4_syscmd per file.
37782         <m4_foreach_w>: Move...
37783         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37784
37785 2008-05-13  Eric Blake  <ebb9@byu.net>
37786
37787         * gnulib-tool: Fix various comment typos.
37788
37789 2008-05-12  Bruno Haible  <bruno@clisp.org>
37790
37791         Tailor the linebreaking algorithm.
37792         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37793
37794 2008-05-12  Bruno Haible  <bruno@clisp.org>
37795
37796         Update to Unicode 5.0.0.
37797         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37798         LBP_JV, LBP_JT. Redistribute values.
37799         (unilbrk_table): Change size.
37800         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37801         Unicode TR#14 rev. 22.
37802         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37803         LBP_JV, LBP_JT. Redistribute values.
37804         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37805         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37806         Update.
37807         * lib/unilbrk/lbrkprop1.h: Regenerated.
37808         * lib/unilbrk/lbrkprop2.h: Regenerated.
37809         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37810         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37811         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37812         Likewise.
37813         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37814         Likewise.
37815         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37816         result.
37817         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37818         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37819         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37820         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37821         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37822         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37823
37824 2008-05-11  Bruno Haible  <bruno@clisp.org>
37825
37826         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37827
37828 2008-05-11  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37831         * modules/unilbrk/gen-lbrk: New file.
37832
37833 2008-05-11  Bruno Haible  <bruno@clisp.org>
37834
37835         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37836         * m4/sha512.m4 (gl_SHA512): Likewise.
37837
37838 2008-05-11  Jim Meyering  <meyering@redhat.com>
37839
37840         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37841         * modules/crypto/sha256: New file.
37842         * modules/crypto/sha512: Likewise.
37843         * lib/sha256.c: Likewise.
37844         * lib/sha256.h: Likewise.
37845         * lib/sha512.c: Likewise.
37846         * lib/sha512.h: Likewise.
37847         * lib/u64.h: Likewise.
37848         * m4/sha256.m4: Likewise.
37849         * m4/sha512.m4: Likewise.
37850         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37851
37852 2008-05-10  Bruno Haible  <bruno@clisp.org>
37853
37854         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37855         (Input/Output <stdio.h>): Add xprintf.
37856         (Signal handling <signal.h>): Add strsignal.
37857         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37858         (Core language properties): Add func.
37859         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37860         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37861         strings.
37862         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37863         (Input/output): New section.
37864         (File system functions): Add openat-die, stat-macros.
37865         (Networking functions): Add sockets.
37866         (Unicode string functions): Add unictype/*.
37867         (Support for building libraries and executables): Add gperf.
37868         (Support for building documentation): Add agpl-3.0.
37869         (Misc): Add nocrash.
37870
37871 2008-05-10  Bruno Haible  <bruno@clisp.org>
37872
37873         * modules/unictype/gen-ctype: New file.
37874
37875 2008-05-10  Jim Meyering  <meyering@redhat.com>
37876
37877         Make chdir-safer.c more efficient on a system with no symlinks.
37878         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37879         also if ELOOP is zero.  Suggested by Bruno Haible.
37880
37881         Make chdir-safer.c slightly safer.
37882         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37883         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37884
37885         Avoid compile failure on systems without ELOOP (like mingw).
37886         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37887         Reported by Bruno Haible.
37888
37889 2008-05-10  Bruno Haible  <bruno@clisp.org>
37890
37891         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37892         (is_utf8_encoding): Use a case-insensitive comparison.
37893         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37894         streq.
37895
37896 2008-05-10  Bruno Haible  <bruno@clisp.org>
37897
37898         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37899         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37900         * lib/unilbrk/ulc-common.h (iconv_string_length,
37901         iconv_string_keeping_offsets): Remove declarations.
37902         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37903         Don't include <iconv.h>, streq.h, xsize.h.
37904         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37905         conversion.
37906         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37907         <iconv.h>, streq.h, xsize.h.
37908         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37909         conversion.
37910         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37911         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37912         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37913         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37914
37915 2008-05-10  Bruno Haible  <bruno@clisp.org>
37916
37917         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37918         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37919
37920         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37921         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37922
37923         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37924         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37925
37926         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37927         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37928
37929         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37930         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37931
37932         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37933         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37934
37935         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37936         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37937
37938         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37939         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37940
37941 2008-05-10  Bruno Haible  <bruno@clisp.org>
37942
37943         Split up 'linebreak' module.
37944         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37945         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37946         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37947         modifications.
37948         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37949         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37950         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37951         lib/linebreak.c.
37952         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37953         lib/linebreak.c.
37954         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37955         lib/linebreak.c.
37956         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37957         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37958         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37959         lib/linebreak.c.
37960         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37961         lib/linebreak.c.
37962         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37963         lib/linebreak.c.
37964         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37965         lib/linebreak.c.
37966         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37967         lib/linebreak.c.
37968         * modules/unilbrk/base: New file.
37969         * modules/unilbrk/tables: New file.
37970         * modules/unilbrk/u8-possible-linebreaks: New file.
37971         * modules/unilbrk/u16-possible-linebreaks: New file.
37972         * modules/unilbrk/u32-possible-linebreaks: New file.
37973         * modules/unilbrk/ulc-common: New file.
37974         * modules/unilbrk/ulc-possible-linebreaks: New file.
37975         * modules/unilbrk/u8-width-linebreaks: New file.
37976         * modules/unilbrk/u16-width-linebreaks: New file.
37977         * modules/unilbrk/u32-width-linebreaks: New file.
37978         * modules/unilbrk/ulc-width-linebreaks: New file.
37979         * lib/linebreak.h: Remove file.
37980         * lib/linebreak.c: Remove file.
37981         * m4/linebreak.m4: Remove file.
37982         * modules/linebreak: Remove file.
37983         * NEWS: Mention the changes.
37984
37985 2008-05-09  Eric Blake  <ebb9@byu.net>
37986
37987         Add xmemdup0.
37988         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37989         implementation.
37990         * lib/xmalloc.c (xmemdup0): New C implementation.
37991
37992 2008-05-08  Bruno Haible  <bruno@clisp.org>
37993
37994         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37995
37996 2008-05-07  Eric Blake  <ebb9@byu.net>
37997
37998         Support cross-compilation of <wctype.h>.
37999         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38000         AC_CACHE_CHECK.
38001
38002 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38003
38004         * build-aux/vc-list-files: Add support for bzr.
38005
38006 2008-05-03  Jim Meyering  <meyering@redhat.com>
38007
38008         avoid failed assertion with tight malloc
38009         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38010
38011 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38012
38013         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38014         are needed from arpa/inet.h.
38015         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38016         Reported by Bruno Haible.
38017
38018 2008-05-02  Jim Meyering  <meyering@redhat.com>
38019
38020         avoid compilation error on FreeBSD 6
38021         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38022
38023 2008-05-01  Jim Meyering  <meyering@redhat.com>
38024
38025         useless-if-before-free: correct --help's exit status description
38026         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38027         for one or more matches, etc.  Reported by Bruno Haible.
38028
38029         vc-list-files: make the stand-alone gnulib test work
38030         * modules/vc-list-files-tests (configure.ac):
38031         Define and AC_SUBST abs_aux_dir.
38032         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38033         $(abs_top_srcdir) to each script and having each of them
38034         duplicate the work of setting PATH, set PATH here, using
38035         the new variable, abs_aux_dir instead.
38036         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38037         * tests/test-vc-list-files-git.sh: Likewise.
38038         Reported by Bruno Haible.
38039
38040 2008-05-01  Bruno Haible  <bruno@clisp.org>
38041
38042         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38043         reallocation. Rename 'done' to 'found_delimiter'.
38044
38045 2008-05-01  Jim Meyering  <meyering@redhat.com>
38046
38047         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38048         * build-aux/vc-list-files: Use `...`, not $(...).
38049
38050 2008-04-30  Jim Meyering  <meyering@redhat.com>
38051
38052         add tests for vc-list-files
38053         * modules/vc-list-files-tests: New module.
38054         * tests/test-vc-list-files-cvs.sh: New file.
38055         * tests/test-vc-list-files-git.sh: New file.
38056
38057         avoid a warning from gcc
38058         * lib/getndelim2.c (IF_LINT): Define.
38059         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38060
38061         vc-list-files: work properly with build-aux/cvsu, too
38062         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38063         to all cvs-based clauses.
38064
38065         vc-list-files: work properly in the CVS+awk case, too
38066         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38067
38068         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38069         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38070         take more than one file argument, so .  Add quotes, just in case $dir
38071         ever contains a shell meta-character.  Prompted by Soren Hansen in
38072         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38073
38074 2008-04-29  Eric Blake  <ebb9@byu.net>
38075
38076         Optimize getndelim2 to use block operations when possible.
38077         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38078         freadseek, and memchr2.
38079         * lib/getndelim2.c (getndelim2): Use them for block reads.
38080
38081 2008-04-29  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38084         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38085         * modules/inet_ntop (Depends-on): Add extensions.
38086         * modules/inet_pton (Depends-on): Likewise.
38087         Reported by Simon Josefsson.
38088
38089 2008-04-29  Jim Meyering  <meyering@redhat.com>
38090
38091         When the is more than one match in a block, match all of them.
38092         * build-aux/useless-if-before-free: Iterate through each block
38093         until there are no more matches.
38094
38095         Fix broken useless-if-before-free script.
38096         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38097         the expression to match cast of argument to free-like function.
38098
38099 2008-04-29  Eric Blake  <ebb9@byu.net>
38100
38101         Use new header.
38102         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38103
38104 2008-04-29  Jim Meyering  <meyering@redhat.com>
38105
38106         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38107         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38108         by gnulib to exist and to declare e.g., inet_ntop.
38109         Don't include "inet_ntop.h", now removed.
38110
38111         * m4/arpa_inet_h.m4: Remove trailing blanks.
38112
38113 2008-04-29  Eric Blake  <ebb9@byu.net>
38114
38115         Silence valgrind on safe reads beyond potential array bounds.
38116         * lib/rawmemchr.valgrind: New file.
38117         * lib/strchrnul.valgrind: Likewise.
38118         * modules/rawmemchr (Files): Distribute new file.
38119         * modules/strchrnul (Files): Likewise.
38120         Suggested by Bruno Haible.
38121
38122 2008-04-29  Bruno Haible  <bruno@clisp.org>
38123
38124         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38125         (inet_ntop, inet_pton): Change portability warning's wording.
38126         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38127         Invoke gl_CHECK_NEXT_HEADERS.
38128         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38129         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38130         set ARPA_INET_H.
38131         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38132         * modules/arpa_inet (Description): No longer only for systems that
38133         lack it.
38134         (Depends-on): Add include_next.
38135         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38136         HAVE_ARPA_INET_H.
38137
38138 2008-04-29  Jim Meyering  <meyering@redhat.com>
38139
38140         * modules/mkdir (License): Re-license as LGPLv2+.
38141
38142 2008-04-29  Bruno Haible  <bruno@clisp.org>
38143
38144         * modules/rawmemchr (Maintainer): Set to Eric.
38145         * modules/strchrnul (Maintainer): Likewise.
38146
38147 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38148
38149         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38150         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38151
38152         * modules/arpa_inet (arpa/inet.h): Use them.
38153
38154 2008-04-28  Eric Blake  <ebb9@byu.net>
38155
38156         Test getndelim2.
38157         * modules/getndelim2-tests: New file.
38158         * tests/test-getndelim2.c: Likewise.
38159         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38160         stream.
38161         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38162
38163         * MODULES.html.sh: Document new module.
38164
38165 2008-04-20  Bruno Haible  <bruno@clisp.org>
38166
38167         * lib/c-stack.c (die): Use raise.
38168         * modules/c-stack (Depends-on): Add raise.
38169
38170 2008-04-28  Bruno Haible  <bruno@clisp.org>
38171
38172         Expect rpmatch to be declared.
38173         * lib/yesno.c (rpmatch): Remove declaration.
38174
38175         Declare rpmatch.
38176         * lib/stdlib.in.h (rpmatch): New declaration.
38177         * lib/rpmatch.c: Include <stdlib.h> first.
38178         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38179         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38181         HAVE_RPMATCH.
38182         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38183         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38184         (Include): Set to <stdlib.h>.
38185         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38186         HAVE_RPMATCH.
38187         * NEWS: Document the change.
38188
38189 2008-04-28  Bruno Haible  <bruno@clisp.org>
38190
38191         Change rpmatch to use nl_langinfo when appropriate.
38192         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38193         (N_): New macro.
38194         (localized_pattern): New function/macro.
38195         (try): Remove match, nomatch arguments. Copy the pattern into safe
38196         memory before caching it.
38197         (rpmatch): Use localized_pattern. Add translator comments.
38198         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38199         Suggested by Eric Blake.
38200         * modules/rpmatch (Depends-on): Add stdbool.
38201
38202 2008-04-28  Eric Blake  <ebb9@byu.net>
38203
38204         Add rawmemchr module, matching glibc.
38205         * modules/string (Makefile.am): New indicator.
38206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38207         * lib/string.in.h (rawmemchr): Declare when appropriate.
38208         * modules/rawmemchr: New file.
38209         * m4/rawmemchr.m4: Likewise.
38210         * lib/rawmemchr.c: Likewise.
38211         * modules/rawmemchr-tests: Likewise.
38212         * tests/test-rawmemchr.c: Likewise.
38213         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38214         module.
38215         * modules/strchrnul (Depends-on): Add rawmemchr.
38216         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38217
38218         Whitespace cleanup.
38219         * tests/test-strchrnul.c: Reindent.
38220         * lib/strchrnul.c: Likewise.
38221
38222         Optimize and test strchrnul.
38223         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38224         * modules/strchrnul-tests: New file.
38225         * tests/test-strchrnul.c: Likewise.
38226
38227         Remove intprops dependency.
38228         * modules/memchr (Depends-on): Remove intprops.
38229         * modules/memrchr (Depends-on): Likewise.
38230         * modules/memchr2 (Depends-on): Likewise.
38231         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38232         * lib/memrchr.c (__memrchr): Likewise.
38233         * lib/memrchr2.c (memchr2): Likewise.
38234         Reported by Simon Josefsson.
38235
38236 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38237
38238         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38239         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38240
38241 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38242
38243         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38244
38245         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38246
38247         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38248
38249         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38250         declarations.
38251         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38252
38253         * m4/inet_pton.m4: Don't check for header files.
38254
38255         * m4/inet_ntop.m4: Don't check for header files.
38256
38257 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38258
38259         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38260         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38261         trigger for cygwin).
38262         Reported by Bruno Haible  <bruno@clisp.org>.
38263
38264 2008-04-28  Bruno Haible  <bruno@clisp.org>
38265
38266         * doc/posix-functions/strdup.texi: Mention mingw problem.
38267
38268 2008-04-27  Bruno Haible  <bruno@clisp.org>
38269
38270         * modules/stat-time-tests (Depends-on): Add sleep.
38271         * tests/test-stat-time.c (force_unlink): New function.
38272         (cleanup): Use it.
38273         (test_mtime): Remove the ctime related tests.
38274         (test_ctime): New function, containing the ctime related tests.
38275         (main): Call test_ctime, except on native Windows platforms.
38276
38277 2008-04-27  Bruno Haible  <bruno@clisp.org>
38278
38279         * lib/rpmatch.c (rpmatch): Add some comments.
38280         Reported by James Youngman <jay@gnu.org>.
38281
38282 2008-04-27  Bruno Haible  <bruno@clisp.org>
38283
38284         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38285         quiet NaNs.
38286
38287 2008-04-27  Bruno Haible  <bruno@clisp.org>
38288
38289         Make test-yesno.sh work on mingw.
38290         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38291         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38292         (main): Set stdin to binary mode.
38293         * modules/yesno-tests (Depends-on): Add binary-io.
38294
38295 2008-04-27  Bruno Haible  <bruno@clisp.org>
38296
38297         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38298         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38299         argument that lie outside the IEEE 854 domain.
38300         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38301         (gl_ISFINITE): Use it.
38302         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38303
38304 2008-04-27  Bruno Haible  <bruno@clisp.org>
38305
38306         Allow local renaming in config.h.
38307         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38308
38309 2008-04-27  Bruno Haible  <bruno@clisp.org>
38310
38311         * lib/memchr.c (__memchr): Change type of 'i'.
38312         * lib/memchr2.c (memchr2): Likewise.
38313
38314 2008-04-26  Eric Blake  <ebb9@byu.net>
38315         and Bruno Haible  <bruno@clisp.org>
38316
38317         Optimize and test memrchr.
38318         * modules/memrchr (Depends-on): Add intprops.
38319         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38320         * modules/memrchr-tests: New file.
38321         * tests/test-memrchr.c: New file.
38322
38323 2008-04-26  Bruno Haible  <bruno@clisp.org>
38324
38325         Add tentative support for DragonFly BSD.
38326         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38327         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38328         fp.
38329         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38330         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38331         * lib/fpurge.c (fpurge): Likewise.
38332         * lib/freadable.c (freaadable): Likewise.
38333         * lib/freadahead.c (freadahead): Likewise.
38334         * lib/freading.c (freading): Likewise.
38335         * lib/freadptr.c (freadptr): Likewise.
38336         * lib/freadseek.c (freadptrinc): Likewise.
38337         * lib/fseeko.c (fseeko): Likewise.
38338         * lib/fseterr.c (fseterr): Likewise.
38339         * lib/fwritable.c (fwritable): Likewise.
38340         * lib/fwriting.c (fwriting): Likewise.
38341
38342 2008-04-26  Bruno Haible  <bruno@clisp.org>
38343
38344         * lib/stdio-impl.h: New file.
38345         * lib/fbufmode.c: Include stdio-impl.h.
38346         (fbufmode): Use fp_, remove redundant #defines.
38347         * lib/fflush.c: Include stdio-impl.h.
38348         (clear_ungetc_buffer): Remove redundant #defines.
38349         * lib/fpurge.c: Include stdio-impl.h.
38350         (fpurge): Remove redundant #defines.
38351         * lib/freadable.c: Include stdio-impl.h.
38352         (freadable): Remove redundant #defines.
38353         * lib/freadahead.c: Include stdio-impl.h.
38354         (freadahead): Remove redundant #defines.
38355         * lib/freading.c: Include stdio-impl.h.
38356         (freading): Remove redundant #defines.
38357         * lib/freadptr.c: Include stdio-impl.h.
38358         (freadptr): Remove redundant #defines.
38359         * lib/freadseek.c: Include stdio-impl.h.
38360         (freadptrinc): Remove redundant #defines.
38361         * lib/fseeko.c: Include stdio-impl.h.
38362         (rpl_fseeko): Remove redundant #defines.
38363         * lib/fseterr.c: Include stdio-impl.h.
38364         (fseterr): Remove redundant #defines.
38365         * lib/fwritable.c: Include stdio-impl.h.
38366         (fwritable: Remove redundant #defines.
38367         * lib/fwriting.c: Include stdio-impl.h.
38368         (fwriting): Remove redundant #defines.
38369         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38370         * modules/fflush (Files): Likewise.
38371         * modules/fpurge (Files): Likewise.
38372         * modules/freadable (Files): Likewise.
38373         * modules/freadahead (Files): Likewise.
38374         * modules/freading (Files): Likewise.
38375         * modules/freadptr (Files): Likewise.
38376         * modules/freadseek (Files): Likewise.
38377         * modules/fseeko (Files): Likewise.
38378         * modules/fseterr (Files): Likewise.
38379         * modules/fwritable (Files): Likewise.
38380         * modules/fwriting (Files): Likewise.
38381
38382 2008-04-26  Bruno Haible  <bruno@clisp.org>
38383
38384         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38385         restore_seek_optimization, update_fpos_cache): New functions, extracted
38386         from rpl_fflush.
38387         (rpl_fflush): Use them.
38388         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38389         (gl_REPLACE_FFLUSH): Use it.
38390
38391 2008-04-26  Bruno Haible  <bruno@clisp.org>
38392
38393         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38394         on Solaris.
38395         * tests/test-xstrtoimax.sh: Likewise.
38396         * tests/test-xstrtoumax.sh: Likewise.
38397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38398
38399 2008-04-26  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/memchr-tests: New file.
38402         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38403
38404 2008-04-26  Eric Blake  <ebb9@byu.net>
38405             Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/memchr.c: Include intprops.h.
38408         (__memchr): Optimize parallel detection of matching bytes. Rename local
38409         variables. Add explanatory comments.
38410
38411 2008-04-26  Bruno Haible  <bruno@clisp.org>
38412
38413         Fix module 'memchr', broken since 2000-10-28.
38414         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38415
38416 2008-04-26  Bruno Haible  <bruno@clisp.org>
38417
38418         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38419         comments.
38420
38421 2008-04-25  Eric Blake  <ebb9@byu.net>
38422
38423         Use native fstatat on cygwin 1.7.0.
38424         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38425         first.
38426
38427 2008-04-23  Eric Blake  <ebb9@byu.net>
38428
38429         Improve memchr2 performance.
38430         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38431         NUL bytes.
38432         * modules/memchr2 (Depends-on): Use intprops.h.
38433
38434 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38435
38436         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38437         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38438         <blp@cs.stanford.edu>.
38439
38440 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38441
38442         * lib/arpa_inet.in.h: New file.
38443
38444         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38445         (Makefile.am): Sed in substitute header file.
38446
38447         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38448         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38449
38450         * modules/inet_ntop (configure.ac): Use
38451         gl_ARPA_INET_MODULE_INDICATOR.
38452
38453         * modules/inet_pton (configure.ac): Use
38454         gl_ARPA_INET_MODULE_INDICATOR.
38455
38456 2008-04-22  Jim Meyering  <meyering@redhat.com>
38457
38458         * modules/verify (License): Re-license as LGPLv2+.
38459
38460 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38461
38462         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38463         parameter to void* as per POSIX standard (MinGW uses char*).
38464
38465 2008-04-21  Bruno Haible  <bruno@clisp.org>
38466
38467         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38468         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38469         Define to replacements if REPLACE_ISWCNTRL is 1.
38470         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38471         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38472         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38473         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38474         what it fixes.
38475         * doc/posix-functions/iswalpha.texi: Likewise.
38476         * doc/posix-functions/iswblank.texi: Likewise.
38477         * doc/posix-functions/iswcntrl.texi: Likewise.
38478         * doc/posix-functions/iswdigit.texi: Likewise.
38479         * doc/posix-functions/iswgraph.texi: Likewise.
38480         * doc/posix-functions/iswlower.texi: Likewise.
38481         * doc/posix-functions/iswprint.texi: Likewise.
38482         * doc/posix-functions/iswpunct.texi: Likewise.
38483         * doc/posix-functions/iswspace.texi: Likewise.
38484         * doc/posix-functions/iswupper.texi: Likewise.
38485         * doc/posix-functions/iswxdigit.texi: Likewise.
38486         Reported by Alain Guibert.
38487
38488 2008-04-21  Bruno Haible  <bruno@clisp.org>
38489
38490         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38491         Patch by Alain Guibert.
38492
38493 2008-04-21  Bruno Haible  <bruno@clisp.org>
38494
38495         Fix test failures on mingw.
38496         * tests/test-xstrtol.c (print_no_progname): New function.
38497         (main): Install it in error_print_progname hook.
38498         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38499         * tests/test-xstrtoimax.sh: Likewise.
38500         * tests/test-xstrtoumax.sh: Likewise.
38501
38502 2008-04-21  Bruno Haible  <bruno@clisp.org>
38503
38504         Fix test failure on mingw.
38505         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38506
38507 2008-04-21  Bruno Haible  <bruno@clisp.org>
38508
38509         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38510         Actually assign a value.
38511
38512 2008-04-20  Bruno Haible  <bruno@clisp.org>
38513
38514         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38515         take 2.
38516         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38517         'canonicalize-lgpl' module is also used.
38518         * lib/canonicalize-lgpl.c: Undo last change.
38519         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38520
38521 2008-04-20  Bruno Haible  <bruno@clisp.org>
38522
38523         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38524         config.h. Provide _mkdir based fallback for mingw.
38525         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38526         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38527         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38528         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38529         rather than defining mkdir in config.h.
38530         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38531         (gl_SYS_STAT_H_DEFAULTS): New macro.
38532         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38533         HAVE_IO_H any more.
38534         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38535         HAVE_DECL_MKDIR and HAVE_IO_H.
38536
38537 2008-04-20  Bruno Haible  <bruno@clisp.org>
38538
38539         * lib/isapipe.c: Port to native Windows platforms.
38540
38541 2008-04-20  Bruno Haible  <bruno@clisp.org>
38542
38543         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38544
38545 2008-04-21  Eric Blake  <ebb9@byu.net>
38546
38547         Work around preprocessors that don't handle UINTMAX_MAX.
38548         * lib/memchr2.c (memchr2): Avoid embedded #if.
38549         Reported by Alain Guibert, fix suggested by Bruno Haible.
38550
38551 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38552
38553         * doc/posix-functions/strftime.texi (strftime): Explain better
38554         Windows incompatibility.  Suggested by Micah Cowan
38555         <micah@cowan.name>.
38556
38557 2008-04-20  Bruno Haible  <bruno@clisp.org>
38558
38559         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38560         unistr/u8-mblen.
38561
38562 2008-04-20  Bruno Haible  <bruno@clisp.org>
38563
38564         Fix test failure on platforms with non-GNU iconv.
38565         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38566         (U_TO_U8): Use it, rather than u16_to_u8.
38567         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38568         units at the end of the input string.
38569         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38570
38571 2008-04-20  Bruno Haible  <bruno@clisp.org>
38572
38573         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38574         when the resulting length is 0.
38575         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38576
38577 2008-04-20  Bruno Haible  <bruno@clisp.org>
38578
38579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38580         works.
38581         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38582
38583 2008-04-20  Bruno Haible  <bruno@clisp.org>
38584
38585         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38586         * modules/tsearch-tests (configure.ac): Test for initstate function.
38587
38588 2008-04-20  Bruno Haible  <bruno@clisp.org>
38589
38590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38591         for nlink_t if missing.
38592         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38593
38594 2008-04-19  Bruno Haible  <bruno@clisp.org>
38595
38596         Work around snprintf bug on Linux libc5.
38597         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38599         gl_SNPRINTF_SIZE1.
38600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38601         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38602         that test failed.
38603         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38604         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38605         * modules/snprintf (Files): Add m4/printf.m4.
38606         * modules/vsnprintf (Files): Likewise.
38607         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38608         * doc/posix-functions/vsnprintf.texi: Likewise.
38609
38610 2008-04-19  Bruno Haible  <bruno@clisp.org>
38611
38612         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38613         from 0.0058 to less than 10^-7.
38614
38615 2008-04-19  Bruno Haible  <bruno@clisp.org>
38616
38617         Fix rounding when a precision is given.
38618         * lib/vasnprintf.c (is_borderline): New function.
38619         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38620         9...9x.
38621         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38622         %e, %g.
38623         * tests/test-vasprintf-posix.c (test_function): Likewise.
38624         * tests/test-snprintf-posix.h (test_function): Likewise.
38625         * tests/test-sprintf-posix.h (test_function): Likewise.
38626         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38627         * tests/test-printf-posix.h (test_function): Likewise.
38628         * tests/test-printf-posix.output: Update.
38629         Reported by John Darrington <john@darrington.wattle.id.au> via
38630         Ben Pfaff <blp@cs.stanford.edu>.
38631
38632 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38633
38634         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38635         Suggested by Bruno Haible <bruno@clisp.org>.
38636
38637 2008-04-17  Bruno Haible  <bruno@clisp.org>
38638
38639         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38640         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38641         implementation.
38642         Patch by Bruce Merry <bmerry@gmail.com>.
38643
38644 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38645
38646         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38647         doesn't work under Windows.
38648
38649 2008-04-16  Bruno Haible  <bruno@clisp.org>
38650
38651         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38652         New macros.
38653         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38654         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38655         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38656         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38657         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38658         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38659         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38660         macros.
38661         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38662         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38663         Northern Sotho, Uighur.
38664
38665 2008-04-16  Bruno Haible  <bruno@clisp.org>
38666
38667         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38668         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38669         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38670         Reported by Daniel Bergström <daniel@octocode.com>.
38671
38672 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38673             Bruno Haible  <bruno@clisp.org>
38674
38675         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38676         function.
38677         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38678         New functions, mostly extracted from gl_locale_name_default.
38679         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38680
38681 2008-04-16  Eric Blake  <ebb9@byu.net>
38682
38683         Adjust strtod detection to catch glibc 2.7 bug.
38684         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38685         Reported by John Gatewood Ham.
38686
38687 2008-04-16  Bruno Haible  <bruno@clisp.org>
38688
38689         Add tentative support for Linux libc5.
38690         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38691         * lib/fpurge.c (fpurge): Likewise.
38692         * lib/freadable.c (freadable): Likewise.
38693         * lib/freadahead.c (freadahead): Likewise.
38694         * lib/freading.c (freading): Likewise.
38695         * lib/freadptr.c (freadptr): Likewise.
38696         * lib/freadseek.c (freadptrinc): Likewise.
38697         * lib/fseeko.c (rpl_fseeko): Likewise.
38698         * lib/fseterr.c (fseterr): Likewise.
38699         * lib/fwritable.c (fwritable): Likewise.
38700         * lib/fwriting.c (fwriting): Likewise.
38701         Reported by Alain Guibert <alguibert+bts@free.fr>.
38702
38703 2008-04-15  Bruno Haible  <bruno@clisp.org>
38704
38705         * modules/mathl (configure.ac): Define module indicator.
38706
38707 2008-04-15  Bruno Haible  <bruno@clisp.org>
38708
38709         * lib/logl.c (logl): Remove unused variables.
38710
38711 2008-04-15  Bruno Haible  <bruno@clisp.org>
38712
38713         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38714         fails.
38715
38716 2008-04-15  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/trim.c (trim2): Fix argument of isspace() macro.
38719
38720 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38721
38722         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38723         to 0.
38724         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38725
38726 2008-04-14  Bruno Haible  <bruno@clisp.org>
38727
38728         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38729         AC_LANG_PROGRAM argument.
38730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38731         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38733         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38734         * m4/math_h.m4 (gl_MATH_H): Likewise.
38735         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38736         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38737         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38738         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38739         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38740         * m4/regex.m4 (gl_REGEX): Likewise.
38741         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38742         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38744         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38746         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38747         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38748         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38749
38750 2008-04-14  Jim Meyering  <meyering@redhat.com>
38751
38752         test-strtod: fix typos: s/abs/fabs/
38753         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38754
38755 2008-04-13  Bruno Haible  <bruno@clisp.org>
38756
38757         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38758         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38759         module is also used and while not building the reloc-wrapper.
38760
38761 2008-04-13  Bruno Haible  <bruno@clisp.org>
38762
38763         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38764
38765 2008-04-13  Bruno Haible  <bruno@clisp.org>
38766
38767         Fix AIX compilation failure introduced on 2008-04-02.
38768         * tests/test-frexp.c (exp): Undefine before redefining.
38769         * tests/test-frexpl.c (exp): Likewise.
38770
38771 2008-04-13  Bruno Haible  <bruno@clisp.org>
38772
38773         Work around a HP-UX stdio bug.
38774         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38775         * tests/test-ftello.c (main): Likewise.
38776         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38777         * doc/posix-functions/ftello.texi: Likewise.
38778
38779 2008-04-13  Bruno Haible  <bruno@clisp.org>
38780
38781         Make test-signbit pass on HP-UX/hppa.
38782         * tests/test-signbit.c (minus_zerol): New variable.
38783         (test_signbitl): Use it.
38784
38785 2008-04-13  Bruno Haible  <bruno@clisp.org>
38786
38787         Make truncl work on OSF/1 4.0.
38788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38789         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38790         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38792         HAVE_DECL_TRUNCL.
38793         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38794         HAVE_DECL_TRUNCL.
38795         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38796
38797 2008-04-13  Bruno Haible  <bruno@clisp.org>
38798
38799         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38800
38801 2008-04-13  Bruno Haible  <bruno@clisp.org>
38802
38803         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38804         expression, so as to avoid HP-UX 11 cc compiler bug.
38805
38806 2008-04-13  Bruno Haible  <bruno@clisp.org>
38807
38808         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38809
38810 2008-04-13  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/git-merge-changelog.c: Remove empty declaration outside of
38813         functions.
38814
38815 2008-04-13  Bruno Haible  <bruno@clisp.org>
38816
38817         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38818
38819 2008-04-13  Bruno Haible  <bruno@clisp.org>
38820
38821         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38822         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38823         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38824         also if it exists but lacks definitions of the SHUT_* macros.
38825         * modules/sys_socket (Description): Update.
38826         Reported by Elbert Pol <e.pol@chello.nl>.
38827
38828 2008-04-13  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/localcharset.c (OS2): Don't redefine if already defined.
38831         Reported by Elbert Pol <e.pol@chello.nl>.
38832
38833 2008-04-13  Bruno Haible  <bruno@clisp.org>
38834
38835         * lib/binary-io.h [__EMX__]: Include <io.h>.
38836         Reported by Elbert Pol <e.pol@chello.nl>.
38837
38838 2008-04-12  Bruno Haible  <bruno@clisp.org>
38839
38840         * lib/fpucw.h: Enable the definitions also for x86_64.
38841         Needed for NetBSD/x86_64.
38842         Reported by Thomas Klausner <tk@giga.or.at>.
38843
38844 2008-04-12  Bruno Haible  <bruno@clisp.org>
38845
38846         * tests/test-strtod.c: Include isnand.h.
38847         (main): Use isnand instead of isnan.
38848         Reported by Jim Meyering.
38849
38850 2008-04-12  Bruno Haible  <bruno@clisp.org>
38851
38852         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38853         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38854
38855 2008-04-12  Jim Meyering  <meyering@redhat.com>
38856
38857         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38858
38859 2008-04-12  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38862         Reported by Elbert Pol <e.pol@chello.nl>.
38863
38864 2008-04-12  Eric Blake  <ebb9@byu.net>
38865
38866         Work around Solaris 10 math.h bug.
38867         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38868         (gl_MATH_H_DEFAULTS): Set up default.
38869         * modules/math (Makefile.am): Replace new indicators.
38870         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38871         * tests/test-math.c (main): Test this.
38872         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38873         * doc/posix-headers/math.texi (math.h): Mention bug.
38874         Reported by Nelson H. F. Beebe and Jim Meyering.
38875
38876 2008-04-11  Bruno Haible  <bruno@clisp.org>
38877
38878         Adapt to future versions of Apple GCC.
38879         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38880         Reported by Peter O'Gorman <peter@pogma.com>.
38881
38882 2008-04-11  Bruno Haible  <bruno@clisp.org>
38883
38884         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38885
38886 2008-04-11  Bruno Haible  <bruno@clisp.org>
38887
38888         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38889
38890         * modules/getaddrinfo-tests (Makefile.am): Define
38891         test_getaddrinfo_LDADD.
38892
38893 2008-04-11  Bruno Haible  <bruno@clisp.org>
38894
38895         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38896         (init): Fix syntax error.
38897         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38898         is declared.
38899
38900 2008-04-11  Bruno Haible  <bruno@clisp.org>
38901
38902         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38903         * modules/glob (Depends-on): Add stdbool.
38904
38905 2008-04-11  Bruno Haible  <bruno@clisp.org>
38906
38907         * lib/trim.c: Include <string.h>.
38908
38909 2008-04-11  Eric Blake  <ebb9@byu.net>
38910
38911         Avoid compile failure on OS/2.
38912         * lib/regex_internal.h (internal_function): Disable optimization
38913         on OS/2 (__EMX__), where it caused compiler error.
38914         Reported by Elbert Pol.
38915
38916 2008-04-11  Bruno Haible  <bruno@clisp.org>
38917
38918         Flush the standard error stream before aborting. Needed on mingw.
38919         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38920         * tests/test-array_list.c (ASSERT): Likewise.
38921         * tests/test-array_oset.c (ASSERT): Likewise.
38922         * tests/test-avltree_list.c (ASSERT): Likewise.
38923         * tests/test-avltree_oset.c (ASSERT): Likewise.
38924         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38925         * tests/test-binary-io.c (ASSERT): Likewise.
38926         * tests/test-byteswap.c (ASSERT): Likewise.
38927         * tests/test-c-ctype.c (ASSERT): Likewise.
38928         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38929         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38930         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38931         * tests/test-c-strstr.c (ASSERT): Likewise.
38932         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38933         * tests/test-canonicalize.c (ASSERT): Likewise.
38934         * tests/test-carray_list.c (ASSERT): Likewise.
38935         * tests/test-ceilf1.c (ASSERT): Likewise.
38936         * tests/test-ceilf2.c (ASSERT): Likewise.
38937         * tests/test-ceill.c (ASSERT): Likewise.
38938         * tests/test-count-one-bits.c (ASSERT): Likewise.
38939         * tests/test-fbufmode.c (ASSERT): Likewise.
38940         * tests/test-fflush2.c (ASSERT): Likewise.
38941         * tests/test-floorf1.c (ASSERT): Likewise.
38942         * tests/test-floorf2.c (ASSERT): Likewise.
38943         * tests/test-floorl.c (ASSERT): Likewise.
38944         * tests/test-fopen.c (ASSERT): Likewise.
38945         * tests/test-fpending.c (ASSERT): Likewise.
38946         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38947         * tests/test-fpurge.c (ASSERT): Likewise.
38948         * tests/test-freadable.c (ASSERT): Likewise.
38949         * tests/test-freadahead.c (ASSERT): Likewise.
38950         * tests/test-freading.c (ASSERT): Likewise.
38951         * tests/test-freadptr.c (ASSERT): Likewise.
38952         * tests/test-freadptr2.c (ASSERT): Likewise.
38953         * tests/test-freadseek.c (ASSERT): Likewise.
38954         * tests/test-freopen.c (ASSERT): Likewise.
38955         * tests/test-frexp.c (ASSERT): Likewise.
38956         * tests/test-frexpl.c (ASSERT): Likewise.
38957         * tests/test-fseek.c (ASSERT): Likewise.
38958         * tests/test-fseeko.c (ASSERT): Likewise.
38959         * tests/test-fstrcmp.c (ASSERT): Likewise.
38960         * tests/test-ftell.c (ASSERT): Likewise.
38961         * tests/test-ftello.c (ASSERT): Likewise.
38962         * tests/test-func.c (ASSERT): Likewise.
38963         * tests/test-fwritable.c (ASSERT): Likewise.
38964         * tests/test-fwriting.c (ASSERT): Likewise.
38965         * tests/test-getdelim.c (ASSERT): Likewise.
38966         * tests/test-getline.c (ASSERT): Likewise.
38967         * tests/test-i-ring.c (ASSERT): Likewise.
38968         * tests/test-iconv-utf.c (ASSERT): Likewise.
38969         * tests/test-iconv.c (ASSERT): Likewise.
38970         * tests/test-isfinite.c (ASSERT): Likewise.
38971         * tests/test-isnand.c (ASSERT): Likewise.
38972         * tests/test-isnanf.c (ASSERT): Likewise.
38973         * tests/test-isnanl.h (ASSERT): Likewise.
38974         * tests/test-ldexpl.c (ASSERT): Likewise.
38975         * tests/test-linked_list.c (ASSERT): Likewise.
38976         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38977         * tests/test-localename.c (ASSERT): Likewise.
38978         * tests/test-lseek.c (ASSERT): Likewise.
38979         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38980         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38981         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38982         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38983         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38984         * tests/test-mbschr.c (ASSERT): Likewise.
38985         * tests/test-mbscspn.c (ASSERT): Likewise.
38986         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38987         * tests/test-mbspbrk.c (ASSERT): Likewise.
38988         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38989         * tests/test-mbsrchr.c (ASSERT): Likewise.
38990         * tests/test-mbsspn.c (ASSERT): Likewise.
38991         * tests/test-mbsstr1.c (ASSERT): Likewise.
38992         * tests/test-mbsstr2.c (ASSERT): Likewise.
38993         * tests/test-mbsstr3.c (ASSERT): Likewise.
38994         * tests/test-memchr2.c (ASSERT): Likewise.
38995         * tests/test-memmem.c (ASSERT): Likewise.
38996         * tests/test-open.c (ASSERT): Likewise.
38997         * tests/test-printf-frexp.c (ASSERT): Likewise.
38998         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38999         * tests/test-printf-posix.c (ASSERT): Likewise.
39000         * tests/test-quotearg.c (ASSERT): Likewise.
39001         * tests/test-rbtree_list.c (ASSERT): Likewise.
39002         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39003         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39004         * tests/test-round1.c (ASSERT): Likewise.
39005         * tests/test-roundf1.c (ASSERT): Likewise.
39006         * tests/test-roundl.c (ASSERT): Likewise.
39007         * tests/test-signbit.c (ASSERT): Likewise.
39008         * tests/test-sleep.c (ASSERT): Likewise.
39009         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39010         * tests/test-snprintf.c (ASSERT): Likewise.
39011         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39012         * tests/test-stat-time.c (ASSERT): Likewise.
39013         * tests/test-strcasestr.c (ASSERT): Likewise.
39014         * tests/test-strerror.c (ASSERT): Likewise.
39015         * tests/test-striconv.c (ASSERT): Likewise.
39016         * tests/test-striconveh.c (ASSERT): Likewise.
39017         * tests/test-striconveha.c (ASSERT): Likewise.
39018         * tests/test-strsignal.c (ASSERT): Likewise.
39019         * tests/test-strstr.c (ASSERT): Likewise.
39020         * tests/test-strtod.c (ASSERT): Likewise.
39021         * tests/test-trunc1.c (ASSERT): Likewise.
39022         * tests/test-trunc2.c (ASSERT): Likewise.
39023         * tests/test-truncf1.c (ASSERT): Likewise.
39024         * tests/test-truncf2.c (ASSERT): Likewise.
39025         * tests/test-truncl.c (ASSERT): Likewise.
39026         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39027         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39028         * tests/test-vasnprintf.c (ASSERT): Likewise.
39029         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39030         * tests/test-vasprintf.c (ASSERT): Likewise.
39031         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39032         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39033         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39034         * tests/test-vsnprintf.c (ASSERT): Likewise.
39035         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39036         * tests/test-wcwidth.c (ASSERT): Likewise.
39037         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39038         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39039         * tests/test-xvasprintf.c (ASSERT): Likewise.
39040         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39041         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39042         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39043         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39044         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39045         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39046         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39047         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39048         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39049         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39050         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39051         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39052         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39053         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39054         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39055         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39056         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39057         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39058         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39059         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39060         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39061         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39062         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39063         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39064         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39065         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39066         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39067         * tests/unictype/test-combining.c (ASSERT): Likewise.
39068         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39069         * tests/unictype/test-digit.c (ASSERT): Likewise.
39070         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39071         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39072         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39073         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39074         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39075         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39076         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39077         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39078         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39079         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39080         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39081         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39082         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39083         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39084         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39085         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39086         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39087         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39088         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39089         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39090         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39091         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39092         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39093         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39094         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39095         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39096         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39097         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39098         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39099         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39100         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39101         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39102         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39103         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39104         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39105         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39106         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39107         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39108         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39109         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39110         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39111         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39112         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39113         Reported by Eric Blake.
39114
39115 2008-04-11  Bruno Haible  <bruno@clisp.org>
39116
39117         * lib/wchar.in.h: Tweak comment.
39118
39119 2008-04-11  Bruno Haible  <bruno@clisp.org>
39120
39121         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39122         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39123         gl_COMMON.
39124         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39125
39126 2008-04-11  Bruno Haible  <bruno@clisp.org>
39127
39128         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39129
39130 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39131
39132         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39133         of attempting to use non-existing /dev/*random.  Based on patch
39134         from Adam Strzelecki <ono@java.pl> in
39135         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39136
39137 2008-04-08  Bruno Haible  <bruno@clisp.org>
39138
39139         Add tentative support for emx+gcc.
39140         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39141         * lib/fpurge.c (fpurge): Likewise.
39142         * lib/freadable.c (freadable): Likewise.
39143         * lib/freadahead.c (freadahead): Likewise.
39144         * lib/freading.c (freading): Likewise.
39145         * lib/freadptr.c (freadptr): Likewise.
39146         * lib/freadseek.c (freadptrinc): Likewise.
39147         * lib/fseeko.c (rpl_fseeko): Likewise.
39148         * lib/fseterr.c (fseterr): Likewise.
39149         * lib/fwritable.c (fwritable): Likewise.
39150         * lib/fwriting.c (fwriting): Likewise.
39151         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39152
39153 2008-04-09  Eric Blake  <ebb9@byu.net>
39154
39155         Avoid some autoconf warnings.
39156         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39157         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39158         * m4/afs.m4 (gl_AFS): Likewise.
39159         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39160         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39161         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39162         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39163         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39164         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39165         (AC_CHECK_DECLS_ONCE): Likewise.
39166         Rename file...
39167         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39168         gnulib-tool requires autoconf 2.59 or better.
39169         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39170
39171 2008-04-08  Eric Blake  <ebb9@byu.net>
39172
39173         Use 'git describe --match' if present (added in git 1.5.5).
39174         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39175         if possible.
39176
39177 2008-04-08  Bruno Haible  <bruno@clisp.org>
39178
39179         Add tentative support for OpenServer.
39180         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39181         _ptr, _cnt.
39182         * lib/fpurge.c (fpurge): Likewise.
39183         * lib/freadable.c (freadable): Likewise.
39184         * lib/freadahead.c (freadahead): Likewise.
39185         * lib/freading.c (freading): Likewise.
39186         * lib/freadptr.c (freadptr): Likewise.
39187         * lib/freadseek.c (freadptrinc): Likewise.
39188         * lib/fseeko.c (rpl_fseeko): Likewise.
39189         * lib/fseterr.c (fseterr): Likewise.
39190         * lib/fwritable.c (fwritable): Likewise.
39191         * lib/fwriting.c (fwriting): Likewise.
39192         Reported by Roger Cornelius <rac@tenzing.org> and
39193         Brian K. White <brian@aljex.com>.
39194
39195 2008-04-06  Jim Meyering  <meyering@redhat.com>
39196
39197         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39198
39199 2008-04-06  Bruno Haible  <bruno@clisp.org>
39200
39201         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39202         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39203         * tests/test-printf-posix.sh: Likewise.
39204         * tests/test-vfprintf-posix.sh: Likewise.
39205         * tests/test-vprintf-posix.sh: Likewise.
39206         * tests/test-xprintf-posix.sh: Likewise.
39207
39208 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39209
39210         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39211         hide error from 'ls', needed on OS/2.
39212         Report by Elbert Pol <elbert.pol@gmail.com>.
39213
39214 2008-04-04  Eric Blake  <ebb9@byu.net>
39215
39216         Make test-fseeko.c failures meaningful.
39217         * tests/test-fseeko.c: Print line number on failure.
39218         * tests/test-fseek.c: Likewise.
39219         Reported by Nelson H. F. Beebe.
39220
39221         Improve strtod bug detection check.
39222         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39223         required for Solaris 10.
39224         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39225
39226 2008-04-04  Bruno Haible  <bruno@clisp.org>
39227
39228         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39229         by m4/setenv.m4.
39230
39231 2008-04-03  Eric Blake  <ebb9@byu.net>
39232
39233         Ensure sane .version contents.
39234         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39235         version string.
39236         * build-aux/git-version-gen: Improve documentation.
39237
39238         Make GNU make output nicer.
39239         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39240         MAKECMDGOALS to enforce message for all command line targets.  Set
39241         srcdir for use in maint.mk.
39242
39243         Another maintainer tweak.
39244         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39245         a target that regenerates version.
39246
39247 2008-04-03  Jim Meyering  <meyering@redhat.com>
39248
39249         vc-list-files: don't cause coreutils "make po-check" failure
39250         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39251
39252 2008-04-03  Eric Blake  <ebb9@byu.net>
39253
39254         Allow VPATH usage of vc-list-files.
39255         * build-aux/vc-list-files (scriptversion): Add timestamp.
39256         (options): Add --help, --version, -C.
39257         (CVS): Support installed cvsu.
39258
39259 2008-04-02  Bruno Haible  <bruno@clisp.org>
39260
39261         Avoid some "statement with no effect" warnings from gcc.
39262         * tests/test-wctype.c (main): Explicitly ignore unused values.
39263         Reported by Jim Meyering.
39264
39265 2008-04-02  Jim Meyering  <meyering@redhat.com>
39266
39267         Avoid some warnings from "gcc -Wshadow".
39268         * tests/test-frexp.c (exp): Define to a different identifier.
39269         * tests/test-frexpl.c (exp): Likewise.
39270
39271 2008-04-03  Jim Meyering  <meyering@redhat.com>
39272
39273         bootstrap: remove dangling *.[ch] symlinks from lib
39274         * build-aux/bootstrap [dangling symlink removal]: Move find's
39275         -depth option to precede all others, to avoid a warning.
39276         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39277
39278 2008-04-02  Bruno Haible  <bruno@clisp.org>
39279
39280         Avoid some warnings from "gcc -Wshadow".
39281         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39282         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39283         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39284         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39285         Reported by Jim Meyering.
39286
39287 2008-04-01  Bruno Haible  <bruno@clisp.org>
39288
39289         Fix test to work on IRIX 6.5 with cc.
39290         * tests/test-math.c (numeric_equal): New function.
39291         (main): Use it.
39292
39293 2008-04-01  Bruno Haible  <bruno@clisp.org>
39294
39295         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39296
39297 2008-04-01  Bruno Haible  <bruno@clisp.org>
39298
39299         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39300         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39301         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39302         (Depends-on): Remove math.
39303
39304         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39305         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39306         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39307         (Depends-on): Remove math.
39308
39309         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39310         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39311         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39312         (Depends-on): Remove math.
39313         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39314         (Depends-on): Remove math.
39315
39316         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39317         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39318         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39319         (Depends-on): Remove math.
39320         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39321         (Depends-on): Remove math.
39322
39323         * tests/test-round1.c: Include nan.h.
39324         (main): Use NaNd instead of NAN.
39325         * modules/round-tests (Files): Add tests/nan.h.
39326
39327         * tests/test-trunc1.c: Include nan.h.
39328         (main): Use NaNd instead of NAN.
39329         * modules/trunc-tests (Files): Add tests/nan.h.
39330
39331         * tests/test-roundf1.c: Include nan.h.
39332         (main): Use NaNf instead of NAN.
39333         * modules/roundf-tests (Files): Add tests/nan.h.
39334
39335         * tests/test-truncf1.c: Include nan.h.
39336         (main): Use NaNf instead of NAN.
39337         * modules/truncf-tests (Files): Add tests/nan.h.
39338
39339         * tests/test-ceilf1.c: Include nan.h.
39340         (main): Use NaNf instead of NAN.
39341         * modules/ceilf-tests (Files): Add tests/nan.h.
39342
39343         * tests/test-floorf1.c: Include nan.h.
39344         (main): Use NaNf instead of NAN.
39345         * modules/floorf-tests (Files): Add tests/nan.h.
39346
39347         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39348         (main): Use NaNf instead of NAN.
39349         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39350
39351         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39352         (main): Use NaNd instead of NAN.
39353         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39354
39355         * tests/test-frexp.c: Include nan.h.
39356         (main): Use NaNd instead of NAN.
39357         * modules/frexp-tests (Files): Add tests/nan.h.
39358
39359         * lib/isnan.c: Don't include <math.h>.
39360         (FUNC): Don't use NAN macro.
39361         * modules/isnand-nolibm (Depends-on): Remove math.
39362         * modules/isnanf-nolibm (Depends-on): Remove math.
39363         * modules/isnanl (Depends-on): Remove math.
39364         * modules/isnanl-nolibm (Depends-on): Remove math.
39365
39366         * tests/nan.h: New file.
39367
39368 2008-04-01  Eric Blake  <ebb9@byu.net>
39369
39370         Fix typos.
39371         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39372         values to be the right type.
39373
39374         For now, cater to gnulib strtod inaccuracies.
39375         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39376         fractional results.  While not as nice from a QoI perspective, it
39377         is a quicker patch than correctly implementing decimal to binary
39378         rounding.
39379
39380 2008-03-31  Eric Blake  <ebb9@byu.net>
39381
39382         Guarantee a definition of NAN.
39383         * lib/math.in.h (NAN): Define if missing.
39384         * tests/test-math.c (main): Test it.
39385         * doc/posix-headers/math.texi (math.h): Document this.
39386         * lib/isnan.c (rpl_isnand): Use it.
39387         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39388         * tests/test-floorf1.c (NaN): Likewise.
39389         * tests/test-frexp.c (NaN): Likewise.
39390         * tests/test-isnand.c (NaN): Likewise.
39391         * tests/test-isnanf.c (NaN): Likewise.
39392         * tests/test-round1.c (NaN): Likewise.
39393         * tests/test-roundf1.c (NaN): Likewise.
39394         * tests/test-snprintf-posix.h (NaN): Likewise.
39395         * tests/test-sprintf-posix.h (NaN): Likewise.
39396         * tests/test-trunc1.c (NaN): Likewise.
39397         * tests/test-truncf1.c (NaN): Likewise.
39398         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39399         * tests/test-vasprintf-posix.c (NaN): Likewise.
39400         * modules/isnand-nolibm (Depends-on): Add math.
39401         * modules/isnanf-nolibm (Depends-on): Likewise.
39402         * modules/isnanl (Depends-on): Likewise.
39403         * modules/isnanl-nolibm (Depends-on): Likewise.
39404         * modules/snprintf-posix-tests (Depends-on): Likewise.
39405         * modules/sprintf-posix-tests (Depends-on): Likewise.
39406         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39407         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39408         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39409         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39410
39411 2008-03-31  Bruno Haible  <bruno@clisp.org>
39412
39413         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39414         * doc/posix-functions/strtod.texi: Likewise.
39415
39416 2008-03-31  Bruno Haible  <bruno@clisp.org>
39417
39418         * tests/test-strtod.c (main): Don't use C99 syntax.
39419
39420 2008-03-31  Bruno Haible  <bruno@clisp.org>
39421
39422         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39423         Reported by Eric Blake.
39424
39425 2008-03-31  Jim Meyering  <meyering@redhat.com>
39426
39427         Don't compare actual signbit return values.
39428         * tests/test-strtod.c (main): Rather, compare only their
39429         zero/non-zero nature.
39430
39431 2008-03-31  Eric Blake  <ebb9@byu.net>
39432
39433         More strtod documentation.
39434         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39435         failures as distinct bugs.
39436
39437 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39438
39439         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39440         Problem reported by Erik Benada in
39441         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39442
39443 2008-03-30  Bruno Haible  <bruno@clisp.org>
39444
39445         * tests/test-strtod.c: Add comments about which assertion fails on which
39446         platform.
39447         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39448
39449 2008-03-30  Eric Blake  <ebb9@byu.net>
39450
39451         Test signbit behavior on zeros.
39452         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39453         (test_signbitd, test_signbitl): Likewise.
39454
39455         More strtod touchups.
39456         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39457         sign of negative underflow, for now.  Use .5, not .1.
39458         * doc/posix-functions/strtod.texi (strtod): Mention these
39459         limitations.
39460         Reported by Jim Meyering.
39461
39462 2008-03-30  Bruno Haible  <bruno@clisp.org>
39463
39464         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39465         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39466
39467 2008-03-30  Bruno Haible  <bruno@clisp.org>
39468
39469         Avoid failure when attempting to return empty iconv results on some
39470         platforms.
39471         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39472         allocation, don't report ENOMEM when the resulting string is empty.
39473
39474 2008-03-30  Bruno Haible  <bruno@clisp.org>
39475
39476         Fix buffer overrun.
39477         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39478         Don't consider the width for tmp_length. Check count against tmp_length
39479         before doing the padding. Ensure enough allocation during padding.
39480
39481 2008-03-30  Eric Blake  <ebb9@byu.net>
39482
39483         strtod touchups.
39484         * lib/strtod.c (strtod): Avoid compiler warnings.
39485         Reported by Jim Meyering.
39486
39487 2008-03-30  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39490         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39491         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39492         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39493         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39494         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39495         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39496         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39497
39498         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39499         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39500         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39501         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39502         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39503         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39504         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39505         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39506
39507         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39508         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39509         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39510         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39511         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39512         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39513         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39514         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39515
39516         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39517         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39518
39519         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39520         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39521
39522         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39523         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39524
39525         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39527         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39528
39529         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39531         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39532
39533         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39535         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39536
39537         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39539         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39540
39541         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39542         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39544         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39545         (Depends-on): Add EOVERFLOW.
39546         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39547         (Depends-on): Add EOVERFLOW.
39548         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39549         (Depends-on): Add EOVERFLOW.
39550         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39551         (Depends-on): Add EOVERFLOW.
39552         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39553         (Depends-on): Add EOVERFLOW.
39554         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39555         (Depends-on): Add EOVERFLOW.
39556         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39557         (Depends-on): Add EOVERFLOW.
39558         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39559         (Depends-on): Add EOVERFLOW.
39560
39561         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39563         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39564
39565         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39567         * modules/snprintf (Depends-on): Add EOVERFLOW.
39568
39569         * lib/poll.c (EOVERFLOW): Remove fallback.
39570         * modules/poll (Depends-on): Add EOVERFLOW.
39571
39572         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39573         * modules/getugroups (Depends-on): Add EOVERFLOW.
39574
39575         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39576         * modules/getdelim (Depends-on): Add EOVERFLOW.
39577
39578         * lib/ftell.c (EOVERFLOW): Remove fallback.
39579         * modules/ftell (Depends-on): Add EOVERFLOW.
39580
39581         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39583         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39584
39585         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39586
39587         * modules/EOVERFLOW-tests: New file.
39588         * tests/test-EOVERFLOW.c: New file.
39589
39590         * modules/EOVERFLOW: New file.
39591         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39592
39593 2008-03-30  Bruno Haible  <bruno@clisp.org>
39594
39595         Fix bug introduced on 2007-06-10.
39596         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39597         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39598
39599 2008-03-30  Bruno Haible  <bruno@clisp.org>
39600
39601         Improve freadseek's efficiency after ungetc.
39602         * lib/freadseek.c: Include freadahead.h.
39603         (freadptrinc): New function, extracted from freadseek.
39604         (freadseek): Use it in a loop. Use freadahead to determine the number
39605         of loop iterations.
39606         * modules/freadseek (Depends-on): Add freadahead.
39607         (configure.ac): Require AC_C_INLINE.
39608
39609 2008-03-30  Bruno Haible  <bruno@clisp.org>
39610
39611         * lib/freadseek.c (freadseek): Don't ignore the return value of
39612         freadptr.
39613
39614 2008-03-29  Eric Blake  <ebb9@byu.net>
39615
39616         Add hex float support.
39617         * modules/strtod (Depends-on): Add c-ctype.
39618         (Link): Mention POW_LIB.
39619         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39620         whitespace between 'e' and exponent.
39621         * tests/test-strtod.c (main): Enable hex float tests.
39622         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39623         now provides.
39624
39625         Document various strtod bugs, with some fixes.
39626         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39627         "-0x", "inf", "nan", and hex constants.
39628         * doc/posix-functions/atof.texi (atof): Likewise.
39629         * modules/stdlib (Makefile.am): Support strtod.
39630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39631         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39632         detect additional strtod bugs.
39633         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39634         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39635         bool where appropriate.  Parse 'inf' and 'nan'.
39636         * tests/test-strtod.c: New file.
39637         * modules/strtod (Depends-on): Add stdbool, stdlib.
39638         (configure.ac): Turn on module indicator.
39639         * modules/strtod-tests: New module.
39640
39641 2008-03-29  Eric Blake  <ebb9@byu.net>
39642
39643         Fix ftell on mingw.
39644         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39645         * modules/ftell-tests (Depends-on): Add binary-io.
39646         * modules/ftello-tests (Depends-on): Likewise.
39647         * tests/test-ftell.c (main): Enhance test to cover behavior after
39648         ungetc.  Enforce binary mode.
39649         * tests/test-ftello.c (main): Likewise.
39650
39651         Pass test-freadseek on cygwin.
39652         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39653         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39654         ungetc buffer.
39655
39656         * tests/test-fflush2.c (main): Fix typo.
39657
39658 2008-03-29  Bruno Haible  <bruno@clisp.org>
39659
39660         * tests/test-fflush2.c (main): Temporarily disable the contents of
39661         this test.
39662         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39663         Reported by Eric Blake.
39664
39665 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39666
39667         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39668         (GC_SHA224_DIGEST_SIZE): Add.
39669
39670         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39671         (gc_hash_digest_length): Likewise.
39672         (gc_hash_buffer): Likewise.
39673
39674 2008-03-25  Bruno Haible  <bruno@clisp.org>
39675
39676         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39677         detail which gettext release to use.
39678         Reported by Simon Josefsson.
39679
39680 2008-03-26  Jim Meyering  <meyering@redhat.com>
39681
39682         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39683         * modules/gnumakefile (clean-GNUmakefile): Also, use
39684         test ... && ... || : syntax rather than if-then ... fi.
39685
39686         gnumakefile: Don't double-quote-expand $(VPATH) value.
39687         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39688
39689 2008-03-24  Eric Blake  <ebb9@byu.net>
39690
39691         Alter GNUmakefile to install into top directory.
39692         * modules/maintainer-makefile: Split, and add dependency...
39693         * modules/gnumakefile: to this new module.
39694         * build-aux/GNUmakefile: Move...
39695         * top/GNUmakefile: ...here.
39696         * build-aux/maint.mk: Move...
39697         * top/maint.mk: ...here.
39698         * MODULES.html.sh (Support for maintaining...): Document new
39699         module.
39700
39701 2008-03-23  Bruno Haible  <bruno@clisp.org>
39702
39703         * gnulib-tool: New options --vc-files, --no-vc-files.
39704         (func_usage): Document them.
39705         (vc_files): New variable.
39706         (func_import): Consider vc_files.
39707         (func_create_testdir): Set vc_files to empty.
39708         Suggested by Jim Meyering and Karl Berry.
39709
39710 2008-03-23  Bruno Haible  <bruno@clisp.org>
39711
39712         Fix regex compilation error on HP-UX 11.
39713         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39714         * modules/regex (Files): Add m4/mbstate_t.m4.
39715         Reported by Ton Voon <ton.voon@altinity.com>.
39716
39717 2008-03-23  Bruno Haible  <bruno@clisp.org>
39718
39719         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39720
39721 2008-03-23  Eric Blake  <ebb9@byu.net>
39722             Bruno Haible  <bruno@clisp.org>
39723
39724         Install files from top/ in the destination directory.
39725         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39726         augmentation also for the files from top/.
39727         (func_import, func_create_testdir): Rewrite file names:
39728         top/filename -> filename.
39729
39730 2008-03-23  Bruno Haible  <bruno@clisp.org>
39731
39732         Tweak "gnulib --version" output.
39733         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39734
39735 2008-03-23  Bruno Haible  <bruno@clisp.org>
39736
39737         Tweak "gnulib --version" output.
39738         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39739         rather than contents of ChangeLog, when possible.
39740
39741 2008-03-21  Eric Blake  <ebb9@byu.net>
39742
39743         More --version tweaks.
39744         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39745         date of last ChangeLog entry.
39746
39747 2008-03-21  Jim Meyering  <meyering@redhat.com>
39748
39749         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39750
39751 2008-03-20  Eric Blake  <ebb9@byu.net>
39752
39753         VPATH fix.
39754         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39755
39756 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39757
39758         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39759         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39760
39761 2008-03-20  Eric Blake  <ebb9@byu.net>
39762
39763         Sync GNUmakefile with coreutils.
39764         * build-aux/GNUmakefile (have-Makefile): Rename...
39765         (_have-Makefile): ...to this, for namespace consideration.
39766         (GNUmakefile.cfg): Include, if present.
39767         (_autoreconf): Define a default.
39768         (_is-dist-target): New rule for rebuilds to pick up intra-release
39769         version.
39770         (maint-cfg.mk): Rename...
39771         (cfg.mk): ...to this.
39772
39773 2008-03-18  Jim Meyering  <meyering@redhat.com>
39774
39775         New script and module: mktempd
39776         * MODULES.html.sh (maint+release support): Add mktempd.
39777         * build-aux/mktempd: New file.
39778         * modules/mktempd: New file.
39779
39780 2008-03-15  Jim Meyering  <meyering@redhat.com>
39781
39782         Undo last change.
39783         * lib/sha1.c, lib/md5.c: 63 != ~63.
39784         Reported by Andreas Schwab.
39785
39786         sha1.c, md5.c: Hoist a redundant expression.
39787         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39788         "ctx->buflen" only once, before calling *_process_block.
39789         * lib/md5.c (md5_process_bytes): Likewise.
39790
39791 2008-03-14  Eric Blake  <ebb9@byu.net>
39792
39793         Bump copyright year in files generated by gnulib-tool.
39794         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39795         gnulib-tool, rather than hard-coding it.
39796
39797         Fix 'gnulib-tool --version' output to work with git.
39798         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39799         (startup): ...here.
39800         (func_version): Use it to invoke git-version-gen, rather than
39801         relying on CVS keyword expansion.  Modernize wording.
39802         (cvsdatestamp, last_checkin_date, version): Kill unused
39803         variables.
39804
39805 2008-03-12  Jim Meyering  <meyering@redhat.com>
39806
39807         Recognize optional cast of the argument to free.
39808         * build-aux/useless-if-before-free: Update regexps.
39809
39810         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39811
39812 2008-03-11  Bruno Haible  <bruno@clisp.org>
39813
39814         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39815         by a single package.
39816         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39817         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39818         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39819         Reported by Sam Steingold <sds@gnu.org>.
39820
39821 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39822
39823         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39824         repositories.
39825
39826 2008-03-11  Bruno Haible  <bruno@clisp.org>
39827
39828         Avoid conflicts between local macro definitions.
39829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39830         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39831
39832 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39833             Bruno Haible  <bruno@clisp.org>
39834
39835         Make va_copy work with some version of xlc on AIX 5.1.
39836         * lib/stdarg.in.h: New file.
39837         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39838         On AIX, use a <stdarg.h> file substitute.
39839         * modules/stdarg (Files): Add lib/stdarg.in.h.
39840         (Depends-on): Add include_next.
39841         (Makefile.am): Build a stdarg.h substitute if requested.
39842         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39843
39844 2008-03-10  Bruno Haible  <bruno@clisp.org>
39845
39846         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39848         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39849
39850 2008-03-10  Bruno Haible  <bruno@clisp.org>
39851
39852         * modules/stdlib (Depends-on): Add include_next, remove
39853         absolute-header.
39854
39855 2008-03-09  Bruno Haible  <bruno@clisp.org>
39856
39857         * lib/freadahead.h (freadahead): Document more precisely.
39858         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39859         the sum of both buffer sizes.
39860         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39861         * NEWS: Document the change.
39862
39863 2008-03-09  Bruno Haible  <bruno@clisp.org>
39864
39865         Extend freadptr to return also the buffer size.
39866         * lib/freadptr.h (freadptr): Add sizep argument.
39867         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39868         (freadptr): Add sizep argument. Determine buffer size like freadahead
39869         does.
39870         * tests/test-freadptr.c: Don't include freadahead.h.
39871         (main): Adapt for new calling convention of freadptr.
39872         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39873         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39874         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39875         tests/test-freadptr2.sh.
39876         (Depends): Remove freadahead.
39877         (TESTS): Add test-freadptr2.sh.
39878         (check_PROGRAMS): Add test-freadptr2.
39879
39880 2008-03-09  Bruno Haible  <bruno@clisp.org>
39881
39882         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39883         Report and solution by Simon Josefsson.
39884
39885 2008-03-06  Bruno Haible  <bruno@clisp.org>
39886
39887         Make fflush after ungetc work on BSD platforms.
39888         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39889         * tests/test-fflush2.c: New file.
39890         * tests/test-fflush2.sh: New file.
39891         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39892         tests/test-fflush2.c.
39893         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39894         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39895
39896 2008-03-06  Eric Blake  <ebb9@byu.net>
39897
39898         Likewise for ftello.
39899         * modules/ftello (Dependencies): Add extensions.
39900         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39901
39902 2008-03-06  Bruno Haible  <bruno@clisp.org>
39903
39904         * modules/fseeko (Dependencies): Add extensions.
39905         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39906         Needed on glibc systems.
39907
39908 2008-03-06  Bruno Haible  <bruno@clisp.org>
39909
39910         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39911         email address.
39912         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39913
39914 2008-03-06  Bruno Haible  <bruno@clisp.org>
39915
39916         * users.txt: Add libgnupdf.
39917
39918 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39919
39920         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39921         (Header File Substitutes, Function Substitutes,
39922         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39923         (Build robot for gnulib): Fix typo.
39924
39925 2008-03-06  Bruno Haible  <bruno@clisp.org>
39926
39927         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39928         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39929
39930 2008-03-06  Bruno Haible  <bruno@clisp.org>
39931
39932         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39933         * doc/gnulib.texi: Include it.
39934
39935 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39936
39937         * modules/func (License): Change license to unlimited; there was
39938         no LGPL parts in the module anyway.
39939
39940 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39941
39942         * modules/__func__: Renamed to modules/func.
39943         * modules/__func__-tests: Renamed to modules/func-tests.
39944         * tests/test-__func__.c: Renamed to tests/test-func.c.
39945         * m4/__func__.m4: Renamed to m4/func.m4.
39946         * doc/gnulib.texi (__func__): Section renamed to func.
39947         Suggested by Eric Blake <ebb9@byu.net>.
39948
39949 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39950
39951         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39952         about __func__.  Make example self-contained.  Suggested by Eric
39953         Blake <ebb9@byu.net>.
39954
39955         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39956         Suggested by Eric Blake <ebb9@byu.net>.
39957
39958 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39959
39960         * modules/__func__: New file.
39961         * modules/__func__-tests: New file.
39962         * tests/test-__func__.c: New file.
39963         * m4/__func__.m4: New file.
39964         * doc/gnulib.texi (__func__): Document __func__ module.
39965
39966 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39967
39968         * modules/byteswap (License): Re-license as LGPLv2+.
39969
39970 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39971
39972         * doc/Makefile: Add pdf target.
39973
39974 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39975
39976         * modules/inline (License): Use 'unlimited', since there are only
39977         *.m4 files in this module.
39978
39979 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39980             Bruno Haible  <bruno@clisp.org>
39981
39982         Add support for HP C 7.1 on OpenVMS 8.3.
39983         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39984
39985 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39986
39987         Update VMS specifics.
39988         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39989
39990 2008-03-02  Jim Meyering  <meyering@redhat.com>
39991
39992         Remove the last dependency on the "free" module.
39993         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39994         Reported by Bob Proulx.
39995
39996         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39997
39998         Remove useless "if" tests before free.  Deprecate "free" module.
39999         * doc/posix-functions/free.texi: Mention that this
40000         module is no longer useful.
40001         * modules/free (Notice): Say this module is obsolete.
40002         * modules/readutmp (Depends-on): Remove free.
40003         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40004         * lib/putenv.c (putenv): Likewise.
40005         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40006         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40007         * tests/test-c-strcasestr.c (main): Likewise.
40008         * tests/test-c-strstr.c (main): Likewise.
40009         * tests/test-mbscasestr1.c (main): Likewise.
40010         * tests/test-mbscasestr2.c (main): Likewise.
40011         * tests/test-mbsstr1.c (main): Likewise.
40012         * tests/test-mbsstr2.c (main): Likewise.
40013         * tests/test-memmem.c (main): Likewise.
40014         * tests/test-strcasestr.c (main): Likewise.
40015         * tests/test-striconv.c (main): Likewise.
40016         * tests/test-striconveh.c (main): Likewise.
40017         * tests/test-striconveha.c (main): Likewise.
40018         * tests/test-strstr.c (main): Likewise.
40019
40020         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40021
40022         bootstrap: sync from coreutils again
40023         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40024
40025 2008-03-01  Jim Meyering  <meyering@redhat.com>
40026
40027         bootstrap: sync from coreutils
40028         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40029         also when the target doesn't exist.
40030
40031 2008-03-01  Eric Blake  <ebb9@byu.net>
40032
40033         Fix bugs in last patch.
40034         * lib/memchr2.c (memchr2): Fix typo.
40035         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40036         extension.
40037         Reported by Bruce Korb.
40038
40039         New module 'memchr2'.
40040         * modules/memchr2: New file.
40041         * modules/memchr2-tests: Likewise.
40042         * lib/memchr2.h: Likewise.
40043         * lib/memchr2.c: Likewise, based on memchr.c.
40044         * tests/test-memchr2.c: New test.
40045         * MODULES.html.sh (String handling): Add memchr2.
40046
40047 2008-02-29  Bruno Haible  <bruno@clisp.org>
40048
40049         * modules/freadseek-tests: New file.
40050         * tests/test-freadseek.sh: New file.
40051         * tests/test-freadseek.c: New file.
40052
40053         New module 'freadseek'.
40054         * modules/freadseek: New file.
40055         * lib/freadseek.h: New file.
40056         * lib/freadseek.c: New file.
40057         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40058
40059 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40060
40061         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40062         wydawca.
40063
40064         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40065         program_invocation_name and program_invocation_short_name are
40066         present.
40067
40068 2008-02-28  Bruno Haible  <bruno@clisp.org>
40069
40070         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40071         * tests/test-freadptr.sh: Also test non-seekable stdin.
40072
40073 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40074
40075         * build-aux/bootstrap (source_base, m4_base)
40076         (doc_base, tests_base): New variables.
40077         (gnulib_tool_options): Do not hardcode base directories, use
40078         the above variables instead.
40079
40080 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40081
40082         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40083
40084 2008-02-28  Bruno Haible  <bruno@clisp.org>
40085
40086         * modules/freadptr-tests: New file.
40087         * tests/test-freadptr.sh: New file.
40088         * tests/test-freadptr.c: New file.
40089
40090         New module 'freadptr'.
40091         * modules/freadptr: New file.
40092         * lib/freadptr.h: New file.
40093         * lib/freadptr.c: New file.
40094         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40095
40096 2008-02-26  Karl Berry  <karl@freefriends.org>
40097
40098         Sync from Libtool:
40099         * libltdl/argz.c (argz_add, argz_count): New functions.
40100         * libltdl/argz.in.h: Declare them.
40101         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40102
40103 2008-02-22  Bruno Haible  <bruno@clisp.org>
40104
40105         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40106         is a pointer type.  Needed for HP-UX 10.
40107         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40108         * doc/posix-functions/gmtime_r.texi: Likewise.
40109         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40110
40111 2008-02-24  Bruno Haible  <bruno@clisp.org>
40112
40113         * modules/environ-tests: New file.
40114         * tests/test-environ.c: New file.
40115
40116         New module 'environ'.
40117         * modules/environ: New file.
40118         * lib/unistd.in.h (environ): New declaration.
40119         * m4/environ.m4: New file.
40120         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40121         after use.
40122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40123         HAVE_DECL_ENVIRON.
40124         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40125         HAVE_DECL_ENVIRON.
40126         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40127         wrong claim that 'environ' is missing on some systems.
40128         * modules/execute (Depends-on): Add environ.
40129         * lib/execute.c (environ): Remove fallback declaration.
40130         * modules/pipe (Depends-on): Add environ.
40131         * lib/pipe.c (environ): Remove fallback declaration.
40132         * modules/setenv (Depends-on): Add environ.
40133         * lib/setenv.c (environ): Remove fallback declaration.
40134         * modules/unsetenv (Depends-on): Add environ.
40135         * lib/unsetenv.c (environ): Remove fallback declaration.
40136         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40137         m4/environ.m4.
40138         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40139         (gl_PREREQ_UNSETENV): Likewise.
40140
40141 2008-02-24  Bruno Haible  <bruno@clisp.org>
40142
40143         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40144
40145 2008-02-20  Bob Proulx  <bob@proulx.com>
40146
40147         Enable use of older two part flavor 'git describe'.
40148         * build-aux/git-version-gen: If using the older two part flavor of
40149         git version then recreate the third part now present in the
40150         newer three part flavor of git describe.
40151
40152 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40153
40154         * lib/fts.c (fts_build): Typo correction to comment.
40155
40156 2008-02-17  Bruno Haible  <bruno@clisp.org>
40157
40158         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40159         generating no-op conflicts.
40160
40161 2008-02-17  Bruno Haible  <bruno@clisp.org>
40162
40163         Speed up by 10%.
40164         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40165         result_entries, rather than an index-based loop.
40166
40167 2008-02-17  Bruno Haible  <bruno@clisp.org>
40168
40169         Speed up by 25%.
40170         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40171         'hashcode_cached'.
40172         (entry_create): New function.
40173         (entry_hashcode): Use the cached hashcode if possible.
40174         (read_changelog_file, try_split_merged_entry): Use entry_create.
40175
40176 2008-02-17  Bruno Haible  <bruno@clisp.org>
40177
40178         Speed up from O(n^2) to O(n) for long ChangeLog files.
40179         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40180         (read_changelog_file): Change implementation of entries_reversed list
40181         to rbtreehash.
40182         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40183
40184 2008-02-17  Bruno Haible  <bruno@clisp.org>
40185
40186         New option --split-merged-entry.
40187         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40188         (find_paragraph_end, try_split_merged_entry): New functions.
40189         (long_options): Add option --split-merged-entry.
40190         (usage): Document option --split-merged-entry.
40191         (main): Implement option --split-merged-entry.
40192         Reported by Eric Blake.
40193
40194 2008-02-17  Bruno Haible  <bruno@clisp.org>
40195
40196         * lib/git-merge-changelog.c: Include c-strstr.h.
40197         (main): Support the "git pull --rebase" situation.
40198         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40199         Reported by Eric Blake.
40200
40201 2008-02-16  Eric Blake  <ebb9@byu.net>
40202
40203         Avoid doubling \ in common case of "c-maybe" quoting style.
40204         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40205         eliding outer quotes.
40206         * lib/quotearg.h: Document this.
40207         * tests/test-quotearg.c (result_strings, inputs, results_g)
40208         (flag_results, locale_results): Test it by adding a new string to
40209         each test group.
40210         (compare_strings): Test new string.
40211
40212 2008-02-13  Eric Blake  <ebb9@byu.net>
40213
40214         Avoid trigraph quoting in default output.
40215         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40216         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40217         unless explicitly requested.
40218         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40219
40220 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40221
40222         Don't rely on signed integer overflowing to negative value.
40223         * lib/getugroups.c (getugroups): Include <limits.h>.
40224         Instead, compare against INT_MAX, and increment only if the test passes.
40225
40226 2008-02-13  Jim Meyering  <meyering@redhat.com>
40227         and Eric Blake  <ebb9@byu.net>
40228
40229         Avoid shadowing warning and compile errors on Linux.
40230         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40231         forwarding macros on Linux.
40232         (dcgettext): Define a stub, for Linux.
40233         (results_g, main): Avoid warnings.
40234
40235 2008-02-12  Eric Blake  <ebb9@byu.net>
40236
40237         Silence warning in last patch.
40238         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40239
40240         Quotearg part 4: add tests, fix c-maybe colon quoting.
40241         * lib/quotearg.h: Improve documentation.
40242         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40243         escapes when adding outer quotes.  When quoting trigraphs, use
40244         valid C notation.  When quoting NUL, omit extra characters if next
40245         character is not digit.  Alter prototype.
40246         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40247         callers.
40248         * modules/quotearg-tests: New module.
40249         * tests/test-quotearg.c: New test.
40250
40251 2008-02-07  Eric Blake  <ebb9@byu.net>
40252
40253         Quotearg part 3: add flag to control outer quote elision.
40254         * lib/quotearg.h (c_maybe_quoting_style): New style.
40255         (enum quoting_flags): Better documentation of flags.
40256         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40257         c-maybe style.
40258         (quotearg_buffer_restyled): Handle new flag to elide outer
40259         quotes.
40260
40261         Quotearg part 2: add flag that can control NUL elision.
40262         * lib/quotearg.h (set_quoting_flags): New prototype.
40263         * lib/quotearg.c (struct quoting_options): Add flag field.
40264         (set_quoting_flags): New function.
40265         (quotearg_buffer_restyled): Add flags parameter.
40266         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40267         (quotearg_n_options): Set the flag, since length cannot be
40268         returned.
40269         (quoting_options_from_style): Default flags correctly.
40270
40271         Quotearg part 1: more wrappers, restore quotearg_char state.
40272         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40273         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40274         (quotearg_colon_mem): New wrappers.
40275         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40276         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40277         functions.
40278         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40279         (quotearg_colon_mem): New functions.
40280
40281 2008-02-11  Bruno Haible  <bruno@clisp.org>
40282
40283         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40284         library in the current directory: it does not work with parallel make.
40285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40286
40287 2008-02-11  Bruno Haible  <bruno@clisp.org>
40288
40289         * .gitattributes: New file.
40290
40291 2008-02-11  Jim Meyering  <meyering@redhat.com>
40292
40293         useless-if-before-free: Fix reversed exit values.
40294         * build-aux/useless-if-before-free: Use correct values
40295         for EXIT_MATCH and EXIT_NO_MATCH.
40296
40297         * build-aux/useless-if-before-free: Close stdout carefully.
40298
40299 2008-02-10  Bruno Haible  <bruno@clisp.org>
40300
40301         New module 'git-merge-changelog'.
40302         * modules/git-merge-changelog: New file.
40303         * lib/git-merge-changelog.c: New file.
40304
40305 2008-02-10  Jim Meyering  <meyering@redhat.com>
40306
40307         useless-if-before-free: New option: --list (-l).
40308
40309         useless-if-before-free: Don't exit immediately upon open failure.
40310         * build-aux/useless-if-before-free: Exit 2 for errors.
40311         Upon failure to open a file, don't exit immediately.
40312         Rather, just warn and continue with any remaining files.
40313
40314 2008-02-10  Bruno Haible  <bruno@clisp.org>
40315
40316         New abstract list operation 'node_set_value'.
40317         * lib/gl_list.h (gl_list_node_set_value): New function.
40318         (struct gl_list_implementation): New field node_set_value.
40319         * lib/gl_list.c (gl_list_node_set_value): New function.
40320         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40321         (gl_array_list_implementation): Update.
40322         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40323         (gl_carray_list_implementation): Update.
40324         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40325         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40326         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40327         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40328         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40329         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40330         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40331         Update.
40332         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40333         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40334         (gl_sublist_list_implementation): Update.
40335
40336 2008-02-10  Bruno Haible  <bruno@clisp.org>
40337
40338         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40339         Needed when ELEMENT is #defined to 'some_type *'.
40340
40341 2008-02-10  Jim Meyering  <meyering@redhat.com>
40342
40343         New script and module: useless-if-before-free
40344         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40345         * build-aux/useless-if-before-free: New file.
40346         * modules/useless-if-before-free: New file.
40347
40348         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40349
40350         xstrtol_error: Fix typo.
40351         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40352         s/exit_failure/exit_status/.
40353
40354 2008-02-09  Jim Meyering  <meyering@redhat.com>
40355
40356         New script and module: gitlog-to-changelog
40357         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40358         * modules/gitlog-to-changelog: New file.
40359         * build-aux/gitlog-to-changelog: New file.
40360
40361 2008-02-08  Jim Meyering  <meyering@redhat.com>
40362
40363         Avoid two "parameter unused" warnings.
40364         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40365         Mark "st" as used.
40366
40367         Use "git COMMAND", not "git-COMMAND".
40368         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40369         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40370         * build-aux/git-version-gen: Use "git status", not "git-status".
40371
40372 2008-02-07  Bruno Haible  <bruno@clisp.org>
40373
40374         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40375         Avoids a crash on Windows Vista.
40376         Reported by Adam Strzelecki <ono@java.pl> via
40377         Simon Josefsson <simon@josefsson.org>.
40378
40379 2008-02-06  Bruno Haible  <bruno@clisp.org>
40380
40381         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40382         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40383         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40385         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40387         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40388         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40396         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40397         left-adjust flag.
40398         * tests/test-snprintf-posix.h (test_function): Likewise.
40399         * tests/test-sprintf-posix.h (test_function): Likewise.
40400         * tests/test-vasprintf-posix.c (test_function): Likewise.
40401         * doc/posix-functions/fprintf.texi: Update.
40402         * doc/posix-functions/printf.texi: Update.
40403         * doc/posix-functions/snprintf.texi: Update.
40404         * doc/posix-functions/sprintf.texi: Update.
40405         * doc/posix-functions/vfprintf.texi: Update.
40406         * doc/posix-functions/vprintf.texi: Update.
40407         * doc/posix-functions/vsnprintf.texi: Update.
40408         * doc/posix-functions/vsprintf.texi: Update.
40409         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40410
40411 2008-02-06  Bruno Haible  <bruno@clisp.org>
40412
40413         Fix bug introduced on 2008-01-26.
40414         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40415
40416 2008-02-06  Bruno Haible  <bruno@clisp.org>
40417
40418         Fix bug introduced on 2007-06-10.
40419         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40420         !NEED_PRINTF_FLAG_ZERO.
40421
40422 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40423
40424         getloadavg: use libperfstat on AIX5
40425         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40426
40427 2008-02-03  Bruno Haible  <bruno@clisp.org>
40428
40429         * lib/diffseq.h: Add comments about required #includes.
40430         Reported by Michael Biggs <gnulib@doubleplum.net>.
40431
40432 2008-02-01  Bruno Haible  <bruno@clisp.org>
40433
40434         * users.txt: Add gnuit.
40435
40436 2008-01-31  Bruno Haible  <bruno@clisp.org>
40437
40438         * lib/md4.c (set_uint32): Mark as inline.
40439         * lib/md5.c (set_uint32): Likewise.
40440         * lib/sha1.c (set_uint32): Likewise.
40441         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40442         * m4/md5.m4 (gl_MD5): Likewise.
40443         * m4/sha1.m4 (gl_SHA1): Likewise.
40444
40445 2008-01-31  Jim Meyering  <meyering@redhat.com>
40446
40447         Use "sizeof VAR", rather than a literal "4".
40448         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40449         * lib/md4.c (md4_read_ctx): Likewise.
40450         * lib/sha1.c (sha1_read_ctx): Likewise.
40451
40452 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40453
40454         * tests/test-sha1.c: New file, based on test-md5.c.
40455
40456         * modules/crypto/sha1-tests: New file.
40457
40458 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40459
40460         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40461
40462 2008-01-31  Jim Meyering  <meyering@redhat.com>
40463
40464         Prefer "sizeof v" over the equivalent "4".
40465         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40466         * lib/md5.c (set_uint32): Likewise.
40467         * lib/sha1.c (set_uint32): Likewise.
40468
40469 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40470
40471         * lib/sha1.c (set_uint32): Mark function as static.
40472
40473 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40474
40475         md2: clarify comments to say that alignment is not required.
40476         * lib/md2.h: Remove warning about alignment in comment.
40477         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40478         never been required.
40479
40480 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40481
40482         md4: adapt alignment constraint fix from sha1.
40483         * lib/md4.c (set_uint32): New function, from sha1.c
40484         (md4_read_ctx): Use it.
40485         (md4_finish_ctx): Doc fix.
40486         * lib/md4.h: Doc fix.
40487
40488 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40489
40490         md5: adapt alignment constraint fix from sha1.
40491         * lib/md5.c (set_uint32): New function, from sha1.c
40492         (md5_read_ctx): Use it.
40493         (md5_finish_ctx): Doc fix.
40494         * lib/md5.h: Doc fix.
40495
40496 2008-01-30  Peter Palfrader  <weasel@debian.org>
40497
40498         sha1: remove the result buffer alignment constraint
40499         * lib/sha1.c (set_uint32): New function.
40500         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40501         constraint.
40502         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40503         * lib/sha1.h: Likewise.
40504
40505 2008-01-30  Andreas Schwab  <schwab@suse.de>
40506             Bruno Haible  <bruno@clisp.org>
40507
40508         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40509         correct definition of LDBL_MIN_EXP.
40510
40511 2008-01-30  Karl Berry  <karl@gnu.org>
40512
40513         * config/srclist-update: try to preserve x bit on updates.
40514         * config/srclistvars.sh: update for karl.
40515
40516 2008-01-29  Jim Meyering  <meyering@redhat.com>
40517
40518         vasnprintf.c: Avoid warning about unused label
40519         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40520         "overflow" label definition and associated code with the
40521         same cpp condition that guards the sole use of that label.
40522
40523 2008-01-26  Bruno Haible  <bruno@clisp.org>
40524
40525         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40526         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40527         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40528         * lib/isnanl-nolibm.h (isnanl): Likewise.
40529         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40530
40531 2008-01-26  Bruno Haible  <bruno@clisp.org>
40532
40533         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40534         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40535
40536 2008-01-26  Bruno Haible  <bruno@clisp.org>
40537
40538         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40539         GCC >= 4.0 built-in.
40540         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40541
40542 2008-01-26  Bruno Haible  <bruno@clisp.org>
40543
40544         Rename isnan, applicable to 'double' only, to isnand.
40545         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40546         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40547         (configure.ac): Update.
40548         (Include): Replace "isnan.h" with "isnand.h".
40549         * m4/isnand.m4: Renamed from m4/isnan.m4.
40550         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40551         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40552         instead of isnan.c.
40553         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40554         instead of HAVE_ISNAN_IN_LIBC.
40555         (isnand): Renamed from isnan.
40556         * lib/isnand.c: New file.
40557         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40558         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40559         (Makefile.am): Update.
40560         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40561         Include isnand.h instead of isnan.h.
40562         (main): Test isnand instead of isnan.
40563         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40564         isnan-nolibm.
40565         * modules/frexp (Depends-on): Likewise.
40566         * modules/frexp-tests (Depends-on): Likewise.
40567         * modules/frexp-nolibm (Depends-on): Likewise.
40568         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40569         * modules/isfinite (Depends-on): Likewise.
40570         * modules/round-tests (Depends-on): Likewise.
40571         * modules/signbit (Depends-on): Likewise.
40572         * modules/signbit-tests (Depends-on): Likewise.
40573         * modules/snprintf-posix (Depends-on): Likewise.
40574         * modules/sprintf-posix (Depends-on): Likewise.
40575         * modules/trunc-tests (Depends-on): Likewise.
40576         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40577         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40578         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40579         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40580         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40581         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40582         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40583         * modules/vasnprintf-posix (Depends-on): Likewise.
40584         * modules/vasprintf-posix (Depends-on): Likewise.
40585         * modules/vfprintf-posix (Depends-on): Likewise.
40586         * modules/vsnprintf-posix (Depends-on): Likewise.
40587         * modules/vsprintf-posix (Depends-on): Likewise.
40588         * lib/frexp.c: Include isnand.h instead of isnan.h.
40589         (ISNAN): Set to isnand instead of isnan.
40590         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40591         (gl_isfinited): Use isnand instead of isnan.
40592         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40593         (gl_signbitd): Use isnand instead of isnan.
40594         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40595         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40596         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40597         (main): Use isnand instead of isnan.
40598         * tests/test-round1.c: Include isnand.h.
40599         (main): Use isnand instead of isnan.
40600         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40601         (ISNAN): Set to isnand instead of isnan.
40602         * tests/test-trunc1.c: Include isnand.h.
40603         (main): Use isnand instead of isnan.
40604         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40605         (equal): Use isnand instead of isnan.
40606         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40607         isnand-nolibm.
40608         * NEWS: Mention the change.
40609
40610 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40611             Bruno Haible  <bruno@clisp.org>
40612
40613         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40614         the GCC builtins for signbits are present and set
40615         REPLACE_SIGNBIT_USING_GCC if so.
40616         * lib/math.in.h (signbit): Define using GCC builtins if
40617         REPLACE_SIGNBIT_USING_GCC is set.
40618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40619         REPLACE_SIGNBIT_USING_GCC.
40620         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40621
40622 2008-01-25  Jim Meyering  <meyering@redhat.com>
40623
40624         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40625         * lib/poll.c: Include <config.h>, not "config.h".
40626         * tests/test-getaddrinfo.c: Likewise.
40627
40628 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40629
40630         * modules/sockets-tests: New file.
40631
40632 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40633
40634         * modules/sockets: New module, can be used to call WSA_Startup and
40635         WSA_Cleanup when needed.
40636
40637         * lib/sockets.h, lib/sockets.c: New files.
40638
40639         * m4/sockets.m4: New file.
40640
40641         * tests/test-sockets.c: New file.
40642
40643 2008-01-19  Bruno Haible  <bruno@clisp.org>
40644
40645         * doc/posix-headers: Renamed from doc/headers.
40646         * doc/posix-functions: Renamed from doc/functions.
40647         * doc/gnulib.texi: Update.
40648
40649 2008-01-19  Bruno Haible  <bruno@clisp.org>
40650
40651         * doc/glibc-functions/strcasestr.texi: Include contents of
40652         doc/functions/strcasestr.texi, fixing the list of platforms.
40653         * doc/functions/strcasestr.texi: Remove file.
40654
40655 2008-01-19  Bruno Haible  <bruno@clisp.org>
40656
40657         * doc/glibc-functions/memmem.texi: Include contents of
40658         doc/functions/memmem.texi.
40659         * doc/functions/memmem.texi: Remove file.
40660
40661 2008-01-18  Bruno Haible  <bruno@clisp.org>
40662
40663         * doc/glibc-functions/*.texi: New files.
40664         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40665         to use the new files.
40666
40667 2008-01-17  Bruno Haible  <bruno@clisp.org>
40668
40669         * tests/test-gethostname.c (main): Fix printf statement.
40670
40671 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40672
40673         * modules/gethostname-tests: New file.
40674
40675         * tests/test-gethostname.c: New file.
40676
40677 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40678
40679         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40680         used by the UNAME case.  Reported by Bruno Haible
40681         <bruno@clisp.org>.
40682
40683 2008-01-17  Eric Blake  <ebb9@byu.net>
40684
40685         Convert c-strcasestr to be more efficient.
40686         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40687         (Depends-on): Add c-strcase, remove malloca, strnlen.
40688         * tests/test-c-strcasestr.c (main): Enhance test.
40689         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40690
40691 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40692
40693         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40694         Use it in creating po/Makevars.
40695
40696 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40697
40698         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40699         Applications that requires it should initialize libgcrypt
40700         manually.
40701
40702 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40703
40704         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40705
40706 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40707
40708         Fix problem with getdate on mingw32 reported by Simon Josefsson
40709         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40710         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40711         tzname", when deciding whether to declare tzname.
40712         * lib/strftime.c (tzname): Likewise.
40713
40714 2008-01-15  Bruno Haible  <bruno@clisp.org>
40715
40716         Work around a MacOS X 10.5 bug in frexpl().
40717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40718         * doc/functions/frexpl.texi: Document the bug.
40719         Reported by Elias Pipping <pipping@gentoo.org>.
40720
40721 2008-01-14  Eric Blake  <ebb9@byu.net>
40722
40723         Touch up previous patch.
40724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40725         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40726
40727         Convert strcasestr module to use Two-Way algorithm.
40728         * modules/strcasestr-simple: New module, based on the old
40729         strcasestr, but with Two-Way rather than KMP.
40730         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40731         * lib/string.in.h (rpl_strcasestr): Declare.
40732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40733         performance.
40734         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40735         * modules/string (Makefile.am): Support strcasestr.
40736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40737         * modules/strcasestr-tests (Depends-on): Check for alarm.
40738         * tests/test-strcasestr.c: Augment test.
40739         * lib/str-two-way.h: Clean up stray macro.
40740         * NEWS: Document new module.
40741         * MODULES.html.sh (string handling): Likewise.
40742         * doc/functions/strcasestr.texi: New file.
40743         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40744         here, since it is not a POSIX function.
40745
40746 2008-01-14  Colin Watson  <cjwatson@debian.org>
40747             Bruno Haible  <bruno@clisp.org>
40748
40749         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40750         works fine; if not, set REPLACE_STRSIGNAL.
40751         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40753         REPLACE_STRSIGNAL.
40754         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40755         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40756         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40757
40758 2008-01-14  Bruno Haible  <bruno@clisp.org>
40759
40760         * modules/strsignal (Include): Change to <string.h>.
40761
40762 2008-01-14  Colin Watson  <cjwatson@debian.org>
40763
40764         * modules/argp (Notice): Add a notice recommending to change
40765         XGETTEXT_OPTIONS.
40766         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40767
40768 2008-01-13  Colin Watson  <cjwatson@debian.org>
40769
40770         * modules/strsignal-tests: New file.
40771         * tests/test-strsignal.c: New file.
40772
40773         * lib/strsignal.c: New file, from glibc with modifications.
40774         * lib/siglist.h: New file, from glibc with modifications.
40775         * lib/string.in.h (strsignal): New declaration.
40776         * m4/strsignal.m4: New file.
40777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40778         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40779         * modules/strsignal: New file.
40780         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40781         HAVE_DECL_STRSIGNAL.
40782
40783 2008-01-13  Bruno Haible  <bruno@clisp.org>
40784
40785         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40786         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40787         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40788         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40789
40790 2008-01-13  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40793         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40794         * lib/argp.h (__attribute__): Likewise.
40795         * lib/c-stack.c (__attribute__): Likewise.
40796         * lib/error.h (__attribute__): Likewise.
40797         * lib/fts.c (__attribute__): Likewise.
40798         * lib/openat.h (__attribute__): Likewise.
40799         * lib/stdio.in.h (__attribute__): Likewise.
40800         * lib/string.in.h (__attribute__): Likewise.
40801         * lib/utimens.c (__attribute__): Likewise.
40802         * lib/vasnprintf.h (__attribute__): Likewise.
40803         * lib/xalloc.h (__attribute__): Likewise.
40804         * lib/xprintf.h (__attribute__): Likewise.
40805         * lib/xstrtol.h (__attribute__): Likewise.
40806         * lib/xvasprintf.h (__attribute__): Likewise.
40807
40808 2008-01-12  Bruno Haible  <bruno@clisp.org>
40809
40810         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40811         * doc/glibc-headers/a.out.texi: New file.
40812         * doc/glibc-headers/aliases.texi: New file.
40813         * doc/glibc-headers/alloca.texi: New file.
40814         * doc/glibc-headers/ar.texi: New file.
40815         * doc/glibc-headers/argp.texi: New file.
40816         * doc/glibc-headers/argz.texi: New file.
40817         * doc/glibc-headers/byteswap.texi: New file.
40818         * doc/glibc-headers/crypt.texi: New file.
40819         * doc/glibc-headers/endian.texi: New file.
40820         * doc/glibc-headers/envz.texi: New file.
40821         * doc/glibc-headers/err.texi: New file.
40822         * doc/glibc-headers/error.texi: New file.
40823         * doc/glibc-headers/execinfo.texi: New file.
40824         * doc/glibc-headers/fpu_control.texi: New file.
40825         * doc/glibc-headers/fstab.texi: New file.
40826         * doc/glibc-headers/fts.texi: New file.
40827         * doc/glibc-headers/getopt.texi: New file.
40828         * doc/glibc-headers/ieee754.texi: New file.
40829         * doc/glibc-headers/ifaddrs.texi: New file.
40830         * doc/glibc-headers/libintl.texi: New file.
40831         * doc/glibc-headers/mcheck.texi: New file.
40832         * doc/glibc-headers/mntent.texi: New file.
40833         * doc/glibc-headers/obstack.texi: New file.
40834         * doc/glibc-headers/paths.texi: New file.
40835         * doc/glibc-headers/printf.texi: New file.
40836         * doc/glibc-headers/pty.texi: New file.
40837         * doc/glibc-headers/resolv.texi: New file.
40838         * doc/glibc-headers/shadow.texi: New file.
40839         * doc/glibc-headers/sysexits.texi: New file.
40840         * doc/glibc-headers/ttyent.texi: New file.
40841
40842 2008-01-12  Jim Meyering  <meyering@redhat.com>
40843
40844         announce-gen: emit Gnulib's git-based version string.
40845         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40846         New option --gnulib-version=V, where V is expected to be
40847         the output of running git describe in the gnulib directory.
40848         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40849         not useful, and plan to stop publishing an xdelta file with each
40850         coreutils release.
40851
40852         * build-aux/announce-gen: Also check for lzma-compressed files.
40853
40854 2008-01-11  Bruno Haible  <bruno@clisp.org>
40855
40856         * tests/test-memmem.c (main): Increase maximum allowed time.
40857         * tests/test-strstr.c (main): Likewise.
40858
40859 2008-01-11  Bruno Haible  <bruno@clisp.org>
40860
40861         * doc/functions/memmem.texi: Add more precisions about platforms.
40862         * doc/functions/strstr.texi: Likewise.
40863
40864 2008-01-10  Eric Blake  <ebb9@byu.net>
40865
40866         * m4/strstr.m4: Delete cruft from copy-n-paste.
40867         Reported by Bruno Haible.
40868
40869 2008-01-10  Bruno Haible  <bruno@clisp.org>
40870
40871         Make c-strstr rely on strstr.
40872         * lib/c-strstr.c: Don't include str-kmp.h.
40873         (c_strstr): Define in terms of strstr.
40874         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40875         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40876
40877 2008-01-10  Bruno Haible  <bruno@clisp.org>
40878
40879         * doc/gnulib.texi (String Functions in C Locale): New section.
40880         * doc/c-ctype.texi: New file.
40881         * doc/c-strcase.texi: New file.
40882         * doc/c-strcaseeq.texi: New file.
40883         * doc/c-strcasestr.texi: New file.
40884         * doc/c-strstr.texi: New file.
40885         * doc/c-strtod.texi: New file.
40886         * doc/c-strtold.texi: New file.
40887
40888 2008-01-10  Eric Blake  <ebb9@byu.net>
40889
40890         * lib/relocatable.h: Fix a comment.
40891
40892 2008-01-10  Eric Blake  <ebb9@byu.net>
40893
40894         Share two-way algorithm.
40895         * lib/str-two-way.h: New file, merged from...
40896         * lib/memmem.c: ...here...
40897         * lib/strstr.c: ...and here.
40898         * modules/memmem (Files): Use it.
40899         * modules/strstr (Files): Likewise.
40900
40901         Avoid quadratic strstr implementations.
40902         * lib/strstr.c: New file.
40903         * m4/strstr.m4: Likewise.
40904         * modules/strstr: Likewise.
40905         * modules/strstr-tests: Likewise.
40906         * tests/test-strstr.c: Likewise.
40907         * lib/string.in.h (rpl_strstr): Declare.
40908         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40910         * modules/string (Makefile.am): Likewise.
40911         * MODULES.html.sh (string handling): Mention new module.
40912         * doc/functions/strstr.texi (strstr): Document the bug.
40913
40914 2008-01-10  Bruno Haible  <bruno@clisp.org>
40915
40916         * lib/relocatable.h (relocate): State whether result is freshly
40917         allocated or not.
40918         * lib/relocatable.c (relocate): Return a freshly allocated string
40919         instead of a pointer to a privately held string.
40920         Reported by Sylvain Beucler <beuc@gnu.org>.
40921
40922 2008-01-10  Colin Watson  <cjwatson@debian.org>
40923
40924         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40925         s/S_ISNLK/S_ISLNK/.
40926
40927 2008-01-09  Bruno Haible  <bruno@clisp.org>
40928
40929         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40930         and other files.
40931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40932         if it's only a guess.
40933         * modules/memmem: Simplify by depending on memmem-simple.
40934
40935 2008-01-09  Bruno Haible  <bruno@clisp.org>
40936
40937         Work around OpenBSD 4.0 tdelete() bug.
40938         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40939         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40940         macros and don't redefine the enum values.
40941         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40942         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40943         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40944
40945 2008-01-09  Bruno Haible  <bruno@clisp.org>
40946
40947         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40948         (main): Don't perform the tests if setlocale did not install a UTF-8
40949         locale. Needed on OpenBSD 4.0.
40950         * modules/wcwidth-tests (Depends-on): Add localcharset.
40951
40952 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40953
40954         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40955         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40956         * NEWS: announce this.
40957         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40958
40959 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40960         and Eric Blake  <ebb9@byu.net>
40961
40962         Add memmem-simple module.
40963         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40964         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40965         * modules/memmem-simple: New file.
40966         * modules/memmem (Description): Tweak.
40967         * MODULES.html.sh (string handling): Mention new module.
40968         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40969         addressed by memmem-simple.
40970         * NEWS: Document the difference.
40971
40972 2008-01-09  Eric Blake  <ebb9@byu.net>
40973
40974         Give gcc some memmem optimization hints.
40975         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40976         (strcasestr): Declare as pure.
40977         * modules/memmem (Maintainer): Claim my implementation.
40978
40979 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40980
40981         Support AIX 6.1 and higher.
40982         * build-aux/config.libpath: Likewise.
40983         * build-aux/config.rpath: Likewise.
40984
40985 2008-01-08  Jim Meyering  <meyering@redhat.com>
40986             Bruno Haible  <bruno@clisp.org>
40987
40988         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40989         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40990         Reported by Peter Fales in
40991         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40992
40993 2008-01-08  Bruno Haible  <bruno@clisp.org>
40994
40995         * modules/unictype/category-of (Depends-on): Add
40996         unictype/category-none.
40997         * modules/unictype/category-and-tests (Depends-on): Add
40998         unictype/category-{L,N,Lu,Nd}.
40999         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41000         * modules/unictype/category-or-tests (Depends-on): Add
41001         unictype/category-{L,N}.
41002         * modules/unictype/category-name-tests (Depends-on): Add
41003         unictype/category-{Z,Nl}.
41004         Reported by Simon Josefsson.
41005
41006 2008-01-08  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41009         convention better.
41010         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41011         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41012         Reported by Peter Miller <millerp@canb.auug.org.au>.
41013
41014 2008-01-08  Eric Blake  <ebb9@byu.net>
41015
41016         Rewrite memmem to guarantee linear complexity without malloc.
41017         * lib/memmem.c (memmem): Use Two-Way rather than
41018         Knuth-Morris-Pratt, to allow O(1) space usage.
41019         (critical_factorization, two_way_short_needle)
41020         (two_way_long_needle): New functions.
41021         (knuth_morris_pratt): Delete.
41022         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41023         Add stdint.
41024         * tests/test-memmem.c (main): Add tests for periodic needle and
41025         sublinear performance.
41026         * doc/functions/memmem.texi (memmem): Document other deficiencies
41027         in cygwin and older glibc.
41028
41029 2008-01-08  Bruno Haible  <bruno@clisp.org>
41030
41031         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41032         augmentation.
41033
41034 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41035
41036         Add a configure time option: --disable-acl.
41037         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41038         AC_ARG_ENABLE(acl).
41039
41040 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41041
41042         * tests/test-localename.c: Don't include obsolete "setenv.h".
41043
41044         * modules/localename-tests (Depends-on): Need unsetenv.
41045
41046 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41047
41048         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41049
41050 2008-01-06  Colin Watson  <cjwatson@debian.org>
41051
41052         * users.txt: Add man-db.
41053
41054 2008-01-07  Bruno Haible  <bruno@clisp.org>
41055
41056         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41057         previous section name.
41058
41059 2008-01-07  Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/progname.c (set_program_name): Don't strip off a leading
41062         "lt-" prefix outside a .libs directory.
41063         Suggested by Paul Eggert.
41064
41065 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41066             Bruno Haible  <bruno@clisp.org>
41067
41068         Improve memory cleanup in 'relocatable' module.
41069         * lib/relocatable.h (compute_curr_prefix): Change return type to
41070         'char *'.
41071         * lib/relocatable.c (compute_curr_prefix): Change return type to
41072         'char *'. Free curr_installdir after use.
41073         (relocate): Free curr_prefix_better after use.
41074         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41075
41076 2008-01-01  Bruno Haible  <bruno@clisp.org>
41077
41078         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41079         failure on older glibc systems.
41080         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41081
41082 2008-01-05  Eric Blake  <ebb9@byu.net>
41083
41084         Avoid quadratic system memmem.
41085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41086         Reported by Ralf Wildenhues.
41087
41088         Fix memmem test for mingw.
41089         * modules/memmem-tests (configure.ac): Check for alarm.
41090         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41091         it.
41092         * doc/functions/memmem.texi: New file.
41093         * doc/gnulib.texi (Function Substitutes): Add memmem.
41094         Reported by Bruno Haible.
41095
41096 2008-01-04  Bruno Haible  <bruno@clisp.org>
41097
41098         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41099         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41100         gl_HEADER_STRING_H_DEFAULTS.
41101
41102 2008-01-04  Eric Blake  <ebb9@byu.net>
41103
41104         Shorten duration of memmem test.
41105         * tests/test-memmem.c (main): Use alarm to declare failure if test
41106         is taking too long.
41107         Reported by Ralf Wildenhues.
41108
41109 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41110
41111         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41112         string, needed by strerror.
41113
41114 2008-01-03  Colin Watson  <cjwatson@debian.org>
41115             Bruno Haible  <bruno@clisp.org>
41116
41117         * doc/gnulib-tool.texi (Localization): New section.
41118
41119 2008-01-02  Bruno Haible  <bruno@clisp.org>
41120
41121         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41122         variables to 'unsigned char *' type.
41123         Reported by Paul Eggert.
41124
41125 2008-01-02  Jim Meyering  <jim@meyering.net>
41126
41127         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41128
41129 2007-12-31  Jim Meyering  <jim@meyering.net>
41130
41131         Avoid use of private FTS type name.
41132         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41133
41134 2007-12-30  Karl Berry  <karl@gnu.org>
41135
41136         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41137         work around defect in Texinfo and/or the standalone Info browser.
41138
41139 2007-12-30  Bruno Haible  <bruno@clisp.org>
41140
41141         Unify 5 copies of the KMP code.
41142         * lib/str-kmp.h: New file.
41143         * lib/c-strcasestr.c: Include str-kmp.h.
41144         (knuth_morris_pratt): Remove function.
41145         (c_strcasestr): Update.
41146         * lib/c-strstr.c: Include str-kmp.h.
41147         (knuth_morris_pratt): Remove function.
41148         (c_strcasestr): Update.
41149         * lib/mbscasestr.c: Include str-kmp.h.
41150         (knuth_morris_pratt_unibyte): Remove function.
41151         * lib/mbsstr.c: Include str-kmp.h.
41152         (knuth_morris_pratt_unibyte): Remove function.
41153         * lib/strcasestr.c: Include str-kmp.h.
41154         (knuth_morris_pratt): Remove function.
41155         (strcasestr): Update.
41156         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41157         * modules/c-strstr (Files): Likewise.
41158         * modules/mbscasestr (Files): Likewise.
41159         * modules/mbsstr (Files): Likewise.
41160         * modules/strcasestr (Files): Likewise.
41161         Suggested by Paul Eggert.
41162
41163 2007-12-30  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41166         defined.
41167
41168 2007-12-30  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/xmalloca.h: Include xalloc.h.
41171         (xnmalloca): New macro.
41172
41173 2007-12-30  Bruno Haible  <bruno@clisp.org>
41174
41175         * lib/malloca.h (nmalloca): New macro.
41176         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41177         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41178         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41179         knuth_morris_pratt_multibyte): Likewise.
41180         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41181         knuth_morris_pratt_multibyte): Likewise.
41182         * lib/memmem.c (knuth_morris_pratt): Likewise.
41183         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41184
41185 2007-12-25  Bruno Haible  <bruno@clisp.org>
41186
41187         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41188         * lib/glob.c: Don't include openat.h.
41189         (link_exists2_p): Add back the code that deals with the
41190         !GLOB_ALTDIRFUNC case.
41191         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41192         let it do the filename concatenation.
41193         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41194         * modules/glob (Depends-on): Remove openat.
41195
41196 2007-12-31  Bruno Haible  <bruno@clisp.org>
41197
41198         * modules/dirfd (License): Change to LGPLv2+.
41199         Approved by Jim Meyering.
41200
41201 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41202
41203         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41204         when multiplying M by sizeof (size_t).
41205
41206 2007-12-10  Martin Lambers  <marlam@marlam.de>
41207
41208         Override getpagesize on mingw.
41209         * lib/getpagesize.c: New file.
41210         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41211         * modules/getpagesize (Files): Add lib/getpagesize.c.
41212         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41214         REPLACE_GETPAGESIZE.
41215         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41216
41217 2007-12-25  Bruno Haible  <bruno@clisp.org>
41218
41219         * modules/localcharset (Notice): New field.
41220         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41221         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41222
41223 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41224             Bruno Haible  <bruno@clisp.org>
41225
41226         Avoid using the syntax symbol() in formatted documentation.
41227         * MODULES.html.sh (func_module): When replacing symbol() with a
41228         hyperlink, remove the parentheses. Show an error if some remain.
41229         Recognize and render the '...' syntax.
41230         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41231         Rework. Add paragraph about GCC's inlining.
41232         * doc/alloca.texi: Likewise.
41233         * doc/error.texi: Remove parentheses from symbol reference.
41234         * doc/gnulib-intro.texi: Likewise.
41235         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41236         * modules/fnmatch (Description): Reword to say "the ... function".
41237         * modules/full-read (Description): Likewise.
41238         * modules/full-write (Description): Likewise.
41239         * modules/safe-read (Description): Likewise.
41240         * modules/safe-write (Description): Likewise.
41241         * modules/strchrnul (Description): Likewise.
41242         * modules/trim (Description): Likewise.
41243         * modules/error (Description): Remove parentheses from symbol
41244         references.
41245         * modules/verror (Description): Likewise.
41246         Reported by Karl Berry.
41247
41248 2007-12-25  Bruno Haible  <bruno@clisp.org>
41249
41250         Fixup after 2007-10-16 commit.
41251         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41252
41253 2007-12-24  Bruno Haible  <bruno@clisp.org>
41254
41255         Make --enable-relocatable work with DESTDIR.
41256         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41257         to compute installdir from destprog.
41258         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41259         also set the RELOC_DESTDIR variable.
41260         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41261
41262 2007-12-24  Bruno Haible  <bruno@clisp.org>
41263
41264         Fix link error due to xalloc_die().
41265         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41266         of xreadlink.
41267         * lib/relocwrapper.c: Update comments.
41268         * build-aux/install-reloc: Remove xreadlink.c from file list.
41269         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41270         xreadlink.c.
41271         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41272
41273 2007-12-24  Bruno Haible  <bruno@clisp.org>
41274
41275         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41276         * lib/setenv.h: Remove file.
41277         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41278         lib/setenv.h.
41279         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41280         (Depends-on): Add stdlib.
41281         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41282         gl_FUNC_UNSETENV.
41283         (Include): Replace setenv.h with <stdlib.h>.
41284         * modules/unsetenv: New file.
41285         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41286         * lib/unsetenv.c: Include <stdlib.h> first.
41287         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41288         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41289         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41290         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41291         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41292         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41294         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41295         * doc/functions/unsetenv.texi: Update.
41296         * modules/xsetenv (Depends-on): Add unsetenv.
41297         * modules/getdate (Depends-on): Likewise.
41298         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41299         * lib/xsetenv.c: Don't include setenv.h.
41300         * lib/getdate.y: Likewise.
41301         * lib/relocwrapper.c: Likewise.
41302         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41303         (Depends-on): Add stdlib.
41304         * NEWS: Mention the changes.
41305         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41306
41307 2007-12-23  Bruno Haible  <bruno@clisp.org>
41308
41309         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41310         indentation.
41311
41312 2007-12-23  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/c-strcasestr.c: Add more comments.
41315         * lib/c-strstr.c: Likewise.
41316         * lib/mbscasestr.c: Likewise.
41317         * lib/mbsstr.c: Likewise.
41318         * lib/strcasestr.c: Likewise.
41319         * lib/memmem.c: Likewise.
41320
41321 2007-12-23  Bruno Haible  <bruno@clisp.org>
41322
41323         * tests/test-memmem.c: Include <string.h> first.
41324
41325 2007-12-22  Bruno Haible  <bruno@clisp.org>
41326
41327         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41328         the contents of $testsbase.
41329         Reported by Ralf Wildenhues.
41330
41331 2007-12-22  Bruno Haible  <bruno@clisp.org>
41332
41333         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41334         two variables local_ldadd_before, local_ldadd_last.
41335
41336 2007-12-20  Eric Blake  <ebb9@byu.net>
41337
41338         Work around circular library issue when cross-compiling.
41339         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41340         that progname.o does not need to pull in rpl_memcmp.
41341
41342 2007-12-19  Eric Blake  <ebb9@byu.net>
41343
41344         Fix memmem to avoid O(n^2) worst-case complexity.
41345         * lib/memmem.c (knuth_morris_pratt): New function.
41346         (memmem): Use it if first few naive iterations fail.
41347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41348         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41349         * modules/memchr (License): Likewise.
41350         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41351         malloca.
41352         * tests/test-memmem.c: Rewrite, borrowing ideas from
41353         test-mbsstr1.c; the old version wouldn't even compile!
41354         * modules/memmem-tests: New file.
41355         * lib/string.in.h (rpl_memmem): Add declaration.
41356         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41358         REPLACE_MEMMEM.
41359
41360 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41361
41362         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41363         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41364         before any system include files, and undef after them all.  This
41365         should fix a problem on VMS reported by John E. Malmberg in
41366         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41367
41368 2007-12-17  Eric Blake  <ebb9@byu.net>
41369
41370         Revert addition of verify, for BSD/OS.
41371         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41372         can't handle large files, for the sake of obsolete platforms.
41373         * modules/fseeko (Depends-on): Remove verify.
41374         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41375         * doc/functions/ftello.texi (ftello): Likewise.
41376         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41377         Reported by Larry Jones.
41378
41379 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41380
41381         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41382         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41383
41384 2007-12-17  Jim Meyering  <meyering@redhat.com>
41385
41386         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41387         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41388         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41389         * modules/getcwd (Depends-on): Add openat.
41390         Reported by Petr Salinger.
41391
41392 2007-12-17  Bruno Haible  <bruno@clisp.org>
41393
41394         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41395         avoid a segmentation fault of the configure test on x86_64 systems.
41396
41397 2007-12-15  Jim Meyering  <meyering@redhat.com>
41398
41399         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41400
41401 2007-12-13  Eric Blake  <ebb9@byu.net>
41402
41403         Another fseek test.
41404         * tests/test-fseek.c (main): Also test ungetc handling.
41405         * tests/test-fseeko.c (main): Likewise.
41406         * modules/fseeko (Depends-on): Add verify.
41407         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41408         large.
41409         Reported by Larry Jones.
41410
41411         Fix fseeko on mingw.
41412         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41413         seek.
41414
41415         Beef up fseek tests.
41416         * tests/test-fseek.c (main): Also test eof handling.
41417         * tests/test-fseeko.c (main): Likewise.
41418         Reported by Larry Jones.
41419
41420 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41421
41422         Fix fseeko on BSD-based platforms.
41423         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41424         successful seek.
41425
41426 2007-12-12  Eric Blake  <ebb9@byu.net>
41427
41428         Allow circular dependency of separate libtests.a
41429         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41430         when use_libtests.
41431
41432 2007-12-11  Eric Blake  <ebb9@byu.net>
41433
41434         Fix bug with -0.0L in previous patch.
41435         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41436         * tests/test-isnan.c (main): Also test on zeroes.
41437         * tests/test-isnanf.c (main): Likewise.
41438         * tests/test-isnanl.h (main): Likewise.
41439
41440         Detect pseudo-denormals on x86 even when cross-compiling.
41441         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41442         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41443         invalid bit patterns that happen to satisfy ==.
41444
41445         Avoid link failures with separate libtests.a.
41446         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41447         last, to satisfy circular dependencies.
41448
41449 2007-12-11  Eric Blake  <ebb9@byu.net>
41450         and Bruno Haible  <bruno@clisp.org>
41451
41452         Fix OpenBSD 4.0 <float.h> handling of long double.
41453         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41454         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41455         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41456
41457 2007-12-11  Jim Meyering  <meyering@redhat.com>
41458
41459         * users.txt: Add libvirt.
41460
41461         Support versions of autoconf prior to 2.59c.
41462         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41463         if it is not already defined.
41464
41465 2007-12-09  Bruno Haible  <bruno@clisp.org>
41466
41467         Let 'gnulib-tool --import' collect sources needed for the tests in
41468         tests/ rather than in lib/.
41469         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41470         argument. If true, add rules to generate libtests.a, and put libtests.a
41471         into $(LDADD). Consider source files in subdirectories and set
41472         uses_subdirs.
41473         (func_emit_initmacro_start, func_emit_initmacro_end,
41474         func_emit_initmacro_done): Pass all arguments explicitly.
41475         (func_import): Determine two module lists main_modules,
41476         testsrelated_modules. Determine use_libtests. Determine two variables
41477         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41478         instead of just sed_transform_lib_file. Determine two variables
41479         main_files and testsrelated_files. Compute 'files' as the union of
41480         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41481         func_add_or_update. In the generated gnulib-comp.m4, collect the
41482         object files for tests/ in different variables than those for lib/.
41483         Substitute LIBTESTS_LIBDEPS.
41484         (func_create_testdir): Combine the uses_subdirs results from
41485         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41486
41487 2007-12-09  Bruno Haible  <bruno@clisp.org>
41488
41489         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41490         the build-aux directory.
41491
41492 2007-12-09  Bruno Haible  <bruno@clisp.org>
41493
41494         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41495         introduced on 2006-09-09.
41496
41497 2007-12-07  Jim Meyering  <meyering@redhat.com>
41498
41499         Let these macros work also with autoconf-2.59.
41500         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41501         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41502         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41503
41504 2007-12-06  Jim Meyering  <meyering@redhat.com>
41505
41506         Avoid a configure-time syntax error in gl_FUNC_ACL.
41507         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41508         function in each branch, before testing the cache variable.
41509
41510 2007-12-04  Eric Blake  <ebb9@byu.net>
41511
41512         Make scripts executable.
41513         * build-aux/config.guess: Add execute permissions.
41514         * build-aux/config.sub: Likewise.
41515         * build-aux/gendocs.sh: Likewise.
41516
41517         Fix frexp on mingw.
41518         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41519         cross-compiling.
41520         * doc/functions/frexp.texi (frexp): Document the bug.
41521
41522         Make cygwin fseeko check more reliable.
41523         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41524         version numbers, rather than unrelated feature check.
41525         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41526         * doc/functions/ftello.texi (ftello): Likewise.
41527         Reported by Bruno Haible.
41528
41529         * m4/strerror.m4: Bump version number.
41530
41531 2007-12-03  Bruno Haible  <bruno@clisp.org>
41532
41533         * doc/functions/mprotect.texi: Mention the mingw problem.
41534
41535 2007-12-03  Eric Blake  <ebb9@byu.net>
41536
41537         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41538         REPLACE_STRERROR is initialized before this macro.
41539
41540 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41541
41542         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41543         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41544         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41545         put -lsec in even for programs other than 'ls'.  This fixes a problem
41546         for gettext reported by Bruno Haible in
41547         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41548         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41549         Add support for Solaris 10.  This isn't efficient, but should get the
41550         job done for now.
41551
41552 2007-12-03  James Youngman  <jay@gnu.org>
41553
41554         * doc/regexprops-generic.texi: change "an close-group" to "a
41555         close-group" and "illegal" to "not allowed".
41556
41557 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41558
41559         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41560         pr_byname.h. Needed for the rare case when the maintainer has done
41561         "make maintainer-clean" in the source directory and then attempts a
41562         build outside the source directory.
41563         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41564         scripts_byname.h.
41565
41566 2007-12-02  Martin Lambers <marlam@marlam.de>
41567             Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/getpagesize.h: Remove file.
41570         * lib/unistd.in.h: Include declaration of getpagesize here.
41571         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41572         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41573         HAVE_SYS_PARAM_H.
41574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41575         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41576         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41577         (Depends-on): Add unistd.
41578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41579         (Include): Use <unistd.h> instead of getpagesize.h.
41580         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41581         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41582         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41583         gl_GETPAGESIZE invocation, already handled by module dependency.
41584         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41585
41586 2007-12-02  Bruno Haible  <bruno@clisp.org>
41587
41588         * modules/strings-tests: New file.
41589         * tests/test-strings.c: New file.
41590
41591         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41592         * lib/strings.in.h: New file.
41593         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41594         * m4/strings_h.m4: New file.
41595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41596         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41597         * modules/strings: New file.
41598         * modules/string (Makefile.am): Update.
41599         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41600         Reported by Karl Berry.
41601
41602 2007-12-01  Eric Blake  <ebb9@byu.net>
41603
41604         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41605         accomodate fix in cygwin 1.5.25.
41606
41607 2007-12-01  Jim Meyering  <meyering@redhat.com>
41608
41609         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41610         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41611         that would inhibit utf8-optimization of a regexp containing line-
41612         or buffer-anchors, e.g., `^', `$'.
41613
41614 2007-11-30  Bruno Haible  <bruno@clisp.org>
41615
41616         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41617         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41618         glthread_recursive_lock_init.
41619         * lib/lock.c (glthread_recursive_lock_init)
41620         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41622
41623 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41624
41625         New function qset_acl, like set_acl but with syscall semantics.
41626         * lib/acl.h (qset_acl): New decl.
41627         * lib/acl.c (qset_acl): New function.
41628         (set_acl): Use new function.  Use more-consistent diagnostics.
41629
41630 2007-11-28  Jim Meyering  <meyering@redhat.com>
41631
41632         * modules/physmem (License): Change from GPL to LGPLv2+.
41633
41634 2007-11-26  Bruno Haible  <bruno@clisp.org>
41635
41636         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41637         'long double' type has excess precision.
41638         Reported by Jim Meyering in
41639         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41640
41641 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41642
41643         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41644         Sync from <http://gnu.org/licenses>.
41645         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41646         with license text from same location.
41647         * doc/maintain.texi, doc/standards.texi:  Sync from
41648         <http://savannah.gnu.org/projects/gnustandards>.
41649
41650 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41651         and Jim Meyering  <meyering@redhat.com>
41652
41653         Adjust getdate' grammar to accept a slightly more regular language.
41654         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41655         Before, the former was rejected.
41656         * lib/getdate.y (digits_to_date_time): New function, factored
41657         out of ...
41658         (number): ...here.  Just call digits_to_date_time.
41659         (hybrid): New non-terminal to handle an <unsigned number,
41660         signed relative offset> sequence consistently.
41661
41662 2007-11-18  Jim Meyering  <meyering@redhat.com>
41663
41664         Pull my changes from coreutils:
41665         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41666         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41667         use of $gnulib_tool_option_extras, so that it's separated from the
41668         preceding argument.
41669
41670         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41671         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41672         parent destination directories before copying a file into place.
41673
41674 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41675
41676         bootstrap: work also with 4-argument variant of AC_INIT
41677         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41678
41679 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41680
41681         Port test-getaddrinfo to Solaris.
41682         Problem reported by Bruno Haible in
41683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41684         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41685         explanation of setting 'hints'.
41686         Don't reject an implementation merely because it returns EAI_SERVICE.
41687         (EAI_SERVICE): Define to 0 if not defined.
41688
41689 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41690
41691         The license of gnu-make and posix-shell is now "GPLed build tool".
41692         * modules/gnu-make (License): Likewise.
41693         * modules/posix-shell (License): Likewise.
41694
41695         New module posix-shell, for determining a POSIX shell
41696         or perhaps something that is close enough to a POSIX shell.
41697         * m4/posix-shell.m4: New file.
41698         * modules/posix-shell: New file.
41699
41700         * MODULES.html.sh: Mention new module.
41701
41702         New module gnu-make, for determining whether we're using GNU Make.
41703         * m4/gnu-make.m4: New file.
41704         * modules/gnu-make: New file.
41705         * MODULES.html.sh: Mention new module.
41706
41707 2007-11-14  Jim Meyering  <meyering@redhat.com>
41708
41709         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41710         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41711         use this macro to create a function _definition_.
41712         Remove useless "#undef ARGMATCH_DIE".
41713
41714 2007-11-14  Bruno Haible  <bruno@clisp.org>
41715
41716         * lib/config.charset: Update for OpenBSD 4.1.
41717         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41718
41719 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41720
41721         Document 64-bit #if problems in stdint.texi.
41722         * doc/headers/stdint.texi (stdint.h): Mention problems with
41723         64-bit-#if, and how to work around them.
41724
41725         Don't insist on 'long long int' support in the preprocessor.  It
41726         breaks too many things.  For example, PRIdMAX still uses a 'long
41727         long int' format with the latest Sun compiler, even though
41728         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41729         preprocessor problem.  This causes the latest coreutils to dump
41730         core on Solaris 10 sparc with the Sun C compiler.
41731         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41732         the troublesome expressions at configure-time, not at #if-time.
41733         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41734         preprocessor.
41735         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41736         compile-time C checks, done at 'configure'-time.
41737         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41738         * modules/inttypes (Makefile): Substitute the new symbols that
41739         gl_INTTYPES_H now generates.
41740         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41741
41742 2007-11-12  Bruno Haible  <bruno@clisp.org>
41743
41744         Tests for Unicode character classification functions.
41745
41746         * modules/unictype/bidicategory-byname-tests: New file.
41747         * modules/unictype/bidicategory-name-tests: New file.
41748         * modules/unictype/bidicategory-of-tests: New file.
41749         * modules/unictype/bidicategory-test-tests: New file.
41750         * modules/unictype/block-list-tests: New file.
41751         * modules/unictype/block-of-tests: New file.
41752         * modules/unictype/block-test-tests: New file.
41753         * modules/unictype/category-C-tests: New file.
41754         * modules/unictype/category-Cc-tests: New file.
41755         * modules/unictype/category-Cf-tests: New file.
41756         * modules/unictype/category-Cn-tests: New file.
41757         * modules/unictype/category-Co-tests: New file.
41758         * modules/unictype/category-Cs-tests: New file.
41759         * modules/unictype/category-L-tests: New file.
41760         * modules/unictype/category-Ll-tests: New file.
41761         * modules/unictype/category-Lm-tests: New file.
41762         * modules/unictype/category-Lo-tests: New file.
41763         * modules/unictype/category-Lt-tests: New file.
41764         * modules/unictype/category-Lu-tests: New file.
41765         * modules/unictype/category-M-tests: New file.
41766         * modules/unictype/category-Mc-tests: New file.
41767         * modules/unictype/category-Me-tests: New file.
41768         * modules/unictype/category-Mn-tests: New file.
41769         * modules/unictype/category-N-tests: New file.
41770         * modules/unictype/category-Nd-tests: New file.
41771         * modules/unictype/category-Nl-tests: New file.
41772         * modules/unictype/category-No-tests: New file.
41773         * modules/unictype/category-P-tests: New file.
41774         * modules/unictype/category-Pc-tests: New file.
41775         * modules/unictype/category-Pd-tests: New file.
41776         * modules/unictype/category-Pe-tests: New file.
41777         * modules/unictype/category-Pf-tests: New file.
41778         * modules/unictype/category-Pi-tests: New file.
41779         * modules/unictype/category-Po-tests: New file.
41780         * modules/unictype/category-Ps-tests: New file.
41781         * modules/unictype/category-S-tests: New file.
41782         * modules/unictype/category-Sc-tests: New file.
41783         * modules/unictype/category-Sk-tests: New file.
41784         * modules/unictype/category-Sm-tests: New file.
41785         * modules/unictype/category-So-tests: New file.
41786         * modules/unictype/category-Z-tests: New file.
41787         * modules/unictype/category-Zl-tests: New file.
41788         * modules/unictype/category-Zp-tests: New file.
41789         * modules/unictype/category-Zs-tests: New file.
41790         * modules/unictype/category-and-not-tests: New file.
41791         * modules/unictype/category-and-tests: New file.
41792         * modules/unictype/category-byname-tests: New file.
41793         * modules/unictype/category-name-tests: New file.
41794         * modules/unictype/category-none-tests: New file.
41795         * modules/unictype/category-of-tests: New file.
41796         * modules/unictype/category-or-tests: New file.
41797         * modules/unictype/category-test-withtable-tests: New file.
41798         * modules/unictype/combining-class-tests: New file.
41799         * modules/unictype/ctype-alnum-tests: New file.
41800         * modules/unictype/ctype-alpha-tests: New file.
41801         * modules/unictype/ctype-blank-tests: New file.
41802         * modules/unictype/ctype-cntrl-tests: New file.
41803         * modules/unictype/ctype-digit-tests: New file.
41804         * modules/unictype/ctype-graph-tests: New file.
41805         * modules/unictype/ctype-lower-tests: New file.
41806         * modules/unictype/ctype-print-tests: New file.
41807         * modules/unictype/ctype-punct-tests: New file.
41808         * modules/unictype/ctype-space-tests: New file.
41809         * modules/unictype/ctype-upper-tests: New file.
41810         * modules/unictype/ctype-xdigit-tests: New file.
41811         * modules/unictype/decimal-digit-tests: New file.
41812         * modules/unictype/digit-tests: New file.
41813         * modules/unictype/mirror-tests: New file.
41814         * modules/unictype/numeric-tests: New file.
41815         * modules/unictype/property-alphabetic-tests: New file.
41816         * modules/unictype/property-ascii-hex-digit-tests: New file.
41817         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41818         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41819         * modules/unictype/property-bidi-block-separator-tests: New file.
41820         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41821         * modules/unictype/property-bidi-common-separator-tests: New file.
41822         * modules/unictype/property-bidi-control-tests: New file.
41823         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41824         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41825         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41826         * modules/unictype/property-bidi-european-digit-tests: New file.
41827         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41828         * modules/unictype/property-bidi-left-to-right-tests: New file.
41829         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41830         * modules/unictype/property-bidi-other-neutral-tests: New file.
41831         * modules/unictype/property-bidi-pdf-tests: New file.
41832         * modules/unictype/property-bidi-segment-separator-tests: New file.
41833         * modules/unictype/property-bidi-whitespace-tests: New file.
41834         * modules/unictype/property-byname-tests: New file.
41835         * modules/unictype/property-combining-tests: New file.
41836         * modules/unictype/property-composite-tests: New file.
41837         * modules/unictype/property-currency-symbol-tests: New file.
41838         * modules/unictype/property-dash-tests: New file.
41839         * modules/unictype/property-decimal-digit-tests: New file.
41840         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41841         * modules/unictype/property-deprecated-tests: New file.
41842         * modules/unictype/property-diacritic-tests: New file.
41843         * modules/unictype/property-extender-tests: New file.
41844         * modules/unictype/property-format-control-tests: New file.
41845         * modules/unictype/property-grapheme-base-tests: New file.
41846         * modules/unictype/property-grapheme-extend-tests: New file.
41847         * modules/unictype/property-grapheme-link-tests: New file.
41848         * modules/unictype/property-hex-digit-tests: New file.
41849         * modules/unictype/property-hyphen-tests: New file.
41850         * modules/unictype/property-id-continue-tests: New file.
41851         * modules/unictype/property-id-start-tests: New file.
41852         * modules/unictype/property-ideographic-tests: New file.
41853         * modules/unictype/property-ids-binary-operator-tests: New file.
41854         * modules/unictype/property-ids-trinary-operator-tests: New file.
41855         * modules/unictype/property-ignorable-control-tests: New file.
41856         * modules/unictype/property-iso-control-tests: New file.
41857         * modules/unictype/property-join-control-tests: New file.
41858         * modules/unictype/property-left-of-pair-tests: New file.
41859         * modules/unictype/property-line-separator-tests: New file.
41860         * modules/unictype/property-logical-order-exception-tests: New file.
41861         * modules/unictype/property-lowercase-tests: New file.
41862         * modules/unictype/property-math-tests: New file.
41863         * modules/unictype/property-non-break-tests: New file.
41864         * modules/unictype/property-not-a-character-tests: New file.
41865         * modules/unictype/property-numeric-tests: New file.
41866         * modules/unictype/property-other-alphabetic-tests: New file.
41867         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41868         * modules/unictype/property-other-grapheme-extend-tests: New file.
41869         * modules/unictype/property-other-id-continue-tests: New file.
41870         * modules/unictype/property-other-id-start-tests: New file.
41871         * modules/unictype/property-other-lowercase-tests: New file.
41872         * modules/unictype/property-other-math-tests: New file.
41873         * modules/unictype/property-other-uppercase-tests: New file.
41874         * modules/unictype/property-paired-punctuation-tests: New file.
41875         * modules/unictype/property-paragraph-separator-tests: New file.
41876         * modules/unictype/property-pattern-syntax-tests: New file.
41877         * modules/unictype/property-pattern-white-space-tests: New file.
41878         * modules/unictype/property-private-use-tests: New file.
41879         * modules/unictype/property-punctuation-tests: New file.
41880         * modules/unictype/property-quotation-mark-tests: New file.
41881         * modules/unictype/property-radical-tests: New file.
41882         * modules/unictype/property-sentence-terminal-tests: New file.
41883         * modules/unictype/property-soft-dotted-tests: New file.
41884         * modules/unictype/property-space-tests: New file.
41885         * modules/unictype/property-terminal-punctuation-tests: New file.
41886         * modules/unictype/property-test-tests: New file.
41887         * modules/unictype/property-titlecase-tests: New file.
41888         * modules/unictype/property-unassigned-code-value-tests: New file.
41889         * modules/unictype/property-unified-ideograph-tests: New file.
41890         * modules/unictype/property-uppercase-tests: New file.
41891         * modules/unictype/property-variation-selector-tests: New file.
41892         * modules/unictype/property-white-space-tests: New file.
41893         * modules/unictype/property-xid-continue-tests: New file.
41894         * modules/unictype/property-xid-start-tests: New file.
41895         * modules/unictype/property-zero-width-tests: New file.
41896         * modules/unictype/scripts-tests: New file.
41897         * modules/unictype/syntax-c-ident-tests: New file.
41898         * modules/unictype/syntax-c-whitespace-tests: New file.
41899         * modules/unictype/syntax-java-ident-tests: New file.
41900         * modules/unictype/syntax-java-whitespace-tests: New file.
41901         * tests/unictype/test-bidi_byname.c: New file.
41902         * tests/unictype/test-bidi_name.c: New file.
41903         * tests/unictype/test-bidi_of.c: New file.
41904         * tests/unictype/test-bidi_test.c: New file.
41905         * tests/unictype/test-block_list.c: New file.
41906         * tests/unictype/test-block_of.c: New file.
41907         * tests/unictype/test-block_test.c: New file.
41908         * tests/unictype/test-categ_and.c: New file.
41909         * tests/unictype/test-categ_and_not.c: New file.
41910         * tests/unictype/test-categ_byname.c: New file.
41911         * tests/unictype/test-categ_name.c: New file.
41912         * tests/unictype/test-categ_none.c: New file.
41913         * tests/unictype/test-categ_of.c: New file.
41914         * tests/unictype/test-categ_or.c: New file.
41915         * tests/unictype/test-categ_test_withtable.c: New file.
41916         * tests/unictype/test-combining.c: New file.
41917         * tests/unictype/test-decdigit.c: New file.
41918         * tests/unictype/test-digit.c: New file.
41919         * tests/unictype/test-mirror.c: New file.
41920         * tests/unictype/test-numeric.c: New file.
41921         * tests/unictype/test-pr_byname.c: New file.
41922         * tests/unictype/test-pr_test.c: New file.
41923         * tests/unictype/test-predicate-part1.h: New file.
41924         * tests/unictype/test-predicate-part2.h: New file.
41925         * tests/unictype/test-scripts.c: New file.
41926         * tests/unictype/test-sy_c_ident.c: New file.
41927         * tests/unictype/test-sy_java_ident.c: New file.
41928
41929         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41930         for Unicode 5.0.0.
41931         * tests/unictype/test-categ_Cc.c: Likewise.
41932         * tests/unictype/test-categ_Cf.c: Likewise.
41933         * tests/unictype/test-categ_Cn.c: Likewise.
41934         * tests/unictype/test-categ_Co.c: Likewise.
41935         * tests/unictype/test-categ_Cs.c: Likewise.
41936         * tests/unictype/test-categ_L.c: Likewise.
41937         * tests/unictype/test-categ_Ll.c: Likewise.
41938         * tests/unictype/test-categ_Lm.c: Likewise.
41939         * tests/unictype/test-categ_Lo.c: Likewise.
41940         * tests/unictype/test-categ_Lt.c: Likewise.
41941         * tests/unictype/test-categ_Lu.c: Likewise.
41942         * tests/unictype/test-categ_M.c: Likewise.
41943         * tests/unictype/test-categ_Mc.c: Likewise.
41944         * tests/unictype/test-categ_Me.c: Likewise.
41945         * tests/unictype/test-categ_Mn.c: Likewise.
41946         * tests/unictype/test-categ_N.c: Likewise.
41947         * tests/unictype/test-categ_Nd.c: Likewise.
41948         * tests/unictype/test-categ_Nl.c: Likewise.
41949         * tests/unictype/test-categ_No.c: Likewise.
41950         * tests/unictype/test-categ_P.c: Likewise.
41951         * tests/unictype/test-categ_Pc.c: Likewise.
41952         * tests/unictype/test-categ_Pd.c: Likewise.
41953         * tests/unictype/test-categ_Pe.c: Likewise.
41954         * tests/unictype/test-categ_Pf.c: Likewise.
41955         * tests/unictype/test-categ_Pi.c: Likewise.
41956         * tests/unictype/test-categ_Po.c: Likewise.
41957         * tests/unictype/test-categ_Ps.c: Likewise.
41958         * tests/unictype/test-categ_S.c: Likewise.
41959         * tests/unictype/test-categ_Sc.c: Likewise.
41960         * tests/unictype/test-categ_Sk.c: Likewise.
41961         * tests/unictype/test-categ_Sm.c: Likewise.
41962         * tests/unictype/test-categ_So.c: Likewise.
41963         * tests/unictype/test-categ_Z.c: Likewise.
41964         * tests/unictype/test-categ_Zl.c: Likewise.
41965         * tests/unictype/test-categ_Zp.c: Likewise.
41966         * tests/unictype/test-categ_Zs.c: Likewise.
41967         * tests/unictype/test-ctype_alnum.c: Likewise.
41968         * tests/unictype/test-ctype_alpha.c: Likewise.
41969         * tests/unictype/test-ctype_blank.c: Likewise.
41970         * tests/unictype/test-ctype_cntrl.c: Likewise.
41971         * tests/unictype/test-ctype_digit.c: Likewise.
41972         * tests/unictype/test-ctype_graph.c: Likewise.
41973         * tests/unictype/test-ctype_lower.c: Likewise.
41974         * tests/unictype/test-ctype_print.c: Likewise.
41975         * tests/unictype/test-ctype_punct.c: Likewise.
41976         * tests/unictype/test-ctype_space.c: Likewise.
41977         * tests/unictype/test-ctype_upper.c: Likewise.
41978         * tests/unictype/test-ctype_xdigit.c: Likewise.
41979         * tests/unictype/test-decdigit.h: Likewise.
41980         * tests/unictype/test-digit.h: Likewise.
41981         * tests/unictype/test-numeric.h: Likewise.
41982         * tests/unictype/test-pr_alphabetic.c: Likewise.
41983         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41984         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41985         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41986         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41987         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41988         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41989         * tests/unictype/test-pr_bidi_control.c: Likewise.
41990         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41991         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41992         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41993         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41994         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41995         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41996         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41997         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41998         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41999         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42000         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42001         * tests/unictype/test-pr_combining.c: Likewise.
42002         * tests/unictype/test-pr_composite.c: Likewise.
42003         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42004         * tests/unictype/test-pr_dash.c: Likewise.
42005         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42006         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42007         * tests/unictype/test-pr_deprecated.c: Likewise.
42008         * tests/unictype/test-pr_diacritic.c: Likewise.
42009         * tests/unictype/test-pr_extender.c: Likewise.
42010         * tests/unictype/test-pr_format_control.c: Likewise.
42011         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42012         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42013         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42014         * tests/unictype/test-pr_hex_digit.c: Likewise.
42015         * tests/unictype/test-pr_hyphen.c: Likewise.
42016         * tests/unictype/test-pr_id_continue.c: Likewise.
42017         * tests/unictype/test-pr_id_start.c: Likewise.
42018         * tests/unictype/test-pr_ideographic.c: Likewise.
42019         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42020         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42021         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42022         * tests/unictype/test-pr_iso_control.c: Likewise.
42023         * tests/unictype/test-pr_join_control.c: Likewise.
42024         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42025         * tests/unictype/test-pr_line_separator.c: Likewise.
42026         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42027         * tests/unictype/test-pr_lowercase.c: Likewise.
42028         * tests/unictype/test-pr_math.c: Likewise.
42029         * tests/unictype/test-pr_non_break.c: Likewise.
42030         * tests/unictype/test-pr_not_a_character.c: Likewise.
42031         * tests/unictype/test-pr_numeric.c: Likewise.
42032         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42033         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42034         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42035         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42036         * tests/unictype/test-pr_other_id_start.c: Likewise.
42037         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42038         * tests/unictype/test-pr_other_math.c: Likewise.
42039         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42040         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42041         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42042         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42043         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42044         * tests/unictype/test-pr_private_use.c: Likewise.
42045         * tests/unictype/test-pr_punctuation.c: Likewise.
42046         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42047         * tests/unictype/test-pr_radical.c: Likewise.
42048         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42049         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42050         * tests/unictype/test-pr_space.c: Likewise.
42051         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42052         * tests/unictype/test-pr_titlecase.c: Likewise.
42053         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42054         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42055         * tests/unictype/test-pr_uppercase.c: Likewise.
42056         * tests/unictype/test-pr_variation_selector.c: Likewise.
42057         * tests/unictype/test-pr_white_space.c: Likewise.
42058         * tests/unictype/test-pr_xid_continue.c: Likewise.
42059         * tests/unictype/test-pr_xid_start.c: Likewise.
42060         * tests/unictype/test-pr_zero_width.c: Likewise.
42061         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42062         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42063
42064 2007-11-12  Bruno Haible  <bruno@clisp.org>
42065
42066         Unicode character classification functions.
42067         * lib/unictype.h: New file.
42068         * modules/unictype/base: New file.
42069         * modules/unictype/category-L: New file.
42070         * modules/unictype/category-Lu: New file.
42071         * modules/unictype/category-Ll: New file.
42072         * modules/unictype/category-Lt: New file.
42073         * modules/unictype/category-Lm: New file.
42074         * modules/unictype/category-Lo: New file.
42075         * modules/unictype/category-M: New file.
42076         * modules/unictype/category-Mn: New file.
42077         * modules/unictype/category-Mc: New file.
42078         * modules/unictype/category-Me: New file.
42079         * modules/unictype/category-N: New file.
42080         * modules/unictype/category-Nd: New file.
42081         * modules/unictype/category-Nl: New file.
42082         * modules/unictype/category-No: New file.
42083         * modules/unictype/category-P: New file.
42084         * modules/unictype/category-Pc: New file.
42085         * modules/unictype/category-Pd: New file.
42086         * modules/unictype/category-Ps: New file.
42087         * modules/unictype/category-Pe: New file.
42088         * modules/unictype/category-Pi: New file.
42089         * modules/unictype/category-Pf: New file.
42090         * modules/unictype/category-Po: New file.
42091         * modules/unictype/category-S: New file.
42092         * modules/unictype/category-Sm: New file.
42093         * modules/unictype/category-Sc: New file.
42094         * modules/unictype/category-Sk: New file.
42095         * modules/unictype/category-So: New file.
42096         * modules/unictype/category-Z: New file.
42097         * modules/unictype/category-Zs: New file.
42098         * modules/unictype/category-Zl: New file.
42099         * modules/unictype/category-Zp: New file.
42100         * modules/unictype/category-C: New file.
42101         * modules/unictype/category-Cc: New file.
42102         * modules/unictype/category-Cf: New file.
42103         * modules/unictype/category-Cs: New file.
42104         * modules/unictype/category-Co: New file.
42105         * modules/unictype/category-Cn: New file.
42106         * modules/unictype/category-or: New file.
42107         * modules/unictype/category-of: New file.
42108         * modules/unictype/category-test: New file.
42109         * modules/unictype/category-test-withtable: New file.
42110         * modules/unictype/category-byname: New file.
42111         * modules/unictype/category-none: New file.
42112         * modules/unictype/category-and: New file.
42113         * modules/unictype/category-and-not: New file.
42114         * modules/unictype/category-name: New file.
42115         * modules/unictype/combining-class: New file.
42116         * modules/unictype/category-all: New file.
42117         * modules/unictype/bidicategory-all: New file.
42118         * modules/unictype/bidicategory-byname: New file.
42119         * modules/unictype/bidicategory-name: New file.
42120         * modules/unictype/bidicategory-of: New file.
42121         * modules/unictype/bidicategory-test: New file.
42122         * modules/unictype/decimal-digit: New file.
42123         * modules/unictype/digit: New file.
42124         * modules/unictype/numeric: New file.
42125         * modules/unictype/mirror: New file.
42126         * modules/unictype/property-white-space: New file.
42127         * modules/unictype/property-alphabetic: New file.
42128         * modules/unictype/property-other-alphabetic: New file.
42129         * modules/unictype/property-not-a-character: New file.
42130         * modules/unictype/property-default-ignorable-code-point: New file.
42131         * modules/unictype/property-other-default-ignorable-code-point: New
42132         file.
42133         * modules/unictype/property-deprecated: New file.
42134         * modules/unictype/property-logical-order-exception: New file.
42135         * modules/unictype/property-variation-selector: New file.
42136         * modules/unictype/property-private-use: New file.
42137         * modules/unictype/property-unassigned-code-value: New file.
42138         * modules/unictype/property-uppercase: New file.
42139         * modules/unictype/property-other-uppercase: New file.
42140         * modules/unictype/property-lowercase: New file.
42141         * modules/unictype/property-other-lowercase: New file.
42142         * modules/unictype/property-titlecase: New file.
42143         * modules/unictype/property-soft-dotted: New file.
42144         * modules/unictype/property-id-start: New file.
42145         * modules/unictype/property-other-id-start: New file.
42146         * modules/unictype/property-id-continue: New file.
42147         * modules/unictype/property-other-id-continue: New file.
42148         * modules/unictype/property-xid-start: New file.
42149         * modules/unictype/property-xid-continue: New file.
42150         * modules/unictype/property-pattern-white-space: New file.
42151         * modules/unictype/property-pattern-syntax: New file.
42152         * modules/unictype/property-join-control: New file.
42153         * modules/unictype/property-grapheme-base: New file.
42154         * modules/unictype/property-grapheme-extend: New file.
42155         * modules/unictype/property-other-grapheme-extend: New file.
42156         * modules/unictype/property-grapheme-link: New file.
42157         * modules/unictype/property-bidi-control: New file.
42158         * modules/unictype/property-bidi-left-to-right: New file.
42159         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42160         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42161         * modules/unictype/property-bidi-european-digit: New file.
42162         * modules/unictype/property-bidi-eur-num-separator: New file.
42163         * modules/unictype/property-bidi-eur-num-terminator: New file.
42164         * modules/unictype/property-bidi-arabic-digit: New file.
42165         * modules/unictype/property-bidi-common-separator: New file.
42166         * modules/unictype/property-bidi-block-separator: New file.
42167         * modules/unictype/property-bidi-segment-separator: New file.
42168         * modules/unictype/property-bidi-whitespace: New file.
42169         * modules/unictype/property-bidi-non-spacing-mark: New file.
42170         * modules/unictype/property-bidi-boundary-neutral: New file.
42171         * modules/unictype/property-bidi-pdf: New file.
42172         * modules/unictype/property-bidi-embedding-or-override: New file.
42173         * modules/unictype/property-bidi-other-neutral: New file.
42174         * modules/unictype/property-hex-digit: New file.
42175         * modules/unictype/property-ascii-hex-digit: New file.
42176         * modules/unictype/property-ideographic: New file.
42177         * modules/unictype/property-unified-ideograph: New file.
42178         * modules/unictype/property-radical: New file.
42179         * modules/unictype/property-ids-binary-operator: New file.
42180         * modules/unictype/property-ids-trinary-operator: New file.
42181         * modules/unictype/property-zero-width: New file.
42182         * modules/unictype/property-space: New file.
42183         * modules/unictype/property-non-break: New file.
42184         * modules/unictype/property-iso-control: New file.
42185         * modules/unictype/property-format-control: New file.
42186         * modules/unictype/property-dash: New file.
42187         * modules/unictype/property-hyphen: New file.
42188         * modules/unictype/property-punctuation: New file.
42189         * modules/unictype/property-line-separator: New file.
42190         * modules/unictype/property-paragraph-separator: New file.
42191         * modules/unictype/property-quotation-mark: New file.
42192         * modules/unictype/property-sentence-terminal: New file.
42193         * modules/unictype/property-terminal-punctuation: New file.
42194         * modules/unictype/property-currency-symbol: New file.
42195         * modules/unictype/property-math: New file.
42196         * modules/unictype/property-other-math: New file.
42197         * modules/unictype/property-paired-punctuation: New file.
42198         * modules/unictype/property-left-of-pair: New file.
42199         * modules/unictype/property-combining: New file.
42200         * modules/unictype/property-composite: New file.
42201         * modules/unictype/property-decimal-digit: New file.
42202         * modules/unictype/property-numeric: New file.
42203         * modules/unictype/property-diacritic: New file.
42204         * modules/unictype/property-extender: New file.
42205         * modules/unictype/property-ignorable-control: New file.
42206         * modules/unictype/property-test: New file.
42207         * modules/unictype/property-byname: New file.
42208         * modules/unictype/property-all: New file.
42209         * modules/unictype/scripts: New file.
42210         * modules/unictype/scripts-all: New file.
42211         * modules/unictype/block-of: New file.
42212         * modules/unictype/block-test: New file.
42213         * modules/unictype/block-list: New file.
42214         * modules/unictype/block-all: New file.
42215         * modules/unictype/syntax-c-whitespace: New file.
42216         * modules/unictype/syntax-java-whitespace: New file.
42217         * modules/unictype/syntax-c-ident: New file.
42218         * modules/unictype/syntax-java-ident: New file.
42219         * modules/unictype/ctype-alnum: New file.
42220         * modules/unictype/ctype-alpha: New file.
42221         * modules/unictype/ctype-cntrl: New file.
42222         * modules/unictype/ctype-digit: New file.
42223         * modules/unictype/ctype-graph: New file.
42224         * modules/unictype/ctype-lower: New file.
42225         * modules/unictype/ctype-print: New file.
42226         * modules/unictype/ctype-punct: New file.
42227         * modules/unictype/ctype-space: New file.
42228         * modules/unictype/ctype-upper: New file.
42229         * modules/unictype/ctype-xdigit: New file.
42230         * modules/unictype/ctype-blank: New file.
42231         * lib/unictype/bidi_byname.c: New file.
42232         * lib/unictype/bidi_name.c: New file.
42233         * lib/unictype/bidi_of.c: New file.
42234         * lib/unictype/bidi_test.c: New file.
42235         * lib/unictype/bitmap.h: New file.
42236         * lib/unictype/block_test.c: New file.
42237         * lib/unictype/blocks.c: New file.
42238         * lib/unictype/categ_C.c: New file.
42239         * lib/unictype/categ_Cc.c: New file.
42240         * lib/unictype/categ_Cf.c: New file.
42241         * lib/unictype/categ_Cn.c: New file.
42242         * lib/unictype/categ_Co.c: New file.
42243         * lib/unictype/categ_Cs.c: New file.
42244         * lib/unictype/categ_L.c: New file.
42245         * lib/unictype/categ_Ll.c: New file.
42246         * lib/unictype/categ_Lm.c: New file.
42247         * lib/unictype/categ_Lo.c: New file.
42248         * lib/unictype/categ_Lt.c: New file.
42249         * lib/unictype/categ_Lu.c: New file.
42250         * lib/unictype/categ_M.c: New file.
42251         * lib/unictype/categ_Mc.c: New file.
42252         * lib/unictype/categ_Me.c: New file.
42253         * lib/unictype/categ_Mn.c: New file.
42254         * lib/unictype/categ_N.c: New file.
42255         * lib/unictype/categ_Nd.c: New file.
42256         * lib/unictype/categ_Nl.c: New file.
42257         * lib/unictype/categ_No.c: New file.
42258         * lib/unictype/categ_P.c: New file.
42259         * lib/unictype/categ_Pc.c: New file.
42260         * lib/unictype/categ_Pd.c: New file.
42261         * lib/unictype/categ_Pe.c: New file.
42262         * lib/unictype/categ_Pf.c: New file.
42263         * lib/unictype/categ_Pi.c: New file.
42264         * lib/unictype/categ_Po.c: New file.
42265         * lib/unictype/categ_Ps.c: New file.
42266         * lib/unictype/categ_S.c: New file.
42267         * lib/unictype/categ_Sc.c: New file.
42268         * lib/unictype/categ_Sk.c: New file.
42269         * lib/unictype/categ_Sm.c: New file.
42270         * lib/unictype/categ_So.c: New file.
42271         * lib/unictype/categ_Z.c: New file.
42272         * lib/unictype/categ_Zl.c: New file.
42273         * lib/unictype/categ_Zp.c: New file.
42274         * lib/unictype/categ_Zs.c: New file.
42275         * lib/unictype/categ_and.c: New file.
42276         * lib/unictype/categ_and_not.c: New file.
42277         * lib/unictype/categ_byname.c: New file.
42278         * lib/unictype/categ_name.c: New file.
42279         * lib/unictype/categ_none.c: New file.
42280         * lib/unictype/categ_of.c: New file.
42281         * lib/unictype/categ_or.c: New file.
42282         * lib/unictype/categ_test.c: New file.
42283         * lib/unictype/combining.c: New file.
42284         * lib/unictype/ctype_alnum.c: New file.
42285         * lib/unictype/ctype_alpha.c: New file.
42286         * lib/unictype/ctype_blank.c: New file.
42287         * lib/unictype/ctype_cntrl.c: New file.
42288         * lib/unictype/ctype_digit.c: New file.
42289         * lib/unictype/ctype_graph.c: New file.
42290         * lib/unictype/ctype_lower.c: New file.
42291         * lib/unictype/ctype_print.c: New file.
42292         * lib/unictype/ctype_punct.c: New file.
42293         * lib/unictype/ctype_space.c: New file.
42294         * lib/unictype/ctype_upper.c: New file.
42295         * lib/unictype/ctype_xdigit.c: New file.
42296         * lib/unictype/decdigit.c: New file.
42297         * lib/unictype/digit.c: New file.
42298         * lib/unictype/identsyntaxmap.h: New file.
42299         * lib/unictype/mirror.c: New file.
42300         * lib/unictype/numeric.c: New file.
42301         * lib/unictype/pr_alphabetic.c: New file.
42302         * lib/unictype/pr_ascii_hex_digit.c: New file.
42303         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42304         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42305         * lib/unictype/pr_bidi_block_separator.c: New file.
42306         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42307         * lib/unictype/pr_bidi_common_separator.c: New file.
42308         * lib/unictype/pr_bidi_control.c: New file.
42309         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42310         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42311         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42312         * lib/unictype/pr_bidi_european_digit.c: New file.
42313         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42314         * lib/unictype/pr_bidi_left_to_right.c: New file.
42315         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42316         * lib/unictype/pr_bidi_other_neutral.c: New file.
42317         * lib/unictype/pr_bidi_pdf.c: New file.
42318         * lib/unictype/pr_bidi_segment_separator.c: New file.
42319         * lib/unictype/pr_bidi_whitespace.c: New file.
42320         * lib/unictype/pr_byname.c: New file.
42321         * lib/unictype/pr_byname.gperf: New file.
42322         * lib/unictype/pr_combining.c: New file.
42323         * lib/unictype/pr_composite.c: New file.
42324         * lib/unictype/pr_currency_symbol.c: New file.
42325         * lib/unictype/pr_dash.c: New file.
42326         * lib/unictype/pr_decimal_digit.c: New file.
42327         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42328         * lib/unictype/pr_deprecated.c: New file.
42329         * lib/unictype/pr_diacritic.c: New file.
42330         * lib/unictype/pr_extender.c: New file.
42331         * lib/unictype/pr_format_control.c: New file.
42332         * lib/unictype/pr_grapheme_base.c: New file.
42333         * lib/unictype/pr_grapheme_extend.c: New file.
42334         * lib/unictype/pr_grapheme_link.c: New file.
42335         * lib/unictype/pr_hex_digit.c: New file.
42336         * lib/unictype/pr_hyphen.c: New file.
42337         * lib/unictype/pr_id_continue.c: New file.
42338         * lib/unictype/pr_id_start.c: New file.
42339         * lib/unictype/pr_ideographic.c: New file.
42340         * lib/unictype/pr_ids_binary_operator.c: New file.
42341         * lib/unictype/pr_ids_trinary_operator.c: New file.
42342         * lib/unictype/pr_ignorable_control.c: New file.
42343         * lib/unictype/pr_iso_control.c: New file.
42344         * lib/unictype/pr_join_control.c: New file.
42345         * lib/unictype/pr_left_of_pair.c: New file.
42346         * lib/unictype/pr_line_separator.c: New file.
42347         * lib/unictype/pr_logical_order_exception.c: New file.
42348         * lib/unictype/pr_lowercase.c: New file.
42349         * lib/unictype/pr_math.c: New file.
42350         * lib/unictype/pr_non_break.c: New file.
42351         * lib/unictype/pr_not_a_character.c: New file.
42352         * lib/unictype/pr_numeric.c: New file.
42353         * lib/unictype/pr_other_alphabetic.c: New file.
42354         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42355         * lib/unictype/pr_other_grapheme_extend.c: New file.
42356         * lib/unictype/pr_other_id_continue.c: New file.
42357         * lib/unictype/pr_other_id_start.c: New file.
42358         * lib/unictype/pr_other_lowercase.c: New file.
42359         * lib/unictype/pr_other_math.c: New file.
42360         * lib/unictype/pr_other_uppercase.c: New file.
42361         * lib/unictype/pr_paired_punctuation.c: New file.
42362         * lib/unictype/pr_paragraph_separator.c: New file.
42363         * lib/unictype/pr_pattern_syntax.c: New file.
42364         * lib/unictype/pr_pattern_white_space.c: New file.
42365         * lib/unictype/pr_private_use.c: New file.
42366         * lib/unictype/pr_punctuation.c: New file.
42367         * lib/unictype/pr_quotation_mark.c: New file.
42368         * lib/unictype/pr_radical.c: New file.
42369         * lib/unictype/pr_sentence_terminal.c: New file.
42370         * lib/unictype/pr_soft_dotted.c: New file.
42371         * lib/unictype/pr_space.c: New file.
42372         * lib/unictype/pr_terminal_punctuation.c: New file.
42373         * lib/unictype/pr_test.c: New file.
42374         * lib/unictype/pr_titlecase.c: New file.
42375         * lib/unictype/pr_unassigned_code_value.c: New file.
42376         * lib/unictype/pr_unified_ideograph.c: New file.
42377         * lib/unictype/pr_uppercase.c: New file.
42378         * lib/unictype/pr_variation_selector.c: New file.
42379         * lib/unictype/pr_white_space.c: New file.
42380         * lib/unictype/pr_xid_continue.c: New file.
42381         * lib/unictype/pr_xid_start.c: New file.
42382         * lib/unictype/pr_zero_width.c: New file.
42383         * lib/unictype/scripts.c: New file.
42384         * lib/unictype/sy_c_ident.c: New file.
42385         * lib/unictype/sy_c_whitespace.c: New file.
42386         * lib/unictype/sy_java_ident.c: New file.
42387         * lib/unictype/sy_java_whitespace.c: New file.
42388
42389         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42390         Unicode 5.0.0.
42391         * lib/unictype/blocks.h: Likewise.
42392         * lib/unictype/categ_C.h: Likewise.
42393         * lib/unictype/categ_Cc.h: Likewise.
42394         * lib/unictype/categ_Cf.h: Likewise.
42395         * lib/unictype/categ_Cn.h: Likewise.
42396         * lib/unictype/categ_Co.h: Likewise.
42397         * lib/unictype/categ_Cs.h: Likewise.
42398         * lib/unictype/categ_L.h: Likewise.
42399         * lib/unictype/categ_Ll.h: Likewise.
42400         * lib/unictype/categ_Lm.h: Likewise.
42401         * lib/unictype/categ_Lo.h: Likewise.
42402         * lib/unictype/categ_Lt.h: Likewise.
42403         * lib/unictype/categ_Lu.h: Likewise.
42404         * lib/unictype/categ_M.h: Likewise.
42405         * lib/unictype/categ_Mc.h: Likewise.
42406         * lib/unictype/categ_Me.h: Likewise.
42407         * lib/unictype/categ_Mn.h: Likewise.
42408         * lib/unictype/categ_N.h: Likewise.
42409         * lib/unictype/categ_Nd.h: Likewise.
42410         * lib/unictype/categ_Nl.h: Likewise.
42411         * lib/unictype/categ_No.h: Likewise.
42412         * lib/unictype/categ_P.h: Likewise.
42413         * lib/unictype/categ_Pc.h: Likewise.
42414         * lib/unictype/categ_Pd.h: Likewise.
42415         * lib/unictype/categ_Pe.h: Likewise.
42416         * lib/unictype/categ_Pf.h: Likewise.
42417         * lib/unictype/categ_Pi.h: Likewise.
42418         * lib/unictype/categ_Po.h: Likewise.
42419         * lib/unictype/categ_Ps.h: Likewise.
42420         * lib/unictype/categ_S.h: Likewise.
42421         * lib/unictype/categ_Sc.h: Likewise.
42422         * lib/unictype/categ_Sk.h: Likewise.
42423         * lib/unictype/categ_Sm.h: Likewise.
42424         * lib/unictype/categ_So.h: Likewise.
42425         * lib/unictype/categ_Z.h: Likewise.
42426         * lib/unictype/categ_Zl.h: Likewise.
42427         * lib/unictype/categ_Zp.h: Likewise.
42428         * lib/unictype/categ_Zs.h: Likewise.
42429         * lib/unictype/categ_of.h: Likewise.
42430         * lib/unictype/combining.h: Likewise.
42431         * lib/unictype/ctype_alnum.h: Likewise.
42432         * lib/unictype/ctype_alpha.h: Likewise.
42433         * lib/unictype/ctype_blank.h: Likewise.
42434         * lib/unictype/ctype_cntrl.h: Likewise.
42435         * lib/unictype/ctype_digit.h: Likewise.
42436         * lib/unictype/ctype_graph.h: Likewise.
42437         * lib/unictype/ctype_lower.h: Likewise.
42438         * lib/unictype/ctype_print.h: Likewise.
42439         * lib/unictype/ctype_punct.h: Likewise.
42440         * lib/unictype/ctype_space.h: Likewise.
42441         * lib/unictype/ctype_upper.h: Likewise.
42442         * lib/unictype/ctype_xdigit.h: Likewise.
42443         * lib/unictype/decdigit.h: Likewise.
42444         * lib/unictype/digit.h: Likewise.
42445         * lib/unictype/mirror.h: Likewise.
42446         * lib/unictype/numeric.h: Likewise.
42447         * lib/unictype/pr_alphabetic.h: Likewise.
42448         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42449         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42450         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42451         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42452         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42453         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42454         * lib/unictype/pr_bidi_control.h: Likewise.
42455         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42456         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42457         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42458         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42459         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42460         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42461         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42462         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42463         * lib/unictype/pr_bidi_pdf.h: Likewise.
42464         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42465         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42466         * lib/unictype/pr_combining.h: Likewise.
42467         * lib/unictype/pr_composite.h: Likewise.
42468         * lib/unictype/pr_currency_symbol.h: Likewise.
42469         * lib/unictype/pr_dash.h: Likewise.
42470         * lib/unictype/pr_decimal_digit.h: Likewise.
42471         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42472         * lib/unictype/pr_deprecated.h: Likewise.
42473         * lib/unictype/pr_diacritic.h: Likewise.
42474         * lib/unictype/pr_extender.h: Likewise.
42475         * lib/unictype/pr_format_control.h: Likewise.
42476         * lib/unictype/pr_grapheme_base.h: Likewise.
42477         * lib/unictype/pr_grapheme_extend.h: Likewise.
42478         * lib/unictype/pr_grapheme_link.h: Likewise.
42479         * lib/unictype/pr_hex_digit.h: Likewise.
42480         * lib/unictype/pr_hyphen.h: Likewise.
42481         * lib/unictype/pr_id_continue.h: Likewise.
42482         * lib/unictype/pr_id_start.h: Likewise.
42483         * lib/unictype/pr_ideographic.h: Likewise.
42484         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42485         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42486         * lib/unictype/pr_ignorable_control.h: Likewise.
42487         * lib/unictype/pr_iso_control.h: Likewise.
42488         * lib/unictype/pr_join_control.h: Likewise.
42489         * lib/unictype/pr_left_of_pair.h: Likewise.
42490         * lib/unictype/pr_line_separator.h: Likewise.
42491         * lib/unictype/pr_logical_order_exception.h: Likewise.
42492         * lib/unictype/pr_lowercase.h: Likewise.
42493         * lib/unictype/pr_math.h: Likewise.
42494         * lib/unictype/pr_non_break.h: Likewise.
42495         * lib/unictype/pr_not_a_character.h: Likewise.
42496         * lib/unictype/pr_numeric.h: Likewise.
42497         * lib/unictype/pr_other_alphabetic.h: Likewise.
42498         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42499         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42500         * lib/unictype/pr_other_id_continue.h: Likewise.
42501         * lib/unictype/pr_other_id_start.h: Likewise.
42502         * lib/unictype/pr_other_lowercase.h: Likewise.
42503         * lib/unictype/pr_other_math.h: Likewise.
42504         * lib/unictype/pr_other_uppercase.h: Likewise.
42505         * lib/unictype/pr_paired_punctuation.h: Likewise.
42506         * lib/unictype/pr_paragraph_separator.h: Likewise.
42507         * lib/unictype/pr_pattern_syntax.h: Likewise.
42508         * lib/unictype/pr_pattern_white_space.h: Likewise.
42509         * lib/unictype/pr_private_use.h: Likewise.
42510         * lib/unictype/pr_punctuation.h: Likewise.
42511         * lib/unictype/pr_quotation_mark.h: Likewise.
42512         * lib/unictype/pr_radical.h: Likewise.
42513         * lib/unictype/pr_sentence_terminal.h: Likewise.
42514         * lib/unictype/pr_soft_dotted.h: Likewise.
42515         * lib/unictype/pr_space.h: Likewise.
42516         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42517         * lib/unictype/pr_titlecase.h: Likewise.
42518         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42519         * lib/unictype/pr_unified_ideograph.h: Likewise.
42520         * lib/unictype/pr_uppercase.h: Likewise.
42521         * lib/unictype/pr_variation_selector.h: Likewise.
42522         * lib/unictype/pr_white_space.h: Likewise.
42523         * lib/unictype/pr_xid_continue.h: Likewise.
42524         * lib/unictype/pr_xid_start.h: Likewise.
42525         * lib/unictype/pr_zero_width.h: Likewise.
42526         * lib/unictype/scripts.h: Likewise.
42527         * lib/unictype/scripts_byname.gperf: Likewise.
42528         * lib/unictype/sy_c_ident.h: Likewise.
42529         * lib/unictype/sy_c_whitespace.h: Likewise.
42530         * lib/unictype/sy_java_ident.h: Likewise.
42531         * lib/unictype/sy_java_whitespace.h: Likewise.
42532
42533         * lib/unictype/Makefile: New file.
42534         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42535         glibc.
42536         * lib/unictype/3level.h: New file, copied from glibc.
42537         * lib/unictype/3levelbit.h: New file.
42538
42539 2007-11-11  Bruno Haible  <bruno@clisp.org>
42540
42541         * modules/gperf: New file.
42542         * modules/iconv_open (Depends-on): Add it.
42543         (Makefile.am): Remove the GPERF definition.
42544
42545 2007-11-11  Bruno Haible  <bruno@clisp.org>
42546
42547         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42548         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42549
42550 2007-11-11  Bruno Haible  <bruno@clisp.org>
42551
42552         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42553         (usage): Remove function.
42554
42555 2007-11-11  Bruno Haible  <bruno@clisp.org>
42556
42557         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42558         gl_FUNC_CEILF_LIBS.
42559         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42560         gl_FUNC_CEIL_LIBS.
42561         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42562         gl_FUNC_CEILL_LIBS.
42563         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42564         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42565         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42566
42567 2007-11-11  Bruno Haible  <bruno@clisp.org>
42568
42569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42570         roundf were declared but do not exist on functions.
42571         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42572         roundl were declared but do not exist on functions.
42573         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42574         HAVE_FLOORL_AND_CEILL, respectively.
42575         Needed for Sun C on Solaris 10.
42576
42577 2007-11-11  Bruno Haible  <bruno@clisp.org>
42578
42579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42580         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42581         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42582         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42584         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42585         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42586         HAVE_DECL_ROUNDF.
42587         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42588         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42590         of HAVE_DECL_ROUND*.
42591         * modules/math (Makefile.am): Update.
42592
42593 2007-11-10  Bruno Haible  <bruno@clisp.org>
42594
42595         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42596         ptrdiff_t as m4/intl.m4.
42597
42598 2007-11-10  Jim Meyering  <meyering@redhat.com>
42599
42600         Avoid link failure for the argmatch test.
42601         * tests/test-argmatch.c (usage): Define function to avoid a link
42602         failure: argmatch_die requires a usage function.
42603
42604 2007-11-09  Bruno Haible  <bruno@clisp.org>
42605
42606         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42607         * doc/functions/vsnprintf.texi: Likewise.
42608         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42609         with a size argument < 2.
42610
42611 2007-11-09  Bruno Haible  <bruno@clisp.org>
42612
42613         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42614         buffer. Fixes an inefficiency introduced on 2007-11-03.
42615
42616 2007-11-09  Bruno Haible  <bruno@clisp.org>
42617
42618         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42619         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42620
42621 2007-11-08  Jim Meyering  <meyering@redhat.com>
42622
42623         Change cache variable name prefix "jm_" to "gl_" everywhere.
42624         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42625         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42626         * m4/uptime.m4: s/gl_/jm_/
42627
42628 2007-11-07  Bruno Haible  <bruno@clisp.org>
42629
42630         Update to GNU gettext 0.17.
42631         * m4/intl.m4: Update to GNU gettext 0.17.
42632         * m4/po.m4: Likewise.
42633         * modules/gettext (Files): Remove m4/ulonglong.m4.
42634         (configure.ac): Require gettext infrastructure from version 0.17.
42635
42636 2007-11-06  Bruno Haible  <bruno@clisp.org>
42637
42638         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42639         symbolic values are not defined in a public header.
42640         * lib/freadable.c (freadable) [QNX]: Likewise.
42641         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42642         * lib/freading.c (freading) [QNX]: Likewise.
42643         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42644         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42645         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42646         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42647         Reported by Alain Magloire.
42648
42649         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42650
42651 2007-11-05  Bruno Haible  <bruno@clisp.org>
42652
42653         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42654         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42655         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42656         Reported by Eric Blake.
42657
42658 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42659             Bruno Haible  <bruno@clisp.org>
42660
42661         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42662         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42663         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42664         (malloc): Undefine also before including <stdlib.h>.
42665         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42666         Needed on OSF/1 4.0.
42667
42668 2007-11-05  Jim Meyering  <meyering@redhat.com>
42669
42670         git-version-gen: sync from coreutils.
42671         * build-aux/git-version-gen: Add comments.
42672         Change the first '-' to '.' in the snapshot version string,
42673         e.g., 6.9-377-08144 -> 6.9.377-08144
42674         Remove first parameter.
42675         Don't declare a version "-dirty" merely because a time
42676         stamp has changed.
42677
42678 2007-11-04  Bruno Haible  <bruno@clisp.org>
42679
42680         * lib/lock.h: Protect all macro definitions containing an 'if'
42681         statement through a "do { ... } while (0)".
42682         * lib/tls.h: Likewise.
42683
42684 2007-11-04  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42687
42688 2007-11-04  Bruno Haible  <bruno@clisp.org>
42689
42690         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42691         * modules/fprintf-posix (Depends-on): Add nocrash.
42692         * modules/snprintf-posix (Depends-on): Likewise.
42693         * modules/sprintf-posix (Depends-on): Likewise.
42694         * modules/vasnprintf-posix (Depends-on): Likewise.
42695         * modules/vasprintf-posix (Depends-on): Likewise.
42696         * modules/vfprintf-posix (Depends-on): Likewise.
42697         * modules/vsnprintf-posix (Depends-on): Likewise.
42698         * modules/vsprintf-posix (Depends-on): Likewise.
42699         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42700         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42701         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42704         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42705         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42706
42707 2007-11-04  Bruno Haible  <bruno@clisp.org>
42708
42709         * modules/nocrash: New file.
42710         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42711         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42712
42713 2007-11-04  Bruno Haible  <bruno@clisp.org>
42714
42715         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42716         precision handling.
42717         * tests/test-vasprintf-posix.c (test_function): Likewise.
42718         * tests/test-snprintf-posix.h (test_function): Likewise.
42719         * tests/test-sprintf-posix.h (test_function): Likewise.
42720
42721         Fix *printf behaviour for large precisions on mingw and BeOS.
42722         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42723         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42725         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42726         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42727         gl_PRINTF_PRECISION and test its result. Invoke
42728         gl_PREREQ_VASNPRINTF_PRECISION.
42729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42732         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42736         * doc/functions/fprintf.texi: Update.
42737         * doc/functions/printf.texi: Update.
42738         * doc/functions/snprintf.texi: Update.
42739         * doc/functions/sprintf.texi: Update.
42740         * doc/functions/vfprintf.texi: Update.
42741         * doc/functions/vprintf.texi: Update.
42742         * doc/functions/vsnprintf.texi: Update.
42743         * doc/functions/vsprintf.texi: Update.
42744
42745 2007-11-04  Bruno Haible  <bruno@clisp.org>
42746
42747         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42748
42749 2007-11-04  Bruno Haible  <bruno@clisp.org>
42750
42751         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42752         Reported by Sylvain Beucler <beuc@gnu.org>.
42753
42754 2007-11-03  Bruno Haible  <bruno@clisp.org>
42755
42756         * tests/test-fprintf-posix2.sh: New file.
42757         * tests/test-fprintf-posix2.c: New file.
42758         * modules/fprintf-posix-tests (Files): Add them.
42759         (TESTS): Add test-fprintf-posix2.sh.
42760         (configure.ac): Check for getrlimit and setrlimit.
42761         (check_PROGRAMS): Add test-fprintf-posix2.
42762
42763         * tests/test-printf-posix2.sh: New file.
42764         * tests/test-printf-posix2.c: New file.
42765         * modules/printf-posix-tests (Files): Add them.
42766         (TESTS): Add test-printf-posix2.sh.
42767         (configure.ac): Check for getrlimit and setrlimit.
42768         (check_PROGRAMS): Add test-printf-posix2.
42769
42770         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42771         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42772         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42773         (decode_double): New function, copied from decode_long_double.
42774         (scale10_round_decimal_decoded): New function, extracted from
42775         scale10_round_decimal_long_double.
42776         (scale10_round_decimal_long_double): Use it.
42777         (scale10_round_decimal_double): New function.
42778         (floorlog10): New function.
42779         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42781         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42783         gl_PRINTF_ENOMEM and test its result. Invoke
42784         gl_PREREQ_VASNPRINTF_ENOMEM.
42785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42786         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42791         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42792         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42793         * modules/snprintf-posix (Depends-on): Likewise.
42794         * modules/sprintf-posix (Depends-on): Likewise.
42795         * modules/vasnprintf-posix (Depends-on): Likewise.
42796         * modules/vasprintf-posix (Depends-on): Likewise.
42797         * modules/vfprintf-posix (Depends-on): Likewise.
42798         * modules/vsnprintf-posix (Depends-on): Likewise.
42799         * modules/vsprintf-posix (Depends-on): Likewise.
42800         * doc/functions/fprintf.texi: Update.
42801         * doc/functions/printf.texi: Update.
42802         * doc/functions/snprintf.texi: Update.
42803         * doc/functions/sprintf.texi: Update.
42804         * doc/functions/vfprintf.texi: Update.
42805         * doc/functions/vprintf.texi: Update.
42806         * doc/functions/vsnprintf.texi: Update.
42807         * doc/functions/vsprintf.texi: Update.
42808
42809 2007-11-03  Bruno Haible  <bruno@clisp.org>
42810
42811         * modules/frexp-nolibm-tests: New file.
42812
42813         * modules/frexp-nolibm: New file.
42814         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42815
42816 2007-11-03  Bruno Haible  <bruno@clisp.org>
42817
42818         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42819         value is C99 compliant.
42820         Needed for OSF/1 5.1.
42821
42822 2007-11-03  Bruno Haible  <bruno@clisp.org>
42823
42824         Fix out-of-memory handling of vasnprintf.
42825         * lib/printf-parse.c: Include <errno.h>.
42826         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42827         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42828         is already set.
42829
42830 2007-11-02  Eric Blake  <ebb9@byu.net>
42831
42832         Fix tests on cygwin.
42833         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42834
42835 2007-11-01  Bruno Haible  <bruno@clisp.org>
42836
42837         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42838         warning.
42839         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42840         needed for POSIX compatibility.
42841
42842 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42843
42844         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42845         for compatibility with GNU.
42846
42847 2007-11-01  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42850         (putenv): Renamed from rpl_putenv. Change argument type from
42851         'const char *' to 'char *'.
42852         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42853         of defining putenv in config.h, just set REPLACE_PUTENV.
42854         * modules/putenv (Depends-on): Add stdlib.
42855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42856         (Include): Use <stdlib.h>.
42857         * lib/stdlib.in.h (putenv): New declaration.
42858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42859         REPLACE_PUTENV.
42860         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42861         REPLACE_PUTENV.
42862         Needed for MacOS X 10.5.0.
42863         Reported by Peter O'Gorman <peter@pogma.com>.
42864
42865 2007-11-01  Jim Meyering  <meyering@redhat.com>
42866
42867         Treat an empty date string exactly like "0".
42868         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42869         if the remaining date string (to be parsed) is empty, use "0".
42870         Reported by Mischa Molhoek and discussed in this thread:
42871         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42872
42873 2007-10-31  Bruno Haible  <bruno@clisp.org>
42874
42875         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42876         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42877         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42878         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42879         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42880         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42881
42882 2007-10-31  Bruno Haible  <bruno@clisp.org>
42883
42884         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42885         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42886         (AC_TYPE_LONG_LONG_INT): Use it.
42887         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42888         it as well.
42889         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42890         to m4/longlong.m4.
42891         * modules/stdint (Files): Remove m4/ulonglong.m4.
42892         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42893         m4/ulonglong.m4.
42894         * modules/strtoumax (Files): Likewise.
42895
42896 2007-10-30  Bruno Haible  <bruno@clisp.org>
42897
42898         * modules/xvasprintf-posix: New file.
42899         Suggested by Eric Blake.
42900
42901 2007-10-30  Bruno Haible  <bruno@clisp.org>
42902
42903         * modules/xprintf-posix-tests: New file.
42904         * tests/test-xprintf-posix.sh: New file.
42905         * tests/test-xprintf-posix.c: New file.
42906         * tests/test-xfprintf-posix.c: New file.
42907
42908         * modules/xprintf-posix: New file.
42909
42910 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42911
42912         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42913         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42914         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42915
42916 2007-10-29  Bruno Haible  <bruno@clisp.org>
42917
42918         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42919         contain the special marker '_cv_'.
42920         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42921         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42922         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42923         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42924         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42925         Reported by Ralf Wildenhues.
42926
42927 2007-10-29  Bruno Haible  <bruno@clisp.org>
42928
42929         * gnulib-tool (func_import): When --lgpl is not specified, set
42930         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42931         GPLv3.
42932         Reported by Simon Josefsson.
42933
42934 2007-10-28  Bruno Haible  <bruno@clisp.org>
42935
42936         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42937         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42938         HAVE_DECL_ISFINITE.
42939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42940         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42941         HAVE_DECL_ISFINITE.
42942
42943 2007-10-28  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42946         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42947
42948 2007-10-28  Bruno Haible  <bruno@clisp.org>
42949
42950         Fix link errors with Sun C 5.0 on Solaris 10.
42951         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42952         function is declared but not present in the compiler's libm.
42953         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42954         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42955         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42956         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42957         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42958         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42959         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42961         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42962         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42963         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42964         HAVE_DECL_FLOORL.
42965
42966 2007-10-28  Bruno Haible  <bruno@clisp.org>
42967
42968         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42969         gl_FUNC_FLOORL. Cache the result.
42970         (gl_FUNC_FLOORL): Use it.
42971         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42972         gl_FUNC_CEILL. Cache the result.
42973         (gl_FUNC_CEILL): Use it.
42974
42975         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42976         gl_FUNC_FLOOR. Cache the result.
42977         (gl_FUNC_FLOOR): Use it.
42978         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42979         gl_FUNC_CEIL. Cache the result.
42980         (gl_FUNC_CEIL): Use it.
42981
42982         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42983         gl_FUNC_FLOORF. Cache the result.
42984         (gl_FUNC_FLOORF): Use it.
42985         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42986         gl_FUNC_CEILF. Cache the result.
42987         (gl_FUNC_CEILF): Use it.
42988
42989 2007-10-28  Bruno Haible  <bruno@clisp.org>
42990
42991         * gnulib-tool: Allow specifying the LGPL version number through
42992         --lgpl=2 or --lgpl=3.
42993         (func_usage): Document --lgpl with argument.
42994         Handle --lgpl=... arguments.
42995         (func_import): Recognize also gl_LGPL calls with an argument. When
42996         --lgpl=2 is used and the module's license is just LGPL, report an
42997         error. Set sed_transform_lib_file according to the lgpl variable. In
42998         the generated files, use --lgpl or gl_LGPL invocations with argument,
42999         if necessary.
43000         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43001         an LGPv2+ license.
43002         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43003         gl_LGPL macro.
43004
43005 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43006             Bruno Haible  <bruno@clisp.org>
43007
43008         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43009         (u16_uctomb_aux): Likewise.
43010         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43011         !HAVE_INLINE.
43012         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43013
43014 2007-10-28  Bruno Haible  <bruno@clisp.org>
43015
43016         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43017         Invoke AM_GETTEXT_OPTION if it exists.
43018         * modules/vasprintf: Likewise.
43019         * modules/verror: Likewise.
43020         * modules/xprintf: Likewise.
43021         * modules/xvasprintf: Likewise.
43022
43023 2007-10-27  Ben Pfaff  <blp@gnu.org>
43024
43025         * lib/math.in.h: Define isfinite macro and prototypes for
43026         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43027         implementations.
43028         * m4/math_h.m4: New substitutions for isfinite module.
43029         * lib/isfinite.c: New file.
43030         * m4/isfinite.m4: New file.
43031         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43032         * modules/isfinite: New file.
43033         * modules/isfinite-tests: New file.
43034         * tests/tests-isfinite.c: New file.
43035         * doc/functions/isfinite.texi: Mention isfinite module.
43036         * MODULES.html.sh: Mention new module.
43037
43038 2007-10-27  Ben Pfaff  <blp@gnu.org>
43039
43040         Ralf Wildenhues reported that Tru64 4.0D declares the round
43041         functions but does not have definitions.
43042         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43043         cannot be found in any library, set the output variable to
43044         "missing" instead of "".
43045         * m4/round.m4: Also use our substitute if we cannot find round in
43046         any library, even if it is declared.
43047         * m4/roundf.m4: Likewise for roundf.
43048         * m4/roundl.m4: Likewise for roundl.
43049         * lib/math.in.h: Undefine roundf, round, roundl before defining
43050         their replacements, to allow for hypothetical systems where these
43051         may be defined as macros but not available in libraries.
43052
43053 2007-10-27  Bruno Haible  <bruno@clisp.org>
43054
43055         * doc/gnulib.texi: Invoke @firstparagraphindent.
43056         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43057         changes in gnulib.
43058         (Source changes): New section.
43059
43060 2007-10-26  Bruno Haible  <bruno@clisp.org>
43061
43062         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43063         borrowed from autoconf.
43064
43065 2007-10-26  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43068         strerror returned the empty string. Needed on HP-UX 11.00.
43069
43070 2007-10-24  Micah Cowan  <micah@cowan.name>
43071
43072         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43073         * build-aux/bootstrap: Remove support for now-unnecessary option,
43074         --cvs-user, and envvars CVS_USER, CVS_RSH.
43075
43076 2007-10-24  Jim Meyering  <meyering@redhat.com>
43077
43078         Avoid diagnostics from sha1sum when there is no cached checksum.
43079         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43080         if the po.s1 file hasn't been created yet.
43081
43082         * build-aux/bootstrap: Sync from coreutils:
43083         2007-10-24  Jim Meyering  <meyering@redhat.com>
43084         Get gnulib from the git repository, not from an obsolete cvs one.
43085         * build-aux/bootstrap: Suggestion from Micah Cowan.
43086         2007-10-04  Jim Meyering  <jim@meyering.net>
43087         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43088         (update_po_files): Work also when there are no .po files in po/.
43089
43090 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43091
43092         * README: Append ".git" to git and cg examples.
43093         Problem reported by Benoit Sigoure.
43094
43095 2007-10-23  Micah Cowan  <micah@cowan.name>
43096
43097         * users.txt: Add wget.
43098
43099 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43100
43101         Fix linking of some unistdio tests on FreeBSD.
43102         * modules/unistdio/u16-vsnprintf-tests
43103         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43104         * modules/unistdio/u16-vsprintf-tests
43105         (test_u16_vsnprintf1_LDADD): Likewise.
43106         * modules/unistdio/u32-vsnprintf-tests
43107         (test_u32_vsnprintf1_LDADD): Likewise.
43108         * modules/unistdio/u32-vsprintf-tests
43109         (test_u32_vsprintf1_LDADD): Likewise.
43110         * modules/unistdio/u8-vsnprintf-tests
43111         (test_u8_vsnprintf1_LDADD): Likewise.
43112         * modules/unistdio/u8-vsprintf-tests
43113         (test_u8_vsprintf1_LDADD): Likewise.
43114         * modules/unistdio/ulc-vsnprintf-tests
43115         (test_ulc_vsnprintf1_LDADD): Likewise.
43116         * modules/unistdio/ulc-vsprintf-tests
43117         (test_ulc_vsprintf1_LDADD): Likewise.
43118
43119         Fix linking of some uniconv tests on FreeBSD.
43120         * modules/uniconv/u16-conv-from-enc-tests
43121         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43122         * modules/uniconv/u16-conv-to-enc-tests
43123         (test_u16_conv_to_enc_LDADD): Likewise.
43124         * modules/uniconv/u16-strconv-from-enc-tests
43125         (test_u16_strconv_from_enc_LDADD): Likewise.
43126         * modules/uniconv/u16-strconv-to-enc-tests
43127         (test_u16_strconv_to_enc_LDADD): Likewise.
43128         * modules/uniconv/u32-conv-from-enc-tests
43129         (test_u32_conv_from_enc_LDADD): Likewise.
43130         * modules/uniconv/u32-conv-to-enc-tests
43131         (test_u32_conv_to_enc_LDADD): Likewise.
43132         * modules/uniconv/u32-strconv-from-enc-tests
43133         (test_u32_strconv_from_enc_LDADD): Likewise.
43134         * modules/uniconv/u32-strconv-to-enc-tests
43135         (test_u32_strconv_to_enc_LDADD): Likewise.
43136         * modules/uniconv/u8-conv-from-enc-tests
43137         (test_u8_conv_from_enc_LDADD): Likewise.
43138         * modules/uniconv/u8-conv-to-enc-tests
43139         (test_u8_conv_to_enc_LDADD): Likewise.
43140         * modules/uniconv/u8-strconv-from-enc-tests
43141         (test_u8_strconv_from_enc_LDADD): Likewise.
43142         * modules/uniconv/u8-strconv-to-enc-tests
43143         (test_u8_strconv_to_enc_LDADD): Likewise.
43144
43145 2007-10-22  Bruno Haible  <bruno@clisp.org>
43146
43147         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43148         size.
43149
43150 2007-10-22  Eric Blake  <ebb9@byu.net>
43151
43152         Tweak x*printf documentation.
43153         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43154         variable name and comments.
43155         Suggested by Bruno Haible.
43156
43157 2007-10-22  Bruno Haible  <bruno@clisp.org>
43158
43159         * lib/acl.c (copy_acl): Fix file name in comment.
43160
43161 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43162
43163         Fix Tru64 problem with stdbool.h.
43164         * lib/stdbool.in.h (false, true):
43165         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43166         Don't declare as an enum in this situation; it runs afoul of Tru64.
43167         Problem reported by Steven M. Schweda in
43168         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43169
43170 2007-10-22  Eric Blake  <ebb9@byu.net>
43171
43172         Also wrap vf?printf.
43173         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43174         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43175         (xvprintf, xvfprintf): New functions.
43176
43177 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43178
43179         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43180         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43181
43182         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43183         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43184
43185 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43186
43187         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43188         by Bruno Haible.
43189
43190 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43191
43192         * lib/getloadavg.c
43193         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43194         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43195
43196         * tests/test-i-ring.c: Work for C89.
43197
43198 2007-10-22  Bruno Haible  <bruno@clisp.org>
43199
43200         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43201         -1u, in preprocessor expression, so that we don't test for the bug
43202         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43203         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43204
43205 2007-10-22  Eric Blake  <ebb9@byu.net>
43206
43207         * tests/test-yesno.sh: Silence stderr during test.
43208
43209 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43210
43211         * modules/crypto/gc-camellia: New file.
43212
43213         * m4/gc-camellia.m4: New file.
43214
43215         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43216
43217         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43218
43219 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43220
43221         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43222         --help to stdout.  Reported by sms@antinode.org (Steven
43223         M. Schweda).
43224
43225 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43226
43227         * users.txt: Fix link to libksba.
43228
43229 2007-10-21  Ben Pfaff  <blp@gnu.org>
43230
43231         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43232         round.c roundf implementation that depends on floorf and ceilf to
43233         be tested unconditionally.
43234
43235 2007-10-21  Ben Pfaff  <blp@gnu.org>
43236
43237         * m4/check-libm-func.m4: Removed.
43238         * m4/check-math-lib.m4: New file.
43239         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43240         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43241         definition and lack of AC_LIBOBJ([roundf]).
43242         * m4/roundl.m4: Ditto, and similarly for roundl.
43243         * modules/round: Reference new m4 file.
43244         * modules/roundf: Ditto.
43245         * modules/roundl: Ditto.
43246         * tests/test-round2.c (main): Use ROUND instead of round.
43247         Bug report from Bruno Haible.
43248
43249 2007-10-21  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43252         context.
43253
43254 2007-10-21  Bruno Haible  <bruno@clisp.org>
43255
43256         * tests/test-wcwidth.c (main): Allow negative result for some control
43257         characters.
43258
43259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43260         Needed on OSF/1 5.1.
43261
43262 2007-10-21  Bruno Haible  <bruno@clisp.org>
43263
43264         * tests/test-floorf1.c: Include isnanf.h.
43265         (main): Use isnanf() instead of isnan().
43266         * tests/test-ceilf1.c: Include isnanf.h.
43267         (main): Use isnanf() instead of isnan().
43268         * tests/test-truncf1.c: Include isnanf.h.
43269         (main): Use isnanf() instead of isnan().
43270         * tests/test-roundf1.c: Include isnanf.h.
43271         (main): Use isnanf() instead of isnan().
43272
43273 2007-10-21  Eric Blake  <ebb9@byu.net>
43274
43275         * users.txt: Update URL for m4.
43276
43277 2007-10-21  Bruno Haible  <bruno@clisp.org>
43278
43279         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43280
43281 2007-10-21  Bruno Haible  <bruno@clisp.org>
43282
43283         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43284         Git's management files if the CVS files are not present.
43285
43286 2007-10-20  Bruno Haible  <bruno@clisp.org>
43287
43288         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43289         gcc-3.4.x.
43290
43291 2007-10-20  Ben Pfaff  <blp@gnu.org>
43292
43293         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43294         implementations.
43295         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43296         * lib/round.c: New file.
43297         * lib/roundf.c: New file.
43298         * lib/roundl.c: New file.
43299         * m4/round.m4: New file.
43300         * m4/roundf.m4: New file.
43301         * m4/roundl.m4: New file.
43302         * m4/check-libm-func-m4: New file.
43303         * modules/math: Replace round, roundf, roundl related @VARS@ in
43304         math.in.h.
43305         * modules/round: New file.
43306         * modules/round-tests: New file.
43307         * modules/roundf: New file.
43308         * modules/roundf-tests: New file.
43309         * modules/roundl: New file.
43310         * modules/roundl-tests: New file.
43311         * tests/test-round1.c: New file.
43312         * tests/test-round2.c: New file.
43313         * tests/test-roundf1.c: New file.
43314         * tests/test-roundf2.c: New file.
43315         * tests/test-roundl.c: New file.
43316         * doc/functions/round.texi: Mention round module.
43317         * doc/functions/roundf.texi: Mention roundf module.
43318         * doc/functions/roundl.texi: Mention roundl module.
43319         * MODULES.html.sh: Mention new modules.
43320         Thanks to Bruno Haible for suggestions.
43321
43322 2007-10-20  Jim Meyering  <meyering@redhat.com>
43323
43324         * lib/xprintf.c: Include <config.h> unconditionally.
43325
43326         Change xprintf's license to GPL.
43327         * modules/xprintf (License): s/LGPL/GPL/, since this module
43328         depends on modules (exit and exitfail) which are GPL.
43329         Suggestion from Bruno Haible.
43330
43331         xprintf fixes.
43332         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43333         Use a clearer diagnostic.
43334         Patch from Bruno Haible.
43335
43336 2007-10-20  Bruno Haible  <bruno@clisp.org>
43337
43338         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43339         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43341
43342 2007-10-20  Bruno Haible  <bruno@clisp.org>
43343
43344         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43345         precision in the comparison result > x - 1 or similar.
43346         * tests/test-ceilf2.c (correct_result_p): Likewise.
43347         * tests/test-truncf2.c (correct_result_p): Likewise.
43348         * tests/test-trunc2.c (correct_result_p): Likewise.
43349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43350
43351 2007-10-20  Bruno Haible  <bruno@clisp.org>
43352
43353         * modules/ceil: New file.
43354         * m4/ceil.m4: New file.
43355         * doc/functions/ceil.texi: Mention the 'ceil' module.
43356
43357 2007-10-20  Bruno Haible  <bruno@clisp.org>
43358
43359         * modules/floor: New file.
43360         * m4/floor.m4: New file.
43361         * doc/functions/floor.texi: Mention the 'floor' module.
43362
43363 2007-10-20  Bruno Haible  <bruno@clisp.org>
43364
43365         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43366         of %a.
43367         * modules/floorf-tests (Depends-on): Likewise.
43368         * modules/truncf-tests (Depends-on): Likewise.
43369         * modules/trunc-tests (Depends-on): Likewise.
43370         Reported by Ben Pfaff.
43371
43372 2007-10-19  Jim Meyering  <meyering@redhat.com>
43373
43374         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43375         Don't bother testing specific errno values.  Just test ferror.
43376
43377         New module: xprintf
43378         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43379
43380 2007-10-19  Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43383         syntax.
43384         * modules/javaexec (Makefile.am): Likewise.
43385         * modules/relocatable-prog (Makefile.am): Likewise.
43386         Suggested by Jim Meyering.
43387
43388 2007-10-18  Bruno Haible  <bruno@clisp.org>
43389
43390         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43391         Reported by Jim Meyering.
43392
43393 2007-10-18  Eric Blake  <ebb9@byu.net>
43394
43395         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43396
43397 2007-10-18  Bruno Haible  <bruno@clisp.org>
43398
43399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43400         the format string into writable memory. Needed in Fortify conditions.
43401
43402 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43403             Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43406         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43407         * modules/trim (Depends-on): Add mbchar.
43408         (configure.ac): Add gl_FUNC_MBRTOWC.
43409         (Makefile.am): Augment lib_SOURCES.
43410
43411 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43412
43413         Modify glob.c to use fstatat and dirfd, to simplify it.
43414         Suggested by Eric Blake.
43415         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43416         Don't include <stdbool.h>; not used.
43417         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43418         (link_exists_p): Simplify implementation, since we can now assume
43419         dirfd and fstatat.
43420         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43421
43422 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43423
43424         * gnulib-tool (func_get_dependencies): Fix sed script to
43425         match only tests.
43426
43427 2007-10-17  Bruno Haible  <bruno@clisp.org>
43428
43429         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43430         allow locale names without encoding suffix.
43431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43432         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43433
43434 2007-10-16  Bruno Haible  <bruno@clisp.org>
43435
43436         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43437         * lib/getgroups.c (getgroups): Likewise.
43438         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43439
43440 2007-10-16  Bruno Haible  <bruno@clisp.org>
43441
43442         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43443         * modules/malloc-posix (License): Likewise.
43444         * modules/realloc-posix (License): Likewise.
43445         * modules/calloc-posix (License): Likewise.
43446         * modules/intprops (License): Change from GPL to LGPL, with
43447         Paul Eggert's approval.
43448
43449 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43450
43451         Merge glibc changes into lib/glob.c.
43452
43453         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43454         2007-10-15 04:59:03 UTC.  Here are the changes:
43455
43456         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43457
43458         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43459
43460         * lib/glob.c: Add some branch prediction throughout.
43461
43462         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43463
43464         [BZ #5103]
43465         * lib/glob.c (glob): Recognize patterns starting \/.
43466
43467         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43468
43469         [BZ #3996]
43470         * lib/glob.c (attribute_hidden): Define if not defined.
43471         (glob): Unescape dirname, filename or username when needed and not
43472         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43473         is NULL.  Handle unescaped [ in pattern without closing ].
43474         Don't pass GLOB_CHECK down to recursive glob for directories.
43475         (__glob_pattern_type): New function.
43476         (__glob_pattern_p): Implement using __glob_pattern_type.
43477         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43478         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43479         Remove unreachable code.
43480
43481         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43482
43483         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43484         explain why there are no leaks.
43485
43486         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43487
43488         [BZ #3253]
43489         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43490         time, rather allocate increasingly bigger arrays of pointers, if
43491         possible with alloca, if too large with malloc.
43492
43493 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43494
43495         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43496         Problem reported by H.Merijn Brand in
43497         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43499         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43500
43501 2007-10-15  Bruno Haible  <bruno@clisp.org>
43502
43503         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43504         with explicit rpl_ prefix.
43505         * lib/fopen.c (fopen): Likewise.
43506         * lib/freopen.c (freopen): Likewise.
43507         * lib/iconv.c (iconv): Likewise.
43508         * lib/iconv_close.c (iconv_close): Likewise.
43509
43510 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43511
43512         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43513
43514 2007-10-15  Bruno Haible  <bruno@clisp.org>
43515
43516         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43517         <stddef.h> instead of <stdlib.h> since we only need NULL.
43518         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43519
43520 2007-10-15  Bruno Haible  <bruno@clisp.org>
43521
43522         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43523         Replace paragraph talking about LIBOBJS.
43524         Reported by Colin Watson <cjwatson@debian.org>.
43525
43526 2007-10-15  Bruno Haible  <bruno@clisp.org>
43527
43528         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43529         <stdlib.h> before using NULL.
43530
43531 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43532
43533         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43534         Reported by Albert Chin <china@thewrittenword.com>.
43535
43536 2007-10-14  Bruno Haible  <bruno@clisp.org>
43537
43538         * modules/iconv_open-utf-tests: New file.
43539         * tests/test-iconv-utf.c: New file.
43540
43541         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43542         * modules/iconv_open-utf: New file.
43543         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43544         (iconv, iconv_close): New declarations.
43545         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43546         be defined.
43547         (iconv_open): Add special handling of conversion between UTF-8 and
43548         UTF-{16,32}{BE,LE}.
43549         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43550         * lib/iconv_close.c: New file.
43551         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43552         gl_FUNC_ICONV_OPEN.
43553         (gl_FUNC_ICONV_OPEN): Use it.
43554         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43555         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43556         and REPLACE_ICONV_UTF.
43557         * modules/iconv_open (Depends-on): Add c-strcase.
43558         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43559         ICONV_CONST.
43560         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43561
43562 2007-10-13  Albert Chin  <china@thewrittenword.com>
43563             Bruno Haible  <bruno@clisp.org>
43564
43565         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43566         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43567
43568 2007-10-13  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43571         defined, use the ISO C99 inline semantics.
43572         * lib/argp.h (ARGP_EI): Likewise.
43573
43574 2007-10-13  Bruno Haible  <bruno@clisp.org>
43575
43576         Handle 'inline' change in gcc 4.3.0.
43577         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43578         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43579         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43580         argp_fmtstream_point): Disable 'extern' declaration if the function
43581         definition is going to be provided inline.
43582         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43583         semantics, not the ISO C99 inline semantics.
43584         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43585         'extern' declaration if the function definition is going to be provided
43586         inline.
43587         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43588         the GNU C inline semantics, not the ISO C99 inline semantics. With
43589         GCC 4.2, avoid a warning.
43590
43591 2007-10-13  Bruno Haible  <bruno@clisp.org>
43592
43593         * lib/freading.h (freading): Enable the use of __freading for
43594         glibc >= 2.7.
43595         * lib/freading.c (freading): Likewise.
43596
43597 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43598
43599         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43600         "warning: C99 inline functions are not supported; using GNU89".
43601
43602 2007-10-12  Bruno Haible  <bruno@clisp.org>
43603
43604         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43605         of 2.
43606         * tests/test-ceilf2.c: New file.
43607         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43608
43609         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43610         * modules/ceilf-tests: Update.
43611
43612 2007-10-12  Bruno Haible  <bruno@clisp.org>
43613
43614         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43615         of 2.
43616         * tests/test-floorf2.c: New file.
43617         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43618
43619         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43620         * modules/floorf-tests: Update.
43621
43622 2007-10-12  Bruno Haible  <bruno@clisp.org>
43623
43624         * tests/test-trunc2.c: New file.
43625         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43626
43627         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43628         * modules/trunc-tests: Update.
43629
43630 2007-10-12  Bruno Haible  <bruno@clisp.org>
43631
43632         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43633         of 2.
43634         * tests/test-truncf2.c: New file.
43635         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43636
43637         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43638         * modules/truncf-tests: Update.
43639
43640 2007-10-11  Eric Blake  <ebb9@byu.net>
43641
43642         Don't claim strerror is broken on Interix.
43643         * doc/functions/strerror.texi (strerror): Known broken systems are
43644         now Solaris 8, and not Interix.
43645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43646         Interix on cross-compile.
43647         Reported by Martin Koeppe in
43648         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43649
43650 2007-10-11  Bruno Haible  <bruno@clisp.org>
43651
43652         * modules/i-ring-tests: New file.
43653         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43654         instead of assert.
43655
43656 2007-10-11  Bruno Haible  <bruno@clisp.org>
43657
43658         * modules/filenamecat-tests: New file.
43659         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43660         * lib/filenamecat.c: Remove test code.
43661
43662 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43663
43664         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43665
43666         * lib/strerror.c: Include <string.h> always, to test interface,
43667         and to remove the need for the dummy.
43668         Include intprops.h to compute width instead of doing it ourselves
43669         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43670         (strerror): Define it to return NULL if there's no system strerror.
43671         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43672         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43673         ancient pre-strerror Unix systems well any more.  Saying "unknown
43674         system error" is enough.
43675         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43676         simpler strerror.c implementation.
43677         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43678         Simplify the tests to reflect the simpler strerror implementation.
43679         * modules/strerror (Depends-on): Add intprops.
43680
43681 2007-10-09  Eric Blake  <ebb9@byu.net>
43682
43683         Silence test-fpending.
43684         * modules/fpending-tests (Files): Add wrapper script.
43685         * tests/test-fpending.sh: New file.
43686
43687 2007-10-09  Bruno Haible  <bruno@clisp.org>
43688
43689         * MODULES.html.sh (func_module): Don't create a hyperlink for
43690         function names like 'printf_frexp'.
43691         (Misc): Add crc, memxor.
43692         (Characteristics of floating types): New section.
43693         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43694         isnanf-nolibm, signbit, trunc, truncf, truncl.
43695         (Enhancements for ISO C 99 functions): New subsection Input/output.
43696         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43697         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43698         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43699         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43700         (Enhancements for POSIX:2001 functions): Add chdir-long.
43701         (File system functions): Add areadlink, chdir-safer, read-file.
43702         Remove cycle-check.
43703         (File system as inode set): New section.
43704         (Date and time): Add gethrxtime.
43705         (Multithreading): Add openmp.
43706         (Internationalization functions): Add localename.
43707         (Unicode string functions): Add unistr/u*-mbsnlen.
43708         (Support for maintaining and releasing projects): Add git-version-gen.
43709         (Lone files): Remove directories.
43710
43711 2007-10-08  Ben Pfaff  <blp@gnu.org>
43712
43713         * lib/xmalloca.h: Fix typo in comment.
43714
43715 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43716
43717         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43718         when avoiding problems with integer overflow.  Use a portable test
43719         instead.
43720
43721 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43722
43723         * modules/dummy (License): Change to LGPLv2+.
43724         * modules/float (License): Likewise
43725         * modules/realloc (License): Likewise
43726         * modules/stdlib (License): Likewise
43727
43728 2007-10-07  Bruno Haible  <bruno@clisp.org>
43729
43730         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43731         * floor.c (TWO_MANT_DIG): Likewise.
43732         * ceil.c (TWO_MANT_DIG): Likewise.
43733         Reported by Ben Pfaff.
43734
43735 2007-10-07  Bruno Haible  <bruno@clisp.org>
43736
43737         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43738         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43739         * lib/frexp.c (FUNC): Likewise.
43740         * lib/printf-frexp.h (printf_frexp): Likewise.
43741         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43742         * lib/printf-frexp.c (FUNC): Likewise.
43743         Suggested by Jim Meyering.
43744
43745 2007-10-07  Jim Meyering  <meyering@redhat.com>
43746
43747         Make xnanosleep's integer overflow test more robust.
43748         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43749         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43750
43751 2007-10-07  Bruno Haible  <bruno@clisp.org>
43752
43753         * NEWS: Mention the license change.
43754
43755         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43756         abbreviations in the modules files.
43757
43758         Change copyright notice from GPLv2+ to GPLv3+.
43759         * README: Change copyright notice.
43760         * MODULES.html.sh: Likewise.
43761         * build-aux/bootstrap.conf: Likewise.
43762         * build-aux/config.libpath: Likewise.
43763         * build-aux/csharpcomp.sh.in: Likewise.
43764         * build-aux/csharpexec.sh.in: Likewise.
43765         * build-aux/install-reloc: Likewise.
43766         * build-aux/javacomp.sh.in: Likewise.
43767         * build-aux/javaexec.sh.in: Likewise.
43768         * build-aux/ldd.sh.in: Likewise.
43769         * build-aux/reloc-ldflags: Likewise.
43770         * build-aux/relocatable.sh.in: Likewise.
43771         * build-aux/x-to-1.in: Likewise.
43772         * check-module: Likewise.
43773         * config/srclistvars.sh: Likewise.
43774         * gnulib-tool: Likewise.
43775         * lib/acl-internal.h: Likewise.
43776         * lib/acl.c: Likewise.
43777         * lib/acl.h: Likewise.
43778         * lib/acl_entries.c: Likewise.
43779         * lib/areadlink-with-size.c: Likewise.
43780         * lib/areadlink.c: Likewise.
43781         * lib/areadlink.h: Likewise.
43782         * lib/argmatch.c: Likewise.
43783         * lib/argmatch.h: Likewise.
43784         * lib/argp-ba.c: Likewise.
43785         * lib/argp-eexst.c: Likewise.
43786         * lib/argp-fmtstream.c: Likewise.
43787         * lib/argp-fmtstream.h: Likewise.
43788         * lib/argp-fs-xinl.c: Likewise.
43789         * lib/argp-help.c: Likewise.
43790         * lib/argp-namefrob.h: Likewise.
43791         * lib/argp-parse.c: Likewise.
43792         * lib/argp-pin.c: Likewise.
43793         * lib/argp-pv.c: Likewise.
43794         * lib/argp-pvh.c: Likewise.
43795         * lib/argp-xinl.c: Likewise.
43796         * lib/argp.h: Likewise.
43797         * lib/at-func.c: Likewise.
43798         * lib/atanl.c: Likewise.
43799         * lib/backupfile.c: Likewise.
43800         * lib/backupfile.h: Likewise.
43801         * lib/basename.c: Likewise.
43802         * lib/binary-io.h: Likewise.
43803         * lib/byteswap.in.h: Likewise.
43804         * lib/c-stack.c: Likewise.
43805         * lib/c-stack.h: Likewise.
43806         * lib/c-strcasestr.c: Likewise.
43807         * lib/c-strcasestr.h: Likewise.
43808         * lib/c-strstr.c: Likewise.
43809         * lib/c-strstr.h: Likewise.
43810         * lib/c-strtod.c: Likewise.
43811         * lib/calloc.c: Likewise.
43812         * lib/canon-host.c: Likewise.
43813         * lib/canon-host.h: Likewise.
43814         * lib/canonicalize-lgpl.c: Likewise.
43815         * lib/canonicalize.c: Likewise.
43816         * lib/canonicalize.h: Likewise.
43817         * lib/ceil.c: Likewise.
43818         * lib/ceilf.c: Likewise.
43819         * lib/ceill.c: Likewise.
43820         * lib/chdir-long.c: Likewise.
43821         * lib/chdir-long.h: Likewise.
43822         * lib/chdir-safer.c: Likewise.
43823         * lib/chdir-safer.h: Likewise.
43824         * lib/chown.c: Likewise.
43825         * lib/classpath.c: Likewise.
43826         * lib/classpath.h: Likewise.
43827         * lib/clean-temp.c: Likewise.
43828         * lib/clean-temp.h: Likewise.
43829         * lib/cloexec.c: Likewise.
43830         * lib/close-stream.c: Likewise.
43831         * lib/closein.c: Likewise.
43832         * lib/closein.h: Likewise.
43833         * lib/closeout.c: Likewise.
43834         * lib/closeout.h: Likewise.
43835         * lib/concat-filename.c: Likewise.
43836         * lib/copy-file.c: Likewise.
43837         * lib/copy-file.h: Likewise.
43838         * lib/count-one-bits.h: Likewise.
43839         * lib/crc.c: Likewise.
43840         * lib/crc.h: Likewise.
43841         * lib/creat-safer.c: Likewise.
43842         * lib/csharpcomp.c: Likewise.
43843         * lib/csharpcomp.h: Likewise.
43844         * lib/csharpexec.c: Likewise.
43845         * lib/csharpexec.h: Likewise.
43846         * lib/cycle-check.c: Likewise.
43847         * lib/cycle-check.h: Likewise.
43848         * lib/diacrit.c: Likewise.
43849         * lib/diacrit.h: Likewise.
43850         * lib/diffseq.h: Likewise.
43851         * lib/dirchownmod.c: Likewise.
43852         * lib/dirent.in.h: Likewise.
43853         * lib/dirfd.c: Likewise.
43854         * lib/dirfd.h: Likewise.
43855         * lib/dirname.c: Likewise.
43856         * lib/dirname.h: Likewise.
43857         * lib/dummy.c: Likewise.
43858         * lib/dup-safer.c: Likewise.
43859         * lib/dup2.c: Likewise.
43860         * lib/eealloc.h: Likewise.
43861         * lib/error.c: Likewise.
43862         * lib/error.h: Likewise.
43863         * lib/euidaccess.c: Likewise.
43864         * lib/exclude.c: Likewise.
43865         * lib/exclude.h: Likewise.
43866         * lib/execute.c: Likewise.
43867         * lib/execute.h: Likewise.
43868         * lib/exitfail.c: Likewise.
43869         * lib/exitfail.h: Likewise.
43870         * lib/expl.c: Likewise.
43871         * lib/fatal-signal.c: Likewise.
43872         * lib/fatal-signal.h: Likewise.
43873         * lib/fbufmode.c: Likewise.
43874         * lib/fbufmode.h: Likewise.
43875         * lib/fchdir.c: Likewise.
43876         * lib/fchmodat.c: Likewise.
43877         * lib/fchownat.c: Likewise.
43878         * lib/fcntl--.h: Likewise.
43879         * lib/fcntl-safer.h: Likewise.
43880         * lib/fcntl.in.h: Likewise.
43881         * lib/fd-safer.c: Likewise.
43882         * lib/fflush.c: Likewise.
43883         * lib/file-has-acl.c: Likewise.
43884         * lib/file-set.c: Likewise.
43885         * lib/file-type.c: Likewise.
43886         * lib/file-type.h: Likewise.
43887         * lib/fileblocks.c: Likewise.
43888         * lib/filemode.c: Likewise.
43889         * lib/filemode.h: Likewise.
43890         * lib/filename.h: Likewise.
43891         * lib/filenamecat.c: Likewise.
43892         * lib/filenamecat.h: Likewise.
43893         * lib/findprog.c: Likewise.
43894         * lib/findprog.h: Likewise.
43895         * lib/float.in.h: Likewise.
43896         * lib/floor.c: Likewise.
43897         * lib/floorf.c: Likewise.
43898         * lib/floorl.c: Likewise.
43899         * lib/fopen-safer.c: Likewise.
43900         * lib/fopen.c: Likewise.
43901         * lib/fpending.c: Likewise.
43902         * lib/fpending.h: Likewise.
43903         * lib/fprintf.c: Likewise.
43904         * lib/fprintftime.h: Likewise.
43905         * lib/fpucw.h: Likewise.
43906         * lib/fpurge.c: Likewise.
43907         * lib/fpurge.h: Likewise.
43908         * lib/freadable.c: Likewise.
43909         * lib/freadable.h: Likewise.
43910         * lib/freadahead.c: Likewise.
43911         * lib/freadahead.h: Likewise.
43912         * lib/freading.c: Likewise.
43913         * lib/freading.h: Likewise.
43914         * lib/free.c: Likewise.
43915         * lib/freopen.c: Likewise.
43916         * lib/frexp.c: Likewise.
43917         * lib/frexpl.c: Likewise.
43918         * lib/fseek.c: Likewise.
43919         * lib/fseterr.c: Likewise.
43920         * lib/fseterr.h: Likewise.
43921         * lib/fstatat.c: Likewise.
43922         * lib/fstrcmp.c: Likewise.
43923         * lib/fstrcmp.h: Likewise.
43924         * lib/fsusage.c: Likewise.
43925         * lib/fsusage.h: Likewise.
43926         * lib/ftell.c: Likewise.
43927         * lib/ftello.c: Likewise.
43928         * lib/fts-cycle.c: Likewise.
43929         * lib/fts.c: Likewise.
43930         * lib/fts_.h: Likewise.
43931         * lib/full-read.c: Likewise.
43932         * lib/full-read.h: Likewise.
43933         * lib/full-write.c: Likewise.
43934         * lib/full-write.h: Likewise.
43935         * lib/fwritable.c: Likewise.
43936         * lib/fwritable.h: Likewise.
43937         * lib/fwriteerror.c: Likewise.
43938         * lib/fwriteerror.h: Likewise.
43939         * lib/fwriting.c: Likewise.
43940         * lib/fwriting.h: Likewise.
43941         * lib/gcd.c: Likewise.
43942         * lib/gcd.h: Likewise.
43943         * lib/getcwd.c: Likewise.
43944         * lib/getdate.h: Likewise.
43945         * lib/getdate.y: Likewise.
43946         * lib/getdomainname.c: Likewise.
43947         * lib/getdomainname.h: Likewise.
43948         * lib/getgroups.c: Likewise.
43949         * lib/gethostname.c: Likewise.
43950         * lib/gethrxtime.c: Likewise.
43951         * lib/gethrxtime.h: Likewise.
43952         * lib/getloadavg.c: Likewise.
43953         * lib/getndelim2.c: Likewise.
43954         * lib/getndelim2.h: Likewise.
43955         * lib/getnline.c: Likewise.
43956         * lib/getnline.h: Likewise.
43957         * lib/getopt.c: Likewise.
43958         * lib/getopt.in.h: Likewise.
43959         * lib/getopt1.c: Likewise.
43960         * lib/getopt_int.h: Likewise.
43961         * lib/getpagesize.h: Likewise.
43962         * lib/getsubopt.c: Likewise.
43963         * lib/gettime.c: Likewise.
43964         * lib/getugroups.c: Likewise.
43965         * lib/getugroups.h: Likewise.
43966         * lib/getusershell.c: Likewise.
43967         * lib/gl_anyavltree_list1.h: Likewise.
43968         * lib/gl_anyavltree_list2.h: Likewise.
43969         * lib/gl_anyhash_list1.h: Likewise.
43970         * lib/gl_anyhash_list2.h: Likewise.
43971         * lib/gl_anylinked_list1.h: Likewise.
43972         * lib/gl_anylinked_list2.h: Likewise.
43973         * lib/gl_anyrbtree_list1.h: Likewise.
43974         * lib/gl_anyrbtree_list2.h: Likewise.
43975         * lib/gl_anytree_list1.h: Likewise.
43976         * lib/gl_anytree_list2.h: Likewise.
43977         * lib/gl_anytree_oset.h: Likewise.
43978         * lib/gl_anytreehash_list1.h: Likewise.
43979         * lib/gl_anytreehash_list2.h: Likewise.
43980         * lib/gl_array_list.c: Likewise.
43981         * lib/gl_array_list.h: Likewise.
43982         * lib/gl_array_oset.c: Likewise.
43983         * lib/gl_array_oset.h: Likewise.
43984         * lib/gl_avltree_list.c: Likewise.
43985         * lib/gl_avltree_list.h: Likewise.
43986         * lib/gl_avltree_oset.c: Likewise.
43987         * lib/gl_avltree_oset.h: Likewise.
43988         * lib/gl_avltreehash_list.c: Likewise.
43989         * lib/gl_avltreehash_list.h: Likewise.
43990         * lib/gl_carray_list.c: Likewise.
43991         * lib/gl_carray_list.h: Likewise.
43992         * lib/gl_linked_list.c: Likewise.
43993         * lib/gl_linked_list.h: Likewise.
43994         * lib/gl_linkedhash_list.c: Likewise.
43995         * lib/gl_linkedhash_list.h: Likewise.
43996         * lib/gl_list.c: Likewise.
43997         * lib/gl_list.h: Likewise.
43998         * lib/gl_oset.c: Likewise.
43999         * lib/gl_oset.h: Likewise.
44000         * lib/gl_rbtree_list.c: Likewise.
44001         * lib/gl_rbtree_list.h: Likewise.
44002         * lib/gl_rbtree_oset.c: Likewise.
44003         * lib/gl_rbtree_oset.h: Likewise.
44004         * lib/gl_rbtreehash_list.c: Likewise.
44005         * lib/gl_rbtreehash_list.h: Likewise.
44006         * lib/gl_sublist.c: Likewise.
44007         * lib/gl_sublist.h: Likewise.
44008         * lib/group-member.c: Likewise.
44009         * lib/group-member.h: Likewise.
44010         * lib/hard-locale.c: Likewise.
44011         * lib/hard-locale.h: Likewise.
44012         * lib/hash-pjw.c: Likewise.
44013         * lib/hash-pjw.h: Likewise.
44014         * lib/hash-triple.c: Likewise.
44015         * lib/hash.c: Likewise.
44016         * lib/hash.h: Likewise.
44017         * lib/human.c: Likewise.
44018         * lib/human.h: Likewise.
44019         * lib/i-ring.c: Likewise.
44020         * lib/i-ring.h: Likewise.
44021         * lib/idcache.c: Likewise.
44022         * lib/imaxabs.c: Likewise.
44023         * lib/imaxdiv.c: Likewise.
44024         * lib/inet_pton.c: Likewise.
44025         * lib/inet_pton.h: Likewise.
44026         * lib/intprops.h: Likewise.
44027         * lib/inttostr.c: Likewise.
44028         * lib/inttostr.h: Likewise.
44029         * lib/inttypes.in.h: Likewise.
44030         * lib/isapipe.c: Likewise.
44031         * lib/isdir.c: Likewise.
44032         * lib/isnan.c: Likewise.
44033         * lib/isnan.h: Likewise.
44034         * lib/isnanf.c: Likewise.
44035         * lib/isnanf.h: Likewise.
44036         * lib/isnanl-nolibm.h: Likewise.
44037         * lib/isnanl.c: Likewise.
44038         * lib/isnanl.h: Likewise.
44039         * lib/javacomp.c: Likewise.
44040         * lib/javacomp.h: Likewise.
44041         * lib/javaexec.c: Likewise.
44042         * lib/javaexec.h: Likewise.
44043         * lib/javaversion.c: Likewise.
44044         * lib/javaversion.h: Likewise.
44045         * lib/javaversion.java: Likewise.
44046         * lib/lbrkprop.h: Likewise.
44047         * lib/lchmod.h: Likewise.
44048         * lib/lchown.c: Likewise.
44049         * lib/ldexpl.c: Likewise.
44050         * lib/linebreak.c: Likewise.
44051         * lib/linebreak.h: Likewise.
44052         * lib/linebuffer.c: Likewise.
44053         * lib/linebuffer.h: Likewise.
44054         * lib/locale.in.h: Likewise.
44055         * lib/logl.c: Likewise.
44056         * lib/long-options.c: Likewise.
44057         * lib/long-options.h: Likewise.
44058         * lib/lstat.c: Likewise.
44059         * lib/lstat.h: Likewise.
44060         * lib/math.in.h: Likewise.
44061         * lib/mbchar.c: Likewise.
44062         * lib/mbchar.h: Likewise.
44063         * lib/mbfile.h: Likewise.
44064         * lib/mbiter.h: Likewise.
44065         * lib/mbscasecmp.c: Likewise.
44066         * lib/mbscasestr.c: Likewise.
44067         * lib/mbschr.c: Likewise.
44068         * lib/mbscspn.c: Likewise.
44069         * lib/mbslen.c: Likewise.
44070         * lib/mbsncasecmp.c: Likewise.
44071         * lib/mbsnlen.c: Likewise.
44072         * lib/mbspbrk.c: Likewise.
44073         * lib/mbspcasecmp.c: Likewise.
44074         * lib/mbsrchr.c: Likewise.
44075         * lib/mbssep.c: Likewise.
44076         * lib/mbsspn.c: Likewise.
44077         * lib/mbsstr.c: Likewise.
44078         * lib/mbstok_r.c: Likewise.
44079         * lib/mbswidth.c: Likewise.
44080         * lib/mbswidth.h: Likewise.
44081         * lib/mbuiter.h: Likewise.
44082         * lib/memcasecmp.c: Likewise.
44083         * lib/memcasecmp.h: Likewise.
44084         * lib/memchr.c: Likewise.
44085         * lib/memcmp.c: Likewise.
44086         * lib/memcoll.c: Likewise.
44087         * lib/memcoll.h: Likewise.
44088         * lib/memcpy.c: Likewise.
44089         * lib/memrchr.c: Likewise.
44090         * lib/mkancesdirs.c: Likewise.
44091         * lib/mkdir-p.c: Likewise.
44092         * lib/mkdir-p.h: Likewise.
44093         * lib/mkdir.c: Likewise.
44094         * lib/mkdirat.c: Likewise.
44095         * lib/mkdtemp.c: Likewise.
44096         * lib/mkstemp-safer.c: Likewise.
44097         * lib/mkstemp.c: Likewise.
44098         * lib/modechange.c: Likewise.
44099         * lib/modechange.h: Likewise.
44100         * lib/mountlist.c: Likewise.
44101         * lib/mountlist.h: Likewise.
44102         * lib/mpsort.c: Likewise.
44103         * lib/nanosleep.c: Likewise.
44104         * lib/obstack.c: Likewise.
44105         * lib/obstack.h: Likewise.
44106         * lib/open-safer.c: Likewise.
44107         * lib/open.c: Likewise.
44108         * lib/openat-die.c: Likewise.
44109         * lib/openat-priv.h: Likewise.
44110         * lib/openat-proc.c: Likewise.
44111         * lib/openat.c: Likewise.
44112         * lib/openat.h: Likewise.
44113         * lib/pagealign_alloc.c: Likewise.
44114         * lib/pagealign_alloc.h: Likewise.
44115         * lib/physmem.c: Likewise.
44116         * lib/physmem.h: Likewise.
44117         * lib/pipe-safer.c: Likewise.
44118         * lib/pipe.c: Likewise.
44119         * lib/pipe.h: Likewise.
44120         * lib/posixtm.c: Likewise.
44121         * lib/posixtm.h: Likewise.
44122         * lib/posixver.c: Likewise.
44123         * lib/printf-frexp.c: Likewise.
44124         * lib/printf-frexp.h: Likewise.
44125         * lib/printf-frexpl.c: Likewise.
44126         * lib/printf-frexpl.h: Likewise.
44127         * lib/printf.c: Likewise.
44128         * lib/progname.c: Likewise.
44129         * lib/progname.h: Likewise.
44130         * lib/progreloc.c: Likewise.
44131         * lib/putenv.c: Likewise.
44132         * lib/quote.c: Likewise.
44133         * lib/quote.h: Likewise.
44134         * lib/quotearg.c: Likewise.
44135         * lib/quotearg.h: Likewise.
44136         * lib/raise.c: Likewise.
44137         * lib/readline.c: Likewise.
44138         * lib/readline.h: Likewise.
44139         * lib/readlink.c: Likewise.
44140         * lib/readtokens.c: Likewise.
44141         * lib/readtokens.h: Likewise.
44142         * lib/readtokens0.c: Likewise.
44143         * lib/readtokens0.h: Likewise.
44144         * lib/readutmp.c: Likewise.
44145         * lib/readutmp.h: Likewise.
44146         * lib/realloc.c: Likewise.
44147         * lib/relocwrapper.c: Likewise.
44148         * lib/rename-dest-slash.c: Likewise.
44149         * lib/rename.c: Likewise.
44150         * lib/rmdir.c: Likewise.
44151         * lib/rpmatch.c: Likewise.
44152         * lib/safe-read.c: Likewise.
44153         * lib/safe-read.h: Likewise.
44154         * lib/safe-write.c: Likewise.
44155         * lib/safe-write.h: Likewise.
44156         * lib/same-inode.h: Likewise.
44157         * lib/same.c: Likewise.
44158         * lib/same.h: Likewise.
44159         * lib/save-cwd.c: Likewise.
44160         * lib/save-cwd.h: Likewise.
44161         * lib/savedir.c: Likewise.
44162         * lib/savedir.h: Likewise.
44163         * lib/savewd.c: Likewise.
44164         * lib/savewd.h: Likewise.
44165         * lib/search.in.h: Likewise.
44166         * lib/setenv.c: Likewise.
44167         * lib/setenv.h: Likewise.
44168         * lib/settime.c: Likewise.
44169         * lib/sh-quote.c: Likewise.
44170         * lib/sh-quote.h: Likewise.
44171         * lib/sig2str.c: Likewise.
44172         * lib/sig2str.h: Likewise.
44173         * lib/signal.in.h: Likewise.
44174         * lib/signbitd.c: Likewise.
44175         * lib/signbitf.c: Likewise.
44176         * lib/signbitl.c: Likewise.
44177         * lib/sigprocmask.c: Likewise.
44178         * lib/sincosl.c: Likewise.
44179         * lib/sleep.c: Likewise.
44180         * lib/sprintf.c: Likewise.
44181         * lib/sqrtl.c: Likewise.
44182         * lib/stat-time.h: Likewise.
44183         * lib/stdio--.h: Likewise.
44184         * lib/stdio-safer.h: Likewise.
44185         * lib/stdlib--.h: Likewise.
44186         * lib/stdlib-safer.h: Likewise.
44187         * lib/stdlib.in.h: Likewise.
44188         * lib/stpcpy.c: Likewise.
44189         * lib/stpncpy.c: Likewise.
44190         * lib/strchrnul.c: Likewise.
44191         * lib/strcspn.c: Likewise.
44192         * lib/strerror.c: Likewise.
44193         * lib/strftime.c: Likewise.
44194         * lib/strftime.h: Likewise.
44195         * lib/striconveh.c: Likewise.
44196         * lib/striconveh.h: Likewise.
44197         * lib/striconveha.c: Likewise.
44198         * lib/striconveha.h: Likewise.
44199         * lib/stripslash.c: Likewise.
44200         * lib/strnlen1.c: Likewise.
44201         * lib/strnlen1.h: Likewise.
44202         * lib/strtod.c: Likewise.
44203         * lib/strtoimax.c: Likewise.
44204         * lib/strtok_r.c: Likewise.
44205         * lib/strtol.c: Likewise.
44206         * lib/strtoll.c: Likewise.
44207         * lib/strtoul.c: Likewise.
44208         * lib/strtoull.c: Likewise.
44209         * lib/sysexits.in.h: Likewise.
44210         * lib/tempname.c: Likewise.
44211         * lib/tempname.h: Likewise.
44212         * lib/timespec.h: Likewise.
44213         * lib/tls.c: Likewise.
44214         * lib/tls.h: Likewise.
44215         * lib/tmpdir.c: Likewise.
44216         * lib/tmpdir.h: Likewise.
44217         * lib/tmpfile-safer.c: Likewise.
44218         * lib/tmpfile.c: Likewise.
44219         * lib/trigl.c: Likewise.
44220         * lib/trigl.h: Likewise.
44221         * lib/trim.c: Likewise.
44222         * lib/trim.h: Likewise.
44223         * lib/trunc.c: Likewise.
44224         * lib/truncf.c: Likewise.
44225         * lib/truncl.c: Likewise.
44226         * lib/tsearch.c: Likewise.
44227         * lib/unicodeio.c: Likewise.
44228         * lib/unicodeio.h: Likewise.
44229         * lib/unistd--.h: Likewise.
44230         * lib/unistd-safer.h: Likewise.
44231         * lib/unistdio/ulc-fprintf.c: Likewise.
44232         * lib/unistdio/ulc-vfprintf.c: Likewise.
44233         * lib/unlinkdir.c: Likewise.
44234         * lib/unlinkdir.h: Likewise.
44235         * lib/unlocked-io.h: Likewise.
44236         * lib/unsetenv.c: Likewise.
44237         * lib/userspec.c: Likewise.
44238         * lib/utime.c: Likewise.
44239         * lib/utimecmp.c: Likewise.
44240         * lib/utimecmp.h: Likewise.
44241         * lib/utimens.c: Likewise.
44242         * lib/verify.h: Likewise.
44243         * lib/verror.c: Likewise.
44244         * lib/verror.h: Likewise.
44245         * lib/version-etc-fsf.c: Likewise.
44246         * lib/version-etc.c: Likewise.
44247         * lib/version-etc.h: Likewise.
44248         * lib/vfprintf.c: Likewise.
44249         * lib/vprintf.c: Likewise.
44250         * lib/vsprintf.c: Likewise.
44251         * lib/w32spawn.h: Likewise.
44252         * lib/wait-process.c: Likewise.
44253         * lib/wait-process.h: Likewise.
44254         * lib/wcwidth.c: Likewise.
44255         * lib/write-any-file.c: Likewise.
44256         * lib/xalloc-die.c: Likewise.
44257         * lib/xalloc.h: Likewise.
44258         * lib/xasprintf.c: Likewise.
44259         * lib/xgetcwd.c: Likewise.
44260         * lib/xgetcwd.h: Likewise.
44261         * lib/xgetdomainname.c: Likewise.
44262         * lib/xgetdomainname.h: Likewise.
44263         * lib/xgethostname.c: Likewise.
44264         * lib/xmalloc.c: Likewise.
44265         * lib/xmalloca.c: Likewise.
44266         * lib/xmalloca.h: Likewise.
44267         * lib/xmemcoll.c: Likewise.
44268         * lib/xnanosleep.c: Likewise.
44269         * lib/xreadlink.c: Likewise.
44270         * lib/xreadlink.h: Likewise.
44271         * lib/xsetenv.c: Likewise.
44272         * lib/xsetenv.h: Likewise.
44273         * lib/xstriconv.c: Likewise.
44274         * lib/xstriconv.h: Likewise.
44275         * lib/xstrndup.c: Likewise.
44276         * lib/xstrndup.h: Likewise.
44277         * lib/xstrtod.c: Likewise.
44278         * lib/xstrtod.h: Likewise.
44279         * lib/xstrtol-error.c: Likewise.
44280         * lib/xstrtol.c: Likewise.
44281         * lib/xstrtol.h: Likewise.
44282         * lib/xtime.h: Likewise.
44283         * lib/xvasprintf.c: Likewise.
44284         * lib/xvasprintf.h: Likewise.
44285         * lib/yesno.c: Likewise.
44286         * lib/yesno.h: Likewise.
44287         * posix-modules: Likewise.
44288         * tests/test-alloca-opt.c: Likewise.
44289         * tests/test-arcfour.c: Likewise.
44290         * tests/test-arctwo.c: Likewise.
44291         * tests/test-argmatch.c: Likewise.
44292         * tests/test-argp-2.sh: Likewise.
44293         * tests/test-argp.c: Likewise.
44294         * tests/test-arpa_inet.c: Likewise.
44295         * tests/test-array_list.c: Likewise.
44296         * tests/test-array_oset.c: Likewise.
44297         * tests/test-atexit.c: Likewise.
44298         * tests/test-avltree_list.c: Likewise.
44299         * tests/test-avltree_oset.c: Likewise.
44300         * tests/test-avltreehash_list.c: Likewise.
44301         * tests/test-base64.c: Likewise.
44302         * tests/test-binary-io.c: Likewise.
44303         * tests/test-byteswap.c: Likewise.
44304         * tests/test-c-ctype.c: Likewise.
44305         * tests/test-c-strcasecmp.c: Likewise.
44306         * tests/test-c-strcasestr.c: Likewise.
44307         * tests/test-c-strncasecmp.c: Likewise.
44308         * tests/test-c-strstr.c: Likewise.
44309         * tests/test-canonicalize-lgpl.c: Likewise.
44310         * tests/test-canonicalize.c: Likewise.
44311         * tests/test-carray_list.c: Likewise.
44312         * tests/test-ceilf.c: Likewise.
44313         * tests/test-ceill.c: Likewise.
44314         * tests/test-count-one-bits.c: Likewise.
44315         * tests/test-crc.c: Likewise.
44316         * tests/test-dirname.c: Likewise.
44317         * tests/test-fbufmode.c: Likewise.
44318         * tests/test-fcntl.c: Likewise.
44319         * tests/test-fflush.c: Likewise.
44320         * tests/test-floorf.c: Likewise.
44321         * tests/test-floorl.c: Likewise.
44322         * tests/test-fopen.c: Likewise.
44323         * tests/test-fprintf-posix.c: Likewise.
44324         * tests/test-fprintf-posix.h: Likewise.
44325         * tests/test-fpurge.c: Likewise.
44326         * tests/test-freadable.c: Likewise.
44327         * tests/test-freadahead.c: Likewise.
44328         * tests/test-freading.c: Likewise.
44329         * tests/test-freopen.c: Likewise.
44330         * tests/test-frexp.c: Likewise.
44331         * tests/test-frexpl.c: Likewise.
44332         * tests/test-fseek.c: Likewise.
44333         * tests/test-fseeko.c: Likewise.
44334         * tests/test-fseterr.c: Likewise.
44335         * tests/test-fstrcmp.c: Likewise.
44336         * tests/test-ftell.c: Likewise.
44337         * tests/test-ftello.c: Likewise.
44338         * tests/test-fwritable.c: Likewise.
44339         * tests/test-fwriting.c: Likewise.
44340         * tests/test-getaddrinfo.c: Likewise.
44341         * tests/test-getpass.c: Likewise.
44342         * tests/test-gettimeofday.c: Likewise.
44343         * tests/test-hmac-md5.c: Likewise.
44344         * tests/test-hmac-sha1.c: Likewise.
44345         * tests/test-iconv.c: Likewise.
44346         * tests/test-iconvme.c: Likewise.
44347         * tests/test-inttypes.c: Likewise.
44348         * tests/test-isnan.c: Likewise.
44349         * tests/test-isnanf.c: Likewise.
44350         * tests/test-isnanl-nolibm.c: Likewise.
44351         * tests/test-isnanl.c: Likewise.
44352         * tests/test-isnanl.h: Likewise.
44353         * tests/test-ldexpl.c: Likewise.
44354         * tests/test-linked_list.c: Likewise.
44355         * tests/test-linkedhash_list.c: Likewise.
44356         * tests/test-locale.c: Likewise.
44357         * tests/test-localename.c: Likewise.
44358         * tests/test-lock.c: Likewise.
44359         * tests/test-lseek.c: Likewise.
44360         * tests/test-malloca.c: Likewise.
44361         * tests/test-math.c: Likewise.
44362         * tests/test-mbscasecmp.c: Likewise.
44363         * tests/test-mbscasestr1.c: Likewise.
44364         * tests/test-mbscasestr2.c: Likewise.
44365         * tests/test-mbscasestr3.c: Likewise.
44366         * tests/test-mbscasestr4.c: Likewise.
44367         * tests/test-mbschr.c: Likewise.
44368         * tests/test-mbscspn.c: Likewise.
44369         * tests/test-mbsncasecmp.c: Likewise.
44370         * tests/test-mbspbrk.c: Likewise.
44371         * tests/test-mbspcasecmp.c: Likewise.
44372         * tests/test-mbsrchr.c: Likewise.
44373         * tests/test-mbsspn.c: Likewise.
44374         * tests/test-mbsstr1.c: Likewise.
44375         * tests/test-mbsstr2.c: Likewise.
44376         * tests/test-mbsstr3.c: Likewise.
44377         * tests/test-md5.c: Likewise.
44378         * tests/test-memmem.c: Likewise.
44379         * tests/test-netinet_in.c: Likewise.
44380         * tests/test-open.c: Likewise.
44381         * tests/test-printf-frexp.c: Likewise.
44382         * tests/test-printf-frexpl.c: Likewise.
44383         * tests/test-printf-posix.c: Likewise.
44384         * tests/test-printf-posix.h: Likewise.
44385         * tests/test-rbtree_list.c: Likewise.
44386         * tests/test-rbtree_oset.c: Likewise.
44387         * tests/test-rbtreehash_list.c: Likewise.
44388         * tests/test-read-file.c: Likewise.
44389         * tests/test-rijndael.c: Likewise.
44390         * tests/test-search.c: Likewise.
44391         * tests/test-signbit.c: Likewise.
44392         * tests/test-sleep.c: Likewise.
44393         * tests/test-snprintf-posix.c: Likewise.
44394         * tests/test-snprintf-posix.h: Likewise.
44395         * tests/test-snprintf.c: Likewise.
44396         * tests/test-sprintf-posix.c: Likewise.
44397         * tests/test-sprintf-posix.h: Likewise.
44398         * tests/test-stat-time.c: Likewise.
44399         * tests/test-stdbool.c: Likewise.
44400         * tests/test-stdint.c: Likewise.
44401         * tests/test-stdio.c: Likewise.
44402         * tests/test-stdlib.c: Likewise.
44403         * tests/test-stpncpy.c: Likewise.
44404         * tests/test-strcasestr.c: Likewise.
44405         * tests/test-striconv.c: Likewise.
44406         * tests/test-striconveh.c: Likewise.
44407         * tests/test-striconveha.c: Likewise.
44408         * tests/test-string.c: Likewise.
44409         * tests/test-sys_select.c: Likewise.
44410         * tests/test-sys_socket.c: Likewise.
44411         * tests/test-sys_stat.c: Likewise.
44412         * tests/test-sys_time.c: Likewise.
44413         * tests/test-sysexits.c: Likewise.
44414         * tests/test-time.c: Likewise.
44415         * tests/test-tls.c: Likewise.
44416         * tests/test-trunc.c: Likewise.
44417         * tests/test-truncf.c: Likewise.
44418         * tests/test-truncl.c: Likewise.
44419         * tests/test-unistd.c: Likewise.
44420         * tests/test-vasnprintf-posix.c: Likewise.
44421         * tests/test-vasnprintf-posix2.c: Likewise.
44422         * tests/test-vasnprintf.c: Likewise.
44423         * tests/test-vasprintf-posix.c: Likewise.
44424         * tests/test-vasprintf.c: Likewise.
44425         * tests/test-verify.c: Likewise.
44426         * tests/test-vfprintf-posix.c: Likewise.
44427         * tests/test-vprintf-posix.c: Likewise.
44428         * tests/test-vsnprintf-posix.c: Likewise.
44429         * tests/test-vsnprintf.c: Likewise.
44430         * tests/test-vsprintf-posix.c: Likewise.
44431         * tests/test-wchar.c: Likewise.
44432         * tests/test-wctype.c: Likewise.
44433         * tests/test-wcwidth.c: Likewise.
44434         * tests/test-xstrtol.c: Likewise.
44435         * tests/test-xvasprintf.c: Likewise.
44436         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44437         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44438         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44439         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44440         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44441         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44442         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44443         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44444         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44445         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44446         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44447         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44448         * tests/uniname/test-uninames.c: Likewise.
44449         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44450         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44451         * tests/unistdio/test-u16-printf1.h: Likewise.
44452         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44453         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44454         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44455         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44456         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44457         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44458         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44459         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44460         * tests/unistdio/test-u32-printf1.h: Likewise.
44461         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44462         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44463         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44464         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44465         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44466         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44467         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44468         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44469         * tests/unistdio/test-u8-printf1.h: Likewise.
44470         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44471         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44472         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44473         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44474         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44475         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44476         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44477         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44478         * tests/unistdio/test-ulc-printf1.h: Likewise.
44479         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44480         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44481         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44482         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44483         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44484         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44485         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44486         * tests/uniwidth/test-u16-width.c: Likewise.
44487         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44488         * tests/uniwidth/test-u32-width.c: Likewise.
44489         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44490         * tests/uniwidth/test-u8-width.c: Likewise.
44491         * tests/uniwidth/test-uc_width.c: Likewise.
44492         * config/srclist-update: Likewise.
44493         (fixlicense): Update to GPLv3+.
44494
44495         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44496         * tests/test-tsearch.c: Change copyright notice.
44497
44498         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44499         * lib/c-strcaseeq.h: Change copyright notice.
44500         * lib/streq.h: Likewise.
44501         * lib/uniconv.h: Likewise.
44502         * lib/uniconv/u-conv-from-enc.h: Likewise.
44503         * lib/uniconv/u-conv-to-enc.h: Likewise.
44504         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44505         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44506         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44507         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44508         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44509         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44510         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44511         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44512         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44513         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44514         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44515         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44516         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44517         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44518         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44519         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44520         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44521         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44522         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44523         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44524         * lib/uniname.h: Likewise.
44525         * lib/uniname/uniname.c: Likewise.
44526         * lib/unistdio.h: Likewise.
44527         * lib/unistdio/u-asnprintf.h: Likewise.
44528         * lib/unistdio/u-asprintf.h: Likewise.
44529         * lib/unistdio/u-printf-args.c: Likewise.
44530         * lib/unistdio/u-printf-args.h: Likewise.
44531         * lib/unistdio/u-printf-parse.h: Likewise.
44532         * lib/unistdio/u-snprintf.h: Likewise.
44533         * lib/unistdio/u-sprintf.h: Likewise.
44534         * lib/unistdio/u-vasprintf.h: Likewise.
44535         * lib/unistdio/u-vsnprintf.h: Likewise.
44536         * lib/unistdio/u-vsprintf.h: Likewise.
44537         * lib/unistdio/u16-asnprintf.c: Likewise.
44538         * lib/unistdio/u16-asprintf.c: Likewise.
44539         * lib/unistdio/u16-printf-parse.c: Likewise.
44540         * lib/unistdio/u16-snprintf.c: Likewise.
44541         * lib/unistdio/u16-sprintf.c: Likewise.
44542         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44543         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44544         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44545         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44546         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44547         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44548         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44549         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44550         * lib/unistdio/u16-vasnprintf.c: Likewise.
44551         * lib/unistdio/u16-vasprintf.c: Likewise.
44552         * lib/unistdio/u16-vsnprintf.c: Likewise.
44553         * lib/unistdio/u16-vsprintf.c: Likewise.
44554         * lib/unistdio/u32-asnprintf.c: Likewise.
44555         * lib/unistdio/u32-asprintf.c: Likewise.
44556         * lib/unistdio/u32-printf-parse.c: Likewise.
44557         * lib/unistdio/u32-snprintf.c: Likewise.
44558         * lib/unistdio/u32-sprintf.c: Likewise.
44559         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44560         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44561         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44562         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44563         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44564         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44565         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44566         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44567         * lib/unistdio/u32-vasnprintf.c: Likewise.
44568         * lib/unistdio/u32-vasprintf.c: Likewise.
44569         * lib/unistdio/u32-vsnprintf.c: Likewise.
44570         * lib/unistdio/u32-vsprintf.c: Likewise.
44571         * lib/unistdio/u8-asnprintf.c: Likewise.
44572         * lib/unistdio/u8-asprintf.c: Likewise.
44573         * lib/unistdio/u8-printf-parse.c: Likewise.
44574         * lib/unistdio/u8-snprintf.c: Likewise.
44575         * lib/unistdio/u8-sprintf.c: Likewise.
44576         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44577         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44578         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44579         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44580         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44581         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44582         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44583         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44584         * lib/unistdio/u8-vasnprintf.c: Likewise.
44585         * lib/unistdio/u8-vasprintf.c: Likewise.
44586         * lib/unistdio/u8-vsnprintf.c: Likewise.
44587         * lib/unistdio/u8-vsprintf.c: Likewise.
44588         * lib/unistdio/ulc-asnprintf.c: Likewise.
44589         * lib/unistdio/ulc-asprintf.c: Likewise.
44590         * lib/unistdio/ulc-printf-parse.c: Likewise.
44591         * lib/unistdio/ulc-snprintf.c: Likewise.
44592         * lib/unistdio/ulc-sprintf.c: Likewise.
44593         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44594         * lib/unistdio/ulc-vasprintf.c: Likewise.
44595         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44596         * lib/unistdio/ulc-vsprintf.c: Likewise.
44597         * lib/unistr.h: Likewise.
44598         * lib/unistr/u-cpy-alloc.h: Likewise.
44599         * lib/unistr/u-cpy.h: Likewise.
44600         * lib/unistr/u-endswith.h: Likewise.
44601         * lib/unistr/u-move.h: Likewise.
44602         * lib/unistr/u-set.h: Likewise.
44603         * lib/unistr/u-startswith.h: Likewise.
44604         * lib/unistr/u-stpcpy.h: Likewise.
44605         * lib/unistr/u-stpncpy.h: Likewise.
44606         * lib/unistr/u-strcat.h: Likewise.
44607         * lib/unistr/u-strcpy.h: Likewise.
44608         * lib/unistr/u-strcspn.h: Likewise.
44609         * lib/unistr/u-strdup.h: Likewise.
44610         * lib/unistr/u-strlen.h: Likewise.
44611         * lib/unistr/u-strncat.h: Likewise.
44612         * lib/unistr/u-strncpy.h: Likewise.
44613         * lib/unistr/u-strnlen.h: Likewise.
44614         * lib/unistr/u-strpbrk.h: Likewise.
44615         * lib/unistr/u-strspn.h: Likewise.
44616         * lib/unistr/u-strstr.h: Likewise.
44617         * lib/unistr/u-strtok.h: Likewise.
44618         * lib/unistr/u16-check.c: Likewise.
44619         * lib/unistr/u16-chr.c: Likewise.
44620         * lib/unistr/u16-cmp.c: Likewise.
44621         * lib/unistr/u16-cpy-alloc.c: Likewise.
44622         * lib/unistr/u16-cpy.c: Likewise.
44623         * lib/unistr/u16-endswith.c: Likewise.
44624         * lib/unistr/u16-mblen.c: Likewise.
44625         * lib/unistr/u16-mbsnlen.c: Likewise.
44626         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44627         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44628         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44629         * lib/unistr/u16-mbtouc.c: Likewise.
44630         * lib/unistr/u16-mbtoucr.c: Likewise.
44631         * lib/unistr/u16-move.c: Likewise.
44632         * lib/unistr/u16-next.c: Likewise.
44633         * lib/unistr/u16-prev.c: Likewise.
44634         * lib/unistr/u16-set.c: Likewise.
44635         * lib/unistr/u16-startswith.c: Likewise.
44636         * lib/unistr/u16-stpcpy.c: Likewise.
44637         * lib/unistr/u16-stpncpy.c: Likewise.
44638         * lib/unistr/u16-strcat.c: Likewise.
44639         * lib/unistr/u16-strchr.c: Likewise.
44640         * lib/unistr/u16-strcmp.c: Likewise.
44641         * lib/unistr/u16-strcpy.c: Likewise.
44642         * lib/unistr/u16-strcspn.c: Likewise.
44643         * lib/unistr/u16-strdup.c: Likewise.
44644         * lib/unistr/u16-strlen.c: Likewise.
44645         * lib/unistr/u16-strmblen.c: Likewise.
44646         * lib/unistr/u16-strmbtouc.c: Likewise.
44647         * lib/unistr/u16-strncat.c: Likewise.
44648         * lib/unistr/u16-strncmp.c: Likewise.
44649         * lib/unistr/u16-strncpy.c: Likewise.
44650         * lib/unistr/u16-strnlen.c: Likewise.
44651         * lib/unistr/u16-strpbrk.c: Likewise.
44652         * lib/unistr/u16-strrchr.c: Likewise.
44653         * lib/unistr/u16-strspn.c: Likewise.
44654         * lib/unistr/u16-strstr.c: Likewise.
44655         * lib/unistr/u16-strtok.c: Likewise.
44656         * lib/unistr/u16-to-u32.c: Likewise.
44657         * lib/unistr/u16-to-u8.c: Likewise.
44658         * lib/unistr/u16-uctomb-aux.c: Likewise.
44659         * lib/unistr/u16-uctomb.c: Likewise.
44660         * lib/unistr/u32-check.c: Likewise.
44661         * lib/unistr/u32-chr.c: Likewise.
44662         * lib/unistr/u32-cmp.c: Likewise.
44663         * lib/unistr/u32-cpy-alloc.c: Likewise.
44664         * lib/unistr/u32-cpy.c: Likewise.
44665         * lib/unistr/u32-endswith.c: Likewise.
44666         * lib/unistr/u32-mblen.c: Likewise.
44667         * lib/unistr/u32-mbsnlen.c: Likewise.
44668         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44669         * lib/unistr/u32-mbtouc.c: Likewise.
44670         * lib/unistr/u32-mbtoucr.c: Likewise.
44671         * lib/unistr/u32-move.c: Likewise.
44672         * lib/unistr/u32-next.c: Likewise.
44673         * lib/unistr/u32-prev.c: Likewise.
44674         * lib/unistr/u32-set.c: Likewise.
44675         * lib/unistr/u32-startswith.c: Likewise.
44676         * lib/unistr/u32-stpcpy.c: Likewise.
44677         * lib/unistr/u32-stpncpy.c: Likewise.
44678         * lib/unistr/u32-strcat.c: Likewise.
44679         * lib/unistr/u32-strchr.c: Likewise.
44680         * lib/unistr/u32-strcmp.c: Likewise.
44681         * lib/unistr/u32-strcpy.c: Likewise.
44682         * lib/unistr/u32-strcspn.c: Likewise.
44683         * lib/unistr/u32-strdup.c: Likewise.
44684         * lib/unistr/u32-strlen.c: Likewise.
44685         * lib/unistr/u32-strmblen.c: Likewise.
44686         * lib/unistr/u32-strmbtouc.c: Likewise.
44687         * lib/unistr/u32-strncat.c: Likewise.
44688         * lib/unistr/u32-strncmp.c: Likewise.
44689         * lib/unistr/u32-strncpy.c: Likewise.
44690         * lib/unistr/u32-strnlen.c: Likewise.
44691         * lib/unistr/u32-strpbrk.c: Likewise.
44692         * lib/unistr/u32-strrchr.c: Likewise.
44693         * lib/unistr/u32-strspn.c: Likewise.
44694         * lib/unistr/u32-strstr.c: Likewise.
44695         * lib/unistr/u32-strtok.c: Likewise.
44696         * lib/unistr/u32-to-u16.c: Likewise.
44697         * lib/unistr/u32-to-u8.c: Likewise.
44698         * lib/unistr/u32-uctomb.c: Likewise.
44699         * lib/unistr/u8-check.c: Likewise.
44700         * lib/unistr/u8-chr.c: Likewise.
44701         * lib/unistr/u8-cmp.c: Likewise.
44702         * lib/unistr/u8-cpy-alloc.c: Likewise.
44703         * lib/unistr/u8-cpy.c: Likewise.
44704         * lib/unistr/u8-endswith.c: Likewise.
44705         * lib/unistr/u8-mblen.c: Likewise.
44706         * lib/unistr/u8-mbsnlen.c: Likewise.
44707         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44708         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44709         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44710         * lib/unistr/u8-mbtouc.c: Likewise.
44711         * lib/unistr/u8-mbtoucr.c: Likewise.
44712         * lib/unistr/u8-move.c: Likewise.
44713         * lib/unistr/u8-next.c: Likewise.
44714         * lib/unistr/u8-prev.c: Likewise.
44715         * lib/unistr/u8-set.c: Likewise.
44716         * lib/unistr/u8-startswith.c: Likewise.
44717         * lib/unistr/u8-stpcpy.c: Likewise.
44718         * lib/unistr/u8-stpncpy.c: Likewise.
44719         * lib/unistr/u8-strcat.c: Likewise.
44720         * lib/unistr/u8-strchr.c: Likewise.
44721         * lib/unistr/u8-strcmp.c: Likewise.
44722         * lib/unistr/u8-strcpy.c: Likewise.
44723         * lib/unistr/u8-strcspn.c: Likewise.
44724         * lib/unistr/u8-strdup.c: Likewise.
44725         * lib/unistr/u8-strlen.c: Likewise.
44726         * lib/unistr/u8-strmblen.c: Likewise.
44727         * lib/unistr/u8-strmbtouc.c: Likewise.
44728         * lib/unistr/u8-strncat.c: Likewise.
44729         * lib/unistr/u8-strncmp.c: Likewise.
44730         * lib/unistr/u8-strncpy.c: Likewise.
44731         * lib/unistr/u8-strnlen.c: Likewise.
44732         * lib/unistr/u8-strpbrk.c: Likewise.
44733         * lib/unistr/u8-strrchr.c: Likewise.
44734         * lib/unistr/u8-strspn.c: Likewise.
44735         * lib/unistr/u8-strstr.c: Likewise.
44736         * lib/unistr/u8-strtok.c: Likewise.
44737         * lib/unistr/u8-to-u16.c: Likewise.
44738         * lib/unistr/u8-to-u32.c: Likewise.
44739         * lib/unistr/u8-uctomb-aux.c: Likewise.
44740         * lib/unistr/u8-uctomb.c: Likewise.
44741         * lib/unitypes.h: Likewise.
44742         * lib/uniwidth.h: Likewise.
44743         * lib/uniwidth/cjk.h: Likewise.
44744         * lib/uniwidth/u16-strwidth.c: Likewise.
44745         * lib/uniwidth/u16-width.c: Likewise.
44746         * lib/uniwidth/u32-strwidth.c: Likewise.
44747         * lib/uniwidth/u32-width.c: Likewise.
44748         * lib/uniwidth/u8-strwidth.c: Likewise.
44749         * lib/uniwidth/u8-width.c: Likewise.
44750         * lib/uniwidth/width.c: Likewise.
44751
44752 2007-10-07  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44755         The file is still under LGPL (see modules/inttypes).
44756
44757 2007-10-06  Bruno Haible  <bruno@clisp.org>
44758
44759         * modules/trunc (Dependencies): Add 'extensions'.
44760         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44761         Reported by Ben Pfaff <blp@gnu.org>.
44762
44763 2007-10-06  Bruno Haible  <bruno@clisp.org>
44764
44765         * modules/freopen-tests: New file.
44766         * tests/test-freopen.c: New file.
44767
44768         * modules/fopen-tests: New file.
44769         * tests/test-fopen.c: New file.
44770
44771         * modules/fopen: New file.
44772         * lib/fopen.c: New file.
44773         * m4/fopen.m4: New file.
44774         * modules/freopen: New file.
44775         * lib/freopen.c: New file.
44776         * m4/freopen.m4: New file.
44777         * lib/stdio.in.h (fopen, freopen): New declarations.
44778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44779         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44780         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44781         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44782         * doc/functions/fopen.texi: Mention the 'fopen' module.
44783         * doc/functions/freopen.texi: Mention the 'freopen' module.
44784
44785 2007-10-06  Bruno Haible  <bruno@clisp.org>
44786
44787         * modules/open-tests: New file.
44788         * tests/test-open.c: New file.
44789
44790         * modules/open: New file.
44791         * lib/open.c: New file.
44792         * m4/open.m4: New file.
44793         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44794         lib/open.c does.
44795         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44796         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44797         macros.
44798         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44799         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44800         REPLACE_OPEN.
44801         * doc/functions/open.texi: Mention the 'open' module.
44802
44803 2007-10-04  Bruno Haible  <bruno@clisp.org>
44804
44805         * modules/ceill-tests: New file.
44806         * tests/test-ceill.c: New file.
44807
44808         * modules/ceill: New file.
44809         * lib/ceill.c: Replace entire file.
44810         * m4/ceill.m4: New file.
44811         * lib/math.in.h (ceill): Replace declaration.
44812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44813         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44814         * doc/functions/ceill.texi: Mention the 'ceill' module.
44815         * modules/mathl (Files): Remove lib/ceill.c.
44816         (Depends-on): Add ceill.
44817
44818 2007-10-04  Bruno Haible  <bruno@clisp.org>
44819
44820         * modules/ceilf-tests: New file.
44821         * tests/test-ceilf.c: New file.
44822
44823         * modules/ceilf: New file.
44824         * lib/ceil.c: New file.
44825         * lib/ceilf.c: New file.
44826         * m4/ceilf.m4: New file.
44827         * lib/math.in.h (ceilf): New declaration.
44828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44829         HAVE_DECL_CEILF.
44830         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44831         HAVE_DECL_CEILF.
44832         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44833
44834 2007-10-04  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/floorl-tests: New file.
44837         * tests/test-floorl.c: New file.
44838
44839         * modules/floorl: New file.
44840         * lib/floorl.c: Replace entire file.
44841         * m4/floorl.m4: New file.
44842         * lib/math.in.h (floorl): Replace declaration.
44843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44844         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44845         * doc/functions/floorl.texi: Mention the 'floorl' module.
44846         * modules/mathl (Files): Remove lib/floorl.c.
44847         (Depends-on): Add floorl.
44848
44849 2007-10-04  Bruno Haible  <bruno@clisp.org>
44850
44851         * modules/floorf-tests: New file.
44852         * tests/test-floorf.c: New file.
44853
44854         * modules/floorf: New file.
44855         * lib/floor.c: New file.
44856         * lib/floorf.c: New file.
44857         * m4/floorf.m4: New file.
44858         * lib/math.in.h (floorf): New declaration.
44859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44860         HAVE_DECL_FLOORF.
44861         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44862         HAVE_DECL_FLOORF.
44863         * doc/functions/floorf.texi: Mention the 'floorf' module.
44864
44865 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44866             Bruno Haible  <bruno@clisp.org>
44867
44868         Advertise for the Git server instead of the CVS server.
44869         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44870         repository instead of the CVS one.
44871         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44872         about all VCS systems generically.
44873         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44874
44875 2007-10-04  Bruno Haible  <bruno@clisp.org>
44876
44877         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44878         means.
44879         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44880
44881 2007-10-04  Bruno Haible  <bruno@clisp.org>
44882
44883         * modules/truncl-tests: New file.
44884         * tests/test-truncl.c: New file.
44885
44886         * modules/truncl: New file.
44887         * lib/truncl.c: New file.
44888         * m4/truncl.m4: New file.
44889         * lib/math.in.h (truncl): New declaration.
44890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44891         HAVE_DECL_TRUNCL.
44892         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44893         HAVE_DECL_TRUNCL.
44894         * doc/functions/truncl.texi: Mention the 'truncl' module.
44895
44896 2007-10-04  Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/truncf-tests: New file.
44899         * tests/test-truncf.c: New file.
44900
44901         * modules/truncf: New file.
44902         * lib/trunc.c: Make paramerizable through USE_* macros.
44903         * lib/truncf.c: New file.
44904         * m4/truncf.m4: New file.
44905         * lib/math.in.h (truncf): New declaration.
44906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44907         HAVE_DECL_TRUNCF.
44908         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44909         HAVE_DECL_TRUNCF.
44910         * doc/functions/truncf.texi: Mention the 'truncf' module.
44911
44912 2007-10-03  Bruno Haible  <bruno@clisp.org>
44913
44914         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44915         augmentation also for tests modules.
44916         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44917         * modules/atexit-tests (Makefile.am): Likewise.
44918         * modules/binary-io-tests (Makefile.am): Likewise.
44919         * modules/c-strcase-tests (Makefile.am): Likewise.
44920         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44921         * modules/canonicalize-tests (Makefile.am): Likewise.
44922         * modules/closein-tests (Makefile.am): Likewise.
44923         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44924         * modules/freadahead-tests (Makefile.am): Likewise.
44925         * modules/fseek-tests (Makefile.am): Likewise.
44926         * modules/fseeko-tests (Makefile.am): Likewise.
44927         * modules/ftell-tests (Makefile.am): Likewise.
44928         * modules/ftello-tests (Makefile.am): Likewise.
44929         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44930         * modules/isnanl-tests (Makefile.am): Likewise.
44931         * modules/lseek-tests (Makefile.am): Likewise.
44932         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44933         * modules/mbscasestr-tests (Makefile.am): Likewise.
44934         * modules/mbschr-tests (Makefile.am): Likewise.
44935         * modules/mbscspn-tests (Makefile.am): Likewise.
44936         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44937         * modules/mbspbrk-tests (Makefile.am): Likewise.
44938         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44939         * modules/mbsrchr-tests (Makefile.am): Likewise.
44940         * modules/mbsspn-tests (Makefile.am): Likewise.
44941         * modules/mbsstr-tests (Makefile.am): Likewise.
44942         * modules/printf-posix-tests (Makefile.am): Likewise.
44943         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44944         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44945         * modules/tsearch-tests (Makefile.am): Likewise.
44946         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44947         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44948         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44949         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44950         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44951         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44952         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44953         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44954         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44955         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44956         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44957         * modules/xstrtol-tests (Makefile.am): Likewise.
44958         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44959         * modules/yesno-tests (Makefile.am): Likewise.
44960
44961 2007-10-03  Bruno Haible  <bruno@clisp.org>
44962
44963         * modules/trunc-tests: New file.
44964         * tests/test-trunc.c: New file.
44965
44966         * modules/trunc: New file.
44967         * lib/trunc.c: New file.
44968         * m4/trunc.m4: New file.
44969         * lib/math.in.h (trunc): New declaration.
44970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44971         HAVE_DECL_TRUNC.
44972         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44973         HAVE_DECL_TRUNC.
44974         * doc/functions/trunc.texi: Mention the 'trunc' module.
44975
44976 2007-10-03  Bruno Haible  <bruno@clisp.org>
44977
44978         * tests/test-fpending.c: New file, mostly copied
44979         from coreutils/lib/t-fpending.c.
44980         * modules/fpending-tests: New file.
44981
44982 2007-10-03  Bruno Haible  <bruno@clisp.org>
44983
44984         Port the stdio extensions to QNX (untested).
44985         * lib/fseterr.c (fseterr): Add support for QNX.
44986         * lib/fbufmode.c (fbufmode): Likewise.
44987         * lib/freadable.c (freadable): Likewise.
44988         * lib/fwritable.c (fwritable): Likewise.
44989         * lib/freading.c (freading): Likewise.
44990         * lib/fwriting.c (fwriting): Likewise.
44991         * lib/freadahead.c (freadahed): Likewise.
44992         * lib/fpurge.c (fpurge): Likewise.
44993         * lib/fseeko.c (rpl_fseeko): Likewise.
44994
44995 2007-10-03  Bruno Haible  <bruno@clisp.org>
44996             Jim Meyering  <jim@meyering.net>
44997             Eric Blake  <ebb9@byu.net>
44998
44999         * doc/relocatable.texi: Use @command instead of @program.
45000
45001 2007-10-02  Jim Meyering  <jim@meyering.net>
45002
45003         Perform one more "_.h" -> ".in.h" substitution.
45004         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45005         instead of unistd_.h here, too.
45006
45007 2007-10-01  Bruno Haible  <bruno@clisp.org>
45008
45009         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45010         Needed for the alloca-opt module.
45011
45012 2007-09-30  Bruno Haible  <bruno@clisp.org>
45013
45014         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45015         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45016         alloca_.h.
45017         * lib/argz.in.h: Renamed from lib/argz_.h.
45018         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45019         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45020         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45021         byteswap_.h.
45022         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45023         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45024         dirent_.h.
45025         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45026         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45027         fcntl_.h.
45028         * lib/float.in.h: Renamed from lib/float_.h.
45029         * modules/float (Files, Makefile.am): Use float.in.h instead of
45030         float_.h.
45031         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45032         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45033         fnmatch_.h.
45034         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45035         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45036         getopt_.h.
45037         * lib/glob.in.h: Renamed from lib/glob_.h.
45038         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45039         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45040         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45041         iconv_.h.
45042         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45043         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45044         inttypes_.h.
45045         * lib/locale.in.h: Renamed from lib/locale_.h.
45046         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45047         locale_.h.
45048         * lib/math.in.h: Renamed from lib/math_.h.
45049         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45050         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45051         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45052         of netinet_in_.h. Add dependency.
45053         * lib/poll.in.h: Renamed from lib/poll_.h.
45054         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45055         * lib/search.in.h: Renamed from lib/search_.h.
45056         * modules/search (Files, Makefile.am): Use search.in.h instead of
45057         search_.h.
45058         * lib/signal.in.h: Renamed from lib/signal_.h.
45059         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45060         _signal.h.
45061         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45062         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45063         stdbool_.h.
45064         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45065         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45066         stdint_.h.
45067         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45068         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45069         stdio_.h.
45070         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45071         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45072         stdlib_.h.
45073         * lib/string.in.h: Renamed from lib/string_.h.
45074         * modules/string (Files, Makefile.am): Use string.in.h instead of
45075         string_.h.
45076         * doc/gnulib-tool.texi (Initial import): Update.
45077         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45078         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45079         of sys_select_.h. Add dependency.
45080         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45081         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45082         of sys_socket_.h.
45083         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45084         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45085         sys_stat_.h.
45086         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45087         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45088         sys_time_.h.
45089         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45090         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45091         sysexits_.h.
45092         * lib/time.in.h: Renamed from lib/time_.h.
45093         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45094         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45095         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45096         unistd_.h.
45097         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45098         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45099         wchar_.h.
45100         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45101         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45102         wctype_.h.
45103         * build-aux/bootstrap (slurp): Update.
45104         * lib/.cppi-disable: Update.
45105
45106 2007-09-30  Bruno Haible  <bruno@clisp.org>
45107
45108         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45109         Needed on BeOS.
45110
45111 2007-09-30  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45114
45115 2007-09-29  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45118
45119 2007-09-29  Bruno Haible  <bruno@clisp.org>
45120
45121         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45122         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45123         * build-aux/install-reloc: Compile also areadlink.c.
45124         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45125
45126 2007-09-29  Bruno Haible  <bruno@clisp.org>
45127
45128         * gnulib-tool (func_emit_initmacro_done): Indentation.
45129
45130 2007-09-29  Bruno Haible  <bruno@clisp.org>
45131
45132         * README: Add CVS checkout update instructions.
45133         Info from Bob Proulx <bob@proulx.com>.
45134
45135 2007-09-28  Eric Blake  <ebb9@byu.net>
45136
45137         Provide move-if-change.
45138         * build-aux/move-if-change: New file, based on best practice
45139         rather than any canonical upstream location.
45140
45141 2007-09-28  Jim Meyering  <jim@meyering.net>
45142
45143         Fix canonicalize loop-detection corner case.
45144         Do not attempt to stat the symlink values stored via seen_triple.
45145         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45146         on linux-2.6.18, (but not 2.6.22).
45147         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45148         triple_compare.  The former compares dev,ino,filename, while the latter
45149         would actually stat dirname(filename) when dev and ino were equal.
45150         * lib/hash-triple.c: Install <string.h>.
45151         (STREQ): Define.
45152         (triple_compare_ino_str): New function.
45153         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45154
45155 2007-09-28  Eric Blake  <ebb9@byu.net>
45156
45157         Enforce that AC_REPLACE_FUNCS files exist.
45158         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45159         override check for typos.
45160
45161         Fix test-closein on Solaris 10.
45162         * tests/test-closein.c (main): Don't assume stdin can be inherited
45163         closed on all systems.
45164         * tests/test-closein.sh: Likewise.
45165         Reported by Piotr Tarnowski.
45166
45167 2007-09-28  Jim Meyering  <jim@meyering.net>
45168
45169         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45170
45171 2007-09-27  Jim Meyering  <jim@meyering.net>
45172
45173         canonicalize: Avoid a false-positive cycle failure.
45174         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45175         Sort.  Remove cycle-check.
45176         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45177         not cycle-check.h.
45178         (seen_triple): New function.
45179         (canonicalize_filename_mode): Use it instead of cycle-check.
45180         * tests/test-canonicalize.c: Add a test for this bug.
45181         * tests/test-canonicalize.sh: Set up and run the test.
45182
45183         New module, file-set, from coreutils.
45184         * modules/file-set: Define it.
45185         * lib/file-set.c, lib/file-set.h: Implement.
45186
45187         New module, hash-triple, from coreutils.
45188         * modules/hash-triple: Define it.
45189         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45190
45191 2007-09-25  Eric Blake  <ebb9@byu.net>
45192
45193         Fix strerror on Interix.
45194         * lib/string_.h (strerror): Declare replacement.
45195         * doc/functions/strerror.texi (strerror): Document the Interix
45196         shortcoming.
45197         * modules/string (Makefile.am): Support new hooks.
45198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45199         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45200         gl_FUNC_STRERROR_SEPARATE.
45201         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45202         * lib/strerror.c (rpl_strerror): Provide replacement.
45203         * modules/strerror (Depends-on): Add string.
45204         (configure.ac): Detect use of module.
45205         * tests/test-strerror.c: New file.
45206         * modules/strerror-tests: New test module.
45207         * modules/argp (Depends-on): Add strerror.
45208         * modules/error (Depends-on): Likewise.
45209         Reported by Martin Koeppe.
45210
45211 2007-09-24  Bruno Haible  <bruno@clisp.org>
45212
45213         * README: Update git instructions.
45214
45215 2007-09-24  Eric Blake  <ebb9@byu.net>
45216
45217         Revert fpending breakage from 2007-09-08.
45218         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45219         __fpending.c.
45220
45221 2007-09-24  Jim Meyering  <jim@meyering.net>
45222
45223         filenamecat.c: Add a test.
45224         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45225         showing how the function works when DIR is the empty string.
45226
45227 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45228
45229         * tests/test-canonicalize.sh: Turn on executable bit.
45230
45231 2007-09-19  Eric Blake  <ebb9@byu.net>
45232
45233         * README: Update CVS instructions.
45234
45235 2007-09-18  Bruno Haible  <bruno@clisp.org>
45236
45237         * modules/areadlink: New file.
45238         * lib/areadlink.h (areadlink): New declaration.
45239         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45240
45241 2007-09-17  Jim Meyering  <jim@meyering.net>
45242
45243         * lib/savewd.c (ESTALE) [!defined]: Define.
45244         Reported to be required on Interix by Martin Koeppe.
45245
45246 2007-09-17  Bruno Haible  <bruno@clisp.org>
45247
45248         * gnulib-tool (func_version): Use $version.
45249
45250 2007-09-16  Bruno Haible  <bruno@clisp.org>
45251
45252         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45253         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45254         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45255         Reported by Greg Schafer <gschafer@zip.com.au>.
45256
45257 2007-09-15  Bruno Haible  <bruno@clisp.org>
45258
45259         * gnulib-tool (sed): Try a little harder to make bash understand the
45260         alias.
45261         Reported by Bruce Korb <bruce.korb@gmail.com>.
45262
45263 2007-09-13  Eric Blake  <ebb9@byu.net>
45264
45265         * ChangeLog: Remove conflict markers.
45266
45267 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45268
45269         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45270         Reported by Bruno Haible <bruno@clisp.org>.
45271
45272 2007-09-12  Bruno Haible  <bruno@clisp.org>
45273
45274         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45275         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45276         is not defined.
45277
45278 2007-09-12  Eric Blake  <ebb9@byu.net>
45279
45280         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45282         Autoconf definition.
45283         * modules/euidaccess (Depends-on): Add extensions, for
45284         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45285         * modules/fnmatch (Depends-on): Likewise.
45286         * modules/getaddrinfo (Depends-on): Likewise.
45287         * modules/getdelim (Depends-on): Likewise.
45288         * modules/getline (Depends-on): Likewise.
45289         * modules/getsubopt (Depends-on): Likewise.
45290         * modules/gettext (Depends-on): Likewise.
45291         * modules/group-member (Depends-on): Likewise.
45292         * modules/mbchar (Depends-on): Likewise.
45293         * modules/memmem (Depends-on): Likewise.
45294         * modules/mempcpy (Depends-on): Likewise.
45295         * modules/memrchr (Depends-on): Likewise.
45296         * modules/pagealign_alloc (Depends-on): Likewise.
45297         * modules/readutmp (Depends-on): Likewise.
45298         * modules/stpcpy (Depends-on): Likewise.
45299         * modules/stpncpy (Depends-on): Likewise.
45300         * modules/strchrnul (Depends-on): Likewise.
45301         * modules/strndup (Depends-on): Likewise.
45302         * modules/strsep (Depends-on): Likewise.
45303         * modules/strverscmp (Depends-on): Likewise.
45304         * modules/vasprintf (Depends-on): Likewise.
45305         * modules/wcwidth (Depends-on): Likewise.
45306         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45307         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45310         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45311         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45312         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45313         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45314         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45315         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45316         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45317         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45318         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45319         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45320         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45321         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45322         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45323         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45325         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45326         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45327         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45328         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45329         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45330         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45332         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45333         so that lock.m4 can be used in gettext without extensions module.
45334
45335 2007-09-11  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/isc-posix.m4: Remove file.
45338         Suggested by Eric Blake.
45339
45340 2007-09-11  Eric Blake  <ebb9@byu.net>
45341
45342         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45343
45344 2007-09-10  Bruno Haible  <bruno@clisp.org>
45345
45346         * posix-modules: Fix typo in error message.
45347         Reported by Matt <mkraai@beckman.com>.
45348
45349 2007-09-09  Bruno Haible  <bruno@clisp.org>
45350
45351         * doc/functions/getdelim.texi: Update list of platforms lacking the
45352         function.
45353         * doc/functions/getline.texi: Likewise.
45354
45355 2007-09-09  Jim Meyering  <jim@meyering.net>
45356
45357         * lib/hash.c (hash_initialize): Detect calloc failure.
45358         Reported by Bruno Haible.
45359
45360 2007-09-09  Bruno Haible  <bruno@clisp.org>
45361
45362         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45363         malloc or realloc fails.
45364
45365 2007-09-09  Bruno Haible  <bruno@clisp.org>
45366
45367         * modules/getcwd (Depends-on): Add malloc-posix.
45368         * modules/glob (Depends-on): Likewise.
45369         * modules/putenv (Depends-on): Likewise.
45370         * modules/strdup (Depends-on): Likewise.
45371         * modules/getdelim (Depends-on): Add realloc-posix.
45372         * modules/read-file (Depends-on): Likewise.
45373
45374 2007-09-09  Bruno Haible  <bruno@clisp.org>
45375
45376         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45377         (gl_FUNC_MALLOC_POSIX): Require it.
45378         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45379         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45380         * modules/realloc (Files): Add m4/malloc.m4.
45381         * modules/calloc (Files): Likewise.
45382
45383 2007-09-09  Bruno Haible  <bruno@clisp.org>
45384
45385         * modules/malloc-posix: New file.
45386         * modules/malloc (Depends-on): Add malloc-posix.
45387         * lib/malloc.c: Include errno.h.
45388         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45389         and a POSIX-compatible malloc into a single function. Set ENOMEM
45390         when returning NULL.
45391         * m4/malloc.m4: New file.
45392         * doc/functions/malloc.texi: Mention the malloc-posix module.
45393         * lib/stdlib_.h (malloc): New declaration.
45394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45395         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45396         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45397         and HAVE_MALLOC_POSIX.
45398
45399 2007-09-09  Bruno Haible  <bruno@clisp.org>
45400
45401         * modules/realloc-posix: New file.
45402         * modules/realloc (Depends-on): Add realloc-posix.
45403         * lib/realloc.c: Include errno.h.
45404         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45405         and a POSIX-compatible realloc into a single function. Set ENOMEM
45406         when returning NULL.
45407         * m4/realloc.m4: New file.
45408         * doc/functions/realloc.texi: Mention the realloc-posix module.
45409         * lib/stdlib_.h (realloc): New declaration.
45410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45411         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45412         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45413         and HAVE_REALLOC_POSIX.
45414
45415 2007-09-09  Bruno Haible  <bruno@clisp.org>
45416
45417         * modules/calloc-posix: New file.
45418         * modules/calloc (Depends-on): Add calloc-posix.
45419         * lib/calloc.c: Include errno.h.
45420         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45421         and a POSIX-compatible calloc into a single function. Set ENOMEM
45422         when returning NULL.
45423         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45424         * doc/functions/calloc.texi: Mention the calloc-posix module.
45425         * lib/stdlib_.h (calloc): New declaration.
45426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45427         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45428         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45429         and HAVE_CALLOC_POSIX.
45430
45431 2007-09-09  Bruno Haible  <bruno@clisp.org>
45432
45433         Allow for modules to show an arbitrary notice.
45434         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45435         * gnulib-tool: New option --extract-notice.
45436         (func_usage): Document it.
45437         (sed_extract_prog): Update.
45438         (func_get_notice): New function.
45439         (func_modules_notice): New function.
45440         (func_import, func_create_testdir): Invoke it.
45441         Suggested by Jim Meyering.
45442
45443 2007-09-09  Bruno Haible  <bruno@clisp.org>
45444
45445         * gnulib-tool: New options --verbose, --quiet.
45446         (func_usage): Document them.
45447         (verbose): New variable.
45448         (func_execute_command): New function.
45449         (func_import): Don't show the module list and the file list if
45450         $verbose < 0.
45451         (func_create_testdir): Likewise. Use func_execute_command.
45452         (func_create_megatestdir): Use func_execute_command.
45453
45454 2007-09-08  Bruno Haible  <bruno@clisp.org>
45455
45456         * gnulib-tool (func_import): Prefer rsync over wget when available,
45457         for fetching the PO files.
45458
45459 2007-09-08  Bruno Haible  <bruno@clisp.org>
45460
45461         * posix-modules: New file. Portions copied from gnulib-tool.
45462         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45463
45464 2007-09-08  Jim Meyering  <jim@meyering.net>
45465
45466         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45467         * lib/fpending.h: Rename from __fpending.h.
45468         * lib/fpending.c: Rename from __fpending.c.
45469         Include "fpending.h", not "__fpending.h".
45470         * lib/__fpending.h, lib/__fpending.c: Remove files.
45471         * modules/fpending (Files): Reflect new file names.
45472         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45473
45474 2007-09-08  Bruno Haible  <bruno@clisp.org>
45475
45476         * m4/inttypes-h.m4: Remove stub file.
45477
45478 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45479
45480         * doc/headers/stdint.texi: Discuss #include_next issue.
45481
45482 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45483
45484         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45485
45486 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45487
45488         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45489         in variable name.
45490
45491 2007-09-03  Jim Meyering  <jim@meyering.net>
45492
45493         New module: git-version-gen.
45494         * modules/git-version-gen: New file.
45495
45496         Import changes from coreutils for bootstrap script.
45497
45498         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45499
45500         bootstrap: uses rsync to download the .po files
45501         * build-aux/bootstrap (po_download_command_format): New global.
45502         (download_po_files): Use rsync.
45503         (update_po_files): Don't remove .po files after download,
45504         so future rsync runs can take advantage of the copies.
45505
45506         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45507
45508         Solve the unnecessary-.po-file-regeneration problem once and for all.
45509         * build-aux/bootstrap (download_po_files): New function, renamed from
45510         get_translations.  Now, downloads, but doesn't update LINGUAS.
45511         (update_po_files): New function.
45512
45513         bootstrap: Ignore more.
45514         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45515         uniwidth to e.g., lib/.gitignore.
45516         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45517
45518         * build-aux/bootstrap: New setting: vc_ignore.
45519         (insert_sorted_if_absent): Create $file if absent.
45520         Adapt to new, possibly empty, list: $vc_ignore.
45521
45522         bootstrap: generate more ignorable names
45523         * build-aux/bootstrap (slurp): When generating ignorable names,
45524         also map .sin to .sed, .gperf to .c, and .y to .c.
45525
45526 2007-09-03  Jim Meyering  <jim@meyering.net>
45527
45528         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45529         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45530
45531 2007-09-02  Bruno Haible  <bruno@clisp.org>
45532
45533         Fix mis-recognition of 'mcs' on QNX 6.
45534         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45535         output contains the string "Mono".
45536         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45537         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45538
45539 2007-09-01  Bruno Haible  <bruno@clisp.org>
45540
45541         Fix collision between uniwidth/* and linebreak modules.
45542         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45543         u32_width): Remove declarations.
45544         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45545         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45546         streq3, streq2, streq1, streq0): Remove functions.
45547         (STREQ): Remove macro.
45548         (is_cjk_encoding): Remove function.
45549         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45550         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45551         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45552         * NEWS: Document the change.
45553
45554 2007-09-01  Bruno Haible  <bruno@clisp.org>
45555
45556         * lib/streq.h: Add double-inclusion guard.
45557
45558 2007-09-01  Karl Berry  <karl@gnu.org>
45559
45560         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45561
45562 2007-08-28  Jim Meyering  <jim@meyering.net>
45563
45564         Rename mreadlink_with_size to areadlink_with_size.
45565         * NEWS: Document the change.
45566         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45567         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45568         * lib/mreadlink.h: Rename this to...
45569         * lib/areadlink.h: ...this.
45570         * modules/mreadlink-with-size: Rename this to...
45571         * modules/areadlink-with-size: ...this.
45572         * lib/canonicalize.c: Reflect the renaming.
45573         * modules/canonicalize: Likewise.
45574
45575 2007-08-26  Bruno Haible  <bruno@clisp.org>
45576
45577         * gnulib-tool (func_import): When deciding which files to remove,
45578         consider also dangling symbolic links.
45579         Reported by Eric Blake.
45580
45581 2007-08-26  Bruno Haible  <bruno@clisp.org>
45582
45583         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45584
45585 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45586
45587         * lib/readline.c: Don't include getline.h, the prototype is now
45588         found in stdio.h.
45589
45590 2007-08-23  Jim Meyering  <jim@meyering.net>
45591
45592         Getdelim touchup.
45593         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45594         around the funlockfile call, since funlockfile never sets errno.
45595         Don't set errno upon failed realloc.
45596
45597 2007-08-22  Eric Blake  <ebb9@byu.net>
45598
45599         Getline touchups.
45600         * lib/getdelim.c (getdelim): Revert regression that required *n to
45601         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45602         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45603         getdelim, rather than whether implementation is missing.
45604         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45605         * lib/stdio_.h (getline): Also declare if replacement is
45606         required.
45607         * doc/functions/getdelim.texi: New file.
45608         * doc/functions/getline.texi: Likewise.
45609         * doc/gnulib.texi (Function Substitutes): Add new files.
45610         Reported by Bruno Haible.
45611
45612 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45613
45614         * users.txt: Add Guile.
45615
45616 2007-08-22  Eric Blake  <ebb9@byu.net>
45617
45618         * tests/test-getdelim.c (main): Use remove, not unlink.
45619         * tests/test-getline.c (main): Likewise.
45620
45621         Move getline and getdelim into stdio.h, per POSIX 200x.
45622         * modules/getline (Files): Remove getline.h.
45623         (Depends-on): Add stdio.
45624         (configure.ac): Add module indicator.
45625         * modules/getdelim (Files): Remove getdelim.h.
45626         (Depends-on): Add stdio.
45627         (configure.ac): Add module indicator.
45628         * modules/stdio (Makefile.am): Work with new indicators.
45629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45630         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45631         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45632         * lib/getdelim.h: Delete.
45633         * lib/getline.h: Delete.
45634         * lib/stdio_.h (getdelim, getline): Declare.
45635         * modules/getdelim-tests: New module.
45636         * modules/getline-tests: Likewise.
45637         * tests/test-getdelim.c: New file.
45638         * tests/test-getline.c: Likewise.
45639         * NEWS: Document the change.
45640         * lib/getline.c: Update choice of header.
45641         * lib/csharpcomp.c: Likewise.
45642         * lib/getpass.c: Likewise.
45643         * lib/javacomp.c: Likewise.
45644         * lib/javaversion.c: Likewise.
45645         * lib/yesno.c: Likewise.
45646         * lib/getdelim.c: Likewise.
45647         (getdelim): Set errno on failure, and avoid memory leak.
45648
45649 2007-08-19  Bruno Haible  <bruno@clisp.org>
45650
45651         * modules/closein (Depends-on): Add freadahead.
45652         * lib/closein.c: Include freadahead.h.
45653         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45654         is zero.
45655
45656 2007-08-19  Bruno Haible  <bruno@clisp.org>
45657
45658         * modules/freadahead-tests: New file.
45659         * tests/test-freadahead.sh: New file.
45660         * tests/test-freadahead.c: New file.
45661
45662         * modules/freadahead: New file.
45663         * lib/freadahead.h: New file.
45664         * lib/freadahead.c: New file.
45665         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45666         fbufmode, fpurge, freadable, fwritable.
45667
45668 2007-08-19  Eric Blake  <ebb9@byu.net>
45669
45670         Test yesno in combination with closein.
45671         * lib/yesno.c (yesno): Document use of stdin.
45672         * modules/yesno-tests (Files): New module.
45673         * tests/test-yesno.c (main): New file.
45674         * tests/test-yesno.sh: Likewise.
45675
45676 2007-08-19  Bruno Haible  <bruno@clisp.org>
45677
45678         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45679         * lib/fseeko.c (rpl_fseeko): Likewise.
45680         * lib/fseterr.c (fseterr): Likewise.
45681
45682 2007-08-19  Bruno Haible  <bruno@clisp.org>
45683
45684         * tests/test-lseek.c (main): Disable a test for BeOS.
45685         * doc/functions/lseek.texi: Document the BeOS bug.
45686
45687 2007-08-19  Bruno Haible  <bruno@clisp.org>
45688             Eric Blake  <ebb9@byu.net>
45689
45690         * lib/lseek.c: Include <sys/stat.h>.
45691         (rpl_lseek): Add workaround code also for Unix platforms.
45692         Needed for BeOS.
45693         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45694         * doc/functions/lseek.texi: Document BeOS definiency.
45695
45696 2007-08-18  Bruno Haible  <bruno@clisp.org>
45697
45698         * modules/fstrcmp-tests: New file.
45699         * tests/test-fstrcmp.c: New file.
45700
45701 2007-08-18  Bruno Haible  <bruno@clisp.org>
45702
45703         * modules/fstrcmp: New file, from GNU gettext with modifications.
45704         * lib/fstrcmp.h: New file, from GNU gettext.
45705         * lib/fstrcmp.c: New file, from GNU gettext.
45706         * MODULES.html.sh (String handling): Add fstrcmp.
45707
45708 2007-08-18  Bruno Haible  <bruno@clisp.org>
45709
45710         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45711         'bool'.
45712         (diag, compareseq): Remove const from the ctxt argument.
45713         (USE_HEURISTIC): Undefine at the end.
45714
45715 2007-08-18  Jim Meyering  <jim@meyering.net>
45716
45717         New file: lib/idcache.h
45718         * NEWS: Mention the addition.
45719         * modules/idcache (Files): Add lib/idcache.h
45720         * lib/idcache.c: Include "idcache.h".
45721         Don't include <sys/types.h>.
45722         Add a FIXME comment.
45723         Move file-scoped "static" declarations to the top.
45724         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45725
45726 2007-08-17  Bruno Haible  <bruno@clisp.org>
45727         and Paul Eggert  <eggert@cs.ucla.edu>
45728
45729         * MODULES.html.sh: Add diffseq.
45730         * modules/diffseq: New file.
45731         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45732         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45733
45734 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45735
45736         Import changes from coreutils for bootstrap script.
45737
45738         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45739
45740         * build-aux/bootstrap (slurp): Work even in environments where
45741         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45742         current code does not slurp files whose names start with ".", and
45743         this looks like it might be a troublesome area.
45744
45745         2007-07-11  Jim Meyering  <jim@meyering.net>
45746
45747         If there's a GPL vN copyright comment, require that N == 3.
45748
45749         2007-07-08  Jim Meyering  <jim@meyering.net>
45750
45751         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45752         * build-aux/bootstrap (mam_template): Move definition out of loop.
45753
45754         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45755
45756         * build-aux/bootstrap (symlink_to_dir): Rename function from
45757         symlink_to_gnulib.  Add a directory parameter.  Update all
45758         callers.
45759         (cp_mark_as_generated): Also check for -- and link to -- files in
45760         gl/.
45761
45762         2007-07-08  Jim Meyering  <jim@meyering.net>
45763
45764         Adapt to deeper hierarchy in gnulib.
45765         * build-aux/bootstrap (symlink_to_dir): If the destination
45766         directory doesn't exist, create it. This is required at least for
45767         "lib/uniwidth/cjk.h".
45768
45769         2007-05-15  Jim Meyering  <jim@meyering.net>
45770
45771         * build-aux/bootstrap: Now that generated Makefile.am files
45772         are no longer under version control, they must be created at
45773         bootstrap time.
45774
45775 2007-08-14  Ben Pfaff  <blp@gnu.org>
45776
45777         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45778
45779 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45780
45781         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45782         given the changes below.
45783         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45784         even on hosts that have padding bits beyond the supported 64.
45785
45786 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45787
45788         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45789         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45790         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45791         depends on it.
45792         (xstrtol_error): Remove.
45793         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45794         but with a different signature.
45795         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45796         * lib/xstrtol-error.c: Include exitfail.h.
45797         (xstrtol_fatal): New function, with a different signature from the
45798         old xstrtol_error, so that the caller need not worry about passing
45799         in an exit status, or about storage management of the option argument.
45800         (xstrtol_error): Now a static function.  Redo signature to
45801         implement xstrtol_fatal.  Output the correct number of hyphens in
45802         front of the option so that the caller need not worry about
45803         storage management.
45804         (N_): New macro.
45805         (_): Remove; not used now.
45806         * modules/xstrtol: Depend on getopt.
45807         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45808         of old STRTOL_FATAL_ERROR macro.
45809         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45810         of test program.
45811         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45812         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45813
45814 2007-08-08  Eric Blake  <ebb9@byu.net>
45815
45816         * lib/xstrtol-error.c: Add missing include.
45817
45818         Move xstrtol messages into gnulib domain, when --pobase is used.
45819         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45820         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45821         * modules/xstrtol (Files): Distribute new file.
45822         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45823         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45824         * tests/test-xstrtol.c: ...into new file.
45825         * tests/test-xstrtoul.c: Also test xstrtoul.
45826         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45827         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45828         * tests/test-xstrtol.sh: Drive the tests.
45829         * tests/test-xstrtoimax.sh: Likewise.
45830         * tests/test-xstrtoumax.sh: Likewise.
45831         * modules/xstrtol-tests: New module.
45832         * modules/xstrtoimax-tests: Likewise.
45833         * modules/xstrtoumax-tests: Likewise.
45834
45835 2007-08-08  Jim Meyering  <jim@meyering.net>
45836
45837         New function: mfile_name_concat.
45838         * lib/filenamecat.c (mfile_name_concat): New function, just like
45839         file_name_concat, but return NULL upon failure rather than exiting
45840         with a diagnostic.
45841         * lib/filenamecat.h: Declare it.
45842
45843 2007-08-07  Bruno Haible  <bruno@clisp.org>
45844
45845         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45846         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45847         warning from gcc.
45848         Reported by Eric Blake.
45849
45850 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45851
45852         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45853         * modules/crypto/arcfour (License): Likewise.
45854         * modules/crypto/des-tests (License): Likewise.
45855         * modules/crypto/gc-arctwo-tests (License): Likewise.
45856         * modules/crypto/gc-des-tests (License): Likewise.
45857         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45858         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45859         * modules/crypto/gc-md2-tests (License): Likewise.
45860         * modules/crypto/gc-md4-tests (License): Likewise.
45861         * modules/crypto/gc-md5-tests (License): Likewise.
45862         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45863         * modules/crypto/gc-rijndael-tests (License): Likewise.
45864         * modules/crypto/gc-sha1-tests (License): Likewise.
45865         * modules/crypto/gc-tests (License): Likewise.
45866         * modules/crypto/hmac-md5 (License): Likewise.
45867         * modules/crypto/hmac-sha1 (License): Likewise.
45868         * modules/crypto/md2-tests (License): Likewise.
45869         * modules/crypto/md4-tests (License): Likewise.
45870         * modules/crypto/md5 (License): Likewise.
45871         * modules/crypto/rijndael (License): Likewise.
45872         * modules/crypto/sha1 (License): Likewise.
45873         * modules/memxor (License): Likewise.
45874
45875 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45876         and Bruno Haible  <bruno@clisp.org>
45877
45878         * NEWS: Describe interface changes to human, xstrtol.
45879         * lib/human.h: Include <xstrtol.h>.
45880         (human_options): Return enum strtol_error, not int.  Remove
45881         bool arg; take int * instead.
45882         * lib/human.c: Don't include "gettext.h".
45883         (_): Remove; no longer used.
45884         Don't include <xstrtol.h>, since human.h does it.
45885         (human_options): Adjust to abovementioned interface changes.
45886         Do not report error to stderr; that's now the caller's
45887         responsibility.
45888         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45889         interface change.
45890         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45891         Str, Argument_type_string.  All uses changed.  Put " argument"
45892         in diagnostics to make them clearer.  Change wording of suffix
45893         message for clarity.
45894         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45895         Argument_type_string.
45896         (STRTOL_FATAL_WARN): Remove; no longer used.
45897         * modules/human (Depends-on): Remove gettext-h.
45898
45899 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45900
45901         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45902
45903 2007-07-31  Bruno Haible  <bruno@clisp.org>
45904
45905         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45906         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45907         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45908
45909 2007-07-31  Bruno Haible  <bruno@clisp.org>
45910
45911         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45912         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45913
45914 2007-07-30  Bruno Haible  <bruno@clisp.org>
45915
45916         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45917         * modules/c-ctype (License): Likewise.
45918         * modules/c-strcase (License): Likewise.
45919         * modules/check-version (License): Likewise.
45920         * modules/iconv (License): Likewise.
45921         * modules/iconv_open (License): Likewise.
45922         * modules/read-file (License): Likewise.
45923         * modules/striconv (License): Likewise.
45924         * modules/strverscmp (License): Likewise.
45925         * modules/vasprintf (License): Likewise.
45926         * modules/crypto/des (License): Likewise.
45927         * modules/crypto/gc (License): Likewise.
45928         * modules/crypto/gc-arcfour (License): Likewise.
45929         * modules/crypto/gc-arctwo (License): Likewise.
45930         * modules/crypto/gc-des (License): Likewise.
45931         * modules/crypto/gc-hmac-md5 (License): Likewise.
45932         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45933         * modules/crypto/gc-md2 (License): Likewise.
45934         * modules/crypto/gc-md4 (License): Likewise.
45935         * modules/crypto/gc-md5 (License): Likewise.
45936         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45937         * modules/crypto/gc-random (License): Likewise.
45938         * modules/crypto/gc-rijndael (License): Likewise.
45939         * modules/crypto/gc-sha1 (License): Likewise.
45940         * modules/crypto/md2 (License): Likewise.
45941         * modules/crypto/md4 (License): Likewise.
45942
45943 2007-07-30  Jim Meyering  <jim@meyering.net>
45944
45945         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45946         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45947         it has valid stat data.  This bug would cause du not to count the
45948         sizes of inaccessible directories.
45949         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45950         in <http://bugzilla.redhat.com/250077>.
45951
45952 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45953             Bruno Haible  <bruno@clisp.org>
45954
45955         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45956         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45957         #include_next, gives a diagnostic about it, but reports no error in
45958         the exit code.
45959         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45960
45961 2007-07-24  Ben Pfaff  <blp@gnu.org>
45962
45963         Improve name: "count-one-bits" is better than "popcount".
45964         * MODULES.html.sh: Update name.
45965         * lib/popcount.h: Renamed lib/count-one-bits.h.
45966         (popcount): Renamed count_one_bits.
45967         (popcountl): Renamed count_one_bits_l.
45968         (popcountll): Renamed count_one_bits_ll.
45969         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45970         * modules/popcount: Renamed module/count-one-bits.
45971         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45972         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45973
45974 2007-07-23  Ben Pfaff  <blp@gnu.org>
45975
45976         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45977         better code generation, and add U to large constants to avoid
45978         warnings, in non-GCC case.
45979         Suggested by Bruno Haible.
45980
45981 2007-07-23  Ben Pfaff  <blp@gnu.org>
45982
45983         * lib/popcount.h: Use verify_true instead of if...abort.
45984         * modules/popcount: Depend on verify module.
45985         Suggested by Jim Meyering.
45986
45987 2007-07-23  Bruno Haible  <bruno@clisp.org>
45988
45989         * gnulib-tool (func_import): Create a .cvsignore file also when the
45990         directory is not yet in CVS but the toplevel directory is. When
45991         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45992         Reported by Karl Berry.
45993
45994 2007-07-22  Ben Pfaff  <blp@gnu.org>
45995
45996         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45997         case.
45998         Suggested by Eric Blake.
45999
46000 2007-07-22  Ben Pfaff  <blp@gnu.org>
46001
46002         New module: popcount.
46003         * MODULES.html.sh: Add popcount.
46004         * modules/popcount: New file.
46005         * modules/popcount-tests: New file.
46006         * tests/test-popcount.c: New file.
46007         * lib/popcount.h: New file.
46008         * m4/popcount.m4: New file.
46009
46010 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46011
46012         * build-aux/announce-gen: Update to GPLv3.
46013
46014         * build-aux/config.guess: Update from config.
46015
46016 2007-07-21  Bruno Haible  <bruno@clisp.org>
46017
46018         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46019         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46020
46021 2007-07-20  Jim Meyering  <jim@meyering.net>
46022
46023         * check-module: Diagnose a self-dependency.
46024
46025 2007-07-19  Bruno Haible  <bruno@clisp.org>
46026
46027         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46028         empty.
46029         Reported by Eric Blake.
46030
46031 2007-07-18  Bruno Haible  <bruno@clisp.org>
46032
46033         * gnulib-tool: New options --po-base, --po-domain.
46034         (func_usage): Document them.
46035         (pobase, po_domain): New variables.
46036         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46037         DEFAULT_TEXT_DOMAIN.
46038         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46039         (func_import): Consider pobase and po_domain. Create a po/ directory.
46040         (func_create_testdir): Set pobase and po_domain to empty.
46041         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46042         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46043
46044 2007-07-18  Bruno Haible  <bruno@clisp.org>
46045
46046         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46047         EXTRA_DIST augmentation for files in build-aux/.
46048
46049 2007-07-16  Bruno Haible  <bruno@clisp.org>
46050
46051         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46052         * modules/getdelim (License): Likewise.
46053
46054 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46055
46056         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46057         * modules/d-type (License): Likewise.
46058         * modules/extensions (License): Likewise.
46059         * modules/fnmatch (License): Likewise.
46060         * modules/fseeko (License): Likewise.
46061         * modules/getaddrinfo (License): Likewise.
46062         * modules/getline (License): Likewise.
46063         * modules/getlogin_r (License): Likewise.
46064         * modules/getpass (License): Likewise.
46065         * modules/gettimeofday (License): Likewise.
46066         * modules/glob (License): Likewise.
46067         * modules/inet_ntop (License): Likewise.
46068         * modules/malloc (License): Likewise.
46069         * modules/malloca (License): Likewise.
46070         * modules/memmem (License): Likewise.
46071         * modules/mempcpy (License): Likewise.
46072         * modules/memset (License): Likewise.
46073         * modules/minmax (License): Likewise.
46074         * modules/mktime (License): Likewise.
46075         * modules/netinet_in (License): Likewise.
46076         * modules/pathmax (License): Likewise.
46077         * modules/poll (License): Likewise.
46078         * modules/regex (License): Likewise.
46079         * modules/snprintf (License): Likewise.
46080         * modules/stdbool (License): Likewise.
46081         * modules/stdint (License): Likewise.
46082         * modules/stdio (License): Likewise.
46083         * modules/strcase (License): Likewise.
46084         * modules/strcasestr (License): Likewise.
46085         * modules/strdup (License): Likewise.
46086         * modules/string (License): Likewise.
46087         * modules/strndup (License): Likewise.
46088         * modules/strnlen (License): Likewise.
46089         * modules/strpbrk (License): Likewise.
46090         * modules/strptime (License): Likewise.
46091         * modules/strsep (License): Likewise.
46092         * modules/sys_select (License): Likewise.
46093         * modules/sys_socket (License): Likewise.
46094         * modules/sys_stat (License): Likewise.
46095         * modules/sys_time (License): Likewise.
46096         * modules/time (License): Likewise.
46097         * modules/time_r (License): Likewise.
46098         * modules/timegm (License): Likewise.
46099         * modules/unistd (License): Likewise.
46100         * modules/vsnprintf (License): Likewise.
46101         * modules/wctype (License): Likewise.
46102
46103 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46104
46105         * modules/argz (License): LGPLv2+.
46106
46107 2007-07-15  Karl Berry  <karl@gnu.org>
46108
46109         * doc/gnulib.texi: revise node structure per new fdl.texi.
46110
46111 2007-07-14  Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46114         the output file.
46115         * lib/uniname/uninames.h: Regenerated.
46116
46117 2007-07-14  Karl Berry  <karl@gnu.org>
46118
46119         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46120         omitting sectioning and index commands.
46121
46122 2007-07-13  Bruno Haible  <bruno@clisp.org>
46123
46124         New gnulib-tool option --more-symlinks.
46125         * gnulib-tool (func_usage): Document --more-symlinks.
46126         (do_copyrights): New variable.
46127         Recognize option --more-symlinks.
46128         (func_import): Don't add a copyright notice transform to
46129         sed_transform_lib_file if do_copyrights is empty.
46130
46131 2007-07-13  Bruno Haible  <bruno@clisp.org>
46132
46133         * lib/vasnprintf.c (decimal_point_char): Define also if
46134         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46135         && !NEED_PRINTF_DIRECTIVE_A.
46136         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46137         Gary V. Vaughan <gary@gnu.org>.
46138
46139 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46140
46141         * lib/inttypes_.h: Undo previous change, since it was fixed
46142         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46143
46144 2007-07-13  Bruno Haible  <bruno@clisp.org>
46145
46146         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46147         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46148
46149 2007-07-13  Jim Meyering  <jim@meyering.net>
46150
46151         df: Don't fail for Tru64's "file-on-file mount".
46152         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46153         so we fall through and use statfs instead.  Details here:
46154         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46155         Reported by Albert Chin.
46156
46157 2007-07-13  Bruno Haible  <bruno@clisp.org>
46158
46159         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46160         * modules/configmake (License): Likewise.
46161         * modules/gettext (License): Likewise.
46162         * modules/gettext-h (License): Likewise.
46163         * modules/include_next (License): Likewise.
46164         * modules/link-warning (License): Likewise.
46165         * modules/localcharset (License): Likewise.
46166         * modules/localename (License): Likewise.
46167         * modules/lock (License): Likewise.
46168         * modules/relocatable-lib-lgpl (License): Likewise.
46169         * modules/size_max (License): Likewise.
46170         * modules/vasnprintf (License): Likewise.
46171         * modules/wchar (License): Likewise.
46172         * modules/xsize (License): Likewise.
46173
46174 2007-07-13  Bruno Haible  <bruno@clisp.org>
46175
46176         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46177         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46178
46179 2007-07-12  Bruno Haible  <bruno@clisp.org>
46180
46181         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46182         in the modules files.
46183
46184 2007-07-11  Karl Berry  <karl@gnu.org>
46185
46186         * MODULES.html.sh (func_module): use
46187          sed -e '\|^'"${includefile}"'$|d'
46188          instead of /.../d, to avoid errors on $includefile's containing /.
46189
46190 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46191
46192         * gnulib-tool (func_import): Avoid duplication of --avoid
46193         statements
46194         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46195         names to `_' in variable names.
46196
46197 2007-07-10  Eric Blake  <ebb9@byu.net>
46198
46199         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46200         * NEWS: Document this change.
46201
46202 2007-07-08  Bruno Haible  <bruno@clisp.org>
46203
46204         Update to Unicode 5.0.
46205         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46206         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46207         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46208         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46209         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46210         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46211         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46212         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46213         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46214         U+10A3F, U+1D242..U+1D244.
46215         (nonspacing_table_ind): Update.
46216         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46217         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46218
46219 2007-07-08  Bruno Haible  <bruno@clisp.org>
46220
46221         Update to Unicode 5.0.
46222         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46223         code transform. Extend the name index field of unicode_name_to_code and
46224         unicode_code_to_name from 16 to 24 bits.
46225         * lib/uniname/uniname.c (unicode_character_name,
46226         unicode_name_character): Add the range 0x12xxx to the code transform.
46227         * lib/uniname/uninames.h: Regenerated.
46228         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46229
46230 2007-07-07  Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/wcwidth-tests: New file.
46233         * tests/test-wcwidth.c: New file.
46234
46235         Work around MacOS X wcwidth() bug.
46236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46237         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46238         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46239         original wcwidth in non-UTF-8 locales.
46240         * modules/wcwidth (Depends-on): Add localcharset, streq,
46241         uniwidth/width.
46242         * doc/functions/wcwidth.texi: Update.
46243
46244 2007-07-07  Bruno Haible  <bruno@clisp.org>
46245
46246         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46247         (wcwidth): New declaration.
46248         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46249         macros.
46250         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46251         here. Prepare for creating <wchar.h> unconditionally.
46252         * modules/wchar (Depends-on): Add link-warning.
46253         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46254         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46255         * lib/wcwidth.h: Remove file.
46256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46257         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46258         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46259         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46260         (Include): Replace wcwidth.h with <wchar.h>.
46261         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46262         * lib/mbchar.h: Don't include wcwidth.h.
46263         * lib/mbswidth.c: Likewise.
46264         * NEWS: Mention the change.
46265
46266 2007-07-07  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46269         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46270         definition with an external declaration.
46271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46272         defined as a function. Remove AC_C_INLINE requirement.
46273         * modules/wcwidth (Files): Add lib/wcwidth.c.
46274         (Makefile.am): Remove redundant statement.
46275
46276 2007-07-07  Bruno Haible  <bruno@clisp.org>
46277
46278         * MODULES.html.sh (Unicode string functions): Add the new modules.
46279
46280         * tests/uniwidth/test-u32-strwidth.c: New file.
46281         * modules/uniwidth/u32-strwidth-tests: New file.
46282
46283         * lib/uniwidth/u32-strwidth.c: New file.
46284         * modules/uniwidth/u32-strwidth: New file.
46285
46286         * tests/uniwidth/test-u16-strwidth.c: New file.
46287         * modules/uniwidth/u16-strwidth-tests: New file.
46288
46289         * lib/uniwidth/u16-strwidth.c: New file.
46290         * modules/uniwidth/u16-strwidth: New file.
46291
46292         * tests/uniwidth/test-u8-strwidth.c: New file.
46293         * modules/uniwidth/u8-strwidth-tests: New file.
46294
46295         * lib/uniwidth/u8-strwidth.c: New file.
46296         * modules/uniwidth/u8-strwidth: New file.
46297
46298         * tests/uniwidth/test-u32-width.c: New file.
46299         * modules/uniwidth/u32-width-tests: New file.
46300
46301         * lib/uniwidth/u32-width.c: New file.
46302         * modules/uniwidth/u32-width: New file.
46303
46304         * tests/uniwidth/test-u16-width.c: New file.
46305         * modules/uniwidth/u16-width-tests: New file.
46306
46307         * lib/uniwidth/u16-width.c: New file.
46308         * modules/uniwidth/u16-width: New file.
46309
46310         * tests/uniwidth/test-u8-width.c: New file.
46311         * modules/uniwidth/u8-width-tests: New file.
46312
46313         * lib/uniwidth/u8-width.c: New file.
46314         * modules/uniwidth/u8-width: New file.
46315
46316         * tests/uniwidth/test-uc_width.c: New file.
46317         * modules/uniwidth/width-tests: New file.
46318
46319         * lib/uniwidth/width.c: New file, from GNU libiconv.
46320         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46321         * modules/uniwidth/width: New file.
46322
46323         * lib/uniwidth.h: New file, from GNU libiconv.
46324         * modules/uniwidth/base: New file.
46325
46326 2007-07-07  Bruno Haible  <bruno@clisp.org>
46327
46328         * lib/uniname.h: New file, from GNU gettext.
46329         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46330         * lib/uniname/uninames.h: New file, from GNU gettext.
46331         * lib/uniname/uniname.c: New file, from GNU gettext.
46332         * tests/uniname/test-uninames.sh: New file.
46333         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46334         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46335         * modules/uniname/base: New file.
46336         * modules/uniname/uniname: New file.
46337         * modules/uniname/uniname-tests: New file.
46338         * MODULES.html.sh (Unicode string functions): Add the new modules.
46339
46340 2007-07-06  Bruno Haible  <bruno@clisp.org>
46341
46342         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46343
46344 2007-07-06  Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46347         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46348         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46349         include <sys/time.h>.
46350         Reported by Eric Blake.
46351
46352 2007-07-06  Eric Blake  <ebb9@byu.net>
46353
46354         Fix testing canonicalize on cygwin.
46355         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46356         Revert patch from 2007-06-19.
46357         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46358         canonicalize module is also in use.
46359         * tests/test-canonicalize.c: New file.
46360         * tests/test-canonicalize.sh: Likewise.
46361         * modules/canonicalize-tests: Likewise.
46362
46363 2007-07-06  Jim Meyering  <jim@meyering.net>
46364
46365         * lib/getugroups.c (getugroups): Detect getgrent failure.
46366         Adjust comment to reflect reality: this function may return -1.
46367
46368 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46369
46370         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46371         the new TP address.
46372         (usage): Fix typo
46373         (gnulib_mk): New variable.
46374
46375 2007-07-05  Jim Meyering  <jim@meyering.net>
46376
46377         Don't let endgrent clobber errno, no matter how improbable.
46378         * lib/getugroups.c (getugroups): Save and restore errno around
46379         endgrent call.
46380
46381         Close the group DB even when failing with 2^31 or more members.
46382         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46383
46384 2007-07-04  Jim Meyering  <jim@meyering.net>
46385
46386         * lib/getugroups.h: New file.
46387         * lib/getugroups.c: Include "getugroups.h".
46388         Remove uses of "register" keyword.
46389         Move local variable, "cp", down into scope where used.
46390         Give "username" parameter the "const" attribute.
46391         * modules/getugroups (Files): Add lib/getugroups.h
46392
46393 2007-07-04  Karl Berry  <karl@gnu.org>
46394
46395         * MODULES.html.sh (func_all_modules): Complete rename of
46396         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46397
46398 2007-07-02  Bruno Haible  <bruno@clisp.org>
46399
46400         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46401         mode, when inttypes.h comes from gnulib.
46402         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46403
46404 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46405
46406         * NEWS: Mention lgpl module name change.
46407
46408         * modules/lgpl-2.1: Renamed from lgpl.
46409
46410         * NEWS: Mention gpl module name change.
46411
46412         * modules/gpl-3.0: New file, based on gpl-2.0.
46413
46414         * modules/gpl-2.0: Renamed from gpl.
46415
46416         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46417         doc/gpl-2.0.texi.
46418
46419 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46420
46421         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46422         #define __STDC_LIMIT_MACROS temporarily while including
46423         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46424         Problem reported by Joel E. Denny in
46425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46426
46427 2007-07-01  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/unistdio.h: New file.
46430         * lib/unistdio/u-asnprintf.h: New file.
46431         * lib/unistdio/u-asprintf.h: New file.
46432         * lib/unistdio/u-printf-args.c: New file.
46433         * lib/unistdio/u-printf-args.h: New file.
46434         * lib/unistdio/u-printf-parse.h: New file.
46435         * lib/unistdio/u-snprintf.h: New file.
46436         * lib/unistdio/u-sprintf.h: New file.
46437         * lib/unistdio/u-vasprintf.h: New file.
46438         * lib/unistdio/u-vsnprintf.h: New file.
46439         * lib/unistdio/u-vsprintf.h: New file.
46440         * lib/unistdio/ulc-asnprintf.c: New file.
46441         * lib/unistdio/ulc-asprintf.c: New file.
46442         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46443         * lib/unistdio/ulc-printf-parse.c: New file.
46444         * lib/unistdio/ulc-snprintf.c: New file.
46445         * lib/unistdio/ulc-sprintf.c: New file.
46446         * lib/unistdio/ulc-vasnprintf.c: New file.
46447         * lib/unistdio/ulc-vasprintf.c: New file.
46448         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46449         * lib/unistdio/ulc-vsnprintf.c: New file.
46450         * lib/unistdio/ulc-vsprintf.c: New file.
46451         * lib/unistdio/u8-asnprintf.c: New file.
46452         * lib/unistdio/u8-asprintf.c: New file.
46453         * lib/unistdio/u8-printf-parse.c: New file.
46454         * lib/unistdio/u8-snprintf.c: New file.
46455         * lib/unistdio/u8-sprintf.c: New file.
46456         * lib/unistdio/u8-vasnprintf.c: New file.
46457         * lib/unistdio/u8-vasprintf.c: New file.
46458         * lib/unistdio/u8-vsnprintf.c: New file.
46459         * lib/unistdio/u8-vsprintf.c: New file.
46460         * lib/unistdio/u8-u8-asnprintf.c: New file.
46461         * lib/unistdio/u8-u8-asprintf.c: New file.
46462         * lib/unistdio/u8-u8-snprintf.c: New file.
46463         * lib/unistdio/u8-u8-sprintf.c: New file.
46464         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46465         * lib/unistdio/u8-u8-vasprintf.c: New file.
46466         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46467         * lib/unistdio/u8-u8-vsprintf.c: New file.
46468         * lib/unistdio/u16-asnprintf.c: New file.
46469         * lib/unistdio/u16-asprintf.c: New file.
46470         * lib/unistdio/u16-printf-parse.c: New file.
46471         * lib/unistdio/u16-snprintf.c: New file.
46472         * lib/unistdio/u16-sprintf.c: New file.
46473         * lib/unistdio/u16-vasnprintf.c: New file.
46474         * lib/unistdio/u16-vasprintf.c: New file.
46475         * lib/unistdio/u16-vsnprintf.c: New file.
46476         * lib/unistdio/u16-vsprintf.c: New file.
46477         * lib/unistdio/u16-u16-asnprintf.c: New file.
46478         * lib/unistdio/u16-u16-asprintf.c: New file.
46479         * lib/unistdio/u16-u16-snprintf.c: New file.
46480         * lib/unistdio/u16-u16-sprintf.c: New file.
46481         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46482         * lib/unistdio/u16-u16-vasprintf.c: New file.
46483         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46484         * lib/unistdio/u16-u16-vsprintf.c: New file.
46485         * lib/unistdio/u32-asnprintf.c: New file.
46486         * lib/unistdio/u32-asprintf.c: New file.
46487         * lib/unistdio/u32-printf-parse.c: New file.
46488         * lib/unistdio/u32-snprintf.c: New file.
46489         * lib/unistdio/u32-sprintf.c: New file.
46490         * lib/unistdio/u32-vasnprintf.c: New file.
46491         * lib/unistdio/u32-vasprintf.c: New file.
46492         * lib/unistdio/u32-vsnprintf.c: New file.
46493         * lib/unistdio/u32-vsprintf.c: New file.
46494         * lib/unistdio/u32-u32-asnprintf.c: New file.
46495         * lib/unistdio/u32-u32-asprintf.c: New file.
46496         * lib/unistdio/u32-u32-snprintf.c: New file.
46497         * lib/unistdio/u32-u32-sprintf.c: New file.
46498         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46499         * lib/unistdio/u32-u32-vasprintf.c: New file.
46500         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46501         * lib/unistdio/u32-u32-vsprintf.c: New file.
46502         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46503         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46504         * tests/unistdio/test-ulc-printf1.h: New file.
46505         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46506         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46507         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46508         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46509         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46510         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46511         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46512         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46513         * tests/unistdio/test-u8-asnprintf1.c: New file.
46514         * tests/unistdio/test-u8-asnprintf1.h: New file.
46515         * tests/unistdio/test-u8-printf1.h: New file.
46516         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46517         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46518         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46519         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46520         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46521         * tests/unistdio/test-u8-vasprintf1.c: New file.
46522         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46523         * tests/unistdio/test-u8-vsprintf1.c: New file.
46524         * tests/unistdio/test-u16-asnprintf1.c: New file.
46525         * tests/unistdio/test-u16-asnprintf1.h: New file.
46526         * tests/unistdio/test-u16-printf1.h: New file.
46527         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46528         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46529         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46530         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46531         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46532         * tests/unistdio/test-u16-vasprintf1.c: New file.
46533         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46534         * tests/unistdio/test-u16-vsprintf1.c: New file.
46535         * tests/unistdio/test-u32-asnprintf1.c: New file.
46536         * tests/unistdio/test-u32-asnprintf1.h: New file.
46537         * tests/unistdio/test-u32-printf1.h: New file.
46538         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46539         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46540         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46541         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46542         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46543         * tests/unistdio/test-u32-vasprintf1.c: New file.
46544         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46545         * tests/unistdio/test-u32-vsprintf1.c: New file.
46546         * modules/unistdio/base: New file.
46547         * modules/unistdio/u-printf-args: New file.
46548         * modules/unistdio/ulc-asnprintf: New file.
46549         * modules/unistdio/ulc-asprintf: New file.
46550         * modules/unistdio/ulc-fprintf: New file.
46551         * modules/unistdio/ulc-printf-parse: New file.
46552         * modules/unistdio/ulc-snprintf: New file.
46553         * modules/unistdio/ulc-sprintf: New file.
46554         * modules/unistdio/ulc-vasnprintf: New file.
46555         * modules/unistdio/ulc-vasprintf: New file.
46556         * modules/unistdio/ulc-vfprintf: New file.
46557         * modules/unistdio/ulc-vsnprintf: New file.
46558         * modules/unistdio/ulc-vsprintf: New file.
46559         * modules/unistdio/u8-asnprintf: New file.
46560         * modules/unistdio/u8-asprintf: New file.
46561         * modules/unistdio/u8-printf-parse: New file.
46562         * modules/unistdio/u8-snprintf: New file.
46563         * modules/unistdio/u8-sprintf: New file.
46564         * modules/unistdio/u8-vasnprintf: New file.
46565         * modules/unistdio/u8-vasprintf: New file.
46566         * modules/unistdio/u8-vsnprintf: New file.
46567         * modules/unistdio/u8-vsprintf: New file.
46568         * modules/unistdio/u8-u8-asnprintf: New file.
46569         * modules/unistdio/u8-u8-asprintf: New file.
46570         * modules/unistdio/u8-u8-snprintf: New file.
46571         * modules/unistdio/u8-u8-sprintf: New file.
46572         * modules/unistdio/u8-u8-vasnprintf: New file.
46573         * modules/unistdio/u8-u8-vasprintf: New file.
46574         * modules/unistdio/u8-u8-vsnprintf: New file.
46575         * modules/unistdio/u8-u8-vsprintf: New file.
46576         * modules/unistdio/u16-asnprintf: New file.
46577         * modules/unistdio/u16-asprintf: New file.
46578         * modules/unistdio/u16-printf-parse: New file.
46579         * modules/unistdio/u16-snprintf: New file.
46580         * modules/unistdio/u16-sprintf: New file.
46581         * modules/unistdio/u16-vasnprintf: New file.
46582         * modules/unistdio/u16-vasprintf: New file.
46583         * modules/unistdio/u16-vsnprintf: New file.
46584         * modules/unistdio/u16-vsprintf: New file.
46585         * modules/unistdio/u16-u16-asnprintf: New file.
46586         * modules/unistdio/u16-u16-asprintf: New file.
46587         * modules/unistdio/u16-u16-snprintf: New file.
46588         * modules/unistdio/u16-u16-sprintf: New file.
46589         * modules/unistdio/u16-u16-vasnprintf: New file.
46590         * modules/unistdio/u16-u16-vasprintf: New file.
46591         * modules/unistdio/u16-u16-vsnprintf: New file.
46592         * modules/unistdio/u16-u16-vsprintf: New file.
46593         * modules/unistdio/u32-asnprintf: New file.
46594         * modules/unistdio/u32-asprintf: New file.
46595         * modules/unistdio/u32-printf-parse: New file.
46596         * modules/unistdio/u32-snprintf: New file.
46597         * modules/unistdio/u32-sprintf: New file.
46598         * modules/unistdio/u32-vasnprintf: New file.
46599         * modules/unistdio/u32-vasprintf: New file.
46600         * modules/unistdio/u32-vsnprintf: New file.
46601         * modules/unistdio/u32-vsprintf: New file.
46602         * modules/unistdio/u32-u32-asnprintf: New file.
46603         * modules/unistdio/u32-u32-asprintf: New file.
46604         * modules/unistdio/u32-u32-snprintf: New file.
46605         * modules/unistdio/u32-u32-sprintf: New file.
46606         * modules/unistdio/u32-u32-vasnprintf: New file.
46607         * modules/unistdio/u32-u32-vasprintf: New file.
46608         * modules/unistdio/u32-u32-vsnprintf: New file.
46609         * modules/unistdio/u32-u32-vsprintf: New file.
46610         * modules/unistdio/ulc-asnprintf-tests: New file.
46611         * modules/unistdio/ulc-vasnprintf-tests: New file.
46612         * modules/unistdio/ulc-vasprintf-tests: New file.
46613         * modules/unistdio/ulc-vsnprintf-tests: New file.
46614         * modules/unistdio/ulc-vsprintf-tests: New file.
46615         * modules/unistdio/u8-asnprintf-tests: New file.
46616         * modules/unistdio/u8-vasnprintf-tests: New file.
46617         * modules/unistdio/u8-vasprintf-tests: New file.
46618         * modules/unistdio/u8-vsnprintf-tests: New file.
46619         * modules/unistdio/u8-vsprintf-tests: New file.
46620         * modules/unistdio/u16-asnprintf-tests: New file.
46621         * modules/unistdio/u16-vasnprintf-tests: New file.
46622         * modules/unistdio/u16-vasprintf-tests: New file.
46623         * modules/unistdio/u16-vsnprintf-tests: New file.
46624         * modules/unistdio/u16-vsprintf-tests: New file.
46625         * modules/unistdio/u32-asnprintf-tests: New file.
46626         * modules/unistdio/u32-vasnprintf-tests: New file.
46627         * modules/unistdio/u32-vasprintf-tests: New file.
46628         * modules/unistdio/u32-vsnprintf-tests: New file.
46629         * modules/unistdio/u32-vsprintf-tests: New file.
46630         * MODULES.html.sh (Unicode string functions): Add the new modules.
46631
46632 2007-07-01  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/sprintf.c (sprintf): Limit the available length estimation,
46635         to avoid address wraparound.
46636         * lib/vsprintf.c (vsprintf): Likewise.
46637         * modules/sprintf-posix (Dependencies): Add stdint.
46638         * modules/vsprintf-posix (Dependencies): Likewise.
46639
46640 2007-07-01  Bruno Haible  <bruno@clisp.org>
46641
46642         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46643         Windows PATH as well. Conservative double-quoting. Comments.
46644
46645 2007-07-01  Bruno Haible  <bruno@clisp.org>
46646             Eric Blake  <ebb9@byu.net>
46647             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46648
46649         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46650         empty components in $PATH, denoting '.'.
46651
46652 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46653
46654         * gnulib-tool: Fix indentation.
46655         (func_create_megatestdir): Likewise.
46656         Report by Bruno Haible.
46657
46658 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46659
46660         Sync from Automake.
46661         * build-aux/gnupload: Fix shell portability issues with for loops.
46662         Report by Karl Berry.
46663
46664 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46665
46666         * build-aux/maint.mk (POURL): Use translationproject.org.
46667
46668 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46669             Bruno Haible  <bruno@clisp.org>
46670
46671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46672         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46673         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46674         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46675         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46676
46677 2007-06-27  Bruno Haible  <bruno@clisp.org>
46678
46679         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46680         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46681
46682 2007-06-26  Karl Berry  <karl@gnu.org>
46683
46684         * MODULES.html.sh: remove xreadlink-with-size.
46685
46686 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46687
46688         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46689         method that I hope also handles the double-include problem noted
46690         by Bruno Haible in
46691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46692
46693 2007-06-23  Bruno Haible  <bruno@clisp.org>
46694
46695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46696         Don't let the 'mostlyclean' target fail if the last subdirectory could
46697         not be removed.
46698         Reported by Karl Berry.
46699
46700 2007-06-23  Bruno Haible  <bruno@clisp.org>
46701
46702         * gnulib-tool (echo): Add a speedier workaround for ksh.
46703         * tests/test-echo.sh: Likewise.
46704
46705 2007-06-23  Bruno Haible  <bruno@clisp.org>
46706
46707         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46708         * tests/test-echo.sh: Likewise.
46709
46710 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46711
46712         * gnulib-tool (IFS): Initialize early, so we don't set it to
46713         empty later.
46714         (self_abspathname): Rewrite algorithm to set it, reindent.
46715         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46716         (func_create_megatestdir): Merge some sed scripts.
46717
46718 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46719
46720         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46721         exposed by Sun Studio 11 cc on Solaris 8.
46722
46723 2007-06-22  Bruno Haible  <bruno@clisp.org>
46724
46725         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46726         backslashes.
46727         * tests/test-echo.sh: New file.
46728
46729 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46730
46731         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46732         simplify `sed_replace_build_aux' scripts, they are portable but
46733         echoing them with `echo' is not.
46734         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46735
46736 2007-06-21  Karl Berry  <karl@gnu.org>
46737
46738         * config/srclist.txt: guess we can't handle the licenses via
46739         srclist at the moment.
46740
46741 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46742
46743         * MODULES.html.sh: Add include_next.
46744         * modules/include_next: New file.
46745
46746 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46747
46748         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46749         INCLUDE_NEXT.
46750         (gl_CHECK_NEXT_HEADERS): New macro.
46751         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46752         the obsolescent gl_ABSOLUTE_HEADER.
46753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46754         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46755         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46756         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46757         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46758         * m4/math_h.m4 (gl_MATH_H): Likewise.
46759         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46760         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46761         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46762         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46763         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46764         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46765         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46766         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46769         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46770         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46771         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46772         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46773         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46774         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46775         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46776         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46777         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46778         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46779         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46780         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46781         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46782         * lib/float_.h: Likewise.
46783         * lib/inttypes_.h: Likewise.
46784         * lib/math_.h: Likewise.
46785         * lib/search_.h: Likewise.
46786         * lib/signal_.h: Likewise.
46787         * lib/stdint_.h: Likewise.
46788         * lib/stdio_.h: Likewise.
46789         * lib/stdlib_.h: Likewise.
46790         * lib/string_.h: Likewise.
46791         * lib/sys_stat_.h: Likewise.
46792         * lib/sys_time_.h: Likewise.
46793         * lib/time_.h: Likewise.
46794         * lib/unistd_.h: Likewise.
46795         * lib/wchar_.h: Likewise.
46796         * lib/wctype_.h: Likewise.
46797         * lib/dirent_.h: Likewise.
46798         * lib/iconv_.h: Likewise.
46799         * lib/locale_.h: Likewise.
46800         * lib/netinet_in_.h: Likewise.
46801         * lib/sys_select_.h: Likewise.
46802         * lib/sys_socket_.h: Likewise.
46803         * lib/sysexits_.h: Likewise.
46804         * modules/fcntl (Depends-on): Depend on include_next, not
46805         absolute_header.
46806         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46807         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46808         * modules/fchdir: Likewise.
46809         * modules/float: Likewise.
46810         * modules/iconv_open: Likewise.
46811         * modules/inttypes: Likewise.
46812         * modules/locale: Likewise.
46813         * modules/math: Likewise.
46814         * modules/netinet_in: Likewise.
46815         * modules/search: Likewise.
46816         * modules/signal: Likewise.
46817         * modules/stdint: Likewise.
46818         * modules/stdio: Likewise.
46819         * modules/stdlib: Likewise.
46820         * modules/string: Likewise.
46821         * modules/sys_select: Likewise.
46822         * modules/sys_socket: Likewise.
46823         * modules/sys_stat: Likewise.
46824         * modules/sys_time: Likewise.
46825         * modules/sysexits: Likewise.
46826         * modules/time: Likewise.
46827         * modules/unistd: Likewise.
46828         * modules/wchar: Likewise.
46829         * modules/wctype: Likewise.
46830         * modules/sys_stat: Change maintainer to "all".
46831         * modules/unistd: Likewise.
46832
46833 2007-06-20  Karl Berry  <karl@gnu.org>
46834
46835         * config/srclist.txt: track www changes in license files.
46836
46837 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46838
46839         * build-aux/bootstrap: Remove stray dot.
46840         Make sure build_aux settings are honored when linking
46841         gnulib_extra_files.
46842
46843 2007-06-19  Eric Blake  <ebb9@byu.net>
46844
46845         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46846         Allow compilation on cygwin.
46847
46848 2007-06-19  Jim Meyering  <jim@meyering.net>
46849
46850         xreadlink-with-size: Remove module.  No longer used.
46851         Ex-callers now use xreadlink or mreadlink-with-size.
46852         * modules/xreadlink-with-size: Remove module.
46853         * lib/xreadlink-with-size.c: Remove file.
46854         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46855         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46856         just before the function definition *is* accurate.
46857
46858         Eliminate one way canonicalize_filename_mode could exit.
46859         * lib/canonicalize.c (canonicalize_filename_mode):
46860         Use mreadlink_with_size, not xreadlink_with_size.
46861
46862 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46863
46864         Detect porting problems to FreeBSD/arm, which has time_t wider than
46865         long int.  Original problem reported for GNU diff by Xin Li in
46866         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46867         * modules/getdate (Depends-on): Add intprops, verify.
46868         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46869         is an integer type no wider than long int.
46870
46871 2007-06-18  Jim Meyering  <jim@meyering.net>
46872
46873         New module: mreadlink-with-size.
46874         * MODULES.html.sh: Add mreadlink-with-size.
46875         * modules/mreadlink-with-size: New module
46876         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46877         not xreadlink-with-size.
46878         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46879
46880 2007-06-16  Bruno Haible  <bruno@clisp.org>
46881
46882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46883         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46884         Reported by Gary V. Vaughan <gary@gnu.org>.
46885
46886 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46887
46888         Revamp lchown so that it lives in unistd.h where it belongs.
46889         * lib/lchown.h: Remove.
46890         * lib/dirchownmod.c: Don't include lib/lchown.h.
46891         * lib/fchownat.c: Likewise.
46892         * lib/openat.c: Likewise.
46893         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46894         does not follow symlinks.
46895         (EOPNOTSUPP): Define if not defined.
46896         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46897         is defined to 0.
46898         (lchown): New decl.
46899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46900         Do not check for lchown decl.
46901         Set REPLACE_LCHOWN.
46902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46903         REPLACE_LCHOWN.
46904         * modules/chown: Make it clear it follows symlinks.
46905         * modules/lchown: Make it clear it doesn't follow symlinks.
46906         (Files): Remove lib/lchown.h
46907         (Depends-on): Add unistd.
46908         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46909         (Include): Include <unistd.h>, not "lchown.h".
46910         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46911         REPLACE_LCHOWN.
46912
46913 2007-06-15  Jim Meyering  <jim@meyering.net>
46914
46915         Change license (GPL to LGPL) of fsusage and dependents.
46916         * modules/fsusage (License): Change to LGPL.
46917         * modules/full-read (License): Likewise.
46918         * modules/full-write (License): Likewise.
46919         * modules/safe-read (License): Likewise.
46920         * modules/safe-write (License): Likewise.
46921
46922 2007-06-14  Ben Pfaff  <blp@gnu.org>
46923
46924         Missing part of allocsa -> malloca transition.
46925         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46926         gl_MALLOCA.
46927
46928 2007-06-12  Bruno Haible  <bruno@clisp.org>
46929
46930         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46931         to ia64, x86_64, i386.
46932         Reported by Eric Blake.
46933
46934 2007-06-12  Bruno Haible  <bruno@clisp.org>
46935
46936         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46937         cross-compiling to x86_64.
46938
46939 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46940
46941         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46942         glitch reported by Ralf Wildenhues in
46943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46944
46945         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46946         Vin Shelton.
46947
46948 2007-06-11  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46951         replacement string.
46952         Reported by Eric Blake.
46953
46954 2007-06-10  Bruno Haible  <bruno@clisp.org>
46955
46956         Prepare vasnprintf code for use with Unicode strings.
46957         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46958         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46959         TYPE_U32_STRING.
46960         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46961         a_u32_string variants.
46962         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46963         * lib/printf-args.c: Don't include config.h and the specification
46964         header if PRINTF_FETCHARGS is already defined.
46965         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46966         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46967         TYPE_U16_STRING, TYPE_U32_STRING.
46968         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46969         u16_directive, u16_directives, u32_directive, u32_directives): New
46970         types.
46971         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46972         New declarations.
46973         * lib/printf-parse.c: Don't include config.h and the specification
46974         header if PRINTF_PARSE is already defined. Eliminate the set of
46975         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46976         them now. Include c-ctype.h.
46977         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46978         directive and CHAR_T_ONLY_ASCII.
46979         * lib/vasnprintf.c: Don't include config.h and the specification header
46980         if VASNPRINTF is already defined.
46981         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46982         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46983         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46984         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46985         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46986         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46987         code accordingly.
46988         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46989         pad_ourselves also in this case, with the 'c' and 's' directives, and
46990         with a different notion of "width".
46991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46992
46993 2007-06-10  Bruno Haible  <bruno@clisp.org>
46994
46995         * modules/unistr/u32-mbsnlen: New file.
46996         * lib/unistr/u32-mbsnlen.c: New file.
46997
46998         * modules/unistr/u16-mbsnlen: New file.
46999         * lib/unistr/u16-mbsnlen.c: New file.
47000
47001         * modules/unistr/u8-mbsnlen: New file.
47002         * lib/unistr/u8-mbsnlen.c: New file.
47003
47004         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47005         declarations.
47006
47007 2007-06-10  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/string_.h (mbsnlen): New declaration.
47010         * lib/mbsnlen.c: New file.
47011         * m4/mbsnlen.m4: New file.
47012         * modules/mbsnlen: New file.
47013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47014         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47015         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47016
47017 2007-06-10  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47020
47021 2007-06-10  Bruno Haible  <bruno@clisp.org>
47022
47023         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47024         * lib/mbuiter.h: Likewise.
47025
47026 2007-06-10  Bruno Haible  <bruno@clisp.org>
47027
47028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47029         declaration.
47030
47031 2007-06-10  Karl Berry  <karl@gnu.org>
47032
47033         * config/srclist.txt: remove gettext entries, Bruno prefers
47034         to update individually.
47035
47036 2007-06-10  Bruno Haible  <bruno@clisp.org>
47037
47038         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47039         'maxlen'. Ensure only length + width bytes are allocated, not
47040         length + 1 + width.
47041
47042 2007-06-09  Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47045         (CHAR_T): Remove macro.
47046         (VASNPRINTF): Update.
47047
47048 2007-06-09  Bruno Haible  <bruno@clisp.org>
47049
47050         * MODULES.html.sh (Unicode string functions): Add the new modules.
47051
47052         * modules/uniconv/u32-conv-to-enc: New file.
47053         * lib/uniconv/u32-conv-to-enc.c: New file.
47054         * modules/uniconv/u32-conv-to-enc-tests: New file.
47055         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47056
47057         * modules/uniconv/u16-conv-to-enc: New file.
47058         * lib/uniconv/u16-conv-to-enc.c: New file.
47059         * lib/uniconv/u-conv-to-enc.h: New file.
47060         * modules/uniconv/u16-conv-to-enc-tests: New file.
47061         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47062
47063         * modules/uniconv/u8-conv-to-enc: New file.
47064         * lib/uniconv/u8-conv-to-enc.c: New file.
47065         * modules/uniconv/u8-conv-to-enc-tests: New file.
47066         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47067
47068         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47069         u32_conv_to_encoding): New declarations.
47070
47071 2007-06-09  Bruno Haible  <bruno@clisp.org>
47072
47073         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47074
47075 2007-06-09  Bruno Haible  <bruno@clisp.org>
47076
47077         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47078         * modules/malloca: Renamed from modules/allocsa, updated.
47079         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47080         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47081         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47082         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47083         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47084         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47085         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47086         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47087         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47088         * modules/c-strcasestr (Depends-on): Update.
47089         * lib/c-strcasestr.c: Update.
47090         * modules/c-strstr (Depends-on): Update.
47091         * lib/c-strstr.c: Update.
47092         * modules/canonicalize-lgpl (Depends-on): Update.
47093         * lib/canonicalize-lgpl.c: Update.
47094         * modules/clean-temp (Depends-on): Update.
47095         * lib/clean-temp.c: Update.
47096         * modules/csharpcomp (Depends-on): Update.
47097         * lib/csharpcomp.c: Update.
47098         * modules/csharpexec (Depends-on): Update.
47099         * lib/csharpexec.c: Update.
47100         * modules/javacomp (Depends-on): Update.
47101         * lib/javacomp.c: Update.
47102         * modules/javaexec (Depends-on): Update.
47103         * lib/javaexec.c: Update.
47104         * modules/mbscasestr (Depends-on): Update.
47105         * lib/mbscasestr.c: Update.
47106         * modules/mbsstr (Depends-on): Update.
47107         * lib/mbsstr.c: Update.
47108         * modules/setenv (Depends-on): Update.
47109         * lib/setenv.c: Update.
47110         * modules/strcasestr (Depends-on): Update.
47111         * lib/strcasestr.c: Update.
47112         * modules/striconveha (Depends-on): Update.
47113         * lib/striconveha.c: Update.
47114         * modules/relocatable-prog-wrapper (Files): Update.
47115         * lib/relocwrapper.c: Update.
47116         * build-aux/install-reloc: Update.
47117         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47118
47119 2007-06-08  Bruno Haible  <bruno@clisp.org>
47120
47121         Port to uClibc.
47122         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47123         * lib/fpurge.c (fpurge): Likewise.
47124         * lib/freading.c (freading): Likewise.
47125         * lib/fseeko.c (rpl_fseeko): Likewise.
47126         * lib/fseterr.c (fseterr): Likewise.
47127         * lib/fwriting.c (fwriting): Likewise.
47128         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47129
47130 2007-06-08  Bruno Haible  <bruno@clisp.org>
47131
47132         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47133         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47134         * modules/gettext (Files): Add m4/intlmacosx.m4.
47135
47136 2007-06-07  Bruno Haible  <bruno@clisp.org>
47137
47138         * modules/localename-tests: New file.
47139         * tests/test-localename.c: New file.
47140
47141         New module 'localename'.
47142         * lib/localename.h: New file.
47143         * lib/localename.c: New file, from GNU gettext.
47144         * m4/localename.m4: New file.
47145         * modules/localename: New file.
47146
47147 2007-06-07  Bruno Haible  <bruno@clisp.org>
47148
47149         Work around the lack of <wchar.h> on some builds of uClibc.
47150         * doc/headers/wchar.texi: Update.
47151         * lib/wchar_.h: Include <wchar.h> only if it exists.
47152         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47153         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47154         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47155         doesn't exist.
47156         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47157         * modules/mbfile (Depends-on): Add wchar.
47158         * modules/mbiter (Depends-on): Likewise.
47159         * modules/mbuiter (Depends-on): Likewise.
47160         Reported by Simon Josefsson.
47161
47162 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47163
47164         Work around problem reported by Steven M. Schweda in
47165         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47166         Tru64 5.1B with the Compaq compiler environment installed declares
47167         an 'isblank' function but does not define it in the C library.
47168         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47169         * lib/regex_internal.h (isblank): Likewise.
47170         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47171         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47172
47173 2007-06-05  Bruno Haible  <bruno@clisp.org>
47174
47175         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47176         ia64.
47177         * modules/printf-safe: New file.
47178         * modules/fprintf-posix (Depends-on): Add printf-safe.
47179         * modules/printf-posix (Depends-on): Likewise.
47180         * modules/snprintf-posix (Depends-on): Likewise.
47181         * modules/sprintf-posix (Depends-on): Likewise.
47182         * modules/vasnprintf-posix (Depends-on): Likewise.
47183         * modules/vasprintf-posix (Depends-on): Likewise.
47184         * modules/vfprintf-posix (Depends-on): Likewise.
47185         * modules/vprintf-posix (Depends-on): Likewise.
47186         * modules/vsnprintf-posix (Depends-on): Likewise.
47187         * modules/vsprintf-posix (Depends-on): Likewise.
47188         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47189         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47190         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47191         "no" on i386, x86_64, ia64.
47192         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47193         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47194         on i386, x86_64, ia64.
47195         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47196         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47197         on i386, x86_64, ia64.
47198         * tests/test-vasnprintf-posix.c: Include float.h.
47199         (LDBL80_WORDS): New macro.
47200         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47201         on i386, x86_64, ia64.
47202         * tests/test-vasprintf-posix.c: Include float.h.
47203         (LDBL80_WORDS): New macro.
47204         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47205         on i386, x86_64, ia64.
47206         * tests/test-snprintf-posix.c: Include float.h.
47207         * tests/test-sprintf-posix.c: Likewise.
47208         * tests/test-vsnprintf-posix.c: Likewise.
47209         * tests/test-vsprintf-posix.c: Likewise.
47210
47211 2007-06-05  Bruno Haible  <bruno@clisp.org>
47212
47213         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47214         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47215         non-IEEE numbers on i386, x86_64, ia64.
47216         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47217         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47218         * tests/test-isnanl.h: Include float.h.
47219         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47220
47221 2007-06-05  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47224         also the %a / %A. Handle the %a / %A code before this extra handling.
47225
47226 2007-06-05  Bruno Haible  <bruno@clisp.org>
47227
47228         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47229         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47230
47231 2007-06-05  Bruno Haible  <bruno@clisp.org>
47232
47233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47234         typo in variable name.
47235
47236 2007-06-05  Eric Blake  <ebb9@byu.net>
47237
47238         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47239         Reported by Simon Josefsson.
47240
47241 2007-06-04  Bruno Haible  <bruno@clisp.org>
47242
47243         Avoid test failures on some PowerPC platforms.
47244         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47245         Define differently for PowerPC.
47246         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47247         Reported by Gary V. Vaughan <gary@gnu.org>.
47248
47249 2007-06-02  Bruno Haible  <bruno@clisp.org>
47250
47251         Fix test-stdint failure on FreeBSD/ia64.
47252         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47253         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47254         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47255         * doc/headers/stdint.texi: Update.
47256
47257 2007-06-01  Bruno Haible  <bruno@clisp.org>
47258
47259         * tests/test-binary-io.c (main): Pass a third argument to open().
47260         Reported by Gary V. Vaughan <gary@gnu.org>.
47261
47262 2007-06-01  Bruno Haible  <bruno@clisp.org>
47263
47264         * doc/functions/frexpl.texi: Update for mingw.
47265
47266 2007-06-01  Bruno Haible  <bruno@clisp.org>
47267
47268         * tests/test-lseek.c (main): Disable test of errno for invalid third
47269         argument.
47270         * doc/functions/lseek.texi: Update.
47271         Reported by Gary V. Vaughan <gary@gnu.org>.
47272
47273 2007-05-28  Bruno Haible  <bruno@clisp.org>
47274
47275         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47276
47277 2007-05-31  Eric Blake  <ebb9@byu.net>
47278
47279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47280         cross compiling.
47281
47282 2007-05-30  Eric Blake  <ebb9@byu.net>
47283         and Bruno Haible  <bruno@clisp.org>
47284
47285         Work around mingw test failures exposed by m4-1.4.9b.
47286         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47287         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47288         moment.
47289
47290 2007-05-30  Bruno Haible  <bruno@clisp.org>
47291
47292         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47293         assuming that they are closed. Needed on HP-UX 11.
47294
47295 2007-05-29  Bruno Haible  <bruno@clisp.org>
47296
47297         Fix a problem with #include_next.
47298         * lib/dirent_.h: Split the double-inclusion guard.
47299         * lib/fcntl_.h: Likewise.
47300         * lib/float_.h: Likewise.
47301         * lib/iconv_.h: Likewise.
47302         * lib/inttypes_.h: Likewise.
47303         * lib/locale_.h: Likewise.
47304         * lib/math_.h: Likewise.
47305         * lib/netinet_in_.h: Likewise.
47306         * lib/search_.h: Likewise.
47307         * lib/signal_.h: Likewise.
47308         * lib/stdint_.h: Likewise.
47309         * lib/stdio_.h: Likewise.
47310         * lib/stdlib_.h: Likewise.
47311         * lib/string_.h: Likewise.
47312         * lib/sys_select_.h: Likewise.
47313         * lib/sys_socket_.h: Likewise.
47314         * lib/sys_stat_.h: Likewise.
47315         * lib/sys_time_.h: Likewise.
47316         * lib/sysexits_.h: Likewise.
47317         * lib/time_.h: Likewise.
47318         * lib/unistd_.h: Likewise.
47319         * lib/wchar_.h: Likewise.
47320         * lib/wctype_.h: Likewise.
47321
47322 2007-05-29  Bruno Haible  <bruno@clisp.org>
47323
47324         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47325         for the moment.
47326
47327 2007-05-29  Bruno Haible  <bruno@clisp.org>
47328
47329         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47330         invocation.
47331         Reported by Eric Blake.
47332
47333 2007-05-29  Bruno Haible  <bruno@clisp.org>
47334
47335         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47336         compiling case.
47337
47338 2007-05-29  Eric Blake  <ebb9@byu.net>
47339             Bruno Haible  <bruno@clisp.org>
47340
47341         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47342         cross compiles.
47343
47344 2007-05-28  Eric Blake  <ebb9@byu.net>
47345
47346         * modules/closein-tests (test_closein_LDADD): Support test on
47347         cygwin with libtool.
47348
47349 2007-05-28  Bruno Haible  <bruno@clisp.org>
47350
47351         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47352         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47353         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47354         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47355         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47356         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47357         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47358         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47359         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47360
47361 2007-05-28  Eric Blake  <ebb9@byu.net>
47362
47363         Unconditionally include <config.h> in unit tests.
47364         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47365         * tests/test-allocsa.c, tests/test-arcfour.c,
47366         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47367         tests/test-array_list.c, tests/test-array_oset.c,
47368         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47369         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47370         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47371         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47372         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47373         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47374         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47375         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47376         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47377         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47378         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47379         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47380         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47381         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47382         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47383         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47384         test-md5.c, test-memmem.c, test-printf-posix.c,
47385         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47386         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47387         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47388         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47389         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47390         test-vasnprintf-posix2.c, test-vasnprintf.c,
47391         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47392         test-vfprintf-posix.c, test-vprintf-posix.c,
47393         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47394         test-xvasprintf.c: Likewise.
47395
47396 2007-05-28  Bruno Haible  <bruno@clisp.org>
47397
47398         * gnulib-tool (func_import): Remember the --with-tests command-line
47399         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47400         Reported by Eric Blake.
47401
47402 2007-05-28  Bruno Haible  <bruno@clisp.org>
47403
47404         * modules/ftell-tests: New file.
47405         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47406         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47407
47408         * lib/ftell.c: New file.
47409         * modules/ftell: New file.
47410         * m4/ftell.m4: New file.
47411         * doc/functions/ftell.texi: Update.
47412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47413         REPLACE_FTELL.
47414         * lib/stdio_.h (rpl_ftell): New declaration.
47415         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47416         REPLACE_FTELL.
47417
47418 2007-05-28  Eric Blake  <ebb9@byu.net>
47419
47420         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47421
47422 2007-05-28  Bruno Haible  <bruno@clisp.org>
47423
47424         * modules/fseek-tests: New file.
47425         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47426         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47427
47428         * lib/fseek.c: New file.
47429         * modules/fseek: New file.
47430         * m4/fseek.m4: New file.
47431         * doc/functions/fseek.texi: Update.
47432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47433         REPLACE_FSEEK.
47434         * lib/stdio_.h (rpl_fseek): New declaration.
47435         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47436         REPLACE_FSEEK.
47437
47438 2007-05-28  Bruno Haible  <bruno@clisp.org>
47439
47440         * lib/stdio_.h (fflush): More comments.
47441
47442 2007-05-28  Bruno Haible  <bruno@clisp.org>
47443
47444         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47445         runtime test.
47446
47447 2007-05-28  Eric Blake  <ebb9@byu.net>
47448
47449         Improve lseek module.
47450         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47451         * lib/unistd_.h (lseek): Scale back link warning message.
47452         * tests/test-lseek.c: Beef up test.
47453         * tests/test-lseek.sh: Exercise more facets of lseek.
47454         Reported by Bruno Haible.
47455
47456 2007-05-28  Bruno Haible  <bruno@clisp.org>
47457
47458         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47459         to define.
47460
47461 2007-05-27  Bruno Haible  <bruno@clisp.org>
47462
47463         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47464
47465 2007-05-27  Bruno Haible  <bruno@clisp.org>
47466
47467         * modules/openmp: New file.
47468         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47469         Noah Misch.
47470
47471 2007-05-26  Bruno Haible  <bruno@clisp.org>
47472
47473         * modules/chdir-long (Depends-on): Add fchdir.
47474         * modules/chdir-safer (Depends-on): Likewise.
47475         * modules/fts (Depends-on): Likewise.
47476         * modules/fts-lgpl (Depends-on): Likewise.
47477         * modules/openat (Depends-on): Likewise.
47478         * modules/savewd (Depends-on): Likewise.
47479
47480 2007-05-24  Eric Blake  <ebb9@byu.net>
47481
47482         Fix lseek on mingw.
47483         * modules/lseek: New module.
47484         * m4/lseek.m4: New file.
47485         * lib/lseek.c: New file.
47486         * modules/lseek-tests: New file.
47487         * tests/test-lseek.c: New file.
47488         * tests/test-lseek.sh: New file.
47489         * MODULES.html.sh: Document lseek module.
47490         * modules/fflush (Depends-on): Add lseek, fseeko.
47491         * modules/fseeko (Depends-on): Likewise.
47492         * modules/ftello (Depends-on): Likewise.
47493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47494         broken.
47495         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47496         broken.
47497         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47498         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47499         * lib/ftello.c (rpl_ftello): Likewise.
47500         * tests/test-fseeko.c (main): Test this.
47501         * tests/test-fseeko.sh: Likewise.
47502         * tests/test-ftello.c (main): Likewise.
47503         * tests/test-ftello.sh: Likewise.
47504         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47505         implies replacing fseek.
47506         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47507         HAVE_FTELLO.
47508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47509         * modules/unistd (Makefile.am): Likewise.
47510         * lib/unistd_.h (lseek): Declare a replacement.
47511         * doc/functions/lseek.texi (lseek): Document this fix.
47512         * doc/functions/fseek.texi (fseek): Likewise.
47513         * doc/functions/ftell.texi (ftell): Likewise.
47514
47515 2007-05-24  Bruno Haible  <bruno@clisp.org>
47516
47517         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47518         in the printed representation of a NaN.
47519         * tests/test-vasprintf-posix.c (test_function): Likewise.
47520         * tests/test-snprintf-posix.h (test_function): Likewise.
47521         * tests/test-sprintf-posix.h (test_function): Likewise.
47522         Reported by Eric Blake.
47523
47524 2007-05-23  Eric Blake  <ebb9@byu.net>
47525
47526         Fix fseeko/ftello on cygwin 1.5.24.
47527         * doc/functions/fseeko.texi (fseeko): Document the fix.
47528         * doc/functions/ftello.texi (ftello): Document the fix.
47529         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47530         * doc/functions/stdout.text (stdout): New file.
47531         * doc/functions/stderr.text (stderr): New file.
47532         * doc/gnulib.texi (Function Substitutes): Use new files.
47533         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47534         prior to 1.7.0.
47535         * tests/test-ftello.c (main): Likewise for ftello.
47536         * tests/test-fseeko.sh: New file.
47537         * tests/test-ftello.sh: New file.
47538         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47539         with seekable stdin.
47540         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47542         (gl_REPLACE_FSEEKO): New macro.
47543         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47544         * modules/fseeko (Files): Distribute fseeko.c.
47545         * modules/ftello (Files): Distribute ftello.c.
47546         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47547         mode.
47548         * lib/ftello.c (rpl_ftello): New file.
47549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47550         fseeko, ftello.
47551         (gl_STDIN_LARGE_OFFSET): New macro.
47552         * modules/stdio (Makefile.am): Perform the replacement.
47553         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47554
47555 2007-05-23  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47558         GNULIB_POSIXCHECK is defined.
47559
47560 2007-05-21  Bruno Haible  <bruno@clisp.org>
47561
47562         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47563         Check also the output for NaN arguments. When cross-compiling, guess
47564         no on IRIX.
47565         * lib/vasnprintf.c: Update comments.
47566         * tests/test-vasnprintf-posix.c (strisnan): New function.
47567         (test_function): Use it.
47568         * tests/test-vasprintf-posix.c (strisnan): New function.
47569         (test_function): Use it.
47570         * tests/test-snprintf-posix.h (strisnan): New function.
47571         (test_function): Use it.
47572         * tests/test-sprintf-posix.h (strisnan): New function.
47573         (test_function): Use it.
47574         Reported by Eric Blake.
47575
47576 2007-05-20  Bruno Haible  <bruno@clisp.org>
47577
47578         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47579         numbers that fails on BeOS.
47580         * doc/functions/frexpl.texi: Update.
47581
47582 2007-05-20  Jim Meyering  <jim@meyering.net>
47583
47584         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47585         forced upon us by glibc-2.6.
47586
47587 2007-05-20  Bruno Haible  <bruno@clisp.org>
47588
47589         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47590         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47591         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47592         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47593         NEED_PRINTF_INFINITE.
47594         (is_infinitel): New function.
47595         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47597         gl_PREREQ_VASNPRINTF_INFINITE.
47598         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47600         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47601         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47602         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47603         gl_PREREQ_VASNPRINTF_INFINITE.
47604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47611         * doc/functions/fprintf.texi: Update.
47612         * doc/functions/printf.texi: Update.
47613         * doc/functions/snprintf.texi: Update.
47614         * doc/functions/sprintf.texi: Update.
47615         * doc/functions/vfprintf.texi: Update.
47616         * doc/functions/vprintf.texi: Update.
47617         * doc/functions/vsnprintf.texi: Update.
47618         * doc/functions/vsprintf.texi: Update.
47619
47620 2007-05-20  Bruno Haible  <bruno@clisp.org>
47621
47622         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47623         was not found in libc.
47624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47625
47626 2007-05-20  Bruno Haible  <bruno@clisp.org>
47627
47628         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47629         printed as "-nan" instead of "nan".
47630         * tests/test-vasprintf-posix.c (test_function): Likewise.
47631         * tests/test-snprintf-posix.h (test_function): Likewise.
47632         * tests/test-sprintf-posix.h (test_function): Likewise.
47633         Needed for HP-UX 11.
47634
47635 2007-05-20  Jim Meyering  <jim@meyering.net>
47636
47637         Fix buggy test for the fchownat-deref bug.
47638         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47639         symlink required for the run-test.  Without it, this test would
47640         always declare that fchownat doesn't work, and client code would
47641         unnecessarily use the replacement function with fixed libc.
47642         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47643         Reported by Greg Schafer.
47644
47645 2007-05-19  Bruno Haible  <bruno@clisp.org>
47646
47647         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47648         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47649         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47650         Needed for IRIX 6.5 and Solaris 2.5.1.
47651
47652 2007-05-19  Bruno Haible  <bruno@clisp.org>
47653
47654         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47655         (test_function): Skip tests involving -0.0 on platforms where
47656         -0.0 = 0.0.
47657         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47658         (test_function): Skip tests involving -0.0 on platforms where
47659         -0.0 = 0.0.
47660         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47661         (test_function): Skip tests involving -0.0 on platforms where
47662         -0.0 = 0.0.
47663         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47664         (test_function): Skip tests involving -0.0 on platforms where
47665         -0.0 = 0.0.
47666         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47667         tests.
47668         * tests/test-printf-posix.h (test_function): Likewise.
47669         * tests/test-printf-posix.output: Remove all -0.0 related results.
47670         Needed for IRIX 6.5.
47671
47672 2007-05-19  Bruno Haible  <bruno@clisp.org>
47673
47674         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47675         printed as "nan0x7fffffff" instead of "nan".
47676         * tests/test-vasprintf-posix.c (test_function): Likewise.
47677         * tests/test-snprintf-posix.h (test_function): Likewise.
47678         * tests/test-sprintf-posix.h (test_function): Likewise.
47679         * tests/test-fprintf-posix.h (NaN): Remove macro.
47680         (test_function): Remove all NaN related tests.
47681         * tests/test-printf-posix.h (NaN): Remove macro.
47682         (test_function): Remove all NaN related tests.
47683         * tests/test-printf-posix.output: Remove all NaN related results.
47684         Needed for IRIX 6.5.
47685
47686 2007-05-19  Bruno Haible  <bruno@clisp.org>
47687
47688         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47690
47691 2007-05-19  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/float_.h: New file.
47694         * m4/float_h.m4: New file.
47695         * modules/float: New file.
47696         * modules/isnanl (Dependencies): Add float.
47697         * modules/isnanl-nolibm (Dependencies): Likewise.
47698         * modules/mathl (Dependencies): Likewise.
47699         * modules/printf-frexpl (Dependencies): Likewise.
47700         * modules/signbit (Dependencies): Likewise.
47701         * modules/vasnprintf (Dependencies): Likewise.
47702         * doc/headers/float.texi: Update.
47703
47704 2007-05-19  Jim Meyering  <jim@meyering.net>
47705
47706         * lib/utimens.c (gl_futimens): Rename from futimens,
47707         now that glibc-2.6 declares futimens.
47708         * lib/utimens.h: Likewise.
47709
47710 2007-05-19  Bruno Haible  <bruno@clisp.org>
47711
47712         Avoid test failures on mingw.
47713         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47714         * tests/test-printf-posix.sh: Likewise.
47715         * tests/test-vfprintf-posix.sh: Likewise.
47716         * tests/test-vprintf-posix.sh: Likewise.
47717
47718 2007-05-19  Bruno Haible  <bruno@clisp.org>
47719
47720         Fix *printf result for NaN, Inf, -0.0 on mingw.
47721         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47722         * lib/vasnprintf.c: Include math.h and isnan.h.
47723         (is_infinite_or_zero): New function.
47724         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47725         values in the %f, %F, %e, %E, %g, %G directives.
47726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47728         gl_PRINTF_INFINITE and test its result. Invoke
47729         gl_PREREQ_VASNPRINTF_INFINITE.
47730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47737         * doc/functions/fprintf.texi: Update.
47738         * doc/functions/printf.texi: Update.
47739         * doc/functions/snprintf.texi: Update.
47740         * doc/functions/sprintf.texi: Update.
47741         * doc/functions/vfprintf.texi: Update.
47742         * doc/functions/vprintf.texi: Update.
47743         * doc/functions/vsnprintf.texi: Update.
47744         * doc/functions/vsprintf.texi: Update.
47745
47746 2007-05-19  Bruno Haible  <bruno@clisp.org>
47747
47748         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47749         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47750         Instead of multiplying with 10^k, set extra_zeroes to k.
47751         (scale10_round_long_double): Remove function.
47752
47753 2007-05-18  Bruno Haible  <bruno@clisp.org>
47754
47755         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47756         introduced on 2007-05-06.
47757
47758 2007-05-18  Bruno Haible  <bruno@clisp.org>
47759
47760         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47761         %g directives.
47762         * tests/test-vasprintf-posix.c (test_function): Likewise.
47763         * tests/test-snprintf-posix.h (test_function): Likewise.
47764         * tests/test-sprintf-posix.h (test_function): Likewise.
47765
47766 2007-05-18  Bruno Haible  <bruno@clisp.org>
47767
47768         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47769         (strmatch): New function.
47770         (test_function): Test the %f directive on numbers of various exponents.
47771         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47772         (strmatch): New function.
47773         (test_function): Test the %f directive on numbers of various exponents.
47774         * tests/test-snprintf-posix.h (strmatch): New function.
47775         (test_function): Test the %f directive on numbers of various exponents.
47776         * tests/test-sprintf-posix.h (strmatch): New function.
47777         (test_function): Test the %f directive on numbers of various exponents.
47778         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47779         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47780         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47781         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47782
47783 2007-05-18  Bruno Haible  <bruno@clisp.org>
47784
47785         Add support for 'long double' number output.
47786         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47787         * lib/vasnprintf.c: Include math.h and float+.h.
47788         (mp_limb_t): New type.
47789         (GMP_LIMB_BITS): New macro.
47790         (mp_twolimb_t): New type.
47791         (GMP_TWOLIMB_BITS): New macro.
47792         (mpn_t): New type.
47793         (multiply, divide, convert_to_decimal, decode_long_double,
47794         scale10_round_long_double, scale10_round_decimal_long_double,
47795         floorlog10l): New functions.
47796         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47797         for the %f, %F, %e, %E, %g, %G directives.
47798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47800         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47801         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47809         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47810         * modules/snprintf-posix (Depends-on): Likewise.
47811         * modules/sprintf-posix (Depends-on): Likewise.
47812         * modules/vasnprintf-posix (Depends-on): Likewise.
47813         * modules/vasprintf-posix (Depends-on): Likewise.
47814         * modules/vfprintf-posix (Depends-on): Likewise.
47815         * modules/vsnprintf-posix (Depends-on): Likewise.
47816         * modules/vsprintf-posix (Depends-on): Likewise.
47817         * modules/vasnprintf (Files): Add lib/float+.h.
47818         * doc/functions/fprintf.texi: Update.
47819         * doc/functions/printf.texi: Update.
47820         * doc/functions/snprintf.texi: Update.
47821         * doc/functions/sprintf.texi: Update.
47822         * doc/functions/vfprintf.texi: Update.
47823         * doc/functions/vprintf.texi: Update.
47824         * doc/functions/vsnprintf.texi: Update.
47825         * doc/functions/vsprintf.texi: Update.
47826
47827 2007-05-18  Bruno Haible  <bruno@clisp.org>
47828
47829         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47830
47831 2007-05-18  Bruno Haible  <bruno@clisp.org>
47832
47833         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47834         for printing 64-bit integers. Needed for mingw.
47835
47836 2007-05-18  Bruno Haible  <bruno@clisp.org>
47837
47838         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47839         gl_FUNC_FREXPL_WORKS.
47840         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47841
47842 2007-05-18  Bruno Haible  <bruno@clisp.org>
47843
47844         * modules/frexpl-nolibm-tests: New file.
47845
47846         * modules/frexpl-nolibm: New file.
47847         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47848
47849 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47850
47851         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47852         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47853         GCC 4.2, which otherwise issues a lot of warnings.
47854         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47855         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47856         Likewise.
47857         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47858         * modules/iconv_open (iconv.h): Likewise.
47859         * modules/locale (locale.h): Likewise.
47860         * modules/netinet_in (netinet/in.h): Likewise.
47861         * modules/sys_select (sys_select.h): Likewise.
47862         * modules/sys_socket (sys/socket.h): Likewise.
47863         * modules/sys_stat (sys/stat.h): Likewise.
47864         * modules/sysexits (sysexits.h): Likewise.
47865         * modules/unistd (unistd.h): Likewise.
47866
47867 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47868
47869         * modules/closein-tests (Makefile.am): Distribute
47870         `test-closein.sh'.
47871
47872 2007-05-17  Bruno Haible  <bruno@clisp.org>
47873
47874         * tests/test-printf-posix.output: Renamed from
47875         tests/test-fprintf-posix.out.
47876         * modules/fprintf-posix-tests: Update.
47877         * modules/printf-posix-tests: Update.
47878         * modules/vfprintf-posix-tests: Update.
47879         * modules/vprintf-posix-tests: Update.
47880         * tests/test-fprintf-posix.sh: Update.
47881         * tests/test-printf-posix.sh: Update.
47882         * tests/test-vfprintf-posix.sh: Update.
47883         * tests/test-vprintf-posix.sh: Update.
47884         Reported by Ralf Wildenhues.
47885
47886 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47889         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47890         GCC 4.2, which otherwise issues a lot of warnings.
47891         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47892         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47893         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47894         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47895         it should no longer be needed.
47896         * lib/string_.h: Likewise.
47897         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47898         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47899         * modules/inttypes (inttypes.h): Likewise.
47900         * modules/math (math.h): Likewise.
47901         * modules/search (search.h): Likewise.
47902         * modules/signal (signal.h): Likewise.
47903         * modules/stdint (stdint.h): Likewise.
47904         * modules/stdio (stdio.h): Likewise.
47905         * modules/stdlib (stdlib.h): Likewise.
47906         * modules/string (string.h): Likewise.
47907         * modules/sys_time (sys/time.h): Likewise.
47908         * modules/time (time.h): Likewise.
47909         * modules/wchar (wchar.h): Likewise.
47910         * modules/wctype (wtype.h): Likewise.
47911
47912 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47913
47914         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47915
47916 2007-05-13  Bruno Haible  <bruno@clisp.org>
47917
47918         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47919         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47920         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47921         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47922         (gl_PREREQ_STRTOK_R): Don't require it here.
47923
47924 2007-05-13  Bruno Haible  <bruno@clisp.org>
47925
47926         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47927         when used in C++ mode.
47928
47929 2007-05-12  Bruno Haible  <bruno@clisp.org>
47930
47931         * lib/linebuffer.h: Tweak doc.
47932         * lib/linebuffer.c: Likewise.
47933
47934 2007-05-12  James Youngman  <jay@gnu.org>
47935
47936         * lib/linebuffer.c (readlinebuffer_delim): New function,
47937         like readlinebuffer, but use a caller-specified delimiter.
47938         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47939         as the delimiter.
47940         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47941
47942 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47943
47944         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47945         * modules/openat (Files): Remove openat-die.c.
47946         (Depends-on): Add openat-die.
47947         * modules/openat-die: New module.
47948
47949 2007-05-06  Bruno Haible  <bruno@clisp.org>
47950
47951         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47952         Update with info about Cygwin.
47953         * doc/functions/fprintf.texi: Update.
47954         * doc/functions/printf.texi: Update.
47955         * doc/functions/snprintf.texi: Update.
47956         * doc/functions/sprintf.texi: Update.
47957         * doc/functions/vfprintf.texi: Update.
47958         * doc/functions/vprintf.texi: Update.
47959         * doc/functions/vsnprintf.texi: Update.
47960         * doc/functions/vsprintf.texi: Update.
47961         Reported by Eric Blake.
47962
47963 2007-05-06  Bruno Haible  <bruno@clisp.org>
47964
47965         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47966         padding ourselves for the floating-point directives.
47967         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47970         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47971         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47979         * tests/test-snprintf-posix.h (test_function): Also check the width
47980         and some flags in the %f directive.
47981         * tests/test-sprintf-posix.h (test_function): Likewise.
47982         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47983         * tests/test-vasprintf-posix.c (test_function): Likewise.
47984         * doc/functions/fprintf.texi: Update.
47985         * doc/functions/printf.texi: Update.
47986         * doc/functions/snprintf.texi: Update.
47987         * doc/functions/sprintf.texi: Update.
47988         * doc/functions/vfprintf.texi: Update.
47989         * doc/functions/vprintf.texi: Update.
47990         * doc/functions/vsnprintf.texi: Update.
47991         * doc/functions/vsprintf.texi: Update.
47992
47993 2007-05-06  Bruno Haible  <bruno@clisp.org>
47994
47995         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47996         pass the ' flag character to sprintf or snprintf.
47997         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48000         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48001         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48009         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48010         flag.
48011         * tests/test-sprintf-posix.h (test_function): Likewise.
48012         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48013         * tests/test-vasprintf-posix.c (test_function): Likewise.
48014         * doc/functions/fprintf.texi: Update.
48015         * doc/functions/printf.texi: Update.
48016         * doc/functions/snprintf.texi: Update.
48017         * doc/functions/sprintf.texi: Update.
48018         * doc/functions/vfprintf.texi: Update.
48019         * doc/functions/vprintf.texi: Update.
48020         * doc/functions/vsnprintf.texi: Update.
48021         * doc/functions/vsprintf.texi: Update.
48022
48023 2007-05-01  Bruno Haible  <bruno@clisp.org>
48024
48025         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48026
48027 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48028
48029         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48030         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48031
48032 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48033
48034         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48035         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48037
48038 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48039
48040         * lib/argp-help.c (struct hol_entry): New member `ord'.
48041         (HOL_ENTRY_PTRCMP): Use ord for comparison
48042         (hol_sort): Initialize ord.
48043
48044 2007-05-01  Bruno Haible  <bruno@clisp.org>
48045
48046         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48047         Reported by Eric Blake.
48048         * doc/gnulib.texi (Function Substitutes): Update.
48049
48050 2007-05-01  Bruno Haible  <bruno@clisp.org>
48051
48052         * doc/functions.texi: Remove file, now redundant through
48053         doc/functions/*.texi.
48054
48055 2007-05-01  Bruno Haible  <bruno@clisp.org>
48056
48057         * modules/argp (Depends-on): Add sleep.
48058
48059 2007-05-01  Bruno Haible  <bruno@clisp.org>
48060
48061         * modules/sleep-tests: New file.
48062         * tests/test-sleep.c: New file.
48063
48064         * modules/sleep: New file.
48065         * lib/sleep.c: New file.
48066         * m4/sleep.m4: New file.
48067         * lib/unistd_.h (sleep): New declaration.
48068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48069         HAVE_SLEEP.
48070         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48071         * doc/functions/sleep.texi: Document the sleep module.
48072
48073 2007-05-01  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/sigprocmask.h: Remove file.
48076         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48077         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48078         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48079         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48080         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48081         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48082         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48083         HAVE_SIGSET_T as a shell variable.
48084         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48085         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48086         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48087         (Depends-on): Add signal. Remove verify.
48088         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48089         (Include): Mention <signal.h> instead of sigprocmask.h.
48090         * NEWS: Mention the change.
48091         * lib/fatal-signal.c: Don't include sigprocmask.h.
48092
48093 2007-05-01  Bruno Haible  <bruno@clisp.org>
48094
48095         * modules/signal: New file.
48096         * lib/signal_.h: New file.
48097         * m4/signal_h.m4: New file.
48098
48099 2007-05-01  Bruno Haible  <bruno@clisp.org>
48100
48101         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48102         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48103         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48104         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48105
48106 2007-05-01  Bruno Haible  <bruno@clisp.org>
48107
48108         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48109         configure time.
48110         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48111         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48112         * modules/sys_stat (Makefile.am): Substitute their values into
48113         sys/stat.h.
48114
48115 2007-05-01  Bruno Haible  <bruno@clisp.org>
48116
48117         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48118         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48119         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48120
48121 2007-05-01  Bruno Haible  <bruno@clisp.org>
48122
48123         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48124         'assert' module here.
48125
48126 2007-05-01  Bruno Haible  <bruno@clisp.org>
48127
48128         * doc/functions/*.texi: New files.
48129         * doc/functions/google-ranking.txt: New file.
48130         * doc/gnulib.texi (Function Substitutes): New chapter.
48131         (ctime, inet_ntoa): Remove sections.
48132         * doc/ctime.texi: Remove file.
48133         * doc/inet_ntoa.texi: Remove file.
48134         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48135         dependencies.
48136         (%.info): New rule, specifying a --reference-limit.
48137
48138 2007-05-01  Bruno Haible  <bruno@clisp.org>
48139
48140         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48141
48142 2007-05-01  Bruno Haible  <bruno@clisp.org>
48143
48144         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48145         the portability of 'mkdir' to mingw systems.
48146
48147 2007-05-01  Bruno Haible  <bruno@clisp.org>
48148
48149         * doc/headers/google-ranking.txt: New file.
48150
48151 2007-04-30  Eric Blake  <ebb9@byu.net>
48152
48153         Prefer fseeko to fseek.
48154         * modules/getpass (Depends-on): Add fseeko.
48155         * lib/getpass.c (getpass): Use fseeko, not fseek.
48156
48157 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48158
48159         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48160         assumes the sorting is stable, while most qsort implementations
48161         are not.  Use argument addresses to ensure they never compare as
48162         equal.
48163
48164         * tests/test-argp-2.sh (usage-indent test): Fix output
48165         (func_compare): Restore diff options
48166         * tests/test-argp.c: Restore #include "progname.h"
48167
48168 2007-04-29  Bruno Haible  <bruno@clisp.org>
48169
48170         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48172         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48174         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48175         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48176         (TESTS, check_PROGRAMS): Add test-snprintf.
48177         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48178         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48179         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48180         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48181         assertions that fail on HP-UX, OSF/1, or IRIX.
48182         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48183
48184 2007-04-29  Bruno Haible  <bruno@clisp.org>
48185
48186         * MODULES.html.sh (posix_functions): Remove 'contents'.
48187
48188 2007-04-29  Karl Berry  <karl@gnu.org>
48189
48190         * config/srclist.txt (gendocs_template_min): new entry.
48191
48192 2007-04-29  Bruno Haible  <bruno@clisp.org>
48193
48194         Work around fpurge bug on BSD systems.
48195         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48197         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48198         fpurge to rpl_fpurge if the system already has this function.
48199         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48200         the case where the system already has this function. Correct invariants
48201         on BSD systems.
48202         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48203         BSD systems.
48204
48205 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48206
48207         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48208         proposed by Sven Verdoolaege.
48209
48210         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48211         options.
48212         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48213         (usage and help tests): Update
48214
48215 2007-04-29  Bruno Haible  <bruno@clisp.org>
48216
48217         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48218         Print more information in case of failure. Disable a test on BeOS.
48219
48220 2007-04-29  Bruno Haible  <bruno@clisp.org>
48221
48222         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48223         This helps debugging on systems on which no gdb is available.
48224
48225 2007-04-29  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/freading.h: Improve comments.
48228         * lib/fwriting.h: Likewise.
48229         * tests/test-freading.c (main): Don't check freading immediately after
48230         repositioning. Needed for glibc.
48231
48232 2007-04-29  Bruno Haible  <bruno@clisp.org>
48233
48234         * lib/freading.c (freading): Trivial simplification.
48235
48236 2007-04-28  Bruno Haible  <bruno@clisp.org>
48237
48238         * tests/test-fwriting.c (main): Also test the interaction between
48239         fflush and fwriting.
48240         * modules/fwriting-tests (Depends-on): Add fflush.
48241
48242         * tests/test-freading.c (main): Also test the interaction between
48243         fflush and freading.
48244         * modules/freading-tests (Depends-on): Add fflush.
48245
48246 2007-04-28  Bruno Haible  <bruno@clisp.org>
48247
48248         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48249         fseeko and ftello.
48250         Suggested by Eric Blake.
48251
48252 2007-04-28  Jim Meyering  <jim@meyering.net>
48253
48254         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48255         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48256         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48257
48258 2007-04-27  Eric Blake  <ebb9@byu.net>
48259
48260         * doc/headers/assert.texi (assert.h): Document assert module use.
48261
48262 2007-04-27  Bruno Haible  <bruno@clisp.org>
48263
48264         * doc/headers/*.texi: New files.
48265         * doc/gnulib.texi (Header File Substitutes): New chapter.
48266         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48267         dependencies.
48268         (standards.info ,standards.html, standards.dvi): Update dependencies.
48269         (mostlyclean, clean): New targets.
48270
48271 2007-04-27  Bruno Haible  <bruno@clisp.org>
48272
48273         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48274         * modules/sysexits (Files, Makefile.am): Update.
48275
48276         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48277         * modules/sys_socket (Files, Makefile.am): Update.
48278
48279         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48280         * modules/sys_stat (Files, Makefile.am): Update.
48281
48282 2007-04-27  Eric Blake  <ebb9@byu.net>
48283
48284         * lib/freading.h: Improve comments.
48285         * lib/fwriting.h: Likewise.
48286         * lib/fflush.c: Likewise.
48287
48288         Fix closein for mingw.
48289         * modules/closein-tests: Add tests for closein.
48290         * tests/test-closein.c: New file.
48291         * tests/test-closein.sh: Likewise.
48292         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48293         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48294
48295 2007-04-27  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48298         version is < 6.
48299         * lib/math_.h [__DECC]: Likewise.
48300         * lib/stdio_.h [__DECC]: Likewise.
48301         * lib/stdlib_.h [__DECC]: Likewise.
48302         * lib/string_.h [__DECC]: Likewise.
48303         * lib/time_.h [__DECC]: Likewise.
48304         * lib/wchar_.h [__DECC]: Likewise.
48305         * lib/wctype_.h [__DECC]: Likewise.
48306
48307 2007-04-27  Bruno Haible  <bruno@clisp.org>
48308
48309         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48310
48311 2007-04-27  Bruno Haible  <bruno@clisp.org>
48312
48313         * lib/fflush.c: Add comments.
48314         * modules/fpurge-tests (Depends-on): Add fflush.
48315         * modules/freadable-tests (Depends-on): Likewise.
48316         * modules/fwritable-tests (Depends-on): Likewise.
48317
48318 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48319
48320         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48321         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48322         Report by Bruno Haible <bruno@clisp.org>.
48323
48324 2007-04-26  Eric Blake  <ebb9@byu.net>
48325
48326         Fix fflush on mingw.
48327         * modules/fflush (Depends-on): Add freading.
48328         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48329         but unread data.
48330
48331 2007-04-26  Eric Blake  <ebb9@byu.net>
48332         and Bruno Haible  <bruno@clisp.org>
48333
48334         Implement freading and fwriting.
48335         * lib/freading.c: New file.
48336         * lib/freading.h: Likewise.
48337         * m4/freading.m4: Likewise.
48338         * modules/freading: Likewise.
48339         * modules/freading-tests: Likewise.
48340         * tests/test-freading.c: Likewise.
48341         * lib/fwriting.c: New file.
48342         * lib/fwriting.h: Likewise.
48343         * m4/fwriting.m4: Likewise.
48344         * modules/fwriting: Likewise.
48345         * modules/fwriting-tests: Likewise.
48346         * tests/test-fwriting.c: Likewise.
48347         * MODULES.html.sh (File stream based Input/Output): Mention them.
48348
48349 2007-04-26  Bruno Haible  <bruno@clisp.org>
48350
48351         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48352         'long' when we assume it.
48353         Suggested by Eric Blake.
48354
48355 2007-04-26  Bruno Haible  <bruno@clisp.org>
48356
48357         Ensure fseeko, ftello are declared on glibc systems.
48358         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48359         * modules/fseeko (configure.ac-early): Likewise.
48360         * modules/ftello (configure.ac-early): Likewise.
48361         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48362         AC_FUNC_FSEEKO for this.
48363         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48364         (gl_CHECK_FSEEKO): Remove macro.
48365
48366 2007-04-26  Bruno Haible  <bruno@clisp.org>
48367
48368         * tests/test-fflush.c (main): Also check the ftell result after
48369         fflush and fseek/fseeko.
48370         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48371         file descriptor position cache in the stream.
48372         * lib/fseeko.c (rpl_fseeko): Likewise.
48373
48374 2007-04-26  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/fflush-tests (Depends-on): Add fseeko.
48377
48378 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48379             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48380
48381         * lib/argz_.h: ensure error_t definition is obtained in same
48382         mechanism system argz.h would have.
48383         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48384         argz facilities are known bad.  Err on the side of caution if
48385         cross-compiling.
48386
48387 2007-04-25  Eric Blake  <ebb9@byu.net>
48388
48389         * lib/fpurge.c (includes): Use stdlib.h for free.
48390         * tests/test-fflush.c (main): Also test fflush-fseeko.
48391
48392 2007-04-25  Bruno Haible  <bruno@clisp.org>
48393
48394         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48395         * lib/fseeko.c: New file.
48396         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48397         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48398         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48399         gl_FUNC_FSEEKO.
48400         (gl_FUNC_FSEEKO): Invoke it.
48401         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48402         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48403         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48404
48405 2007-04-25  Bruno Haible  <bruno@clisp.org>
48406
48407         * modules/fflush (Depends-on): Add ftello.
48408
48409 2007-04-25  Bruno Haible  <bruno@clisp.org>
48410
48411         * modules/ftello-tests: New file.
48412         * tests/test-ftello.c: New file.
48413
48414         * modules/ftello: New file.
48415         * m4/ftello.m4: New file.
48416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48417         HAVE_FTELLO.
48418         * lib/stdio_.h (ftello): New declaration.
48419         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48420         HAVE_FTELLO.
48421
48422 2007-04-25  Bruno Haible  <bruno@clisp.org>
48423
48424         * modules/fseeko-tests: New file.
48425         * tests/test-fseeko.c: New file.
48426
48427         * modules/fseeko: New file.
48428         * m4/fseeko.m4: New file.
48429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48430         HAVE_FSEEKO.
48431         * lib/stdio_.h (fseeko): New declaration.
48432         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48433         HAVE_FSEEKO.
48434
48435 2007-04-25  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48438
48439 2007-04-25  Bruno Haible  <bruno@clisp.org>
48440
48441         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48442         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48443         * tests/test-unistd.c: Likewise.
48444         * tests/test-fcntl.c: Likewise.
48445
48446 2007-04-23  Eric Blake  <ebb9@byu.net>
48447
48448         * lib/fflush.c: Fix missing include.
48449         Reported by Bruno Haible.
48450
48451 2007-04-23  Bruno Haible  <bruno@clisp.org>
48452
48453         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48454         Reported by Eric Blake.
48455
48456 2007-04-23  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48459
48460 2007-04-23  Bruno Haible  <bruno@clisp.org>
48461
48462         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48463
48464 2007-04-23  Bruno Haible  <bruno@clisp.org>
48465
48466         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48467         Needed on HP-UX 11.
48468
48469 2007-04-16  Eric Blake  <ebb9@byu.net>
48470
48471         Make fflush rely on fpurge.
48472         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48473         open coding all variants.
48474         * modules/fflush (Depends-on): Add fpurge and unistd.
48475         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48476         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48477
48478         Fix --with-tests compilation on cygwin.
48479         * modules/argmatch-tests (Makefile.am): List gnulib library first
48480         in LDADD.
48481         * modules/argp-tests (Makefile.am): Likewise.
48482         * modules/array-list-tests (Makefile.am): Likewise.
48483         * modules/array-oset-tests (Makefile.am): Likewise.
48484         * modules/avltree-list-tests (Makefile.am): Likewise.
48485         * modules/avltree-oset-tests (Makefile.am): Likewise.
48486         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48487         * modules/carray-list-tests (Makefile.am): Likewise.
48488         * modules/dirname-tests (Makefile.am): Likewise.
48489         * modules/frexp-tests (Makefile.am): Likewise.
48490         * modules/isnanl-tests (Makefile.am): Likewise.
48491         * modules/linked-list-tests (Makefile.am): Likewise.
48492         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48493         * modules/lock-tests (Makefile.am): Likewise.
48494         * modules/rbtree-list-tests (Makefile.am): Likewise.
48495         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48496         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48497         * modules/tls-tests (Makefile.am): Likewise.
48498         * modules/tsearch-tests (Makefile.am): Likewise.
48499         * modules/xvasprintf-tests (Makefile.am): Likewise.
48500
48501         Fix fpurge for cygwin.
48502         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48503         value.
48504         * modules/fpurge-tests (Depends-on): Clean up trash.
48505
48506 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48507
48508         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48509
48510         * m4/autobuild.m4: Re-indent.
48511
48512 2007-04-13  Bruno Haible  <bruno@clisp.org>
48513
48514         * modules/fpurge-tests: New file.
48515         * tests/test-fpurge.c: New file.
48516
48517         * modules/fpurge: New file.
48518         * lib/fpurge.h: New file.
48519         * lib/fpurge.c: New file.
48520         * m4/fpurge.m4: New file.
48521
48522 2007-04-13  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/fbufmode-tests: New file.
48525         * tests/test-fbufmode.c: New file.
48526
48527         * modules/fbufmode: New file.
48528         * lib/fbufmode.h: New file.
48529         * lib/fbufmode.c: New file.
48530         * m4/fbufmode.m4: New file.
48531
48532 2007-04-13  Bruno Haible  <bruno@clisp.org>
48533
48534         * modules/fwritable-tests: New file.
48535         * tests/test-fwritable.c: New file.
48536
48537         * modules/fwritable: New file.
48538         * lib/fwritable.h: New file.
48539         * lib/fwritable.c: New file.
48540         * m4/fwritable.m4: New file.
48541
48542 2007-04-13  Bruno Haible  <bruno@clisp.org>
48543
48544         * modules/freadable-tests: New file.
48545         * tests/test-freadable.c: New file.
48546
48547         * modules/freadable: New file.
48548         * lib/freadable.h: New file.
48549         * lib/freadable.c: New file.
48550         * m4/freadable.m4: New file.
48551
48552 2007-04-13  Bruno Haible  <bruno@clisp.org>
48553
48554         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48555         MOSTLYCLEANFILES.
48556
48557 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48558
48559         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48560         gzip bootstrap.conf to avoid dragging in i18n machinery.
48561         (gnulib_tool_option): Use it.
48562
48563 2007-04-13  Bruno Haible  <bruno@clisp.org>
48564
48565         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48566         %F directives.
48567         * tests/test-vasprintf-posix.c (test_function): Likewise.
48568         * tests/test-snprintf-posix.h (test_function): Likewise.
48569         * tests/test-sprintf-posix.h (test_function): Likewise.
48570         * tests/test-fprintf-posix.h (test_function): Likewise.
48571         * tests/test-printf-posix.h (test_function): Likewise.
48572         * tests/test-fprintf-posix.out: Likewise.
48573
48574 2007-04-13  Bruno Haible  <bruno@clisp.org>
48575
48576         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48577         * modules/tls-tests (configure.ac): Likewise.
48578         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48579
48580 2007-04-13  Bruno Haible  <bruno@clisp.org>
48581
48582         * lib/tls.c (glthread_tls_get): Fix return type.
48583         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48584
48585 2007-04-12  Eric Blake  <ebb9@byu.net>
48586
48587         * modules/gettime (Depends-on): Remove gettime.
48588         Reported by Dmitry V. Levin.
48589
48590 2007-04-12  Bruno Haible  <bruno@clisp.org>
48591
48592         * modules/fflush (Include): Mention <stdio.h>.
48593         * modules/strtoimax (Include): Mention <inttypes.h>.
48594         * modules/strtoumax (Include): Likewise.
48595
48596 2007-04-12  Eric Blake  <ebb9@byu.net>
48597
48598         * .cvsignore: New file.
48599         * .gitignore: Likewise.
48600
48601 2007-04-12  Bruno Haible  <bruno@clisp.org>
48602
48603         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48604         not before, since $(LDADD) often contains libgnu.a.
48605         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48606         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48607         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48608         Needed on Cygwin.
48609
48610 2007-04-12  Eric Blake  <ebb9@byu.net>
48611
48612         Work around glibc's failure to flush stdin on fclose.
48613         * lib/closein.c (close_stdin): Flush stdin before closing.
48614
48615         Work around glibc's failure to reset seekable stdin on exit.
48616         * modules/closein: New module.
48617         * lib/closein.c: New file.
48618         * lib/closein.h: Likewise.
48619         * m4/closein.m4: Likewise.
48620         * MODULES.html.sh (File stream based Input/Output): Document it.
48621
48622 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48623
48624         * gnulib-tool: Rename generated 'autobuild' script to
48625         'do-autobuild' in --create-megatestdir output.
48626
48627         * doc/gnulib.texi (Build robot for gnulib): Fix.
48628
48629 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48630
48631         * modules/sysexits (Depends-on): Add absolute-header.
48632
48633 2007-04-12  Eric Blake  <ebb9@byu.net>
48634
48635         No need to preserve errno on success.
48636         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48637         Reported by Bruno Haible.
48638
48639 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48640
48641         * MODULES.html.sh (Support for maintaining and releasing
48642         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48643
48644 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48645
48646         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48647
48648 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48649
48650         * modules/autobuild: New module.
48651
48652         * m4/autobuild.m4: New file.
48653
48654 2007-04-11  Bruno Haible  <bruno@clisp.org>
48655
48656         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48657         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48660         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48661         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48662         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48663         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48664         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48665         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48666         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48673         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48674         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48676         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48677         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48679         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48680         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48682         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48683         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48684         Reported by Eric Blake.
48685
48686 2007-04-11  Bruno Haible  <bruno@clisp.org>
48687
48688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48689
48690 2007-04-10  Bruno Haible  <bruno@clisp.org>
48691
48692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48693         for NaN and Infinity. Needed on FreeBSD 6.1.
48694         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48695         regarding results for "%010a" of Infinity and NaN.
48696         * tests/test-vasprintf-posix.c (test_function): Likewise.
48697         * tests/test-snprintf-posix.h (test_function): Likewise.
48698         * tests/test-sprintf-posix.h (test_function): Likewise.
48699         * tests/test-fprintf-posix.h (test_function): Likewise.
48700         * tests/test-printf-posix.h (test_function): Likewise.
48701         * tests/test-fprintf-posix.out: Likewise.
48702
48703 2007-04-10  Bruno Haible  <bruno@clisp.org>
48704
48705         * modules/locale-tests: New file.
48706         * tests/test-locale.c: New file.
48707
48708         * modules/locale: New file.
48709         * lib/locale_.h: New file.
48710         * m4/locale_h.m4: New file.
48711
48712 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48713             Bruno Haible  <bruno@clisp.org>
48714
48715         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48716         be determined, test for availability of the copysignf, copysign,
48717         copysignl functions.
48718         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48719         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48720         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48721
48722 2007-04-09  Eric Blake  <ebb9@byu.net>
48723
48724         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48725         * modules/stdio (Makefile.am): Support fflush.
48726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48727         * modules/fflush: New file.
48728         * lib/fflush.c: Likewise.
48729         * m4/fflush.m4: Likewise.
48730         * modules/fflush-tests: New test.
48731         * tests/test-fflush.c: Likewise.
48732         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48733
48734 2007-04-06  Bruno Haible  <bruno@clisp.org>
48735
48736         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48737         (VASNPRINTF): Use signbit for faster determination whether to print a
48738         minus sign.
48739         * modules/vasnprintf (Files): Remove lib/float+.h.
48740         * modules/fprintf-posix (Depends-on): Add signbit.
48741         * modules/snprintf-posix (Depends-on): Likewise.
48742         * modules/sprintf-posix (Depends-on): Likewise.
48743         * modules/vasnprintf-posix (Depends-on): Likewise.
48744         * modules/vasprintf-posix (Depends-on): Likewise.
48745         * modules/vfprintf-posix (Depends-on): Likewise.
48746         * modules/vsnprintf-posix (Depends-on): Likewise.
48747         * modules/vsprintf-posix (Depends-on): Likewise.
48748
48749 2007-04-06  Bruno Haible  <bruno@clisp.org>
48750
48751         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48752         * tests/test-frexpl.c (main): Likewise.
48753         * tests/test-ldexpl.c (main): Likewise.
48754         * modules/frexp-tests (Depends-on): Add signbit.
48755         * modules/frexpl-tests (Depdends-on): Likewise.
48756         * modules/ldexpl-tests (Depdends-on): Likewise.
48757
48758 2007-04-06  Bruno Haible  <bruno@clisp.org>
48759
48760         * modules/signbit-tests: New file.
48761         * tests/test-signbit.c: New file.
48762
48763         * modules/signbit: New file.
48764         * lib/signbitf.c: New file.
48765         * lib/signbitd.c: New file.
48766         * lib/signbitl.c: New file.
48767         * m4/signbit.m4: New file.
48768         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48769         (signbit): New macro.
48770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48771         REPLACE_SIGNBIT.
48772         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48773         REPLACE_FREXPL into math.h.
48774
48775 2007-04-06  Bruno Haible  <bruno@clisp.org>
48776
48777         * modules/isnanf-nolibm-tests: New file.
48778         * tests/test-isnanf.c: New file.
48779
48780         * modules/isnanf-nolibm: New file.
48781         * lib/isnanf.h: New file.
48782         * lib/isnanf.c: New file.
48783         * lib/isnan.c: Consider the USE_FLOAT macro.
48784         * m4/isnanf.m4: New file.
48785
48786 2007-04-06  Bruno Haible  <bruno@clisp.org>
48787
48788         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48789         (Link): New section.
48790
48791         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48792
48793 2007-04-06  Bruno Haible  <bruno@clisp.org>
48794
48795         Assume the 'long double' type.
48796         * m4/longdouble.m4: Remove file.
48797         * config/srclist.txt: Don't mention longdouble.m4.
48798         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48799         * lib/float+.h: Likewise.
48800         * lib/frexp.c: Likewise.
48801         * lib/printf-args.h: Likewise.
48802         * lib/printf-args.c: Likewise.
48803         * lib/printf-frexp.c: Likewise.
48804         * lib/printf-parse.c: Likewise.
48805         * lib/vasnprintf.c: Likewise.
48806         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48807         * m4/intl.m4: Likewise.
48808         * m4/isnanl.m4: Likewise.
48809         * m4/printf.m4: Likewise.
48810         * m4/printf-frexpl.m4: Likewise.
48811         * m4/vasnprintf.m4: Likewise.
48812         * modules/allocsa (Files): Remove m4/longdouble.m4.
48813         * modules/gettext (Files): Likewise.
48814         * modules/relocatable-prog-wrapper (Files): Likewise.
48815         * modules/vasnprintf (Files): Likewise.
48816         * modules/isnanl (Files): Likewise.
48817         (Include): Simplify.
48818         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48819         (Include): Simplify.
48820         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48821         (Include): Simplify.
48822         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48823         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48824         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48825         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48826         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48827         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48828         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48829         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48830         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48831         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48832         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48833         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48834         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48835         * tests/test-isnanl.c: Likewise.
48836         * tests/test-snprintf-posix.h: Likewise.
48837         * tests/test-sprintf-posix.h: Likewise.
48838         * tests/test-vasnprintf-posix.c: Likewise.
48839         * tests/test-vasnprintf-posix2.c: Likewise.
48840         * tests/test-vasprintf-posix.c: Likewise.
48841
48842 2007-04-06  Bruno Haible  <bruno@clisp.org>
48843
48844         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48845         * lib/math_.h [__DECC]: Include the overridden include file through
48846         #include_next, outside the double-inclusion guard.
48847         * lib/stdio_.h [__DECC]: Likewise.
48848         * lib/stdlib_.h [__DECC]: Likewise.
48849         * lib/string_.h [__DECC]: Likewise.
48850         * lib/time_.h [__DECC]: Likewise.
48851         * lib/wchar_.h [__DECC]: Likewise.
48852         * lib/wctype_.h [__DECC]: Likewise.
48853         * lib/inttypes_.h [__DECC]: Likewise.
48854         Reported by Albert Chin <china@thewrittenword.com> in
48855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48856
48857 2007-04-04  Eric Blake  <ebb9@byu.net>
48858
48859         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48860         1.5.x.
48861
48862 2007-04-04  Bruno Haible  <bruno@clisp.org>
48863
48864         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48865         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48866
48867 2007-04-04  Bruno Haible  <bruno@clisp.org>
48868
48869         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48870         results for "%010a" of Infinity and NaN.
48871         * tests/test-vasprintf-posix.c (test_function): Likewise.
48872         * tests/test-snprintf-posix.h (test_function): Likewise.
48873         * tests/test-sprintf-posix.h (test_function): Likewise.
48874         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48875         * tests/test-printf-posix.h (test_function): Likewise.
48876         * tests/test-fprintf-posix.out: Update.
48877         Needed for FreeBSD 6.1.
48878
48879 2007-04-04  Bruno Haible  <bruno@clisp.org>
48880
48881         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48882         directly used by the gnulib modules nor by gnulib-tool.
48883
48884 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48885
48886         * DEPENDENCIES: Give overall description of version dependency
48887         desirability.  Use more-typical names for apps.
48888         Add shell, coreutils, diffutils, grep, tar, gzip.
48889
48890 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48891
48892         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48893
48894 2007-04-04  Karl Berry  <karl@gnu.org>
48895
48896         * MODULES.html.sh (func_module): missing '.
48897
48898 2007-04-03  Bruno Haible  <bruno@clisp.org>
48899
48900         * modules/argmatch-tests (Makefile.am): New variable
48901         test_argmatch_LDADD.
48902         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48903         * modules/array-list-tests (Makefile.am): New variable
48904         test_array_list_LDADD.
48905         * modules/array-oset-tests (Makefile.am): New variable
48906         test_array_oset_LDADD.
48907         * modules/avltree-list-tests (Makefile.am): New variable
48908         test_avltree_list_LDADD.
48909         * modules/avltree-oset-tests (Makefile.am): New variable
48910         test_avltree_oset_LDADD.
48911         * modules/avltreehash-list-tests (Makefile.am): New variable
48912         test_avltreehash_list_LDADD.
48913         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48914         test_canonicalize_lgpl_LDADD.
48915         * modules/carray-list-tests (Makefile.am): New variable
48916         test_carray_list_LDADD.
48917         * modules/dirname-tests (Makefile.am): New variable
48918         test_dirname_LDADD.
48919         * modules/linked-list-tests (Makefile.am): New variable
48920         test_linked_list_LDADD.
48921         * modules/linkedhash-list-tests (Makefile.am): New variable
48922         test_linkedhash_list_LDADD.
48923         * modules/rbtree-list-tests (Makefile.am): New variable
48924         test_rbtree_list_LDADD.
48925         * modules/rbtree-oset-tests (Makefile.am): New variable
48926         test_rbtree_oset_LDADD.
48927         * modules/rbtreehash-list-tests (Makefile.am): New variable
48928         test_rbtreehash_list_LDADD.
48929         * modules/xvasprintf-tests (Makefile.am): New variable
48930         test_xvasprintf_LDADD.
48931         Reported by Eric Blake.
48932
48933 2007-04-03  Eric Blake  <ebb9@byu.net>
48934
48935         * DEPENDENCIES: Weaken m4 requirements.
48936
48937 2007-04-03  Bruno Haible  <bruno@clisp.org>
48938
48939         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48940         * modules/isnanl-tests (configure.ac): Likewise.
48941
48942 2007-04-03  Ben Pfaff  <blp@gnu.org>
48943
48944         * modules/iconv_open: Add $(srcdir)/ to source directory
48945         references in Makefile fragments that call gperf, to fix VPATH
48946         builds.
48947
48948 2007-04-03  Bruno Haible  <bruno@clisp.org>
48949
48950         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48951         * lib/ldexpl.c: Undo last change.
48952
48953 2007-04-03  Bruno Haible  <bruno@clisp.org>
48954
48955         * modules/printf-frexpl (Depends-on): Undo last change.
48956         (Files): Add m4/ldexpl.m4.
48957
48958 2007-04-03  Bruno Haible  <bruno@clisp.org>
48959
48960         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48961         * modules/isnanl (Link): New section.
48962
48963         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48964         * modules/frexp (Link): New section.
48965
48966         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48967         * modules/frexpl (Link): New section.
48968
48969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48970         * modules/ldexpl (Link): New section.
48971
48972 2007-04-03  Bruno Haible  <bruno@clisp.org>
48973
48974         * modules/TEMPLATE-EXTENDED: New file.
48975         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48976
48977 2007-04-03  Bruno Haible  <bruno@clisp.org>
48978
48979         * DEPENDENCIES: New file.
48980         Suggested by Simon Josefsson.
48981
48982 2007-04-03  Bruno Haible  <bruno@clisp.org>
48983
48984         * doc/gnulib.texi: Escape @.
48985
48986 2007-04-03  James Youngman  <jay@gnu.org>
48987         and Paul Eggert  <eggert@cs.ucla.edu>
48988
48989         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48990         birthtime on all systems that have birthtime, not just those which
48991         use st_birthtimensec rather than st_birthtim.  Putting zero in
48992         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48993         that the birth time is not available for files on an NFS mount.
48994
48995 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48996
48997         * modules/memxor: Move back from crypto/, suggested by Bruno.
48998         * modules/crypto/hmac-sha1: Fix memxor dependency.
48999
49000         * modules/crypto/gc: Moved from ../.
49001
49002 2007-04-02  Eric Blake  <ebb9@byu.net>
49003
49004         * lib/ldexpl.c (includes): Avoid libm.
49005
49006         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49007
49008 2007-04-02  Bruno Haible  <bruno@clisp.org>
49009
49010         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49011         on IRIX.
49012
49013 2007-04-02  Bruno Haible  <bruno@clisp.org>
49014
49015         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49016         x86 or x86_64 platforms running MacOS X.
49017         Reported by Ryan Schmidt <@ryandesign.com>.
49018
49019 2007-04-02  Bruno Haible  <bruno@clisp.org>
49020
49021         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49022         i386.
49023
49024 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49025
49026         * modules/crypto/arcfour: Moved from ../.
49027         * modules/crypto/arcfour-tests: Moved from ../.
49028         * modules/crypto/arctwo: Moved from ../.
49029         * modules/crypto/arctwo-tests: Moved from ../.
49030         * modules/crypto/des: Moved from ../.
49031         * modules/crypto/des-tests: Moved from ../.
49032         * modules/crypto/gc-arcfour: Moved from ../.
49033         * modules/crypto/gc-arcfour-tests: Moved from ../.
49034         * modules/crypto/gc-arctwo: Moved from ../.
49035         * modules/crypto/gc-arctwo-tests: Moved from ../.
49036         * modules/crypto/gc-des: Moved from ../.
49037         * modules/crypto/gc-des-tests: Moved from ../.
49038         * modules/crypto/gc-hmac-md5: Moved from ../.
49039         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49040         * modules/crypto/gc-hmac-sha1: Moved from ../.
49041         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49042         * modules/crypto/gc-md2: Moved from ../.
49043         * modules/crypto/gc-md2-tests: Moved from ../.
49044         * modules/crypto/gc-md4: Moved from ../.
49045         * modules/crypto/gc-md4-tests: Moved from ../.
49046         * modules/crypto/gc-md5: Moved from ../.
49047         * modules/crypto/gc-md5-tests: Moved from ../.
49048         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49049         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49050         * modules/crypto/gc-random: Moved from ../.
49051         * modules/crypto/gc-rijndael: Moved from ../.
49052         * modules/crypto/gc-rijndael-tests: Moved from ../.
49053         * modules/crypto/gc-sha1: Moved from ../.
49054         * modules/crypto/gc-sha1-tests: Moved from ../.
49055         * modules/crypto/gc-tests: Moved from ../.
49056         * modules/crypto/hmac-md5: Moved from ../.
49057         * modules/crypto/hmac-md5-tests: Moved from ../.
49058         * modules/crypto/hmac-sha1: Moved from ../.
49059         * modules/crypto/hmac-sha1-tests: Moved from ../.
49060         * modules/crypto/md2: Moved from ../.
49061         * modules/crypto/md2-tests: Moved from ../.
49062         * modules/crypto/md4: Moved from ../.
49063         * modules/crypto/md4-tests: Moved from ../.
49064         * modules/crypto/md5: Moved from ../.
49065         * modules/crypto/md5-tests: Moved from ../.
49066         * modules/crypto/memxor: Moved from ../.
49067         * modules/crypto/rijndael: Moved from ../.
49068         * modules/crypto/rijndael-tests: Moved from ../.
49069         * modules/crypto/sha1: Moved from ../.
49070
49071 2007-03-30  James Youngman  <jay@gnu.org>
49072
49073         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49074         rename() to change the ctime of a file (because ctime is unaffected
49075         by rename on jfs2 on AIX 5.1).
49076         (main): Start by doing cleanup, in case a previous run failed leaving
49077         test files behind.
49078
49079 2007-03-31  Bruno Haible  <bruno@clisp.org>
49080
49081         Support old proprietary implementations of iconv.
49082         * modules/iconv_open: New file.
49083         * lib/iconv_.h: New file.
49084         * m4/iconv_h.m4: New file.
49085         * lib/iconv_open.c: New file.
49086         * lib/iconv_open-aix.gperf: New file.
49087         * lib/iconv_open-hpux.gperf: New file.
49088         * lib/iconv_open-irix.gperf: New file.
49089         * lib/iconv_open-osf.gperf: New file.
49090         * m4/iconv_open.m4: New file.
49091         * modules/linebreak (Depends-on): Add iconv_open.
49092         * modules/striconv (Depends-on): Likewise.
49093         * modules/striconveh (Depends-on): Likewise.
49094         * modules/unicodeio (Depends-on): Likewise.
49095         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49096         (iconv_t)(-1).
49097         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49098         conversion if cd is (iconv_t)(-1).
49099         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49100         is not possible.
49101
49102 2007-03-31  Bruno Haible  <bruno@clisp.org>
49103
49104         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49105         work on Solaris either. Protect also second use of "autodetect_jp".
49106
49107 2007-03-31  Bruno Haible  <bruno@clisp.org>
49108
49109         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49110         the function is not present.
49111
49112 2007-03-31  Bruno Haible  <bruno@clisp.org>
49113
49114         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49115         the function is not present.
49116
49117 2007-03-31  Bruno Haible  <bruno@clisp.org>
49118
49119         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49120         a bug in HP-UX iconv_open().
49121
49122 2007-03-31  Bruno Haible  <bruno@clisp.org>
49123
49124         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49125         (Mathematics <math.h>): New section, add fpieee.
49126         (Input/output <stdio.h>): Add fseterr.
49127         (Mathematics <math.h>): New section, add printf-frexp.
49128         (Container data structures): Add sublist.
49129         (Core language properties): Add fpucw, inline.
49130         (Functions for greatest-width integer types <inttypes.h>): Add
49131         imaxabs, imaxdiv, inttypes.
49132         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49133         isnanl-nolibm, ldexp.
49134         (Mathematics <math.h>): New section, add printf-frexpl.
49135         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49136         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49137         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49138         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49139         (Unicode string functions): Add unistr/u*-mbtoucr.
49140         (Java): Add javacomp-script, javaexec-script.
49141         (C#): Add csharpcomp-script, csharpexec-script.
49142         (Support for building libraries and executables): Add havelib,
49143         relocatable-*.
49144         (Support for maintaining and releasing projects): Renamed from
49145         'Support for maintaining and release projects'. Add announce-gen.
49146
49147 2007-03-31  Bruno Haible  <bruno@clisp.org>
49148
49149         * README: Talk primarily about git.
49150         (git and CVS): Renamed from CVS.
49151         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49152         gnulib is available through git.
49153         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49154
49155 2007-03-30  Bruno Haible  <bruno@clisp.org>
49156
49157         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49158         * lib/poll_.h: Likewise.
49159         * lib/stat_.h: Likewise.
49160         * lib/sys_time_.h: Likewise.
49161         * lib/sysexit_.h: Likewise.
49162         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49163         * lib/stdbool_.h: Likewise.
49164         * lib/byteswap_.h: Add double-inclusion guard.
49165
49166 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49167
49168         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49169
49170 2007-03-30  Karl Berry  <karl@gnu.org>
49171
49172         * config/srclist-update: double space after USA in the license
49173         substitution, since that's how it's usually (?) written.
49174
49175 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49178         reported by Bruno Haible.
49179
49180 2007-03-29  Bruno Haible  <bruno@clisp.org>
49181
49182         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49183         a bug in AIX iconv().
49184
49185 2007-03-29  Bruno Haible  <bruno@clisp.org>
49186
49187         * modules/ldexpl-tests: New file.
49188         * tests/test-ldexpl.c: New file.
49189
49190 2007-03-29  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/ldexpl.c: Include fpucw.h.
49193         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49194         multiplication.
49195         * modules/ldexpl (Depends-on): Add fpucw.
49196
49197 2007-03-29  Bruno Haible  <bruno@clisp.org>
49198
49199         * modules/ldexpl: New file.
49200         * m4/ldexpl.m4: New file.
49201         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49202         set.
49203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49204         REPLACE_LDEXPL.
49205         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49206         REPLACE_LDEXPL.
49207         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49208         gl_FUNC_LDEXPL_WORKS.
49209         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49210         * modules/mathl (Files): Remove lib/ldexpl.c.
49211         (Depends-on): Add ldexpl.
49212
49213 2007-03-29  Bruno Haible  <bruno@clisp.org>
49214
49215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49216
49217 2007-03-29  Bruno Haible  <bruno@clisp.org>
49218
49219         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49220         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49221         and possibly also HP-UX.
49222         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49223         work on AIX, IRIX, HP-UX, OSF/1.
49224         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49225         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49226         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49227         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49228         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49229         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49230
49231 2007-03-29  Bruno Haible  <bruno@clisp.org>
49232
49233         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49234
49235 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49236
49237         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49238         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49239
49240 2007-03-29  Eric Blake  <ebb9@byu.net>
49241
49242         * lib/acl-internal.h: Remove redundant include.
49243         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49244         Cygwin when a file is locked.
49245
49246 2007-03-29  Bruno Haible  <bruno@clisp.org>
49247
49248         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49249         file.
49250         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49251
49252 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49253
49254         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49255         try to remove a parent directory if the child couldn't be removed
49256         (except for the first rmdir, which could fail because the child
49257         doesn't exist).  Problem reported by Jeff Blaine in
49258         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49259
49260 2007-03-28  Bruno Haible  <bruno@clisp.org>
49261
49262         * lib/striconveh.c (utf8conv_carefully): New function.
49263         (mem_cd_iconveh_internal): Invoke it.
49264
49265 2007-03-28  Bruno Haible  <bruno@clisp.org>
49266
49267         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49268         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49269         input.
49270         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49271         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49272         unistr/u8-uctomb.
49273
49274 2007-03-28  Bruno Haible  <bruno@clisp.org>
49275
49276         * modules/unistr/u8-mbtoucr: New file.
49277         * lib/unistr/u8-mbtoucr.c: New file.
49278         * modules/unistr/u16-mbtoucr: New file.
49279         * lib/unistr/u16-mbtoucr.c: New file.
49280         * modules/unistr/u16-mbtoucr: New file.
49281         * lib/unistr/u16-mbtoucr.c: New file.
49282         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49283
49284 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49285             Bruno Haible  <bruno@clisp.org>
49286
49287         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49288         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49289         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49290
49291         * m4/stdio_h.m4: Add stubs for vasprintf too.
49292
49293         * modules/stdio: Support vasprintf in sed command.
49294
49295         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49296         vasprintf.h.  Add stdio module indicator.
49297
49298         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49299         vasprintf.h.
49300
49301         * lib/vasprintf.h: File removed.
49302
49303         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49304         * lib/vasprintf.c: Ditto.
49305         * lib/xvasprintf.c: Ditto.
49306         * tests/test-vasprintf-posix.c: Ditto.
49307         * tests/test-vasprintf.c: Ditto.
49308
49309 2007-03-27  Bruno Haible  <bruno@clisp.org>
49310
49311         Make vasnprintf multithread-safe.
49312         * lib/vasnprintf.c (decimal_point_char): New function.
49313         (VASNPRINTF): Use it.
49314         Suggested by Simon Josefsson.
49315
49316 2007-03-27  Eric Blake  <ebb9@byu.net>
49317
49318         Support sub-second birthtime on cygwin.
49319         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49320         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49321         (get_stat_birthtime): Also work with st_birthtim.
49322
49323 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49324
49325         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49326         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49327         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49328         (get_stat_birthtime_ns): Simplify compile-time tests.
49329         (get_stat_birthtime): Change the API to look like
49330         get_stat_mtime etc., except return a negative tv_nsec on error.
49331         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49332         Don't check for "spare" fields.
49333         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49334         or for struct stat.st_birthtime, as these tests aren't used.
49335         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49336
49337 2007-03-27  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/stat-time.h: Include <sys/stat.h>.
49340
49341 2007-03-27  James Youngman  <jay@gnu.org>
49342
49343         * lib/stat-time.h (get_stat_birthtime): New function for
49344           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49345         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49346           and its variants.
49347         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49348         * modules/stat-time-test: New file.
49349         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49350
49351 2007-03-26  Bruno Haible  <bruno@clisp.org>
49352
49353         Better support of signalling NaNs.
49354         * lib/atanl.c: Include isnanl.h.
49355         (atanl): Perform test for NaN at the beginning of the function and
49356         through a call to isnanl.
49357         * lib/cosl.c: Include isnanl.h.
49358         (cosl): Perform test for NaN at the beginning of the function and
49359         through a call to isnanl.
49360         * lib/ldexpl.c: Include isnanl.h.
49361         (ldexpl): Perform test for NaN through a call to isnanl.
49362         * lib/logl.c: Include isnanl.h.
49363         (logl): Perform test for NaN at the beginning of the function and
49364         through a call to isnanl.
49365         * lib/sinl.c: Include isnanl.h.
49366         (sinl): Perform test for NaN at the beginning of the function and
49367         through a call to isnanl.
49368         * lib/sqrtl.c: Include isnanl.h.
49369         (sqrtl): Perform test for NaN at the beginning of the function and
49370         through a call to isnanl.
49371         * lib/tanl.c: Include isnanl.h.
49372         (tanl): Perform test for NaN at the beginning of the function and
49373         through a call to isnanl.
49374         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49375         * modules/mathl (Depends-on): Add isnanl.
49376
49377 2007-03-26  Eric Blake  <ebb9@byu.net>
49378
49379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49380         regression in logic sense of previous patch.
49381
49382 2007-03-26  Bruno Haible  <bruno@clisp.org>
49383
49384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49385         unportable shell command "if ! ...".
49386         Reported by Ralf Wildenhues.
49387
49388 2007-03-25  Bruno Haible  <bruno@clisp.org>
49389
49390         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49391         <sysexits.h> file, and only add EX_CONFIG.
49392         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49393         absolute file name and whether it is sufficient. Substitute also
49394         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49395         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49396         ABSOLUTE_SYSEXITS_H into sysexits.h.
49397
49398 2007-03-25  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49401         hints is NULL.
49402
49403 2007-03-25  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49406         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49407
49408 2007-03-25  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/vasnprintf.c: Include langinfo.h.
49411         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49412         multithread-safe.
49413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49414         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49415         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49422         Reported by Simon Josefsson.
49423
49424 2007-03-25  Bruno Haible  <bruno@clisp.org>
49425
49426         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49427         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49428         * modules/vasnprintf (Depends-on): Add stdint.
49429
49430 2007-03-25  Bruno Haible  <bruno@clisp.org>
49431
49432         * modules/fpieee: New file.
49433         * m4/fpieee.m4: New file.
49434         * modules/isnan-nolibm (Depends-on): Add fpieee.
49435         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49436         * modules/isnanl (Depends-on): Add fpieee.
49437
49438 2007-03-25  Bruno Haible  <bruno@clisp.org>
49439
49440         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49441
49442 2007-03-25  Bruno Haible  <bruno@clisp.org>
49443
49444         Avoid test failures on IRIX 6.5.
49445         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49446         (main): Use it.
49447         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49448         macros.
49449         (main): Use them.
49450
49451 2007-03-25  Bruno Haible  <bruno@clisp.org>
49452
49453         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49454         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49455         exists but doesn't work.
49456         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49457         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49459         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49460
49461 2007-03-25  Bruno Haible  <bruno@clisp.org>
49462
49463         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49464         returns inf. Needed on IRIX 6.5.
49465
49466 2007-03-25  Bruno Haible  <bruno@clisp.org>
49467
49468         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49469         (main): Use isnanl instead of x != x idiom.
49470         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49471
49472         * tests/test-frexp.c: Include isnan.h.
49473         (main): Use isnan instead of x != x idiom.
49474         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49475
49476 2007-03-25  Bruno Haible  <bruno@clisp.org>
49477
49478         * tests/test-frexp.c (NaN): New function/macro.
49479         (main): Use it instead of 0.0 / 0.0.
49480         * tests/test-isnan.c (NaN): New function/macro.
49481         (main): Use it instead of 0.0 / 0.0.
49482         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49483         (test_function): Use it instead of 0.0 / 0.0.
49484         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49485         (test_function): Use it instead of 0.0 / 0.0.
49486         * tests/test-snprintf-posix.h (NaN): New function/macro.
49487         (test_function): Use it instead of 0.0 / 0.0.
49488         * tests/test-sprintf-posix.h (NaN): New function/macro.
49489         (test_function): Use it instead of 0.0 / 0.0.
49490         * tests/test-fprintf-posix.h (NaN): New function/macro.
49491         (test_function): Use it instead of 0.0 / 0.0.
49492         * tests/test-printf-posix.h (NaN): New function/macro.
49493         (test_function): Use it instead of 0.0 / 0.0.
49494
49495         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49496
49497 2007-03-25  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49500
49501 2007-03-25  Bruno Haible  <bruno@clisp.org>
49502
49503         * lib/regexec.c (merge_state_with_log): Make static.
49504
49505 2007-03-25  Bruno Haible  <bruno@clisp.org>
49506
49507         * lib/trigl.c (kernel_rem_pio2): Make static.
49508
49509 2007-03-25  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/sincosl.c (sincosl_table): Make static.
49512
49513 2007-03-25  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49516         if the compiler does not support C99.
49517
49518 2007-03-25  Bruno Haible  <bruno@clisp.org>
49519
49520         * modules/time (Makefile.am): Ensure all rule action lines start with a
49521         tab.
49522
49523 2007-03-24  Bruno Haible  <bruno@clisp.org>
49524
49525         * modules/tsearch-tests: New file.
49526         * tests/test-tsearch.sh: New file.
49527         * tests/test-tsearch.c: New file, mostly copied from glibc.
49528
49529         * modules/search-tests: New file.
49530         * tests/test-search.c: New file.
49531
49532         * modules/search: New file.
49533         * lib/search_.h: New file, incorporating lib/tsearch.h.
49534         * m4/search_h.m4: New file.
49535         * lib/tsearch.h: Remove file.
49536         * lib/tsearch.c: Include search.h instead of tsearch.h.
49537         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49538         HAVE_TSEARCH.
49539         * modules/tsearch (Files): Remove lib/tsearch.h.
49540         (Depends-on): Add search.
49541         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49542         (Include): Change tsearch.h into search.h.
49543
49544 2007-03-24  Bruno Haible  <bruno@clisp.org>
49545
49546         * modules/fpucw: New file.
49547         * lib/fpucw.h: New file.
49548         * lib/frexp.c: Include fpucw.h.
49549         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49550         (FUNC): Use them.
49551         * lib/printf-frexp.c: Include fpucw.h.
49552         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49553         (FUNC): Use them.
49554         * lib/vasnprintf.c: Include fpucw.h.
49555         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49556         'long double' calculations.
49557         * tests/test-frexpl.c: Include fpucw.h.
49558         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49559         * tests/test-printf-frexpl.c: Include fpucw.h.
49560         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49561         * modules/frexpl (Depends-on): Add fpucw.
49562         * modules/printf-frexpl (Depends-on): Likewise.
49563         * modules/fprintf-posix (Depends-on): Likewise.
49564         * modules/snprintf-posix (Depends-on): Likewise.
49565         * modules/sprintf-posix (Depends-on): Likewise.
49566         * modules/vasnprintf-posix (Depends-on): Likewise.
49567         * modules/vasprintf-posix (Depends-on): Likewise.
49568         * modules/vfprintf-posix (Depends-on): Likewise.
49569         * modules/vsnprintf-posix (Depends-on): Likewise.
49570         * modules/vsprintf-posix (Depends-on): Likewise.
49571         * modules/frexpl-tests (Depends-on): Likewise.
49572         * modules/printf-frexpl-tests (Depends-on): Likewise.
49573
49574 2007-03-24  Bruno Haible  <bruno@clisp.org>
49575
49576         * lib/float+.h: New file.
49577         * lib/isnan.c: Include float+.h.
49578         (SIZE): New macro.
49579         (FUNC): Compare only SIZE bytes of the value.
49580         * lib/vasnprintf.c: Include float+.h.
49581         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49582         SIZEOF_LDBL or SIZEOF_DBL bytes.
49583         * modules/isnan-nolibm (Files): Add lib/float+.h.
49584         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49585         * modules/isnanl (Files): Add lib/float+.h.
49586         * modules/vasnprintf (Files): Add lib/float+.h.
49587
49588 2007-03-24  Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49591         include isnanl-nolibm.h.
49592
49593 2007-03-24  Bruno Haible  <bruno@clisp.org>
49594
49595         * tests/test-read-file.c (main): Don't produce spurious output for
49596         expected situations. Make the test fail if it encountered unexpected
49597         results.
49598
49599 2007-03-24  Bruno Haible  <bruno@clisp.org>
49600
49601         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49602         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49603
49604 2007-03-24  Bruno Haible  <bruno@clisp.org>
49605
49606         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49607
49608 2007-03-24  Bruno Haible  <bruno@clisp.org>
49609
49610         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49611         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49612
49613         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49614         * modules/utf8-ucs4: Turn into a symbolic link to module
49615         unistr/u8-mbtouc.
49616
49617         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49618         utf8-ucs4-unsafe.
49619         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49620         unistr/u8-mbtouc-unsafe.
49621
49622         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49623         * modules/utf16-ucs4: Turn into a symbolic link to module
49624         unistr/u16-mbtouc.
49625
49626         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49627         utf16-ucs4-unsafe.
49628         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49629         unistr/u16-mbtouc-unsafe.
49630
49631         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49632         * modules/ucs4-utf8: Turn into a symbolic link to module
49633         unistr/u8-ubtomb.
49634
49635         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49636         * modules/ucs4-utf16: Turn into a symbolic link to module
49637         unistr/u16-ubtomb.
49638
49639 2007-03-24  Bruno Haible  <bruno@clisp.org>
49640
49641         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49642         Enable the function only if HAVE_INLINE.
49643         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49644         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49645         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49646         Enable the function only if HAVE_INLINE.
49647         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49648         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49649         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49650         Enable the function only if HAVE_INLINE.
49651         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49652         Enable the function only if HAVE_INLINE.
49653         * modules/utf8-ucs4: Update.
49654         * modules/utf8-ucs4-unsafe: Update.
49655         * modules/utf16-ucs4: Update.
49656         * modules/utf16-ucs4-unsafe: Update.
49657         * modules/ucs4-utf8: Update.
49658         * modules/ucs4-utf16: Update.
49659
49660 2007-03-24  Bruno Haible  <bruno@clisp.org>
49661
49662         * lib/utf8-ucs4.h: Remove file.
49663         * lib/utf8-ucs4-unsafe.h: Remove file.
49664         * lib/utf16-ucs4.h: Remove file.
49665         * lib/utf16-ucs4-unsafe.h: Remove file.
49666         * lib/ucs4-utf8.h: Remove file.
49667         * lib/ucs4-utf16.h: Remove file.
49668         * lib/unistr.h: Include their previous contents.
49669         * m4/utf-ucs4.m4: Remove file.
49670         * m4/ucs4-utf.m4: Remove file.
49671         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49672         (Depends-on): Add unistr/base.
49673         (configure.ac): Remove gl_UTF_UCS4.
49674         (Makefile.am): Update.
49675         (Include): Change to unistr.h.
49676         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49677         (Depends-on): Add unistr/base.
49678         (configure.ac): Remove gl_UTF_UCS4.
49679         (Makefile.am): Update.
49680         (Include): Change to unistr.h.
49681         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49682         (Depends-on): Add unistr/base.
49683         (configure.ac): Remove gl_UTF_UCS4.
49684         (Makefile.am): Update.
49685         (Include): Change to unistr.h.
49686         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49687         (Depends-on): Add unistr/base.
49688         (configure.ac): Remove gl_UTF_UCS4.
49689         (Makefile.am): Update.
49690         (Include): Change to unistr.h.
49691         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49692         (Depends-on): Add unistr/base.
49693         (configure.ac): Remove gl_UCS4_UTF.
49694         (Makefile.am): Update.
49695         (Include): Change to unistr.h.
49696         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49697         (Depends-on): Add unistr/base.
49698         (configure.ac): Remove gl_UCS4_UTF.
49699         (Makefile.am): Update.
49700         (Include): Change to unistr.h.
49701         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49702         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49703         utf8-ucs4-unsafe.h.
49704         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49705         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49706         utf16-ucs4-unsafe.h.
49707         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49708         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49709         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49710         * lib/unistr/u8-strchr.c: Likewise.
49711         * lib/unistr/u8-strrchr.c: Likewise.
49712         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49713         * lib/unistr/u16-strchr.c: Likewise.
49714         * lib/unistr/u16-strrchr.c: Likewise.
49715         * lib/striconveh.c: Update.
49716         * lib/linebreak.c: Update.
49717
49718 2007-03-24  Bruno Haible  <bruno@clisp.org>
49719
49720         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49721         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49722
49723 2007-03-22  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49726
49727 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49728
49729         * MODULES.html.sh (File system functions): New module write-any-file.
49730         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49731         * m4/write-any-file.m4: New files.
49732
49733 2007-03-23  Eric Blake  <ebb9@byu.net>
49734
49735         * gnulib-tool: Rearrange space-tab sequences, since some editors
49736         like to eat them.
49737
49738 2007-03-23  Eric Blake  <ebb9@byu.net>
49739
49740         * lib/version-etc.c (version_etc_va): Update license wording to
49741         be more concise.  Recommended by Richard Stallman.
49742
49743 2007-03-22  Bruno Haible  <bruno@clisp.org>
49744
49745         * lib/poll.c (MSG_PEEK): New fallback definition.
49746
49747 2007-03-22  Bruno Haible  <bruno@clisp.org>
49748
49749         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49750         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49751         (main): Update.
49752         Fixes a compilation error on BeOS.
49753
49754 2007-03-22  Bruno Haible  <bruno@clisp.org>
49755
49756         * modules/frexpl-tests: New file.
49757         * tests/test-frexpl.c: New file.
49758
49759         * modules/frexpl: New file.
49760         * m4/frexpl.m4: New file.
49761         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49762         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49764         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49765         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49766         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49767
49768 2007-03-22  Bruno Haible  <bruno@clisp.org>
49769
49770         * lib/frexpl.c: Share code with lib/frexp.c.
49771         * modules/mathl (Files): Add lib/frexp.c.
49772         (Depends-on): Add isnanl-nolibm.
49773
49774 2007-03-22  Bruno Haible  <bruno@clisp.org>
49775
49776         * modules/printf-frexp (Files): Add m4/frexp.m4.
49777         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49778         only if the found frexp function actually works.
49779
49780 2007-03-22  Bruno Haible  <bruno@clisp.org>
49781
49782         * lib/frexp.c: Remove older implementation that uses divisions.
49783
49784 2007-03-21  Bruno Haible  <bruno@clisp.org>
49785
49786         * modules/frexp-tests: New file.
49787         * tests/test-frexp.c: New file.
49788
49789         * modules/frexp: New file.
49790         * lib/frexp.c: New file.
49791         * m4/frexp.m4: New file.
49792         * lib/math_.h (frexp): New declaration.
49793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49794         REPLACE_FREXP.
49795         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49796
49797 2007-03-21  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/isnanl-tests: New file.
49800         * tests/test-isnanl.c: New file.
49801
49802         * modules/isnanl: New file.
49803         * lib/isnanl.h: New file.
49804         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49805         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49806         gl_FUNC_ISNANL_WORKS.
49807         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49808         New macros.
49809
49810 2007-03-21  Bruno Haible  <bruno@clisp.org>
49811
49812         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49813         lib/isnanl.h.
49814         (Include): Update.
49815         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49816         * lib/vasnprintf.c: Update.
49817         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49818         tests/test-isnanl.h, remove tests/test-isnanl.c.
49819         (Makefile.am): Update.
49820         * tests/test-isnanl-nolibm.c: New file.
49821         * tests/test-isnanl.h: New file.
49822         * tests/test-isnanl.c: Remove file.
49823
49824 2007-03-21  Jim Meyering  <jim@meyering.net>
49825
49826         When trying to open ".", treat ESTALE like EACCES.
49827         * lib/savewd.c (savewd_save): Resort to forking not just upon
49828         failure with EACCES, but also when errno is ESTALE.
49829
49830 2007-03-20  Bruno Haible  <bruno@clisp.org>
49831
49832         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49833         Needed on AIX 5.1. Reported by Matthew Woehlke.
49834
49835 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49836
49837         Suggestions by Bruno Haible:
49838         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49839         our own.
49840         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49841         * modules/acl (Depends-on): Add gettext.
49842
49843 2007-03-19  Bruno Haible  <bruno@clisp.org>
49844
49845         * modules/iconvme: Remove file.
49846         * lib/iconvme.h: Remove file.
49847         * lib/iconvme.c: Remove file.
49848         * m4/iconvme.m4: Remove file.
49849
49850 2007-03-19  Bruno Haible  <bruno@clisp.org>
49851
49852         * doc/relocatable-maint.texi: Break long shell script line.
49853         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49854
49855 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49856
49857         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49858         handle file_has_acl.
49859         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49860         * lib/acl.c: Move header inclusions and related macro defns into
49861         lib/acl-internal.h.
49862         (S_ISLNK): Remove defn, since that's now done for us.
49863         (file_has_acl): Move to lib/file-has-acl.c.
49864         Call acl_trivial if available.  This is the crucial part of the fix.
49865         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49866         shared within the library.  Rewrite a bit, partly to make it compatible
49867         with the GNU coding style.
49868         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49869         Remove unnecessary double-quotes.
49870         Don't test for acl_to_text; the build will catch that.
49871         Replace acl_entries if it doesn't exist and it is needed.
49872         Check for -lsec and acl_trivial (as used on Solaris 10).
49873         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49874         lib/file-has-acl.c.
49875         (Depends-on): Add sys_stat, for S_ISLNK.
49876
49877 2007-03-19  Ben Pfaff  <blp@gnu.org>
49878
49879         * doc/gnulib.texi: Fix typos.
49880         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49881
49882 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49885         If size is zero here, buf must be zero.
49886
49887 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49888
49889         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49890         <bruno@clisp.org>.
49891
49892 2007-03-18  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49895         Suggested by Eric Blake.
49896
49897 2007-03-18  Ben Pfaff  <blp@gnu.org>
49898
49899         * doc/relocatable.texi: Recommend using as prefix a directory
49900         that does not exist and will never be created.  Based on
49901         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49902         and others.
49903
49904 2007-03-17  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/fchownat.c: Include lchown.h.
49907
49908 2007-03-17  Bruno Haible  <bruno@clisp.org>
49909
49910         Fix endless loop when the given allocated size was > INT_MAX.
49911         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49912         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49913         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49914         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49915         * lib/sprintf.c (sprintf): Likewise.
49916
49917 2007-03-17  Bruno Haible  <bruno@clisp.org>
49918
49919         * tests/test-argp-2.sh (func_compare): Output a context diff.
49920
49921 2007-03-17  Bruno Haible  <bruno@clisp.org>
49922
49923         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49924         locale's decimal-point character.
49925
49926 2007-03-17  Bruno Haible  <bruno@clisp.org>
49927
49928         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49929         before comparing it. Needed because on some platforms (e.g. x86) a
49930         'long double' occupies less bytes than sizeof (long double).
49931
49932 2007-03-17  Bruno Haible  <bruno@clisp.org>
49933
49934         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49935         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49936         * tests/test-getaddrinfo.c (simple): Likewise.
49937         * tests/test-read-file.c (main): Likewise.
49938
49939 2007-03-17  Bruno Haible  <bruno@clisp.org>
49940
49941         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49942
49943 2007-03-17  Bruno Haible  <bruno@clisp.org>
49944
49945         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49946         unused variable.
49947
49948 2007-03-17  Bruno Haible  <bruno@clisp.org>
49949
49950         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49951         * tests/test-c-strncasecmp.c: Likewise.
49952
49953 2007-03-17  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/stdlib (Depends-on): Add unistd.
49956         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49957         Needed for MacOS X 10.3.
49958
49959 2007-03-17  Bruno Haible  <bruno@clisp.org>
49960
49961         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49962
49963 2007-03-17  Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49966
49967 2007-03-17  Bruno Haible  <bruno@clisp.org>
49968
49969         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49970         to reflect files copied from gnulib (with or without modifications).
49971         Suggested by Jim Meyering.
49972
49973 2007-03-17  Eric Blake  <ebb9@byu.net>
49974
49975         * NEWS: Document stdlib change from 2007-02-18.
49976
49977 2007-03-17  Jim Meyering  <jim@meyering.net>
49978
49979         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49980         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49981         someone uses a name containing shell meta-characters.
49982         Reported by Alfred M. Szmidt.
49983
49984         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49985
49986 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49987
49988         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49989         and copy gettext configuration files only if configure.ac contains
49990         a use of AM_GNU_GETTEXT_VERSION.
49991
49992 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49993
49994         * build-aux/bootstrap (gnulib_name): New variable.
49995         (gnulib_tool_options): Use it.
49996
49997 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49998
49999         * tests/test-des.c: Use new namespace.
50000
50001 2007-03-15  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50004         Reported by James Youngman <jay@gnu.org>.
50005
50006 2007-03-15  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50009         declared prototype. Needed with cc on OSF/1 5.1.
50010
50011 2007-03-15  Bruno Haible  <bruno@clisp.org>
50012
50013         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50014         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50015         (struct gl_list_implementation): Add dispose_fn argument to the
50016         'create_empty', 'create' methods.
50017         (struct gl_list_impl_base): Add field 'dispose_fn'.
50018         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50019         argument.
50020         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50021         dispose_fn argument.
50022         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50023         dispose_fn on the dropped values.
50024         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50025         dispose_fn argument.
50026         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50027         dropped values.
50028         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50029         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50030         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50031         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50032         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50033         argument.
50034         (gl_tree_list_free): Call dispose_fn on the dropped values.
50035         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50036         the dropped values.
50037         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50038         Add dispose_fn argument.
50039         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50040         Call dispose_fn on the dropped values.
50041         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50042         Add dispose_fn argument.
50043         (gl_sublist_create): Initialize the 'dispose_fn' field.
50044         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50045         * tests/test-array_list.c (main): Update.
50046         * tests/test-carray_list.c (main): Update.
50047         * tests/test-avltree_list.c (main): Update.
50048         * tests/test-rbtree_list.c (main): Update.
50049         * tests/test-avltreehash_list.c (main): Update.
50050         * tests/test-rbtreehash_list.c (main): Update.
50051         * tests/test-linked_list.c (main): Update.
50052         * tests/test-linkedhash_list.c (main): Update.
50053         * tests/test-array_oset.c (main): Update.
50054
50055 2007-03-15  Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50058         (gl_oset_create_empty): Add dispose_fn argument.
50059         (struct gl_oset_implementation): Add dispose_fn argument to
50060         'create_empty' method.
50061         (struct gl_oset_impl_base): Add dispose_fn field.
50062         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50063         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50064         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50065         values.
50066         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50067         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50068         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50069         dropped value.
50070         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50071         dropped value.
50072         * tests/test-array_oset.c (main): Update.
50073         * tests/test-avltree_oset.c (main): Update.
50074         * tests/test-rbtree_oset.c (main): Update.
50075         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50076
50077 2007-03-13  Bruno Haible  <bruno@clisp.org>
50078
50079         * tests/test-stdbool.c (i): Update after last patch.
50080
50081 2007-03-12  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50084         the iswprint macro. Needed on Solaris 2.5.1.
50085
50086 2007-03-12  Bruno Haible  <bruno@clisp.org>
50087
50088         * tests/test-printf-frexp.c (main): Declare x as volatile.
50089
50090 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50091
50092         * doc/gnulib.texi (Build robot for gnulib): New section.
50093
50094 2007-03-12  Jim Meyering  <jim@meyering.net>
50095
50096         * build-aux/bootstrap: New file.
50097         * build-aux/bootstrap.conf: New file, from coreutils.
50098
50099 2007-03-11  Bruno Haible  <bruno@clisp.org>
50100
50101         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50102
50103 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50104
50105         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50106         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50107         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50108
50109 2007-03-11  Bruno Haible  <bruno@clisp.org>
50110
50111         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50112         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50113
50114 2007-03-11  Bruno Haible  <bruno@clisp.org>
50115
50116         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50117         formula. Needed for SunPRO C 5.0.
50118
50119 2007-03-11  Bruno Haible  <bruno@clisp.org>
50120
50121         * modules/long-options (Depends-on): Add getopt.
50122
50123 2007-03-11  Bruno Haible  <bruno@clisp.org>
50124
50125         * modules/modechange (Depends-on): Add stdbool.
50126
50127 2007-03-11  Bruno Haible  <bruno@clisp.org>
50128
50129         * modules/i-ring (Depends-on): Add stdbool.
50130
50131 2007-03-11  Bruno Haible  <bruno@clisp.org>
50132
50133         * modules/gc-des (Depends-on): Add stdbool.
50134
50135 2007-03-11  Bruno Haible  <bruno@clisp.org>
50136
50137         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50138
50139 2007-03-11  Bruno Haible  <bruno@clisp.org>
50140
50141         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50142
50143 2007-03-11  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50146
50147 2007-03-11  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/vasnprintf.c (sprintf): Undefine.
50150
50151 2007-03-11  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50154         initializers in SunPRO C and Compaq C compilers.
50155
50156 2007-03-11  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50159         decrementing code ANSI C compliant.
50160
50161 2007-03-11  Bruno Haible  <bruno@clisp.org>
50162
50163         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50164         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50165
50166 2007-03-11  Bruno Haible  <bruno@clisp.org>
50167
50168         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50169         <stdbool.h> substitute doesn't pass.
50170
50171 2007-03-11  Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50174
50175 2007-03-11  Bruno Haible  <bruno@clisp.org>
50176
50177         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50178         script, for submission to autobuild.josefsson.org.
50179
50180 2007-03-10  Bruno Haible  <bruno@clisp.org>
50181
50182         * modules/canonicalize-lgpl-tests: New file.
50183         * tests/test-canonicalize-lgpl.sh: New file.
50184         * tests/test-canonicalize-lgpl.c: New file.
50185
50186         * modules/c-strcase-tests: New file.
50187         * tests/test-c-strcase.sh: New file.
50188         * tests/test-c-strcasecmp.c: New file.
50189         * tests/test-c-strncasecmp.c: New file.
50190
50191         * modules/atexit-tests: New file.
50192         * tests/test-atexit.sh: New file.
50193         * tests/test-atexit.c: New file.
50194
50195 2007-03-10  Bruno Haible  <bruno@clisp.org>
50196
50197         * tests/test-binary-io.sh: Use temporary filenames that are not so
50198         likely to clash with those of other tests (in a parallel make).
50199         * tests/test-binary-io.c: Likewise.
50200
50201 2007-03-10  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50204         fallback; use #error instead.
50205         Suggested by Simon Josefsson.
50206
50207 2007-03-10  Bruno Haible  <bruno@clisp.org>
50208
50209         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50210         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50211         first and the last.
50212
50213 2007-03-10  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50216
50217 2007-03-10  Bruno Haible  <bruno@clisp.org>
50218
50219         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50220         "make distcheck".
50221         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50222         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50223         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50224
50225 2007-03-10  Bruno Haible  <bruno@clisp.org>
50226
50227         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50228         variable.
50229         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50230         variable.
50231
50232 2007-03-09  Eric Blake  <ebb9@byu.net>
50233         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50234
50235         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50236         types are not being provided by gnulib.
50237         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50238         types are supported.
50239
50240 2007-03-10  Bruno Haible  <bruno@clisp.org>
50241
50242         * lib/stdio_.h (__attribute__): New macro.
50243         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50244         vsprintf): Specify __attribute__ __format__ for GCC.
50245         Suggested by Eric Blake.
50246
50247 2007-03-09  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/printf-posix-tests: New file.
50250         * tests/test-printf-posix.sh: New file.
50251         * tests/test-printf-posix.c: New file.
50252
50253         * modules/printf-posix: New file.
50254         * lib/printf.c: New file.
50255         * m4/printf-posix-rpl.m4: New file.
50256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50257         REPLACE_PRINTF.
50258         * lib/stdio_.h (printf): New declaration.
50259         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50260         ____strfmon____): New macros.
50261         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50262         REPLACE_PRINTF.
50263
50264 2007-03-09  Bruno Haible  <bruno@clisp.org>
50265
50266         * tests/test-vasnprintf-posix2.sh: New file.
50267         * tests/test-vasnprintf-posix2.c: New file.
50268         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50269         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50270         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50271
50272         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50273         a locale dependent decimal point, rather than always '.'.
50274
50275 2007-03-09  Eric Blake  <ebb9@byu.net>
50276
50277         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50278         spite of platforms like Tandem/NSK that define it to -1.
50279
50280 2007-03-08  Bruno Haible  <bruno@clisp.org>
50281
50282         * modules/vprintf-posix-tests: New file.
50283         * tests/test-vprintf-posix.sh: New file.
50284         * tests/test-vprintf-posix.c: New file.
50285         * tests/test-printf-posix.h: New file.
50286
50287         * modules/vprintf-posix: New file.
50288         * lib/vprintf.c: New file.
50289         * m4/vprintf-posix.m4: New file.
50290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50291         REPLACE_VPRINTF.
50292         * lib/stdio_.h (vprintf): New declaration.
50293         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50294         REPLACE_VPRINTF.
50295
50296 2007-03-08  Bruno Haible  <bruno@clisp.org>
50297
50298         * modules/fprintf-posix-tests: New file.
50299         * tests/test-fprintf-posix.sh: New file.
50300         * tests/test-fprintf-posix.c: New file.
50301
50302         * modules/fprintf-posix: New file.
50303         * lib/fprintf.c: New file.
50304         * m4/fprintf-posix.m4: New file.
50305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50306         REPLACE_FPRINTF.
50307         * lib/stdio_.h (fprintf): New declaration.
50308         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50309         REPLACE_FPRINTF.
50310
50311 2007-03-08  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/vfprintf-posix-tests: New file.
50314         * tests/test-vfprintf-posix.sh: New file.
50315         * tests/test-vfprintf-posix.c: New file.
50316         * tests/test-fprintf-posix.h: New file.
50317         * tests/test-fprintf-posix.out: New file.
50318
50319         * modules/vfprintf-posix: New file.
50320         * lib/vfprintf.c: New file.
50321         * m4/vfprintf-posix.m4: New file.
50322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50323         REPLACE_VFPRINTF.
50324         * lib/stdio_.h (vfprintf): New declaration.
50325         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50326         REPLACE_VFPRINTF.
50327
50328 2007-03-08  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50331
50332 2007-03-08  Bruno Haible  <bruno@clisp.org>
50333
50334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50335         instead of 'expr' invocations.
50336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50341         Suggested by Paul Eggert.
50342
50343 2007-03-08  Bruno Haible  <bruno@clisp.org>
50344
50345         * modules/fseterr-tests: New file.
50346         * tests/test-fseterr.c: New file.
50347
50348         * modules/fseterr: New file.
50349         * lib/fseterr.h: New file.
50350         * lib/fseterr.c: New file.
50351
50352 2007-03-08  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50355         * lib/getopt_.h: Likewise.
50356         * lib/mbswidth.h: Likewise.
50357         * lib/setenv.h: Likewise.
50358         * lib/vasnprintf.h: Likewise.
50359         * lib/vasprintf.h: Likewise.
50360         * lib/verror.h: Likewise.
50361         * lib/xsetenv.h: Likewise.
50362         * lib/xvasprintf.h: Likewise.
50363
50364 2007-03-08  Jim Meyering  <jim@meyering.net>
50365
50366         * users.txt: Add parted.
50367
50368         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50369
50370 2007-03-07  Bruno Haible  <bruno@clisp.org>
50371
50372         * m4/printf.m4: Make the shell script snippets copy&pastable.
50373
50374 2007-03-02  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/netinet_in_.h: New file.
50377         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50378         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50379         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50380         (Depends-on): Add absolute-header.
50381         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50382         into netinet/in.h.
50383
50384 2007-03-03  Bruno Haible  <bruno@clisp.org>
50385
50386         * lib/sys_select_.h: New file.
50387         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50388         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50389         * modules/sys_select (Files): Add lib/sys_select_.h.
50390         (Depends-on): Add absolute-header.
50391         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50392         into sys/select.h.
50393
50394 2007-03-02  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50397         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50398         values.
50399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50400         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50401         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50402         * modules/sys_socket (Depends-on): Add absolute-header.
50403         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50404         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50405         (Include): Remove requirement of inclusion of <sys/types.h>.
50406
50407 2007-03-02  Bruno Haible  <bruno@clisp.org>
50408
50409         * lib/byteswap_.h (bswap_32): Fix formula.
50410
50411 2007-03-06  Bruno Haible  <bruno@clisp.org>
50412
50413         * modules/sprintf-posix-tests: New file.
50414         * tests/test-sprintf-posix.c: New file.
50415
50416         * modules/sprintf-posix: New file.
50417         * lib/sprintf.c: New file.
50418         * m4/sprintf-posix.m4: New file.
50419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50420         REPLACE_SPRINTF.
50421         * lib/stdio_.h (sprintf): New declaration.
50422         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50423         REPLACE_SPRINTF.
50424
50425 2007-03-06  Bruno Haible  <bruno@clisp.org>
50426
50427         * modules/vsprintf-posix-tests: New file.
50428         * tests/test-vsprintf-posix.c: New file.
50429         * tests/test-sprintf-posix.h: New file.
50430
50431         * modules/vsprintf-posix: New file.
50432         * lib/vsprintf.c: New file.
50433         * m4/vsprintf-posix.m4: New file.
50434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50435         REPLACE_VSPRINTF.
50436         * lib/stdio_.h (vsprintf): New declaration.
50437         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50438         REPLACE_VSPRINTF.
50439
50440 2007-03-06  Bruno Haible  <bruno@clisp.org>
50441
50442         * modules/vsnprintf (Depend-on): Remove minmax.
50443
50444 2007-03-06  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/snprintf-posix-tests: New file.
50447         * tests/test-snprintf-posix.c: New file.
50448
50449         * modules/snprintf-posix: New file.
50450         * m4/snprintf-posix.m4: New file.
50451         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50452         gl_FUNC_SNPRINTF.
50453         (gl_FUNC_SNPRINTF): Invoke it.
50454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50455         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50456         is set.
50457         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50458
50459 2007-03-06  Bruno Haible  <bruno@clisp.org>
50460
50461         * modules/vsnprintf-posix-tests: New file.
50462         * tests/test-vsnprintf-posix.c: New file.
50463         * tests/test-snprintf-posix.h: New file.
50464
50465         * modules/vsnprintf-posix: New file.
50466         * m4/vsnprintf-posix.m4: New file.
50467         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50468         gl_FUNC_VSNPRINTF.
50469         (gl_FUNC_VSNPRINTF): Invoke it.
50470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50471         * lib/stdio_.h (vsnprintf): Define as a replacement if
50472         REPLACE_VSNPRINTF is set.
50473         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50474
50475 2007-03-06  Bruno Haible  <bruno@clisp.org>
50476
50477         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50478         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50479
50480 2007-03-06  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50483         (asinl): Declare also if HAVE_DECL_ASINL is set.
50484         (atanl): Declare also if HAVE_DECL_ATANL is set.
50485         (ceill): Declare also if HAVE_DECL_CEILL is set.
50486         (cosl): Declare also if HAVE_DECL_COSL is set.
50487         (expl): Declare also if HAVE_DECL_EXPL is set.
50488         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50489         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50490         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50491         (logl): Declare also if HAVE_DECL_LOGL is set.
50492         (sinl): Declare also if HAVE_DECL_SINL is set.
50493         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50494         (tanl): Declare also if HAVE_DECL_TANL is set.
50495         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50497         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50498         declaration of frexpl, ldexpl.
50499         * modules/printf-frexpl (Depends-on): Add math.
50500         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50501
50502 2007-03-05  Bruno Haible  <bruno@clisp.org>
50503
50504         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50505         frexpl and ldexpl are declared.
50506         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50507
50508 2007-03-05  Bruno Haible  <bruno@clisp.org>
50509
50510         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50511         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50512
50513 2007-03-05  Bruno Haible  <bruno@clisp.org>
50514
50515         * lib/stdio_.h: Include <stddef.h>.
50516
50517 2007-03-05  Bruno Haible  <bruno@clisp.org>
50518
50519         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50520
50521 2007-03-05  Bruno Haible  <bruno@clisp.org>
50522
50523         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50524         NetBSD 4, from Ralf Wildenhues.
50525
50526 2007-03-04  Bruno Haible  <bruno@clisp.org>
50527
50528         * lib/vasprintf.h: Update #if logic for the case when the functions
50529         exist but are overridden.
50530
50531 2007-03-04  Bruno Haible  <bruno@clisp.org>
50532
50533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50534         implementations: glibc-2.4 and MacOS X 10.3.
50535         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50536         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50537         * tests/test-vasprintf-posix.c (test_function): Likewise.
50538
50539 2007-03-04  Bruno Haible  <bruno@clisp.org>
50540
50541         * modules/vasprintf-posix-tests: New file.
50542         * tests/test-vasprintf-posix.c: New file.
50543
50544         * modules/vasprintf-posix: New file.
50545         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50546         defined.
50547         * m4/vasprintf-posix.m4: New file.
50548         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50549         gl_FUNC_VASPRINTF.
50550         (gl_FUNC_VASPRINTF): Invoke it.
50551         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50552         here.
50553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50554
50555 2007-03-04  Bruno Haible  <bruno@clisp.org>
50556
50557         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50558         REPLACE_GETTIMEOFDAY.
50559         * modules/sys_time (Makefile.am): Likewise.
50560         * m4/sys_time_h.m4: Likewise.
50561         * m4/gettimeofday.m4: Likewise.
50562
50563 2007-03-04  Bruno Haible  <bruno@clisp.org>
50564
50565         * modules/vasnprintf-posix-tests: New file.
50566         * tests/test-vasnprintf-posix.c: New file.
50567
50568         * modules/vasnprintf-posix: New file.
50569         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50570         printf-frexpl.h.
50571         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50572         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50573         REPLACE_VASNPRINTF is defined.
50574         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50575         gl_FUNC_VASNPRINTF.
50576         (gl_FUNC_VASNPRINTF): Invoke it.
50577         * m4/vasnprintf-posix.m4: New file.
50578         * m4/printf.m4: New file.
50579
50580 2007-03-04  Bruno Haible  <bruno@clisp.org>
50581
50582         Compile progreloc.c only if --enable-relocatable is specified.
50583         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50584         if --enable-relocatable was specified.
50585         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50586         lib_SOURCES.
50587
50588 2007-03-04  Jim Meyering  <jim@meyering.net>
50589
50590         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50591         Use it consistently, rather than enumerating errno constants.
50592
50593 2007-03-04  Bruno Haible  <bruno@clisp.org>
50594
50595         * modules/xvasprintf-tests: New file.
50596         * tests/test-xvasprintf.c: New file.
50597
50598         * modules/vasprintf-tests: New file.
50599         * tests/test-vasprintf.c: New file.
50600
50601         * modules/vasnprintf-tests: New file.
50602         * tests/test-vasnprintf.c: New file.
50603
50604         * modules/vsnprintf-tests: New file.
50605         * tests/test-vsnprintf.c: New file.
50606
50607         * modules/snprintf-tests: New file.
50608         * tests/test-snprintf.c: New file.
50609
50610 2007-03-04  Bruno Haible  <bruno@clisp.org>
50611
50612         Compile relocatable.c only if --enable-relocatable is specified.
50613         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50614         gl_RELOCATABLE_LIBRARY.
50615         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50616         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50617         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50618         gl_RELOCATABLE_LIBRARY.
50619         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50620         (Makefile.am): Remove lib_SOURCES.
50621         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50622         gl_RELOCATABLE_LIBRARY.
50623         (Makefile.am): Remove lib_SOURCES.
50624         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50625         always.
50626         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50627         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50628
50629 2007-03-04  Bruno Haible  <bruno@clisp.org>
50630
50631         * modules/argmatch-tests: New file.
50632         * tests/test-argmatch.c: New file.
50633
50634         * tests/test-allocsa.c (main): Halve the number of loop runs.
50635
50636         * modules/alloca-opt-tests: New file.
50637         * tests/test-alloca-opt.c: New file.
50638
50639 2007-03-04  Jim Meyering  <jim@meyering.net>
50640
50641         Work around difference between Linux ACLs and Solaris 10 ZFS.
50642         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50643         for EINVAL.
50644
50645 2007-03-03  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/relocatable-prog (Depends-on): Add back progreloc's
50648         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50649
50650 2007-03-03  Bruno Haible  <bruno@clisp.org>
50651
50652         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50653         * modules/relocatable-lib: New file.
50654
50655 2007-03-03  Bruno Haible  <bruno@clisp.org>
50656
50657         * modules/relocatable-prog: Renamed from modules/relocatable.
50658         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50659
50660 2007-03-03  Bruno Haible  <bruno@clisp.org>
50661
50662         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50663         m4/relocatable-lib.m4.
50664         (Depends-on): Remove 'relocatable'.
50665         (configure.ac): Add gl_RELOCATABLE_NOP.
50666
50667 2007-03-03  Bruno Haible  <bruno@clisp.org>
50668
50669         * modules/relocatable-prog-wrapper: New file.
50670         * modules/relocatable (Depends-on): Add it. Remove all other
50671         dependencies except progname.
50672         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50673
50674         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50675         (gl_FUNC_STRERROR): Nop.
50676         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50677
50678         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50679         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50680
50681         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50682         (gl_FUNC_READLINK): Update.
50683
50684         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50685
50686 2007-03-03  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50689         * modules/xreadlink (Depends-on): Add unistd.
50690         * modules/xreadlink-with-size (Depends-on): Likewise.
50691
50692 2007-03-03  Bruno Haible  <bruno@clisp.org>
50693
50694         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50695         extracted from gt_FUNC_SETENV.
50696         (gt_FUNC_SETENV): Remove macro.
50697         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50698         remove gt_FUNC_SETENV.
50699
50700 2007-03-03  Bruno Haible  <bruno@clisp.org>
50701
50702         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50703         ENABLE_RELOCATABLE here.
50704         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50705
50706 2007-03-03  Bruno Haible  <bruno@clisp.org>
50707
50708         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50709         * tests/test-rbtreehash_list.c: Include progname.h.
50710         (main): Call set_program_name.
50711
50712         * modules/rbtree-oset-tests (Depends-on): Add progname.
50713         * tests/test-rbtree_oset.c: Include progname.h.
50714         (main): Call set_program_name.
50715
50716         * modules/rbtree-list-tests (Depends-on): Add progname.
50717         * tests/test-rbtree_list.c: Include progname.h.
50718         (main): Call set_program_name.
50719
50720         * modules/linked-list-tests (Depends-on): Add progname.
50721         * tests/test-linked_list.c: Include progname.h.
50722         (main): Call set_program_name.
50723
50724 2007-03-03  Bruno Haible  <bruno@clisp.org>
50725
50726         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50727         All uses of __restrict changed to _Restrict_.
50728         * lib/glob_.h (__restrict): Remove macro.
50729
50730 2007-03-02  Bruno Haible  <bruno@clisp.org>
50731
50732         * modules/gettext (configure.ac): Require gettext infrastructure
50733         from version 0.16.1.
50734
50735 2007-03-02  Bruno Haible  <bruno@clisp.org>
50736
50737         * modules/linkedhash-list-tests (Depends-on): Add progname.
50738         * tests/test-linkedhash_list.c: Include progname.h.
50739         (main): Call set_program_name.
50740
50741         * modules/carray-list-tests (Depends-on): Add progname.
50742         * tests/test-carray_list.c: Include progname.h.
50743         (main): Call set_program_name.
50744
50745         * modules/avltreehash-list-tests (Depends-on): Add progname.
50746         * tests/test-avltreehash_list.c: Include progname.h.
50747         (main): Call set_program_name.
50748
50749         * modules/avltree-oset-tests (Depends-on): Add progname.
50750         * tests/test-avltree_oset.c: Include progname.h.
50751         (main): Call set_program_name.
50752
50753         * modules/avltree-list-tests (Depends-on): Add progname.
50754         * tests/test-avltree_list.c: Include progname.h.
50755         (main): Call set_program_name.
50756
50757         * modules/array-oset-tests (Depends-on): Add progname.
50758         * tests/test-array_oset.c: Include progname.h.
50759         (main): Call set_program_name.
50760
50761         * modules/array-list-tests (Depends-on): Add progname.
50762         * tests/test-array_list.c: Include progname.h.
50763         (main): Call set_program_name.
50764
50765         * modules/argp-tests (Depends-on): Add progname.
50766         * tests/test-argp.c: Include argp.h first. Include progname.h.
50767         (main): Call set_program_name.
50768
50769 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50770
50771         * doc/gnulib-tool.texi (Initial import): Reword description of
50772         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50773         limited effect even if defined after the first system include.
50774
50775 2007-03-01  Bruno Haible  <bruno@clisp.org>
50776
50777         * build-aux/config.libpath: Update to libtool-1.5.22.
50778         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50779
50780 2007-03-01  Bruno Haible  <bruno@clisp.org>
50781
50782         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50783         foo_CFLAGS.
50784         Reported by Ralf Wildenhues.
50785
50786 2007-03-01  Bruno Haible  <bruno@clisp.org>
50787
50788         * build-aux/install-reloc: Remove object files left over by some
50789         compilers.
50790         Reported by Ralf Wildenhues.
50791
50792 2007-03-01  Bruno Haible  <bruno@clisp.org>
50793
50794         * build-aux/install-reloc: Break long lines.
50795
50796 2007-03-01  Bruno Haible  <bruno@clisp.org>
50797
50798         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50799         Reported by Ralf Wildenhues.
50800
50801 2007-03-01  Bruno Haible  <bruno@clisp.org>
50802
50803         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50804         include ordering constraints.
50805
50806 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50807
50808         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50809         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50810         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50811         as another example.
50812         * lib/time_.h: Fix misspelling.
50813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50814         Require gl_HEADER_TIME_H_DEFAULTS.
50815         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50816         * m4/time_r.m4 (gl_TIME_R): Likewise.
50817         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50818
50819 2007-03-01  Bruno Haible  <bruno@clisp.org>
50820
50821         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50822         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50823
50824 2007-03-01  Jim Meyering  <jim@meyering.net>
50825
50826         * modules/xreadlink (Maintainer): Add my name.
50827         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50828
50829 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50830             Bruno Haible  <bruno@clisp.org>
50831
50832         * build-aux/install-reloc: Compile also c-ctype.c.
50833         * build-aux/relocatable.sh.in: New file.
50834         * doc/relocatable.texi: New file.
50835         * doc/relocatable-maint.texi: New file.
50836         * doc/gnulib.texi: Include relocatable-maint.texi.
50837         * lib/progreloc.c: Include unistd.h unconditionally.
50838         * lib/relocwrapper.c: Include unistd.h unconditionally.
50839         Include c-ctype.h.
50840         (add_dotbin): Use c_tolower.
50841         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50842         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50843         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50844         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50845         to m4/relocatable-lib.m4.
50846         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50847         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50848         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50849         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50850         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50851         * modules/relocatable: New file.
50852         * modules/relocatable-lib: New file.
50853         * modules/relocatable-script: New file.
50854
50855 2007-02-28  Bruno Haible  <bruno@clisp.org>
50856
50857         Import --enable-relocatable infrastructure.
50858         * build-aux/config.libpath: New file, from GNU gettext.
50859         * build-aux/install-reloc: New file, from GNU gettext.
50860         * build-aux/reloc-ldflags: New file, from GNU gettext.
50861         * lib/relocatable.h: New file, from GNU gettext.
50862         * lib/relocatable.c: New file, from GNU gettext.
50863         * lib/relocwrapper.c: New file, from GNU gettext.
50864         * m4/relocatable.m4: New file, from GNU gettext.
50865
50866 2007-02-28  Bruno Haible  <bruno@clisp.org>
50867
50868         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50869
50870         * modules/xreadlink: New file, from GNU gettext with modifications.
50871         * lib/xreadlink.c: New file, from GNU gettext.
50872         * lib/xreadlink.h: Add comments.
50873         (xreadlink): New declaration.
50874
50875         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50876         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50877         lib/xreadlink-with-size.c.
50878         (configure.ac): Remove gl_XREADLINK invocation.
50879         (Makefile.am): Augment lib_SOURCES.
50880         * m4/xreadlink.m4: Remove file.
50881         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50882         (xreadlink_with_size): Renamed from xreadink.
50883         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50884         * modules/canonicalize (Depends-on): Replace xreadlink with
50885         xreadlink-with-size.
50886         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50887
50888 2007-02-25  Jim Meyering  <jim@meyering.net>
50889
50890         * build-aux/announce-gen: When complaining about excess arguments,
50891         list them.
50892
50893 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50894
50895         * README: Document signed integer overflow situation more
50896         accurately.
50897
50898 2007-02-25  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50901         'a' or 'A' conversion.
50902
50903 2007-02-25  Bruno Haible  <bruno@clisp.org>
50904
50905         * modules/filename: Renamed from modules/pathname.
50906         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50907         lib/concatpath.c with lib/concat-filename.c.
50908         (Makefile.am): Update.
50909         (Include): Replace pathname.h with filename.h.
50910         * lib/filename.h: Renamed from lib/pathname.h.
50911         (concatenated_filename): Renamed from concatenated_pathname.
50912         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50913         (concatenated_filename): Renamed from concatenated_pathname.
50914         * lib/findprog.c: Include filename.h instead of pathname.h.
50915         (find_in_path): Update.
50916         * lib/javacomp.c: Include filename.h instead of pathname.h.
50917         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50918         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50919         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50920         is_oldgcj_14_13_usable, is_javac_usable): Update.
50921         * lib/javaexec.c: Include filename.h instead of pathname.h.
50922         (execute_java_class): Update.
50923         * modules/findprog: Update.
50924         * modules/javacomp: Update.
50925         * modules/javaexec: Update.
50926         * MODULES.html.sh (File system functions): Add 'filename', remove
50927         'pathname'.
50928
50929 2007-02-25  Bruno Haible  <bruno@clisp.org>
50930
50931         * modules/printf-frexpl-tests: New file.
50932         * tests/test-printf-frexpl.c: New file.
50933
50934         * modules/printf-frexpl: New file.
50935         * lib/printf-frexpl.h: New file.
50936         * lib/printf-frexpl.c: New file.
50937         * m4/printf-frexpl.m4: New file.
50938
50939 2007-02-25  Bruno Haible  <bruno@clisp.org>
50940
50941         * modules/printf-frexp-tests: New file.
50942         * tests/test-printf-frexp.c: New file.
50943
50944         * modules/printf-frexp: New file.
50945         * lib/printf-frexp.h: New file.
50946         * lib/printf-frexp.c: New file.
50947         * m4/printf-frexp.m4: New file.
50948
50949 2007-02-25  Bruno Haible  <bruno@clisp.org>
50950
50951         Assume automake >= 1.10 for the tests.
50952         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50953         * modules/arctwo-tests: Likewise.
50954         * modules/argp-tests: Likewise.
50955         * modules/avltree-list-tests: Likewise.
50956         * modules/avltree-oset-tests: Likewise.
50957         * modules/avltreehash-list-tests: Likewise.
50958         * modules/carray-list-tests: Likewise.
50959         * modules/crc-tests: Likewise.
50960         * modules/des-tests: Likewise.
50961         * modules/gc-arcfour-tests: Likewise.
50962         * modules/gc-arctwo-tests: Likewise.
50963         * modules/gc-des-tests: Likewise.
50964         * modules/gc-hmac-md5-tests: Likewise.
50965         * modules/gc-hmac-sha1-tests: Likewise.
50966         * modules/gc-md2-tests: Likewise.
50967         * modules/gc-md4-tests: Likewise.
50968         * modules/gc-md5-tests: Likewise.
50969         * modules/gc-pbkdf2-sha1-tests: Likewise.
50970         * modules/gc-rijndael-tests: Likewise.
50971         * modules/gc-sha1-tests: Likewise.
50972         * modules/gc-tests: Likewise.
50973         * modules/getaddrinfo-tests: Likewise.
50974         * modules/hmac-md5-tests: Likewise.
50975         * modules/hmac-sha1-tests: Likewise.
50976         * modules/linked-list-tests: Likewise.
50977         * modules/linkedhash-list-tests: Likewise.
50978         * modules/lock-tests: Likewise.
50979         * modules/md2-tests: Likewise.
50980         * modules/md4-tests: Likewise.
50981         * modules/md5-tests: Likewise.
50982         * modules/rbtree-list-tests: Likewise.
50983         * modules/rbtree-oset-tests: Likewise.
50984         * modules/rbtreehash-list-tests: Likewise.
50985         * modules/read-file-tests: Likewise.
50986         * modules/rijndael-tests: Likewise.
50987         * modules/stdint-tests: Likewise.
50988         * modules/tls-tests: Likewise.
50989
50990 2007-02-24  Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50993         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50994         function; instead check whether isnan with a double argument links.
50995         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50996         function; instead check whether isnan with a 'long double' argument
50997         links.
50998         Reported by Eric Blake <ebb9@byu.net>.
50999
51000 2007-02-24  Bruno Haible  <bruno@clisp.org>
51001
51002         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51003         defined.
51004         * lib/isnanl.c: Remove all code. Just include isnan.c.
51005         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51006
51007 2007-02-25  Jim Meyering  <jim@meyering.net>
51008
51009         Avoid conflicting types for 'unsetenv' on FreeBSD.
51010         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51011         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51012         in stdlib.h.
51013
51014 2007-02-24  Bruno Haible  <bruno@clisp.org>
51015
51016         * modules/isnanl-nolibm-tests: New file.
51017         * tests/test-isnanl.c: New file.
51018
51019         * modules/isnanl-nolibm: New file.
51020         * lib/isnanl.h: New file.
51021         * lib/isnanl.c: New file.
51022         * m4/isnanl.m4: New file.
51023
51024 2007-02-24  Bruno Haible  <bruno@clisp.org>
51025
51026         * modules/isnan-nolibm-tests: New file.
51027         * tests/test-isnan.c: New file.
51028
51029         * modules/isnan-nolibm: New file.
51030         * lib/isnan.h: New file.
51031         * lib/isnan.c: New file.
51032         * m4/isnan.m4: New file.
51033
51034 2007-02-24  Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51037         assume that an exponent fits in 20 bits.
51038
51039 2007-02-24  Jim Meyering  <jim@meyering.net>
51040
51041         * m4/regex.m4: Update the description of the configure-time option,
51042         --without-included-regex, to state accurately what the defaults are,
51043         and perhaps to give people an idea why using this option is risky.
51044
51045 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51046
51047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51048         loops on small arguments.  This attempts to avoid the problem
51049         Bruno Haible reported for AIX 4.3.2 in
51050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51051
51052 2007-02-23  Bruno Haible  <bruno@clisp.org>
51053
51054         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51055         Needed for help2man.
51056
51057 2007-02-23  Karl Berry  <karl@gnu.org>
51058
51059         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51060         exists, foo.h should be cvs-ignored, not committed.
51061
51062 2007-02-23  Eric Blake  <ebb9@byu.net>
51063
51064         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51065         * lib/stat-time.h (includes): Likewise.
51066         * lib/utimecmp.c (includes): Likewise.
51067         * lib/utimens.h (includes): Likewise.
51068         * lib/getdate.y (includes): Also include "timespec.h" for use
51069         internal to the module.
51070         * modules/utimens (Depends-on): Revert yesterday's patch.
51071         * modules/nanosleep (Depends-on): Add missing dependency.
51072
51073 2007-02-22  Bruno Haible  <bruno@clisp.org>
51074
51075         * lib/glob.c: Don't include getlogin_r.h.
51076
51077 2007-02-22  Jim Meyering  <jim@meyering.net>
51078
51079         * modules/utimens (Depends-on): Add timespec, required for
51080         utimens.h's inclusion of timespec.h.
51081
51082 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51083
51084         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51085         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51086         Schwab in
51087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51088         I'll try to think of a better way to fix the Solaris problem.
51089
51090         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51091         like glibc; on Solaris 10, it fails with errno == EINVAL.
51092         POSIX says the behavior is unspecified if the first argument is NULL,
51093         so play it safe and never pass NULL to the system getcwd.
51094
51095 2007-02-21  Jim Meyering  <jim@meyering.net>
51096
51097         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51098         of gettimeofday.  It would conflict with the one now always
51099         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51100         an IRIX 6.5 build failure.
51101
51102 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51103
51104         Minor fixups to port to Solaris 10 with Sun C 5.8.
51105         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51106         * modules/getcwd (Depends-on): Add dirfd.
51107         * lib/putenv.c (putenv): #undef it.
51108         (rpl_putenv): New decl.
51109         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51110
51111 2007-02-20  Bruno Haible  <bruno@clisp.org>
51112
51113         * modules/stdio-tests: New file.
51114         * tests/test-stdio.c: New file.
51115
51116         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51117         (Depends-on): Add stdio.
51118         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51119         (Include): Use <stdio.h> instead of vsnprintf.h.
51120         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51121         HAVE_DECL_VSNPRINTF.
51122         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51123
51124         * modules/snprintf (Files): Remove lib/snprintf.h.
51125         (Depends-on): Add stdio.
51126         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51127         (Include): Use <stdio.h> instead of snprintf.h.
51128         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51129         HAVE_DECL_SNPRINTF.
51130         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51131         * lib/getaddrinfo.c: Likewise.
51132
51133         * modules/stdio: New file.
51134         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51135         * lib/snprintf.h: Remove file.
51136         * lib/vsnprintf.h: Remove file.
51137         * lib/.cppi-disable: Remove snprintf.h.
51138         * m4/stdio_h.m4: New file.
51139         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51140
51141 2007-02-20  Jim Meyering  <jim@meyering.net>
51142
51143         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51144         used by e.g., mingw.  From Bruno Haible.
51145
51146 2007-02-19  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51149         warnings.
51150         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51151
51152 2007-02-19  Bruno Haible  <bruno@clisp.org>
51153
51154         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51155         from mingw users.
51156
51157 2007-02-19  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51160         warnings.
51161         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51162
51163 2007-02-19  Jim Meyering  <jim@meyering.net>
51164
51165         Don't use FD after a successful "fdopendir (fd)".
51166         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51167         Reset it by calling dirfd on the just-obtained DIR*.
51168
51169         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51170         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51171
51172 2007-02-18  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/readlink.c: Include <unistd.h>.
51175         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51176         HAVE_READLINK.
51177         * modules/readlink (Depends-on): Add unistd.
51178         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51179         (Include): Add <unistd.h>.
51180
51181         * lib/getlogin_r.h: Remove file.
51182         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51183         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51184         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51185         HAVE_DECL_GETLOGIN_R.
51186         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51187         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51188         (Include): Use <unistd.h> instead of getlogin_r.h.
51189
51190         * lib/getcwd.h: Remove file.
51191         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51192         * lib/xgetcwd.c: Likewise.
51193         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51194         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51195         * modules/getcwd (Files): Remove lib/getcwd.h.
51196         (Depends-on): Add unistd.
51197         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51198         (Include): Use <unistd.h> instad of getcwd.h.
51199
51200         * lib/ftruncate.c: Include <unistd.h> first.
51201         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51202         Set HAVE_FTRUNCATE.
51203         * modules/ftruncate (Depends-on): Add unistd.
51204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51205
51206         * lib/fchdir.c: Include <unistd.h> first.
51207         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51209         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51210         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51211         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51212
51213         * lib/dup2.c: Include <unistd.h> first.
51214         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51215         HAVE_DUP2.
51216         * modules/dup2 (Depends-on): Add unistd.
51217         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51218
51219         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51220         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51221         REPLACE_CHOWN. Don't define chown as a macro here.
51222         * modules/chown (Depends-on): Add unistd.
51223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51224
51225         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51226         Add definition for GL_LINK_WARNING.
51227         (chown, dup2): New declarations.
51228         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51229         link warning.
51230         (ftruncate): New declaration.
51231         (getcwd): New declaration, taken from old getcwd.h.
51232         (getlogin_r): New declaration, taken from old getlogin_r.h.
51233         (readlink): New declaration.
51234         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51235         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51236         (gl_PREREQ_UNISTD): Remove macro.
51237         (gl_UNISTD_MODULE_INDICATOR): New macro.
51238         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51239         many new variables. Don't set UNISTD_H.
51240         * modules/unistd (Description): Change.
51241         (Depends-on): Add link-warning.
51242         (configure.ac): Update.
51243         (Makefile.am): Create unistd.h always. Substitute many new variables
51244         into it.
51245
51246 2007-02-18  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51249         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51250         HAVE_GETSUBOPT.
51251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51252         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51253         * lib/getsubopt.h: Remove file.
51254         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51255         (Depends-on): Add stdlib.
51256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51257         (Includes): Use <stdlib.h> instead of getsubopt.h.
51258         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51259         Set HAVE_GETSUBOPT.
51260         * lib/getsubopt.c: Don't include getsubopt.h.
51261
51262 2007-02-18  Bruno Haible  <bruno@clisp.org>
51263
51264         * modules/fchdir (Depends-on): Add dup2.
51265
51266 2007-02-18  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/stdlib_.h: Handle glibc's special invocation convention
51269         specially.
51270
51271 2007-02-18  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/stdlib-tests: New file.
51274         * tests/test-stdlib.c: New file.
51275
51276         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51277         (Depends-on): Add stdlib.
51278         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51279         (Includes): Use <stdlib.h> instead of mkstemp.h.
51280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51281         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51282         * lib/mkstemp.c: Don't include mkstemp.h.
51283         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51284         * lib/stdlib--.h: Don't include mkstemp.h.
51285
51286         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51287         (Depends-on): Add stdlib.
51288         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51289         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51290         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51291         HAVE_MKDTEMP.
51292         * lib/mkdtemp.c: Don't include mkdtemp.h.
51293         * lib/clean-temp.c: Don't include mkdtemp.h.
51294
51295         * modules/exit (Files): Remove lib/exit.h.
51296         (Depends-on): Add stdlib.
51297         (Makefile.am): Remove lib_SOURCES.
51298         (Include): Use <stdlib.h> instead of exit.h.
51299         * lib/argmatch.c: Don't include exit.h.
51300         * lib/execute.c: Likewise.
51301         * lib/pagealign_alloc.c: Likewise.
51302         * lib/pipe.c: Likewise.
51303         * lib/wait-process.c: Likewise.
51304         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51305         * lib/exitfail.c: Likewise.
51306         * lib/savewd.c: Likewise.
51307         * lib/xsetenv.c: Likewise.
51308
51309         * modules/stdlib: New file.
51310         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51311         and extra comments about mkstemp().
51312         * lib/exit.h: Remove file.
51313         * lib/mkdtemp.h: Remove file.
51314         * lib/mkstemp.h: Remove file.
51315         * m4/stdlib_h.m4: New file.
51316         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51317
51318 2007-02-18  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/math-tests: New file.
51321         * tests/test-math.c: New file.
51322
51323         * modules/math: New file.
51324         * modules/mathl (Files): Remove lib/mathl.h.
51325         (Depends-on): Add math.
51326         (Makefile.am): Don't mention mathl.h.
51327         (Include): Use <math.h> instead of mathl.h.
51328         * lib/math_.h: New file.
51329         * lib/mathl.h: Remove file.
51330         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51331         mathl.h.
51332         * lib/asinl.c: Likewise.
51333         * lib/atanl.c: Likewise.
51334         * lib/ceill.c: Likewise.
51335         * lib/cosl.c: Likewise.
51336         * lib/expl.c: Likewise.
51337         * lib/floorl.c: Likewise.
51338         * lib/frexpl.c: Likewise.
51339         * lib/ldexpl.c: Likewise.
51340         * lib/logl.c: Likewise.
51341         * lib/sincosl.c: Likewise.
51342         * lib/sinl.c: Likewise.
51343         * lib/sqrtl.c: Likewise.
51344         * lib/tanl.c: Likewise.
51345         * lib/trigl.c: Likewise.
51346         * m4/math_h.m4: New file.
51347         * MODULES.html.sh (Mathematics): Add math.
51348
51349 2007-02-17  Bruno Haible  <bruno@clisp.org>
51350
51351         * modules/wctype-tests: New file.
51352         * tests/test-wctype.c: New file.
51353
51354         * modules/wchar-tests: New file.
51355         * tests/test-wchar.c: New file.
51356
51357         * modules/unistd-tests: New file.
51358         * tests/test-unistd.c: New file.
51359
51360         * modules/time-tests: New file.
51361         * tests/test-time.c: New file.
51362
51363         * modules/sysexits-tests: New file.
51364         * tests/test-sysexits.c: New file.
51365
51366         * modules/sys_time-tests: New file.
51367         * tests/test-sys_time.c: New file.
51368
51369         * modules/sys_stat-tests: New file.
51370         * tests/test-sys_stat.c: New file.
51371
51372         * modules/sys_socket-tests: New file.
51373         * tests/test-sys_socket.c: New file.
51374
51375         * modules/sys_select-tests: New file.
51376         * tests/test-sys_select.c: New file.
51377
51378         * modules/string-tests: New file.
51379         * tests/test-string.c: New file.
51380
51381         * modules/stdbool-tests: New file.
51382         * tests/test-stdbool.c: New file.
51383
51384         * modules/netinet_in-tests: New file.
51385         * tests/test-netinet_in.c: New file.
51386
51387         * modules/inttypes-tests: New file.
51388         * tests/test-inttypes.c: New file.
51389
51390         * modules/fcntl-tests: New file.
51391         * tests/test-fcntl.c: New file.
51392
51393         * modules/byteswap-tests: New file.
51394         * tests/test-byteswap.c: New file.
51395
51396         * modules/arpa_inet-tests: New file.
51397         * tests/test-arpa_inet.c: New file.
51398
51399 2007-02-17  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51402         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51403         if the corresponding module is not enabled. Emit link warnings if
51404         the function is used nevertheless.
51405         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51406         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51407         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51408         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51409         * modules/inttypes (Depends-on): Add link-warning.
51410         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51411         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51412         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51413         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51414         * modules/imaxdiv (configure.ac): Likewise.
51415         * modules/strtoimax (configure.ac): Likewise.
51416         * modules/strtoumax (configure.ac): Likewise.
51417
51418 2007-02-17  Bruno Haible  <bruno@clisp.org>
51419
51420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51421         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51422         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51423         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51424
51425 2007-02-17  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/link-warning: New file.
51428         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51429         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51430         * modules/string (Depends-on): Add link-warning.
51431         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51432         string.h.
51433         * MODULES.html.sh (Support for building libraries and executables): Add
51434         link-warning.
51435
51436 2007-02-17  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51439         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51440         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51441         long lines.
51442
51443 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51444             Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/tmpfile: New file.
51447         * lib/tmpfile.c: New file.
51448         * m4/tmpfile.m4: New file.
51449         * MODULES.html.sh (func_all_modules): New section "Input/output".
51450
51451 2007-02-15  Bruno Haible  <bruno@clisp.org>
51452
51453         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51454         (supports_delete_on_close): New function.
51455         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51456
51457 2007-02-14  Bruno Haible  <bruno@clisp.org>
51458
51459         * modules/mbspcasecmp-tests: New file.
51460         * tests/test-mbspcasecmp.sh: New file.
51461         * tests/test-mbspcasecmp.c: New file.
51462
51463         New module mbspcasecmp.
51464         * modules/mbspcasecmp: New file.
51465         * lib/mbspcasecmp.c: New file.
51466         * lib/string_.h (strncasecmp): Change warning message.
51467         (mbspcasecmp): New declaration.
51468         * m4/mbspcasecmp.m4: New file.
51469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51470         GNULIB_MBSPCASECMP.
51471         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51472         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51473
51474 2007-02-14  Bruno Haible  <bruno@clisp.org>
51475
51476         * modules/mbsncasecmp-tests: New file.
51477         * tests/test-mbsncasecmp.sh: New file.
51478         * tests/test-mbsncasecmp.c: New file.
51479
51480         New module mbsncasecmp.
51481         * modules/mbsncasecmp: New file.
51482         * lib/mbsncasecmp.c: New file.
51483         * lib/string_.h (mbsncasecmp): New declaration.
51484         * m4/mbsncasecmp.m4: New file.
51485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51486         GNULIB_MBSNCASECMP.
51487         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51488         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51489
51490 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51491
51492         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51493         Verify that it doesn't overlap with our flags.
51494         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51495         do not have the desired effect in multibyte locales; instead, use
51496         mbscasecmp.
51497         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51498         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51499         we don't require GNU fnmatch ourselves (if our users require it, they
51500         should do so explicitly).
51501
51502         Fix regex code so it doesn't rely on strcasecmp.
51503         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51504         Otherwise, include gnulib's langinfo.h.
51505         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51506         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51507         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51508         * modules/regex (FILES): Remove m4/codeset.m4.
51509         (Depends-on): Add localcharset.  Remove strcase.
51510
51511 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51512
51513         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51514         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51515
51516 2007-02-13  Bruno Haible  <bruno@clisp.org>
51517
51518         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51519         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51520
51521 2007-02-12  Bruno Haible  <bruno@clisp.org>
51522
51523         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51524         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51525         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51526         time warning rather than a link error.
51527
51528 2007-02-12  Bruno Haible  <bruno@clisp.org>
51529
51530         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51531         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51532         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51533
51534 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51535
51536         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51537         args, not 2.
51538
51539 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         New module 'time', so that apps can include <time.h> as per
51542         POSIX and GNU instead of separate include files like time_r.h
51543         and timegm.h.  This implementation tries out a simpler approach
51544         for replacing decls in standard include files (as compared to
51545         the string module), somewhat as an experiment.
51546
51547         * config/srclist.txt: Comment out mktime.c for now.
51548         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51549         since it doesn't apply any more.  Use generic wording instead.
51550         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51551         'time'.
51552         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51553         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51554         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51555         Don't include <sys/types.h>; no longer needed since we assume C89.
51556         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51557         * lib/strftime.c: Likewise.
51558         * lib/time_r.c: Likewise.
51559         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51560         * lib/nanosleep.c: Include <time.h> first, to check interface.
51561         * lib/strptime.c: Likewise.
51562         * lib/time_r.c: Likewise.
51563         * lib/timegm.c: Likewise.
51564         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51565         needed.
51566         * lib/timegm.c: Don't include timegm.h; no longer needed.
51567         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51568         time.h now handles any problems in that area.
51569         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51570         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51571         that time.h defines struct timespec.
51572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51573         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51574         handles that.
51575         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51576         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51577         needed.  Set REPLACE_LOCALTIME.
51578         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51579         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51580         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51581         nanosleep; time_h.m4 now does that.  Don't require
51582         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51583         module handles this now.
51584         * modules/getdate (Depends-on): Remove timespec.  Add time.
51585         * modules/nanosleep (Depends-on): Likewise.
51586         * modules/stat-time (Depends-on): Likewise.
51587         * modules/nanosleep (Include): Include time.h, not timespec.h.
51588         * modules/strptime (Files): Remove lib/strptime.h.
51589         (Depends-on): Add extensions, time.
51590         (Include): Include time.h, not strptime.h.
51591         * modules/time_r (Files): Remove lib/time_r.h.
51592         (Depends-on): Add time.
51593         (Include): Include time.h, not time_r.h.
51594         * modules/timegm: Likewise.
51595         * modules/timespec (Description): Now does timespec-related decls
51596         of our own, instead of struct timespec itself.
51597         (Depends-on): Add time; remove extensions.
51598         (Maintainer): Add self.
51599         * modules/utimecmp (Depends-on): Add time; remove timespec.
51600         * modules/utimens (Depends-on): Likewise.
51601         * modules/xnanosleep (Depends-on): Likewise.
51602
51603 2007-02-11  Bruno Haible  <bruno@clisp.org>
51604
51605         * lib/c-strstr.c: Include allocsa.h.
51606         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51607         * lib/c-strcasestr.c: Include allocsa.h.
51608         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51609         * lib/strcasestr.c: Include allocsa.h.
51610         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51611         * lib/mbsstr.c: Include allocsa.h.
51612         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51613         allocsa/freesa instead of malloc/free.
51614         * lib/mbscasestr.c: Include allocsa.h.
51615         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51616         allocsa/freesa instead of malloc/free.
51617         * modules/c-strstr (Depends-on): Add allocsa.
51618         * modules/c-strcasestr (Depends-on): Likewise.
51619         * modules/strcasestr (Depends-on): Likewise.
51620         * modules/mbsstr (Depends-on): Likewise.
51621         * modules/mbscasestr (Depends-on): Likewise.
51622
51623 2007-02-11  Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51626
51627         * modules/mbsspn-tests: New file.
51628         * tests/test-mbsspn.sh: New file.
51629         * tests/test-mbsspn.c: New file.
51630
51631 2007-02-11  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51634
51635         * modules/mbspbrk-tests: New file.
51636         * tests/test-mbspbrk.sh: New file.
51637         * tests/test-mbspbrk.c: New file.
51638
51639 2007-02-11  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51642         unneeded cast.
51643
51644         * modules/mbscspn-tests: New file.
51645         * tests/test-mbscspn.sh: New file.
51646         * tests/test-mbscspn.c: New file.
51647
51648 2007-02-11  Bruno Haible  <bruno@clisp.org>
51649
51650         * modules/mbscasecmp-tests: New file.
51651         * tests/test-mbscasecmp.sh: New file.
51652         * tests/test-mbscasecmp.c: New file.
51653
51654 2007-02-11  Bruno Haible  <bruno@clisp.org>
51655
51656         Ensure O(n) worst-case complexity of mbscasestr.
51657         * lib/mbscasestr.c: Include stdbool.h.
51658         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51659         functions.
51660         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51661         the bookkeeping indicates that it's worth it.
51662         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51663
51664         * modules/mbscasestr-tests: New file.
51665         * tests/test-mbscasestr1.c: New file.
51666         * tests/test-mbscasestr2.sh: New file.
51667         * tests/test-mbscasestr2.c: New file.
51668         * tests/test-mbscasestr3.sh: New file.
51669         * tests/test-mbscasestr3.c: New file.
51670         * tests/test-mbscasestr4.sh: New file.
51671         * tests/test-mbscasestr4.c: New file.
51672         * m4/locale-tr.m4: New file.
51673
51674 2007-02-11  Bruno Haible  <bruno@clisp.org>
51675
51676         Ensure O(n) worst-case complexity of mbsstr.
51677         * lib/mbsstr.c: Include stdbool.h.
51678         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51679         functions.
51680         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51681         bookkeeping indicates that it's worth it.
51682         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51683
51684         * modules/mbsstr-tests: New file.
51685         * tests/test-mbsstr1.c: New file.
51686         * tests/test-mbsstr2.sh: New file.
51687         * tests/test-mbsstr2.c: New file.
51688         * tests/test-mbsstr3.sh: New file.
51689         * tests/test-mbsstr3.c: New file.
51690         * m4/locale-fr.m4: New file.
51691
51692 2007-02-11  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/mbsrchr.c (mbsrchr): Fix bug.
51695
51696         * modules/mbsrchr-tests: New file.
51697         * tests/test-mbsrchr.sh: New file.
51698         * tests/test-mbsrchr.c: New file.
51699
51700 2007-02-11  Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/mbschr.c (mbschr): Fix bug.
51703
51704         * modules/mbschr-tests: New file.
51705         * tests/test-mbschr.sh: New file.
51706         * tests/test-mbschr.c: New file.
51707         * m4/locale-zh.m4: New file.
51708
51709 2007-02-11  Bruno Haible  <bruno@clisp.org>
51710
51711         Support for copying multibyte string iterators.
51712         * lib/mbiter.h: Include <string.h>.
51713         (mbiter_multi_copy): New function.
51714         (mbi_copy): New macro.
51715         * lib/mbuiter.h: Include <string.h>.
51716         (mbuiter_multi_copy): New function.
51717         (mbui_copy): New macro.
51718
51719 2007-02-11  Bruno Haible  <bruno@clisp.org>
51720
51721         New module mbslen.
51722         * modules/mbslen: New file.
51723         * lib/mbslen.c: New file.
51724         * lib/string_.h (mbslen): New declaration.
51725         * m4/mbslen.m4: New file.
51726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51727         GNULIB_MBSLEN.
51728         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51729         * MODULES.html.sh (Internationalization functions): Add mbslen.
51730
51731 2007-02-11  Bruno Haible  <bruno@clisp.org>
51732
51733         Ensure O(n) worst-case complexity of strcasestr substitute.
51734         * lib/strcasestr.c: Include stdbool.h.
51735         (knuth_morris_pratt): New function.
51736         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51737         bookkeeping indicates that it's worth it.
51738         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51739
51740         * modules/strcasestr-tests: New file.
51741         * tests/test-strcasestr.c: New file.
51742
51743 2007-02-11  Bruno Haible  <bruno@clisp.org>
51744
51745         Ensure O(n) worst-case complexity of c_strcasestr.
51746         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51747         (knuth_morris_pratt): New function.
51748         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51749         the bookkeeping indicates that it's worth it.
51750         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51751
51752         * modules/c-strcasestr-tests: New file.
51753         * tests/test-c-strcasestr.c: New file.
51754
51755 2007-02-11  Bruno Haible  <bruno@clisp.org>
51756
51757         Ensure O(n) worst-case complexity of c_strstr.
51758         * lib/c-strstr.c: Include stdbool.h, string.h.
51759         (knuth_morris_pratt): New function.
51760         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51761         bookkeeping indicates that it's worth it.
51762         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51763
51764         * lib/c-strstr.c: Complete rewrite for maintainability.
51765
51766         * modules/c-strstr-tests: New file.
51767         * tests/test-c-strstr.c: New file.
51768
51769 2007-02-11  Bruno Haible  <bruno@clisp.org>
51770
51771         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51772         5.2.1 and earlier, whereby \055 was treated just like the range
51773         delimiter '-'.
51774         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51775
51776 2007-02-08  Bruno Haible  <bruno@clisp.org>
51777
51778         * modules/regex (Depends-on): Add stdbool.
51779         Reported by Dalibor Topic <robilad@kaffe.org>.
51780
51781 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51784         Prefer returning from main to exiting from it.
51785         Remove unnecessary parens after sizeof.
51786
51787 2007-02-05  Bruno Haible  <bruno@clisp.org>
51788
51789         New module mbssep.
51790         * modules/mbssep: New file.
51791         * lib/mbssep.c: New file.
51792         * lib/string_.h (strsep): Add a conditional link warning.
51793         (mbssep): New declaration.
51794         * m4/mbssep.m4: New file.
51795         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51796         GNULIB_MBSSEP.
51797         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51798         * MODULES.html.sh (Internationalization functions): Add mbssep.
51799
51800 2007-02-05  Bruno Haible  <bruno@clisp.org>
51801
51802         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51803         Optimize search in case of 1 delimiter.
51804
51805 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51806
51807         * lib/acl.h: Include sys/types.h before sys/acl.h.
51808
51809 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51810
51811         Merge upstream fix for glibc bugzilla #3957:
51812
51813         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51814
51815         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51816         bit for RE_HAT_LISTS_NOT_NEWLINE.
51817         (build_charclass_op): Remove bogus comment.
51818
51819 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51820
51821         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51822
51823 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51824
51825         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51826         * lib/memmem.c [!defined _LIBC]: Include config.h.
51827
51828 2007-02-04  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51831         warning message.
51832
51833 2007-02-04  Bruno Haible  <bruno@clisp.org>
51834
51835         New module mbstok_r.
51836         * modules/mbstok_r: New file.
51837         * lib/mbstok_r.c: New file.
51838         * lib/string_.h (strtok_r): Change argument names to match the
51839         comments. Add a conditional link warning.
51840         (mbstok_r): New declaration.
51841         * m4/mbstok_r.m4: New file.
51842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51843         GNULIB_MBSTOK_R.
51844         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51845         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51846
51847 2007-02-04  Bruno Haible  <bruno@clisp.org>
51848
51849         New module mbsspn.
51850         * modules/mbsspn: New file.
51851         * lib/mbsspn.c: New file.
51852         * lib/string_.h (strspn): Add a conditional link warning.
51853         (mbsspn): New declaration.
51854         * m4/mbsspn.m4: New file.
51855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51856         GNULIB_MBSSPN.
51857         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51858         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51859
51860 2007-02-04  Bruno Haible  <bruno@clisp.org>
51861
51862         New module mbspbrk.
51863         * modules/mbspbrk: New file.
51864         * lib/mbspbrk.c: New file.
51865         * lib/string_.h (strpbrk): Add a conditional link warning.
51866         (mbspbrk): New declaration.
51867         * m4/mbspbrk.m4: New file.
51868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51869         GNULIB_MBSPBRK.
51870         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51871         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51872
51873 2007-02-04  Bruno Haible  <bruno@clisp.org>
51874
51875         New module mbscspn.
51876         * modules/mbscspn: New file.
51877         * lib/mbscspn.c: New file.
51878         * lib/string_.h (strcspn): Add a conditional link warning.
51879         (mbscspn): New declaration.
51880         * m4/mbscspn.m4: New file.
51881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51882         GNULIB_MBSCSPN.
51883         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51884         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51885
51886 2007-02-04  Bruno Haible  <bruno@clisp.org>
51887
51888         New module mbscasestr, reduced goal of strcasestr.
51889         * modules/mbscasestr: New file.
51890         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51891         (mbscasestr): Renamed from strcasestr.
51892         * lib/strcasestr.c: Don't include mbuiter.h.
51893         (strcasestr): Remove support for multibyte locales.
51894         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51895         Change the conditional link warning.
51896         (mbscasestr): New declaration.
51897         * m4/mbscasestr.m4: New file.
51898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51899         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51900         REPLACE_STRCASESTR.
51901         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51903         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51904         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51905         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51906         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51907         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51908         (Depends-on): Remove mbuiter.
51909         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51910
51911 2007-02-04  Bruno Haible  <bruno@clisp.org>
51912
51913         Simplify handling of strncasecmp.
51914         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51915         the conditional link warning.
51916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51917         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51918         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51919         * modules/strcase (configure.ac): Don't invoke
51920         gl_STRING_MODULE_INDICATOR.
51921         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51922
51923 2007-02-04  Bruno Haible  <bruno@clisp.org>
51924
51925         New module mbscasecmp, reduced goal of strcasecmp.
51926         * modules/mbscasecmp: New file.
51927         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51928         (mbscasecmp): Renamed from strcasecmp.
51929         * lib/strcasecmp.c: Don't include mbuiter.h.
51930         (strcasecmp): Remove support for multibyte locales.
51931         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51932         Change the conditional link warning.
51933         (mbscasecmp): New declaration.
51934         * m4/mbscasecmp.m4: New file.
51935         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51936         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51937         REPLACE_STRCASECMP.
51938         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51940         GNULIB_MBSCASECMP.
51941         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51942         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51943         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51944         (Depends-on): Remove mbuiter.
51945         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51946
51947 2007-02-04  Bruno Haible  <bruno@clisp.org>
51948
51949         New module mbsstr. Remove module strstr.
51950         * modules/mbsstr: New file.
51951         * modules/strstr: Remove file.
51952         * lib/mbsstr.c: Renamed from lib/strstr.c.
51953         (mbsstr): Renamed from strstr.
51954         * lib/string_.h (strstr): Remove declaration. Change the conditional
51955         link warning.
51956         (mbsstr): New declaration.
51957         * m4/mbsstr.m4: New file.
51958         * m4/strstr.m4: Remove file.
51959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51960         REPLACE_STRSTR.
51961         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51962         Don't initialize GNULIB_STRSTR.
51963         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51964         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51965         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51966         (Support for systems lacking ANSI C 89): Remove strstr.
51967
51968 2007-02-04  Bruno Haible  <bruno@clisp.org>
51969
51970         New module mbsrchr.
51971         * modules/mbsrchr: New file.
51972         * lib/mbsrchr.c: New file.
51973         * lib/string_.h (strrchr): Add a conditional link warning.
51974         (mbsrchr): New declaration.
51975         * m4/mbsrchr.m4: New file.
51976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51977         GNULIB_MBSRCHR.
51978         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51979         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51980
51981 2007-02-04  Bruno Haible  <bruno@clisp.org>
51982
51983         New module mbschr.
51984         * modules/mbschr: New file.
51985         * lib/mbschr.c: New file.
51986         * lib/string_.h (strchr): Add a conditional link warning.
51987         (mbschr): New declaration.
51988         * m4/mbschr.m4: New file.
51989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51990         GNULIB_MBSCHR.
51991         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51992         * MODULES.html.sh (Internationalization functions): Add mbschr.
51993
51994 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51997
51998         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51999
52000 2007-02-04  Bruno Haible  <bruno@clisp.org>
52001
52002         New module description section 'configure.ac-early'.
52003         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52004         (func_get_autoconf_early_snippet): New function.
52005         (func_import, func_create_testdir): Use it. Remove special cases for
52006         modules 'extensions' and 'lock'.
52007         * modules/extensions (configure.ac-early): Require
52008         gl_USE_SYSTEM_EXTENSIONS.
52009         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52010
52011 2007-02-04  Bruno Haible  <bruno@clisp.org>
52012
52013         Make use of gcj-4.3's -fsource and -ftarget option.
52014         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52015         and if so try the options -fsource and -ftarget.
52016         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52017         source_version, ftarget_option, target_version arguments.
52018         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52019         (is_envjavac_oldgcj_14_14_usable): Renamed from
52020         is_envjavac_gcj_14_14_usable.
52021         (is_envjavac_oldgcj_14_13_usable): Renamed from
52022         is_envjavac_gcj_14_13_usable.
52023         (is_gcj_present): Update.
52024         (is_gcj_43, is_gcj43_usable): New functions.
52025         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52026         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52027         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52028         try the options -fsource and -ftarget.
52029
52030 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52031
52032         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52033         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52034         larger value.
52035
52036 2007-02-03  Jim Meyering  <jim@meyering.net>
52037
52038         Give tools a better chance to allocate space for very large buffers.
52039         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52040
52041         Make pwd and readlink work also when run with an unreadable parent dir
52042         on systems with openat support.
52043         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52044         provided getcwd function, even when we have openat support.
52045         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52046
52047 2007-02-02  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52050         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52051         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52052         portability problems if one of these functions is only used on specific
52053         platforms.
52054         Reported by Paul Eggert.
52055
52056 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52057
52058         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52059         is causing more trouble than it's curing.
52060         * lib/regex_internal.h (__mempcpy): Remove.
52061         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52062         (and make the code a tad smaller to boot).
52063         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52064
52065 2007-02-02  Jim Meyering  <jim@meyering.net>
52066
52067         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52068         section, not in the Makefile.am: one.
52069
52070 2007-02-02  Eric Blake  <ebb9@byu.net>
52071
52072         * lib/strchrnul.c: Always include config.h first.
52073
52074         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52075         gnulib strstr is not necessary here.
52076
52077 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52078
52079         * m4/socklen.m4: Fix typo.
52080
52081 2007-02-02  Eric Blake  <ebb9@byu.net>
52082
52083         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52084         * modules/netinet_in (Makefile.am): Likewise.
52085
52086 2007-02-01  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/string_.h (GL_LINK_WARNING): New macro.
52089         (strcasecmp, strstr, strcasestr): If provided by the system,
52090         conditionally define as a macro that leads to a warning instead of to
52091         an error.
52092         (strncasecmp): Conditionally define as a macro that leads to a warning.
52093
52094 2007-02-01  Karl Berry  <karl@gnu.org>
52095
52096         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52097
52098 2007-02-01  Bruno Haible  <bruno@clisp.org>
52099
52100         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52101         renamings.
52102
52103 2007-02-01  Eric Blake  <ebb9@byu.net>
52104
52105         * modules/regex (Depends-on): Revert dependence on mempcpy.
52106         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52107         module's definition of mempcpy.
52108         Reported by Paul Eggert.
52109
52110 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52111
52112         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52113         the symbol XYZ before redefining it.  This fixes a problem with
52114         programs that don't use XYZ, when compiled on systems that define
52115         XYZ to something else.
52116
52117 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52118
52119         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52120         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52121         writeable to group or other and (2) is intended to have a special
52122         mode bit that is set or cleared.  In such a case, the directory
52123         should be neither group- nor other-writeable until the special
52124         mode bits are right.
52125
52126 2007-01-31  Eric Blake  <ebb9@byu.net>
52127
52128         * modules/mountlist (Depends-on): Add strstr.
52129
52130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52131         bug.
52132         * modules/string (Makefile.am): Remove redundant replacement.
52133         * modules/regex (Depends-on): Add mempcpy.
52134
52135 2007-01-31  Bruno Haible  <bruno@clisp.org>
52136
52137         New module description field 'Link'.
52138         * gnulib-tool (func_usage): Document --extract-link-directive.
52139         (sed_extract_prog): Recognize 'Link' directive.
52140         (func_get_link_directive): New function.
52141         (func_import): Show summary of link directives.
52142         Handle --extract-link-directive option.
52143         * modules/acl (Link): New section.
52144         * modules/clock-time (Link): New section.
52145         * modules/euidaccess (Link): New section.
52146         * modules/gettext (Link): New section.
52147         * modules/iconv (Link): New section.
52148         * modules/lock (Link): New section.
52149         * modules/nanosleep (Link): New section.
52150         * modules/readline (Link): New section.
52151
52152 2007-01-27  Bruno Haible  <bruno@clisp.org>
52153
52154         Enforce the use of gnulib modules for unportable <string.h> functions.
52155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52156         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52157         (gl_HEADER_STRING_H_BODY): Require it.
52158         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52159         the symbol XYZ to one that gives a link error.
52160         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52161         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52162         * modules/mempcpy (configure.ac): Likewise.
52163         * modules/memrchr (configure.ac): Likewise.
52164         * modules/stpcpy (configure.ac): Likewise.
52165         * modules/stpncpy (configure.ac): Likewise.
52166         * modules/strcase (configure.ac): Likewise.
52167         * modules/strcasestr (configure.ac): Likewise.
52168         * modules/strchrnul (configure.ac): Likewise.
52169         * modules/strdup (configure.ac): Likewise.
52170         * modules/strndup (configure.ac): Likewise.
52171         * modules/strnlen (configure.ac): Likewise.
52172         * modules/strpbrk (configure.ac): Likewise.
52173         * modules/strsep (configure.ac): Likewise.
52174         * modules/strstr (configure.ac): Likewise.
52175         * modules/strtok_r (configure.ac): Likewise.
52176
52177 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52178
52179         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52180
52181 2007-01-30  Jim Meyering  <jim@meyering.net>
52182
52183         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52184
52185 2007-01-29  Bruno Haible  <bruno@clisp.org>
52186
52187         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52188         * lib/execute.c: Likewise.
52189         * lib/pipe.c: Likewise.
52190         * lib/printf-args.h: Likewise.
52191         * lib/printf-args.c: Likewise.
52192         * lib/printf-parse.c: Likewise.
52193         * lib/vasnprintf.c: Likewise.
52194
52195 2007-01-29  Eric Blake  <ebb9@byu.net>
52196
52197         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52198         declaration.
52199
52200 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52201
52202         * lib/strptime.h (strptime): Use 'restrict' for args where
52203         POSIX requires this.
52204         * lib/strptime.c (strptime): Likewise.
52205         Change license notice from LGPL to GPL, since gnulib-tool will
52206         change this as needed.
52207         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52208         defined.
52209         Include "strptime.h" first, to check interface.
52210         Do not #undef _LIBC and _NL_CURRENT.
52211         Do not include <stdlib.h>; no longer needed.
52212         Include "time_r.h" and declare ptime_locale_status
52213         only if _LIBC is not defined.
52214         (__P): Remove unused macro.
52215         (match_string): Bring back glibc version, but use it only if _LIBC
52216         is defined.
52217         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52218         Remove unnecessary assertion and abort() call.
52219         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52220         * m4/strptime.m4: Fix serial number comment.
52221         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52222         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52223         (Depends-on): Add time_r.
52224
52225 2007-01-29  Bruno Haible  <bruno@clisp.org>
52226
52227         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52228         strptime.
52229         * modules/strptime (Depends-on): Add stdbool.
52230         * lib/strptime.h: Include <time.h> always. Add comments.
52231
52232 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52233
52234         * modules/strptime: New file.
52235         * lib/strptime.h: New file.
52236         * lib/strptime.c: New file.
52237         * m4/strptime.m4: New file.
52238
52239 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52240
52241         * MODULES.html.sh: New module mpsort.
52242         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52243
52244         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52245         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52247         All uses changed.
52248         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52249         All uses changed.
52250         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52251         to _Restrict_.
52252         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52253         the parameter matches the prototype.
52254
52255 2007-01-28  Jim Meyering  <jim@meyering.net>
52256
52257         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52258         sys/time.h here, reverting that part of the previous patch:
52259         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52260
52261 2007-01-28  Bruno Haible  <bruno@clisp.org>
52262
52263         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52264         value of $(SYS_TIME_H).
52265         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52266         remove it conditionally, too. [added by Jim Meyering]
52267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52268         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52269         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52270         GETTIMEOFDAY_REPLACEMENT to 1.
52271
52272 2007-01-28  Bruno Haible  <bruno@clisp.org>
52273
52274         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52275         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52277         Set UNISTD_H instead of UNISTD_H2.
52278         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52279
52280 2007-01-28  Bruno Haible  <bruno@clisp.org>
52281
52282         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52283         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52284
52285 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52286
52287         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52288         (func_create_testdir): Ensure C locale for `grep' and `tr'
52289         character ranges.
52290         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52291         ACLOCAL_AMFLAGS parsing state machine.
52292
52293 2007-01-27  Bruno Haible  <bruno@clisp.org>
52294
52295         * modules/unistr/base: Update.
52296
52297 2007-01-27  Bruno Haible  <bruno@clisp.org>
52298
52299         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52300         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52301         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52302         modules/unistr/u32-mbtouc.
52303         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52304         * lib/unistr.h: Update.
52305         * lib/linebreak.c: Update.
52306         * modules/unistr/u32-mbtouc: Renamed from
52307         modules/unistr/u32-mbtouc-safe.
52308         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52309         * lib/unistr.h: Update.
52310         * lib/unistr/u32-to-u8.c: Update.
52311         * lib/unistr/u32-to-u16.c: Update.
52312
52313 2007-01-27  Bruno Haible  <bruno@clisp.org>
52314
52315         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52316         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52317         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52318         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52319         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52320         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52321         modules/unistr/u16-mbtouc.
52322         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52323         * lib/unistr.h: Update.
52324         * lib/linebreak.c: Update.
52325         * modules/linebreak: Update.
52326         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52327         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52328         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52329         * modules/unistr/u16-mbtouc: Renamed from
52330         modules/unistr/u16-mbtouc-safe.
52331         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52332         * lib/unistr.h: Update.
52333         * lib/unistr/u16-to-u8.c: Update.
52334         * modules/unistr/u16-to-u8: Update.
52335         * lib/unistr/u16-to-u32.c: Update.
52336         * modules/unistr/u16-to-u32: Update.
52337
52338 2007-01-27  Bruno Haible  <bruno@clisp.org>
52339
52340         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52341         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52342         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52343         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52344         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52345         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52346         modules/unistr/u8-mbtouc.
52347         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52348         * lib/unistr.h: Update.
52349         * lib/striconveh.c: Update.
52350         * modules/striconveh: Update.
52351         * lib/linebreak.c: Update.
52352         * modules/linebreak: Update.
52353         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52354         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52355         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52356         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52357         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52358         * lib/unistr.h: Update.
52359         * lib/striconveh.c: Update.
52360         * modules/striconveh: Update.
52361         * lib/unistr/u8-to-u16.c: Update.
52362         * modules/unistr/u8-to-u16: Update.
52363         * lib/unistr/u8-to-u32.c: Update.
52364         * modules/unistr/u8-to-u32: Update.
52365
52366 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52367
52368         Sync from Libtool.
52369         * lib/argz.c: Do not include strings.h nor memory.h, include
52370         string.h unconditionally.  Patch by Simon Josefsson.
52371
52372 2007-01-27  Bruno Haible  <bruno@clisp.org>
52373
52374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52375         from gl_HEADER_STRING_H_BODY.
52376         (gl_HEADER_STRING_H_BODY): Require it.
52377         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52378         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52379         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52380         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52381         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52382         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52384         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52385         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52386         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52387         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52388         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52389         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52390         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52391         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52392
52393 2007-01-27  Bruno Haible  <bruno@clisp.org>
52394
52395         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52396         check_PROGRAMS into noinst_PROGRAMS.
52397         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52398         check_PROGRAMS in this case.
52399         (func_import): Set for_test to false.
52400         (func_create_testdir): Set for_test to true.
52401
52402 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52403             Bruno Haible  <bruno@clisp.org>
52404
52405         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52406         (Depends-on): Add string.
52407         (Includes): Use <string.h> instead of strcasestr.h.
52408         * modules/string (Makefile.am): Also substitute the value of
52409         REPLACE_STRCASESTR.
52410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52411         assume strcasestr is declared in <string.h> not <strings.h>. Also
52412         set REPLACE_STRCASESTR.
52413         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52414         REPLACE_STRCASESTR.
52415         * lib/strcasestr.h: Remove file.
52416         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52417         * lib/string_.h (strcasestr): New declaration.
52418
52419 2007-01-27  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/string_.h: Use 'extern'.
52422
52423 2007-01-27  Jim Meyering  <jim@meyering.net>
52424
52425         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52426         of set-but-not-used local, "q".
52427
52428         * lib/mempcpy.c: Include <config.h> before <string.h>.
52429         This fixes a compilation error on HP-UX, due to the system's
52430         "restrict"-using mempcpy prototype.
52431
52432 2007-01-26  Bruno Haible  <bruno@clisp.org>
52433
52434         Small optimization.
52435         * lib/javacomp.c: Include c-strstr.h.
52436          (is_envjavac_gcj): Use c_strstr instead of strstr.
52437         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52438
52439 2007-01-26  Bruno Haible  <bruno@clisp.org>
52440
52441         * MODULES.html.sh (Unicode string functions): Add the new modules.
52442
52443         * modules/uniconv/u32-strconv-to-locale: New file.
52444         * lib/uniconv/u32-strconv-to-locale.c: New file.
52445
52446         * modules/uniconv/u16-strconv-to-locale: New file.
52447         * lib/uniconv/u16-strconv-to-locale.c: New file.
52448
52449         * modules/uniconv/u8-strconv-to-locale: New file.
52450         * lib/uniconv/u8-strconv-to-locale.c: New file.
52451
52452         * modules/uniconv/u32-strconv-from-locale: New file.
52453         * lib/uniconv/u32-strconv-from-locale.c: New file.
52454
52455         * modules/uniconv/u16-strconv-from-locale: New file.
52456         * lib/uniconv/u16-strconv-from-locale.c: New file.
52457
52458         * modules/uniconv/u8-strconv-from-locale: New file.
52459         * lib/uniconv/u8-strconv-from-locale.c: New file.
52460
52461         * modules/uniconv/u32-strconv-to-enc: New file.
52462         * lib/uniconv/u32-strconv-to-enc.c: New file.
52463         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52464         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52465
52466         * modules/uniconv/u16-strconv-to-enc: New file.
52467         * lib/uniconv/u16-strconv-to-enc.c: New file.
52468         * lib/uniconv/u-strconv-to-enc.h: New file.
52469         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52470         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52471
52472         * modules/uniconv/u8-strconv-to-enc: New file.
52473         * lib/uniconv/u8-strconv-to-enc.c: New file.
52474         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52475         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52476
52477         * modules/uniconv/u32-strconv-from-enc: New file.
52478         * lib/uniconv/u32-strconv-from-enc.c: New file.
52479         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52480         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52481
52482         * modules/uniconv/u16-strconv-from-enc: New file.
52483         * lib/uniconv/u16-strconv-from-enc.c: New file.
52484         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52485         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52486
52487         * modules/uniconv/u8-strconv-from-enc: New file.
52488         * lib/uniconv/u8-strconv-from-enc.c: New file.
52489         * lib/uniconv/u-strconv-from-enc.h: New file.
52490         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52491         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52492
52493         * modules/uniconv/u32-conv-from-enc: New file.
52494         * lib/uniconv/u32-conv-from-enc.c: New file.
52495         * modules/uniconv/u32-conv-from-enc-tests: New file.
52496         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52497
52498         * modules/uniconv/u16-conv-from-enc: New file.
52499         * lib/uniconv/u16-conv-from-enc.c: New file.
52500         * lib/uniconv/u-conv-from-enc.h: New file.
52501         * modules/uniconv/u16-conv-from-enc-tests: New file.
52502         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52503
52504         * modules/uniconv/u8-conv-from-enc: New file.
52505         * lib/uniconv/u8-conv-from-enc.c: New file.
52506         * modules/uniconv/u8-conv-from-enc-tests: New file.
52507         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52508
52509         * modules/uniconv/base: New file.
52510         * lib/uniconv.h: New file.
52511
52512 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52513
52514         * doc/gnulib-tool.texi (Initial import): Update to match current
52515         behavior with strdup module.
52516         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52517         * lib/memmem.h: Remove; all uses removed.  This is now done
52518         by <string.h>.
52519         * lib/mempcpy.h: Likewise.
52520         * lib/memrchr.h: Likewise.
52521         * lib/stpcpy.h: Likewise.
52522         * lib/stpncpy.h: Likewise.
52523         * lib/strcase.h: Likewise.
52524         * lib/strchrnul.h: Likewise.
52525         * lib/strdup.h: Likewise.
52526         * lib/strndup.h: Likewise.
52527         * lib/strnlen.h: Likewise.
52528         * lib/strpbrk.h: Likewise.
52529         * lib/strsep.h: Likewise.
52530         * lib/strstr.h: Likewise.
52531         * lib/strtok_r.h: Likewise.
52532         * lib/string_.h: New file.
52533         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52534         Rely on <string.h> instead.
52535         * lib/canon-host.c: Likewise.
52536         * lib/chdir-long.c: Likewise.
52537         * lib/concatpath.c: Likewise.
52538         * lib/exclude.c: Likewise.
52539         * lib/fchdir.c: Likewise.
52540         * lib/getaddrinfo.c: Likewise.
52541         * lib/getcwd.c: Likewise.
52542         * lib/getsubopt.c: Likewise.
52543         * lib/glob.c: Likewise.
52544         * lib/hard-locale.c: Likewise.
52545         * lib/iconvme.c: Likewise.
52546         * lib/javacomp.c: Likewise.
52547         * lib/mempcpy.c: Likewise.
52548         * lib/memrchr.c: Likewise.
52549         * lib/regex_internal.h: Likewise.
52550         * lib/stpncpy.c: Likewise.
52551         * lib/strcasecmp.c: Likewise.
52552         * lib/strchrnul.c: Likewise.
52553         * lib/strdup.c: Likewise.
52554         * lib/striconv.c: Likewise.
52555         * lib/striconveh.c: Likewise.
52556         * lib/striconveha.c: Likewise.
52557         * lib/strncasecmp.c: Likewise.
52558         * lib/strndup.c: Likewise.
52559         * lib/strnlen.c: Likewise.
52560         * lib/strsep.c: Likewise.
52561         * lib/strstr.c: Likewise.
52562         * lib/strtok_r.c: Likewise.
52563         * lib/userspec.c: Likewise.
52564         * lib/w32spawn.h: Likewise.
52565         * lib/xstrndup.c: Likewise.
52566         * lib/mountlist.c (strstr): Remove decl.
52567         * m4/string_h.m4: New file.
52568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52569         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52570         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52571         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52572         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52573         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52574         Set REPLACE_STRCASECMP if necessary.
52575         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52576         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52577         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52578         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52579         HAVE_DECL_STRDUP if necessary.
52580         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52581         since gl_FUNC_STRNDUP does that now.
52582         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52583         Check for decl here...
52584         (gl_PREREQ_STRNLEN): ... not here.
52585         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52586         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52587         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52588         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52589         necessary.
52590         * modules/string: New file.
52591         * modules/memmem (Files): Remove special-purpose include file.
52592         (Depends-on): Add string.
52593         (Include): Include <string.h>, not the removed file.
52594         * modules/mempcpy: Likewise.
52595         * modules/memrchr: Likewise.
52596         * modules/stpcpy: Likewise.
52597         * modules/stpncpy: Likewise.
52598         * modules/strcase: Likewise.
52599         * modules/strchrnul: Likewise.
52600         * modules/strdup: Likewise.
52601         * modules/strndup: Likewise.
52602         * modules/strnlen: Likewise.
52603         * modules/strpbrk: Likewise.
52604         * modules/strsep: Likewise.
52605         * modules/strstr: Likewise.
52606         * modules/strtok_r: Likewise.
52607         * tests/test-dirname.c: Don't include "strdup.h", since
52608         <string.h> now suffices.
52609         * tests/test-memmem.c: Don't include "memmem.h", since
52610         <string.h> now suffices.
52611
52612 2007-01-25  Bruno Haible  <bruno@clisp.org>
52613
52614         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52615         *resultp is 0.
52616
52617         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52618         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52619         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52620         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52621
52622         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52623         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52624         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52625         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52626         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52627         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52628
52629 2007-01-24  Bruno Haible  <bruno@clisp.org>
52630
52631         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52632         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52633         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52634         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52635         gl_FUNC_FTS_CORE.
52636         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52637         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52638         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52639         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52640         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52641         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52642         gl_FUNC_FCHOWNAT.
52643         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52644         gl_FUNC_STRFTIME.
52645         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52646         Reported by Ralf Wildenhues.
52647
52648 2007-01-24  Bruno Haible  <bruno@clisp.org>
52649
52650         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52651         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52652         gl_GETADDRINFO.
52653         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52654         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52655         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52656
52657 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52658
52659         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52660         Don't use 'exit'; just return from 'main'.
52661         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52662
52663         * lib/fnmatch_.h: Readjust white space and comments to match
52664         glibc, to avoid spurious diffs.
52665
52666 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52669         2004-12-01 change by Jakub Jelinek, since this code won't compile
52670         if !LIBC.  Problem reported by Bob Proulx.
52671
52672 2007-01-23  Bruno Haible  <bruno@clisp.org>
52673
52674         * lib/striconveh.c: Include c-strcaseeq.h.
52675         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52676         * modules/striconveh (Depends-on): Add c-strcaseeq.
52677
52678 2007-01-23  Bruno Haible  <bruno@clisp.org>
52679
52680         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52681
52682         * modules/c-strcaseeq: New file.
52683         * lib/c-strcaseeq.h: New file.
52684
52685         * modules/streq: New file.
52686         * lib/streq.h: New file.
52687
52688 2007-01-23  Bruno Haible  <bruno@clisp.org>
52689
52690         * modules/striconveha-tests: New file.
52691         * tests/test-striconveha.c: New file.
52692
52693         * lib/striconveha.h: Include <stdbool.h>.
52694         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52695         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52696         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52697         (mem_iconveha): New function.
52698         (str_iconveha_notranslit): Renamed from str_iconveha.
52699         (str_iconveha): New function.
52700         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52701         c-strcase.
52702
52703 2007-01-23  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52706         encodings without forgiving before trying any encoding with handler.
52707         (str_iconveha): Try all encodings without forgiving before trying any
52708         encoding with handler.
52709
52710 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52711
52712         Import the following changes from libc.
52713
52714         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52715
52716         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52717
52718         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52719
52720         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52721         normal_bracket label.
52722
52723         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52724
52725         [BZ #361]
52726         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52727         to normal_bracket after fetching the next character.
52728
52729 2007-01-22  Bruno Haible  <bruno@clisp.org>
52730
52731         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52732         argument.
52733         * lib/striconveh.c (iconv_carefully_1): New function.
52734         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52735         argument.
52736         (str_cd_iconveh): Update.
52737         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52738         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52739         * tests/test-striconveh.c (MAGIC): New macro.
52740         (new_offsets): New function.
52741         (main): Test call with and without offsets.
52742
52743 2007-01-22  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52746         * modules/sys_select (Makefile.am): Likewise.
52747         * modules/sys_socket (Makefile.am): Likewise.
52748         * modules/sys_time (Makefile.am): Likewise.
52749
52750 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52751
52752         * modules/gettimeofday (License): Change from GPL to LGPL, since
52753         gettimeofday is a library function.
52754
52755 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52756
52757         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52758
52759 2007-01-21  Bruno Haible  <bruno@clisp.org>
52760
52761         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52762
52763 2007-01-21  Bruno Haible  <bruno@clisp.org>
52764
52765         * modules/striconveha: New file.
52766         * lib/striconveha.h: New file.
52767         * lib/striconveha.c: New file.
52768         * MODULES.html.sh (Internationalization functions): Add striconveha.
52769         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52770         string.
52771         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52772
52773 2007-01-21  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52776         * lib/striconveh.c (str_iconveh): Likewise.
52777
52778 2007-01-21  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/striconveh.h (mem_iconveh): New declaration.
52781         * lib/striconveh.c (mem_iconveh): New function.
52782         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52783
52784 2007-01-21  Bruno Haible  <bruno@clisp.org>
52785
52786         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52787
52788         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52789         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52790         original result buffer.
52791         (str_cd_iconveh): Update.
52792         * tests/test-striconveh.c (main): Update.
52793
52794         * lib/striconv.h (mem_cd_iconv): Change specification.
52795         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52796         result buffer.
52797         (str_cd_iconv): Update.
52798         * tests/test-striconv.c (main): Update.
52799
52800 2007-01-21  Bruno Haible  <bruno@clisp.org>
52801
52802         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52803
52804 2007-01-20  Jim Meyering  <jim@meyering.net>
52805
52806         * lib/userspec.c (parse_with_separator): If a user or group string
52807         starts with "+", skip the corresponding name-to-ID look-up, since
52808         such a look-up must fail: user and group names may not include "+".
52809
52810 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52811
52812         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52813         since we now assume the sys_time module.
52814         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52815         check for sys/time.h; no longer needed.
52816         * modules/poll (Depends-on): Depend on sys_time.
52817
52818 2007-01-18  Bruno Haible  <bruno@clisp.org>
52819
52820         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52821         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52822
52823         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52824         gettimeofday.
52825
52826         * tests/test-gettimeofday.c: Include <time.h>.
52827         (dummy): Remove variable.
52828
52829         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52830         gl_HEADER_SYS_TIME_H.
52831         (gl_HEADER_SYS_TIME_H): New macro.
52832
52833         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52834         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52835         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52836         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52837         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52838         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52839         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52840         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52841         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52842         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52843         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52844
52845         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52846         last change; it caused a compilation error when cross-compiling to
52847         Cygwin.
52848
52849 2007-01-18  Jim Meyering  <jim@meyering.net>
52850
52851         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52852         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52853         than the race-prone "test -d sys || mkdir sys".
52854         (configure.ac): Use AC_PROG_MKDIR_P.
52855         * modules/sys_select: Likewise.
52856         * modules/sys_socket: Likewise.
52857         * modules/sys_time: Likewise.
52858
52859 2007-01-18  Eric Blake  <ebb9@byu.net>
52860
52861         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52862         replace gettimeofday.
52863         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52864         name, to avoid infinite recursion.
52865
52866 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52867
52868         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52869         module sys_time.
52870         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52871         assume timespec.h defines struct timeval.
52872         * lib/settime.c: Likewise.
52873         * lib/utimens.c: Likewise.
52874         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52875         since we now assume the gettimeofday module.
52876         * lib/tempname.c (__gen_tempname): Likewise.
52877         * lib/gettimeofday.h: Remove.
52878         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52879         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52880         Include <time.h>, for 'time()'.
52881         (localtime_buffer_addr): Also use this workaround if
52882         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52883         to simplify the uses.  All uses changed.
52884         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52885         that #undef is inside {}, and 'const' follows type name consistently.
52886         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52887         (gettimeofday): Do not use the maximum possible value for
52888         tv->tv_usec, since that might break usages other than ls.c.
52889         Instead, we'll leave ls.c alone.  This undoes today's patch
52890         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52891         we've never observed the problem but might as well keep the
52892         canary.
52893         * lib/nanosleep.c: Include timespec.h first, for interface check.
52894         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52895         now assume the sys_time module.
52896         * lib/tempname.c: Likewise.
52897         * lib/timespec.h: Likewise.
52898         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52899         needed.
52900         * lib/strftime.c: Likewise.
52901         * lib/timespec.h: Likewise.
52902         * lib/posixtm.c: Include posixtm.h first, for interface check.
52903         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52904         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52905         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52906         * lib/sys_time_.h: New file.
52907         * lib/timespec.h (struct timespec): Use long int, not long.
52908         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52909         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52910         Remove obsolescent call to AC_HEADER_TIME.
52911         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52914         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52915         Likewise.
52916         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52917         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52918         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52919         into the sys_time module.  Check for gettimeofday just once.
52920         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52921         for gettimeofday signature to just check the signature.  Merely
52922         compile it, since linking doesn't test signature.  Improve test for
52923         whether gettimeofday.o is actually needed.
52924         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52925         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52926         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52927         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52928         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52929         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52930         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52931         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52932         than worrying about sys/time.h.
52933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52934         Don't bother worrying about TIME_WITH_SYS_TIME.
52935         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52936         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52937         * m4/sys_time_h.m4: New file.
52938         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52939         Don't include sys/time.h.  Return from main rather than exiting.
52940         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52941         all uses changed.
52942         * modules/gethrxtime (Depends-on): Add sys_time.
52943         * modules/gettime (Depends-on): Likewise.
52944         * modules/gettimeofday (Depends-on): Likewise.
52945         * modules/nanosleep (Depends-on): Likewise.
52946         * modules/settime (Depends-on): Likewise.
52947         * modules/tempname (Depends-on): Likewise.
52948         * modules/utimens (Depends-on): Likewise.
52949         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52950         (Include:) Change back to <sys/time.h>.
52951         (Maintainer:) Add self.
52952         * modules/sys_time: New file.
52953         * modules/tempname (Depends-on): Add gettimeofday.
52954         * tests/test-gettimeofday.c: Include <sys/time.h>
52955         rather than gettimeofday.h.
52956
52957 2007-01-17  Bruno Haible  <bruno@clisp.org>
52958
52959         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52960         the license default to GPL.
52961         (func_create_testdir): Don't complain if a module is LGPL and its
52962         tests module depends on GPLed modules.
52963
52964 2007-01-17  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/gettimeofday.c (gettimeofday): Add code for the case
52967         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52968         maximum possible value for tv->tv_usec, rather than the minimum one.
52969
52970 2005-10-08  Martin Lambers  <marlam@marlam.de>
52971 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52972 2007-01-16  Bruno Haible  <bruno@clisp.org>
52973
52974         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52975         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52976         gl_FUNC_GETTIMEOFDAY.
52977         (Include): Add gettimeofday.h.
52978         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52979         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52980         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52981         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52982         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52983         * lib/gettimeofday.h: New file.
52984         * lib/gettimeofday.c: Include <sys/timeb.h>.
52985         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52986         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52987         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52988         fall back on time().
52989
52990         * tests/test-gettimeofday.c: New file.
52991         * modules/gettimeofday-tests: New file.
52992
52993 2007-01-16  Eric Blake  <ebb9@byu.net>
52994
52995         * modules/fnmatch (Depends-on): Depend on wchar.
52996         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52997         * m4/fnmatch.m4: Likewise.
52998         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52999         * m4/mbchar.m4: Likewise.
53000         * modules/mbswidth (Depends-on): Depend on wchar.
53001         * lib/mbswidth.c: Assume <wchar.h>.
53002         * m4/mbswidth.m4: Likewise.
53003         * modules/quotearg (Depends-on): Depend on wchar.
53004         * lib/quotearg.c: Assume <wchar.h>.
53005         * m4/quotearg.m4: Likewise.
53006         * modules/regex (Depends-on): Depend on wchar.
53007         * lib/regex_internal.h: Assume <wchar.h>.
53008         * m4/regex.m4: Likewise.
53009         * modules/stdint (Depends-on): Depend on wchar.
53010         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53011         * m4/stdint.m4: Likewise.
53012         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53013         * modules/strftime (Depends-on): Depend on wchar.
53014         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53015         * modules/strtol (Depends-on): Depend on wchar.
53016         * lib/strtol.c: Assume <wchar.h>.
53017         * modules/wcwidth (Depends-on): Depend on wchar.
53018         * lib/wcwidth.h: Assume <wchar.h>.
53019         * m4/wcwidth.m4: Likewise.
53020
53021 2007-01-16  Bruno Haible  <bruno@clisp.org>
53022
53023         * modules/csharpexec-script: New, created from...
53024         * modules/csharpexec: ... this.
53025
53026 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53027
53028         * modules/javaexec-script: New, created from...
53029         * modules/javaexec: ... this.
53030
53031 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53032
53033         * modules/poll (Dependencies): Add sys_select.
53034
53035 2007-01-15  Jim Meyering  <jim@meyering.net>
53036
53037         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53038         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53039         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53040         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53041
53042 2007-01-15  Bruno Haible  <bruno@clisp.org>
53043
53044         * modules/striconveh: New file.
53045         * lib/striconveh.h: New file.
53046         * lib/striconveh.c: New file.
53047         * MODULES.html.sh (Internationalization functions): Add striconveh.
53048
53049         * modules/striconveh-tests: New file.
53050         * tests/test-striconveh.c: New file.
53051
53052 2007-01-15  Bruno Haible  <bruno@clisp.org>
53053
53054         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53055         not from GNU libiconv or GNU libc.
53056
53057 2007-01-15  Bruno Haible  <bruno@clisp.org>
53058
53059         * doc/gnulib-intro.texi (Copyright): Explain the different license
53060         terms for module descriptions, autoconf macros, tests, documentation.
53061
53062 2007-01-14  Bruno Haible  <bruno@clisp.org>
53063
53064         * modules/striconv-tests: New file.
53065         * tests/test-striconv.c: New file.
53066
53067 2007-01-14  Bruno Haible  <bruno@clisp.org>
53068
53069         * modules/iconv-tests: New file.
53070         * tests/test-iconv.c: New file.
53071
53072 2007-01-14  Bruno Haible  <bruno@clisp.org>
53073
53074         * gnulib-tool (func_get_license): For test modules, use the license of
53075         the main module.
53076
53077 2007-01-14  Bruno Haible  <bruno@clisp.org>
53078
53079         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53080         if iconv is found to exist.
53081
53082 2007-01-14  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/c-ctype-tests: New file.
53085         * tests/test-c-ctype.c: New file.
53086
53087 2007-01-14  Bruno Haible  <bruno@clisp.org>
53088
53089         * modules/binary-io-tests: New file.
53090         * tests/test-binary-io.sh: New file.
53091         * tests/test-binary-io.c: New file.
53092
53093 2007-01-14  Bruno Haible  <bruno@clisp.org>
53094
53095         * modules/array-oset-tests: New file.
53096         * tests/test-array_oset.c: New file.
53097
53098 2007-01-14  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/array-list-tests: New file.
53101         * tests/test-array_list.c: New file.
53102
53103 2007-01-14  Bruno Haible  <bruno@clisp.org>
53104
53105         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53106         and make.
53107         Reported by Simon Josefsson in
53108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53109
53110 2007-01-14  Bruno Haible  <bruno@clisp.org>
53111
53112         * modules/allocsa-tests: New file.
53113         * tests/test-allocsa.c: New file.
53114
53115 2007-01-14  Bruno Haible  <bruno@clisp.org>
53116
53117         * modules/fchdir (Depends-on): Add absolute-header.
53118         * modules/unistd (Depends-on): Likewise.
53119
53120 2006-12-30  Bruno Haible  <bruno@clisp.org>
53121
53122         * modules/fchdir: New file.
53123         * modules/unistd (Files): Add lib/unistd_.h.
53124         (Makefile.am): Generate unistd.h from unistd_.h.
53125         * lib/fchdir.c: New file.
53126         * lib/dirent_.h: New file.
53127         * lib/unistd_.h: New file.
53128         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53129         * m4/fchdir.m4: New file.
53130         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53131         (gl_HEADER_UNISTD): Invoke it.
53132         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53133         function.
53134         * lib/backupfile.c (opendir, closedir): Undefine.
53135         * lib/chown.c (open, close): Undefine.
53136         * lib/clean-temp.c (open, close): Undefine.
53137         * lib/copy-file.c (open, close): Undefine.
53138         * lib/execute.c (open, close): Undefine.
53139         * lib/fsusage.c (open, close): Undefine.
53140         * lib/gc-gnulib.c (open, close): Undefine.
53141         * lib/getcwd.c (opendir, closedir): Undefine.
53142         * lib/glob.c (opendir, closedir): Undefine.
53143         * lib/javacomp.c (open, close): Undefine.
53144         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53145         * lib/openat-proc.c (open, close): Undefine.
53146         * lib/pagealign_alloc.c (open, close): Undefine.
53147         * lib/pipe.c (open, close): Undefine.
53148         * lib/progreloc.c (open, close): Undefine.
53149         * lib/savedir.c (opendir, closedir): Undefine.
53150         * lib/utime.c (open, close): Undefine.
53151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53152
53153 2007-01-10  Bruno Haible  <bruno@clisp.org>
53154
53155         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53156
53157 2007-01-12  Eric Blake  <ebb9@byu.net>
53158
53159         Provide a robust <wchar.h>.  Further simplifications are now
53160         possible in other modules, but not included here.
53161         * modules/wchar: New module.
53162         * m4/wchar.m4: New file.
53163         * lib/wchar_.h: Likewise.
53164         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53165         of the new module.
53166         * MODULES.html.sh (Extended multibyte and wide character utilities):
53167         New section.
53168
53169 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53170
53171         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53172         to a reasonable default for memory allocation.
53173         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53174         file system that reports garbage st_size values for symlinks.
53175         Problem reported by Liyang Hu.
53176
53177 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53178
53179         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53180         Emacs .#* auto-save files).
53181
53182 2007-01-11  Bruno Haible  <bruno@clisp.org>
53183
53184         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53185         directory.
53186
53187 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         Use @...@ consistently in lib/wctype_.h.
53190         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53191         on it being set to 1 or 0.
53192         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53193         go back to AC_SUBSTing it.
53194         * modules/wctype (Makefile.am): Undo previous change.
53195
53196 2007-01-10  Eric Blake  <ebb9@byu.net>
53197
53198         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53199         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53200         * modules/wctype (Makefile.am): Likewise.
53201         Reported by Chris McGuire.
53202
53203 2007-01-10  Jim Meyering  <jim@meyering.net>
53204
53205         fts.c: a small readability/maintainability improvement
53206         * lib/fts.c (fts_read): Make this code slightly more readable and
53207         maintainable by hoisting the "sp->fts_cur = p" assignments to
53208         immediately follow the statements that set P.  Derived from
53209         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53210
53211 2007-01-10  Eric Blake  <ebb9@byu.net>
53212
53213         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53214         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53216         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53217         Reported by Chris McGuire.
53218
53219 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53220
53221         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53222         in sed script.
53223
53224 2007-01-09  Bruno Haible  <bruno@clisp.org>
53225
53226         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53227         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53228         variables.
53229         (func_module): Use them.
53230
53231 2007-01-09  Bruno Haible  <bruno@clisp.org>
53232
53233         * modules/unistr/base: New file.
53234         * lib/unistr.h: New file.
53235
53236         * modules/unistr/u8-to-u16: New file.
53237         * lib/unistr/u8-to-u16.c: New file.
53238
53239         * modules/unistr/u8-to-u32: New file.
53240         * lib/unistr/u8-to-u32.c: New file.
53241
53242         * modules/unistr/u16-to-u8: New file.
53243         * lib/unistr/u16-to-u8.c: New file.
53244
53245         * modules/unistr/u16-to-u32: New file.
53246         * lib/unistr/u16-to-u32.c: New file.
53247
53248         * modules/unistr/u32-to-u8: New file.
53249         * lib/unistr/u32-to-u8.c: New file.
53250
53251         * modules/unistr/u32-to-u16: New file.
53252         * lib/unistr/u32-to-u16.c: New file.
53253
53254         * modules/unistr/u8-check: New file.
53255         * modules/unistr/u16-check: New file.
53256         * modules/unistr/u32-check: New file.
53257         * lib/unistr/u8-check.c: New file.
53258         * lib/unistr/u16-check.c: New file.
53259         * lib/unistr/u32-check.c: New file.
53260
53261         * modules/unistr/u8-chr: New file.
53262         * modules/unistr/u16-chr: New file.
53263         * modules/unistr/u32-chr: New file.
53264         * lib/unistr/u8-chr.c: New file.
53265         * lib/unistr/u16-chr.c: New file.
53266         * lib/unistr/u32-chr.c: New file.
53267
53268         * modules/unistr/u8-cmp: New file.
53269         * modules/unistr/u16-cmp: New file.
53270         * modules/unistr/u32-cmp: New file.
53271         * lib/unistr/u8-cmp.c: New file.
53272         * lib/unistr/u16-cmp.c: New file.
53273         * lib/unistr/u32-cmp.c: New file.
53274
53275         * modules/unistr/u8-cpy: New file.
53276         * modules/unistr/u16-cpy: New file.
53277         * modules/unistr/u32-cpy: New file.
53278         * lib/unistr/u8-cpy.c: New file.
53279         * lib/unistr/u16-cpy.c: New file.
53280         * lib/unistr/u32-cpy.c: New file.
53281         * lib/unistr/u-cpy.h: New file.
53282
53283         * modules/unistr/u8-cpy-alloc: New file.
53284         * modules/unistr/u16-cpy-alloc: New file.
53285         * modules/unistr/u32-cpy-alloc: New file.
53286         * lib/unistr/u8-cpy-alloc.c: New file.
53287         * lib/unistr/u16-cpy-alloc.c: New file.
53288         * lib/unistr/u32-cpy-alloc.c: New file.
53289         * lib/unistr/u-cpy-alloc.h: New file.
53290
53291         * modules/unistr/u8-endswith: New file.
53292         * modules/unistr/u16-endswith: New file.
53293         * modules/unistr/u32-endswith: New file.
53294         * lib/unistr/u8-endswith.c: New file.
53295         * lib/unistr/u16-endswith.c: New file.
53296         * lib/unistr/u32-endswith.c: New file.
53297         * lib/unistr/u-endswith.h: New file.
53298
53299         * modules/unistr/u8-mblen: New file.
53300         * modules/unistr/u16-mblen: New file.
53301         * modules/unistr/u32-mblen: New file.
53302         * lib/unistr/u8-mblen.c: New file.
53303         * lib/unistr/u16-mblen.c: New file.
53304         * lib/unistr/u32-mblen.c: New file.
53305
53306         * modules/unistr/u8-mbtouc: New file.
53307         * modules/unistr/u16-mbtouc: New file.
53308         * modules/unistr/u32-mbtouc: New file.
53309         * lib/unistr/u8-mbtouc.c: New file.
53310         * lib/unistr/u16-mbtouc.c: New file.
53311         * lib/unistr/u32-mbtouc.c: New file.
53312
53313         * modules/unistr/u8-mbtouc-safe: New file.
53314         * modules/unistr/u16-mbtouc-safe: New file.
53315         * modules/unistr/u32-mbtouc-safe: New file.
53316         * lib/unistr/u8-mbtouc-safe.c: New file.
53317         * lib/unistr/u16-mbtouc-safe.c: New file.
53318         * lib/unistr/u32-mbtouc-safe.c: New file.
53319
53320         * modules/unistr/u8-move: New file.
53321         * modules/unistr/u16-move: New file.
53322         * modules/unistr/u32-move: New file.
53323         * lib/unistr/u8-move.c: New file.
53324         * lib/unistr/u16-move.c: New file.
53325         * lib/unistr/u32-move.c: New file.
53326         * lib/unistr/u-move.h: New file.
53327
53328         * modules/unistr/u8-next: New file.
53329         * modules/unistr/u16-next: New file.
53330         * modules/unistr/u32-next: New file.
53331         * lib/unistr/u8-next.c: New file.
53332         * lib/unistr/u16-next.c: New file.
53333         * lib/unistr/u32-next.c: New file.
53334
53335         * modules/unistr/u8-prev: New file.
53336         * modules/unistr/u16-prev: New file.
53337         * modules/unistr/u32-prev: New file.
53338         * lib/unistr/u8-prev.c: New file.
53339         * lib/unistr/u16-prev.c: New file.
53340         * lib/unistr/u32-prev.c: New file.
53341
53342         * modules/unistr/u8-set: New file.
53343         * modules/unistr/u16-set: New file.
53344         * modules/unistr/u32-set: New file.
53345         * lib/unistr/u8-set.c: New file.
53346         * lib/unistr/u16-set.c: New file.
53347         * lib/unistr/u32-set.c: New file.
53348         * lib/unistr/u-set.h: New file.
53349
53350         * modules/unistr/u8-startswith: New file.
53351         * modules/unistr/u16-startswith: New file.
53352         * modules/unistr/u32-startswith: New file.
53353         * lib/unistr/u8-startswith.c: New file.
53354         * lib/unistr/u16-startswith.c: New file.
53355         * lib/unistr/u32-startswith.c: New file.
53356         * lib/unistr/u-startswith.h: New file.
53357
53358         * modules/unistr/u8-stpcpy: New file.
53359         * modules/unistr/u16-stpcpy: New file.
53360         * modules/unistr/u32-stpcpy: New file.
53361         * lib/unistr/u8-stpcpy.c: New file.
53362         * lib/unistr/u16-stpcpy.c: New file.
53363         * lib/unistr/u32-stpcpy.c: New file.
53364         * lib/unistr/u-stpcpy.h: New file.
53365
53366         * modules/unistr/u8-stpncpy: New file.
53367         * modules/unistr/u16-stpncpy: New file.
53368         * modules/unistr/u32-stpncpy: New file.
53369         * lib/unistr/u8-stpncpy.c: New file.
53370         * lib/unistr/u16-stpncpy.c: New file.
53371         * lib/unistr/u32-stpncpy.c: New file.
53372         * lib/unistr/u-stpncpy.h: New file.
53373
53374         * modules/unistr/u8-strcat: New file.
53375         * modules/unistr/u16-strcat: New file.
53376         * modules/unistr/u32-strcat: New file.
53377         * lib/unistr/u8-strcat.c: New file.
53378         * lib/unistr/u16-strcat.c: New file.
53379         * lib/unistr/u32-strcat.c: New file.
53380         * lib/unistr/u-strcat.h: New file.
53381
53382         * modules/unistr/u8-strchr: New file.
53383         * modules/unistr/u16-strchr: New file.
53384         * modules/unistr/u32-strchr: New file.
53385         * lib/unistr/u8-strchr.c: New file.
53386         * lib/unistr/u16-strchr.c: New file.
53387         * lib/unistr/u32-strchr.c: New file.
53388
53389         * modules/unistr/u8-strcmp: New file.
53390         * modules/unistr/u16-strcmp: New file.
53391         * modules/unistr/u32-strcmp: New file.
53392         * lib/unistr/u8-strcmp.c: New file.
53393         * lib/unistr/u16-strcmp.c: New file.
53394         * lib/unistr/u32-strcmp.c: New file.
53395
53396         * modules/unistr/u8-strcpy: New file.
53397         * modules/unistr/u16-strcpy: New file.
53398         * modules/unistr/u32-strcpy: New file.
53399         * lib/unistr/u8-strcpy.c: New file.
53400         * lib/unistr/u16-strcpy.c: New file.
53401         * lib/unistr/u32-strcpy.c: New file.
53402         * lib/unistr/u-strcpy.h: New file.
53403
53404         * modules/unistr/u8-strcspn: New file.
53405         * modules/unistr/u16-strcspn: New file.
53406         * modules/unistr/u32-strcspn: New file.
53407         * lib/unistr/u8-strcspn.c: New file.
53408         * lib/unistr/u16-strcspn.c: New file.
53409         * lib/unistr/u32-strcspn.c: New file.
53410         * lib/unistr/u-strcspn.h: New file.
53411
53412         * modules/unistr/u8-strdup: New file.
53413         * modules/unistr/u16-strdup: New file.
53414         * modules/unistr/u32-strdup: New file.
53415         * lib/unistr/u8-strdup.c: New file.
53416         * lib/unistr/u16-strdup.c: New file.
53417         * lib/unistr/u32-strdup.c: New file.
53418         * lib/unistr/u-strdup.h: New file.
53419
53420         * modules/unistr/u8-strlen: New file.
53421         * modules/unistr/u16-strlen: New file.
53422         * modules/unistr/u32-strlen: New file.
53423         * lib/unistr/u8-strlen.c: New file.
53424         * lib/unistr/u16-strlen.c: New file.
53425         * lib/unistr/u32-strlen.c: New file.
53426         * lib/unistr/u-strlen.h: New file.
53427
53428         * modules/unistr/u8-strmblen: New file.
53429         * modules/unistr/u16-strmblen: New file.
53430         * modules/unistr/u32-strmblen: New file.
53431         * lib/unistr/u8-strmblen.c: New file.
53432         * lib/unistr/u16-strmblen.c: New file.
53433         * lib/unistr/u32-strmblen.c: New file.
53434
53435         * modules/unistr/u8-strmbtouc: New file.
53436         * modules/unistr/u16-strmbtouc: New file.
53437         * modules/unistr/u32-strmbtouc: New file.
53438         * lib/unistr/u8-strmbtouc.c: New file.
53439         * lib/unistr/u16-strmbtouc.c: New file.
53440         * lib/unistr/u32-strmbtouc.c: New file.
53441
53442         * modules/unistr/u8-strncat: New file.
53443         * modules/unistr/u16-strncat: New file.
53444         * modules/unistr/u32-strncat: New file.
53445         * lib/unistr/u8-strncat.c: New file.
53446         * lib/unistr/u16-strncat.c: New file.
53447         * lib/unistr/u32-strncat.c: New file.
53448         * lib/unistr/u-strncat.h: New file.
53449
53450         * modules/unistr/u8-strncmp: New file.
53451         * modules/unistr/u16-strncmp: New file.
53452         * modules/unistr/u32-strncmp: New file.
53453         * lib/unistr/u8-strncmp.c: New file.
53454         * lib/unistr/u16-strncmp.c: New file.
53455         * lib/unistr/u32-strncmp.c: New file.
53456
53457         * modules/unistr/u8-strncpy: New file.
53458         * modules/unistr/u16-strncpy: New file.
53459         * modules/unistr/u32-strncpy: New file.
53460         * lib/unistr/u8-strncpy.c: New file.
53461         * lib/unistr/u16-strncpy.c: New file.
53462         * lib/unistr/u32-strncpy.c: New file.
53463         * lib/unistr/u-strncpy.h: New file.
53464
53465         * modules/unistr/u8-strnlen: New file.
53466         * modules/unistr/u16-strnlen: New file.
53467         * modules/unistr/u32-strnlen: New file.
53468         * lib/unistr/u8-strnlen.c: New file.
53469         * lib/unistr/u16-strnlen.c: New file.
53470         * lib/unistr/u32-strnlen.c: New file.
53471         * lib/unistr/u-strnlen.h: New file.
53472
53473         * modules/unistr/u8-strpbrk: New file.
53474         * modules/unistr/u16-strpbrk: New file.
53475         * modules/unistr/u32-strpbrk: New file.
53476         * lib/unistr/u8-strpbrk.c: New file.
53477         * lib/unistr/u16-strpbrk.c: New file.
53478         * lib/unistr/u32-strpbrk.c: New file.
53479         * lib/unistr/u-strpbrk.h: New file.
53480
53481         * modules/unistr/u8-strrchr: New file.
53482         * modules/unistr/u16-strrchr: New file.
53483         * modules/unistr/u32-strrchr: New file.
53484         * lib/unistr/u8-strrchr.c: New file.
53485         * lib/unistr/u16-strrchr.c: New file.
53486         * lib/unistr/u32-strrchr.c: New file.
53487
53488         * modules/unistr/u8-strspn: New file.
53489         * modules/unistr/u16-strspn: New file.
53490         * modules/unistr/u32-strspn: New file.
53491         * lib/unistr/u8-strspn.c: New file.
53492         * lib/unistr/u16-strspn.c: New file.
53493         * lib/unistr/u32-strspn.c: New file.
53494         * lib/unistr/u-strspn.h: New file.
53495
53496         * modules/unistr/u8-strstr: New file.
53497         * modules/unistr/u16-strstr: New file.
53498         * modules/unistr/u32-strstr: New file.
53499         * lib/unistr/u8-strstr.c: New file.
53500         * lib/unistr/u16-strstr.c: New file.
53501         * lib/unistr/u32-strstr.c: New file.
53502         * lib/unistr/u-strstr.h: New file.
53503
53504         * modules/unistr/u8-strtok: New file.
53505         * modules/unistr/u16-strtok: New file.
53506         * modules/unistr/u32-strtok: New file.
53507         * lib/unistr/u8-strtok.c: New file.
53508         * lib/unistr/u16-strtok.c: New file.
53509         * lib/unistr/u32-strtok.c: New file.
53510         * lib/unistr/u-strtok.h: New file.
53511
53512         * modules/unistr/u8-uctomb: New file.
53513         * modules/unistr/u16-uctomb: New file.
53514         * modules/unistr/u32-uctomb: New file.
53515         * lib/unistr/u8-uctomb.c: New file.
53516         * lib/unistr/u16-uctomb.c: New file.
53517         * lib/unistr/u32-uctomb.c: New file.
53518
53519         * MODULES.html.sh (Unicode string functions): Add the new modules.
53520
53521 2007-01-08  Bruno Haible  <bruno@clisp.org>
53522
53523         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53524         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53525         subdirectories.
53526
53527 2007-01-08  Karl Berry  <karl@gnu.org>
53528
53529         * doc/error.texi: mention that main() fns must set program_name
53530         when progname is used.
53531
53532 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53533
53534         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53535         WCTYPE_H is empty, for the benefit of builds from non-distclean
53536         directories.  Problem reported by Eric Blake in
53537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53538
53539 2007-01-08  Bruno Haible  <bruno@clisp.org>
53540
53541         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53542         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53543         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53544         PROVIDE_CANONICALIZE_FILENAME_MODE.
53545         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53546
53547 2007-01-08  Bruno Haible  <bruno@clisp.org>
53548
53549         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53550         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53551         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53552         * lib/fts.c: Likewise.
53553         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53554
53555 2006-12-25  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/utf8-ucs4-safe: New file.
53558         * lib/utf8-ucs4-safe.h: New file.
53559         * lib/unistr/utf8-ucs4-safe.c: New file.
53560
53561         * modules/utf16-ucs4-safe: New file.
53562         * lib/utf16-ucs4-safe.h: New file.
53563         * lib/unistr/utf16-ucs4-safe.c: New file.
53564
53565         * MODULES.html.sh (Unicode string functions): Add the new modules.
53566
53567 2007-01-08  Bruno Haible  <bruno@clisp.org>
53568
53569         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53570         (Depends-on): Add unitypes.
53571         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53572         (u8_mbtouc_aux): Move out to separate file.
53573         (u8_mbtouc): Use ucs4_t, uint8_t types.
53574         * lib/unistr/utf8-ucs4.c: New file.
53575
53576         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53577         (Depends-on): Add unitypes.
53578         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53579         (u16_mbtouc_aux): Move out to separate file.
53580         (u16_mbtouc): Use ucs4_t, uint16_t types.
53581         * lib/unistr/utf16-ucs4.c: New file.
53582
53583         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53584         (Depends-on): Add unitypes.
53585         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53586         (u8_uctomb_aux): Move out to separate file.
53587         (u8_uctomb): Use ucs4_t, uint8_t types.
53588         * lib/unistr/ucs4-utf8.c: New file.
53589
53590         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53591         (Depends-on): Add unitypes.
53592         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53593         (u16_uctomb_aux): Move out to separate file.
53594         (u16_uctomb): Use ucs4_t, uint16_t types.
53595         * lib/unistr/ucs4-utf16.c: New file.
53596
53597 2006-12-25  Bruno Haible  <bruno@clisp.org>
53598
53599         * modules/unitypes: New file.
53600         * lib/unitypes.h: New file.
53601         * MODULES.html.sh (func_all_modules): New section "Unicode string
53602         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53603         this section. Add unitypes.
53604
53605 2007-01-08  Bruno Haible  <bruno@clisp.org>
53606
53607         Avoid variable names that conflict with those from libtool.
53608         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53609         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53610         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53611         library_names_spec to acl_library_names_spec, hardcode_* to
53612         acl_hardcode_*.
53613         Reported by Ralf Wildenhues.
53614
53615 2007-01-08  Bruno Haible  <bruno@clisp.org>
53616
53617         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53618         definition.
53619         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53620         definition.
53621         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53622         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53623         definition.
53624         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53625         definition.
53626         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53627         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53628         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53629         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53630         definition.
53631         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53632         definition.
53633         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53634         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53635         GC_USE_<algorithm>.
53636         * lib/gc-libgcrypt.c: Likewise.
53637         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53638         * modules/gc-arctwo (configure.ac): Likewise.
53639         * modules/gc-des (configure.ac): Likewise.
53640         * modules/gc-hmac-md5 (configure.ac): Likewise.
53641         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53642         * modules/gc-md2 (configure.ac): Likewise.
53643         * modules/gc-md4 (configure.ac): Likewise.
53644         * modules/gc-md5 (configure.ac): Likewise.
53645         * modules/gc-random (configure.ac): Likewise.
53646         * modules/gc-rijndael (configure.ac): Likewise.
53647         * modules/gc-sha1 (configure.ac): Likewise.
53648
53649 2007-01-08  Bruno Haible  <bruno@clisp.org>
53650
53651         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53652         macro definition.
53653         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53654         definition.
53655         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53656         definition.
53657         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53658         * modules/fcntl-safer (configure.ac): Likewise.
53659         * modules/fopen-safer (configure.ac): Likewise.
53660         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53661         GNULIB_FWRITEERROR macro definition.
53662
53663 2007-01-08  Bruno Haible  <bruno@clisp.org>
53664
53665         * m4/gnulib-common.m4: New file.
53666         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53667         (func_get_filelist): Add m4/gnulib-common.m4.
53668
53669 2007-01-08  Bruno Haible  <bruno@clisp.org>
53670
53671         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53672         command.
53673
53674 2007-01-08  Jim Meyering  <jim@meyering.net>
53675
53676         Use a more robust test for a "can't happen" condition.
53677         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53678         narrowed the st_size value.  Presuming the "can't happen" condition
53679         is true, that narrowing could conceivably convert an invalid st_size
53680         value into a valid one.  Instead, use a change based on Matthew
53681         Woehlke's original patch.
53682
53683         Slight readability improvement: use an assert-like macro
53684         in place of literal "abort ()" uses.
53685         * lib/fts.c (fts_assert): Define.
53686         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53687         Use this macro instead of a bare 'abort'.
53688
53689 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53692         simply work around them.
53693         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53694         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53695         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53696         declaring.
53697         Don't bother to define as macros, since the standard doesn't require it.
53698         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53699         longer worry about IRIX 5.3.
53700         (HAVE_WCTYPE_CTMP_BUG): Remove.
53701
53702 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53703
53704         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53705         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53706         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53707         Problems reported by Georg Schwarz for IRIX 5.3.
53708
53709         * gnulib-tool (autoconf_minversion): Take the maximum version number
53710         found, not the minimum.  Problem reported by James Youngman.
53711
53712 2007-01-03  Karl Berry  <karl@gnu.org>
53713
53714         * doc/error.texi: new file, explaining interaction with progname.
53715         * doc/gnulib.texi: include it.  Update copyright.
53716
53717 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53718
53719         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53720         AC_CANONICAL_HOST, to improve autobuild outputs.
53721
53722 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53723             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53724
53725         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53726         sockets, server sockets, and other file descriptors.  Count errors
53727         to compute the return value.  Reorder the code a bit to be easier
53728         to follow.  Don't set event bits that were not requested (except
53729         POLLERR and POLLHUP).
53730
53731 2007-01-01  Bruno Haible  <bruno@clisp.org>
53732
53733         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53734
53735 2007-01-03  Jim Meyering  <jim@meyering.net>
53736
53737         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53738
53739 2007-01-02  Bruno Haible  <bruno@clisp.org>
53740
53741         * modules/settime (Include): Require timespec.h.
53742         * modules/nanosleep (Include): Likewise.
53743
53744 2007-01-01  Bruno Haible  <bruno@clisp.org>
53745
53746         * gnulib-tool (func_emit_copyright_notice): Bump year.
53747         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53748
53749 2007-01-01  Bruno Haible  <bruno@clisp.org>
53750
53751         Improve support for OpenBSD.
53752         * build-aux/config.rpath (libname_spec): Export.
53753         (library_names_spec): New variable. Export.
53754         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53755         library_names_spec from the config.rpath output. Locate shared library
53756         through the name pattern in library_names_spec.
53757
53758 2007-01-01  Eric Blake  <ebb9@byu.net>
53759
53760         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53761
53762 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53763
53764         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53765         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53766         assume the C locale, and avoid an "eval" that could cause trouble.
53767         Problem with SORT reported by Bob Proulx.
53768
53769         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53770         Define.  Trivial patch from Henning Nielsen Lund, originally
53771         sent to bug-grep@gnu.org today.
53772
53773 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53776         struct stat.  Problem reported by Henning Nielsen Lund.
53777         * lib/acl.c: Include acl.h first, to check interface.  Don't
53778         bother to include sys/types.h and sys/stat.h again.
53779
53780 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53781
53782         Import the following change from libc; problem reported by
53783         Sven Verdoolaege.
53784
53785         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53786
53787         [BZ #1373]
53788         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53789
53790 2006-12-28  Jim Meyering  <jim@meyering.net>
53791
53792         * build-aux/announce-gen: Do not assume that the package
53793         builds any of tar.gz, tar.bz2, and .xdelta files.
53794         Suggestion from Simon Josefsson.
53795
53796 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53797
53798         * modules/announce-gen: New file.
53799
53800 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53801
53802         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53803         handles its gotchas now.
53804         * lib/mbswidth.c: Likewise.
53805         * lib/wcwidth.h: Likewise.
53806         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53807         and iswcntrl; the wctype module does this stuff now.
53808         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53810         * modules/mbchar (Depends-on): Add wctype.
53811         * modules/mbswidth (Depends-on): Likewise.
53812         * modules/wcwidth (Depends-on): Likewise.
53813
53814 2006-12-27  Eric Blake  <ebb9@byu.net>
53815
53816         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53817         module uses more than what <wctype.h> is required to provide.
53818
53819 2006-12-26  Eric Blake  <ebb9@byu.net>
53820
53821         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53822
53823 2006-12-26  Eric Blake  <ebb9@byu.net>
53824
53825         * modules/absolute-header: New module.
53826         * modules/fcntl (Depends-on): Depend on it.
53827         * modules/inttypes (Depends-on): Likewise.
53828         * modules/stdint (Depends-on): Likewise.
53829         * modules/sys_stat (Depends-on): Likewise.
53830         * modules/wctype (Depends-on): Likewise.
53831         * MODULES.html.sh (Support for building libraries and
53832         executables): Document it.
53833
53834 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * gnulib-tool (SED): Remove, undoing previous change.
53837         The problem was that it broke coreutils on Solaris, because
53838         "sed --posix" leaked into a makefile.
53839         (sed): New alias, if 'alias' and GNU sed.
53840
53841 2006-12-24  Jim Meyering  <jim@meyering.net>
53842
53843         Work around an fchownat bug in glibc-2.4:
53844         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53845         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53846         in spite of the -P option.
53847         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53848         New macros.
53849         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53850         * modules/openat (Files): Add lib/fchownat.c.
53851         * lib/openat.c (fchownat): Don't define here.  Move to...
53852         * lib/fchownat.c: ...this new file.
53853
53854 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         Fix bug reported by Bruno Haible in
53857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53858         where quotearg.c didn't compile on Mac OS X 10.2 because it
53859         lacks <wchar.h> and wint_t.
53860         * lib/wctype_.h (__wctype_wint_t): New type.
53861         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53862         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53863         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53864         Arg is now of type __wctype_wint_t, not wint_t.
53865         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53866         substitute HAVE_WINT_T.
53867         * modules/wctype (Files): Add m4/wint_t.m4.
53868         (wctype.h): Substitute HAVE_WINT_T.
53869
53870 2006-12-23  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53873
53874 2006-12-23  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53877         S_ISLNK.
53878         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53879         mingw.
53880
53881 2006-12-22  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/copy-file.c: Include acl.h.
53884         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53885         Close the file descriptors only after being done with copy_acl.
53886         * modules/copy-file (Depends-on): Add acl.
53887
53888 2006-12-22  Bruno Haible  <bruno@clisp.org>
53889
53890         * gnulib-tool (SED): New variable.
53891         Use $SED instead of sed everywhere.
53892
53893 2006-12-22  Bruno Haible  <bruno@clisp.org>
53894
53895         * modules/no-c++: New file.
53896         * m4/no-c++.m4: New file.
53897         * MODULES.html.sh (Support for building libraries and executables):
53898         Add no-c++.
53899
53900 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53903         Include <limits.h>, and use its INT_MAX to rewrite the
53904         j loop so that it does not overflow 'int'.  Problem reported by
53905         Ralf Wildenhues in
53906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53907         Play it safe by shifting left by 1 rather than multiplying by 2,
53908         as GCC is less likely to optimize this away when the value
53909         is signed (when it assumes overflow leads to undefined behavior).
53910         Also, don't assume time_t uses two's complement.
53911
53912 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         * MODULES.html.sh: New module wctype.
53915         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53916         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53917         <wctype.h>, since the new wctype module should fix this.
53918         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53919         the wctype module should arrange for it.
53920         * lib/regex_internal.h: Likewise.
53921         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53922         since the wctype module should handle this now.
53923         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53924         * modules/fnmatch (Depends-on): Add wctype.
53925         * modules/quotearg (Depends-on): Likewise.
53926         * modules/regex (Depends-on): Likewise.
53927
53928 2006-12-19  Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53931         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53932
53933 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53934
53935         * modules/savewd (Depends-on): Fix dependency on fcntl.
53936
53937 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53938
53939         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53940         conforms to C99, rather than relying on the user's environment
53941         setting of STDINT_H.
53942
53943 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53944         and Eric Blake  <ebb9@byu.net>
53945
53946         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53947         This is more consistent with the other defines here.
53948         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53949         Port to z/OS.  Problem reported by Paul Gilmartin.
53950         Change local vars to use gl_ prefix rather than ac_.
53951         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53952         with other defines.
53953         * modules/double-slash-root: New module.
53954         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53955         (Depends-on): Add double-slash-root.
53956         * MODULES.html.sh (File system functions): Mention new module.
53957
53958 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53961         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53962         This is for the benefit of gzip, which doesn't do i18n.
53963
53964 2006-12-12  Jim Meyering  <jim@meyering.net>
53965
53966         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53967         Reported by Andreas Schwab <schwab@suse.de>.
53968
53969 2006-12-12  Bruno Haible  <bruno@clisp.org>
53970
53971         Merge these changes.
53972         2006-09-05  Bruno Haible  <bruno@clisp.org>
53973         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53974         iconv_alloc succeeded.
53975         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53976         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53977         test for " && dest " at the end - dest is always != NULL there. Call
53978         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53979         with 2xNULL arguments, also to flush the state storage. Handle the
53980         IRIX iconv behaviour. Realloc the final result, to throw away unused
53981         memory.
53982
53983 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53986         and fchmodat unconditionally, since glibc 2.4 has them.
53987         Problem reported by Arkadiusz Miskiewicz.
53988
53989 2006-12-10  Bruno Haible  <bruno@clisp.org>
53990
53991         * gnulib-tool (func_import): Show the include files only for those
53992         modules that are copied and specified.
53993         Reported by Karl Berry.
53994
53995 2006-12-08  Jim Meyering  <jim@meyering.net>
53996
53997         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53998         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53999
54000         * build-aux/announce-gen: Add two new options, both optional:
54001         --bootstrap-tools=TOOL_LIST
54002               a comma-separated list of tools, e.g.,
54003               autoconf,automake,bison,gnulib
54004         --gnulib-snapshot-date=DATE
54005               if gnulib is in the bootstrap tool list,
54006               then report this as the snapshot date.
54007               If not specified, use the current date/time.
54008               If you specify a date here, be sure it's UTC.
54009
54010 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54011
54012         * tests/test-argp-2.sh: Fix test to match actual output.
54013         (func_compare): Fix sed script to be portable.
54014
54015 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54016
54017         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54018         workaround for this case.  It is not autoconfigured now; offhand
54019         it's hard to see how to autoconfigure it.
54020
54021 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54024         a directory that is about to be chowned.  Such a directory's
54025         initial file permissions should permit the owner only and this
54026         should not be changed until after the chown, since the group and
54027         other bits would be incorrect if they granted permission before
54028         the chown.
54029
54030         Fix porting problem for iswctype reported by Georg Schwarz in:
54031         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54032         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54033         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54034         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54035         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54036
54037 2006-12-03  Jim Meyering  <jim@meyering.net>
54038
54039         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54040         p->fts_statp may not yet be defined.
54041         (fts_read): Instead, set it in the caller, once p->fts_statp is
54042         sure to be defined, and corresponds to a top-level directory.
54043         This bug made du -x fail.  Here's the coreutils test case:
54044         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54045         Reported by Mike Frysinger.
54046
54047 2006-12-01  Jim Meyering  <jim@meyering.net>
54048
54049         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54050         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54051         Reported by Simon Josefsson.
54052
54053 2006-11-30  Jim Meyering  <jim@meyering.net>
54054
54055         * m4/warning.m4: Use the all-permissive copyright notice
54056         recommended by RMS (rather than LGPL).
54057         * m4/vararrays.m4: Likewise.
54058         * m4/flexmember.m4: Likewise.
54059
54060 2006-11-29  Bruno Haible  <bruno@clisp.org>
54061
54062         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54063         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54064         using +=.
54065         Reported by Simon Josefsson <simon@josefsson.org>.
54066
54067 2006-11-28  James Youngman <jay@gnu.org>
54068
54069         * README: Advise users that they might find the bug-gnulib@gnu.org
54070         and autotools-announce@gnu.org mailing lists useful.
54071
54072 2006-11-28  Bruno Haible  <bruno@clisp.org>
54073
54074         * m4/ptrdiff_max.m4: Remove file.
54075
54076 2006-11-21  Bruno Haible  <bruno@clisp.org>
54077
54078         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54079         _AC_COMPUTE_INT.
54080         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54081         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54082         _AC_COMPUTE_INT.
54083         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54084         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54085         _AC_COMPUTE_INT.
54086         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54087
54088 2006-11-28  Jim Meyering  <jim@meyering.net>
54089
54090         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54091         warning from "gcc -Wshadow" about shadowing the builtin.
54092
54093 2006-11-27  Bruno Haible  <bruno@clisp.org>
54094
54095         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54096         _AC_COMPUTE_INT.
54097         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54098
54099 2006-11-27  Bruno Haible  <bruno@clisp.org>
54100             Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54103
54104 2006-11-26  Bruno Haible  <bruno@clisp.org>
54105
54106         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54107         noinst_LTLIBRARIES.
54108
54109 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54110             Bruno Haible  <bruno@clisp.org>
54111
54112         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54113         if compiling with "gcc -ansi".
54114
54115 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54116
54117         Fix some incompatibilities with gcc -ansi -pedantic.
54118         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54119         if compiling pedantically with GCC, unless it's C99 or later.
54120         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54121         it mishandles gcc -ansi -pedantic as well.
54122         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54123         if gcc -pedantic.
54124         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54125         initializers for struct if -pedantic, unless it's C99 or later.
54126
54127 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54128
54129         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54130         Don't close an fd more than once. Identical atimes indicate
54131         success, not failure.
54132
54133 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54134
54135         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54136
54137 2006-11-23  Jim Meyering  <jim@meyering.net>
54138
54139         * build-aux/announce-gen: New file.  From coreutils.
54140
54141 2006-11-22  Jim Meyering  <jim@meyering.net>
54142
54143         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54144         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54145         (fts_read): Use a temporary to narrow the overused st_size member
54146         before using it in a switch statement.  Reported by Matthew Woehlke.
54147
54148         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54149         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54150
54151 2006-11-20  Bruno Haible  <bruno@clisp.org>
54152
54153         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54154         changequote instead of pairs of brackets.
54155         Reported by Andreas Schwab <schwab@suse.de>.
54156
54157 2006-11-21  Jim Meyering  <jim@meyering.net>
54158
54159         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54160         so as to remain compatible with older compilers.
54161         Patch from Michael Deutschmann.
54162
54163 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54164
54165         * MODULES.html.sh (File system functions): Add openat.
54166
54167         * lib/openat.h (rpl_fstatat): New macro, if
54168         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54169         (fstatat): Define to rpl_fstatat under the same conditions,
54170         unless COMPILING_FSTATAT.
54171         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54172         seems to have the bug.
54173         * lib/fstatat.c: New file.
54174         * modules/openat (Files): Add it.
54175
54176 2006-11-20  Bruno Haible  <bruno@clisp.org>
54177
54178         * Makefile: New file.
54179
54180 2006-11-20  Jim Meyering  <jim@meyering.net>
54181
54182         The beginnings of syntax-related checks for gnulib.
54183         * lib/Makefile: New file.
54184         * lib/t-idcache: New script.  Ensure that the two halves of
54185         idcache.c stay in sync.
54186
54187         * lib/idcache.c: Adjust comments in user- and group- portions to
54188         be more accurate, and to be consistent with one another.
54189
54190 2006-11-20  Jim Meyering  <jim@meyering.net>
54191
54192         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54193         continue using the flexible array member (thus, this module performs
54194         half as many malloc calls), with the addition that...
54195         (getgroup, getuser): Consistently record a non-match via an empty
54196         "name" string, and map an empty string match to a NULL return value.
54197         * modules/idcache (Depends-on): Re-add flexmember.
54198
54199         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54200         (getuidbyname, getgroup, getgidbyname): Likewise.
54201
54202         Use cleaner syntax: NULL rather than 0.
54203         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54204
54205 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54206
54207         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54208         It mishandled the case where the group was missing.
54209         Problem reported by Greg Schafer.
54210         * modules/idcache: Likewise.
54211
54212 2006-11-18  Jim Meyering  <jim@meyering.net>
54213
54214         * check-module (%exempt_header): Add exception for some
54215         conditionally-included headers.
54216
54217         * modules/i-ring (Depends-on): Add verify.
54218         (License): Change to LGPL.
54219
54220 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54221
54222         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54223         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54224         and inttostr.h.  Use snprintf rather than uinttostr, so that
54225         LGPLed code doesn't depend on GPLed.
54226
54227 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54228
54229         * modules/inline (License): Change from GPL to LGPL.
54230
54231 2006-11-17  Jim Meyering  <jim@meyering.net>
54232
54233         * modules/d-type (License): Switch to LGPL.
54234
54235 2006-11-15  Bruno Haible  <bruno@clisp.org>
54236
54237         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54238
54239 2006-11-15  Eric Blake  <ebb9@byu.net>
54240
54241         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54242         the module dependency.
54243
54244 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54245             Bruno Haible  <bruno@clisp.org>
54246
54247         * gnulib-tool (func_create_testdir): Add license consistency check.
54248
54249 2006-11-15  Eric Blake  <ebb9@byu.net>
54250
54251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54252         random "(cached)" in configure output.
54253
54254 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54255
54256         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54257         test for conforming inttypes.h is both announced and cached.
54258
54259         * MODULES.html.sh (seen_modules, seen_files): New variables.
54260         (func_module): Rewrite to use a few less gnulib-tool and sed
54261         invocations.  Avoid a couple of quadratic algorithms for ...
54262         (missed_modules, missed_files): ... these, with ...
54263         (func_append, func_tmpdir): ... these new functions, from
54264         gnulib-tool.  Analogously, install traps for cleanup.
54265
54266         * tests/test-gc.c (main): Remove unused variables.
54267         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54268
54269 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54270
54271         * modules/inttostr (License): Change to LGPL.
54272
54273 2006-11-14  Eric Blake  <ebb9@byu.net>
54274
54275         * modules/tempname (License): Change to LGPL.
54276
54277 2006-11-14  Eric Blake  <ebb9@byu.net>
54278
54279         * doc/functions.texi (Function Portability): *printf functions on
54280         Cygwin now understand all POSIX size specifiers.
54281
54282 2006-11-14  Bruno Haible  <bruno@clisp.org>
54283
54284         * modules/c-ctype (License): Change to LGPL.
54285
54286 2006-11-12  Bruno Haible  <bruno@clisp.org>
54287
54288         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54289         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54290         for GNOME libraries, for which the include files are installed in
54291         subdirectories of $prefix/include.
54292
54293 2006-11-12  Bruno Haible  <bruno@clisp.org>
54294
54295         * m4/lib-link.m4: Require at least autoconf-2.54.
54296         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54297         name to underscores for the --with option.
54298
54299 2006-11-13  Bruno Haible  <bruno@clisp.org>
54300
54301         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54302         the tests directory.
54303         Reported by Ralf Wildenhues.
54304
54305 2006-11-13  Bruno Haible  <bruno@clisp.org>
54306
54307         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54308         (func_emit_initmacro_end): Undo the override here.
54309         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54310         Works around the famous automake error in coreutils.
54311
54312 2006-11-13  Eric Blake  <ebb9@byu.net>
54313
54314         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54315         element, not its node.
54316
54317 2006-11-12  Bruno Haible  <bruno@clisp.org>
54318
54319         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54320         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54321
54322 2006-11-12  Bruno Haible  <bruno@clisp.org>
54323
54324         * gnulib-tool: New option --local-symlink.
54325         (func_usage): Document it.
54326         (lsymbolic): New variable.
54327         (func_import, func_create_testdir): If --symlink was not specified,
54328         test whether --local-symlink was specified and the file comes from
54329         the local_gnulib_dir.
54330
54331 2006-11-12  Bruno Haible  <bruno@clisp.org>
54332
54333         * gnulib-tool (func_ln): New function.
54334         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54335
54336 2006-11-12  Bruno Haible  <bruno@clisp.org>
54337
54338         Finish support for source files in subdirectories.
54339         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54340         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54341         AUTOMAKE_OPTIONS.
54342         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54343
54344 2006-11-12  Bruno Haible  <bruno@clisp.org>
54345
54346         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54347         EXTRA_lib_SOURCES augmentation.
54348         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54349
54350 2006-11-12  Jim Meyering  <jim@meyering.net>
54351
54352         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54353         file descriptors.  This also averts a failure on systems with
54354         native openat support when a traversed directory lacks "x" access.
54355         * lib/fts_.h: Include "i-ring.h"
54356         (struct FTS) [fts_fd_ring]: New member.
54357         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54358         (FCHDIR): Add parentheses.
54359         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54360         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54361         When descending, rather than simply closing the previous
54362         fts_cwd_fd value, push that file descriptor onto the ring.
54363         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54364         (fts_open): Initialize the new fd_ring member.
54365         (fts_close): Clear the ring.
54366         (fts_safe_changedir): When possible, use our new fd_ring to skip
54367         the diropen and fstat and dev/ino comparison that would normally
54368         accompany a virtual `chdir ("..")'.
54369
54370         * modules/fts (Depends-on): Add i-ring.
54371         * modules/i-ring: New module.
54372         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54373         * m4/i-ring.m4: New file.
54374
54375 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54376
54377         * gnulib-tool (func_create_testdir): Fix replacement of
54378         `build-aux' in configure.ac.  Run autotools in gltests
54379         subdirectory.
54380         (func_create_testdir, func_create_megatestdir, test): There is
54381         no need for '--force' in most autotool invocations in a new
54382         tree.  Actually fail the whole test if any of the tools, or the
54383         configure or make stages fail.
54384
54385         Sync from Automake.
54386         * build-aux/gnupload: Revert last change.  Add pointer to upload
54387         instructions of the GNU Maintenance Instructions.
54388         Suggestion by Karl Berry.
54389
54390 2006-11-10  Jim Meyering  <jim@meyering.net>
54391
54392         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54393
54394 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54395
54396         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54397         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54398         (bind_textdomain_codeset) [! ENABLE_NLS]:
54399         Evaluate all the arguments.  That way, callers get compatible behavior
54400         if the arguments have side effects.  Also, it avoids some GCC
54401         diagnostics in some cases; Joel E. Denny reported problems when Bison
54402         was configured with --enable-gcc-warnigs.
54403
54404 2006-11-10  Jim Meyering  <jim@meyering.net>
54405
54406         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54407         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54408         account.
54409
54410 2006-11-10  Jim Meyering  <jim@meyering.net>
54411
54412         * modules/inline: New file/module.
54413         * modules/xalloc (Files): Remove m4/inline.m4.
54414         (Depends-on): Add inline, instead.
54415         * modules/oset: Likewise.
54416         * modules/list: Likewise.
54417
54418 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54421         Problem reported by Matthew Woehlke.
54422
54423 2006-11-09  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/tempname.c (gen_tempname): Remove variant that invokes
54426         __gen_tempname.
54427         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54428         __gen_tempname.
54429
54430 2006-11-08  Bruno Haible  <bruno@clisp.org>
54431
54432         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54433         to 'yes' instead of 'cross-compiling'.
54434
54435 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54436
54437         * lib/quotearg.h (quotearg_free): New decl.
54438         * lib/quotearg.c (quotearg_free): New function.
54439         (slot0, nslots, slotvec0, slotvec):
54440         Now file-scope so that quotearg_free can get at them.
54441
54442 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54443
54444         Sync from Automake.
54445         * build-aux/gnupload: Add missing 'gnu' to example URL.
54446         Report by Karl Berry.
54447
54448 2006-11-08  Bruno Haible  <bruno@clisp.org>
54449
54450         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54451         Suggested by Paul Eggert.
54452
54453 2006-11-08  Jim Meyering  <jim@meyering.net>
54454
54455         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54456         It's already included if !_LIBC.
54457         (fts_safe_changedir): Add a comment.
54458
54459 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54460
54461         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54462         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54463         Matthew Woehlke.
54464
54465         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54466         definitions up, to avoid colliding with change below.
54467         (static_inline) [HAVE_INLINE]: New macro.
54468         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54469         Provide extern decls when !HAVE_INLINE.  Do not define unless
54470         static_inline is defined, either by us or by xmalloc.c.  Use
54471         static_inline rather than static inline.
54472         (XCALLOC): Optimize sizeof(T) = 1 case.
54473         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54474
54475 2006-11-07  Bruno Haible  <bruno@clisp.org>
54476
54477         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54478         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54479         AC_C_INLINE.
54480         * modules/xalloc (Files): Add m4/inline.m4.
54481
54482 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54483
54484         * README: Fix typo.
54485         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54486         (Miscellanous Notes): ...from this.
54487
54488 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54491         Mention that offsetof should be used instead of sizeof.
54492         From Bruno Haible.
54493
54494 2006-11-07  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54497
54498 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54501         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54502         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54503         (gl_tree_add_before, gl_tree_add_after):
54504         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54505         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54506         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54507         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54508         (gl_linked_add_after, gl_linked_add_at): Likewise.
54509         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54510         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54511         (gl_tree_add_before, gl_tree_add_after): Likewise.
54512         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54513         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54514         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54515
54516 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54517
54518         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54519
54520 2006-11-06  Bruno Haible  <bruno@clisp.org>
54521
54522         * m4/inline.m4: New file.
54523         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54524         * modules/list (Files): Add m4/inline.m4.
54525         * modules/oset (Files): Likewise.
54526
54527 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * lib/idcache.c: Include <stddef.h>, for offsetof.
54530         (struct userid.name): Change from char * to a flexible array member.
54531         All uses changed.
54532         * modules/idcache (Depends-on): Add flexmember.
54533
54534         * MODULES.html.sh (Core language properties): New module flexmember.
54535         * modules/flexmember, m4/flexmember.m4: New files.
54536
54537         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54538         inline functions that are identical with the old xnmalloc_inline,
54539         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54540         that we can avoid some unnecessary integer multiplications and
54541         divisions in the common case where the element size is known at
54542         compile time.
54543         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54544         needed.
54545         (xnboundedmalloc): Remove.
54546         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54547         arguments, for consistency with rest of this header.
54548         (xcharalloc): Rewrite using XNMALLOC.
54549         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54550         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54551         versions have been moved to lib/xalloc.h and renamed to be the
54552         non-*_inline versions.
54553         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54554         and xnrealloc functions, since those functions are now inline and
54555         now call us.
54556         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54557         renaming described above.
54558         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54559         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54560         captures the dependency in AC_C_INLINE.
54561
54562         New module canonicalize-lgpl, proposed by Charles Wilson in
54563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54564         with a few small changes afterwards.
54565         * MODULES.html.sh (File system functions): New module
54566         canonicalize-lgpl.
54567         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54568         and canonicalize_file_name.
54569         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54570         * modules/canonicalize-lgpl: New files.
54571
54572 2006-11-05  Bruno Haible  <bruno@clisp.org>
54573
54574         * gnulib-tool (func_import, func_create_testdir): Create directories
54575         also for files in subdirectories of lib/.
54576
54577 2006-11-05  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54580         ANSI C compliant.
54581
54582 2006-11-03  Bruno Haible  <bruno@clisp.org>
54583
54584         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54585         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54586         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54587         (xnboundedmalloc): New inline function.
54588         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54589         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54590         xmalloc.
54591         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54592         xmalloc.
54593         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54594         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54595         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54596         xmalloc.
54597         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54598         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54599         xmalloc.
54600         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54601         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54602         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54603         xmalloc.
54604         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54605         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54606         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54607         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54608         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54609         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54610         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54611
54612 2006-11-03  Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/c-ctype.h [C++]: Define functions without name mangling.
54615         * lib/fwriteerror.h [C++]: Likewise.
54616         * lib/gcd.h [C++]: Likewise.
54617         * lib/linebreak.h [C++]: Likewise.
54618
54619 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54622         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54623         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54624         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54625         Check for functions and headers just once.
54626         Check for declaration of canonicalize_file_name.
54627         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54628
54629 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54630
54631         * gnulib-tool (func_import): Fix typo in actioncmd.
54632
54633 2006-11-02  Bruno Haible  <bruno@clisp.org>
54634
54635         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54636         newline sequence in the Makefile.am snippet as a space, like "make"
54637         does.
54638         Reported by Roger Persson <perrog@gmail.com>.
54639
54640 2006-11-01  Bruno Haible  <bruno@clisp.org>
54641
54642         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54643         already declared in <string.h>.
54644         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54645
54646 2006-11-01  Bruno Haible  <bruno@clisp.org>
54647
54648         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54649         * lib/strcase.h: Include <string.h>.
54650         (strcasecmp): Define to rpl_strcasecmp here.
54651
54652 2006-11-01  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54655
54656 2006-11-01  Eric Blake  <ebb9@byu.net>
54657
54658         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54659
54660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54661
54662 2006-10-29  Bruno Haible  <bruno@clisp.org>
54663
54664         Make it compile in C++ mode.
54665         * lib/full-write.c (full_rw): Add a cast.
54666
54667 2006-11-01  Bruno Haible  <bruno@clisp.org>
54668
54669         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54670         be POSIX compliant.
54671         Reported by Roger Persson <perrog@gmail.com>.
54672
54673 2006-11-01  Eric Blake  <ebb9@byu.net>
54674
54675         * lib/getopt_.h: Fix comments.
54676
54677 2006-10-31  Eric Blake  <ebb9@byu.net>
54678
54679         * modules/tmpdir (Depends-on): Add sys_stat.
54680         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54681         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54682         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54683         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54684         tempname.
54685
54686 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         Avoid some C++ diagnostics reported by Bruno Haible.
54689         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54690         xmalloc.
54691         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54692         (struct slotvec): Move to top level.
54693         (quotearg_n_options): Rewrite to avoid xmalloc.
54694         * lib/xalloc.h (xcharalloc): New function.
54695         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54696         [defined __cplusplus]: Add function template that provides result
54697         type propagation.  This part of the change is from Bruno Haible.
54698
54699 2006-10-29  Bruno Haible  <bruno@clisp.org>
54700
54701         Make it compile in C++ mode.
54702         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54703         * lib/strnlen1.c (strnlen1): Cast memchr result.
54704         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54705         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54706         (create_temp_dir): Rename local variable 'template'.
54707         (compile_csharp_using_sscli): Add cast.
54708         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54709         * lib/findprog.c (find_in_path): Likewise.
54710         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54711         * lib/wait-process.c (register_slave_subprocess): Likewise.
54712
54713 2006-10-22  Bruno Haible  <bruno@clisp.org>
54714
54715         * modules/tsearch: New file.
54716         * lib/tsearch.h: New file.
54717         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54718         * m4/tsearch.m4: New file.
54719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54720
54721 2006-10-29  Eric Blake  <ebb9@byu.net>
54722
54723         * lib/arcfour.c: Assume config.h.
54724         * lib/arctwo.c: Likewise.
54725         * lib/base64.c: Likewise.
54726         * lib/check-version.c: Likewise.
54727         * lib/crc.c: Likewise.
54728         * lib/des.c: Likewise.
54729         * lib/gc-gnulib.c: Likewise.
54730         * lib/gc-libgcrypt.c: Likewise.
54731         * lib/gc-pbkdf2-sha1.c: Likewise.
54732         * lib/getaddrinfo.c: Likewise.
54733         * lib/getdelim.c: Likewise.
54734         * lib/getline.c: Likewise.
54735         * lib/hmac-md5.c: Likewise.
54736         * lib/hmac-sha1.c: Likewise.
54737         * lib/iconvme.c: Likewise.
54738         * lib/md2.c: Likewise.
54739         * lib/md4.c: Likewise.
54740         * lib/memxor.c: Likewise.
54741         * lib/read-file.c: Likewise.
54742         * lib/readline.c: Likewise.
54743         * lib/rijndael-alg-fst.c: Likewise.
54744         * lib/rijndael-api-fst.c: Likewise.
54745         * lib/xgetdomainname.c: Likewise.
54746
54747 2006-10-28  Eric Blake  <ebb9@byu.net>
54748
54749         * lib/xstrndup.c: Assume config.h.
54750
54751 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54752
54753         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54754         stat-macros.h is now for our own macros, whereas stat_h is for
54755         macros in the <sys/stat.h> name space.
54756         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54757         (STAT_MACROS_H): Remove.
54758         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54759         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54760         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54761         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54762         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54763         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54764         Move these macros to ...
54765         * lib/stat_.h: here.  Don't include stat-macros.h.
54766         * lib/canonicalize.c: Don't include stat-macros.h.
54767         * lib/chown.c: Likewise.
54768         * lib/euidaccess.c: Likewise.
54769         * lib/file-type.c: Likewise.
54770         * lib/filemode.c: Likewise.
54771         * lib/glob.c: Likewise.
54772         * lib/isapipe.c: Likewise.
54773         * lib/lchown.c: Likewise.
54774         * lib/lstat.c: Likewise.
54775         * lib/mkdir-p.c: Likewise.
54776         * lib/rmdir.c: Likewise.
54777         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54778         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54779         unless mkdir isn't declared, to speed up 'configure'.
54780         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54781         would define all the S_* symbols.
54782         * modules/canonicalize (Depends-on):
54783         Depend on sys_stat, not stat-macros.
54784         * modules/chown: Likewise.
54785         * modules/euidaccess: Likewise.
54786         * modules/filemode: Likewise.
54787         * modules/file-type: Likewise.
54788         * modules/glob: Likewise.
54789         * modules/isapipe: Likewise.
54790         * modules/lchown: Likewise.
54791         * modules/lstat: Likewise.
54792         * modules/mkancesdirs: Likewise.
54793         * modules/rmdir: Likewise.
54794         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54795         * modules/modechange: Likewise.
54796         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54797         (configure.ac): Remove gl_STAT_MACROS.
54798         * modules/sys_stat (Depends-on): Remove stat-macros.
54799
54800 2006-10-27  Bruno Haible  <bruno@clisp.org>
54801
54802         * m4/signed.m4: Remove file.
54803         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54804         invocation.
54805         * modules/vasnprintf (Files): Remove m4/signed.m4.
54806
54807 2006-10-27  Bruno Haible  <bruno@clisp.org>
54808
54809         Update to GNU gettext 0.16.
54810         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54811         m4/inttypes-h.m4, m4/signed.m4.
54812         * m4/gettext.m4: Update to GNU gettext 0.16.
54813         * m4/intl.m4: New file, from GNU gettext.
54814         * m4/intldir.m4: New file, from GNU gettext.
54815         * config/srclist.txt: Update
54816
54817 2006-10-27  Eric Blake  <ebb9@byu.net>
54818
54819         * MODULES.html.sh: Document tempname.
54820         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54821         dependencies.
54822         (Files): Move lib/tempname.c...
54823         * modules/tempname: ...to this new module.
54824         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54825         (gl_PREREQ_TEMPNAME): Move...
54826         * m4/tempname.m4: ...to this new file.
54827         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54828         * modules/sys_stat (Depends-on): Add stat-macros.
54829         * lib/stat_.h (includes): Pick up stat macros.
54830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54831         if stat macros are broken.
54832         * lib/tempname.c (includes): No need to include "stat-macros.h".
54833         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54834         (direxists, __path_search) [!_LIBC]: Don't compile these in
54835         gnulib; the tmpdir module covers that.
54836         * lib/tempname.h: New file.
54837
54838 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54839
54840         * COPYING: Explain how gnulib-tool converts licence headers.
54841         Almost all wording by Eric Blake.
54842
54843 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54844
54845         * lib/mbchar.h (is_basic_table): Make read-only.
54846         * lib/mbchar.c (is_basic_table): Likewise.
54847         Reported by John Darrington.
54848
54849 2006-10-25  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/progname.h (set_program_name): Undefine before defining.
54852
54853 2006-10-25  Bruno Haible  <bruno@clisp.org>
54854
54855         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54856         false for non-gcc C++ compilers.
54857         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54858
54859 2006-10-24  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54862         iconv implementations like Irix iconv.
54863
54864 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54865
54866         * modules/vararrays: New file.
54867         * m4/vararrays.m4: New file, taken from diffutils.
54868         * MODULES.html.sh: New module vararrays.
54869
54870 2006-10-24  Karl Berry  <karl@gnu.org>
54871
54872         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54873         Don't call GNU Unix.
54874
54875 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54876
54877         * users.txt: Add Libtool.
54878
54879         Sync from Libtool:
54880
54881         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54882
54883         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54884         to gnulib's policy of including config.h unconditionally.
54885
54886 2006-10-24  Bruno Haible  <bruno@clisp.org>
54887
54888         * modules/wcwidth (Files): Add m4/wint_t.m4.
54889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54890         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54891
54892 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54893
54894         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54895         to pacify GCC with some -W flags enabled.  Problem reported by
54896         Bruno Haible.
54897
54898 2006-10-24  Jim Meyering  <jim@meyering.net>
54899
54900         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54901         Reported by Karl Berry.
54902
54903 2006-10-23  Bruno Haible  <bruno@clisp.org>
54904
54905         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54906
54907 2006-10-24  Bruno Haible  <bruno@clisp.org>
54908
54909         * lib/gl_list.h: Use C comment style, not C++ comment style.
54910
54911 2006-10-23  Eric Blake  <ebb9@byu.net>
54912
54913         * lib/getaddrinfo.c (includes): Add missing include.
54914
54915 2006-10-23  Bruno Haible  <bruno@clisp.org>
54916             Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         Ability to rename obstack_free.
54919         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54920         obstack_free.
54921         (obstack_free): Invoke the __obstack_free macro.
54922         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54923
54924 2006-10-23  Bruno Haible  <bruno@clisp.org>
54925             Paul Eggert  <eggert@cs.ucla.edu>
54926
54927         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54928         __argc, __argv from the declaration. (They are defined as macros on
54929         mingw.)
54930
54931 2006-10-22  Bruno Haible  <bruno@clisp.org>
54932
54933         * doc/gnulib-intro.texi: New file.
54934         * doc/gnulib.texi: Include it.
54935
54936 2006-10-21  Bruno Haible  <bruno@clisp.org>
54937
54938         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54939         "Introduction", "Miscellanous Notes", "Particular Modules".
54940
54941 2006-10-21  Bruno Haible  <bruno@clisp.org>
54942
54943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54944         Change mostlyclean-local rule to avoid sh syntax error from bash
54945         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54946
54947 2006-10-23  Jim Meyering  <jim@meyering.net>
54948
54949         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54950         in place of snprintf.
54951
54952         * modules/inttostr (Files): Add lib/uinttostr.c.
54953         * lib/uinttostr.c (inttostr): New file/function.
54954         * lib/inttostr.h (uinttostr): Declare.
54955         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54956         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54957         Add uinttostr.
54958         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54959
54960 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54961
54962         * lib/canonicalize.c (ELOOP): Define if not already defined.
54963         Problem reported by Bruno Haible in
54964         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54965
54966 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54969         Problem reported by Perry Smith and Ville Laurikari.
54970
54971         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54972         uses.
54973
54974 2006-10-19  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54977         for mingw.
54978
54979 2006-10-19  Bruno Haible  <bruno@clisp.org>
54980
54981         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54982         Needed for mingw.
54983
54984 2006-10-19  Bruno Haible  <bruno@clisp.org>
54985
54986         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54987
54988 2006-10-19  Bruno Haible  <bruno@clisp.org>
54989
54990         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54991         it.
54992
54993 2006-10-19  Bruno Haible  <bruno@clisp.org>
54994
54995         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54996         invocation.
54997
54998 2006-10-19  Bruno Haible  <bruno@clisp.org>
54999
55000         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55001         mountlist by default.
55002
55003 2006-10-16  Bruno Haible  <bruno@clisp.org>
55004
55005         * lib/c-strstr.c: Include c-strstr.h.
55006
55007 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55008
55009         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55010         in a slash.
55011
55012 2006-10-18  Bruno Haible  <bruno@clisp.org>
55013
55014         * lib/lock.h [C++]: Wrap definitions in extern "C".
55015
55016 2006-10-18  Bruno Haible  <bruno@clisp.org>
55017
55018         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55019         gl_LIBOBJS list.
55020
55021 2006-10-18  Bruno Haible  <bruno@clisp.org>
55022
55023         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55024
55025 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55026
55027         * lib/xstrtol.h: Include gettext.h.
55028         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55029         Problem reported by Eric Blake.
55030         * modules/xstrtol (Depends-on): Add gettext-h.
55031
55032 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55033
55034         * lib/strftime.c (advance): New macro.
55035         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55036         incomplete type, so you can't add 0 to it.  Problem and patch
55037         reported by Eelco Dolstra for dietlibc.
55038
55039 2006-10-18  Jim Meyering  <jim@meyering.net>
55040
55041         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55042         type for a local, and rename it: s/up/user_proc/.
55043
55044 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55045
55046         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55047         READ_UTMP_USER_PROCESS.
55048         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55049
55050 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55053         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55054
55055 2006-10-17  Eric Blake  <ebb9@byu.net>
55056
55057         * lib/sigprocmask.c (sigprocmask): Fix typo.
55058
55059         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55060
55061         * modules/clean-temp (Makefile.am): Don't add to make output...
55062         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55063         config.h.
55064
55065 2006-10-17  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55068         differently if DEFAULT_TEXT_DOMAIN is set.
55069
55070 2006-10-16  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/clean-temp.c: Include fwriteerror.h.
55073
55074 2006-10-16  Bruno Haible  <bruno@clisp.org>
55075
55076         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55077
55078 2006-10-16  Bruno Haible  <bruno@clisp.org>
55079
55080         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55081         * lib/sigprocmask.h: Include <sys/types.h>.
55082         (sigset_t): Use the system's definition if present.
55083
55084 2006-10-17  Eric Blake  <ebb9@byu.net>
55085
55086         * lib/xvasprintf.c (includes): Assume config.h.
55087         * lib/xasprintf.c (includes): Likewise.
55088
55089 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55090
55091         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55092         at least as wide as intmax_t.
55093
55094 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55095
55096         (Imported from Automake.)
55097         * build-aux/gnupload: Update to version 1.1 of directive file.
55098
55099 2006-10-16  Eric Blake  <ebb9@byu.net>
55100
55101         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55102         match Automake 1.10a.
55103
55104 2006-10-14  Bruno Haible  <bruno@clisp.org>
55105
55106         * modules/sigprocmask: New file.
55107         * lib/sigprocmask.h: New file.
55108         * lib/sigprocmask.c: New file.
55109         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55110         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55111         request sigprocmask.o.
55112         (gl_PREREQ_SIGPROCMASK): New macro.
55113         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55114         (Depends-on): Add sigprocmask.
55115         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55116         gt_SIGNALBLOCKING. Test for 'raise' only once.
55117         * lib/fatal-signal.c: Include sigprocmask.h.
55118         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55119         unblock_fatal_signals): Define always.
55120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55121         sigprocmask.
55122
55123 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         Sync from Automake.
55126         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55127         which incorrectly sets the mode of an existing destination
55128         directory.  In some cases the unpatched install-sh could do the
55129         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55130         system.  We hope this is rare in practice, but it's clearly worth
55131         fixing.  Problem reported by Alex Unleashed in
55132         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55133         Also, don't bother to check for -m bugs unless we're using -m;
55134         suggested by Stepan Kasal.
55135
55136 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55137
55138         Sync from Automake.
55139         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55140         `-c' flag, so they appear at the same position as in %FASTDEP%
55141         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55142         which ignores unknown options only after the first non-option.
55143         Bug report against M4 by Nelson H. F. Beebe.
55144
55145 2006-10-13  Jim Meyering  <jim@meyering.net>
55146
55147         Fix a bug in yesterday's change.
55148         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55149         p->fts_statp->st_dev would be used uninitialized.
55150         Ensures that we always call fts_stat on the very first entry.
55151         Miklos Szeredi reported that find -xdev stopped working.
55152
55153 2006-10-12  Bruno Haible  <bruno@clisp.org>
55154
55155         * gnulib-tool (func_get_automake_snippet): Append an automatically
55156         computed EXTRA_DIST augmentation.
55157         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55158         * modules/alloca-opt (Makefile.am): Likewise.
55159         * modules/allocsa (Makefile.am): Likewise.
55160         * modules/arcfour (Makefile.am): Likewise.
55161         * modules/arctwo (Makefile.am): Likewise.
55162         * modules/argmatch (Makefile.am): Likewise.
55163         * modules/argz (Makefile.am): Likewise.
55164         * modules/atexit (Makefile.am): Likewise.
55165         * modules/backupfile (Makefile.am): Likewise.
55166         * modules/byteswap (Makefile.am): Likewise.
55167         * modules/c-strtod (Makefile.am): Likewise.
55168         * modules/c-strtold (Makefile.am): Likewise.
55169         * modules/calloc (Makefile.am): Likewise.
55170         * modules/canon-host (Makefile.am): Likewise.
55171         * modules/canonicalize (Makefile.am): Likewise.
55172         * modules/chdir-long (Makefile.am): Likewise.
55173         * modules/chdir-safer (Makefile.am): Likewise.
55174         * modules/check-version (Makefile.am): Likewise.
55175         * modules/chown (Makefile.am): Likewise.
55176         * modules/cloexec (Makefile.am): Likewise.
55177         * modules/close-stream (Makefile.am): Likewise.
55178         * modules/closeout (Makefile.am): Likewise.
55179         * modules/crc (Makefile.am): Likewise.
55180         * modules/csharpexec (Makefile.am): Likewise.
55181         * modules/cycle-check (Makefile.am): Likewise.
55182         * modules/des (Makefile.am): Likewise.
55183         * modules/dev-ino (Makefile.am): Likewise.
55184         * modules/dirfd (Makefile.am): Likewise.
55185         * modules/dirname (Makefile.am): Likewise.
55186         * modules/dup2 (Makefile.am): Likewise.
55187         * modules/eealloc (Makefile.am): Likewise.
55188         * modules/error (Makefile.am): Likewise.
55189         * modules/euidaccess (Makefile.am): Likewise.
55190         * modules/exclude (Makefile.am): Likewise.
55191         * modules/exitfail (Makefile.am): Likewise.
55192         * modules/fcntl-safer (Makefile.am): Likewise.
55193         * modules/fcntl (Makefile.am): Likewise.
55194         * modules/file-type (Makefile.am): Likewise.
55195         * modules/fileblocks (Makefile.am): Likewise.
55196         * modules/filemode (Makefile.am): Likewise.
55197         * modules/filenamecat (Makefile.am): Likewise.
55198         * modules/fnmatch (Makefile.am): Likewise.
55199         * modules/fopen-safer (Makefile.am): Likewise.
55200         * modules/fpending (Makefile.am): Likewise.
55201         * modules/fprintftime (Makefile.am): Likewise.
55202         * modules/free (Makefile.am): Likewise.
55203         * modules/fsusage (Makefile.am): Likewise.
55204         * modules/ftruncate (Makefile.am): Likewise.
55205         * modules/fts (Makefile.am): Likewise.
55206         * modules/gc-arcfour (Makefile.am): Likewise.
55207         * modules/gc-des (Makefile.am): Likewise.
55208         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55209         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55210         * modules/gc-md4 (Makefile.am): Likewise.
55211         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55212         * modules/gc-sha1 (Makefile.am): Likewise.
55213         * modules/gc (Makefile.am): Likewise.
55214         * modules/getaddrinfo (Makefile.am): Likewise.
55215         * modules/getcwd (Makefile.am): Likewise.
55216         * modules/getdelim (Makefile.am): Likewise.
55217         * modules/getdomainname (Makefile.am): Likewise.
55218         * modules/getgroups (Makefile.am): Likewise.
55219         * modules/gethostname (Makefile.am): Likewise.
55220         * modules/gethrxtime (Makefile.am): Likewise.
55221         * modules/getline (Makefile.am): Likewise.
55222         * modules/getloadavg (Makefile.am): Likewise.
55223         * modules/getlogin_r (Makefile.am): Likewise.
55224         * modules/getndelim2 (Makefile.am): Likewise.
55225         * modules/getopt (Makefile.am): Likewise.
55226         * modules/getpagesize (Makefile.am): Likewise.
55227         * modules/getpass-gnu (Makefile.am): Likewise.
55228         * modules/getpass (Makefile.am): Likewise.
55229         * modules/getsubopt (Makefile.am): Likewise.
55230         * modules/gettime (Makefile.am): Likewise.
55231         * modules/gettimeofday (Makefile.am): Likewise.
55232         * modules/getugroups (Makefile.am): Likewise.
55233         * modules/getusershell (Makefile.am): Likewise.
55234         * modules/glob (Makefile.am): Likewise.
55235         * modules/group-member (Makefile.am): Likewise.
55236         * modules/hard-locale (Makefile.am): Likewise.
55237         * modules/hash (Makefile.am): Likewise.
55238         * modules/hmac-md5 (Makefile.am): Likewise.
55239         * modules/hmac-sha1 (Makefile.am): Likewise.
55240         * modules/human (Makefile.am): Likewise.
55241         * modules/idcache (Makefile.am): Likewise.
55242         * modules/imaxabs (Makefile.am): Likewise.
55243         * modules/imaxdiv (Makefile.am): Likewise.
55244         * modules/inet_ntop (Makefile.am): Likewise.
55245         * modules/inet_pton (Makefile.am): Likewise.
55246         * modules/intprops (Makefile.am): Likewise.
55247         * modules/inttostr (Makefile.am): Likewise.
55248         * modules/inttypes (Makefile.am): Likewise.
55249         * modules/isapipe (Makefile.am): Likewise.
55250         * modules/javaversion (Makefile.am): Likewise.
55251         * modules/lchmod (Makefile.am): Likewise.
55252         * modules/lchown (Makefile.am): Likewise.
55253         * modules/localcharset (Makefile.am): Likewise.
55254         * modules/long-options (Makefile.am): Likewise.
55255         * modules/lstat (Makefile.am): Likewise.
55256         * modules/malloc (Makefile.am): Likewise.
55257         * modules/mathl (Makefile.am): Likewise.
55258         * modules/mbchar (Makefile.am): Likewise.
55259         * modules/md2 (Makefile.am): Likewise.
55260         * modules/md4 (Makefile.am): Likewise.
55261         * modules/md5 (Makefile.am): Likewise.
55262         * modules/memcasecmp (Makefile.am): Likewise.
55263         * modules/memchr (Makefile.am): Likewise.
55264         * modules/memcmp (Makefile.am): Likewise.
55265         * modules/memcoll (Makefile.am): Likewise.
55266         * modules/memcpy (Makefile.am): Likewise.
55267         * modules/memmem (Makefile.am): Likewise.
55268         * modules/memmove (Makefile.am): Likewise.
55269         * modules/mempcpy (Makefile.am): Likewise.
55270         * modules/memrchr (Makefile.am): Likewise.
55271         * modules/memset (Makefile.am): Likewise.
55272         * modules/memxor (Makefile.am): Likewise.
55273         * modules/mkancesdirs (Makefile.am): Likewise.
55274         * modules/mkdir-p (Makefile.am): Likewise.
55275         * modules/mkdir (Makefile.am): Likewise.
55276         * modules/mkdtemp (Makefile.am): Likewise.
55277         * modules/mkstemp (Makefile.am): Likewise.
55278         * modules/mktime (Makefile.am): Likewise.
55279         * modules/modechange (Makefile.am): Likewise.
55280         * modules/mountlist (Makefile.am): Likewise.
55281         * modules/nanosleep (Makefile.am): Likewise.
55282         * modules/obstack (Makefile.am): Likewise.
55283         * modules/openat (Makefile.am): Likewise.
55284         * modules/pagealign_alloc (Makefile.am): Likewise.
55285         * modules/pathmax (Makefile.am): Likewise.
55286         * modules/physmem (Makefile.am): Likewise.
55287         * modules/poll (Makefile.am): Likewise.
55288         * modules/posixtm (Makefile.am): Likewise.
55289         * modules/posixver (Makefile.am): Likewise.
55290         * modules/putenv (Makefile.am): Likewise.
55291         * modules/quote (Makefile.am): Likewise.
55292         * modules/quotearg (Makefile.am): Likewise.
55293         * modules/raise (Makefile.am): Likewise.
55294         * modules/read-file (Makefile.am): Likewise.
55295         * modules/readline (Makefile.am): Likewise.
55296         * modules/readlink (Makefile.am): Likewise.
55297         * modules/readtokens (Makefile.am): Likewise.
55298         * modules/readutmp (Makefile.am): Likewise.
55299         * modules/realloc (Makefile.am): Likewise.
55300         * modules/regex (Makefile.am): Likewise.
55301         * modules/rename-dest-slash (Makefile.am): Likewise.
55302         * modules/rename (Makefile.am): Likewise.
55303         * modules/rijndael (Makefile.am): Likewise.
55304         * modules/rmdir (Makefile.am): Likewise.
55305         * modules/rpmatch (Makefile.am): Likewise.
55306         * modules/safe-read (Makefile.am): Likewise.
55307         * modules/safe-write (Makefile.am): Likewise.
55308         * modules/same-inode (Makefile.am): Likewise.
55309         * modules/same (Makefile.am): Likewise.
55310         * modules/save-cwd (Makefile.am): Likewise.
55311         * modules/savedir (Makefile.am): Likewise.
55312         * modules/setenv (Makefile.am): Likewise.
55313         * modules/settime (Makefile.am): Likewise.
55314         * modules/sha1 (Makefile.am): Likewise.
55315         * modules/sig2str (Makefile.am): Likewise.
55316         * modules/snprintf (Makefile.am): Likewise.
55317         * modules/stat-macros (Makefile.am): Likewise.
55318         * modules/stat-time (Makefile.am): Likewise.
55319         * modules/stdbool (Makefile.am): Likewise.
55320         * modules/stdint (Makefile.am): Likewise.
55321         * modules/stdlib-safer (Makefile.am): Likewise.
55322         * modules/stpcpy (Makefile.am): Likewise.
55323         * modules/stpncpy (Makefile.am): Likewise.
55324         * modules/strcase (Makefile.am): Likewise.
55325         * modules/strcasestr (Makefile.am): Likewise.
55326         * modules/strchrnul (Makefile.am): Likewise.
55327         * modules/strcspn (Makefile.am): Likewise.
55328         * modules/strdup (Makefile.am): Likewise.
55329         * modules/strerror (Makefile.am): Likewise.
55330         * modules/strftime (Makefile.am): Likewise.
55331         * modules/strndup (Makefile.am): Likewise.
55332         * modules/strnlen (Makefile.am): Likewise.
55333         * modules/strpbrk (Makefile.am): Likewise.
55334         * modules/strsep (Makefile.am): Likewise.
55335         * modules/strstr (Makefile.am): Likewise.
55336         * modules/strtod (Makefile.am): Likewise.
55337         * modules/strtoimax (Makefile.am): Likewise.
55338         * modules/strtok_r (Makefile.am): Likewise.
55339         * modules/strtol (Makefile.am): Likewise.
55340         * modules/strtoll (Makefile.am): Likewise.
55341         * modules/strtoul (Makefile.am): Likewise.
55342         * modules/strtoull (Makefile.am): Likewise.
55343         * modules/strtoumax (Makefile.am): Likewise.
55344         * modules/strverscmp (Makefile.am): Likewise.
55345         * modules/sys_socket (Makefile.am): Likewise.
55346         * modules/sys_stat (Makefile.am): Likewise.
55347         * modules/sysexits (Makefile.am): Likewise.
55348         * modules/time_r (Makefile.am): Likewise.
55349         * modules/timegm (Makefile.am): Likewise.
55350         * modules/timespec (Makefile.am): Likewise.
55351         * modules/tmpfile-safer (Makefile.am): Likewise.
55352         * modules/trim (Makefile.am): Likewise.
55353         * modules/unistd-safer (Makefile.am): Likewise.
55354         * modules/unlinkdir (Makefile.am): Likewise.
55355         * modules/unlocked-io (Makefile.am): Likewise.
55356         * modules/userspec (Makefile.am): Likewise.
55357         * modules/utime (Makefile.am): Likewise.
55358         * modules/utimecmp (Makefile.am): Likewise.
55359         * modules/utimens (Makefile.am): Likewise.
55360         * modules/vasnprintf (Makefile.am): Likewise.
55361         * modules/vasprintf (Makefile.am): Likewise.
55362         * modules/vsnprintf (Makefile.am): Likewise.
55363         * modules/xalloc (Makefile.am): Likewise.
55364         * modules/xgetcwd (Makefile.am): Likewise.
55365         * modules/xnanosleep (Makefile.am): Likewise.
55366         * modules/xreadlink (Makefile.am): Likewise.
55367         * modules/xstrtod (Makefile.am): Likewise.
55368         * modules/xstrtol (Makefile.am): Likewise.
55369         * modules/xstrtold (Makefile.am): Likewise.
55370         * modules/yesno (Makefile.am): Likewise.
55371         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55372
55373 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * modules/error (Makefile.am): Distribute files through
55376         EXTRA_DIST, not lib_SOURCES.
55377
55378 2006-10-12  Eric Blake  <ebb9@byu.net>
55379
55380         * modules/error (Makefile.am): Distribute files in /lib.
55381         * modules/obstack (Makefile.am): Likewise.
55382
55383 2006-10-12  Bruno Haible  <bruno@clisp.org>
55384
55385         * modules/acl (Makefile.am): Distribute all files in lib/ through
55386         EXTRA_DIST.
55387         * modules/arcfour (Makefile.am): Likewise.
55388         * modules/arctwo (Makefile.am): Likewise.
55389         * modules/argmatch (Makefile.am): Likewise.
55390         * modules/argz (Makefile.am): Likewise.
55391         * modules/atexit (Makefile.am): Likewise.
55392         * modules/backupfile (Makefile.am): Likewise.
55393         * modules/c-strtod (Makefile.am): Likewise.
55394         * modules/c-strtold (Makefile.am): Likewise.
55395         * modules/calloc (Makefile.am): Likewise.
55396         * modules/canon-host (Makefile.am): Likewise.
55397         * modules/canonicalize (Makefile.am): Likewise.
55398         * modules/chdir-long (Makefile.am): Likewise.
55399         * modules/chdir-safer (Makefile.am): Likewise.
55400         * modules/check-version (Makefile.am): Likewise.
55401         * modules/chown (Makefile.am): Likewise.
55402         * modules/cloexec (Makefile.am): Likewise.
55403         * modules/close-stream (Makefile.am): Likewise.
55404         * modules/closeout (Makefile.am): Likewise.
55405         * modules/crc (Makefile.am): Likewise.
55406         * modules/cycle-check (Makefile.am): Likewise.
55407         * modules/des (Makefile.am): Likewise.
55408         * modules/dirfd (Makefile.am): Likewise.
55409         * modules/dirname (Makefile.am): Likewise.
55410         * modules/dup2 (Makefile.am): Likewise.
55411         * modules/euidaccess (Makefile.am): Likewise.
55412         * modules/exclude (Makefile.am): Likewise.
55413         * modules/exitfail (Makefile.am): Likewise.
55414         * modules/fcntl-safer (Makefile.am): Likewise.
55415         * modules/file-type (Makefile.am): Likewise.
55416         * modules/fileblocks (Makefile.am): Likewise.
55417         * modules/filemode (Makefile.am): Likewise.
55418         * modules/filenamecat (Makefile.am): Likewise.
55419         * modules/fnmatch (Makefile.am): Likewise.
55420         * modules/fopen-safer (Makefile.am): Likewise.
55421         * modules/fpending (Makefile.am): Likewise.
55422         * modules/fprintftime (Makefile.am): Likewise.
55423         * modules/free (Makefile.am): Likewise.
55424         * modules/fsusage (Makefile.am): Likewise.
55425         * modules/ftruncate (Makefile.am): Likewise.
55426         * modules/fts (Makefile.am): Likewise.
55427         * modules/gc (Makefile.am): Likewise.
55428         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55429         * modules/getaddrinfo (Makefile.am): Likewise.
55430         * modules/getcwd (Makefile.am): Likewise.
55431         * modules/getdelim (Makefile.am): Likewise.
55432         * modules/getdomainname (Makefile.am): Likewise.
55433         * modules/getgroups (Makefile.am): Likewise.
55434         * modules/gethostname (Makefile.am): Likewise.
55435         * modules/gethrxtime (Makefile.am): Likewise.
55436         * modules/getline (Makefile.am): Likewise.
55437         * modules/getloadavg (Makefile.am): Likewise.
55438         * modules/getlogin_r (Makefile.am): Likewise.
55439         * modules/getopt (Makefile.am): Likewise.
55440         * modules/getpass (Makefile.am): Likewise.
55441         * modules/getpass-gnu (Makefile.am): Likewise.
55442         * modules/getsubopt (Makefile.am): Likewise.
55443         * modules/gettime (Makefile.am): Likewise.
55444         * modules/gettimeofday (Makefile.am): Likewise.
55445         * modules/getugroups (Makefile.am): Likewise.
55446         * modules/getusershell (Makefile.am): Likewise.
55447         * modules/glob (Makefile.am): Likewise.
55448         * modules/group-member (Makefile.am): Likewise.
55449         * modules/hard-locale (Makefile.am): Likewise.
55450         * modules/hash (Makefile.am): Likewise.
55451         * modules/hmac-md5 (Makefile.am): Likewise.
55452         * modules/hmac-sha1 (Makefile.am): Likewise.
55453         * modules/human (Makefile.am): Likewise.
55454         * modules/idcache (Makefile.am): Likewise.
55455         * modules/imaxabs (Makefile.am): Likewise.
55456         * modules/imaxdiv (Makefile.am): Likewise.
55457         * modules/inet_ntop (Makefile.am): Likewise.
55458         * modules/inet_pton (Makefile.am): Likewise.
55459         * modules/inttostr (Makefile.am): Likewise.
55460         * modules/isapipe (Makefile.am): Likewise.
55461         * modules/lchown (Makefile.am): Likewise.
55462         * modules/long-options (Makefile.am): Likewise.
55463         * modules/lstat (Makefile.am): Likewise.
55464         * modules/malloc (Makefile.am): Likewise.
55465         * modules/mathl (Makefile.am): Likewise.
55466         * modules/mbchar (Makefile.am): Likewise.
55467         * modules/md2 (Makefile.am): Likewise.
55468         * modules/md4 (Makefile.am): Likewise.
55469         * modules/md5 (Makefile.am): Likewise.
55470         * modules/memcasecmp (Makefile.am): Likewise.
55471         * modules/memchr (Makefile.am): Likewise.
55472         * modules/memcmp (Makefile.am): Likewise.
55473         * modules/memcoll (Makefile.am): Likewise.
55474         * modules/memcpy (Makefile.am): Likewise.
55475         * modules/memmem (Makefile.am): Likewise.
55476         * modules/memmove (Makefile.am): Likewise.
55477         * modules/mempcpy (Makefile.am): Likewise.
55478         * modules/memrchr (Makefile.am): Likewise.
55479         * modules/memset (Makefile.am): Likewise.
55480         * modules/memxor (Makefile.am): Likewise.
55481         * modules/mkancesdirs (Makefile.am): Likewise.
55482         * modules/mkdir (Makefile.am): Likewise.
55483         * modules/mkdir-p (Makefile.am): Likewise.
55484         * modules/mkdtemp (Makefile.am): Likewise.
55485         * modules/mkstemp (Makefile.am): Likewise.
55486         * modules/mktime (Makefile.am): Likewise.
55487         * modules/modechange (Makefile.am): Likewise.
55488         * modules/mountlist (Makefile.am): Likewise.
55489         * modules/nanosleep (Makefile.am): Likewise.
55490         * modules/openat (Makefile.am): Likewise.
55491         * modules/pagealign_alloc (Makefile.am): Likewise.
55492         * modules/physmem (Makefile.am): Likewise.
55493         * modules/poll (Makefile.am): Likewise.
55494         * modules/posixtm (Makefile.am): Likewise.
55495         * modules/posixver (Makefile.am): Likewise.
55496         * modules/putenv (Makefile.am): Likewise.
55497         * modules/quote (Makefile.am): Likewise.
55498         * modules/quotearg (Makefile.am): Likewise.
55499         * modules/raise (Makefile.am): Likewise.
55500         * modules/read-file (Makefile.am): Likewise.
55501         * modules/readline (Makefile.am): Likewise.
55502         * modules/readlink (Makefile.am): Likewise.
55503         * modules/readtokens (Makefile.am): Likewise.
55504         * modules/readutmp (Makefile.am): Likewise.
55505         * modules/realloc (Makefile.am): Likewise.
55506         * modules/regex (Makefile.am): Likewise.
55507         * modules/rename (Makefile.am): Likewise.
55508         * modules/rename-dest-slash (Makefile.am): Likewise.
55509         * modules/rijndael (Makefile.am): Likewise.
55510         * modules/rmdir (Makefile.am): Likewise.
55511         * modules/rpmatch (Makefile.am): Likewise.
55512         * modules/safe-read (Makefile.am): Likewise.
55513         * modules/safe-write (Makefile.am): Likewise.
55514         * modules/same (Makefile.am): Likewise.
55515         * modules/save-cwd (Makefile.am): Likewise.
55516         * modules/savedir (Makefile.am): Likewise.
55517         * modules/setenv (Makefile.am): Likewise.
55518         * modules/settime (Makefile.am): Likewise.
55519         * modules/sha1 (Makefile.am): Likewise.
55520         * modules/sig2str (Makefile.am): Likewise.
55521         * modules/snprintf (Makefile.am): Likewise.
55522         * modules/stdlib-safer (Makefile.am): Likewise.
55523         * modules/stpcpy (Makefile.am): Likewise.
55524         * modules/stpncpy (Makefile.am): Likewise.
55525         * modules/strcase (Makefile.am): Likewise.
55526         * modules/strcasestr (Makefile.am): Likewise.
55527         * modules/strchrnul (Makefile.am): Likewise.
55528         * modules/strcspn (Makefile.am): Likewise.
55529         * modules/strdup (Makefile.am): Likewise.
55530         * modules/strerror (Makefile.am): Likewise.
55531         * modules/strftime (Makefile.am): Likewise.
55532         * modules/strndup (Makefile.am): Likewise.
55533         * modules/strnlen (Makefile.am): Likewise.
55534         * modules/strpbrk (Makefile.am): Likewise.
55535         * modules/strsep (Makefile.am): Likewise.
55536         * modules/strstr (Makefile.am): Likewise.
55537         * modules/strtod (Makefile.am): Likewise.
55538         * modules/strtoimax (Makefile.am): Likewise.
55539         * modules/strtok_r (Makefile.am): Likewise.
55540         * modules/strtol (Makefile.am): Likewise.
55541         * modules/strtoll (Makefile.am): Likewise.
55542         * modules/strtoul (Makefile.am): Likewise.
55543         * modules/strtoull (Makefile.am): Likewise.
55544         * modules/strtoumax (Makefile.am): Likewise.
55545         * modules/strverscmp (Makefile.am): Likewise.
55546         * modules/time_r (Makefile.am): Likewise.
55547         * modules/timegm (Makefile.am): Likewise.
55548         * modules/tmpfile-safer (Makefile.am): Likewise.
55549         * modules/unistd-safer (Makefile.am): Likewise.
55550         * modules/unlinkdir (Makefile.am): Likewise.
55551         * modules/userspec (Makefile.am): Likewise.
55552         * modules/utime (Makefile.am): Likewise.
55553         * modules/utimecmp (Makefile.am): Likewise.
55554         * modules/utimens (Makefile.am): Likewise.
55555         * modules/vasnprintf (Makefile.am): Likewise.
55556         * modules/vasprintf (Makefile.am): Likewise.
55557         * modules/vsnprintf (Makefile.am): Likewise.
55558         * modules/xalloc (Makefile.am): Likewise.
55559         * modules/xgetcwd (Makefile.am): Likewise.
55560         * modules/xnanosleep (Makefile.am): Likewise.
55561         * modules/xreadlink (Makefile.am): Likewise.
55562         * modules/xstrtod (Makefile.am): Likewise.
55563         * modules/xstrtol (Makefile.am): Likewise.
55564         * modules/xstrtold (Makefile.am): Likewise.
55565         * modules/yesno (Makefile.am): Likewise.
55566
55567 2006-10-12  Jim Meyering  <jim@meyering.net>
55568
55569         * m4/getloadavg.m4: Revert the change below.
55570
55571         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55572         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55573         fail with a symlink, which is what coreutils' ./bootstrap now
55574         creates by default.
55575
55576 2006-10-12  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55579         mingw.
55580         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55581         MSVC and mingw explicitly.
55582
55583 2006-10-11  Simon Josefsson  <jas@extundo.com>
55584             Bruno Haible  <bruno@clisp.org>
55585
55586         Add support for multiple gnulib-tool invocations in the scope of a
55587         single configure.ac file.
55588         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55589         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55590         with the same contents as the _LIBADD variable.
55591         (func_emit_initmacro_start, func_emit_initmacro_end,
55592         func_emit_initmacro_done): New functions.
55593         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55594         gl_LIBOBJS and gl_LTLIBOBJS.
55595
55596 2006-10-11  Bruno Haible  <bruno@clisp.org>
55597
55598         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55599         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55600         autoreconf. Instead, invoke autopoint explicitly but move back the
55601         *.m4 files from gnulib.
55602
55603 2006-10-11  Bruno Haible  <bruno@clisp.org>
55604
55605         * gnulib-tool (func_usage): Make module names after --create-testdir
55606         optional.
55607         (func_create_testdir): If no module was specified, use nearly all
55608         modules.
55609
55610 2006-10-12  Jim Meyering  <jim@meyering.net>
55611
55612         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55613         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55614         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55615         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55616         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55617         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55618         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55619         (fts_set_stat_required): New function.
55620         (fts_open): Defer the calls to fts_stat, if possible or requested.
55621         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55622         into fts_stat itself.
55623         (fts_read): Perform any required (deferred) fts_stat call.
55624         (fts_build): Likewise, for the directory we're about to open and read.
55625         In the readdir loop, carefully decide whether each entry will require
55626         an eventual call to fts_stat, using dirent.d_type info if available.
55627         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55628         a command line argument into this function.  Update all callers.
55629         Map a return value of FTS_DOT to FTS_D for a command line argument.
55630         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55631         Thanks to Miklos Szeredi for his tenacity and for the initial
55632         bug report about "find" failing on a FUSE-based file system.
55633
55634         * lib/fts.c (fts_open): Use consistent indentation.
55635
55636 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55639         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55640         reported by Jim Meyering.  All uses of cache variables renamed
55641         to match Autoconf's.
55642         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55643         the other one.
55644
55645         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55646         Fix misspelling in diagnostic.
55647
55648 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55649
55650         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55651         defined.  Problem reported by Matthew Woehlke.
55652
55653         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55654         Add support for Tandem NonStop R series.
55655         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55656         Use new macro.
55657
55658         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55659         (has_trailing_slash): Omit size arg; all callers changed.
55660         Omit 'inline', since it doesn't help performance and we'd
55661         need to configure it.
55662         Don't count //, ///, etc. as having a trailing slash.
55663         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55664         (rpl_rename_dest_slash): On failure, use rename's errno rather
55665         than (in some cases) an incorrect or junk errno.
55666         Simplify code by removing need to compute length; this does
55667         cause it to make two passes instead of one over the file name,
55668         but it's worth it.
55669
55670         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55671         change, since Autoconf's version may no longer be appropriate now
55672         that we are using CVS Autoconf's version.  Add support for Tandem.
55673
55674 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55675             Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55678         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55679         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55680         gl_AC_TYPE_LONG_LONG.
55681
55682         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55683         instead of HAVE_LONG_LONG.
55684         * lib/printf-args.c (printf_fetchargs): Likewise.
55685         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55686         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55687         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55688         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55689         gl_AC_TYPE_LONG_LONG.
55690
55691 2006-10-11  Bruno Haible  <bruno@clisp.org>
55692
55693         * m4/longlong.m4: Add comments.
55694         * m4/ulonglong.m4: Likewise.
55695
55696 2006-10-10  Bruno Haible  <bruno@clisp.org>
55697
55698         Make it possible to #define stpcpy, strdup to aliases.
55699         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55700         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55701
55702 2006-10-10  Bruno Haible  <bruno@clisp.org>
55703
55704         Make it possible to #define gcd to an alias.
55705         * lib/gcd.c: Include config.h.
55706
55707 2006-10-10  Bruno Haible  <bruno@clisp.org>
55708
55709         Make it possible to #define c_isascii to an alias.
55710         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55711         defined. Undefine the macros before defining them, to avoid gcc
55712         warnings.
55713         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55714         define NO_C_CTYPE_MACROS early.
55715
55716 2006-10-10  Bruno Haible  <bruno@clisp.org>
55717
55718         Make it possible to #define set_program_name to an alias.
55719         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55720         ENABLE_RELOCATABLE early.
55721
55722 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55723
55724         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55725         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55726         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55727         More generally, don't assume that 64-bit signed int is available
55728         if unsigned int is, and vice versa.
55729         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55730         unsigned symbols, not on their signed counterparts.
55731         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55732         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55733         (UINT64_C, UINTMAX_C):
55734         Likewise.
55735         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55736         unsigned counterparts.
55737         (Have_long_long, Unsigned): New macros.
55738         (Int): Renamed from INT.
55739         (strtoimax): Use the new macros.
55740         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55741         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55742         * modules/inttypes (inttypes.h): Substitute
55743         HAVE_UNSIGNED_LONG_LONG_INT.
55744         * modules/stdint (stdint.h): Likewise.
55745         (Files): Add m4/ulonglong.m4.
55746
55747 2006-10-10  Bruno Haible  <bruno@clisp.org>
55748
55749         Fix a gcc -Wshadow warning.
55750         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55751         to 'bucket'.
55752         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55753         gl_linked_indexof_from_to): Likewise.
55754         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55755         Likewise.
55756         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55757         Likewise.
55758         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55759         Reported by Eric Blake.
55760
55761 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55762
55763         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55764         for NetBSD.  Problem reported by Bruno Haible.
55765
55766 2006-10-09  Jim Meyering  <jim@meyering.net>
55767
55768         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55769         Patch from Bruno Haible.
55770
55771 2006-10-09  Jim Meyering  <jim@meyering.net>
55772
55773         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55774         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55775         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55776
55777 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55778
55779         Don't include <config.h> twice; this doesn't work in some cases,
55780         e.g., when config.h has "#define intmax_t long long int" and
55781         we include <config.h>, <inttypes.h>, <config.h> in that order.
55782         Problem reported by Matthew Woehlke in:
55783         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55784         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55785         * lib/fts-cycle.c: Don't include config.h.
55786         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55787         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55788         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55789         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55790         inttypes.h.
55791         * lib/xstrtoumax.c: Likewise.
55792         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55793         __strtol and the like, so that this module is more like its siblings.
55794         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55795         Remove; no longer needed now that we assume gnulib inttypes.h.
55796
55797 2006-10-08  Bruno Haible  <bruno@clisp.org>
55798
55799         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55800         option.
55801
55802 2006-10-07  Jim Meyering  <jim@meyering.net>
55803
55804         * modules/inttypes (inttypes.h): Revert what seems to have been
55805         an inadvertent part of today's change: use "|", not "/" in the
55806         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55807
55808 2006-10-07  Bruno Haible  <bruno@clisp.org>
55809
55810         * modules/sublist: New file.
55811
55812 2006-10-07  Bruno Haible  <bruno@clisp.org>
55813
55814         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55815         * modules/argz (argz.h): Likewise.
55816         * modules/arpa_inet (arpa/inet.h): Likewise.
55817         * modules/byteswap (byteswap.h): Likewise.
55818         * modules/configmake (configmake.h): Likewise.
55819         * modules/fcntl (fcntl.h): Likewise.
55820         * modules/fnmatch (fnmatch.h): Likewise.
55821         * modules/getopt (getopt.h): Likewise.
55822         * modules/glob (glob.h): Likewise.
55823         * modules/inttypes (inttypes.h): Likewise.
55824         * modules/netinet_in (netinet/in.h): Likewise.
55825         * modules/poll (poll.h): Likewise.
55826         * modules/stdbool (stdbool.h): Likewise.
55827         * modules/stdint (stdint.h): Likewise.
55828         * modules/sys_select (sys/select.h): Likewise.
55829         * modules/sys_socket (sys/socket.h): Likewise.
55830         * modules/sys_stat (sys/stat.h): Likewise.
55831         * modules/sysexits (sysexits.h): Likewise.
55832         * modules/unistd (unistd.h): Likewise.
55833         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55834         Add a "DO NOT EDIT" comment to the generated file.
55835         (func_import): Likewise for gnulib-comp.m4.
55836
55837 2006-10-07  Bruno Haible  <bruno@clisp.org>
55838
55839         * lib/gl_sublist.h: New file.
55840         * lib/gl_sublist.c: New file.
55841
55842 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55843
55844         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55845         name (relative to the original working directory) and the file
55846         name component (relative to the temporary working directory).  All
55847         callers changed.
55848         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55849         * lib/mkdir-p.c (make_dir_parents): Likewise.
55850         * lib/mkdir-p.h (make_dir_parents): Likewise.
55851
55852 2006-10-06  Eric Blake  <ebb9@byu.net>
55853
55854         Define several macros for use by the clean-temp module.
55855         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55856         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55857         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55858
55859         * lib/clean-temp.h (close_stream_temp): New declaration.
55860         * lib/clean-temp.c (includes): Pull in headers according to what
55861         other modules are in use.
55862         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55863
55864 2006-10-06  Bruno Haible  <bruno@clisp.org>
55865
55866         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55867         instead of fopen, fwriteerror.
55868
55869 2006-10-06  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55872         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55873         int.
55874         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55875         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55876         Return an error indicator.
55877         Suggested by Eric Blake.
55878
55879 2006-10-06  Bruno Haible  <bruno@clisp.org>
55880
55881         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55882         Reported by Eric Blake.
55883
55884 2006-10-06  Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/closeout (Description): Mention stderr too.
55887
55888 2006-10-06  Bruno Haible  <bruno@clisp.org>
55889         and Paul Eggert  <eggert@cs.ucla.edu>
55890
55891         * lib/closeout.c (close_stdout): Also close stderr.
55892         * lib/closeout.h: Update comment.
55893
55894 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55895
55896         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55897         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55898         * lib/dirchownmod.c: Include lchown.h.
55899         * lib/lchown.c: Don't include files that lchown.h now includes.
55900         Don't declare chown, since lchown.h now does that.
55901         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55902         (lchown): Define to rpl_chown if lchown is declared but
55903         does not exist.  Declare using a prototype if lchown is not
55904         declared.  Add a copyright notice.
55905         * lib/mkstemp.h: Include <unistd.h>.
55906         * lib/openat.c: Include lchown.h.
55907
55908         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55909         we now test for that separately.
55910         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55911         rather than O_NOFOLLOW, when testing whether it's possible to
55912         avoid a race condition reliably.
55913         * lib/savewd.c (savewd_chdir): Likewise.
55914
55915         Remove macros that are no longer needed now that stdint.h is
55916         reliable.
55917         * lib/fsusage.c (UINTMAX_MAX): Remove.
55918         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55919         * lib/utimecmp.c (SIZE_MAX): Remove.
55920
55921         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55922
55923         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55924         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55925         O_NOATIME works.
55926
55927 2006-10-05  Bruno Haible  <bruno@clisp.org>
55928
55929         * lib/gl_list.h (gl_sortedlist_search_from_to,
55930         gl_sortedlist_indexof_from_to): New declarations.
55931         (gl_list_implementation): New fields sortedlist_search_from_to,
55932         sortedlist_indexof_from_to.
55933         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55934         inline functions.
55935         * lib/gl_list.c (gl_sortedlist_search_from_to,
55936         gl_sortedlist_indexof_from_to): New functions.
55937         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55938         function.
55939         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55940         (gl_array_sortedlist_search_from_to): New function.
55941         (gl_array_list_implementation): Update.
55942         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55943         function.
55944         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55945         (gl_carray_sortedlist_search_from_to): New function.
55946         (gl_carray_list_implementation): Update.
55947         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55948         gl_linked_sortedlist_indexof_from_to): New functions.
55949         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55950         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55951         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55952         gl_tree_sortedlist_indexof_from_to): New functions.
55953         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55954         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55955         Update.
55956         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55957         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55958         Update.
55959
55960 2006-10-05  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55963         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55964         (struct gl_list_implementation): Add fields search_from_to,
55965         indexof_from_to. Remove fields search, indexof.
55966         (gl_list_search): Use the search_from_to method.
55967         (gl_list_search_from, gl_list_search_from_to): New functions.
55968         (gl_list_indexof): Use the indexof_from_to method.
55969         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55970         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55971         (gl_list_search_from, gl_list_search_from_to): New functions.
55972         (gl_list_indexof): Use the indexof_from_to method.
55973         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55974         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55975         gl_array_indexof. Add start_index, end_index arguments.
55976         (gl_array_search_from_to): Renamed from gl_array_search. Add
55977         start_index, end_index arguments.
55978         (gl_array_remove, gl_array_list_implementation): Update.
55979         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55980         gl_carray_indexof. Add start_index, end_index arguments.
55981         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55982         start_index, end_index arguments.
55983         (gl_carray_remove, gl_carray_list_implementation): Update.
55984         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55985         gl_linked_search. Add start_index, end_index arguments.
55986         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55987         start_index, end_index arguments.
55988         (gl_linked_remove): Update.
55989         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55990         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55991         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55992         field to 'size_t'.
55993         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55994         gl_tree_search. Add start_index, end_index arguments.
55995         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55996         start_index, end_index arguments.
55997         (gl_tree_remove): Update.
55998         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55999         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56000         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56001         function.
56002         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56003         gl_tree_search. Add start_index, end_index arguments.
56004         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56005         start_index, end_index arguments.
56006         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56007         Update.
56008         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56009
56010 2006-10-05  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56013
56014         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56015         fwriteerror_temp): New declarations.
56016         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56017         (descriptors): New variable.
56018         (cleanup): First, close the descriptors.
56019         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56020         fclose_temp, fwriteerror_temp): New functions.
56021
56022 2006-10-04  Jim Meyering  <jim@meyering.net>
56023
56024         * lib/fts.c (fts_open): Tiny comment change.
56025
56026 2006-10-04  Bruno Haible  <bruno@clisp.org>
56027
56028         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56029         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56030         gl_LOCK_BODY.
56031         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56032         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56033         gl_LOCK_EARLY_BODY.
56034         (gl_LOCK): Require gl_LOCK_BODY.
56035
56036 2006-10-04  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56039         (gl_oset_search_atleast): New declaration.
56040         (struct gl_oset_implementation): Add field 'search_atleast'.
56041         (gl_oset_search_atleast): New inline function.
56042         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56043         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56044         (gl_array_oset_implementation): Update.
56045         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56046         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56047         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56048
56049 2006-10-04  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56052
56053 2006-10-03  Bruno Haible  <bruno@clisp.org>
56054
56055         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56056         from gl_avltreehash_list_implementation.
56057
56058 2006-10-03  Bruno Haible  <bruno@clisp.org>
56059
56060         * lib/gl_oset.c (gl_oset_add): Fix return type.
56061
56062 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56063
56064         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56065
56066 2006-10-02  Eric Blake  <ebb9@byu.net>
56067
56068         * modules/strnlen (Depends-on): Add extensions.
56069
56070 2006-10-02  Eric Blake  <ebb9@byu.net>
56071
56072         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56073         definition in 2.60+.
56074
56075 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56076
56077         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56078         checks.
56079
56080 2006-10-02  Bruno Haible  <bruno@clisp.org>
56081
56082         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56083         to the AUTOMAKE_OPTIONS.
56084         Reported by Jim Meyering.
56085
56086 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56087
56088         Work around bug in Solaris 10 /proc file system:
56089         /proc/self/fd/NNN/.. isn't the parent directory of
56090         the directory whose file descriptor is NNN.  This needs to
56091         be worked around at run time, not compile time, since a
56092         program might be built on Solaris 8, where things work, and
56093         run on Solaris 10.
56094         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56095         to use the following interface instead:
56096         (OPENAT_BUFFER_SIZE): New macro.
56097         (openat_proc_name): New function.
56098         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56099         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56100         Likewise.
56101         * lib/openat-proc.c: New file.
56102         * modules/openat (Files): Add lib/openat-proc.c.
56103         (Depends-on): Add same-inode, stdbool.
56104         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56105
56106 2006-09-29  Bruno Haible  <bruno@clisp.org>
56107
56108         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56109         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56110         argument. Set stdout_closed before testing for ferror, not after.
56111         (fwriteerror, fwriteerror_no_ebadf): New functions.
56112
56113 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56114
56115         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56116
56117 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56118
56119         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56120         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56121
56122 2006-09-28  Jim Meyering  <jim@meyering.net>
56123
56124         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56125         Include <unistd.h>.
56126
56127 2006-09-28  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56130         * modules/linkedhash-list (Depends-on): Likewise.
56131         * modules/rbtreehash-list (Depends-on): Likewise.
56132
56133 2006-09-28  Bruno Haible  <bruno@clisp.org>
56134
56135         * lib/strndup.h: Simplify the redefinition of strndup.
56136         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56138
56139 2006-09-28  Bruno Haible  <bruno@clisp.org>
56140
56141         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56142         * lib/gl_linkedhash_list.c: Likewise.
56143         * lib/gl_rbtreehash_list.c: Likewise.
56144
56145 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56148         getaddrinfo.
56149
56150         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56151         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56152         it causes <stdio_ext.h> to cause a compile-time error.
56153         Problem reported by Nelson H. F. Beebe.
56154         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56155         of HAVE_DECL___PENDING.
56156
56157         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56158         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56159         declaration.
56160
56161 2006-09-27  Jim Meyering  <jim@meyering.net>
56162
56163         This file could end up with a definition for a function
56164         named __strndup, rather than rpl_strndup on a system with
56165         incomplete weak_alias support.
56166         * lib/strndup.c (strndup): Rename from __strndup.
56167         Remove #defines that used to map __strndup to strndup.
56168         Don't use K&R prototypes.
56169         Remove LIBC-related code, since this file is not sync'd with glibc.
56170         * lib/strndup.h: Revamp, accordingly.
56171         * m4/strndup.m4: Modernize.
56172
56173 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56174
56175         * modules/savewd (Depends-on): Add 'raise'.
56176         * lib/savewd.c: Include <signal.h>, for 'raise'.
56177
56178 2006-09-26  Jim Meyering  <jim@meyering.net>
56179
56180         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56181         when we detect Darwin 8.7.0's acl_get_file bug.
56182         Rearrange to perform the new (below) run-test while $LIBS
56183         contains any acl-related library.  Set USE_ACL at the end.
56184         (gl_ACL_GET_FILE): New function.
56185
56186 2006-09-26  Eric Blake  <ebb9@byu.net>
56187
56188         * lib/verror.c: Include <config.h> unconditionally.
56189
56190 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56191
56192         * modules/clock-time (Maintainer): Add self.
56193         * modules/getlogin_r (Depends-on): Add extensions.
56194
56195 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56196
56197         * modules/clock-time: New module.
56198         * modules/nanosleep (Depends-on): Add clock-time.
56199         * modules/gethrxtime (Depends-on): Likewise.
56200         * modules/gettime (Depends-on): Likewise.
56201         * modules/settime (Depends-on): Likewise.
56202
56203         * modules/fts-lgpl: Depend on openat.
56204         * modules/mkancesdirs: Depend on savewd.
56205         * modules/mkdir-p: Likewise.
56206
56207 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56208
56209         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56210
56211         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56212         `gl_have_arbitrary_file_name_length_limit' to
56213         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56214         actually works between configure runs.
56215
56216 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56217             Bruno Haible  <bruno@clisp.org>
56218
56219         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56220
56221 2006-09-25  Jim Meyering  <jim@meyering.net>
56222
56223         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56224         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56225
56226 2006-09-25  Eric Blake  <ebb9@byu.net>
56227
56228         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56229         exec's in 2006-09-18 patch when shuffling fds.
56230
56231 2006-09-25  Bruno Haible  <bruno@clisp.org>
56232
56233         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56234         Reported by Jim Meyering.
56235
56236 2006-09-24  Jim Meyering  <jim@meyering.net>
56237
56238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56239         compare a pointer against a literal "0".  That caused failures with
56240         at least HP-UX's hpcc.
56241
56242 2006-09-22  Simon Josefsson  <jas@extundo.com>
56243
56244         * modules/gc-sha1:
56245         * modules/gc-md4:
56246         * modules/gc-hmac-sha1:
56247         * modules/gc-hmac-md5:
56248         * modules/gc-des:
56249         * modules/gc-arcfour: Distribute more files.
56250
56251 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56252
56253         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56254         (gl_linked_iterator_from_to): Initialize struct completely.
56255         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56256         (gl_tree_iterator_from_to): Likewise
56257         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56258         * lib/gl_array_list.c [lint] (gl_array_iterator)
56259         (gl_array_iterator_from_to): Likewise.
56260         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56261         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56262         (gl_carray_iterator_from_to): Likewise.
56263
56264         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56265         * lib/md4.c (md4_process_block): Remove unused variable.
56266         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56267         parentheses for clarity.
56268
56269 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56270
56271         * modules/bison-i18n (Depends-on): Add gettext.
56272
56273 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56274
56275         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56276         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56277         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56278         also add missing comma that caused broken test.
56279         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56280         stdlib.h, for `abort'.
56281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56282         variables.
56283         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56284         include unistd.h if present, for `rmdir'.
56285         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56286         variables.
56287         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56288         in the process include standard headers for prototypes.
56289         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56290         gets declared on GNU/Linux.
56291         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56292         unistd.h, for `rmdir'.
56293         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56294
56295         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56296         always true.
56297         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56298
56299         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56300
56301 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56302
56303         * gnulib-tool (func_version): Create output all at once.  This
56304         may help avoid triggering unnecessary SIGPIPEs, and at any
56305         rate it doesn't hurt.
56306
56307 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56308             Bruno Haible  <bruno@clisp.org>
56309
56310         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56311         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56312         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56313
56314         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56315         (gl_FUNC_VASPRINTF): Invoke it.
56316
56317 2006-09-22  Bruno Haible  <bruno@clisp.org>
56318
56319         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56320         getloadavg.c as first argument.
56321
56322 2006-09-22  Bruno Haible  <bruno@clisp.org>
56323
56324         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56325         at the beginning of the gl_INIT macro.
56326         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56327         gl_GETLOADAVG.
56328
56329 2006-09-22  Bruno Haible  <bruno@clisp.org>
56330
56331         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56332         module.
56333         Suggested by Ralf Wildenhues.
56334
56335 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         Import this patch from libc:
56338
56339         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56340
56341         * lib/regex_internal.c (re_string_reconstruct): Handle
56342         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56343         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56344         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56345         re_string_context_at.
56346
56347         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56348         now requires it.
56349         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56350         gl_REGEX now does it for us.
56351         (gl_REGEX): Add test taken from
56352         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56353
56354         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56355         Check that large offsets work.  Modernize Autoconf usages.
56356         Prefer "yes" to mean a good thing rather than a bad.
56357         Don't put "#define mkstemp" in config.h, as this might interfere
56358         with standard system headers that "#define mkstemp mkstemp64".
56359
56360         * modules/mkstemp (Depends-on): Add extensions, so that
56361         mkstemp is visible on some platforms.
56362         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56363         (Include): Change to "mkstemp.h" from <stdlib.h>.
56364         (Files): Add mkstemp.h.
56365
56366         * lib/mkstemp.h: New file, since some standard headers
56367         #define mkstemp.
56368         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56369         Include "mkstemp.h".
56370         Make the _LIBC code resemble glibc original more,
56371         e.g., use K&R style.
56372         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56373         (mkstemp): Remove, since mkstemp.h does this for us.
56374         * lib/stdlib--.h: Include mkstemp.h.
56375
56376         Import this patch from libc:
56377
56378         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56379
56380         * lib/tempname.c (__gen_tempname): Change attempts_min
56381         into a macro.  Use preprocessor to decide how to initialize
56382         attempts [Coverity CID 67].
56383
56384 2006-09-20  Bruno Haible  <bruno@clisp.org>
56385
56386         * lib/mkdtemp.c: Import from libc.
56387         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56388                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56389                 attempts_min into a macro.  Use preprocessor to decide how to
56390                 initialize attempts [Coverity CID 67].
56391         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56392                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56393                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56394
56395 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56396
56397         * gnulib-tool (func_exit): New function, to allow to pass the
56398         exit status portably through the trap.  Use everywhere.
56399         (--help, --version): Signal a write error.
56400         (trap): catch SIGPIPE, for write errors.
56401         Exit at the end of the trap, with the correct exit status.
56402
56403 2006-09-19  Karl Berry  <karl@gnu.org>
56404
56405         * doc/gnulib.texi: note about the license texinfo files.
56406
56407 2006-09-19  Eric Blake  <ebb9@byu.net>
56408
56409         * gnulib-tool: Avoid space-tab.
56410
56411 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56412
56413         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56414         that prevented coreutils 6.1 from building.  Problem reported
56415         by Petter Reinholdtsen.
56416
56417 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         * gnulib-tool (avoidlist): Fix typo that broke options like
56420         --avoid=lock that are used by coreutils bootstrap.
56421
56422 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56423
56424         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56425         more systematically.
56426
56427 2006-09-18  Jim Meyering  <jim@meyering.net>
56428
56429         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56430
56431 2006-09-18  Bruno Haible  <bruno@clisp.org>
56432
56433         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56434
56435 2006-09-18  Bruno Haible  <bruno@clisp.org>
56436
56437         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56438         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56439         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56440         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56441         * m4/gettext.m4: Require autoconf >= 2.52.
56442         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56443         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56444         of gl_cv_header_inttypes_h.
56445
56446 2006-09-18  Bruno Haible  <bruno@clisp.org>
56447
56448         * lib/javaversion.c: Include configmake.h.
56449
56450 2006-09-18  Bruno Haible  <bruno@clisp.org>
56451
56452         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56453         avoid that the while loops be executed in a subshell.
56454
56455 2006-09-18  Bruno Haible  <bruno@clisp.org>
56456
56457         * MODULES.html.sh (func_module): Break long lines.
56458         Suggested by Bruce Korb <bkorb@gnu.org>.
56459
56460 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56461
56462         Speed up by a factor of 1.12.
56463         * gnulib-tool (nl): New variable.
56464         (func_import): Rewrite include directive extraction to only read each
56465         directive once.
56466
56467 2006-09-17  Bruno Haible  <bruno@clisp.org>
56468
56469         * modules/javaversion (Makefile.am): Remove DEFS setting.
56470         (Depends-on): Add configmake, for PKGDATADIR definition.
56471
56472 2006-09-17  Bruno Haible  <bruno@clisp.org>
56473
56474         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56475
56476 2006-09-17  Bruno Haible  <bruno@clisp.org>
56477
56478         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56479         (func_modules_transitive_closure, func_modules_add_dummy,
56480         func_modules_to_filelist, func_import, func_create_testdir,
56481         func_create_megatestdir, ...): Use it wherever possible.
56482         Suggested by Ralf Wildenhues.
56483
56484 2006-09-16  Karl Berry  <karl@gnu.org>
56485
56486         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56487         to avoid sectioning errors.
56488         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56489         [ifinfo]: blank line after @center-ed titles.
56490         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56491         Spell FSF address consistently with others.
56492         (These changes approved by rms.)
56493
56494 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56495
56496         Speed up by a factor of 1.61.
56497         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56498         already checked module names again.
56499
56500 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56501
56502         Speed up by a factor of 1.13.
56503         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56504         for new_files, and the input to func_add_or_update.
56505
56506 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56507
56508         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56509         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56510
56511 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56512
56513         * modules/mkancesdirs (Depends-on): Add fcntl.
56514         * modules/savewd: New file.
56515         * MODULES.html.sh (File system functions): Add savewd.
56516
56517         * modules/configmake (Makefile.am): Add support for the
56518         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56519
56520 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56521
56522         * m4/savewd.m4: New file.
56523
56524 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56525
56526         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56527         (dirchownmod): New arg FD.  All callers changed.
56528         Use FD rather than opening the directory ourself, as opening is
56529         now the caller's responsibility.
56530         * lib/dirchownmod.h: Likewise.
56531         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56532         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56533         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56534         (test_dir): Remove.
56535         (mkancesdirs): Return length of prefix of FILE that has already
56536         been made, or -2 if there is a child doing the work.  Redo
56537         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56538         ".", and treat ".." specially since it might stray back into
56539         already-created areas.  Use a subprocess if necessary.  New arg
56540         WD; all users changed.  MAKE_DIR function should now return 1
56541         if it creates a directory that is not readable.  Return -2 if
56542         a child process is spun off.
56543         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56544         Adjust signature to match code.
56545         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56546         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56547         all users changed.
56548         * lib/savewd.c, lib/savewd.h: New files.
56549
56550 2006-09-15  Jim Meyering  <jim@meyering.net>
56551
56552         * modules/rename-dest-slash: New module.
56553         * MODULES.html.sh (posix_compat): Add it here.
56554
56555         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56556
56557 2006-09-15  Jim Meyering  <jim@meyering.net>
56558
56559         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56560         file.
56561
56562         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56563
56564 2006-09-15  Jim Meyering  <jim@meyering.net>
56565
56566         * lib/rename-dest-slash.c (has_trailing_slash): Use
56567         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56568         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56569         test before testing whether SRC is a directory.
56570         Suggestions from Bruno Haible.
56571
56572         Avoid a warning about an unused variable.
56573         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56574         into the #ifdef block where it's used.
56575
56576         * lib/rename-dest-slash.c: New file.
56577
56578 2006-09-14  Bruno Haible  <bruno@clisp.org>
56579
56580         * lib/allocsa.c: Include <config.h> unconditionally.
56581         * lib/asnprintf.c: Likewise.
56582         * lib/asprintf.c: Likewise.
56583         * lib/c-strcasecmp.c: Likewise.
56584         * lib/c-strcasestr.c: Likewise.
56585         * lib/c-strncasecmp.c: Likewise.
56586         * lib/c-strstr.c: Likewise.
56587         * lib/classpath.c: Likewise.
56588         * lib/clean-temp.c: Likewise.
56589         * lib/concatpath.c: Likewise.
56590         * lib/copy-file.c: Likewise.
56591         * lib/csharpcomp.c: Likewise.
56592         * lib/csharpexec.c: Likewise.
56593         * lib/execute.c: Likewise.
56594         * lib/fatal-signal.c: Likewise.
56595         * lib/findprog.c: Likewise.
56596         * lib/fwriteerror.c: Likewise.
56597         * lib/gl_array_list.c: Likewise.
56598         * lib/gl_array_oset.c: Likewise.
56599         * lib/gl_avltree_list.c: Likewise.
56600         * lib/gl_avltree_oset.c: Likewise.
56601         * lib/gl_avltreehash_list.c: Likewise.
56602         * lib/gl_carray_list.c: Likewise.
56603         * lib/gl_linked_list.c: Likewise.
56604         * lib/gl_linkedhash_list.c: Likewise.
56605         * lib/gl_list.c: Likewise.
56606         * lib/gl_oset.c: Likewise.
56607         * lib/gl_rbtree_list.c: Likewise.
56608         * lib/gl_rbtree_oset.c: Likewise.
56609         * lib/gl_rbtreehash_list.c: Likewise.
56610         * lib/imaxabs.c: Likewise.
56611         * lib/imaxdiv.c: Likewise.
56612         * lib/javacomp.c: Likewise.
56613         * lib/javaexec.c: Likewise.
56614         * lib/javaversion.c: Likewise.
56615         * lib/linebreak.c: Likewise.
56616         * lib/localcharset.c: Likewise.
56617         * lib/lock.c: Likewise.
56618         * lib/mbchar.c: Likewise.
56619         * lib/mbswidth.c: Likewise.
56620         * lib/mkdtemp.c: Likewise.
56621         * lib/pipe.c: Likewise.
56622         * lib/printf-args.c: Likewise.
56623         * lib/printf-parse.c: Likewise.
56624         * lib/progname.c: Likewise.
56625         * lib/progreloc.c: Likewise.
56626         * lib/readlink.c: Likewise.
56627         * lib/sh-quote.c: Likewise.
56628         * lib/stpcpy.c: Likewise.
56629         * lib/stpncpy.c: Likewise.
56630         * lib/strcasecmp.c: Likewise.
56631         * lib/strcasestr.c: Likewise.
56632         * lib/strcspn.c: Likewise.
56633         * lib/striconv.c: Likewise.
56634         * lib/strncasecmp.c: Likewise.
56635         * lib/strnlen1.c: Likewise.
56636         * lib/strstr.c: Likewise.
56637         * lib/strtok_r.c: Likewise.
56638         * lib/tls.c: Likewise.
56639         * lib/tmpdir.c: Likewise.
56640         * lib/unicodeio.c: Likewise.
56641         * lib/unsetenv.c: Likewise.
56642         * lib/vasnprintf.c: Likewise.
56643         * lib/vasprintf.c: Likewise.
56644         * lib/wait-process.c: Likewise.
56645         * lib/xallocsa.c: Likewise.
56646         * lib/xsetenv.c: Likewise.
56647         * lib/xstriconv.c: Likewise.
56648
56649 2006-09-13  Simon Josefsson  <jas@extundo.com>
56650
56651         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56652         that internally, suggested by Ralf Wildenhues
56653         <Ralf.Wildenhues@gmx.de>.
56654
56655 2006-09-13  Simon Josefsson  <jas@extundo.com>
56656
56657         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56658         @LIBOBJS@.
56659         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56660
56661 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56662
56663         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56664         longer worry about uses that don't define HAVE_CONFIG_H.
56665         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56666         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56667         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56668         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56669         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56670         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56671         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56672         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56673         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56674         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56675         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56676         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56677         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56678         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56679         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56680         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56681         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56682         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56683         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56684         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56685         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56686         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56687         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56688         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56689         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56690         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56691         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56692         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56693         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56694         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56695         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56696         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56697         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56698         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56699         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56700         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56701         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56702         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56703         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56704         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56705         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56706         Likewise.
56707
56708 2006-09-13  Eric Blake  <ebb9@byu.net>
56709
56710         * lib/getopt.c: Fix typo in last commit.
56711
56712 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56713
56714         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56715         dgettext.
56716
56717 2006-09-12  Jim Meyering  <jim@meyering.net>
56718
56719         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56720         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56721         Reported by Nelson H. F. Beebe.
56722
56723 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56724
56725         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56726         program_invocation_name and program_invocation_short_name are
56727         initialized.
56728         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56729         and program_invocation_short_name to argp.h, so they are visible
56730         to user programs.
56731         * lib/argp.h: Likewise
56732
56733 2006-09-10  Bruno Haible  <bruno@clisp.org>
56734
56735         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56736         m4/inttypes_h.m4, m4/uintmax_t.m4.
56737
56738 2006-09-10  Bruno Haible  <bruno@clisp.org>
56739
56740         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56741         gl_AC_TYPE_UINTMAX_T.
56742
56743 2006-09-10  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56746
56747 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56748
56749         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56750         convention.  Text proposed by Bruno Haible.
56751         (struct argp_option): Document the use of N_() wrappers.
56752
56753         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56754         '\v', and translate the two parts separately, instead of feeding
56755         the whole string to gettext.  This allows to exclude
56756         '\v' from the strings visible to the translator by writing doc
56757         strings as N_("..") "\v" N_("..").
56758
56759 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56760
56761         * config/srclist.txt: Undo latest change; the bug was fixed.
56762
56763 2006-09-09  Bruno Haible  <bruno@clisp.org>
56764
56765         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56766         assignments if building a library without libtool.
56767         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56768         in func_emit_lib_Makefile_am.
56769         (func_import): When building a static library libfoo.a, arrange to
56770         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56771         (func_create_testdir): Likewise.
56772         * modules/gc (configure.ac, Makefile.am): If building statically,
56773         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56774         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56775         * modules/striconv (configure.ac, Makefile.am): Likewise.
56776         Based on a suggestion by Ralf Wildenhues.
56777
56778 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56779
56780         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56781         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56782         Also:
56783
56784         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56785         Add year_2050_test to catch glibc bug 2821
56786         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56787
56788         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56789         Prefer #ifdef to #if.
56790
56791         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56792         Return from 'main' instead of calling 'exit'.
56793
56794 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56795
56796         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56797         returned the maximum time_t value rather than (time_t) -1.
56798         Problem originally reported by William Bardwell
56799         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56800
56801         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56802         Moved to here ...
56803         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56804         ... from here.
56805
56806 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56809         2821 is fixed.
56810
56811 2006-09-08  Jim Meyering  <jim@meyering.net>
56812
56813         Don't make generated files read-only.  That would bother too many
56814         people.  However, do retain the ability to work when targets are
56815         read-only: remove the destination and temporary files before writing
56816         them (when generated via sed or echo), or by using the -f option for
56817         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56818         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56819         * modules/byteswap, modules/configmake, modules/fcntl:
56820         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56821         * modules/localcharset, modules/netinet_in, modules/poll:
56822         * modules/stdbool, modules/stdint, modules/sys_select:
56823         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56824
56825 2006-09-08  Jim Meyering  <jim@meyering.net>
56826
56827         Avoid new build failure on FreeBSD 6.0.
56828         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56829         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56830         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56831
56832 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56833
56834         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56835
56836 2006-09-07  Jim Meyering  <jim@meyering.net>
56837
56838         Fix global typo in last change: use chmod u-w, not chmod u-x.
56839         Spotted by Paul Eggert and Bruce Korb.
56840         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56841         * modules/byteswap, modules/configmake, modules/fcntl:
56842         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56843         * modules/localcharset, modules/netinet_in, modules/poll:
56844         * modules/stdbool, modules/stdint, modules/sys_select:
56845         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56846
56847 2006-09-06  Jim Meyering  <jim@meyering.net>
56848
56849         Make generated files be read-only.
56850         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56851         Ensure that each generated file is now read-only.
56852         * modules/argz: Likewise.
56853         * modules/arpa_inet: Likewise.
56854         * modules/byteswap: Likewise.
56855         * modules/configmake: Likewise.
56856         * modules/fcntl: Likewise.
56857         * modules/fnmatch: Likewise.
56858         * modules/getopt: Likewise.
56859         * modules/glob: Likewise.
56860         * modules/inttypes: Likewise.
56861         * modules/netinet_in: Likewise.
56862         * modules/poll: Likewise.
56863         * modules/stdbool: Likewise.
56864         * modules/stdint: Likewise.
56865         * modules/sys_select: Likewise.
56866         * modules/sys_socket: Likewise.
56867         * modules/sys_stat: Likewise.
56868         * modules/sysexits: Likewise.
56869         * modules/localcharset: Same as above, but continue using temporary
56870         file named "t-$@" (why different?) rather than the "$@-t" used
56871         everywhere else.
56872
56873         * modules/sysexits (Makefile.am): Replace literal occurrences
56874         of "sysexit.h" more readable, and more consistent, "$@".
56875
56876 2006-09-06  Bruno Haible  <bruno@clisp.org>
56877
56878         * modules/striconv: New file.
56879         * modules/xstriconv: New file.
56880         * MODULES.html.sh (Internationalization functions): Add striconv,
56881         xstriconv.
56882
56883 2006-09-06  Bruno Haible  <bruno@clisp.org>
56884
56885         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56886         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56887         not using libtool correctly.
56888
56889 2006-09-06  Bruno Haible  <bruno@clisp.org>
56890
56891         * lib/striconv.h: New file.
56892         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56893         iconvstring.c.
56894         * lib/xstriconv.h: New file.
56895         * lib/xstriconv.c: New file.
56896
56897 2006-09-06  Bruno Haible  <bruno@clisp.org>
56898
56899         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56900         lib_..._LDFLAGS.
56901
56902 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56903
56904         * lib/argz_.h: Sync from Libtool.
56905
56906         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56907                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56908
56909         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56910
56911 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56912
56913         * modules/trim: New file.
56914
56915 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56916
56917         * lib/trim.h: New file.
56918         * lib/trim.c: New file.
56919
56920 2006-09-05  Bruno Haible  <bruno@clisp.org>
56921
56922         * MODULES.html.sh (String handling): Add trim.
56923
56924 2006-09-04  Karl Berry  <karl@gnu.org>
56925
56926         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56927         until next release.
56928
56929 2006-09-03  Bruno Haible  <bruno@clisp.org>
56930
56931         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56932         correctly.
56933
56934 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56935
56936         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56937         not gl_GETLOADAVG.  Omit unneeded semicolons.
56938         Problems reported by Ralf Wildenhues in
56939         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56940         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56941         at the end, which is the usual gnulib style.
56942
56943         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56944         of doing all the work ourselves.
56945         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56946         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56947
56948 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56949
56950         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56951         Problem reported by Ralf Wildenhues in
56952         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56953
56954         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56955         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56956
56957 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56960         yesterday's patch by changing test -n to test -z.
56961
56962 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56963
56964         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56965         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56966         the former is now obsolescent.
56967
56968         * modules/chdir-long (Depends-on): Add fcntl.
56969
56970 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56971
56972         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56973         obsolescent, and programs should use gnulib instead.
56974         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56975         but with prefixes changed.
56976
56977 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56978
56979         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56980         or stdbool.h, because they might not exist while configuring.
56981
56982         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56983         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56984         does that for us.
56985         (O_DIRECTORY): Remove.
56986
56987 2006-08-31  Eric Blake  <ebb9@byu.net>
56988
56989         * gnulib-tool: Don't let emacs change spaces to TAB.
56990
56991 2006-08-31  Bruno Haible  <bruno@clisp.org>
56992
56993         * gnulib-tool: When calling func_import more than once, do it in a
56994         subshell.
56995         Reported by Eric Blake <ebb9@byu.net>.
56996
56997 2006-08-31  Bruno Haible  <bruno@clisp.org>
56998
56999         * gnulib-tool (nl): Remove variable.
57000         (sed_transform_lib_file): Use more robust test for config-h module.
57001         (func_import): Fix typo in 2006-08-25 patch.
57002
57003 2006-08-31  Bruno Haible  <bruno@clisp.org>
57004
57005         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57006         specified, augment Makefile.am variables instead of assigning them.
57007
57008 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57009
57010         Work around a bug in both the Linux and SunOS 64-bit kernels:
57011         nanosleep mishandles sleeps for longer than 2**31 seconds.
57012         Problem reported by Frank v Waveren in
57013         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57015         Check for nanosleep bug.
57016         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57017
57018 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57019
57020         Work around a bug in both the Linux and SunOS 64-bit kernels:
57021         nanosleep mishandles sleeps for longer than 2**31 seconds.
57022         Problem reported by Frank v Waveren in
57023         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57024         * lib/nanosleep.c (BILLION): New constant.
57025         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57026         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57027         implementation.
57028
57029 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57030
57031         * modules/nanosleep (Depends-on): Add gettime.
57032
57033 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57034         and Simon Josefsson  <jas@extundo.com>
57035         and Oskar Liljeblad  <oskar@osk.mine.nu>
57036
57037         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57038         * gnulib-tool (func_import): New license type 'unmodifiable license
57039         text'.
57040         * modules/fdl: Use it.  Longer description.
57041         * module/gpl, module/lgpl: New files.
57042
57043 2006-08-30  Jim Meyering  <jim@meyering.net>
57044
57045         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57046         shadowing the parameter.
57047
57048 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57049
57050         Sync from Libtool:
57051
57052         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57053
57054         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57055         sharing with gnulib.  Report by Eric Blake.
57056
57057 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57058
57059         * modules/isapipe: New file.
57060         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57061
57062 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57063
57064         * modules/configmake (Makefile.am): Add a comment, and omit
57065         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57066         by Bruno Haible.
57067
57068 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * m4/isapipe.m4: New file.
57071
57072 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         * lib/isapipe.c, lib/isapipe.h: New files.
57075
57076 2006-08-29  Jim Meyering  <jim@meyering.net>
57077
57078         * modules/configmake (Makefile.am): Make configmake.h depend on
57079         Makefile.  Otherwise, a stale configmake.h could hang around.
57080
57081 2006-08-29  Eric Blake  <ebb9@byu.net>
57082
57083         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57084         resolution of upstream bug 3044.
57085
57086 2006-08-29  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/localcharset (Depends-on): Add configmake.
57089         (Makefile.am): Remove setting of LIBDIR through DEFS.
57090
57091 2006-08-29  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57094         defined.
57095
57096 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57097
57098         * modules/fcntl: New file.
57099         * modules/chdir-safer (Depends-on): Add fcntl.
57100         * modules/fts: Likewise.
57101         * modules/mkdir-p: Likewise.
57102
57103         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57104         This undoes the most recent change, since we're now addressing the
57105         problem in a different way.
57106
57107         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57108         into output, since the output might be called Makefile.am even
57109         if $makefile_name is something different.
57110         (func_import): Use $makefile_am rather than
57111         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57112         empty.
57113
57114         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57115
57116 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57117
57118         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57119         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57120         recent change to stdint.m4, since we're now addressing the problem in a
57121         different way.
57122
57123 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         * m4/fcntl_h.m4: New file.
57126
57127 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57128
57129         * lib/fcntl_.h: New file.
57130         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57131         the fcntl module.
57132         * lib/dirchownmod.c: Likewise.
57133         * lib/fts.c: Likewise.
57134
57135         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57136         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57137         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57138         just before including <inttypes.h>, to avoid circular inclusion.
57139
57140 2006-08-28  Jim Meyering  <jim@meyering.net>
57141
57142         * doc/visibility.texi: Actually read and correct the grammar of the
57143         sentence affected by yesterday's change.
57144
57145 2006-08-28  Eric Blake  <ebb9@byu.net>
57146
57147         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57148         needs wrapper.
57149
57150 2006-08-28  Eric Blake  <ebb9@byu.net>
57151
57152         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57153
57154 2006-08-28  Eric Blake  <ebb9@byu.net>
57155
57156         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57157
57158 2006-08-28  Bruno Haible  <bruno@clisp.org>
57159
57160         * modules/c-strstr: New file, from GNU gettext.
57161         * MODULES.html.sh (String handling): Add c-strstr.
57162
57163 2006-08-28  Bruno Haible  <bruno@clisp.org>
57164
57165         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57166         macros.
57167         Reported by Eric Blake.
57168
57169 2006-08-28  Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57172         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57173         * lib/vasprintf.c: Include errno.h, limits.h.
57174         (EOVERFLOW): New fallback definition.
57175         (vasprintf): Test here whether the string length is > INT_MAX.
57176         * lib/vsnprintf.c: Include errno.h, limits.h.
57177         (EOVERFLOW): New fallback definition.
57178         (vsnprintf): Fix bug when generated string was too long for the buffer.
57179         Test here whether the string length is > INT_MAX.
57180
57181 2006-08-28  Bruno Haible  <bruno@clisp.org>
57182
57183         * lib/inttypes_.h (SCNX*): Remove definitions.
57184         Reported by Eric Blake.
57185
57186 2006-08-28  Bruno Haible  <bruno@clisp.org>
57187
57188         * lib/c-strstr.h: New file, from GNU gettext.
57189         * lib/c-strstr.c: New file, from GNU gettext.
57190
57191 2006-08-28  Bruno Haible  <bruno@clisp.org>
57192
57193         * gnulib-tool: Reorder some statements.
57194
57195 2006-08-28  Bruno Haible  <bruno@clisp.org>
57196
57197         * gnulib-tool: New option --makefile-name.
57198         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57199         $makefile_name.
57200         (func_import): Write $makefile_name to the cache file, and read it from
57201         there unless explicitly specified. Use $makefile_name as file name
57202         instead of Makefile.am. Adjust the recommendations accordingly.
57203
57204 2006-08-28  Bruno Haible  <bruno@clisp.org>
57205
57206         * gnulib-tool (func_verify_module): Check against misapplying patch.
57207
57208 2006-08-28  Bruno Haible  <bruno@clisp.org>
57209
57210         * gnulib-tool (func_relativize, func_relconcat): New functions.
57211         Give an error if --local-dir is given with --update.
57212         Remove trailing slashes from $local_gnulib_dir.
57213         (func_import): Store the relativized $local_gnulib_dir in
57214         gnulib-cache.m4, and read it from there if not specified explicitly.
57215
57216 2006-08-28  Bruno Haible  <bruno@clisp.org>
57217
57218         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57219         is the current directory. Respect also $local_gnulib_dir.
57220
57221 2006-08-28  Bruno Haible  <bruno@clisp.org>
57222             Simon Josefsson  <jas@extundo.com>
57223
57224         BeOS portability.
57225         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57226
57227 2006-08-27  Jim Meyering  <jim@meyering.net>
57228
57229         * doc/visibility.texi: Remove duplicate word: "pointer".
57230
57231 2006-08-26  Bruno Haible  <bruno@clisp.org>
57232
57233         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57234         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57235         (Makefile.am): Create inttypes.h from inttypes_.h.
57236         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57237
57238         * modules/imaxabs: New file.
57239
57240         * modules/imaxdiv: New file.
57241
57242 2006-08-26  Bruno Haible  <bruno@clisp.org>
57243
57244         * m4/inttypes.m4: New file.
57245         * m4/_inttypes_h.m4: Remove file.
57246         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57247         PRI_MACROS_BROKEN.
57248         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57249
57250         * m4/imaxabs.m4: New file.
57251
57252         * m4/imaxdiv.m4: New file.
57253
57254 2006-08-26  Bruno Haible  <bruno@clisp.org>
57255
57256         * lib/inttypes_.h: New file.
57257         * lib/inttypes.h: Remove file.
57258         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57259
57260         * lib/imaxabs.c: New file.
57261
57262         * lib/imaxdiv.c: New file.
57263
57264 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57265
57266         New config-h module, so that "make" output needn't be cluttered
57267         by -DHAVE_CONFIG_H.
57268         * MODULES.html.sh (Support for building libraries and executables):
57269         Add config-h.
57270         * modules/config-h: New file.
57271         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57272         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57273         the config-h module is used.
57274
57275         New configmake module, so that "make" output needn't be cluttered
57276         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57277         * MODULES.html.sh (Support for building libraries and executables):
57278         Add configmake.
57279         * modules/configmake: New file.
57280
57281 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57282
57283         * m4/config-h.m4: New file.
57284
57285 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         * config/srclist.txt: Add elisp-comp.
57288
57289 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57290
57291         * MODULES.html.sh (Support for building libraries and executables):
57292         Add elisp-comp.
57293         * build-aux/elisp-comp: New file.
57294         * modules/elisp-comp: New file.
57295
57296 2006-08-24  Bruno Haible  <bruno@clisp.org>
57297
57298         * gnulib-tool (func_create_testdir): Use non-default values of
57299         sourcebase and m4base.
57300
57301 2006-08-24  Bruno Haible  <bruno@clisp.org>
57302
57303         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57304         HTML structure.
57305
57306 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57307
57308         * modules/openat (Depends-on): Add lchown.
57309
57310 2006-08-23  Bruno Haible  <bruno@clisp.org>
57311
57312         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57313         of gl_LOCK_EARLY instead of gl_LOCK.
57314
57315 2006-08-23  Bruno Haible  <bruno@clisp.org>
57316
57317         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57318         on OSF/1 to no.
57319         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57320
57321 2006-08-23  Bruno Haible  <bruno@clisp.org>
57322
57323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57324         as unusable.
57325
57326         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57327         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57328         (gl_LOCK): New macro.
57329
57330 2006-08-22  Simon Josefsson  <jas@extundo.com>
57331
57332         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57333         to md5 module.
57334
57335 2006-08-22  Simon Josefsson  <jas@extundo.com>
57336
57337         * MODULES.html.sh: Add "Support for maintaining and release
57338         projects".
57339
57340         * build-aux/gnupload: New file, from coreutils.
57341
57342 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57343
57344         Avoid the need for AC_LIBSOURCES in m4 macros.
57345         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57346         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57347         * modules/check-version (EXTRA_DIST): Add check-version.h.
57348         * modules/crc (EXTRA_DIST): Add crc.h.
57349         * modules/des (EXTRA_DIST): Add des.h.
57350         * modules/gc (EXTRA_DIST): Add gc.h.
57351         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57352         * modules/getline (EXTRA_DIST): Add getline.h.
57353         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57354         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57355         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57356         * modules/md2 (EXTRA_DIST): Add md2.h.
57357         * modules/md4 (EXTRA_DIST): Add md4.h.
57358         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57359         * modules/read-file (EXTRA_DIST): Add read-file.h.
57360         * modules/readline (EXTRA_DIST): Add readline.h.
57361         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57362         rijndael-api-fst.h.
57363
57364 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57365
57366         * m4/rijndael.m4 (gl_ARCFOUR):
57367         * m4/arctwo.m4 (gl_ARCTWO):
57368         * m4/check-version.m4 (gl_CHECK_VERSION):
57369         * m4/crc.m4 (gl_CRC):
57370         * m4/des.m4 (gl_DES):
57371         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57372         * m4/gc.m4 (gl_GC):
57373         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57374         * m4/getline.m4 (gl_FUNC_GETLINE):
57375         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57376         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57377         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57378         * m4/md2.m4 (gl_MD2):
57379         * m4/md4.m4 (gl_MD4):
57380         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57381         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57382         * m4/readline.m4 (gl_FUNC_READLINE):
57383         * m4/rijndael.m4 (gl_RIJNDAEL):
57384         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57385         to get the necessary .h files and whatnot.
57386
57387 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57388
57389         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57390         gnulib rather than the other way around.
57391         * config/srclistvars.sh (COREUTILS): Remove.
57392
57393 2006-08-22  Jim Meyering  <jim@meyering.net>
57394
57395         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57396
57397         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57398
57399 2006-08-22  Eric Blake  <ebb9@byu.net>
57400
57401         * modules/regexprops-generic: New file.
57402         * MODULES.html.sh (Support for building documentation): List it.
57403
57404 2006-08-22  Eric Blake  <ebb9@byu.net>
57405
57406         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57407         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57408         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57409         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57410
57411 2006-08-22  Bruno Haible  <bruno@clisp.org>
57412
57413         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57414         and lib_LTLIBRARIES like the other lib_* variables.
57415
57416 2006-08-22  Bruno Haible  <bruno@clisp.org>
57417
57418         * build-aux/x-to-1.in: New file, from GNU gettext.
57419
57420 2006-08-22  Bruno Haible  <bruno@clisp.org>
57421
57422         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57423         <utmpx.h> exists.
57424
57425 2006-08-22  Bruno Haible  <bruno@clisp.org>
57426
57427         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57428         <utmpx.h> exists.
57429
57430 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57431
57432         BeOS portability.
57433         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57434         exist.
57435         Problem reported by Bruno Haible.
57436
57437 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         Avoid the need for AC_LIBSOURCES in m4 macros.
57440         * modules/acl (EXTRA_DIST): Add acl.h.
57441         * modules/argmatch (Files): Add m4/argmatch.m4.
57442         (configure.ac): Add gl_ARGMATCH.
57443         (EXTRA_DIST): Renamed from lib_SOURCES, for
57444         consistency with the other modules.  Remove argmatch.c.
57445         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57446         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57447         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57448         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57449         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57450         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57451         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57452         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57453         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57454         * modules/closeout (EXTRA_DIST): Add closeout.h.
57455         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57456         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57457         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57458         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57459         dirname.h; remove basename.c and stripslash.c.
57460         * modules/exclude (EXTRA_DIST): Add exclude.h.
57461         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57462         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57463         * modules/file-type (EXTRA_DIST): Add file-type.h.
57464         * modules/filemode (EXTRA_DIST): Add filemode.h.
57465         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57466         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57467         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57468         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57469         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57470         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57471         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57472         * modules/getdate (EXTRA_DIST): Add getdate.c.
57473         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57474         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57475         * modules/getpass (EXTRA_DIST): Add getpass.h.
57476         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57477         * modules/group-member (EXTRA_DIST): Add group-member.h.
57478         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57479         * modules/hash (EXTRA_DIST): Add hash.h.
57480         * modules/human (EXTRA_DIST): Add human.h.
57481         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57482         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57483         * modules/lchown (EXTRA_DIST): Add lchown.h.
57484         * modules/long-options (EXTRA_DIST): Add long-options.h.
57485         * modules/lstat (EXTRA_DIST): Add lstat.h.
57486         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57487         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57488         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57489         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57490         * modules/memxor (EXTRA_DIST): Add memxor.h.
57491         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57492         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57493         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57494         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57495         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57496         * modules/physmem (EXTRA_DIST): Add physmem.h.
57497         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57498         * modules/posixver (EXTRA_DIST): Add posixver.h.
57499         * modules/quote (EXTRA_DIST): Add quote.h.
57500         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57501         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57502         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57503         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57504         regex_internal.h regexec.c.
57505         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57506         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57507         * modules/same (EXTRA_DIST): Add same.h.
57508         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57509         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57510         * modules/savedir (EXTRA_DIST): Add savedir.h.
57511         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57512         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57513         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57514         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57515         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57516         * modules/strdup (EXTRA_DIST): Add strdup.h.
57517         * modules/strftime (EXTRA_DIST): Add strftime.h.
57518         * modules/strndup (EXTRA_DIST): Add strndup.h.
57519         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57520         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57521         * modules/time_r (EXTRA_DIST): Add time_r.h.
57522         * modules/timespec (EXTRA_DIST): Add timespec.h.
57523         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57524         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57525         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57526         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57527         * modules/userspec (EXTRA_DIST): Add userspec.h.
57528         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57529         * modules/utimens (EXTRA_DIST): Add utimens.h.
57530         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57531         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57532         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57533         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57534         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57535         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57536         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57537         * modules/yesno (EXTRA_DIST): Add yesno.h.
57538
57539 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57540
57541         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57542
57543         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57544         * m4/dev-ino.m4, same-inode.m4: Remove.
57545
57546         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57547         * m4/acl.m4 (AC_FUNC_ACL):
57548         * m4/backupfile.m4 (gl_BACKUPFILE):
57549         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57550         * m4/canon-host.m4 (gl_CANON_HOST):
57551         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57552         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57553         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57554         * m4/cloexec.m4 (gl_CLOEXEC):
57555         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57556         * m4/closeout.m4 (gl_CLOSEOUT):
57557         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57558         * m4/dirname.m4 (gl_DIRNAME):
57559         * m4/exclude.m4 (gl_EXCLUDE):
57560         * m4/exitfail.m4 (gl_EXITFAIL):
57561         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57562         * m4/file-type.m4 (gl_FILE_TYPE):
57563         * m4/filemode.m4 (gl_FILEMODE):
57564         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57565         * m4/fpending.m4 (gl_FUNC_FPENDING):
57566         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57567         * m4/fts.m4 (gl_FUNC_FTS):
57568         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57569         * m4/getdate.m4 (gl_GETDATE):
57570         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57571         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57572         * m4/getpass.m4 (gl_FUNC_GETPASS):
57573         * m4/gettime.m4 (gl_GETTIME):
57574         * m4/getugroups.m4 (gl_GETUGROUPS):
57575         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57576         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57577         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57578         * m4/hash.m4 (gl_HASH):
57579         * m4/idcache.m4 (gl_IDCACHE):
57580         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57581         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57582         * m4/long-options.m4 (gl_LONG_OPTIONS):
57583         * m4/lstat.m4 (gl_FUNC_LSTAT):
57584         * m4/md5.m4 (gl_MD5):
57585         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57586         * m4/memcoll.m4 (gl_MEMCOLL):
57587         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57588         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57589         * m4/memxor.m4 (gl_MEMXOR):
57590         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57591         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57592         * m4/modechange.m4 (gl_MODECHANGE):
57593         * m4/mountlist.m4 (gl_MOUNTLIST):
57594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57595         * m4/openat.m4 (gl_FUNC_OPENAT):
57596         * m4/pathmax.m4 (gl_PATHMAX):
57597         * m4/physmem.m4 (gl_PHYSMEM):
57598         * m4/posixtm.m4 (gl_POSIXTM):
57599         * m4/posixver.m4 (gl_POSIXVER):
57600         * m4/quote.m4 (gl_QUOTE):
57601         * m4/quotearg.m4 (gl_QUOTEARG):
57602         * m4/readtokens.m4 (gl_READTOKENS):
57603         * m4/readutmp.m4 (gl_READUTMP):
57604         * m4/regex.m4 (gl_REGEX):
57605         * m4/safe-read.m4 (gl_SAFE_READ):
57606         * m4/safe-write.m4 (gl_SAFE_WRITE):
57607         * m4/same.m4 (gl_SAME):
57608         * m4/save-cwd.m4 (gl_SAVE_CWD):
57609         * m4/savedir.m4 (gl_SAVEDIR):
57610         * m4/settime.m4 (gl_SETTIME):
57611         * m4/sha1.m4 (gl_SHA1):
57612         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57613         * m4/stat-macros.m4 (gl_STAT_MACROS):
57614         * m4/stat-time.m4 (gl_STAT_TIME):
57615         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57616         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57617         * m4/strdup.m4 (gl_FUNC_STRDUP):
57618         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57619         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57620         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57621         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57622         * m4/time_r.m4 (gl_TIME_R):
57623         * m4/timespec.m4 (gl_TIMESPEC):
57624         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57625         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57626         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57627         * m4/userspec.m4 (gl_USERSPEC):
57628         * m4/utimecmp.m4 (gl_UTIMECMP):
57629         * m4/utimens.m4 (gl_UTIMENS):
57630         * m4/xalloc.m4 (gl_XALLOC):
57631         * m4/xgetcwd.m4 (gl_XGETCWD):
57632         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57633         * m4/xreadlink.m4 (gl_XREADLINK):
57634         * m4/xstrtod.m4 (gl_XSTRTOD):
57635         * m4/yesno.m4 (gl_YESNO):
57636         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57637         to get the necessary .h files and whatnot.
57638
57639 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57640             Bruno Haible  <bruno@clisp.org>
57641
57642         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57643         /bin/sh understanding of '!' conditional negation.
57644
57645 2006-08-21  Jim Meyering  <jim@meyering.net>
57646
57647         * modules/openat (Depends-on): Really alphabetize.
57648
57649         * modules/acl (Depends-on): Add error and quote.
57650
57651         * check-module (find_included_lib_files): Add at-func.c to the
57652         ok-to-include-more-than-once white list.
57653
57654         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57655
57656 2006-08-21  Bruno Haible  <bruno@clisp.org>
57657
57658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57659         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57660         Reported by Martin Lambers <marlam@marlam.de>.
57661
57662 2006-08-21  Bruno Haible  <bruno@clisp.org>
57663
57664         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57665         specify an installation location, don't emit a noinst_LIBRARIES or
57666         noinst_LTLIBRARIES assignment.
57667
57668 2006-08-21  Bruno Haible  <bruno@clisp.org>
57669
57670         BeOS portability.
57671         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57672         BeOS has mbrtowc() but no <wctype.h>.
57673
57674 2006-08-21  Bruno Haible  <bruno@clisp.org>
57675
57676         BeOS portability.
57677         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57678         exist.
57679
57680 2006-08-21  Bruno Haible  <bruno@clisp.org>
57681
57682         BeOS portability.
57683         * lib/mbchar.h: Include <wctype.h> only if it exists.
57684
57685 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57686
57687         Remove files that are no longer needed by their respective modules.
57688         * m4/obstack.m4: Remove.
57689         * m4/strerror_r.m4: Remove.
57690         * m4/uint32_t.m4: Remove.
57691         * m4/uintptr_t.m4: Remove.
57692         * m4/ullong_max.m4: Remove.
57693         * m4/xstrtoimax.m4: Remove.
57694         * m4/xstrtoumax.m4: Remove.
57695
57696         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57697         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57698         dependencies now capture this.
57699
57700         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57701         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57702         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57703         * m4/human.m4 (gl_HUMAN): Likewise.
57704         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57705         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57706
57707         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57708
57709         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57710         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57711         stdint.
57712         * m4/human.m4 (gl_HUMAN): Likewise.
57713         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57714         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57715         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57716         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57717         * m4/xstrtol (gl_XSTRTOL): Likewise.
57718
57719         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57720         AC_TYPE_LONG_LONG_INT.
57721         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57722         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57723         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57724         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57725
57726         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57727         on stdbool.
57728
57729         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57730         (gl_PREREQ_XSTRTOUL): Remove.
57731
57732         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57733
57734         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57735         mode.
57736
57737 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57738
57739         Add and change modules to make it easier for coreutils to use
57740         gnulib-tool.
57741         * modules/backupfile (Files): Remove m4/d-ino.m4.
57742         (Depends-on): Add d-ino.
57743         * modules/cycle-check (Depends-on): Add stdint.
57744         (lib_SOURCES): Add cycle-check.h.
57745         * modules/d-ino: New module.
57746         * modules/d-type: New module.
57747         * modules/error (Files): Remove m4/strerror_r.m4.
57748         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57749         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57750         m4/inttypes_h.m4, m4/uintmax_t.m4.
57751         (Depends-on): Add stdint.
57752         (lib_SOURCES): Add fsusage.h.
57753         * modules/getcwd (Files): Remove d-ino.m4.
57754         (Depends-on): Add d-ino.
57755         * modules/getndelim2 (Depends-on): Add stdint.
57756         * modules/glob (Files): Remove m4/d-type.m4.
57757         (Depends-on): Add d-type.
57758         * modules/host-os: New module.
57759         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57760         m4/inttypes_h.m4, m4/uintmax_t.m4.
57761         * Depends-on: Add stdint.
57762         (lib_SOURCES): Add human.h.
57763         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57764         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57765         m4/uintmax_t.m4, m4/ulonglong.m4.
57766         (Depends-on): Add stdint.
57767         (EXTRA_DIST): Add inttostr.h.
57768         * modules/lchmod: New module.
57769         * modules/link-follow: New module.
57770         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57771         (Depends-on): Add lchmod.
57772         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57773         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57774         (Depends-on): Add stdint.
57775         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57776         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57777         (Depends-on): Add stdint.
57778         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57779         * modules/perl: New module.
57780         * modules/regex (Depends-on): Add stdint.
57781         * modules/rmdir-errno: New module.
57782         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57783         m4/intmax_t.m4.
57784         (Depends-on): Add stdint.
57785         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57786         m4/uintmax_t.m4.
57787         (Depends-on): Add stdint.
57788         * modules/unlink-busy: New module.
57789         * modules/utimecmp (Depends-on): Add stdint.
57790         * modules/uptime: New module.
57791         * modules/winsz-ioctl: New module.
57792         * modules/winsz-termios: New module.
57793         * modules/xnanosleep (Depends-on): Add nanosleep.
57794         * modules/ullong_max: Remove.
57795         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57796         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57797         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57798         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57799         (Depends-on): Add inttypes.
57800         (lib_SOURCES): Add xstrtol.h.
57801         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57802         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57803         * MODULES.html.sh: Move 'assert' into the assert section.
57804         Move 'dummy' into the linking section.
57805         Remove ullong_max.
57806         Add section for compatibility checks for POSIX:2001 functions,
57807         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57808         winsz-ioctl, and winsz-termios into it.
57809         Add lchmod.
57810         Add top-level Misc section and put host-os, perl, and uptime
57811         into it.
57812
57813 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57814
57815         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57816         now assume the stdint module.  Do not include inttypes.h.
57817         * lib/fsusage.h: Likewise.
57818         * lib/getndelim2.c: Likewise.
57819         * lib/human.h: Likewise.
57820         * lib/inttostr.h: Likewise.
57821         * lib/obstack.c: Likewise.
57822         * lib/regex_internal.h: Likewise.
57823         * lib/tempname.c: Likewise.
57824         * lib/utimecmp.c: Likewise.
57825         * lib/xstrtol.h: Likewise.
57826
57827         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57828
57829         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57830         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57831         * lib/xtime.h: Likewise.
57832
57833 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57834
57835         * modules/openat (Files): Add lib/fchmodat.c.
57836         Fixes problem reported by Jay Youngman.
57837
57838 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57839
57840         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57841         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57842
57843 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57844             Bruno Haible  <bruno@clisp.org>
57845
57846         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57847         and is a script that invokes bison. Tighten the code. Add comments.
57848
57849 2006-08-18  Jim Meyering  <jim@meyering.net>
57850
57851         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57852         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57853         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57854         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57855
57856 2006-08-18  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/bison-i18n: New file.
57859         * MODULES.html.sh (Internationalization functions): Add it.
57860
57861 2006-08-18  Bruno Haible  <bruno@clisp.org>
57862
57863         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57864         sys/statvfs.h. When getmntinfo was found, check its declaration and
57865         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57866
57867 2006-08-18  Bruno Haible  <bruno@clisp.org>
57868
57869         * m4/bison-i18n.m4: New file, from bison.
57870
57871 2006-08-18  Bruno Haible  <bruno@clisp.org>
57872
57873         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57874         (ME_DUMMY): Treat "kernfs" as a dummy.
57875         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57876
57877 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57878
57879         Update from coreutils.
57880
57881         2006-08-15  Jim Meyering  <jim@meyering.net>
57882
57883         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57884
57885         2006-01-17  Jim Meyering  <jim@meyering.net>
57886
57887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57888
57889         2006-01-11  Jim Meyering  <jim@meyering.net>
57890
57891         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57892         Check for the lchmod function.
57893
57894 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57895
57896         Update from coreutils.
57897
57898         * lib/__fpending.h: Add copyright notice.
57899         * lib/fprintftime.h: Likewise.
57900         * lib/savedir.c: Use (C) in copyright notice.
57901         * lib/savedir.h: Likewise.
57902
57903         2006-08-15  Jim Meyering  <jim@meyering.net>
57904
57905         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57906         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57907         in support of the EXPECTED_ERRNO macro.
57908         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57909         definitions.  Instead, define the appropriate symbols and include
57910         "at-func.c".
57911         * lib/mkdirat.c (mkdirat): Likewise.
57912         * lib/fchmodat.c (fchmodat): Likewise.
57913         (ENOSYS): Remove definition.
57914         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57915         it.  Don't include "unistd--.h" -- it wasn't ever used.
57916
57917         2006-01-17  Jim Meyering  <jim@meyering.net>
57918
57919         Rewrite fts.c not to change the current working directory,
57920         by using openat, fstatat, fdopendir, etc..
57921
57922         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57923         (HAVE_OPENAT_SUPPORT): Define.
57924         [_LIBC] (fchdir): Don't undef or define; no longer used.
57925         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57926         Now, this `function' always succeeds, and consumes its file descriptor
57927         parameter -- so callers must not close such FDs.  Update callers.
57928         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57929         (diropen): Add parameter, SP.  Adjust all callers.
57930         Implement using diropen_fd, rather than open.
57931         (fts_open): Initialize new member, fts_cwd_fd.
57932         Remove fts_rft-setting code.
57933         (fts_close): Close fts_cwd_fd, if necessary.
57934         (__opendir2): Define in terms of opendir or opendirat,
57935         depending on whether the FST_NOCHDIR flag is set.
57936         (fts_build): Since fts_safe_changedir consumes its FD, and since
57937         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57938         and close the dup'd file descriptor upon failure.
57939         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57940         (fts_safe_changedir): Tweak semantics to reflect that this function
57941         now calls cwd_advance_fd and hence consumes its FD argument.
57942         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57943         [struct FTS] (fts_rft): Remove now-unused member.
57944         [struct FTS] (fts_cycle.state): Improve comment.
57945
57946         * lib/openat.c (openat_needs_fchdir): New function.
57947         * lib/openat.h (openat_needs_fchdir): Declare it.
57948
57949 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57950
57951         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57952         Problem and fix reported by Pádraig Brady in
57953         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57954
57955 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57956
57957         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57958
57959 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57960
57961         * lib/memcoll.c (memcoll): Optimize for the common case where the
57962         arguments are bytewise equal.
57963
57964 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57965
57966         * doc/regexprops-generic.texi: Add a copyright notice.
57967
57968 2006-08-15  Bruno Haible  <bruno@clisp.org>
57969
57970         * modules/tmpdir (License): Change to LGPL.
57971
57972 2006-08-15  Bruno Haible  <bruno@clisp.org>
57973
57974         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57975         module.
57976
57977 2006-08-14  Simon Josefsson  <jas@extundo.com>
57978
57979         * config/srclist.txt: Add gnupload.
57980
57981 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57982
57983         Change copyright notice from LGPL 2 to GPL 2, since that's the
57984         standard form used in the gnulib repository.
57985         * tests/test-lock.c: Likewise.
57986         * tests/test-stdint.c: Likewise.
57987         * tests/test-tls.c: Likewise.
57988
57989         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57990         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57991         Add copyright notice.
57992
57993         * check-module: Add copyright notice.  Output a copyright
57994         notice if "--version" is specified.
57995         * modules/COPYING: New file.
57996         * tests/test-getaddrinfo.c: Add copyright notice.
57997         * tests/test-verify.c: Likewise.
57998
57999 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58000
58001         Change copyright notice from LGPL 2 to GPL 2, since that's the
58002         standard form used in the gnulib repository.
58003         * lib/lock.c: LGPL -> GPL.
58004         * lib/lock.h: Likewise.
58005         * lib/strnlen1.c: Likewise.
58006         * lib/strnlen1.h: Likewise.
58007         * lib/tls.c: Likewise.
58008         * lib/tls.h: Likewise.
58009         * lib/tmpdir.c: Likewise.
58010
58011         * lib/TODO: Remove; this belongs only in coreutils.
58012
58013 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         Add copyright notices to long-enough files that lack them, since
58016         otherwise the files aren't clearly free.  Use the same notice that
58017         getdate.texi already uses.
58018         * doc/alloca-opt.texi: Add copyright notice.
58019         * doc/alloca.texi: Likewise.
58020         * doc/ctime.texi: Likewise.
58021         * doc/functions.texi: Likewise.
58022         * doc/gcd.texi: Likewise.
58023         * doc/gnulib-tool.texi: Likewise.
58024         * doc/inet_ntoa.texi: Likewise.
58025         * doc/visibility.texi: Likewise.
58026
58027         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58028         * doc/quote.texi: Add copyright notice.
58029
58030         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58031         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58032         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58033         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58034         is now obsolete, and give a pointer to the Sun list.
58035         Add copyright notice.
58036
58037 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58038
58039         * config/srclistvars.sh: Add copyright notice.
58040
58041 2006-08-14  Eric Blake  <ebb9@byu.net>
58042
58043         Import the following change from libc:
58044
58045         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58046
58047         Upstream bug 2997.
58048         * lib/misc/error.c: Add space between program name and message if file
58049         name is missing.
58050
58051 2006-08-12  Karl Berry  <karl@gnu.org>
58052
58053         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58054         remove, these originate in gnulib now.
58055
58056 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58057
58058         * doc/Makefile (standards.info standards.html standards.dvi):
58059         Also depend on make-stds.texi.
58060
58061 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58062
58063         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58064         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58065
58066         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58067         in wchar_t.  Problem reported by Eric Blake.
58068
58069         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58070         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58071         Also, help the compiler to keep LEN in a register.
58072
58073 2006-08-11  Eric Blake  <ebb9@byu.net>
58074
58075         * users.txt: Sort.  Add tar.
58076
58077 2006-08-11  Bruno Haible  <bruno@clisp.org>
58078
58079         * users.txt: New file.
58080
58081 2006-08-11  Bruno Haible  <bruno@clisp.org>
58082
58083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58084         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58085
58086 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * modules/snprintf (Depends-on): Remove minmax.
58089         (Maintainer): Add self and Bruno.
58090
58091 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58092
58093         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58094         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58095         (EOVERFLOW): Define if the system does not.
58096         Do not include "minmax.h"; it wasn't used.
58097         (snprintf): Don't assume size_t promotes to an unsigned type.
58098         Fix bug when generated string was too long for the buffer: the
58099         buffer's contents are supposed to be the initial prefix of the
58100         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58101         exceeds INT_MAX; do the check ourselves.
58102
58103         Import the following changes from libc:
58104
58105         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58106
58107         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58108         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58109         set wc to the byte which couldn't be converted.
58110         (re_string_reconstruct): Don't clear valid_raw_len before calling
58111         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58112         tip_context using re_string_context_at.
58113
58114         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58115
58116         * lib/posix/regex.h: g++ still cannot handled [restrict].
58117
58118         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58119
58120         * lib/posix/regex.h: Remove special handling for VMS.
58121
58122 2006-08-10  Jim Meyering  <jim@meyering.net>
58123
58124         * modules/same-inode: New module.
58125         * modules/dev-ino: New module.
58126         * modules/cycle-check: Depend on these modules, rather than simply
58127         including their .h files.
58128         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58129         required via m4/cycle-check.m4.
58130         * modules/same: Depend on new same-inode module, rather than
58131         including same-inode.h.
58132         * modules/chdir-safer: New file.
58133
58134         * modules/chown (Depends-on): Add stat-macros.
58135
58136 2006-08-10  Jim Meyering  <jim@meyering.net>
58137
58138         * m4/cycle-check.m4: New file.
58139         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58140         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58141
58142 2006-08-10  Eric Blake  <ebb9@byu.net>
58143
58144         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58145         in from original proposal.
58146
58147 2006-08-10  Eric Blake  <ebb9@byu.net>
58148         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58149
58150         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58151         namespace.
58152
58153 2006-08-10  Bruno Haible  <bruno@clisp.org>
58154
58155         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58156         as well.
58157
58158 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         Sync from coreutils.
58161
58162         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58163
58164         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58165         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58166
58167 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         * modules/restrict: Remove; no longer needed now that we assume
58170         Autoconf 2.59 or later.
58171         * MODULES.html.sh: Remove 'restrict'.
58172         * modules/argp (Depends-on): Remove 'restrict'.
58173         * modules/base64 (Depends-on): Likewise.
58174         * modules/gc (Depends-on): Likewise.
58175         * modules/getaddrinfo (Depends-on): Likewise.
58176         * modules/glob (Depends-on): Likewise.
58177         * modules/inet_ntop (Depends-on): Likewise.
58178         * modules/inet_pton (Depends-on): Likewise.
58179         * modules/memxor (Depends-on): Likewise.
58180         * modules/regex (Depends-on): Likewise.
58181         * modules/strtok_r (Depends-on): Likewise.
58182         * modules/time_r (Depends-on): Likewise.
58183
58184 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58187         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58188         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58189         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58190         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58191         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58192         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58193         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58194
58195         Merge from coreutils.
58196         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58197         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58198         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58199         * m4/time_r.m4 (gl_TIME_R): Likewise.
58200
58201 2006-08-09  Karl Berry  <karl@gnu.org>
58202
58203         * config/srclist.txt: no more gettext-tools, per Bruno.
58204
58205 2006-08-08  Eric Blake  <ebb9@byu.net>
58206
58207         * modules/verror: New module.
58208         * MODULES.html.sh: Document it.
58209
58210 2006-08-08  Eric Blake  <ebb9@byu.net>
58211
58212         * lib/verror.h, lib/verror.c: New files.
58213
58214 2006-08-08  Eric Blake  <ebb9@byu.net>
58215
58216         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58217         verror_at_line output complies with GNU Coding Standards even when
58218         file is NULL.
58219
58220 2006-08-07  Bruno Haible  <bruno@clisp.org>
58221
58222         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58223         versions of AIX.
58224         Reported by Ralf Wildenhues.
58225
58226 2006-08-07  Bruno Haible  <bruno@clisp.org>
58227
58228         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58229         in an AC_DEFUN. Needed so that the autoconf snippets can use
58230         AC_REQUIRE.
58231
58232 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58233
58234         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58235         Initialize pkgdata_DATA.
58236         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58237         overriding it.
58238
58239 2006-08-06  Eric Blake  <ebb9@byu.net>
58240
58241         * lib/error.h: Fold in some upstream changes from glibc.
58242         * lib/error.c: Likewise.
58243
58244 2006-08-04  Bruno Haible  <bruno@clisp.org>
58245
58246         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58247         Make the mostlyclean-local rule depend on mostlyclean-generic.
58248         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58249
58250 2006-07-31  Bruno Haible  <bruno@clisp.org>
58251
58252         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58253         <stdlib.h>, <string.h>.
58254
58255 2006-07-30  Bruno Haible  <bruno@clisp.org>
58256
58257         * modules/readlink (License): Change to LGPL.
58258
58259 2006-07-30  Bruno Haible  <bruno@clisp.org>
58260
58261         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58262         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58263         set PKGDATADIR to point to it.
58264
58265 2006-07-30  Bruno Haible  <bruno@clisp.org>
58266
58267         * modules/csharpexec (configure.ac): Comment out macro invocation.
58268         * modules/javaexec (configure.ac): Likewise.
58269         * modules/javacomp-script (configure.ac): Likewise.
58270
58271         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58272
58273 2006-07-30  Bruno Haible  <bruno@clisp.org>
58274
58275         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58276         linked-list.
58277
58278 2006-07-30  Bruno Haible  <bruno@clisp.org>
58279
58280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58281
58282 2006-07-30  Bruno Haible  <bruno@clisp.org>
58283
58284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58285         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58286         get removed.
58287
58288 2006-07-29  Bruno Haible  <bruno@clisp.org>
58289
58290         Make it possible for gnulib-tool to work with locally modified or
58291         augmented gnulib repositories.
58292         * gnulib-tool (func_usage): Document --local-dir option.
58293         (local_gnulib_dir): New variable.
58294         Handle --local-dir option.
58295         (func_lookup_file): New function.
58296         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58297         (func_get_description, func_get_filelist, func_get_description,
58298         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58299         func_get_automake_snippet, func_get_include_directive,
58300         func_get_license, func_get_maintainer): Use func_lookup_file.
58301         (func_import, func_create_testdir): Use func_lookup_file.
58302
58303 2006-07-29  Bruno Haible  <bruno@clisp.org>
58304
58305         * modules/setenv (Depends-on): Add unistd.
58306
58307 2006-07-29  Bruno Haible  <bruno@clisp.org>
58308
58309         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58310
58311 2006-07-29  Bruno Haible  <bruno@clisp.org>
58312
58313         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58314
58315 2006-07-29  Bruno Haible  <bruno@clisp.org>
58316
58317         * gnulib-tool (import, update): If there is no Makefile.am, look at
58318         aclocal.m4, instead of bailing out.
58319
58320 2006-07-29  Bruno Haible  <bruno@clisp.org>
58321
58322         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58323         Categorize the options by when they are useful.
58324
58325 2006-07-29  Bruno Haible  <bruno@clisp.org>
58326
58327         * gnulib-tool (func_usage): Document option --no-libtool.
58328         Handle option --no-libtool.
58329         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58330         for changed semantics of $libtool variable.
58331         (func_import): Likewise. If libtool is not used, show this through
58332         an option --no-libtool.
58333         (func_create_testdir): Update.
58334
58335 2006-07-29  Bruno Haible  <bruno@clisp.org>
58336
58337         * gnulib-tool (func_import): Extend error message about missing
58338         --doc-base.
58339
58340 2006-07-29  Bruno Haible  <bruno@clisp.org>
58341
58342         * gnulib-tool (func_import): Don't create the $docbase directory if
58343         there is no file to store there.
58344
58345 2006-07-29  Bruno Haible  <bruno@clisp.org>
58346
58347         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58348         relevant, look for configure.ac there, not in the current directory.
58349         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58350
58351 2006-07-29  Bruno Haible  <bruno@clisp.org>
58352
58353         * gnulib-tool (SORT): New variable.
58354         (func_usage): Undocument --assume-autoconf option.
58355         Remove --assume-autoconf option handling.
58356         (autoconf_minversion): Determine from the contents of configure.ac.
58357         (func_import): Remove autoconf_minversion handling.
58358         Suggested by Eric Blake.
58359
58360 2006-07-29  Bruno Haible  <bruno@clisp.org>
58361
58362         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58363
58364 2006-07-29  Bruno Haible  <bruno@clisp.org>
58365
58366         * config/srclist.txt (*setenv.[ch]): Remove rules.
58367
58368 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58369
58370         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58371
58372 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58373
58374         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58375         arpa/inet.h.
58376
58377 2006-07-28  Simon Josefsson  <jas@extundo.com>
58378
58379         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58380         * modules/inet_pton (Depends-on): Likewise.
58381
58382 2006-07-28  Simon Josefsson  <jas@extundo.com>
58383
58384         * m4/netinet_in_h.m4: New file.
58385
58386 2006-07-28  Simon Josefsson  <jas@extundo.com>
58387
58388         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58389         #include's.
58390
58391 2006-07-28  Simon Josefsson  <jas@extundo.com>
58392
58393         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58394         #include's.
58395
58396 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58397
58398         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58399         setgid on directories only if they set these bits.
58400         * lib/modechange.h: Remove obsolete comment about masks.
58401
58402 2006-07-28  Eric Blake  <ebb9@byu.net>
58403
58404         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58405         macro expansion.
58406
58407 2006-07-28  Bruno Haible  <bruno@clisp.org>
58408
58409         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58410
58411 2006-07-28  Bruno Haible  <bruno@clisp.org>
58412
58413         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58414
58415 2006-07-28  Bruno Haible  <bruno@clisp.org>
58416
58417         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58418         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58419         Define fallbacks.
58420         Avoids link error on FreeBSD 4.x.
58421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58422
58423         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58424         encoding.
58425         * lib/mbswidth.c (iswcntrl): Likewise.
58426
58427 2006-07-27  Bruno Haible  <bruno@clisp.org>
58428
58429         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58430         test.
58431
58432 2006-07-27  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58435         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58436         defined.
58437
58438 2006-07-26  Eric Blake  <ebb9@byu.net>
58439
58440         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58441
58442 2006-07-26  Eric Blake  <ebb9@byu.net>
58443
58444         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58445         like mingw that lack mkstemp.
58446         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58447         avoid compilation warning on mingw.
58448
58449 2006-07-26  Bruno Haible  <bruno@clisp.org>
58450
58451         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58452         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58453         INT_FAST*_MIN, INTPTR_MIN.
58454
58455 2006-07-25  Bruno Haible  <bruno@clisp.org>
58456
58457         * modules/version-etc (Depends-on): Add stdarg.
58458
58459 2006-07-25  Bruno Haible  <bruno@clisp.org>
58460
58461         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58462         complex commands.
58463
58464 2006-07-25  Bruno Haible  <bruno@clisp.org>
58465
58466         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58467         defined in <stdarg.h> or config.h.
58468
58469 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58472         (gl_STDIO_SAFER): Remove.
58473
58474 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58475
58476         * MODULES.html.sh (File stream based Input/Output):
58477         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58478         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58479         * modules/fopen-safer, modules/tmpfile-safer: New files.
58480         * modules/stdio-safer: Remove.
58481
58482 2006-07-24  Bruno Haible  <bruno@clisp.org>
58483
58484         * modules/tmpdir: New file.
58485         * MODULES.html.sh (File system functions): Add it.
58486
58487 2006-07-24  Bruno Haible  <bruno@clisp.org>
58488
58489         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58490         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58491
58492 2006-07-24  Bruno Haible  <bruno@clisp.org>
58493
58494         * modules/clean-temp: New file.
58495
58496 2006-07-24  Bruno Haible  <bruno@clisp.org>
58497
58498         * m4/tmpdir.m4: New file, from GNU gettext.
58499
58500 2006-07-24  Bruno Haible  <bruno@clisp.org>
58501
58502         * lib/tmpdir.h: New file, from GNU gettext.
58503         * lib/tmpdir.c: New file, from GNU gettext.
58504
58505 2006-07-24  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/clean-temp.h: New file, from GNU gettext.
58508         * lib/clean-temp.c: New file, from GNU gettext.
58509
58510 2006-07-23  Eric Blake  <ebb9@byu.net>
58511
58512         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58513         (Depends-on): Add binary-io.
58514
58515 2006-07-23  Eric Blake  <ebb9@byu.net>
58516
58517         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58518
58519 2006-07-23  Eric Blake  <ebb9@byu.net>
58520
58521         * lib/tmpfile-safer.c: New file.
58522         * lib/stdio-safer.h (fopen_safer): Add prototype.
58523         * lib/stdio--.h (tmpfile): Make safer.
58524
58525 2006-07-23  Bruno Haible  <bruno@clisp.org>
58526
58527         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58528         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58529         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58530         gl_linked_remove_at): Use it.
58531
58532 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58533         and Simon Josefsson <jas@extundo.com>
58534
58535         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58536
58537         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58538
58539 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * modules/close-stream: New file.
58542         * modules/closeout (Description): Make it clear that it exits
58543         with a diagnostic on error.
58544         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58545         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58546
58547 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58548
58549         * m4/close-stream.m4: New file.
58550
58551 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58552
58553         * lib/close-stream.c, lib/close-stream.h: New files.
58554
58555 2006-07-22  Bruno Haible  <bruno@clisp.org>
58556
58557         Merge from GNU gettext 0.15.
58558
58559         2006-05-01  Bruno Haible  <bruno@clisp.org>
58560
58561                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58562
58563         2006-07-22  Bruno Haible  <bruno@clisp.org>
58564
58565                 * modules/javaversion: New file.
58566                 * MODULES.html.sh (Java): Add javaversion.
58567
58568         2006-03-12  Bruno Haible  <bruno@clisp.org>
58569
58570                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58571
58572         2005-12-04  Bruno Haible  <bruno@clisp.org>
58573
58574                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58575                 (untested).
58576
58577         2006-06-21  Bruno Haible  <bruno@clisp.org>
58578
58579                 Avoid warnings from recent versions of mcs.
58580                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58581                 -o, -L, -r any more. Use options documented since mcs-1.0
58582                 instead. Similarly for -g.
58583
58584         2005-12-04  Bruno Haible  <bruno@clisp.org>
58585
58586                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58587                 .resources, not .resource.
58588
58589         2005-07-09  Bruno Haible  <bruno@clisp.org>
58590
58591                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58592                 add a .dll suffix.
58593                 Reported by Mark Junker <mjscod@gmx.de>.
58594
58595         2006-07-22  Bruno Haible  <bruno@clisp.org>
58596
58597                 * modules/gettext: Upgrade to gettext-0.15.
58598                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58599                 m4/visibility.m4.
58600                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58601
58602 2006-07-22  Bruno Haible  <bruno@clisp.org>
58603
58604         Merge from GNU gettext 0.15.
58605
58606         2006-03-25  Bruno Haible  <bruno@clisp.org>
58607
58608                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58609
58610         2006-07-21  Bruno Haible  <bruno@clisp.org>
58611
58612                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58613                 "1.1".
58614
58615         2006-05-09  Bruno Haible  <bruno@clisp.org>
58616
58617                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58618                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58619                 for the conftestver execution.
58620
58621         2006-05-01  Bruno Haible  <bruno@clisp.org>
58622
58623                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58624                 optional target-version argument. Verify that the compiler
58625                 groks source of the specified source-version, or add -source
58626                 option as necessary. Verify that the compiler produces
58627                 bytecode in the specified target-version, or add -target and
58628                 -source options as necessary. Make the result of the test
58629                 available as variable CONF_JAVAC. Also log error output in
58630                 config.log.
58631
58632         2006-03-11  Bruno Haible  <bruno@clisp.org>
58633
58634                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58635
58636         2006-05-09  Bruno Haible  <bruno@clisp.org>
58637
58638                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58639                 CLASSPATH_SEPARATOR to a semicolon.
58640
58641         2006-03-12  Bruno Haible  <bruno@clisp.org>
58642
58643                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58644                 available as variable CONF_JAVA, for subsequent autoconf
58645                 tests. Also log error output in config.log.
58646
58647         2006-07-19  Bruno Haible  <bruno@clisp.org>
58648
58649                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58650                 that getline works on glibc2 systems. Needed to avoid trouble
58651                 in relocatable.c.
58652                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58653
58654         2005-12-04  Bruno Haible  <bruno@clisp.org>
58655
58656                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58657                 launcher (untested).
58658
58659         2005-12-04  Bruno Haible  <bruno@clisp.org>
58660
58661                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58662
58663         2006-07-22  Bruno Haible  <bruno@clisp.org>
58664
58665                 * gettext.m4: Update from GNU gettext-0.15.
58666                 * nls.m4: Likewise.
58667                 * po.m4: Likewise.
58668                 * inttypes-pri.m4: Likewise.
58669                 * inttypes-h.m4: Renamed from inttypes.m4.
58670                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58671
58672 2006-07-22  Bruno Haible  <bruno@clisp.org>
58673
58674         Merge from GNU gettext 0.15.
58675
58676         2005-07-05  Bruno Haible  <bruno@clisp.org>
58677
58678                 * printf-args.c (printf_fetchargs): Work around broken
58679                 definition of wint_t on mingw.
58680
58681         2005-02-12  Bruno Haible  <bruno@clisp.org>
58682
58683                 * xallocsa.h: Add extern "C" for C++.
58684
58685         2006-05-17  Bruno Haible  <bruno@clisp.org>
58686
58687                 Cygwin portability.
58688                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58689
58690         2006-04-30  Bruno Haible  <bruno@clisp.org>
58691
58692                 * progreloc.c: Include <mach-o/dyld.h> if available.
58693                 (find_executable): Use _NSGetExecutablePath when possible.
58694
58695         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58696
58697                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58698                 function.
58699
58700         2005-12-29  Bruno Haible  <bruno@clisp.org>
58701
58702                 * progreloc.c (set_program_name_and_installdir): Fix
58703                 compilation error.
58704
58705         2005-12-04  Bruno Haible  <bruno@clisp.org>
58706
58707                 Cygwin portability.
58708                 * progreloc.c: Include <windows.h> also on Cygwin.
58709                 (find_executable): Add support for Cygwin.
58710                 (set_program_name_and_installdir): Handle also platforms with
58711                 nonempty EXEEXT.
58712
58713         2006-07-11  Bruno Haible  <bruno@clisp.org>
58714
58715                 * javacomp.c: Fix a comment.
58716                 Reported by Jim Meyering.
58717
58718         2006-04-30  Bruno Haible  <bruno@clisp.org>
58719
58720                 * javacomp.h (compile_java_class): Add source_version,
58721                 target_version arguments.
58722                 * javacomp.c: Rewritten to choose only a compiler that
58723                 respects the specified source_version and target_version.
58724
58725         2006-06-27  Bruno Haible  <bruno@clisp.org>
58726
58727                 Assume correct S_ISDIR macro.
58728                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58729
58730         2006-07-22  Bruno Haible  <bruno@clisp.org>
58731
58732                 * javaversion.h: New file, from GNU gettext.
58733                 * javaversion.c: New file, from GNU gettext.
58734                 * javaversion.java: New file, from GNU gettext.
58735                 * javaversion.class: New file, from GNU gettext.
58736
58737         2006-05-17  Bruno Haible  <bruno@clisp.org>
58738
58739                 Cygwin portability.
58740                 * javaexec.c (execute_java_class): Test for jview program
58741                 also on Cygwin.
58742
58743         2006-04-09  Bruno Haible  <bruno@clisp.org>
58744
58745                 * fatal-signal.c: Don't include string.h.
58746                 (at_fatal_signal): Use a copying loop instead of memcpy.
58747
58748         2005-12-04  Bruno Haible  <bruno@clisp.org>
58749
58750                 * csharpexec.c: Add support for 'clix' launcher (untested).
58751                 (execute_csharp_using_sscli): New function.
58752                 (execute_csharp_program): Call it.
58753
58754         2006-06-21  Bruno Haible  <bruno@clisp.org>
58755
58756                 Avoid warnings from recent versions of mcs.
58757                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58758                 -o, -L, -r any more. Use options documented since mcs-1.0
58759                 instead. Similarly for -g.
58760
58761         2005-07-09  Bruno Haible  <bruno@clisp.org>
58762
58763                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58764                 add a .dll suffix.
58765                 Reported by Mark Junker <mjscod@gmx.de>.
58766
58767         2006-06-17  Bruno Haible  <bruno@clisp.org>
58768
58769                 * config.charset: Update for NetBSD 3.0.
58770
58771         2006-05-17  Bruno Haible  <bruno@clisp.org>
58772
58773                 Cygwin portability.
58774                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58775
58776         2006-05-16  Bruno Haible  <bruno@clisp.org>
58777
58778                 * localcharset.c [CYGWIN]: Include <windows.h>.
58779                 (get_charset_aliases): For Cygwin, return the same CPxxx
58780                 aliases list as under WIN32.
58781                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58782                 the environment variables. Fall back to GetACP().
58783
58784         2006-04-05  Bruno Haible  <bruno@clisp.org>
58785
58786                 * config.charset: Update Juan Manuel Guerrero's address.
58787
58788         2005-02-12  Bruno Haible  <bruno@clisp.org>
58789
58790                 * allocsa.h: Add extern "C" for C++.
58791
58792         2005-02-10  Bruno Haible  <bruno@clisp.org>
58793
58794                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58795                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58796
58797         2006-07-22  Bruno Haible  <bruno@clisp.org>
58798
58799                 * gettext.h: Update to GNU gettext-0.15.
58800
58801 2006-07-22  Bruno Haible  <bruno@clisp.org>
58802
58803         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58804         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58805         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58806
58807 2006-07-21  Eric Blake  <ebb9@byu.net>
58808
58809         * modules/stdlib-safer: New file.
58810         * MODULES.html.sh (File stream based Input/Output): Add
58811         stdlib-safer.
58812
58813 2006-07-21  Eric Blake  <ebb9@byu.net>
58814
58815         * lib/stdlib-safer.h: New file from coreutils, required by
58816         stdlib--.h.
58817
58818 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58819
58820         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58821
58822 2006-07-20  Bruno Haible  <bruno@clisp.org>
58823
58824         * gnulib-tool: Recognize new option --assume-autoconf.
58825         (autoconf_minversion): New variable.
58826         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58827
58828 2006-07-20  Bruno Haible  <bruno@clisp.org>
58829
58830         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58831
58832 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58833
58834         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58835         Reindent and repaginate.
58836
58837 2006-07-19  Derek Price  <derek@ximbiot.com>
58838
58839         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58840         Correct grammar.
58841
58842 2006-07-17  Bruno Haible  <bruno@clisp.org>
58843
58844         * modules/list: New file.
58845         * modules/array-list: New file.
58846         * modules/carray-list, modules/carray-list-tests: New files.
58847         * modules/linked-list, modules/linked-list-tests: New files.
58848         * modules/avltree-list, modules/avltree-list-tests: New files.
58849         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58850         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58851         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58852         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58853         * modules/oset: New file.
58854         * modules/array-oset: New file.
58855         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58856         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58857         * tests/test-carray_list.c: New file.
58858         * tests/test-linked_list.c: New file.
58859         * tests/test-avltree_list.c: New file.
58860         * tests/test-rbtree_list.c: New file.
58861         * tests/test-linkedhash_list.c: New file.
58862         * tests/test-avltreehash_list.c: New file.
58863         * tests/test-rbtreehash_list.c: New file.
58864         * tests/test-avltree_oset.c: New file.
58865         * tests/test-rbtree_oset.c: New file.
58866         * MODULES.html.sh (Container data structures): New section.
58867
58868 2006-07-17  Bruno Haible  <bruno@clisp.org>
58869
58870         * m4/gl_list.m4: New file.
58871
58872 2006-07-17  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/gl_list.h: New file.
58875         * lib/gl_list.c: New file.
58876         * lib/gl_array_list.h: New file.
58877         * lib/gl_array_list.c: New file.
58878         * lib/gl_carray_list.h: New file.
58879         * lib/gl_carray_list.c: New file.
58880         * lib/gl_linked_list.h: New file.
58881         * lib/gl_linked_list.c: New file.
58882         * lib/gl_anylinked_list1.h: New file.
58883         * lib/gl_anylinked_list2.h: New file.
58884         * lib/gl_avltree_list.h: New file.
58885         * lib/gl_avltree_list.c: New file.
58886         * lib/gl_anyavltree_list1.h: New file.
58887         * lib/gl_anyavltree_list2.h: New file.
58888         * lib/gl_rbtree_list.h: New file.
58889         * lib/gl_rbtree_list.c: New file.
58890         * lib/gl_anyrbtree_list1.h: New file.
58891         * lib/gl_anyrbtree_list2.h: New file.
58892         * lib/gl_anytree_list1.h: New file.
58893         * lib/gl_anytree_list2.h: New file.
58894         * lib/gl_linkedhash_list.h: New file.
58895         * lib/gl_linkedhash_list.c: New file.
58896         * lib/gl_anyhash_list1.h: New file.
58897         * lib/gl_anyhash_list2.h: New file.
58898         * lib/gl_avltreehash_list.h: New file.
58899         * lib/gl_avltreehash_list.c: New file.
58900         * lib/gl_rbtreehash_list.h: New file.
58901         * lib/gl_rbtreehash_list.c: New file.
58902         * lib/gl_anytreehash_list1.h: New file.
58903         * lib/gl_anytreehash_list2.h: New file.
58904
58905         * lib/gl_oset.h: New file.
58906         * lib/gl_oset.c: New file.
58907         * lib/gl_array_oset.h: New file.
58908         * lib/gl_array_oset.c: New file.
58909         * lib/gl_avltree_oset.h: New file.
58910         * lib/gl_avltree_oset.c: New file.
58911         * lib/gl_rbtree_oset.h: New file.
58912         * lib/gl_rbtree_oset.c: New file.
58913         * lib/gl_anytree_oset.h: New file.
58914
58915 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         * m4/mkancesdirs.m4: New file.
58918         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58919         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58920         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58921         it.
58922
58923 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58924
58925         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58926         * lib/mkancesdirs.h: New files.
58927         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58928         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58929         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58930         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58931         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58932         callers changed.  Revamp internals significantly, by not
58933         attempting to create directories that are temporarily more
58934         permissive than the final results.  Do not attempt to use
58935         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58936         This removes some race conditions, fixes some bugs, and simplifies
58937         things.  Use new dirchownmod function to do owner and mode changes.
58938         * lib/mkdir-p.h: Likewise.
58939         * lib/modechange.c (octal_to_mode): New function.
58940         (struct mode_change): New member mentioned.
58941         (make_node_op_equals): New arg mentioned.  All callers changed.
58942         (mode_compile): Keep track of which mode bits the user has explicitly
58943         mentioned.
58944         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58945         New arg PMODE_BITS, to keep track of which mode bits the user
58946         mentioned; it treats S_ISUID and S_ISGID speciall.
58947         All callers changed.
58948         * lib/modechange.h: Likewise.
58949
58950 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58951
58952         * MODULES.html.sh: Add mkancestors.
58953         * modules/mkancesdirs: New module.
58954         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58955         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58956         The chdir-safer and afs files are now orphans; I'll remove them
58957         unless someone speaks up.
58958         Add lib/dirchownmod.c, lib/dirchownmod.h.
58959         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58960         Add lchown, mkancesdirs.
58961         (Maintainer): Add self.
58962
58963 2006-07-15  Karl Berry  <karl@gnu.org>
58964
58965         * gnulib-tool: help message wording/arrangement.
58966
58967 2006-07-14  Simon Josefsson  <jas@extundo.com>
58968
58969         * doc/gnulib.texi (Libtool and Windows): New section.
58970
58971 2006-07-12  Simon Josefsson  <jas@extundo.com>
58972
58973         * modules/gendocs (License): Fix license, approved by Karl.
58974
58975 2006-07-12  Eric Blake  <ebb9@byu.net>
58976
58977         * MODULES.html.sh: Add gendocs.
58978
58979 2006-07-11  Eric Blake  <ebb9@byu.net>
58980
58981         * modules/fdl: New module, to install doc/fdl.texi.
58982         * MODULES.html.sh: Add new section for documentation modules.
58983         * gnulib-tool: Avoid space-tab.
58984         (--doc-base): New option, to manage files from doc.
58985
58986 2006-07-11  Eric Blake  <ebb9@byu.net>
58987
58988         * m4/absolute-header.m4: Fix comments to match recent change.
58989
58990 2006-07-11  Eric Blake  <ebb9@byu.net>
58991
58992         * gnulib-tool: List --doc-base before --tests-base.
58993
58994 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58995
58996         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58997
58998 2006-07-11  Bruno Haible  <bruno@clisp.org>
58999
59000         * README: Mention where to put documentation.
59001
59002 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59003
59004         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59005
59006 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59007
59008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59009         to stdint.m4.
59010
59011 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59012
59013         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59014         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59015         "no/such/file/stdint.h" when there is no such file, so that
59016         the resulting C code can be parsed by dodgy compilers.
59017         Problems reported by Bob Proulx.
59018
59019 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59020
59021         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59022         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59023         macros into the GNU _D_EXACT_NAMLEN.
59024         * lib/savedir.c:  Likewise.
59025         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59026
59027 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59028         and Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59031         * m4/savedir.m4:
59032         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59033         macros into the GNU _D_EXACT_NAMLEN.
59034
59035 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59036
59037         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59038         around the absolute name, to work around a problem with the HP-UX
59039         11.23 native C compiler, reported by Bob Proulx.
59040
59041 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59042
59043         * doc/maintain.texi, make-stds.texi: Sync from
59044         <http://savannah.gnu.org/projects/gnustandards>.
59045
59046 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59049
59050 2006-07-09  Jim Meyering  <jim@meyering.net>
59051
59052         * m4/glob.m4: Remove a doubled word in a comment.
59053
59054 2006-07-09  Jim Meyering  <jim@meyering.net>
59055
59056         * lib/argp-pv.c: Remove a doubled word in a comment.
59057         * lib/check-version.c (check_version): Likewise.
59058         * lib/javacomp.c (compile_java_class): Likewise.
59059
59060 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59061
59062         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59063         for the benefit of people using Autoconf 2.60.  If you want to
59064         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59065         (or m4/onceonly.m4, if pre-2.57) manually.
59066
59067 2006-07-08  Jim Meyering  <jim@meyering.net>
59068
59069         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59070         comment.
59071         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59072         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59073         comment.
59074
59075 2006-07-08  Jim Meyering  <jim@meyering.net>
59076
59077         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59078
59079 2006-07-07  Simon Josefsson  <jas@extundo.com>
59080
59081         * tests/test-crc.c: Change expected crc value, the test vector
59082         were probably computed using the old broken crc.c?
59083
59084 2006-07-06  Simon Josefsson  <jas@extundo.com>
59085
59086         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59087         now the canonical place for the M4 file).
59088
59089         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59090         from the sys_socket dependency now.
59091
59092         * modules/inet_pton (Files): Ditto.
59093
59094         * modules/inet_ntop (Files): Ditto.
59095
59096 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59097
59098         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59099         not gl_PREREQ_GETUSERSHELL.
59100
59101 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59102
59103         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59104         with only one argument, for Autoconf 2.60.
59105         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59106         expand to nothing, so add a shell command to avoid syntax error.
59107         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59108
59109 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59110
59111         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59112
59113 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59114
59115         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59116         no longer needed.  Check for isblank decl.
59117         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59118         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59119         of existence.
59120
59121 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59122
59123         * lib/getloadavg.c: Use __VMS, not VMS.
59124         * lib/getopt.c: Likewise.
59125         * lib/getpagesize.h: Likewise.
59126         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59127         and probably does not work.
59128
59129 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59130
59131         * lib/.cppi-disable: Add wcwidth.
59132         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59133         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59134         (ISGRAPH): Remove.  All uses changed to isgraph.
59135         (FOLD) [!defined _LIBC]: Remove special case.
59136         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59137         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59138         HAVE_ISBLANK.
59139         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59140         case.
59141
59142 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59143
59144         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59145         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59146         brackets.  Other minor changes to suppress some compiler
59147         warnings.
59148
59149 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59150         and Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59153         of invoking obsolescent AC_HEADER_DIRENT macro.
59154         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59155         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59156         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59158         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59159         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59160         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59161         * m4/readdir.m4: Remove; no longer needed.
59162
59163 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59164         and Paul Eggert  <eggert@cs.ucla.edu>
59165
59166         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59167         Don't worry about this obsolete case any more.
59168         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59169         directories.
59170         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59171         worry about this obsolete case any more.
59172         * lib/fts.c: Likewise.
59173         * lib/getcwd.c: Likewise.
59174         * lib/glob.h: Likewise.
59175         * lib/savedir.c: Likewise.
59176
59177 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59178
59179         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59180         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59181         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59182         needed.
59183         All uses removed.
59184         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59185         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59186         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59187         needed.
59188         * m4/getdate.m4 (gl_GETDATE): Likewise.
59189         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59190         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59191         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59192         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59193         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59194         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59195         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59196         needed.
59197
59198 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59199
59200         * lib/memcasecmp.c: Include <limits.h>.
59201         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59202         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59203         Don't assume isdigit succeeds only on '0' through '9'.
59204
59205 2006-07-05  Eric Blake  <ebb9@byu.net>
59206
59207         * modules/getaddrinfo (Depends-on): Add snprintf.
59208
59209 2006-07-05  Eric Blake  <ebb9@byu.net>
59210
59211         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59212         to avoid 'header present but could not be compiled' on cygwin.
59213
59214 2006-07-05  Eric Blake  <ebb9@byu.net>
59215
59216         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59217         missing from netdb.h.
59218         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59219
59220 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59221
59222         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59223         no longer needed.
59224         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59225         * m4/getdate.m4 (gl_GETDATE): Likewise.
59226         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59227         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59228         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59229         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59230         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59231
59232 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59233
59234         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59235         All uses of is_space replaced by isspace.
59236         * lib/exit.h: Don't talk about STDC_HEADERS.
59237         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59238         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59239         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59240         replaced by isprint etc.
59241         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59242         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59243         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59244         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59245         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59246         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59247
59248 2006-07-05  Bruno Haible  <bruno@clisp.org>
59249
59250         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59251         the function exists, before testing against AIX.
59252         Reported by Martin Lambers <marlam@marlam.de>.
59253
59254 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59255
59256         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59257         From Mark D. Baushke.
59258
59259 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59262         to the absolute name, not just one, to bypass Sun C 5.8's
59263         "warning: #include of /usr/include/... may be non-portable".
59264
59265 2006-07-04  Eric Blake  <ebb9@byu.net>
59266
59267         * modules/dirname-tests: New test module.
59268         * tests/test-dirname.c: New file, replacing dirname.c
59269         TEST_DIRNAME section that was recently deleted.
59270
59271 2006-07-04  Bruno Haible  <bruno@clisp.org>
59272
59273         Assume ANSI C header files and <ctype.h> functions.
59274         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59275         (mbsnwidth): Use isprint, iscntrl instead.
59276
59277 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         Merge from coreutils.
59280         * MODULES.html.sh: Add xstrtold.
59281         * modules/xstrtold: New file.
59282         * modules/cycle-check (Files): Add lib/same-inode.h.
59283         * modules/dirname (Files): Add m4/double-slash-root.m4.
59284         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59285         * modules/mkdir-p (Files): Add lib/same-inode.h.
59286         * modules/same (Files): Add lib/same-inode.h.
59287
59288 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59289
59290         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59291         This is to keep the terminology clean; POSIX talks about
59292         "absolute pathnames", not "full pathnames", but the GNU
59293         Coding Standards say to use "path" for something else;
59294         so use "absolute" to keep both sides happy.
59295         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59296         Set gl_absolute_header, not gl_full_header_path.
59297         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59298         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59299         All uses changed.
59300
59301         Merge from coreutils.
59302
59303         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59304
59305         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59306         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59307         want to require the building of c-strtod.o.
59308         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59309         needs -lm directly.
59310         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59311
59312         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59315         --as-needed option if available.  Problem reported by Albert Chin in
59316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59317         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59318         cc merely issues a bunch of annoying warnings for --as-needed
59319         (this problem was reported by Bob Proulx).  Also, try linking with
59320         -lm to detect a bug in binutils 2.16 (this problem was reported
59321         by Ralf Wildenhues).
59322
59323         2006-06-18  Jim Meyering  <jim@meyering.net>
59324
59325         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59326         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59327         macro.
59328         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59329         also check for glibc-2.4's abort-inducing bug.
59330
59331         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59332         Low-probability clean-up should be to use rmdir to get rid of
59333         the just-created directory, not unlink.
59334
59335         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59336         configure fail, and request a bug report to inform us about it.
59337         Add a comment that, barring reports to the contrary, in 2007 we'll
59338         assume ftruncate is universally available.
59339
59340         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59343
59344         2006-03-12  Jim Meyering  <jim@meyering.net>
59345
59346         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59347         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59348         * m4/same.m4 (gl_SAME): Likewise.
59349         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59350
59351         2006-03-11  Eric Blake  <ebb9@byu.net>
59352
59353         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59354         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59355         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59356         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59357
59358 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59359
59360         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59361         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59362         reported by Mark D. Baushke, one in
59363         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59364
59365         Merge from coreutils.
59366
59367         * lib/.cppi-disable: Add stdint_.h.
59368         * lib/.cvsignore: Add stdint.h.
59369
59370         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59373         both double and long double versions.
59374         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59375         * lib/xstrtold.c: New file.
59376         * lib/xstrtod.h (xstrtold): New decl.
59377
59378         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59379
59380         * lib/filemode.c (setst): Remove.
59381         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59382         (arguably) clearer, and the generated code is a bit smaller on my
59383         Debian GNU/Linux stable x86 host.
59384
59385         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59386
59387         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59388         Assume that filemode.h includes sys/types.h and sys/stat.h.
59389         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59390         (ftypelet): Reorder to put common cases first, for efficiency.
59391         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59392         to do 'M'.
59393         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59394         of 10, for compatibility with FreeBSD.  All callers changed.
59395         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59396         types that can't be deduced solely from st_mode.  First arg is now a
59397         const pointer.
59398         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59399         (strmode): Renamed from mode_string.
59400         (filemodestring): New decl.
59401         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59402         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59403         needed.
59404         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59405
59406         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59409         fsusage.h now does that.  Include fsusage.h first, to test interface.
59410         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59411         at most one method (the old code could have generated decls that
59412         didn't conform to C89, not that this was ever exercised).
59413         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59414
59415         2006-03-19  Jim Meyering  <jim@meyering.net>
59416
59417         Work even in a chroot where d_ino values for entries in "/"
59418         don't match the stat.st_ino values for the same names.
59419         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59420         number, iterate through all entries again, using lstat instead.
59421         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59422         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59423
59424         * lib/getcwd.c (__getcwd): Clarify a comment.
59425         Use memcpy in place of a call to strcpy.
59426
59427         2006-03-12  Jim Meyering  <jim@meyering.net>
59428
59429         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59430         matches that of the current directory (which we're about to chdir ".."
59431         out of), then save the dev-ino of the parent, instead.
59432
59433         * lib/same-inode.h (SAME_INODE): New file/macro.
59434         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59435         Include "same-inode.h", instead.
59436         * lib/same.c: Likewise.
59437         * lib/cycle-check.h: Include "same-inode.h".
59438         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59439         * lib/cycle-check.c (SAME_INODE): Remove definition.
59440         * lib/root-dev-ino.h: Include "same-inode.h".
59441
59442         2006-03-11  Eric Blake  <ebb9@byu.net>
59443
59444         * lib/same.c (same_name): s/base_name/last_component/
59445         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59446         * lib/filenamecat.c (file_name_concat): Likewise.
59447
59448         2006-03-11  Eric Blake  <ebb9@byu.net>,
59449                     Paul Eggert  <eggert@cs.ucla.edu>
59450
59451         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59452         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59453         drive prefix.
59454         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59455         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59456         (last_component): New method.
59457         * lib/dirname.c (dir_len): Determine when drive letters need a
59458         subsequent slash.  Preserve // when it is special.
59459         (dir_name): Don't append dot when drive letter is absolute.
59460         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59461         * lib/basename.c (base_name): New semantics - malloc the result.
59462         Preserve // when it is special.  Preserve relative files that look
59463         like drive letters.
59464         (base_len): Preserve // when it is special.
59465         (last_component): New method, similar to old base_name semantics.
59466         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59467         base_name.  Strip redundant slashes from ///.
59468
59469 2006-07-03  Jim Meyering  <jim@meyering.net>
59470
59471         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59472         macro is used before the first cycle_check call.
59473
59474 2006-07-03  Eric Blake  <ebb9@byu.net>
59475
59476         * modules/dirname (Depends-on): Add xstrndup.
59477
59478 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59481         test cases, so that config.log is a bit easier to follow.
59482
59483 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59486         both are 64 bits, since this seems to be the tradition, and this
59487         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59488         we ever run into a host that prefers long long to long in this
59489         case, we'll need another configure-time test.  Problem reported by
59490         Jim Meyering.
59491
59492 2006-07-02  Eric Blake  <ebb9@byu.net>
59493
59494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59495
59496 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * modules/inttypes (Depends-on): No longer depends on stdint.
59499         * modules/stdint (Description): Say more about assumptions.
59500         Say that the fast types might differ.  Say macros are used.
59501         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59502         (Makefile.am): Revise list of substituted symbols to match
59503         new stdint.m4.
59504         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59505         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59506         * tests/test-stdint.c (verify_same_types)
59507         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59508         the code conforms to C99/C89.
59509         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59510         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59511
59512 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59515         but fix a bug, by requiring at least 64 bits.
59516         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59517         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59518         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59519         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59520
59521         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59522         changes.  Make 2.59 a prerequisite.  Check and substitute for
59523         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59524         inttypes.h.  Do not use special include files; just use the
59525         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59526         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59527         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59528         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59529         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59530         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59531         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59532         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59533         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59534         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59535         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59536         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59537         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59538         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59539         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59540         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59541         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59542         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59543         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59544         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59545         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59546         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59547         not check for things that C99 does not require, e.g., int8_t.  If
59548         a test isn't needed unless <stdint.h> isn't working, and is
59549         unlikely to be needed for any other reason, then don't do it
59550         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59551         size_t, since we assume C89 freestanding at least.  Do not check
59552         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59553         the right thing even if the types are not defined.  Instead use:
59554         (gl_STDINT_TYPE_PROPERTIES): New macro.
59555         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59556         testing whether <sys/types.h> clashes, as Autoconf does this for
59557         us now.  All uses removed.
59558         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59559         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59560         (gl_CHECK_TYPE_SAME):
59561         Remove; no longer needed.
59562         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59563         exists, since we'll return 0 anyway in that case.
59564         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59565
59566 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59567
59568         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59569         possible collision with system files.
59570         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59571         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59572         WCHAR_MIN and WCHAR_MAX in this case.
59573         (<stddef.h>): Do not include; no longer needed.
59574         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59575         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59576         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59577         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59578         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59579         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59580         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59581         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59582         !defined(__c99))]: Include in this case too, since it's harmless
59583         now.
59584         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59585         dangerous to do so.
59586         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59587         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59588         (_STDINT_MIN, _STDINT_MAX): New macros.
59589         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59590         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59591         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59592         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59593         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59594         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59595         macros, not typedefs; this simplifies things quite a bit.
59596         Use long int for all types narrower than int64_t.
59597         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59598         Define in terms of long long int or int64_t or long int,
59599         not int64_t or int32_t.  This saves some compile-time testing.
59600         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59601         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59602         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59603         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59604         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59605         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59606         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59607         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59608         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59609         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59610         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59611         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59612         undef any previous version and define our own version, for
59613         simplicity and consistency with the new macros for types.
59614         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59615         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59616         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59617         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59618         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59619         @WINT_T_SUFFIX@ to keep things simple here.
59620         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59621         Simplify by assuming typical 8/16/32/64 host, since we're
59622         already doing that elsewhere anyway.
59623         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59624         and assume long long int is 64 bits if available.  This
59625         speeds up 'configure'.
59626
59627 2006-07-01  Eric Blake  <ebb9@byu.net>
59628
59629         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59630         Reported by Andreas Buening.
59631
59632 2006-07-01  Eric Blake  <ebb9@byu.net>
59633
59634         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59635
59636 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59637
59638         * lib/getaddrinfo.c: fixed typo
59639
59640 2006-06-29  Jim Meyering  <jim@meyering.net>
59641
59642         * modules/strftime (Maintainer): Add my name, since with the
59643         FPRINTFTIME changes strftime.c has forked from glibc.
59644
59645 2006-06-29  Eric Blake  <ebb9@byu.net>
59646
59647         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59648
59649 2006-06-29  Eric Blake  <ebb9@byu.net>
59650
59651         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59652
59653 2006-06-29  Eric Blake  <ebb9@byu.net>
59654
59655         * lib/stat_.h: New file.
59656
59657 2006-06-29  Eric Blake  <ebb9@byu.net>
59658
59659         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59660         unused static function.
59661
59662 2006-06-29  Eric Blake  <ebb9@byu.net>
59663
59664         * doc/functions.texi (Function Portability): Document missing lstat
59665         on mingw.
59666
59667 2006-06-29  Eric Blake  <ebb9@byu.net>
59668
59669         * MODULES.html.sh: Add sys_stat.
59670         * modules/sys_stat: New module.
59671         * modules/mkstemp (Depends-on): Add sys_stat.
59672
59673 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59674
59675         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59676
59677 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59678
59679         * m4/c-bs-a.m4: Removed.
59680
59681 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59682
59683         * lib/strftime.c: Assume strftime() exists.
59684
59685 2006-06-29  Derek Price  <derek@ximbiot.com>
59686
59687         * modules/c-bs-a: Removed - \a is C89.
59688         * MODULES.html.sh: Remove c-bs-a.
59689
59690 2006-06-29  Bruno Haible  <bruno@clisp.org>
59691
59692         * modules/wcwidth (License): Change to LGPL.
59693
59694 2006-06-28  Simon Josefsson  <jas@extundo.com>
59695
59696         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59697         on _WIN32.
59698
59699         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59700         getnameinfo.
59701
59702 2006-06-28  Simon Josefsson  <jas@extundo.com>
59703
59704         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59705
59706 2006-06-28  Simon Josefsson  <jas@extundo.com>
59707
59708         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59709         functions there.  It will succeed on Windows XP, but on Windows
59710         2000 and (presumably) earlier, it will fail, and use the internal
59711         re-implementation.
59712         (use_win32_p): New function.
59713         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59714         Support AI_NUMERICSERV to disable getservbyname.
59715         (getnameinfo): New function, only supports
59716         NI_NUMERICHOST|NI_NUMERICSERV for now.
59717
59718         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59719         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59720         getnameinfo.
59721
59722 2006-06-28  Eric Blake  <ebb9@byu.net>
59723
59724         * modules/wcwidth: New file.
59725         * modules/mbchar (Depends-on): Add wcwidth.
59726         * modules/mbswidth (Depends-on): Add wcwidth.
59727         * MODULES.html.sh: Add wcwidth.
59728
59729 2006-06-28  Eric Blake  <ebb9@byu.net>
59730
59731         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59733
59734 2006-06-28  Eric Blake  <ebb9@byu.net>
59735
59736         * lib/xvasprintf.h: Fix comments.
59737
59738 2006-06-28  Eric Blake  <ebb9@byu.net>
59739
59740         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59741         * lib/mbswidth.c (wcwidth): Move from here...
59742         * lib/wcwidth.h: ...to this new file.
59743
59744 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59745
59746         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59747
59748         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59749         it's obsolete.
59750         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59751
59752 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59753
59754         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59755         Autoconf 2.60 says this stuff was obsolete.
59756
59757 2006-06-28  Bruno Haible  <bruno@clisp.org>
59758
59759         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59760
59761 2006-06-28  Bruno Haible  <bruno@clisp.org>
59762
59763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59764         gt_TYPE_WCHAR_T.
59765
59766 2006-06-28  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59769         declaration for wcwidth.
59770         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59771
59772 2006-06-28  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59775         (mkdir): Define using _mkdir.
59776
59777 2006-06-28  Bruno Haible  <bruno@clisp.org>
59778
59779         * lib/getaddrinfo.h: Fix POSIX URL.
59780         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59781         _WIN32.
59782         (use_win32_p): Make static.
59783         (getaddrinfo): Reject service name if it is empty or does not consist
59784         solely of decimal digits, or if its value is > 65535.
59785         (getnameinfo): Remove useless casts.
59786
59787 2006-06-27  Simon Josefsson  <jas@extundo.com>
59788
59789         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59790         Eggert and Martin Lambers.
59791
59792 2006-06-27  Simon Josefsson  <jas@extundo.com>
59793
59794         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59795         Eggert and Martin Lambers.
59796
59797 2006-06-27  Bruno Haible  <bruno@clisp.org>
59798
59799         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59800         result to 0, not to empty.
59801         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59802
59803 2006-06-27  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59806
59807 2006-06-26  Simon Josefsson  <jas@extundo.com>
59808
59809         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59810         present.
59811
59812 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59815         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59817
59818 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59819
59820         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59821
59822 2006-06-26  Bruno Haible  <bruno@clisp.org>
59823
59824         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59825
59826 2006-06-26  Bruno Haible  <bruno@clisp.org>
59827
59828         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59829
59830 2006-06-26  Bruno Haible  <bruno@clisp.org>
59831
59832         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59833         SGI C compiler in pre-C99 mode.
59834         Suggested by Mark D. Baushke and Larry Jones.
59835
59836 2006-06-26  Bruno Haible  <bruno@clisp.org>
59837
59838         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59839         WCHAR_MAX.
59840         Reported by Mark D. Baushke and Larry Jones.
59841
59842 2006-06-26  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59845         in pre-C99 mode.
59846         Suggested by Mark D. Baushke and Larry Jones.
59847
59848 2006-06-23  Simon Josefsson  <jas@extundo.com>
59849             Bruno Haible  <bruno@clisp.org>
59850
59851         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59852         Emit mostlyclean-local rule.
59853         (func_emit_tests_Makefile_am): Likewise.
59854         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59855
59856 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59857
59858         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59859
59860 2006-06-23  Bruno Haible  <bruno@clisp.org>
59861
59862         * tests/test-stdint.c: Update to match ISO C 99 Technical
59863         Corrigendum 1.
59864
59865 2006-06-23  Bruno Haible  <bruno@clisp.org>
59866
59867         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59868
59869 2006-06-23  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/stdint_.h: Treat IRIX like OpenBSD.
59872
59873 2006-06-23  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59876         ISO C 99 Technical Corrigendum 1.
59877
59878 2006-06-22  Simon Josefsson  <jas@extundo.com>
59879
59880         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59881         MinGW.
59882
59883 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59884
59885         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59886         needed.  Some compiler complained about some of them.  Problem reported
59887         by Larry Jones in
59888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59889
59890 2006-06-21  Simon Josefsson  <jas@extundo.com>
59891
59892         * tests/test-getaddrinfo.c: New file.
59893
59894         * modules/getaddrinfo-tests: New file.
59895
59896         * MODULES.html.sh: Add inet_pton.
59897
59898         * modules/inet_pton: New file.
59899
59900 2006-06-21  Simon Josefsson  <jas@extundo.com>
59901
59902         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59903         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59904         of using the (limited) gnulib implementation on Windows XP.
59905
59906         * m4/inet_pton.m4: New file.
59907
59908 2006-06-21  Simon Josefsson  <jas@extundo.com>
59909
59910         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59911         variable.
59912
59913         * lib/socket_.h: Don't define WINVER.
59914
59915         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59916         slightly modified to work in gnulib.
59917
59918 2006-06-21  Simon Josefsson  <jas@extundo.com>
59919
59920         * doc/gnulib.texi (Windows sockets): Add.
59921
59922 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * lib/read-file.c (fread_file): Start with buffer allocation of
59925         0 bytes rather than 1 byte; this simplifies the code.
59926         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59927         code to free buffer and save/restore errno.
59928         (internal_read_file): Remove unused local.
59929
59930 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59933         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59934         Problem reported by Denis Excoffier in
59935         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59936
59937 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59938
59939         * modules/sys_socket, modules/socklen: Include sys/types since
59940         FreeBSD 4.x's sys/socket.h needs it.
59941
59942 2006-06-19  Simon Josefsson  <jas@extundo.com>
59943
59944         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59945
59946 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59949
59950 2006-06-19  Bruno Haible  <bruno@clisp.org>
59951
59952         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59953         and FULL_PATH_INTTYPES_H in angle brackets.
59954         Reported by Mark D. Baushke <mdb@gnu.org>.
59955
59956 2006-06-17  Eric Blake  <ebb9@byu.net>
59957
59958         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59959         errno.
59960
59961 2006-06-17  Bruno Haible  <bruno@clisp.org>
59962
59963         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59964         <sys/inttypes.h>.
59965
59966 2006-06-17  Bruno Haible  <bruno@clisp.org>
59967
59968         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59969         whether errno is declared. Assume <errno.h> declares errno.
59970
59971 2006-06-17  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59974
59975 2006-06-17  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59978         problem on Solaris 2.5.1.
59979
59980 2006-06-16  Eric Blake  <ebb9@byu.net>
59981
59982         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59983         * lib/unicodeio.c [!defined errno]: Likewise.
59984         * lib/strtol.c [!defined errno]: Likewise.
59985         * lib/strtod.c [!defined errno]: Likewise.
59986
59987 2006-06-15  Eric Blake  <ebb9@byu.net>
59988
59989         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59990
59991 2006-06-15  Eric Blake  <ebb9@byu.net>
59992
59993         * config/srclist.txt (ssize_t.m4): Lose sync.
59994
59995 2006-06-15  Bruno Haible  <bruno@clisp.org>
59996
59997         * modules/stdint (Files): Include m4/full-header-path.m4,
59998         m4/size_max.m4, m4/wchar_t.m4.
59999         (Makefile.am): Many more substitutions.
60000         * modules/stdint-tests: New file.
60001         * tests/test-stdint.c: New file.
60002
60003 2006-06-15  Bruno Haible  <bruno@clisp.org>
60004
60005         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60006         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60007         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60008         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60009         gl_CHECK_TYPE_SAME): New macros.
60010
60011 2006-06-15  Bruno Haible  <bruno@clisp.org>
60012
60013         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60014
60015 2006-06-15  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/stdint_.h: Rewritten to be fully auto-configured.
60018         Fixes bug on HP-UX/IA64.
60019
60020 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         * lib/getdate.y (__attribute__): Don't define if already defined.
60023         Problem reported by Larry Jones.
60024         * lib/utimens.c (__attribute__): Likewise.
60025
60026 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60029         reported by Andreas Schwab.
60030
60031 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60032             Bruno Haible  <bruno@clisp.org>
60033
60034         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60035         check for the declaration of strnlen and a run test that exposes the
60036         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60037         rpl_strndup.
60038
60039 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60040             Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60043
60044 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60045
60046         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60047         compile test, for Tru64 4.0D.
60048
60049 2006-05-28  Karl Berry  <karl@gnu.org>
60050
60051         * config/srclist.txt (printf-args.c): lose sync.
60052
60053 2006-05-26  Martin Lambers  <marlam@marlam.de>
60054
60055         * lib/getpass.c: Updates the test for the native W32 API, and adds
60056         missing includes, thus fixing compilation warnings.
60057
60058 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60059
60060         * lib/exclude.c (exclude_fnmatch): New function.
60061         (excluded_file_name): Call exclude_fnmatch.
60062         * lib/exclude.h (excluded_file_name): New prototype
60063
60064 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60065
60066         * lib/tempname.c (small_open, large_open): New macros.
60067         (__open, __open64) [!_LIBC]: Remove.
60068         (__gen_tempname): Use small_open and large_open instead of __open
60069         and __open64.  This fixes a portability bug on HP-UX 11.11i
60070         reported by Simon Wing-Tang in
60071         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60072
60073 2006-05-24  Bruno Haible  <bruno@clisp.org>
60074
60075         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60076         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60077         Reported by Thorsten Maerz <torte@netztorte.de> via
60078         Aaron Stone <aaron@serendipity.cx>.
60079
60080 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60083         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60084         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60085         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60086         not really conditional on the cache.
60087         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60088
60089 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60092         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60093         (my_usleep): Don't mishandle maximum value.
60094
60095 2006-05-19  Jim Meyering  <jim@meyering.net>
60096
60097         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60098
60099 2006-05-17  Bruno Haible  <bruno@clisp.org>
60100
60101         Cygwin portability.
60102         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60103
60104 2006-05-17  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/stdint_.h: Fix recognition of Cygwin.
60107
60108 2006-05-15  Bruno Haible  <bruno@clisp.org>
60109
60110         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60111         on libtool patch by Ralf Wildenhues.
60112
60113 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60114
60115         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60116         test for C99 conformance; (bool) 0.5 is an integer constant
60117         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60118         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60119
60120 2006-05-11  Simon Josefsson  <jas@extundo.com>
60121
60122         * m4/xvasprintf.m4: Fix obvious typo.
60123
60124 2006-05-11  Jim Meyering  <jim@meyering.net>
60125
60126         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60127         James Lemley.
60128
60129 2006-05-10  Simon Josefsson  <jas@extundo.com>
60130
60131         * lib/md4.c: Typo fix, update copyright years.
60132         (K1, K2): Don't use L because it turn computations into 64-bit on
60133         64-bit platforms.
60134
60135 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60136
60137         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60138         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60139         unwanted sign propagation, e.g., on hosts with 64-bit int.
60140         There still are some problems with reeelly weird theoretical hosts
60141         (e.g., 33-bit int) but it's not worth worrying about now.
60142         * lib/sha1.c (rol): Likewise.
60143         (K1, K2, K3, K4): Remove unnecessary L suffix.
60144
60145 2006-05-10  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/des.c: Cast to avoid warnings.
60148
60149 2006-05-09  Bruno Haible  <bruno@clisp.org>
60150
60151         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60152         (Depends-on): Depend also on xsize, stdarg.
60153         (configure.ac): Add gl_XVASPRINTF.
60154
60155 2006-05-09  Bruno Haible  <bruno@clisp.org>
60156
60157         * m4/xvasprintf.m4: New file.
60158
60159 2006-05-09  Bruno Haible  <bruno@clisp.org>
60160
60161         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60162         (EOVERFLOW): Define fallback value.
60163         (xstrcat): New function.
60164         (xvasprintf): Recognize the special case of a string concatenation.
60165
60166 2006-05-08  Eric Blake  <ebb9@byu.net>
60167
60168         * gnulib-tool (func_version): Base copyright year on CVS date.
60169         (func_emit_copyright_notice): New function.
60170         (func_emit_lib_Makefile_am): Use it.
60171         (func_emit_tests_Makefile_am): Likewise.
60172         (func_import): Likewise.
60173
60174 2006-05-08  Bruno Haible  <bruno@clisp.org>
60175
60176         * modules/stdarg: New file.
60177         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60178
60179 2006-05-08  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/stdarg.m4: New file, from GNU gettext.
60182
60183 2006-05-08  Bruno Haible  <bruno@clisp.org>
60184
60185         * config/srclist.txt (build-aux/config.rpath): different from latest
60186         release.
60187
60188 2006-05-08  Bruno Haible  <bruno@clisp.org>
60189
60190         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60191
60192 2006-05-05  Jim Meyering  <jim@meyering.net>
60193
60194         * m4/warning.m4: New file, derived from bison's file by the same name.
60195
60196 2006-05-03  Bruno Haible  <bruno@clisp.org>
60197
60198         * lib/stdint_.h: Shorter URL.
60199         * lib/inttypes.h: Likewise.
60200
60201 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60202
60203         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60204
60205 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60206
60207         * lib/verify.h: Document the internals better.  Most of this change
60208         was written by Bruno Haible.
60209
60210 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * doc/verify.texi: New file, partly based on a proposal by
60213         Bruno Haible.
60214
60215 2006-05-02  Bruno Haible  <bruno@clisp.org>
60216
60217         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60218         test from here...
60219         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60220
60221 2006-04-29  Bruno Haible  <bruno@clisp.org>
60222
60223         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60224         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60225
60226 2006-04-29  Bruno Haible  <bruno@clisp.org>
60227
60228         * gnulib-tool: Make --update option actually work.
60229
60230 2006-04-29  Bruno Haible  <bruno@clisp.org>
60231
60232         * doc/gcd.texi: New file.
60233         * doc/gnulib.texi: Include it.
60234
60235 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60236
60237         * lib/getdate.y (get_date): When adding relative date, start with the
60238         initial time, not with the result of the first mktime call.
60239
60240 2006-04-25  Bruno Haible  <bruno@clisp.org>
60241
60242         * gnulib-tool (func_import): Output the include directives in three
60243         blocks, sorted separately.
60244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60245
60246 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60247
60248         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60249         to define main with arguments, for C++.  Reported by Eric Blake.
60250         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60251         Prefer 'int main ()' to 'int main (void)', for C++.
60252         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60253         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60254         for 'main', for C99 and C++.
60255
60256 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60257
60258         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60259         Don't assume that exit status -1 is valid.
60260         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60261         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60262         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60263         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60264         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60265         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60266         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60267         functions can be used without declaring them, or that you can
60268         exit with status -1.
60269         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60270
60271 2006-04-24  Karl Berry  <karl@gnu.org>
60272
60273         * config/srclist.txt (longdouble.m4): sync lost.
60274
60275 2006-04-24  Eric Blake  <ebb9@byu.net>
60276
60277         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60278
60279 2006-04-24  Bruno Haible  <bruno@clisp.org>
60280
60281         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60282         poll() implementation in AIX.
60283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60284
60285 2006-04-24  Bruno Haible  <bruno@clisp.org>
60286
60287         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60288         assigned exactly once.
60289
60290 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60291             Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60294         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60295         for AM_CPPFLAGS.
60296
60297 2006-04-23  Bruno Haible  <bruno@clisp.org>
60298
60299         * modules/copy-file: Depend on unistd.
60300         * modules/execute: Likewise.
60301         * modules/fatal-signal: Likewise.
60302         * modules/findprog: Likewise.
60303         * modules/mkdtemp : Likewise.
60304         * modules/pipe: Likewise.
60305         * modules/wait-process: Likewise.
60306
60307 2006-04-23  Bruno Haible  <bruno@clisp.org>
60308
60309         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60310         condition was already detected.
60311         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60312
60313 2006-04-23  Bruno Haible  <bruno@clisp.org>
60314
60315         * lib/copy-file.c: Include <unistd.h> unconditionally.
60316         * lib/execute.c: Likewise.
60317         * lib/fatal-signal.c: Likewise.
60318         * lib/findprog.c: Likewise.
60319         * lib/mkdtemp.c: Likewise.
60320         * lib/pipe.h: Likewise.
60321         * lib/pipe.c: Likewise.
60322         * lib/wait-process.h: Likewise.
60323
60324 2006-04-23  Bruno Haible  <bruno@clisp.org>
60325
60326         * gnulib-tool (func_usage): Fix --import description. Document
60327         --update.
60328         (func_import): Create temporary file in a temporary directory, if
60329         --dry-run is specified. Silence errors from 'grep' when there are no
60330         m4 files in $m4dir.
60331         (func_create_testdir): Silence errors from 'grep' when there are no
60332         m4 files in $m4dir.
60333         Reported by Karl Berry <karl@freefriends.org>.
60334
60335 2006-04-20  Bruno Haible  <bruno@clisp.org>
60336
60337         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60338         one argument, so that the code will be portable to Autoconf 2.60.
60339         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60340         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60341         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60342
60343 2006-04-19  Derek Price  <derek@ximbiot.com>
60344             Eric Blake  <ebb9@byu.net>
60345
60346         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60347         rather than "/full/path.h".  Update comment to match.  Shorten &
60348         generalize m4_translit call via AS_TR_CPP.
60349
60350 2006-04-19  Derek Price  <derek@ximbiot.com>
60351             Eric Blake  <ebb9@byu.net>
60352
60353         * lib/inttypes.h: Correct grammar in comment.
60354
60355 2006-04-18  Derek Price  <derek@ximbiot.com>
60356             Paul Eggert  <eggert@cs.ucla.edu>
60357
60358         * modules/inttypes: New file.
60359         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60360
60361 2006-04-18  Derek Price  <derek@ximbiot.com>
60362             Paul Eggert  <eggert@cs.ucla.edu>
60363
60364         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60365         New files.
60366
60367 2006-04-18  Derek Price  <derek@ximbiot.com>
60368             Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         * lib/inttypes.h: New file.
60371         * lib/strtoimax.c: Assume <inttypes.h>.
60372
60373 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60376         isn't mounted.  Problem reported by Kir Kolyshkin.
60377
60378 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60379
60380         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60381         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60382         Derek R. Price.
60383         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60384         implementation.
60385
60386 2006-04-12  Eric Blake  <ebb9@byu.net>
60387
60388         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60389         is now done automatically by the corresponding Autoconf macro.
60390
60391 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60394         time_r.h.
60395
60396 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         Merge regex changes from libc, removing some of our
60399         POSIX-conformance changes that were rejected and redoing them in a
60400         less-intrusive way.
60401
60402         * lib/regcomp.c (re_compile_internal, init_dfa):
60403         Length arg is now size_t, not Idx.  All uses changed.
60404         (peek_token): Forward decl now says internal_function.
60405         (__re_error_msgid, __re_error_msgid_idx):
60406         Now static rather than extern with attribute_hidden.
60407         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60408         For some reason libc prefers K&R style defns for external functions.
60409         (regerror) [!defined _LIBC]: Likewise.
60410         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60411         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60412         (build_range_exp, build_collating_symbol):
60413         Use K&R-style defn.
60414         (re_compile_fastmap): Use '\0' to memset, not 0.
60415         (utf8_sb_map): Make the calculations more obvious.
60416         (init_dfa, parse_bracket_exp, build_charclass_op):
60417         Call calloc and cast result, as glibc does.
60418         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60419         (build_range_exp, build_collating_symbol):
60420         Now internal functions.
60421
60422         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60423
60424         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60425         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60426         Don't depend on VMS; depend on __VMS instead, for POSIX
60427         namespace cleanness.
60428         (regoff_t): Define to ssize_t, not long int.
60429
60430         Remove the REG_ macros named below.  Instead, make the old names
60431         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60432         __USE_GNU_REGEX.
60433         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60434         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60435         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60436         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60437         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60438         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60439         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60440         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60441         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60442         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60443         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60444         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60445         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60446         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60447         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60448         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60449         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60450         (REG_NREGS):
60451         Remove.  All uses replaced by the old RE_* names.
60452         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60453         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60454         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60455         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60456         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60457         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60458         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60459         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60460         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60461         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60462         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60463         Don't bother having these macros be independent of each others'
60464         values, since they no longer exist in the POSIX name space.
60465
60466         Rename the following member names back to their old names,
60467         unless !__USE_GNU_REGEX.  All uses changed back.
60468         (buffer): Renamed from re_buffer.
60469         (allocated): Renamed from re_allocated.
60470         (used): Renamed from re_used.
60471         (syntax): Renamed from re_syntax.
60472         (fastmap): Renamed from re_fastmap.
60473         (translate): Renamed from re_translate.
60474         (can_be_null): Renamed from re_can_be_null.
60475         (regs_allocated): Renamed from re_regs_allocated.
60476         (fastmap_accurate): Renamed from re_fastmap_accurate.
60477         (no_sub): Renamed from re_no_sub.
60478         (not_bol): Renamed from re_not_bol.
60479         (not_eol): Renamed from re_not_eol.
60480         (newline_anchor): Renamed from re_newline_anchor.
60481         (num_regs): Renamed from rm_num_regs.
60482         (start): Renamed from rm_start.
60483         (end): Renamed from rm_end.
60484
60485         (free_state): Move up a bit.
60486
60487         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60488         #define to be empty.
60489         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60490         when that is what is intended.
60491         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60492         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60493         (MAX): New macro.
60494         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60495         All uses changed back to re_malloc, etc.  It's now the caller's
60496         responsibility to check for overflow; all callers changed.
60497         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60498         (re_x2nrealloc): Remove.
60499         (free_state): Remove decl.
60500
60501         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60502         (re_set_registers, re_exec):
60503         Use K&R-style defn.
60504
60505         2006-01-31  Roland McGrath  <roland@redhat.com>
60506
60507         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60508         Reported by Mike Frysinger <vapier@gentoo.org>.
60509
60510         2006-01-15  Andreas Jaeger  <aj@suse.de>
60511
60512         [BZ #1950]
60513         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60514         build_wcs_upper_buffer change.
60515         (build_wcs_upper_buffer): Change return type.
60516
60517         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60518
60519         * lib/regex_internal.h: Include <stdint.h> if available.
60520
60521         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60522
60523         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60524
60525         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60526
60527         * lib/regcomp.c: Adjust for changed secondary hash function.
60528
60529         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60530
60531         * lib/regex.h: Pretty printing.
60532         Clean up namespace a bit.
60533
60534         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60535
60536         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60537         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60538
60539         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60540                     Ulrich Drepper  <drepper@redhat.com>
60541
60542         [BZ #1302]
60543         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60544         changed.
60545         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60546
60547         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60548
60549         [BZ #281]
60550         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60551         * lib/regcomp.c: Remove unnecessary uses of
60552         unsigned RE_TRANSLATE_TYPE.
60553         * lib/regex_internal.h: Likewise.
60554         * lib/regex_internal.c: Likewise.
60555         * lib/regexec.c: Likewise.
60556         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60557
60558         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60559
60560         * lib/regexec.c (find_recover_state): Remove unnecessary
60561         initialization.
60562         (transit_state_bkref): Make DFA a const pointer.
60563         (get_subexp): Likewise.
60564         (check_arrival): Likewise.
60565         (update_cur_sifted_state): Likewise.
60566         (re_search_internal): Likewise.
60567         (prune_impossible_nodes): Likewise.
60568         (acquire_init_state_context): Likewise.
60569         (proceed_next_node): Likewise.
60570         (set_regs): Likewise.
60571         (free_fail_stack_return): Likewise.
60572         (check_arrival_expand_ecl): Mark DFA parameter as const.
60573         (check_arrival_expand_ecl_sub): Likewise.
60574         (check_subexp_limits): Likewise.
60575         (sub_epsilon_src_nodes):  Likewise.
60576         (add_epsilon_src_nodes):  Likewise.
60577         (merge_state_array): Likewise.
60578         (update_regs): Likewise.
60579         (build_trtable): Likewise.
60580         (sift_states_backward): Mark MCTX parameter as const.
60581         (build_sifted_states): Likewise.
60582         (update_cur_sifted_state): Likewise.
60583         (sift_states_mkref): Likewise.
60584         (check_arrival_expand_ecl): Mark eclosure as const.
60585         (check_dst_limits_calc_pos_1): Likewise.
60586         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60587         pointer.
60588
60589         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60590
60591         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60592         (transit_state_sb): Likewise.
60593         (transit_state_mb): Likewise.
60594         (sift_states_iter_mb): Likewise.
60595         (check_arrival_add_next_nodes): Likewise.
60596         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60597         [_LIBC] (re_search_2_stub): Use mempcpy.
60598
60599         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60600         mbrtowc for very simple UTF-8 case.
60601
60602         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60603         a pointer-to-const.
60604         (re_acquire_state_context): Likewise.
60605         * lib/regex_internal.h: Adjust prototypes.
60606
60607         * lib/regex.c: Prevent using C++ compilers.
60608
60609         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60610         (re_acquire_state_context): Likewise.
60611
60612 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60613
60614         * modules/regex (Depends-on): Add ssize_t.
60615
60616 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60619         translation table.
60620
60621 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60622
60623         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60624
60625 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60626             Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60629         <sys/types.h> and <inttypes.h>.
60630
60631 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60632
60633         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60634         `__error_t_defined', so argp.h will not typedef the former.
60635
60636 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60637
60638         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60639         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60640         glibc names.  Even if glibc is changed to conform to POSIX, the
60641         traditional names will be available anyway, since regex depends on
60642         the extensions module.  Also, fix a longstanding typo in the
60643         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60644         reported by Emanuele Giaquinta.  Also, change sense of cached
60645         variable, so that the message makes sense.
60646
60647 2006-03-24  Simon Josefsson  <jas@extundo.com>
60648
60649         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60650         including some doc fixes.
60651         (base64_encode_alloc): Fix +1 bug on allocation failures.
60652
60653 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60654
60655         * lib/base64.c (base64_encode): Do not read past end of array with
60656         unsanitized input on systems with CHAR_BIT > 8.
60657
60658 2006-03-24  Eric Blake  <ebb9@byu.net>
60659
60660         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60661
60662 2006-03-22  Karl Berry  <karl@gnu.org>
60663
60664         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60665         * config/srclistvars.sh (COREUTILS): new var.
60666
60667 2006-03-17  Jim Meyering  <jim@meyering.net>
60668
60669         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60670         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60671
60672 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60675         no longer needs it.  Instead, check that regoff_t is as least
60676         as wide as ptrdiff_t.
60677
60678         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60679         so that our regex.h stays compatible with the installed regex.
60680         This is helpful for installers who configure --without-included-regex.
60681         Problem reported by Emanuele Giaquinta.
60682
60683 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60686         Typedef to long int, not to off_, as POSIX will likely change
60687         in that direction.
60688
60689 2006-03-15  Eric Blake  <ebb9@byu.net>
60690
60691         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60692
60693 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60694
60695         * lib/argp-help.c (validate_uparams): Fix typo
60696         * lib/argp-parse.c (argp_default_options): Consistently begin help
60697         messages with a lowercase letter.
60698
60699 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60700
60701         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60702         overrun buffers and shouldn't be used (much as gets shouldn't be
60703         used).
60704         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60705
60706 2006-03-08  Simon Josefsson  <jas@extundo.com>
60707
60708         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60709         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60710
60711 2006-03-08  Simon Josefsson  <jas@extundo.com>
60712
60713         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60714         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60715
60716 2006-03-08  Simon Josefsson  <jas@extundo.com>
60717
60718         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60719         signal that configure disabled the device.
60720
60721 2006-03-08  Simon Josefsson  <jas@extundo.com>
60722
60723         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60724         languages.
60725
60726 2006-03-07  Simon Josefsson  <jas@extundo.com>
60727
60728         * modules/getopt (Depends-on): Add unistd.
60729
60730         * modules/unistd: New file.
60731
60732 2006-03-07  Simon Josefsson  <jas@extundo.com>
60733
60734         * modules/gc-random: New file.
60735
60736 2006-03-07  Simon Josefsson  <jas@extundo.com>
60737
60738         * m4/unistd_h.m4: New file.
60739
60740 2006-03-07  Simon Josefsson  <jas@extundo.com>
60741
60742         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60743         test to be side-effect free by storing the result in the cache
60744         variable gl_cv_lib_readline, and moving the assignment of
60745         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60746         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60747
60748 2006-03-07  Simon Josefsson  <jas@extundo.com>
60749
60750         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60751         error on missing devices (the functions will return an error).
60752
60753         * m4/gc.m4: Move random stuff to gc-random.m4
60754
60755 2006-03-07  Simon Josefsson  <jas@extundo.com>
60756
60757         * lib/unistd_.h: New file.
60758
60759 2006-03-07  Simon Josefsson  <jas@extundo.com>
60760
60761         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60762
60763 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60764
60765         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60766         Problem reported by Juan Manuel Guerrero.
60767
60768 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60769
60770         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60771         the unistd module.
60772         * lib/getlogin_r.c: Likewise.
60773         * lib/getlogin_r.h: Likewise.
60774         * lib/glob.c: Likewise.
60775         * lib/pagealign_alloc.c: Likewise.
60776         * lib/unistd_.h: Remove; no longer needed.
60777
60778 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60781         Add unistd.
60782         * modules/c-stack (Depends-on): Add unistd.
60783         * modules/getlogin_r: Likewise.
60784         * modules/glob: Likewise.
60785         * modules/pagealign_alloc: Likewise.
60786         * modules/unistd (Files): Remove lib/unistd_.h.
60787         (EXTRA_DIST): Remove.
60788         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60789         need unistd_.h.
60790         (MOSTLYCLEANFILES): Remove unistd.h-t.
60791
60792 2006-03-03  Simon Josefsson  <jas@extundo.com>
60793
60794         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60795
60796 2006-03-03  Simon Josefsson  <jas@extundo.com>
60797
60798         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60799         libidn and bison.
60800
60801 2006-03-03  Simon Josefsson  <jas@extundo.com>
60802
60803         * build-aux/maint.mk: Add indent target.
60804
60805 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60806
60807         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60808         our replacement poll.h in any case, to avoid a differing
60809         declaration from a system header.  Seen on AIX.
60810
60811 2006-03-01  Simon Josefsson  <jas@extundo.com>
60812
60813         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60814         <kasal@ucw.cz>.
60815
60816 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60817
60818         * modules/gettime (Depends-on): Add extensions module.
60819         * modules/nanosleep (Depends-on): Likewise.
60820         * modules/settime (Depends-on): Likewise.
60821
60822 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60823
60824         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60825         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60826         pedantically.
60827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60828         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60829
60830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60831         not "==".  Reported by Ralf Wildenhues.
60832
60833 2006-03-01  Karl Berry  <karl@gnu.org>
60834
60835         * doc/Copyright/request-*: new files, synced from gnuorg.
60836
60837 2006-03-01  Karl Berry  <karl@gnu.org>
60838
60839         * config/srclist.txt (Copyright/*): new entries.
60840
60841 2006-02-28  Simon Josefsson  <jas@extundo.com>
60842
60843         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60844
60845 2006-02-27  Simon Josefsson  <jas@extundo.com>
60846
60847         * lib/base64.h: Indent #define's.  From Jim Meyering
60848         <jim@meyering.net>.
60849
60850 2006-02-27  Jim Meyering  <jim@meyering.net>
60851
60852         Revert the change of 2006-02-24, so these files can continue
60853         to be sync'd from gettext.
60854         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60855         of `config.h'.
60856
60857 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         * modules/intprops: New file.
60860         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60861         Add intprops.
60862         * modules/getloadavg (Files): Remove lib/intprops.h.
60863         (Depends-on): Add intprops.
60864         * modules/human: Likewise.
60865         * modules/inttostr: Likewise.
60866         * modules/openat: Likewise.
60867         * modules/sig2str: Likewise.
60868         * modules/userspec: Likewise.
60869         * modules/utimecmp: Likewise.
60870         * modules/xnanosleep: Likewise.
60871         * modules/xstrtol: Likewise.
60872
60873 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60874
60875         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60876         * modules/lock-tests (TESTS): Use $(EXEEXT).
60877         * modules/tls-tests: Likewise.
60878         * modules/argp-tests: Likewise.
60879         (check_PROGRAMS): New var, replacing...
60880         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60881
60882 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60883
60884         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60885         `config.h'.
60886
60887 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60890
60891 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60892
60893         Sync from coreutils.
60894         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60895         gl_CHDIR_SAFER.
60896
60897 2006-02-22  Jim Meyering  <jim@meyering.net>
60898
60899         Sync from coreutils.
60900         * m4/chdir-safer.m4: New file.
60901
60902 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60905         AT_FDCWD exceeds INT_MAX.
60906         * lib/openat.h (AT_FDCWD): Likewise.
60907
60908 2006-02-17  Eric Blake  <address@hidden>
60909
60910         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60911
60912 2006-02-16  Simon Josefsson  <jas@extundo.com>
60913
60914         * modules/getaddrinfo (Depends-on): Add sys_socket.
60915
60916 2006-02-15  Simon Josefsson  <jas@extundo.com>
60917
60918         * build-aux/maint.mk: Add dsyntax-check rule.
60919
60920 2006-02-15  Eric Blake  <ebb9@byu.net>
60921
60922         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60923         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60924         'present but cannot compile' warnings on cygwin.
60925         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60926         use ws2tcpip.h if sys/socket.h works.
60927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60928         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60929
60930 2006-02-14  Simon Josefsson  <jas@extundo.com>
60931
60932         * modules/maintainer-makefile (Files): Rename.
60933
60934         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60935         and (the local) Makefile.cfg to maint-cfg.mk.
60936
60937         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60938         to the latter.
60939
60940         * modules/maintainer-makefile: New module.
60941
60942         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60943         severaly stripped to make it possible to build it up from scratch
60944         with reliable tests.
60945
60946         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60947         fixes to permit overriding the default actions when configure and
60948         makefile are not available.
60949
60950 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         Sync from coreutils.
60953         * modules/lstat (Depends-on): Don't depend on xalloc.
60954         (License): Change from GPL to LGPL, since this is now simply a
60955         replacement for a libc function.
60956
60957 2006-02-14  Jim Meyering  <jim@meyering.net>
60958
60959         Sync from coreutils.
60960
60961         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60962         failure on deficient systems, and simplify gnulib lgpl dependencies.
60963         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60964         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60965
60966         * lib/xalloc-die.c: Remove unused definition of N_.
60967
60968 2006-02-14  Jim Meyering  <jim@meyering.net>
60969
60970         Sync from coreutils.
60971         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60972         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60973         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60974         double-quote uses of that variable, to accommodate the rare case in
60975         which getmntent is available in none of the libraries checked.  This
60976         happens at least on FreeBSD 5.0.
60977
60978 2006-02-13  Simon Josefsson  <jas@extundo.com>
60979
60980         * gnulib-tool (Usage): Fix --import, from
60981         karl@freefriends.org (Karl Berry).
60982
60983 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60984
60985         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60986
60987 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60988
60989         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60990         "autoupdate" on 2005-12-12.
60991
60992 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * modules/closeout (Depends-on): Remove atexit.
60995
60996 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60999         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61000
61001 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61004         __EXTENSIONS__ if this causes compilation to fail.  Problem
61005         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61006         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61007
61008 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61011         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61013         All uses changed.
61014
61015 2006-01-26  Simon Josefsson  <jas@extundo.com>
61016
61017         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61018         prototype is visible on mingw32.
61019
61020         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61021         for mingw32.
61022
61023         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61024         mingw32).
61025
61026 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61027
61028         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61029         attempt to open for write; this always fails, at least on POSIX
61030         hosts.  This reinstates the 2006-01-09 change, which was
61031         inadvertently removed.
61032
61033 2006-01-26  Bruno Haible  <bruno@clisp.org>
61034
61035         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61036         Reported by Paul Eggert.
61037
61038 2006-01-26  Bruno Haible  <bruno@clisp.org>
61039             Paul Eggert  <eggert@cs.ucla.edu>
61040
61041         * lib/stdbool_.h (_Bool)
61042         [(! (defined __cplusplus || defined __BEOS__)
61043           && !defined __GNUC__
61044           && !(defined __HP_cc || defined __xlc__
61045                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61046                || defined __sgi))]:
61047         #define to signed char in these cases too; this simplifies
61048         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61049         etc., separately) and makes it more conservative.
61050
61051 2006-01-25  Simon Josefsson  <jas@extundo.com>
61052
61053         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61054         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61055         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61056
61057 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61058
61059         * lib/argp-namefrob.h: Bugfix. Remove stray #
61060
61061 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61062
61063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61064         so that we test the test.
61065         Check for yet another HP-UX cc bug involving *bool |= bool.
61066
61067 2006-01-25  Karl Berry  <karl@gnu.org>
61068
61069         * config/srclist.txt (vasnprintf.c): sync lost.
61070
61071 2006-01-25  Jim Meyering  <jim@meyering.net>
61072
61073         Sync from the stable (b5) branch of coreutils:
61074
61075         * lib/fts.c (fts_children): Don't let close() clobber errno from
61076         failed fchdir().
61077
61078         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61079         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61080         a dangling symlink.  That can also happen at least for ELOOP.
61081         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61082         FYI, this bug predates the inclusion of fts.c in coreutils.
61083
61084         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61085         in their own block, so pre-c99 compilers don't object.
61086
61087         Avoid the double-free (first in fts_read, second in fts_close) that
61088         would occur when an `active' directory is made inaccessible (e.g.,
61089         via chmod a-x) during a traversal.
61090         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61091         before returning.  Reproduce this failure by
61092         mkdir -p a/b; cd a; chmod a-x . b
61093         Reported by Stavros Passas.
61094
61095 2006-01-25  Jim Meyering  <jim@meyering.net>
61096
61097         * lib/fileblocks.c: Remove more useless parentheses.
61098         * lib/readutmp.h: Likewise.
61099
61100 2006-01-25  Bruno Haible  <bruno@clisp.org>
61101
61102         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61103         warnings.
61104         Reported by Paul Eggert.
61105
61106 2006-01-25  Bruno Haible  <bruno@clisp.org>
61107
61108         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61109         rid of a trap command. For Solaris sh.
61110         Reported by Mark D. Baushke <mdb@gnu.org>.
61111
61112 2006-01-24  Simon Josefsson  <jas@extundo.com>
61113
61114         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61115         Bruno.
61116
61117 2006-01-24  Karl Berry  <karl@gnu.org>
61118
61119         * config/srclist.txt (argp-namefrob.h): sync lost.
61120
61121 2006-01-24  Jim Meyering  <jim@meyering.net>
61122
61123         * modules/openat (Files): Add lib/intprops.h.
61124         From Mark D. Baushke.
61125
61126 2006-01-24  Jim Meyering  <jim@meyering.net>
61127
61128         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61129         Reported by Mark D. Baushke.
61130
61131 2006-01-24  Jim Meyering  <jim@meyering.net>
61132
61133         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61134
61135 2006-01-24  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/strnlen (Maintainer): Change from glibc to all.
61138
61139 2006-01-24  Bruno Haible  <bruno@clisp.org>
61140
61141         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61142         Patch by Paul Eggert.
61143
61144 2006-01-24  Bruno Haible  <bruno@clisp.org>
61145
61146         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61147         already has it.
61148         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61149         2005-11-26.
61150
61151         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61152         'signed char' to avoid problems with the built-in _Bool type.
61153         Reported by Paul Eggert on 2005-11-26.
61154
61155 2006-01-24  Bruno Haible  <bruno@clisp.org>
61156
61157         * gnulib-tool (func_import): Avoid constructing complicated sed
61158         expressions inside backquote.
61159         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61160
61161 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61162
61163         These changes imported from libc.
61164         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61165         test and two separate function calls.
61166         * lib/strndup.c (__strndup): Add libc_hidden_def.
61167
61168 2006-01-23  Simon Josefsson  <jas@extundo.com>
61169
61170         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61171         Remove the test_*_SOURCES variable: automake infers it by default.
61172         * modules/tls-tests: Likewise.
61173
61174 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61175
61176         Work around porting bugs reported by Dieter in
61177         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61178         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61179         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61180         Include "getopt.h" first, to check interface.
61181         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61182         !HAVE_DECL_GETENV.
61183         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61184         (__strndup): Revert to K&R-style function dfns, the glibc style.
61185         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61186         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61187         Include strnlen.h first, to get prototype properly.
61188         (strnlen): Renamed from __strnlen.
61189         Remove weak alias.
61190
61191 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61192
61193         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61194
61195 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         * config/srclist.txt: Adjust to reflect glibc reorganization.
61198         This affects only comments.
61199
61200 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61201
61202          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61203          Reported by Bruce Korb <bkorb@gnu.org>.
61204
61205 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61208         to pacify gcc -Wswitch-default.
61209
61210 2006-01-22  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61213         temporary buffer for sprintf, take into account the precision also
61214         for 'd', 'i', 'u', 'o', 'x', 'X'.
61215
61216 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61217
61218         * modules/argp-tests: New module
61219         * tests/test-argp.c: New file
61220         * tests/test-argp-2.sh: New file
61221
61222 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61223
61224         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61225         (__argp_base_name): Removed
61226         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61227         typo.
61228         (__argp_base_name): Provide macro definition or extern declaration
61229         depending on the configuration
61230
61231 2006-01-20  Simon Josefsson  <jas@extundo.com>
61232
61233         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61234
61235 2006-01-20  Simon Josefsson  <jas@extundo.com>
61236
61237         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61238
61239 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61242         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61243         Suggested by Bruno Haible.
61244
61245 2006-01-20  Karl Berry  <karl@gnu.org>
61246
61247         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61248         until changes propagate, I guess.
61249
61250 2006-01-19  Simon Josefsson  <jas@extundo.com>
61251
61252         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61253
61254 2006-01-19  Simon Josefsson  <jas@extundo.com>
61255
61256         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61257
61258 2006-01-19  Simon Josefsson  <jas@extundo.com>
61259
61260         * gnulib-tool: Set check_PROGRAMS.
61261
61262         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61263         modules/des-tests, modules/gc-arcfour-tests,
61264         modules/gc-arctwo-tests, modules/gc-des-tests,
61265         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61266         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61267         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61268         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61269         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61270         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61271         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61272         test_*_SOURCES.
61273
61274 2006-01-18  Simon Josefsson  <jas@extundo.com>
61275
61276         * modules/socklen (Depends-on): Depend on sys_socket.
61277
61278 2006-01-18  Simon Josefsson  <jas@extundo.com>
61279
61280         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61281         modules/des-tests, modules/gc-arcfour-tests,
61282         modules/gc-arctwo-tests, modules/gc-des-tests,
61283         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61284         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61285         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61286         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61287         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61288         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61289         $(EXEEXT) to automake TESTS variable, for mingw32.
61290
61291 2006-01-17  Simon Josefsson  <jas@extundo.com>
61292
61293         * modules/socklen (Include): Need sys/socket.h.
61294
61295 2006-01-17  Bruno Haible  <bruno@clisp.org>
61296
61297         * modules/ssize_t (Include): Add <sys/types.h>.
61298
61299 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61300
61301         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61302         it's not portable and it doesn't work with cross-compiles.
61303         Problem reported by Bruno Haible.  Fix missing-$ typo in
61304         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61305         -zignore from being used with Sun's C compiler.
61306
61307 2006-01-12  Simon Josefsson  <jas@extundo.com>
61308
61309         * lib/base64.c: Fix warning, reported by Bruno Haible
61310         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61311
61312 2006-01-12  Bruno Haible  <bruno@clisp.org>
61313
61314         * modules/ldd: New file.
61315         * build-aux/ldd.sh.in: New file.
61316         * MODULES.html.sh (Support for building libraries and executables): Add
61317         ldd.
61318
61319 2006-01-12  Bruno Haible  <bruno@clisp.org>
61320
61321         * m4/ldd.m4: New file.
61322
61323 2006-01-12  Bruno Haible  <bruno@clisp.org>
61324
61325         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61326         endless loop while replacing $auxdir with build-aux.
61327
61328 2006-01-11  Simon Josefsson  <jas@extundo.com>
61329
61330         * lib/stdint_.h (SIZE_MAX): Add missing (.
61331
61332 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         Sync from coreutils.
61335         * lib/md5.c: Fix commentary typos.
61336         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61337         * lib/md5.h (__attribute__): Remove; unused.
61338         * lib/sha1.c: Fix commentary to match md5 better.
61339         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61340         so that we don't need to worry about alignment.  All uses changed.
61341         This merges the 2005-10-28 md5 change into sha1.
61342
61343 2006-01-11  Jim Meyering  <jim@meyering.net>
61344
61345         Sync from coreutils.
61346         * lib/md5.c (OP): Fix spacing.
61347
61348 2006-01-11  Bruno Haible  <bruno@clisp.org>
61349
61350         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61351         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61352         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61353
61354 2006-01-11  Bruno Haible  <bruno@clisp.org>
61355
61356         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61357         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61358         the "early" section as well.
61359
61360 2006-01-11  Bruno Haible  <bruno@clisp.org>
61361
61362         Avoid "ar: no archive members specified" error on MacOS X.
61363         * gnulib-tool (func_modules_add_dummy): New function.
61364         (func_import, func_create_testdir): Invoke it.
61365
61366 2006-01-11  Bruno Haible  <bruno@clisp.org>
61367
61368         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61369         with $auxdir in AC_CONFIG_FILES statements.
61370
61371 2006-01-11  Bruno Haible  <bruno@clisp.org>
61372
61373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61374         Initialize also noinst_HEADERS to empty.
61375
61376 2006-01-11  Bruno Haible  <bruno@clisp.org>
61377
61378         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61379         variables.
61380         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61381         autoreconf.
61382
61383 2006-01-11  Bruno Haible  <bruno@clisp.org>
61384
61385         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61386         overridable by the user.
61387         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61388
61389 2006-01-10  Simon Josefsson  <jas@extundo.com>
61390
61391         * modules/sys_socket: New file.
61392
61393 2006-01-10  Simon Josefsson  <jas@extundo.com>
61394
61395         * m4/sys_socket_h.m4: New file.
61396
61397 2006-01-10  Simon Josefsson  <jas@extundo.com>
61398
61399         * lib/socket_.h: New file.
61400
61401 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61402
61403         * modules/readutmp (Maintainer): Add myself.
61404
61405 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61406
61407         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61408         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61409         People who are still concerned with buggy memcmp implementations
61410         can invoke gl_FUNC_MEMCMP themselves.
61411
61412 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * lib/regex_internal.h (BITSET_WORD_BITS):
61415         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61416         preprocessor mishandles large unsigned values as if they were signed.
61417         Problem reported by Claudio Fontana in
61418         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61419
61420 2006-01-10  Jim Meyering  <jim@meyering.net>
61421
61422         Avoid the double-free (first in fts_read, second in fts_close) that
61423         would occur when an `active' directory is made inaccessible (e.g.,
61424         via chmod a-x) during a traversal.
61425         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61426         before returning.  Reproduce this failure by
61427         mkdir -p a/b; cd a; chmod a-x . b
61428         Reported by Stavros Passas.
61429
61430         Sync from coreutils.
61431         * lib/sha1.c: Tweak grammar in a comment.
61432
61433 2006-01-10  Jim Meyering  <jim@meyering.net>
61434
61435         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61436         Patch by Joerg Sonnenberger.
61437
61438 2006-01-10  Bruno Haible  <bruno@clisp.org>
61439
61440         * modules/readutmp: Depend on module free.
61441         * modules/strtok_r: Depend on module restrict.
61442
61443 2006-01-10  Bruno Haible  <bruno@clisp.org>
61444
61445         * modules/gettext (configure.ac): Add an invocation of
61446         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61447
61448 2006-01-10  Bruno Haible  <bruno@clisp.org>
61449
61450         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61451         Reported by Werner Lemberg <wl@gnu.org>.
61452
61453 2006-01-10  Bruno Haible  <bruno@clisp.org>
61454
61455         * lib/localcharset.c: Update from GNU gettext.
61456
61457 2006-01-10  Bruno Haible  <bruno@clisp.org>
61458
61459         * lib/argp.h (__const): Remove macro. Use const instead.
61460         * lib/argp-fmtstream.h (__const): Likewise.
61461         * lib/glob_.h (__const): Remove macro.
61462         * lib/glob-libc.h: Use const instead of __const.
61463
61464 2006-01-10  Bruno Haible  <bruno@clisp.org>
61465
61466         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61467         variable.
61468         Needed to avoid an automake error regarding the 'gettext' module.
61469
61470 2006-01-09  Simon Josefsson  <jas@extundo.com>
61471
61472         * modules/inet_ntop (Depends-on): Add restrict.
61473
61474 2006-01-09  Simon Josefsson  <jas@extundo.com>
61475
61476         * modules/gc-rijndael-tests (License): Put under LGPL.
61477
61478         * modules/gc-des-tests (License): Likewise.
61479
61480         * modules/gc-arcfour-tests (License): Likewise.
61481
61482         * modules/gc-arctwo-tests (License): Likewise.
61483
61484         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61485
61486         * modules/gc-hmac-sha1-tests (Files): Likewise.
61487
61488         * modules/gc-hmac-md5-tests (License): Likewise.
61489
61490         * modules/gc-sha1-tests (License): Likewise.
61491
61492         * modules/gc-md5-tests (License): Likewise.
61493
61494         * modules/gc-md4-tests (License): Likewise.
61495
61496         * modules/gc-md2-tests (License): Likewise.
61497
61498         * modules/gc-tests (License): Likewise.
61499
61500         * modules/des-tests (License): Likewise.
61501
61502         * modules/md4-tests (License): Likewise.
61503
61504         * modules/md2-tests (License): Likewise.
61505
61506 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61507
61508         Sync from coreutils:
61509
61510         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61511         * modules/lib-ignore: New file.
61512         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61513         chdir-safer.m4, lchmod.m4.
61514         * modules/openat: Add mkdirat.c, openat-priv.h.
61515
61516 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61517
61518         Sync from coreutils.
61519         * m4/lib-ignore.m4: New file.
61520         * m4/lchmod.m4: New file.
61521
61522 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         Sync from coreutils.
61525         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61526         for write access: POSIX says that must fail.
61527         * lib/fts.c (diropen): Likewise.
61528         * lib/save-cwd.c (save_cwd): Likewise.
61529         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61530         well, for minor improvements on hosts that lack O_DIRECTORY.
61531         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61532         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61533         Fall back on chown if open failed with EACCES.
61534
61535         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61536         Report an error at compile-time if only a 1-second nominal clock
61537         resolution is found.
61538
61539         * lib/lchmod.h: New file.
61540         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61541         (make_dir_parents): Use lchown rather than chown, and
61542         lchmod rather than chmod.
61543
61544         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61545         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61546         "proc" reported by n0dalus.
61547
61548         * lib/mountlist.c: Include <limits.h>.
61549         (dev_from_mount_options)
61550         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61551         New function.  It no longer assumes "dev=" has the System V meaning
61552         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61553         (read_file_system_list)
61554         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61555         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61556         dev= in that case.
61557
61558         * lib/posixtm.h (PDS_PRE_2000): New macro.
61559         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61560         allow_century.  All usages changed.  Reject dates outside the range
61561         1969-1999 if PDS_PRE_2000 is used.
61562
61563 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61564
61565         Sync from coreutils.
61566         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61567         (Time of day items): Mention the possibility of leap seconds.
61568         Problem reported by Dr. David Alan Gilbert.
61569
61570 2006-01-09  Jim Meyering  <jim@meyering.net>
61571
61572         Sync from coreutils.
61573
61574         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61575
61576         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61577
61578         * lib/modechange.c (mode_compile): Reject an invalid mode string
61579         that starts with an octal digit.  From Andreas Gruenbacher.
61580
61581         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61582         and dup to open_safer and dup_safer, respectively.
61583         (openat_permissive): Fix typo in comment.
61584
61585         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61586         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61587         (_): Remove; no longer needed.
61588         (openat): Renamed from rpl_openat; no need for rpl_openat
61589         since openat.h renames openat for us.
61590         Replace most of the body with a call to openat_permissive,
61591         to avoid duplicate code.
61592         Port to (probably hypothetical) environments were mode_t is
61593         wider than int.
61594         (openat_permissive): Require mode arg, so that we can check
61595         types better.  Put it just after flags.  Change cwd failure
61596         indicator from pointer-to-bool to pointer-to-errno-value.
61597         All callers changed.
61598         Invoke openat_save_fail and/or openat_restore_fail if
61599         cwd_errno is null, so that openat can call us.
61600         (openat_permissive, fdopendir, fstatat, unlinkat):
61601         Simplify errno handling to avoid some duplicate code,
61602         as it's OK to set errno on success.
61603         * lib/openat.h: Revamp code so that function macros depend on
61604         __OPENAT_PREFIX only, not also on AT_FDCWD.
61605         (openat_ro): Remove.  Caller changed to use openat_permissive.
61606         (openat_permissive): Now a macro, if not a function.
61607         (openat_restore_fail, openat_save_fail): Now always functions,
61608         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61609
61610         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61611         and openat.c.
61612         * lib/mkdirat.c: Include openat-priv.h.
61613         Remove definitions of macros defined therein.
61614         * lib/openat.c: Likewise.
61615
61616         * lib/mkdirat.c (mkdirat): New file and function.
61617         * lib/openat.h (mkdirat): Declare.
61618
61619         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61620
61621         * lib/openat.h (openat_permissive): Declare.
61622         (openat_ro): Define.
61623
61624         * lib/openat.c (EXPECTED_ERRNO): New macro.
61625         (openat_permissive): New function -- used in remove.c rewrite.
61626         (all functions): Set errno just before returning, only if there
61627         was an actual failure.
61628         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61629
61630         Emulate openat-family functions using Linux's procfs, if possible.
61631         Idea and some code based on Ulrich Drepper's glibc changes.
61632
61633         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61634         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61635         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61636         before falling back on save_cwd and restore_cwd.
61637         (fdopendir, fstatat, unlinkat): Likewise.
61638
61639         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61640         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61641
61642         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61643         as second argument to va_arg.  Otherwise, some versions of gcc
61644         warn that `if this code is reached, the program will abort'.
61645
61646 2006-01-09  Jim Meyering  <jim@meyering.net>
61647
61648         Sync from coreutils.
61649         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61650         Require openat-priv.h.
61651
61652 2006-01-09  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/strnlen (Include): Use strnlen.h.
61655
61656 2006-01-09  Bruno Haible  <bruno@clisp.org>
61657
61658         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61659
61660 2006-01-09  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/sysexit_.h (EX_OK): New macro.
61663         Suggested by Martin Lambers <marlam@marlam.de>.
61664
61665 2006-01-09  Bruno Haible  <bruno@clisp.org>
61666
61667         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61668         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61669
61670 2006-01-09  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61673         numbers.
61674
61675 2006-01-09  Bruno Haible  <bruno@clisp.org>
61676
61677         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61678         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61679         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61680         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61681
61682 2006-01-09  Bruno Haible  <bruno@clisp.org>
61683
61684         * build-aux/javacomp.sh.in: New file, moved from lib/.
61685         * modules/javacomp-script (Files): Update.
61686         (configure.ac): Add AC_CONFIG_FILES invocation.
61687         (EXTRA_DIST): Remove variable.
61688
61689         * build-aux/javaexec.sh.in: New file, moved from lib/.
61690         * modules/javaexec (Files): Update.
61691         (configure.ac): Add AC_CONFIG_FILES invocation.
61692         (EXTRA_DIST): Remove javaexec.sh.in.
61693
61694         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61695         * modules/csharpcomp-script (Files): Update.
61696         (configure.ac): Add AC_CONFIG_FILES invocation.
61697         (EXTRA_DIST): Remove variable.
61698
61699         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61700         * modules/csharpexec (Files): Update.
61701         (configure.ac): Add AC_CONFIG_FILES invocation.
61702         (EXTRA_DIST): Remove csharpexec.sh.in.
61703
61704 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61705
61706         Sync from coreutils.
61707
61708         Add POSIX ACL support
61709         * lib/acl.h (copy_acl, set_acl): Add declarations.
61710         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61711         systems other than Linux.
61712         (chmod_or_fchmod): New function: use fchmod when possible,
61713         and chmod otherwise.
61714         (file_has_acl): Add a POSIX ACL implementation, with a
61715         Linux-specific subcase.
61716         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61717         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61718         acls are unsupported.
61719         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61720         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61721         are unsupported.
61722
61723 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61724
61725         Sync from coreutils.
61726         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61727
61728 2006-01-07  Bruno Haible  <bruno@clisp.org>
61729
61730         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61731         gl_EARLY.
61732
61733 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61734
61735         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61736         Problem reported for Mingw by Mark Junker.
61737
61738 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         * README: Gnulib normally doesn't generate a tarball.
61741
61742 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61743
61744         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61745         long int, not int, for nanosecond counts, so that people who are
61746         used to POSIX struct timespec won't be surprised.  Reported by Jim
61747         Meyering.
61748
61749 2005-12-28  Bruno Haible  <bruno@clisp.org>
61750
61751         * build-aux/config.rpath: Update from GNU gettext.
61752
61753 2005-12-16  Jim Meyering  <jim@meyering.net>
61754
61755         * modules/fprintftime: New module.
61756         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61757
61758 2005-12-16  Jim Meyering  <jim@meyering.net>
61759
61760         * m4/fprintftime.m4: New file.
61761
61762 2005-12-16  Jim Meyering  <jim@meyering.net>
61763
61764         * lib/fprintftime.c, lib/fprintftime.h: New files.
61765
61766 2005-12-15  Simon Josefsson  <jas@extundo.com>
61767
61768         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61769         new m4/socklen.m4.
61770
61771 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61772
61773         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61774         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61775
61776 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61777
61778         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61779         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61780         struct uparams is valid. Fall back to the default values if it is
61781         not.
61782
61783 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61784
61785         * modules/argp (Files): Add argp-pin.c
61786         (Depends-on): dirname
61787         (lib_SOURCES): Add argp-pin.c
61788
61789 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61790
61791         * m4/argp.m4:  Check if program_invocation_name and
61792         program_invocation_short_name are declared and define appropriate
61793         macros if they are not.
61794
61795 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61796
61797         * lib/argp-help.c (__argp_base_name): New function
61798         (__argp_short_program_name): Rewrite using __argp_base_name
61799         * lib/argp-namefrob.h: Define program_invocation_name and
61800         program_invocation_short_name if requested
61801         (__argp_base_name): Add prototype
61802         * lib/argp-parse.c (argp_def): Use gettext wrappers
61803         (argp_default_parser): Use __argp_base_name
61804         * lib/argp-pin.c: New file. Defines program_invocation_name and
61805         program_invocation_short_name on systems that lack them.
61806
61807 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61810         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61811         porting problem reported by Georg Schwarz in
61812         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61813
61814 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61815
61816         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61817         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61818         porting problem reported by Georg Schwarz in
61819         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61820
61821 2005-12-05  Bruno Haible  <bruno@clisp.org>
61822
61823         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61824         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61825         Reported by Mark Junker <mjscod@gmx.de>.
61826
61827 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61830         Use implementation from Albert Chin, with some
61831         comments/corrections by Stepan Kasal and myself.
61832
61833 2005-12-02  Bruno Haible  <bruno@clisp.org>
61834
61835         * gnulib-tool (func_import): Accept GPLed build tool modules when
61836         --lgpl is given.
61837         * modules/csharpcomp-script: New file.
61838         * modules/csharpcomp: Depend on it.
61839         * modules/javacomp-script: New file.
61840         * modules/javacomp: Depend on it.
61841         Suggested by Simon Josefsson.
61842
61843 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61846         statement, to work around an HP-UX 10.20 compiler bug reported by
61847         Peter O'Gorman.
61848
61849 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         * modules/savedir (Depends-on): Add openat.
61852
61853 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61854
61855         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61856         (uintmax_t) [defined uintmax_t]: Do not declare.
61857         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61858         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61859         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61860         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61861         sake of portability to weird hosts that C allows (though we don't
61862         know of any practical examples).
61863
61864         * lib/savedir.h (fdsavedir): New decl.
61865         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61866         contains most of the former guts of savedir.
61867         (savedir): Use savedirstream.
61868         Include "openat.h".
61869
61870 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * modules/obstack (Files): Add m4/ulonglong.m4.
61873         Problem reported by Davide Angelocola.
61874
61875 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61876
61877         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61878         coreutils no longer futzes with rounding modes.
61879
61880 2005-11-14  Jim Meyering  <jim@meyering.net>
61881
61882         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61883         replacement of mkstemp.
61884
61885 2005-11-10  Simon Josefsson  <jas@extundo.com>
61886
61887         * lib/readline.c: Remove EOL.
61888
61889 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61890
61891         * modules/gethrxtime (Depends-on): Add gettime.
61892
61893 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61894
61895         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61896         or gettimeofday; no longer needed.
61897
61898 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61899
61900         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61901         time business.
61902         (gethrxtime) [! (HAVE_NANOUPTIME
61903         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61904         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61905         our own approximation.
61906
61907 2005-11-08  Eric Blake  <ebb9@byu.net>
61908
61909         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61910
61911 2005-11-08  Eric Blake  <ebb9@byu.net>
61912
61913         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61914
61915 2005-11-04  Bruno Haible  <bruno@clisp.org>
61916
61917         * gnulib-tool: Implement --update mode.
61918
61919 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61920
61921         Fix porting problem reported by Theodoros V. Kalamatianos.
61922         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61923         Don't assume that futimes failing means we must fail.
61924
61925 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61926
61927         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61928         variables to suggest the intended function of the PATH_MAX check.
61929
61930 2005-10-30  Kean Johnston  <jkj@sco.com>
61931
61932         Trivial changes to support SCO systems.
61933         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61934         as PATH_MAX.
61935         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61936         where __ptr is null when no I/O is pending.
61937
61938 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61941         leave errno alone.  Problem reported by Dmitry V. Levin.
61942
61943 2005-10-28  Simon Josefsson  <jas@extundo.com>
61944
61945         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61946         Test more.
61947
61948         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61949
61950         * modules/md2, modules/md2-tests: New files.
61951
61952 2005-10-28  Simon Josefsson  <jas@extundo.com>
61953
61954         * m4/inet_ntop.m4: More tests.
61955
61956         * m4/gc-md2.m4, md2.m4: New file.
61957
61958 2005-10-28  Simon Josefsson  <jas@extundo.com>
61959
61960         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61961         "restrict" keywords, as per POSIX.  Protect the function
61962         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61963         Don't use K&R prototypes.  Check the sprintf return values.
61964         Re-define EAFNOSUPPORT if not present.  Indent.
61965
61966         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61967         suggested by Bruno Haible <bruno@clisp.org>.
61968
61969         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61970
61971         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61972
61973         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61974         libgcrypt).
61975
61976         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61977
61978         * lib/md2.h, lib/md2.c: New files.
61979
61980 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61981
61982         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61983         errno alone.  Problem reported by Frederic Jolliton.
61984
61985 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * modules/verify (License): Change from GPL to LGPL.  This is a
61988         tiny module and there are apparently near-equivalents that are
61989         under the BSD license.
61990
61991 2005-10-24  Simon Josefsson  <jas@extundo.com>
61992
61993         * modules/sha1: Relicense to LGPL.
61994
61995 2005-10-24  Simon Josefsson  <jas@extundo.com>
61996
61997         * lib/md4.h: Shrink buffer size, now that we changed the type.
61998
61999 2005-10-23  Simon Josefsson  <jas@extundo.com>
62000
62001         * gnulib-tool (func_import): Fix --tests-base.
62002
62003 2005-10-22  Simon Josefsson  <jas@extundo.com>
62004
62005         * modules/arcfour (Depends-on): Need stdint.
62006
62007 2005-10-22  Simon Josefsson  <jas@extundo.com>
62008
62009         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62010         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62011
62012 2005-10-22  Simon Josefsson  <jas@extundo.com>
62013
62014         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62015         suggested by Bruno Haible <bruno@clisp.org>.
62016
62017 2005-10-22  Simon Josefsson  <jas@extundo.com>
62018
62019         * lib/crc.h: Include stddef.h, for size_t.
62020
62021 2005-10-22  Simon Josefsson  <jas@extundo.com>
62022
62023         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62024         arcfour_context struct (simplify test vector testing in GNU
62025         Shishi).
62026
62027 2005-10-21  Simon Josefsson  <jas@extundo.com>
62028
62029         * modules/des, modules/des-tests: New files.
62030
62031         * modules/gc-des, modules/gc-des-tests: New files.
62032
62033         * tests/test-des.c, tests/test-gc-des.c: New file.
62034
62035 2005-10-21  Simon Josefsson  <jas@extundo.com>
62036
62037         * modules/arctwo, modules/arctwo-tests: New files.
62038
62039         * tests/test-arctwo.c: New file.
62040
62041         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62042
62043         * tests/test-gc-arctwo.c: New file.
62044
62045 2005-10-21  Simon Josefsson  <jas@extundo.com>
62046
62047         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62048         Bruno Haible <bruno@clisp.org>.
62049
62050         * m4/gc-des.m4: New file.
62051
62052 2005-10-21  Simon Josefsson  <jas@extundo.com>
62053
62054         * m4/arctwo.m4: New file.
62055
62056         * m4/gc-arctwo.m4: New file.
62057
62058 2005-10-21  Simon Josefsson  <jas@extundo.com>
62059
62060         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62061         block.
62062
62063 2005-10-21  Simon Josefsson  <jas@extundo.com>
62064
62065         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62066         <bruno@clisp.org>.
62067
62068         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62069
62070         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62071         Bruno Haible <bruno@clisp.org>.
62072
62073         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62074         <bruno@clisp.org>.
62075
62076 2005-10-21  Simon Josefsson  <jas@extundo.com>
62077
62078         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62079
62080 2005-10-21  Simon Josefsson  <jas@extundo.com>
62081
62082         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62083
62084 2005-10-21  Simon Josefsson  <jas@extundo.com>
62085
62086         * lib/des.h, lib/des.c: New files.
62087
62088         * lib/gc-gnulib.c: Support DES.c
62089
62090 2005-10-21  Simon Josefsson  <jas@extundo.com>
62091
62092         * lib/arctwo.h, lib/arctwo.c: New files.
62093
62094         * lib/gc-gnulib.c: Support ARCTWO.
62095
62096 2005-10-21  Simon Josefsson  <jas@extundo.com>
62097
62098         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62099         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62100
62101 2005-10-21  Simon Josefsson  <jas@extundo.com>
62102
62103         * gnulib-tool (func_import, func_create_testdir): Define automake
62104         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62105         Makefile.am snippet),
62106         suggested by Bruno Haible <bruno@clisp.org>.
62107
62108         * modules/gc (Makefile.am): Use it.
62109
62110 2005-10-21  Bruno Haible  <bruno@clisp.org>
62111
62112         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62113         patch.
62114
62115 2005-10-19  Simon Josefsson  <jas@extundo.com>
62116
62117         * tests/test-gc-rijndael.c: New file.
62118
62119         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62120
62121 2005-10-19  Simon Josefsson  <jas@extundo.com>
62122
62123         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62124         interface too.
62125
62126 2005-10-19  Simon Josefsson  <jas@extundo.com>
62127
62128         * tests/test-gc-arcfour.c: New file.
62129
62130         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62131
62132 2005-10-19  Simon Josefsson  <jas@extundo.com>
62133
62134         * modules/gc-md4, modules/gc-md4-tests: New file.
62135
62136         * tests/test-gc-md4.c: New file.
62137
62138 2005-10-19  Simon Josefsson  <jas@extundo.com>
62139
62140         * m4/gc-md4.m4: New file.
62141
62142 2005-10-19  Simon Josefsson  <jas@extundo.com>
62143
62144         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62145         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62146         <kasal@ucw.cz>.
62147
62148 2005-10-19  Simon Josefsson  <jas@extundo.com>
62149
62150         * m4/gc-arcfour.m4: New file.
62151
62152         * m4/gc-rijndael.m4: New file.
62153
62154 2005-10-19  Simon Josefsson  <jas@extundo.com>
62155
62156         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62157
62158 2005-10-19  Simon Josefsson  <jas@extundo.com>
62159
62160         * lib/gc-gnulib.c: Support ARCFOUR.
62161
62162 2005-10-19  Simon Josefsson  <jas@extundo.com>
62163
62164         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62165         support.
62166
62167         * lib/gc.h: Add ECB enum type.
62168
62169         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62170
62171 2005-10-18  Simon Josefsson  <jas@extundo.com>
62172
62173         * tests/test-md5.c: New file.
62174
62175         * modules/md5-tests: New file.
62176
62177 2005-10-18  Simon Josefsson  <jas@extundo.com>
62178
62179         * tests/test-md4.c: New file.
62180
62181         * modules/md4, modules/md4-tests: New files.
62182
62183 2005-10-18  Simon Josefsson  <jas@extundo.com>
62184
62185         * m4/md4.m4: New file.
62186
62187 2005-10-18  Simon Josefsson  <jas@extundo.com>
62188
62189         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62190
62191 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62192
62193         * gnulib-tool (func_create_testdir): Omit the second check whether
62194         BUILT_SOURCES in nonempty.
62195
62196 2005-10-17  Simon Josefsson  <jas@extundo.com>
62197
62198         * tests/test-rijndael.c: New file.
62199
62200 2005-10-17  Simon Josefsson  <jas@extundo.com>
62201
62202         * modules/sha1: Depend on stdint instead of md5.
62203
62204         * modules/md5: Depend on stdint, remove uint32_t.
62205
62206 2005-10-17  Simon Josefsson  <jas@extundo.com>
62207
62208         * modules/gc-sha1-tests: New file.
62209
62210         * tests/test-gc-sha1.c: New file.
62211
62212 2005-10-17  Simon Josefsson  <jas@extundo.com>
62213
62214         * m4/md5.m4: Remove call to uint32_t.m4.
62215
62216 2005-10-17  Simon Josefsson  <jas@extundo.com>
62217
62218         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62219
62220         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62221         md5.h.
62222
62223         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62224
62225         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62226
62227 2005-10-17  Simon Josefsson  <jas@extundo.com>
62228
62229         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62230
62231 2005-10-17  Simon Josefsson  <jas@extundo.com>
62232
62233         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62234
62235 2005-10-17  Simon Josefsson  <jas@extundo.com>
62236
62237         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62238
62239         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62240
62241 2005-10-17  Bruno Haible  <bruno@clisp.org>
62242
62243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62244         that it can also be used in a test.
62245
62246 2005-10-16  Bruno Haible  <bruno@clisp.org>
62247
62248         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62249         TESTS_ENVIRONMENT, so that individual tests can augment it.
62250
62251         * gnulib-tool (func_create_testdir): Use an intermediate target for
62252         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62253         macros, like $(ALLOCA_H), which cannot be passed through the command
62254         line.
62255
62256 2005-10-15  Simon Josefsson  <jas@extundo.com>
62257
62258         * modules/rijndael-tests: New file.
62259
62260         * modules/rijndael: New file.
62261
62262 2005-10-15  Simon Josefsson  <jas@extundo.com>
62263
62264         * m4/rijndael.m4: New file.
62265
62266 2005-10-15  Simon Josefsson  <jas@extundo.com>
62267
62268         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62269
62270         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62271
62272 2005-10-14  Simon Josefsson  <jas@extundo.com>
62273
62274         * tests/test-arcfour.c: New file.
62275
62276         * modules/arcfour, modules/arcfour-tests: New files.
62277
62278 2005-10-14  Simon Josefsson  <jas@extundo.com>
62279
62280         * m4/arcfour.m4: New file.
62281
62282 2005-10-14  Simon Josefsson  <jas@extundo.com>
62283
62284         * lib/arcfour.h, lib/arcfour.c: New files.
62285
62286 2005-10-14  Roland McGrath  <roland@redhat.com>
62287
62288         Import from libc.  [BZ #1331]
62289         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62290         macro argument.
62291         Reported by Matej Vela <vela@debian.org>.
62292
62293 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62294
62295         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62296         include <wchar.h>; no longer needed.
62297
62298 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62301
62302 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62303         and  Ulrich Drepper  <drepper@redhat.com>
62304
62305         Import from libc.
62306         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62307         instead of inline stream orientation test and two separate
62308         function calls.  Pay no attention to USE_IN_LIBIO.
62309
62310 2005-10-13  Simon Josefsson  <jas@extundo.com>
62311
62312         * modules/gc-hmac-md5-tests: New file.
62313
62314         * tests/test-gc-hmac-sha1.c: New file.
62315
62316         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62317
62318         * modules/gc-hmac-md5-tests: New file.
62319
62320         * tests/test-gc-md5.c: New file.
62321
62322         * modules/gc-md5-tests: New file.
62323
62324 2005-10-13  Simon Josefsson  <jas@extundo.com>
62325
62326         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62327         Move memory allocation outside of loop.
62328
62329 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62332         intermediate directory is in a read-only file system.  Problem
62333         reported by Eric Blake.
62334
62335 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62336
62337         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62338
62339 2005-10-12  Simon Josefsson  <jas@extundo.com>
62340
62341         * tests/test-hmac-sha1.c: New file.
62342
62343         * modules/hmac-sha1-tests: New file.
62344
62345         * modules/hmac-sha1: New file.
62346
62347 2005-10-12  Simon Josefsson  <jas@extundo.com>
62348
62349         * modules/gc-sha1: New file.
62350
62351 2005-10-12  Simon Josefsson  <jas@extundo.com>
62352
62353         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62354
62355         * tests/test-gc-pbkdf2-sha1.c: New file.
62356
62357 2005-10-12  Simon Josefsson  <jas@extundo.com>
62358
62359         * modules/gc-md5, modules/gc-hmac-md5: New files.
62360
62361         * modules/gc (Files): Remove md5, memxor and hmac files.
62362
62363 2005-10-12  Simon Josefsson  <jas@extundo.com>
62364
62365         * m4/gc-pbkdf2-sha1.m4: New file.
62366
62367         * m4/gc-hmac-sha1.m4: New file.
62368
62369         * m4/gc-sha1: New file.
62370
62371         * m4/hmac-sha1.m4: New file.
62372
62373 2005-10-12  Simon Josefsson  <jas@extundo.com>
62374
62375         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62376
62377         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62378
62379 2005-10-12  Simon Josefsson  <jas@extundo.com>
62380
62381         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62382         suggested by Bruno Haible <bruno@clisp.org>.
62383
62384 2005-10-12  Simon Josefsson  <jas@extundo.com>
62385
62386         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62387
62388 2005-10-12  Simon Josefsson  <jas@extundo.com>
62389
62390         * lib/gc-pbkdf2-sha1.c: New file.
62391
62392         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62393
62394 2005-10-12  Simon Josefsson  <jas@extundo.com>
62395
62396         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62397
62398         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62399
62400 2005-10-12  Simon Josefsson  <jas@extundo.com>
62401
62402         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62403         GC_USE_HMAC_MD5, respectively.
62404
62405         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62406         (gc_md5): Fix typo.
62407
62408         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62409
62410         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62411
62412         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62413
62414 2005-10-12  Bruno Haible  <bruno@clisp.org>
62415
62416         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62417         Reported by Stepan Kasal <kasal@ucw.cz>.
62418
62419 2005-10-11  Simon Josefsson  <jas@extundo.com>
62420
62421         * tests/test-crc.c: New file.
62422
62423         * modules/crc, modules/crc-tests: New files.
62424
62425 2005-10-11  Simon Josefsson  <jas@extundo.com>
62426
62427         * m4/crc.m4: New file.
62428
62429 2005-10-11  Simon Josefsson  <jas@extundo.com>
62430
62431         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62432
62433         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62434
62435         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62436
62437 2005-10-11  Simon Josefsson  <jas@extundo.com>
62438
62439         * lib/crc.h, lib/crc.c: New files.
62440
62441         * lib/gc.h (gc_hash_buffer): Add doc.
62442
62443 2005-10-11  Bruno Haible  <bruno@clisp.org>
62444
62445         * modules/c-strcasestr: New file.
62446         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62447
62448 2005-10-11  Bruno Haible  <bruno@clisp.org>
62449
62450         * modules/c-strcase: New file.
62451         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62452
62453 2005-10-11  Bruno Haible  <bruno@clisp.org>
62454
62455         * lib/strcasecmp.c: Include limits.h.
62456         (strcasecmp): Avoid integer overflow on exotic platforms.
62457         * lib/strncasecmp.c: Include limits.h.
62458         (strncasecmp): Avoid integer overflow on exotic platforms.
62459         Reported by Paul Eggert.
62460
62461 2005-10-11  Bruno Haible  <bruno@clisp.org>
62462
62463         * lib/c-strcasestr.h: New file, from GNU gettext.
62464         * lib/c-strcasestr.c: New file, from GNU gettext.
62465
62466 2005-10-11  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/c-strcase.h: New file, from GNU gettext.
62469         * lib/c-strcasecmp.c: New file, from GNU gettext.
62470         * lib/c-strncasecmp.c: New file, from GNU gettext.
62471
62472 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * modules/mempcpy (License): GPL -> LGPL.
62475         * modules/strchrnul (License): Likewise.
62476         * modules/sysexits (License): Likewise.
62477
62478 2005-10-08  Simon Josefsson  <jas@extundo.com>
62479
62480         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62481
62482 2005-10-07  Simon Josefsson  <jas@extundo.com>
62483
62484         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62485
62486 2005-10-06  Simon Josefsson  <jas@extundo.com>
62487
62488         * tests/test-hmac-md5.c: New file.
62489
62490         * modules/hmac-md5-tests: New file.
62491
62492         * modules/hmac-md5: New file.
62493
62494 2005-10-06  Simon Josefsson  <jas@extundo.com>
62495
62496         * m4/hmac-md5.m4: New file.
62497
62498         * m4/memxor.m4: Require gl_C_RESTRICT.
62499
62500 2005-10-06  Simon Josefsson  <jas@extundo.com>
62501
62502         * lib/memxor.c (memxor): Avoid casts and warnings.
62503
62504 2005-10-06  Simon Josefsson  <jas@extundo.com>
62505
62506         * lib/hmac-md5.c: New file.
62507
62508         * lib/hmac.h: New file.
62509
62510 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62513         promotes to int, not unsigned int, to catch the AIX 5.3
62514         compiler bug.
62515
62516 2005-10-05  Simon Josefsson  <jas@extundo.com>
62517
62518         * modules/memxor: New file.
62519
62520         * modules/iconv (Files): Move config.rpath to havelib, it is used
62521         there.
62522
62523         * modules/havelib (Files): Add config.rpath.
62524
62525 2005-10-05  Simon Josefsson  <jas@extundo.com>
62526
62527         * m4/memxor.m4: New file.
62528
62529 2005-10-05  Simon Josefsson  <jas@extundo.com>
62530
62531         * lib/memxor.c (memxor): Fix compiler error.
62532
62533         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62534         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62535
62536         * lib/memxor.h, lib/memxor.c: New files.
62537
62538         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62539         we assume all systems have it, suggested by Jim Meyering
62540         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62541         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62542         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62543         same reasons.
62544
62545 2005-10-05  Simon Josefsson  <jas@extundo.com>
62546
62547         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62548
62549 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62552         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62553         needed, since the source code now assumes these .h files.
62554
62555 2005-10-05  Derek Price  <derek@ximbiot.com>
62556
62557         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62558
62559 2005-10-05  Bruno Haible  <bruno@clisp.org>
62560
62561         * modules/stdint (License): Change to LGPL.
62562
62563 2005-10-04  Simon Josefsson  <jas@extundo.com>
62564
62565         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62566         D. Baushke" <mdb@gnu.org>.
62567
62568 2005-10-04  Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/verify.h (verify_true): Provide alternative definition for C++.
62571
62572 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62573
62574         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62575         (SSIZE_MAX): New macro, if not already defined.
62576         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62577         than 2 GiB.
62578
62579 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         Sync from coreutils.
62582         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62583         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62584         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62585         ULLONG_MAX doesn't work with 2.7.2.1.
62586
62587 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62588
62589         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62590         From Ben Pfaff.
62591
62592         * modules/exclude (Depends-on): Depend on verify.
62593         * modules/strtoimax (Depends-on): Likewise.
62594         * modules/utimecmp (Depends-on): Likewise.
62595
62596 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62597
62598         * lib/exclude.c: Include verify.h.
62599         (verify): Remove.  All callers changed to use verify.h's version.
62600         * lib/strtoimax.c: Likewise.
62601         * lib/utimecmp.c: Likewis.e
62602
62603         Sync from coreutils.
62604         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62605         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62606         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62607         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62608         bother returning ENOSYS if settimeofday or stime fails; just let
62609         them return whatever errno they want to return.
62610         * lib/utimens.c: Include unistd.h, for dup2.
62611         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62612         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62613
62614 2005-10-02  Jim Meyering  <jim@meyering.net>
62615
62616         Sync from coreutils.
62617         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62618         from glibc-2.2.5 that fails for read-only files.
62619
62620 2005-10-02  Jim Meyering  <jim@meyering.net>
62621
62622         Sync from coreutils.
62623         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62624         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62625         `#if HAVE_CONFIG_H'.
62626         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62627         Remove AT_FDCWD test.
62628         Do not consume the fd unless successful.
62629         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62630         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62631         block, so that we don't even try to compile it if settimeofday is
62632         available.  This works around a compilation failure on OSF1 V5.1,
62633         due to stime requiring a `long int*' while tv_sec is `int'.
62634
62635 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62636
62637         Sync from coreutils.
62638         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62639         against `yes', rather than just testing for nonempty.
62640
62641 2005-10-01  Simon Josefsson  <jas@extundo.com>
62642
62643         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62644         and Darwin.
62645
62646         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62647         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62648         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62649         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62650         Check if struct addrinfo is declared.
62651
62652 2005-10-01  Simon Josefsson  <jas@extundo.com>
62653
62654         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62655         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62656         AI_* and EAI_* definitions.  Protect function declarations.
62657
62658 2005-10-01  Jim Meyering  <jim@meyering.net>
62659
62660         Sync from coreutils.
62661
62662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62663         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62664         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62665         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62666         in the inet and nsl libraries.  Required on Solaris 5.7.
62667
62668 2005-10-01  Jim Meyering  <jim@meyering.net>
62669
62670         Sync from coreutils.
62671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62672         in the inet and nsl libraries.  Required on Solaris 5.7.
62673
62674 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62675
62676         * lib/getdelim.c (getdelim): Remove unused variables.
62677
62678 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62679
62680         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62681         so that the code works even with ancient cpp.  Portability problem
62682         with GCC 2.7.2.1 reported by Thomas M.Ott.
62683
62684 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62685
62686         * modules/regex (Depends-on): Add strcase.
62687
62688         * modules/gethostname (Licence): Change from GPL to LGPL, since
62689         gethostname.c is a trivial implementation of a standard library
62690         function.
62691         * modules/poll (License): Change from GPL to LGPL, since it's
62692         derived from LGPL code.
62693
62694 2005-09-27  Jim Meyering  <jim@meyering.net>
62695
62696         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62697         HAVE_CONFIG_H.
62698
62699         * lib/intprops.h (signed_type_or_expr__): Define.
62700         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62701         for unsigned types.
62702
62703 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62704
62705         * lib/verify.h (verify_expr): Remove, replacing with:
62706         (verify_true): New macro that returns true instead of void.
62707         (verify_type__): Remove.
62708         (verify): Use verify_true rather than verify_type__.
62709
62710 2005-09-26  Bruno Haible  <bruno@clisp.org>
62711
62712         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62713         is necessary.
62714         (lib_SOURCES): Remove mbchar.c.
62715         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62716         (Files): Add m4/mbrtowc.m4.
62717         * modules/mbiter: Likewise.
62718         * modules/mbuiter: Likewise.
62719
62720 2005-09-26  Bruno Haible  <bruno@clisp.org>
62721
62722         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62723         compile mbchar.c if they are not both present.
62724         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62725         * m4/mbiter.m4 (gl_MBITER): Likewise.
62726         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62727         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62728         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62729
62730 2005-09-25  Jim Meyering  <jim@meyering.net>
62731
62732         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62733         also uses socklen_t.
62734
62735 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * lib/utimens.c (ENOSYS): Define if not already defined.
62738         (futimens): Support having a null PATH if the file descriptor
62739         is nonnegative.
62740
62741         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62742         Remove.
62743         (__attribute): Define to empty unless GCC 3.1 or later.
62744         This works around a core dump on OpenBSD 3.4, which has GCC
62745         2.95.3, which dumps core when given __attribute__(()).  It also
62746         simplifies other tests, since we really don't want to bother with
62747         worrying about which ancient version of GCC supported what.
62748         Original problem reported by Yoann Vandoorselaere, with part of
62749         the fix suggested by Derek Price.
62750
62751 2005-09-24  Jim Meyering  <jim@meyering.net>
62752
62753         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62754         so we can once again use a positive bitfield width of 1 -- now we
62755         don't have to explain why we were using a bitfield width of 2.
62756
62757 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62760         and similarly for the other external symbols.  Problem reported
62761         by James Gallager.
62762
62763         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62764         bug reported by Jim Meyering.
62765
62766         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62767         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62768         not needed, since socklen is a prerequisite module.
62769
62770 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62771
62772         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62773         Problem reported by Eric Blake.
62774         (getaddrinfo): Initialize se so that it's not garbage.
62775         Redo internal storage allocation so that it doesn't make unportable
62776         assumptions about alignment.
62777         Fix a memory leak.
62778
62779         * lib/utimens.c (futimens): Use futimesat if available.
62780         Prefer it to futimes since it doesn't have the futimes bug.
62781
62782         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62783         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62784         Instead, declare a function that returns a pointer to an array,
62785         and use verify_type__ to declare the size of the array.
62786         Problem and germ of a solution reported by Bruno Haible.
62787         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62788         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62789
62790 2005-09-23  Jim Meyering  <jim@meyering.net>
62791
62792         Sync from coreutils.
62793         Correct build failure (socklen_t not defined) on at least
62794         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62795         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62796
62797 2005-09-23  Jim Meyering  <jim@meyering.net>
62798
62799         * modules/getaddrinfo (Depends-on): Add socklen.
62800
62801 2005-09-23  Bruno Haible  <bruno@clisp.org>
62802
62803         * tests/test-verify.c: New file.
62804
62805 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         Sync from coreutils.
62808
62809         * modules/argmatch (Depends-on): Add verify.
62810         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62811         unistd-safer.
62812         * modules/save-cwd (Depends-on): Likewise.
62813
62814         * modules/openat (Files): Add lib/openat-die.c.
62815         (Depends-on): Remove error, exitfail.
62816         Add dirname.
62817
62818         * modules/verify: New file.
62819         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62820         with "verify" module.
62821
62822 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62823
62824         Sync from coreutils.
62825
62826         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62827         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62828         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62829         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62830         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62831         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62832         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62833         Don't bother checking for string.h, stdlib.h, unistd.h.
62834         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62835         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62836         module's job.
62837         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62838         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62839
62840         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62841         (gl_GETDATE): Use it.
62842
62843         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62844
62845 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62846
62847         Sync from coreutils.
62848
62849         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62850         stat-time.h.
62851         * lib/argmatch.h: Include verify.h
62852         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62853         (ARGMATCH_ASSERT): Remove; unused.
62854         * lib/canonicalize.c: Assume STDC_HEADERS.
62855         * lib/exclude.c: Include "strcase.h".
62856         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62857         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62858         and stdio-safer.h.
62859         (getusershell): Call fopen, not fopen_safer.
62860         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62861         Do not include unistd-safer.h.
62862         (save_cwd): Don't call fd_safer; no longer needed
62863         now that we include fcntl--.h.
62864
62865         * lib/getdate.y (relative_time): New type.
62866         (RELATIVE_TIME_0): New constant.
62867         (parser_control): Use relative_time instead of doing it ourselves.
62868         (%union): Add new relative_time rel member.
62869         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62870         Now typeless.
62871         (relunit, relunit_snumber): Now of type rel.
62872         (zone, rel, relunit, get_date): Adjust to above changes.
62873
62874         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62875         Do not include unistd-safer.h.
62876         (getloadavg): Don't call fd_safer; no longer needed
62877         now that we include fcntl--.h.
62878
62879         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62880         (make_dir_parents): Treat ENOSYS like EEXIST.
62881
62882         Improve quality of diagnostics on restore_cwd failure.
62883         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62884         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62885         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62886         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62887         each time through the loop.  Do not diagnose restore_cwd failure;
62888         that is the caller's job (and perhaps the caller does not care).
62889
62890         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62891         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62892         If the file already exists but is not a directory, don't bother
62893         to try to make its parents.
62894         Close potential file descriptor leak if we can't chdir("/") (!).
62895         Don't always return true if chdir($PWD) fails; return true only
62896         if the requested action was done successfully (except for the
62897         chdir($PWD)).
62898         Don't log final directory unless we actually made it.
62899         Refactor to avoid duplicate code to fix up permissions.
62900         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62901
62902         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62903         to make it a bit faster and (I hope) clearer.
62904         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62905         Fix bug in formats like %2N.
62906
62907         * lib/verify.h: New file.
62908
62909 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62910
62911         Sync from coreutils.
62912         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62913
62914 2005-09-22  Jim Meyering  <jim@meyering.net>
62915
62916         Sync from coreutils.
62917
62918         * m4/lstat.m4 (gl_FUNC_LSTAT):
62919         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62920         Remove obsolete comment.
62921         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62922         * m4/xstrtod.m4: Likewise.
62923
62924         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62925
62926 2005-09-22  Jim Meyering  <jim@meyering.net>
62927
62928         Sync from coreutils.
62929
62930         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62931
62932         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62933         the .tm_year member, since otherwise gcc-4.0 would now warn about
62934         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62935
62936         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62937         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62938
62939         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62940         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62941         when run in a time zone for which daylight savings time is in effect
62942         for the starting date.
62943
62944         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62945         stop us from restricting permissions of just-created absolute-named
62946         directories.
62947         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62948         to restore initial working directory.
62949         * lib/mkdir-p.c (make_dir_parents): New parameter:
62950         different_working_dir, to tell caller if/when we change the working
62951         directory and are unable to return to the initial one.
62952         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62953         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62954         `return false'.  This fixes a bug introduced on 2004-07-30.
62955
62956         * lib/openat.c (fdopendir): Be sure to close the supplied
62957         file descriptor before returning.  This makes our replacement
62958         implementation a little closer to Solaris's, where fdopendir
62959         ties the file descriptor to the returned DIR* pointer.
62960         * lib/openat.c (unlinkat): New function.
62961         * lib/openat.h (unlinkat): Add prototype.
62962         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62963         (openat_restore_fail): Rename from openat_restore_die.
62964         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62965
62966         Provide an alternative to exiting immediately upon save_cwd or
62967         restore_cwd failure.  Now, an application can arrange e.g.,
62968         to perform a longjump in that case.
62969         * lib/openat.c: Include dirname.h.
62970         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62971         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62972         and openat_restore_die rather than calling error directly.
62973         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62974
62975         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62976         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62977         define.
62978
62979         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62980         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62981                             int utc, int nanoseconds);
62982         Background:
62983         date should not have to allocate a megabyte of virtual memory to
62984         handle a format argument like +%1048575T.  When implemented with
62985         strftime, it must allocate such a buffer, use strftime to fill it
62986         in, print it, then free it.
62987         With fprintftime, it simply prints everything and exits.
62988         With no need for memory allocation, that's one fewer way to fail.
62989         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62990         optional field width, not before, so we accept %9:z, not %:9z.
62991         (my_strftime): Be sure to use L_('x') for literals.
62992
62993         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62994         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62995         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62996         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62997         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62998         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62999         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63000         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63001         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63002         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63003         * lib/xgethostname.c, lib/xreadlink.c:
63004         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63005
63006         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63007         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63008         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63009         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63010         and don't include <sys/file.h>).
63011
63012 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63013
63014         Sync from coreutils.
63015
63016         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63017         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63018         [!LDAV_DONE]: Avoid unused variable warning.
63019
63020 2005-09-21  Bruno Haible  <bruno@clisp.org>
63021
63022         * lib/unicodeio.h (unicode_to_mb): New declaration.
63023
63024 2005-09-20  Derek Price  <derek@ximbiot.com>
63025
63026         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63027         getaddrinfo.h.
63028
63029 2005-09-20  Bruno Haible  <bruno@clisp.org>
63030
63031         * gnulib-tool: Remove trailing slashes from the values specified for
63032         --source-base, --m4-base, --tests-base, --aux-dir.
63033         Suggested by Simon Josefsson <jas@extundo.com>.
63034
63035 2005-09-20  Bruno Haible  <bruno@clisp.org>
63036
63037         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63038         func_modules_to_filelist, func_import, func_create_testdir): Make all
63039         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63040         change when gnulib-tool is invoked in a different locale.
63041
63042 2005-09-19  Simon Josefsson  <jas@extundo.com>
63043
63044         * m4/socklen.m4: Fix typo.
63045
63046 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63047
63048         Use a consistent style for including <config.h>.
63049         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63050         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63051         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63052         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63053         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63054         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63055         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63056         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63057         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63058         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63059         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63060         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63061         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63062         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63063         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63064         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63065         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63066         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63067         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63068         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63069         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63070         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63071         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63072         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63073         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63074         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63075         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63076         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63077         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63078         lib/xstrtoumax.c, lib/yesno.c:
63079         Standardize inclusion of config.h.
63080         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63081         lib/inttostr.h:  Removed inclusion of config.h from header files.
63082         * lib/inttostr.c:  Adjusted in-tree users.
63083         * lib/timespec.h: Remove superfluous warning to include config.h.
63084         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63085         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63086         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63087         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63088         config.h with HAVE_CONFIG_H.
63089
63090 2005-09-19  Jim Meyering  <jim@meyering.net>
63091
63092         * modules/pathmax (License): Change to LGPL.
63093
63094 2005-09-19  Derek Price  <derek@ximbiot.com>
63095
63096         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63097
63098 2005-09-19  Bruno Haible  <bruno@clisp.org>
63099
63100         * gnulib-tool (import): Provide default for --tests-base.
63101
63102 2005-09-19  Bruno Haible  <bruno@clisp.org>
63103
63104         * doc/quote.texi: New file, extracted from gnulib.texi.
63105         * doc/ctime.texi: New file, extracted from gnulib.texi.
63106         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63107         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63108         * doc/gnulib.texi: Include them.
63109
63110 2005-09-18  Bruno Haible  <bruno@clisp.org>
63111
63112         Portability fix.
63113         * gnulib-tool (func_readlink): New function.
63114         (func_ln_if_changed): Use it.
63115
63116 2005-09-18  Bruno Haible  <bruno@clisp.org>
63117
63118         * gnulib-tool: Support --with-tests also with --import.
63119         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63120         (func_import): Use variables $testsbase and $inctests. Emit a
63121         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63122         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63123         SUBDIRS += $testsdir.
63124         (func_create_testdir): Update.
63125
63126 2005-09-18  Bruno Haible  <bruno@clisp.org>
63127
63128         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63129         instead of $dry_run.
63130         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63131         (func_ln_if_changed): Don't handle dry-run here.
63132         (func_import): In dry-run mode, detect more precisely which actions
63133         would be performed, and don't use "...ing" verbs.
63134
63135 2005-09-18  Bruno Haible  <bruno@clisp.org>
63136
63137         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63138         (func_import): Use join on two temporary files instead of three nested
63139         loops, in order to determine which files are new or old.
63140
63141 2005-09-18  Bruno Haible  <bruno@clisp.org>
63142
63143         * gnulib-tool (func_import): Comment out code that spits out the
63144         new files with --dry-run.
63145
63146 2005-09-18  Bruno Haible  <bruno@clisp.org>
63147
63148         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63149
63150 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * lib/stat-time.h: New file.
63153         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63154         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63155         in a different way.
63156         (timespec_cmp): New function.
63157         * lib/utimecmp.c: Include stat-time.h.
63158         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63159         members exist, not on the obsolescent ST_MTIM_NSEC.
63160         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63161
63162 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63163
63164         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63165
63166 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         * MODULES.html.sh (File system functions): Add stat-time.
63169         * modules/stat-time: New file.
63170         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63171         is now done in a different way, by the stat-time module.
63172         * modules/utimecmp (Depends-on): Add stat-time.
63173
63174 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * m4/st_mtim.m4: Remove.  Superseded by...
63177         * m4/stat-time.m4: New file.
63178         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63179         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63180
63181 2005-09-15  Derek Price  <derek@ximbiot.com>
63182
63183         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63184
63185 2005-09-15  Derek Price  <derek@ximbiot.com>
63186
63187         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63188         * lib/regex_internal.c: Ditto, using this...
63189         (__GNUC_PREREQ): ...new macro.
63190         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63191         using...
63192         (__GNUC_PREREQ): ...this new macro.
63193
63194         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63195
63196 2005-09-15  Derek Price  <derek@ximbiot.com>
63197             Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63200         changes, consolidating in...
63201         * lib/regex_internal.h: ...this file.
63202
63203 2005-09-13  Jim Meyering  <jim@meyering.net>
63204
63205         * lib/canon-host.c: Filter through gnu indent and reword comments
63206         slightly.
63207         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63208
63209 2005-09-13  Derek Price  <derek@ximbiot.com>
63210
63211         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63212         failure.
63213         Reported by Jim Meyering  <jim@meyering.net>.
63214
63215 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63216
63217         * lib/base64.c: Typo.
63218         (base64_encode): Put b64str in initialized data section.
63219
63220 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63221
63222         Merge glibc and coreutils changes into gnulib, plus a few
63223         extra fixes.
63224         * lib/md5.c: Use #error rather than a string.
63225         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63226         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63227         (__attribute__): Define to empty for non recent-GCC.
63228         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63229         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63230         Renamed from their non-__ counterparts, with new macros replacing
63231         them if not _LIBC.  Add __THROW attribute.
63232         (rol): Remove.
63233         (struct md5_ctx): Align buffer if using GCC.
63234         * lib/sha1.h (struct sha1_ctx): Likewise.
63235         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63236         The old name was backwards.
63237         (NOTSWAP): Remove; not used.
63238         (rol): New macro, moved here from md5.h.
63239         (sha1_process_block): Remove a FIXME that doesn't make sense.
63240
63241 2005-09-12  Derek Price  <derek@ximbiot.com>
63242
63243         Return usable errors from canon-host.
63244         * lib/canon-host.h: New file.
63245         * lib/canon-host.c (canon_host): Wrap...
63246         (canon_host_r): ...this new function, which now relies exclusively on
63247         getaddrinfo.
63248         (ch_strerror): New function.
63249         (last_cherror): New global.
63250         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63251         interface.
63252         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63253         void *.
63254         (freeaddrinfo): Free ai->ai_canonname when set.
63255
63256 2005-09-12  Derek Price  <derek@ximbiot.com>
63257
63258         Make canon-host require getaddrinfo.
63259         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63260         AC_LIBSOURCE canon-host.h.  Call...
63261         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63262         gl_GETADDRINFO.
63263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63264
63265 2005-09-12  Derek Price  <derek@ximbiot.com>
63266
63267         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63268         LGPL.
63269         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63270
63271 2005-09-12  Derek Price  <derek@ximbiot.com>
63272
63273         * lib/gai_strerror.c: Include config.h when available.  Include
63274         getaddrinfo.h before other headers to test interface.
63275         Reported by Larry Jones <lawrence.jones@ugs.com>.
63276
63277 2005-09-12  Derek Price  <derek@ximbiot.com>
63278             Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * modules/glob (Files): Add glob-libc.h.
63281
63282 2005-09-12  Derek Price  <derek@ximbiot.com>
63283             Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63286         glob_.h, glob-libc.h.
63287         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63288
63289 2005-09-12  Derek Price  <derek@ximbiot.com>
63290             Paul Eggert  <eggert@cs.ucla.edu>
63291
63292         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63293         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63294         protecting things that should be done only in gnulib contexts.
63295         * lib/glob_.h: New file, containing only the glob things needed for
63296         gnulib.
63297         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63298         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63299         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63300         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63301         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63302         and to respect the namespace rules better.
63303
63304 2005-09-08  Simon Josefsson  <jas@extundo.com>
63305
63306         * modules/socklen: New file.
63307
63308 2005-09-08  Simon Josefsson  <jas@extundo.com>
63309
63310         * m4/socklen.m4: New file.
63311
63312 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * modules/utimens (Files): Add m4/utimbuf.m4, since
63315         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63316         Reported by Sergey Poznyakoff.
63317
63318 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63319
63320         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63321         definitions, since that's the preferred style in glibc.
63322         Fix a minor spacing issue, and update copyright notice to match
63323         glibc's.
63324
63325 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63326
63327         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63328
63329 2005-09-06  Simon Josefsson  <jas@extundo.com>
63330
63331         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63332         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63333
63334 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63337         warning.
63338
63339 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63340
63341         * config/srclist.txt: Add glibc bug 1302.
63342
63343 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         Change bitset word type from unsigned int to unsigned long int,
63346         as this has better performance on typical 64-bit hosts.
63347         Port bitset code to hosts with unusual word sizes.
63348         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63349         (build_collating_symbol):
63350         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63351         argument is a bitset.  This is merely a style issue, but it makes
63352         it clearer that an entire array is expected.
63353         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63354         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63355         Port to the case where bitset_word is not the same as unsigned int.
63356         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63357         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63358         Likewise.
63359         * lib/regexec.c (check_dst_limits_calc_pos_1,
63360         check_subexp_matching_top):
63361         (build_trtable, group_nodes_into_DFAstates):
63362         Likewise.
63363         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63364         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63365         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63366         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63367         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63368         * lib/regcomp.c (optimize_subexps, lower_subexp):
63369         Work even if bitset_word has holes in its bitwise representation.
63370         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63371         * lib/regexec.c (check_dst_limits_calc_pos_1,
63372         check_subexp_matching_top):
63373         Likewise.
63374         * lib/regex_internal.c (re_string_reconstruct):
63375         Don't assume UCHAR_MAX == 255.
63376         * lib/regex_internal.h (bitset_set_all): Likewise.
63377         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63378         All uses changed.
63379         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63380         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63381         All uses changed.
63382         (BITSET_WORD_MAX): New macro.
63383         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63384         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63385         (bitset_empty, bitset_copy):
63386         Prefer sizeof (bitset) to multiplying it out ourselves.
63387         (bitset_not_merge): Remove; unused.
63388         (bitset_contain): Return bool, not unsigned int with one bit on.
63389         All callers changed.
63390         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63391         alignment than re_node_set; do this by defining a new internal
63392         type struct dests_alloc and using it to allocate memory.
63393
63394 2005-09-05  Bruno Haible  <bruno@clisp.org>
63395
63396         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63397         links.
63398
63399 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63400
63401         * modules/size_max (Makefile.am): Add size_max.h
63402
63403 2005-09-04  Derek Price  <derek@ximbiot.com>
63404
63405         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63406
63407 2005-09-03  Simon Josefsson  <jas@extundo.com>
63408
63409         * gnulib-tool: Fix typo.
63410
63411 2005-09-03  Simon Josefsson  <jas@extundo.com>
63412
63413         * config/srclist.txt: Add glibc bug 1293.
63414
63415 2005-09-03  Derek Price  <derek@ximbiot.com>
63416
63417         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63418         From Larry Jones <lawrence.jones@ugs.com>.
63419
63420 2005-09-02  Simon Josefsson  <jas@extundo.com>
63421
63422         * modules/socklen: New file.
63423
63424 2005-09-02  Simon Josefsson  <jas@extundo.com>
63425
63426         * modules/havelib: New module.
63427
63428         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63429         Use havelib.
63430
63431 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         Check for arithmetic overflow when calculating sizes, to prevent
63434         some buffer-overflow issues.  These patches are conservative, in the
63435         sense that when I couldn't determine whether an overflow was possible,
63436         I inserted a run-time check.
63437         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63438         macros.
63439         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63440         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63441         (re_xnrealloc, re_x2nrealloc): New inline functions.
63442         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63443         parse_bracket_exp):
63444         (build_equiv_class, build_charclass): Check for arithmetic overflow
63445         in size expression calculations.
63446         * lib/regex_internal.c (re_string_realloc_buffers):
63447         (build_wcs_upper_buffer, re_node_set_add_intersect):
63448         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63449         (re_dfa_add_node, register_state): Likewise.
63450         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63451         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63452         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63453         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63454
63455 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63456
63457         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63458         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63459
63460 2005-09-02  Bruno Haible  <bruno@clisp.org>
63461
63462         Support for lib vs. lib64 distinction on biarch platforms.
63463         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63464         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63465         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63466
63467 2005-09-02  Bruno Haible  <bruno@clisp.org>
63468
63469         * gnulib-tool (import): In the other first-use case, provide defaults
63470         as well.
63471
63472 2005-09-02  Bruno Haible  <bruno@clisp.org>
63473
63474         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63475         patches not yet found in the latest gettext release.
63476
63477 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63480         to avoid a collision with bits/local_lim.h in glibc.
63481         All uses changed.  Problem reported by Dmitry V. Levin in
63482         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63483
63484         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63485         bugs in int versus size_t comparisons.
63486         (re_string_context_at): Fix bug where the code assumed that
63487         Idx is signed.
63488
63489         Use bool where appropriate.
63490         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63491         All callers changed.
63492         (calc_eclosure_iter): Likewise, for ROOT arg.
63493         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63494         (build_charclass_op): Likewise, for NON_MATCH arg.
63495         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63496         (re_string_construct_common): Likewise, for ICASE arg.
63497         * lib/regexec.c (re_search_2_stub, re_search_stub):
63498         Likewise, for RET_LEN arg.
63499         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63500         (set_regs): Likewise, for FL_BACKTRACK arg.
63501         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63502         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63503         (calc_eclosure_iter, parse_bracket_exp):
63504         Use bool for internal variables that are booleans.
63505         * lib/regexec.c (re_search_internal, check_matching,
63506         proceed_next_node):
63507         (set_regs, build_sifted_states, sift_states_bkref):
63508         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63509         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63510         (find_collation_sequence_value):
63511         Likewise.
63512         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63513         (re_node_set_compare):
63514         Return bool, not int. All callers changed.
63515         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63516         (build_trtable, check_node_accept): Likewise.
63517         * lib/regex_internal.h: Include stdbool.h.
63518
63519         Fix bugs uncovered when converting to bool.
63520         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63521         failure instead of charging ahead blindly.
63522         * lib/regex_internal.c (register_state): Likewise.
63523         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63524         for freeing internal storage.
63525         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63526         bitset pieces used as boolean, to avoid undefined behavior
63527         on hosts that do int overflow checking.
63528
63529 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         * config/srclist.txt: Add glibc bugs 1285-1287.
63532
63533 2005-09-01  Jim Meyering  <jim@meyering.net>
63534
63535         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63536         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63537         Require gl_STAT_MACROS, too.
63538
63539 2005-09-01  Bruno Haible  <bruno@clisp.org>
63540
63541         * gnulib-tool (import): In the first-use case, provide defaults.
63542
63543 2005-09-01  Bruno Haible  <bruno@clisp.org>
63544
63545         * gnulib-tool (func_import): Remove the .tmp files.
63546
63547 2005-09-01  Bruno Haible  <bruno@clisp.org>
63548
63549         * gnulib-tool (func_import): Fix handling of symbolic links.
63550
63551 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63552
63553         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63554         old glibc regex code mishandles strings longer than 2**31 bytes.
63555         This patch fixes this when the regex code is used in gnulib
63556         (i.e., outside glibc).
63557
63558         This patch should not affect the use of the regex code inside
63559         glibc.  No doubt this problem also needs to be handled for glibc
63560         as well, but the result will be an incompatible change to the
63561         glibc ABI, and the old ABI will have to be supported too.  That
63562         can be the the subject for another patch.
63563
63564         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63565         governing whether the rest of this patch is active.  By default,
63566         the macro is disabled and the patch has no effect.
63567         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63568         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63569         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63570         (re_match_2, re_set_registers): Use the new types.
63571         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63572         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63573         New macros.
63574         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63575         (re_string_context_at, bin_tree_t, re_dfastate_t):
63576         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63577         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63578         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63579         (re_string_char_size_at, re_string_wchar_at):
63580         (re_string_elem_size_at):
63581         Use the new types and macros to port to 64-bit hosts.
63582         Use unsigned types for internal values, so that the code
63583         mostly works even for arrays larger than SSIZE_MAX.
63584         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63585         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63586         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63587         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63588         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63589         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63590         (calc_inveclosure, parse_dup_op, build_range_exp):
63591         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63592         (fetch_number, create_token_tree, mark_opt_subexp):
63593         Likewise.
63594         * lib/regex_internal.c (re_string_construct_common,
63595         create_ci_newstate):
63596         (create_cd_newstate, re_string_allocate, re_string_construct):
63597         (re_string_realloc_buffers, build_wcs_upper_buffer):
63598         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63599         (re_string_reconstruct, re_string_peek_byte_case):
63600         (re_string_fetch_byte_case, re_string_context_at):
63601         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63602         (re_node_set_init_copy, re_node_set_add_intersect):
63603         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63604         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63605         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63606         (re_acquire_state, re_acquire_state_context, register_state):
63607         Likewise.
63608         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63609         search_cur_bkref_entry):
63610         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63611         (re_search_internal, re_search_2_stub, re_search_stub)
63612         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63613         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63614         (update_cur_sifted_state, check_dst_limits):
63615         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63616         (check_subexp_limits, sift_states_bkref, merge_state_array):
63617         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63618         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63619         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63620         (expand_bkref_cache, check_node_accept_bytes):
63621         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63622         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63623         (acquire_init_state_context, check_halt_node_context):
63624         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63625         (sift_states_backward, clean_state_log_if_needed):
63626         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63627         (find_recover_state, transit_state_sb, transit_state_mb):
63628         (transit_state_bkref, build_trtable, match_ctx_clean):
63629         Likewise.
63630         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63631         to work around an assumption that REG_MISSING is negative.
63632
63633         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63634         (seek_collating_symbol_entry) [defined _LIBC]:
63635         (lookup_collation_sequence_value) [defined _LIBC]:
63636         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63637         Use prototypes rather than old-style function definitions.
63638         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63639         (transit_state_sb) [0]:
63640         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63641
63642         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63643         rm_eo.
63644
63645         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63646         (optimize_subexps, lower_subexp):
63647         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63648         since the signed shift might overflow.  Use 1u<<31 instead.
63649         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63650         Likewise.
63651         * lib/regexec.c (check_dst_limits_calc_pos_1,
63652         check_subexp_matching_top): Likewise.
63653
63654         * lib/regcomp.c (optimize_subexps, lower_subexp):
63655         Use CHAR_BIT rather than 8, for clarity.
63656         * lib/regexec.c (check_dst_limits_calc_pos_1):
63657         (check_subexp_matching_top): Likewise.
63658         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63659         have to worry about portability issues when shifting it left.
63660         Remove no-longer-needed test for table_size > 0.
63661         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63662         in a word, as the resulting behavior is undefined.
63663         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63664         in one case, a <= should have been an <, and in another case the
63665         whole test was missing.
63666         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63667         the standard name CHAR_BIT.
63668         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63669         this is not true on one's complement and signed-magnitude hosts.
63670
63671         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63672         next_last_offset.
63673         (struct re_dfa_t): Remove unused member states_alloc.
63674         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63675
63676 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63679         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63680         and large-file glibc and in 32-bit large-file Solaris.
63681
63682 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63685         lengths fit in regoff_t; this isn't true if regoff_t is the same
63686         width as size_t.
63687         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63688         (= START + RANGE) instead of RANGE.  This avoids overflow
63689         problems when regoff_t is the same width as size_t.
63690         All callers changed.
63691         (re_search_2_stub): Check for overflow when adding the
63692         sizes of the two strings.
63693         (re_search_stub): Check for overflow when adding START
63694         to RANGE; if it occurs, substitute the extreme value.
63695
63696 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63697
63698         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63699
63700 2005-08-31  Jim Meyering  <jim@meyering.net>
63701
63702         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63703         a pointer-to-const.
63704         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63705         (register_state): Likewise.
63706         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63707         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63708         (group_nodes_into_DFAstates): Likewise.
63709
63710 2005-08-31  Jim Meyering  <jim@meyering.net>
63711
63712         * check-module: Add a FIXME comment.
63713
63714 2005-08-31  Eric Blake  <ebb9@byu.net>
63715
63716         * modules/unistd-safer (Files): Add unistd--.h.
63717         * modules/stdio-safer (Files): Add stdio--.h.
63718
63719 2005-08-31  Derek Price  <derek@ximbiot.com>
63720
63721         * lib/getdelim.c (getdelim): Return EOF on EOF.
63722         Reported by Larry Jones <lawrence.jones@ugs.com>.
63723
63724 2005-08-31  Bruno Haible  <bruno@clisp.org>
63725
63726         Avoid unnecessary diffs in the generated lib/Makefile.am.
63727         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63728         the generated files.
63729         (func_import): Don't set cmd.
63730
63731 2005-08-31  Bruno Haible  <bruno@clisp.org>
63732
63733         * lib/strstr.c: Include <stddef.h>, for NULL.
63734         * lib/strcasestr.c: Likewise.
63735         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63736
63737 2005-08-31  Bruno Haible  <bruno@clisp.org>
63738
63739         * gnulib-tool: New option --macro-prefix.
63740         (func_import): Use macro_prefix.
63741         (import): Handle option --macro-prefix.
63742
63743 2005-08-31  Bruno Haible  <bruno@clisp.org>
63744
63745         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63746         Also use new variables cached_lgpl, cached_libtool.
63747
63748 2005-08-31  Bruno Haible  <bruno@clisp.org>
63749
63750         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63751         always instantiating them.
63752
63753 2005-08-31  Bruno Haible  <bruno@clisp.org>
63754
63755         * gnulib-tool (func_import): Read the previous cached settings
63756         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63757         earlier added by gnulib but are now dropped. Warn when a gnulib file
63758         overwrites a non-gnulib file.
63759
63760 2005-08-31  Bruno Haible  <bruno@clisp.org>
63761
63762         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63763         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63764         projects that don't keep autogenerated files in CVS. Put into
63765         actioncmd only the specified modules, not the transitive closure.
63766
63767 2005-08-31  Bruno Haible  <bruno@clisp.org>
63768
63769         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63770         Create directories that shall be filled.
63771         (import): Don't look for gl_* macros in configure.ac. Recurse across
63772         all directories containing a gnulib-cache.m4 files, if meaningful.
63773
63774 2005-08-31  Bruno Haible  <bruno@clisp.org>
63775
63776         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63777         (import): Set seen_libtool when we see gl_LIBTOOL.
63778
63779 2005-08-31  Bruno Haible  <bruno@clisp.org>
63780
63781         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63782         declaration macro definitions from generated gnulib.m4.
63783
63784 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63785
63786         * lib/iconvme.h: Add prototype for iconv_alloc.
63787
63788 2005-08-29  Simon Josefsson  <jas@extundo.com>
63789
63790         * lib/iconvme.c: Fix errno.
63791
63792 2005-08-29  Bruno Haible  <bruno@clisp.org>
63793
63794         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63795         that it works when the directory contains spaces.
63796
63797 2005-08-29  Bruno Haible  <bruno@clisp.org>
63798
63799         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63800
63801 2005-08-29  Bruno Haible  <bruno@clisp.org>
63802
63803         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63804         Emit more advice.
63805
63806 2005-08-29  Bruno Haible  <bruno@clisp.org>
63807         and Stepan Kasal  <kasal@ucw.cz>
63808
63809         * check-module: If more parameters are given, check each of them
63810         separately; add more exceptions, as noted by Jim Meyering.
63811         (check_module): New procedure.
63812         (%exempt_header): Now contains all exceptions.
63813
63814 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63815
63816         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63817
63818 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63819
63820         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63821
63822 2005-08-28  Bruno Haible  <bruno@clisp.org>
63823
63824         * m4/gnulib-tool.m4: New file.
63825
63826 2005-08-27  Jim Meyering  <jim@meyering.net>
63827
63828         * modules/unistd-safer (Files): Add pipe-safer.c.
63829         * modules/fcntl-safer (Files): Add creat-safer.c.
63830
63831 2005-08-27  Jim Meyering  <jim@meyering.net>
63832
63833         * m4/stdlib-safer.m4: New file.  From coreutils.
63834         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63835         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63836         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63837         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63838         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63839
63840 2005-08-27  Jim Meyering  <jim@meyering.net>
63841
63842         * lib/fopen-safer.c: Merge minor changes from coreutils.
63843         * lib/dup-safer.c: Likewise.
63844         * lib/fd-safer.c: Likewise.
63845
63846         Merge from coreutils.
63847         * lib/stdio--.h: New file.
63848         * lib/stdlib--.h: New file.
63849         * lib/mkstemp-safer.c: New file.
63850
63851         GNU tar needs these.
63852         * lib/pipe-safer.c: New file.
63853         * lib/creat-safer.c: New file.
63854         * lib/fcntl--.h (creat): Define to creat_safer.
63855         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63856         * lib/unistd--.h (pipe): Define to pipe_safer.
63857         * lib/unistd-safer.h: Declare pipe_safer.
63858
63859 2005-08-26  Simon Josefsson  <jas@extundo.com>
63860
63861         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63862         Haible <bruno@clisp.org>.
63863
63864 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63865
63866         * lib/regex_internal.h: Remove all references to
63867         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63868         or better.
63869         (bitset_not, bitset_merge, bitset_not_merge):
63870         (bitset_mask, re_string_allocate, re_string_construct):
63871         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63872         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63873         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63874         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63875         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63876         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63877         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63878         (re_acquire_state_context):
63879         Remove unnecessary forward decls.
63880         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63881         Put __attribute at function definition,
63882         now that the function decl has been removed.
63883         * lib/regex_internal.c (re_string_peek_byte_case):
63884         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63885         Likewise.
63886
63887 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63888
63889         * m4/regex.m4: Add AC_PREREQ(2.50).
63890         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63891
63892 2005-08-25  Simon Josefsson  <jas@extundo.com>
63893
63894         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63895         __fsetlocking.
63896
63897 2005-08-25  Simon Josefsson  <jas@extundo.com>
63898
63899         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63900         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63901         GLIBC specific code.
63902
63903 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63904
63905         Make regex safe for g++.  This fixes one real bug (an "err"
63906         that should have been "*err").  g++ problem reported by
63907         Sam Steingold.
63908         * lib/regex_internal.h (re_calloc): New macro, consistent with
63909         re_malloc etc.  All callers of calloc changed to use re_calloc.
63910         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63911         not int.  All callers changed.
63912         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63913         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63914         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63915         (find_recover_state): Change "err" to "*err"; this fixes what
63916         appears to be a real bug.
63917         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63918         versus int.
63919
63920 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63921
63922         * modules/regex (Depends-on): Add malloc, since the code
63923         assumes that !malloc(0) means failure.
63924
63925 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63926
63927         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63928
63929         alloca modernization/simplification for regex.
63930         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63931         needs to be at the start of the file, and can be moved into
63932         regex_internal.h and simplified.
63933         * lib/regex_internal.h: Include <alloca.h>.
63934         (__libc_use_alloca) [!defined _LIBC]: New macro.
63935         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63936         now works outside glibc.
63937
63938 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63939
63940         * config/srclist.txt: Add glibc bugs 1241, 1245.
63941
63942 2005-08-25  Jim Meyering  <jim@meyering.net>
63943
63944         * lib/open-safer.c: Include <config.h>.
63945         Otherwise, we'd lose LARGEFILE support in any file using
63946         e.g. "fcntl--.h"
63947
63948 2005-08-25  Bruno Haible  <bruno@clisp.org>
63949
63950         * m4/minmax.m4: Require autoconf 2.52.
63951         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63952         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63953         alternatives of translit over the alphabet.
63954         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63955
63956 2005-08-24  Simon Josefsson  <jas@extundo.com>
63957
63958         * tests/test-getpass.c: New file.
63959
63960 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63961
63962         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63963         for GNU regex features.
63964
63965 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63966
63967         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63968         * lib/regex.h (regerror): Likewise.
63969
63970         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63971         requires this.  (The code never needed it.)
63972
63973         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63974         All uses of recently-renamed identifiers changed to use the new,
63975         POSIX-compliant names.  The code will build and run just fine
63976         without these changes, but it's better to eat our own dog food
63977         and use the standard-conforming names.
63978
63979         * lib/regex.h: Fix a multitude of POSIX name space violations.
63980         These changes have an effect only for programs that define
63981         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63982         do not change anything for programs compiled in the normal way.
63983         Also, there is no effect on the ABI.
63984
63985         (_REGEX_SOURCE): New macro.
63986         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63987         defined and _GNU_SOURCE is not; this fixes a name space violation.
63988
63989         Rename the following macros to obey POSIX requirements.
63990         The old names are still visible as macros if _REGEX_SOURCE is defined.
63991         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63992         RE_BACKSLASH_ESCAPE_IN_LISTS.
63993         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63994         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63995         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63996         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63997         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63998         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63999         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64000         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64001         (REG_INTERVALS): renamed from RE_INTERVALS.
64002         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64003         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64004         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64005         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64006         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64007         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64008         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64009         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64010         RE_UNMATCHED_RIGHT_PAREN_ORD.
64011         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64012         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64013         (REG_DEBUG): renamed from RE_DEBUG.
64014         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64015         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64016         unusual, since we can't clash with the POSIX REG_ICASE.
64017         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64018         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64019         (REG_NO_SUB): renamed from RE_NO_SUB.
64020         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64021         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64022         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64023         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64024         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64025         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64026         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64027         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64028         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64029         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64030         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64031         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64032         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64033         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64034         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64035         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64036         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64037         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64038         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64039         (REG_FIXED): Renamed from REGS_FIXED.
64040         (REG_NREGS): Renamed from RE_NREGS.
64041
64042         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64043         of other REG_* macros, since POSIX says the user is allowed to
64044         #undef these macros selectively.
64045
64046         (reg_errcode_t): Update comment stating what other tables need
64047         to be consistent.
64048
64049         Rename the following enum values to obey POSIX requirements.
64050         The old names are still visible as macros.
64051         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64052         is not defined, since GNU is supposed to be a superset of POSIX as
64053         much as possible, and since we want reg_errcode_t to be a signed
64054         type for implementation consistency.
64055         (_REG_NOERROR): Renamed from REG_NOERROR.
64056         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64057         (_REG_BADPAT): Renamed from REG_BADPAT.
64058         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64059         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64060         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64061         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64062         (_REG_EBRACK): Renamed from REG_EBRACK.
64063         (_REG_EPAREN): Renamed from REG_EPAREN.
64064         (_REG_EBRACE): Renamed from REG_EBRACE.
64065         (_REG_BADBR): Renamed from REG_BADBR.
64066         (_REG_ERANGE): Renamed from REG_ERANGE.
64067         (_REG_ESPACE): Renamed from REG_ESPACE.
64068         (_REG_BADRPT): Renamed from REG_BADRPT.
64069         (_REG_EEND): Renamed from REG_EEND.
64070         (_REG_ESIZE): Renamed from REG_ESIZE.
64071         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64072         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64073         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64074         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64075         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64076
64077         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64078         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64079         changed.  But support the old name if the new one is not defined
64080         and if _REGEX_SOURCE.
64081
64082         Change the following member names in struct re_pattern_buffer.
64083         The old names are still supported if !_REGEX_SOURCE.
64084         The new names are always supported, regardless of _REGEX_SOURCE.
64085         (re_buffer): Renamed from buffer.
64086         (re_allocated): Renamed from allocated.
64087         (re_used): Renamed from used.
64088         (re_syntax): Renamed from syntax.
64089         (re_fastmap): Renamed from fastmap.
64090         (re_translate): Renamed from translate.
64091         (re_can_be_null): Renamed from can_be_null.
64092         (re_regs_allocated): Renamed from regs_allocated.
64093         (re_fastmap_accurate): Renamed from fastmap_accurate.
64094         (re_no_sub): Renamed from no_sub.
64095         (re_not_bol): Renamed from not_bol.
64096         (re_not_eol): Renamed from not_eol.
64097         (re_newline_anchor): Renamed from newline_anchor.
64098
64099         Change the following member names in struct re_registers.
64100         The old names are still supported if !_REGEX_SOURCE.
64101         The new names are always supported, regardless of _REGEX_SOURCE.
64102         (rm_num_regs): Renamed from num_regs.
64103         (rm_start): Renamed from start.
64104         (rm_end): Renamed from end.
64105
64106         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64107         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64108         Prepend __ to parameter names.
64109
64110         Undo yesterday's changes.
64111
64112 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64115         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64116         lib/regex.c.
64117
64118 2005-08-24  Jim Meyering  <jim@meyering.net>
64119
64120         Sync from coreutils.
64121         * m4/fcntl-safer.m4: New file.
64122
64123         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64124         and object files for this module.
64125
64126 2005-08-24  Jim Meyering  <jim@meyering.net>
64127
64128         Sync from coreutils.
64129         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64130
64131 2005-08-24  Jim Meyering  <jim@meyering.net>
64132
64133         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64134         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64135
64136 2005-08-24  Jim Meyering  <jim@meyering.net>
64137
64138         * modules/fcntl-safer: New module.
64139         * modules/fts (Depends-on): Add fcntl-safer.
64140         * MODULES.html.sh (File descriptor based Input/Output):
64141         Add fcntl-safer.
64142
64143 2005-08-24  Bruno Haible  <bruno@clisp.org>
64144
64145         Support for unit test modules.
64146         * modules/README: Mention tests modules.
64147         * modules/TEMPLATE-TESTS: New file.
64148         * gnulib-tool: New options --extract-tests-module, --with-tests and
64149         --tests-base (unused for the moment).
64150         (testsbase, inctests): New variables.
64151         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64152         (func_verify_module): Exclude TEMPLATE-TESTS.
64153         (func_verify_nontests_module, func_verify_tests_module): New functions.
64154         (func_get_dependencies): Add implicit dependency for tests modules.
64155         (func_get_tests_module): New function.
64156         (func_modules_transitive_closure): When --with-tests was specified,
64157         include the unit tests as well, unless explicitly avoided.
64158         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64159         (func_emit_tests_Makefile_am): New function.
64160         (func_create_testdir): When --with-tests was specified, emit a
64161         tests/ directory.
64162         * MODULES.html.sh (Future developments): Update.
64163
64164 2005-08-24  Bruno Haible  <bruno@clisp.org>
64165
64166         * modules/tls-tests: New file.
64167         * tests/test-tls.c: New file, from GNU gettext.
64168
64169 2005-08-24  Bruno Haible  <bruno@clisp.org>
64170
64171         * modules/lock-tests: New file.
64172         * tests/test-lock.c: New file, from GNU gettext.
64173
64174 2005-08-24  Bruno Haible  <bruno@clisp.org>
64175
64176         * lib/lock.h: Add multiple inclusion guard.
64177         * lib/tls.h: Add multiple inclusion guard.
64178
64179 2005-08-24  Bruno Haible  <bruno@clisp.org>
64180
64181         * gnulib-tool: Add support for the --aux-dir option to
64182         --create-testdir, --create-megatestdir, --test, --megatest.
64183         (func_create_testdir, func_create_megatestdir): Optionally emit a
64184         AC_CONFIG_AUX_DIR directive.
64185         (create-testdir, create-megatestdir, test, megatest): Provide a
64186         default value for $auxdir.
64187
64188 2005-08-24  Bruno Haible  <bruno@clisp.org>
64189
64190         * gnulib-tool (import): Use compound statement instead of subshell
64191         where possible.
64192
64193 2005-08-24  Bruno Haible  <bruno@clisp.org>
64194
64195         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64196
64197 2005-08-24  Bruno Haible  <bruno@clisp.org>
64198
64199         * gnulib-tool (func_version): Update.
64200
64201 2005-08-24  Bruno Haible  <bruno@clisp.org>
64202
64203         * gnulib-tool (func_import, func_create_testdir,
64204         func_create_megatestdir): Quote all autoconf macro arguments.
64205
64206 2005-08-24  Bruno Haible  <bruno@clisp.org>
64207
64208         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64209         option --force, because --force causes the aclocal.m4 of each
64210         subdirectory to be newer than the corresponding config.h.in.
64211
64212 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64215         All contents moved to gl_REGEX.
64216         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64217         assume that it does.
64218
64219 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         * lib/regex.h (REG_NOSYS)
64222         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64223         Define, since POSIX requires it as of 2001.
64224         (_REG_ENOSYS)
64225         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64226         New private symbol, used to keep the enum signed in all cases.
64227         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64228         Youngman in
64229         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64230
64231         * lib/regex_internal.c (re_string_skip_chars, register_state):
64232         (calc_state_hash):
64233         Remove forward decls; no longer needed now that we use prototypes.
64234         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64235         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64236         (clean_state_log_if_needed): Likewise.
64237
64238 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * config/srclist.txt: Add glibc bugs 1231-1233.
64241
64242 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         Fix problems reported by Sam Steingold in
64245         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64246         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64247         assumed that reg_errcode_t is a signed type, which is not
64248         necessarily true if _XOPEN_SOURCE is not defined.
64249         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64250         since some compilers warn about it otherwise.
64251
64252 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64255         (init_word_char, create_initial_state, duplicate_node_closure):
64256         (fetch_token, peek_token_bracket, build_range_exp):
64257         (build_collating_symbol): Remove forward decls; no longer needed
64258         now that we use prototypes.
64259
64260         * lib/regcomp.c:
64261         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64262         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64263         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64264         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64265         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64266         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64267         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64268         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64269         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64270         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64271         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64272         (build_charclass, build_charclass_op, fetch_number, create_tree):
64273         (create_token_tree, mark_opt_subexp, duplicate_tree):
64274         Use prototypes rather than old-style definitions.
64275
64276         * lib/regex_internal.c:
64277         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64278         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64279         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64280         (re_string_reconstruct, re_string_peek_byte_case):
64281         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64282         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64283         (re_node_set_init_copy, re_node_set_add_intersect):
64284         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64285         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64286         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64287         (re_acquire_state, re_acquire_state_context, register_state):
64288         (create_ci_newstate, create_cd_newstate, free_state):
64289         Likewise.
64290         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64291         re_search_2):
64292         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64293         (re_search_internal, prune_impossible_nodes):
64294         (acquire_init_state_context, check_matching, static):
64295         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64296         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64297         (update_regs, sift_states_backward, build_sifted_states):
64298         (clean_state_log_if_needed, merge_state_array):
64299         (update_cur_sifted_state, add_epsilon_src_nodes):
64300         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64301         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64302         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64303         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64304         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64305         (check_arrival, check_arrival_add_next_nodes):
64306         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64307         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64308         (check_node_accept_bytes, check_node_accept, extend_buffers):
64309         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64310         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64311         (sift_ctx_init):
64312         Likewise.
64313
64314         * lib/regex_internal.h:
64315         (re_string_allocate, re_string_construct, re_string_reconstruct):
64316         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64317         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64318         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64319         (re_string_context_at, re_string_peek_byte_case):
64320         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64321         is defined, since we now use prototypes always.
64322
64323         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64324         C89 or better.  All uses removed.
64325
64326 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64327
64328         * config/srclist.txt: Add glibc bugs 1220-1227.
64329
64330 2005-08-20  Jim Meyering  <jim@meyering.net>
64331
64332         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64333         of unused local, dfa.
64334
64335 2005-08-20  Bruno Haible  <bruno@clisp.org>
64336
64337         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64338
64339 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64342         (re_node_set_insert_last, re_dfa_add_node):
64343         Rename local variables to avoid GCC shadowing warnings.
64344
64345 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64346
64347         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64348         [defined lint]: Suppress bogus uninitialized-variable warnings.
64349
64350         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64351         and let the caller return REG_ESPACE if out of space.  This
64352         removes an uninitialied-variable warning with GCC 4.0.1, and also
64353         avoids taking the address of a local variable.  All callers
64354         changed.
64355
64356 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64359         $LIBCSRC/posix/regexec.c.
64360         Add glibc bug 1217 for regcomp.c.
64361
64362 2005-08-19  Jim Meyering  <jim@meyering.net>
64363
64364         * lib/regexec.c (proceed_next_node): Redo local variables to
64365         avoid GCC shadowing warnings.
64366
64367 2005-08-18  Bruno Haible  <bruno@clisp.org>
64368
64369         * lib/strstr.c (strstr): Fix return value in multibyte case.
64370         * lib/strcasestr.c (strcasestr): Likewise.
64371
64372 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64375
64376 2005-08-17  Jim Meyering  <jim@meyering.net>
64377
64378         Make the %s format (seconds since the epoch) work for a negative
64379         number and when used with a zero-padded field width, e.g. %015s.
64380
64381         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64382         label so that it precedes the code to set `digits'.  Otherwise,
64383         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64384         print `00-22'.  Now, it prints `-0022', as it should.
64385
64386 2005-08-17  Bruno Haible  <bruno@clisp.org>
64387
64388         * modules/strstr (Files): Add m4/mbrtowc.m4.
64389         (Depends-on): Add mbuiter.
64390
64391 2005-08-17  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/strcasestr: New file.
64394         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64395         strcasestr.
64396
64397 2005-08-17  Bruno Haible  <bruno@clisp.org>
64398
64399         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64400
64401 2005-08-17  Bruno Haible  <bruno@clisp.org>
64402
64403         * modules/mbuiter: New file.
64404         * MODULES.html.sh (Extended multibyte and wide character utilities):
64405         Add mbuiter.
64406
64407 2005-08-17  Bruno Haible  <bruno@clisp.org>
64408
64409         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64410         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64411
64412 2005-08-17  Bruno Haible  <bruno@clisp.org>
64413
64414         * m4/strcasestr.m4: New file.
64415
64416 2005-08-17  Bruno Haible  <bruno@clisp.org>
64417
64418         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64419         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64420
64421 2005-08-17  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/strcasestr.h: New file.
64424         * lib/strcasestr.c: New file.
64425
64426 2005-08-17  Bruno Haible  <bruno@clisp.org>
64427
64428         * lib/strcasecmp.c: Use mbuiter.h.
64429
64430 2005-08-17  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/mbuiter.h: New file.
64433
64434 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64437         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64438         and gl_GETOPT are both invoked via different paths (as happens
64439         with GNU tar CVS because it uses both argp and getopt), the former
64440         wins.
64441
64442 2005-08-16  Bruno Haible  <bruno@clisp.org>
64443
64444         * modules/tls: New file.
64445         * MODULES.html.sh (Multithreading): Add tls.
64446
64447 2005-08-16  Bruno Haible  <bruno@clisp.org>
64448
64449         * modules/strnlen1: New file.
64450         * MODULES.html.sh (String handling): Add strnlen1.
64451
64452 2005-08-16  Bruno Haible  <bruno@clisp.org>
64453
64454         * modules/strcase (Files): Add m4/mbrtowc.m4.
64455         (Depends-on): Add strnlen1, mbchar.
64456
64457 2005-08-16  Bruno Haible  <bruno@clisp.org>
64458
64459         * modules/mbiter: New file.
64460         * MODULES.html.sh (Extended multibyte and wide character utilities):
64461         Add mbiter.
64462
64463 2005-08-16  Bruno Haible  <bruno@clisp.org>
64464
64465         * modules/mbfile: New file.
64466         * MODULES.html.sh (Extended multibyte and wide character utilities):
64467         Add mbfile.
64468
64469 2005-08-16  Bruno Haible  <bruno@clisp.org>
64470
64471         * modules/mbchar: New file.
64472         * MODULES.html.sh (Extended multibyte and wide character utilities):
64473         New section.
64474
64475 2005-08-16  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/tls.m4: New file, from GNU gettext.
64478
64479 2005-08-16  Bruno Haible  <bruno@clisp.org>
64480
64481         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64482         always.
64483         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64484
64485 2005-08-16  Bruno Haible  <bruno@clisp.org>
64486
64487         * m4/mbiter.m4: New file.
64488
64489 2005-08-16  Bruno Haible  <bruno@clisp.org>
64490
64491         * m4/mbfile.m4: New file.
64492
64493 2005-08-16  Bruno Haible  <bruno@clisp.org>
64494
64495         * m4/mbchar.m4: New file.
64496
64497 2005-08-16  Bruno Haible  <bruno@clisp.org>
64498
64499         * lib/tls.h: New file, from GNU gettext.
64500         * lib/tls.c: New file, from GNU gettext.
64501
64502 2005-08-16  Bruno Haible  <bruno@clisp.org>
64503
64504         * lib/strnlen1.h: New file.
64505         * lib/strnlen1.c: New file.
64506
64507 2005-08-16  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64510         (mbi_init): Update.
64511         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64512         NUL byte, not after it.
64513
64514 2005-08-16  Bruno Haible  <bruno@clisp.org>
64515
64516         * lib/strcase.h (strcasecmp): Add note in comments.
64517         * lib/strncasecmp.c: Use code from strcasecmp.c.
64518         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64519         (strcasecmp): Work correctly in multibyte locales.
64520
64521 2005-08-16  Bruno Haible  <bruno@clisp.org>
64522
64523         * lib/mbiter.h: New file.
64524
64525 2005-08-16  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/mbfile.h: New file.
64528
64529 2005-08-16  Bruno Haible  <bruno@clisp.org>
64530
64531         * lib/mbchar.h: New file.
64532         * lib/mbchar.c: New file.
64533
64534 2005-08-16  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64537         the valid ones. Makes the comparison operations transitive:
64538         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64539         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64540
64541 2005-08-15  Simon Josefsson  <jas@extundo.com>
64542
64543         * modules/ssize_t (License): Change to 'unlimited'.
64544
64545         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64546
64547 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64548
64549         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64550         Add comments for each pending glibc patch.
64551
64552 2005-08-15  Bruno Haible  <bruno@clisp.org>
64553
64554         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64555         __cplusplus is defined.
64556
64557 2005-08-14  Jim Meyering  <jim@meyering.net>
64558
64559         Sync from coreutils.
64560
64561         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64562         Use the hash-table-based cycle-detection code not just when
64563         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64564         Reported by James Youngman in
64565         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64566         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64567         FTS_TIGHT_CYCLE_CHECK.
64568         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64569         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64570         once again.
64571         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64572         * lib/fts.c (fd_safer): Remove decl.
64573         Include fcntl--.h rather than unistd-safer.h
64574         (fts_safe_changedir): Don't call fd_safer; no longer needed
64575         now that we include fcntl--.h.
64576
64577 2005-08-12  Simon Josefsson  <jas@extundo.com>
64578
64579         * modules/getndelim2: Use ssize_t module.
64580         * modules/getnline: Likewise.
64581         * modules/safe-read: Likewise.
64582         * modules/xreadlink: Likewise.
64583
64584         * modules/ssize_t: New file.
64585
64586 2005-08-12  Simon Josefsson  <jas@extundo.com>
64587
64588         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64589
64590 2005-08-12  Simon Josefsson  <jas@extundo.com>
64591
64592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64593         ssize_t.
64594
64595 2005-08-12  Simon Josefsson  <jas@extundo.com>
64596
64597         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64598         readline, getdelim and check_version.
64599         (Support for systems lacking ISO C 99: Sizes of integer types):
64600         Add size_max.
64601
64602 2005-08-12  Bruno Haible  <bruno@clisp.org>
64603
64604         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64605
64606 2005-08-11  Simon Josefsson  <jas@extundo.com>
64607
64608         * modules/readline: New file.
64609
64610         * modules/strnlen (Files): Add strnlen.h.
64611
64612 2005-08-11  Simon Josefsson  <jas@extundo.com>
64613
64614         * m4/readline.m4: New file.
64615
64616 2005-08-11  Simon Josefsson  <jas@extundo.com>
64617
64618         * lib/readline.h, readline.c: New file.
64619
64620 2005-08-11  Simon Josefsson  <jas@extundo.com>
64621
64622         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64623         gl_AVOID.
64624
64625 2005-08-11  Bruno Haible  <bruno@clisp.org>
64626
64627         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64628
64629 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64630
64631         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64632
64633 2005-08-10  Simon Josefsson  <jas@extundo.com>
64634
64635         * tests/test-iconvme.c: New file.
64636
64637 2005-08-10  Simon Josefsson  <jas@extundo.com>
64638
64639         * m4/strnlen.m4: New file.
64640
64641         * m4/strndup.m4: Don't check for strnlen declaration, done in
64642         strnlen.m4.
64643
64644 2005-08-10  Simon Josefsson  <jas@extundo.com>
64645
64646         * lib/strndup.c: Use strnlen.h.
64647
64648         * lib/strnlen.h: New file.
64649
64650 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64651
64652         * README: Typos.
64653
64654 2005-08-02  Simon Josefsson  <jas@extundo.com>
64655
64656         * modules/readline: New file.
64657
64658 2005-08-02  Simon Josefsson  <jas@extundo.com>
64659
64660         * modules/getdelim: New file.
64661
64662         * modules/getline: Rewrite, don't use getndelim2.
64663
64664 2005-08-02  Simon Josefsson  <jas@extundo.com>
64665
64666         * m4/getline.m4: Separate out getdelim stuff into separate module.
64667
64668         * m4/getdelim.m4: New file.
64669
64670 2005-08-02  Simon Josefsson  <jas@extundo.com>
64671
64672         * lib/getline.h, getline.c: Rewrite.
64673
64674         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64675
64676 2005-07-31  Bruno Haible  <bruno@clisp.org>
64677
64678         * lib/lock.h (gl_lock_initializer): New macro.
64679         (gl_lock_define_initialized): Use it.
64680         (gl_rwlock_initializer): New macro.
64681         (gl_rwlock_define_initialized): Use it.
64682         (gl_recursive_lock_initializer): New macro.
64683         (gl_recursive_lock_define_initialized): Use it.
64684
64685 2005-07-30  Karl Berry  <karl@gnu.org>
64686
64687         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64688         Report from Ben Pfaff, regarding getopt.
64689
64690 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64693         normal way.
64694         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64695         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64696         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64697         (gl_GETOPT): Use the new macros.  Most of the implementation
64698         is moved to the new macros.  This is for programs like Emacs
64699         that don't want all the functionality of gl_GETOPT.
64700
64701 2005-07-26  Bruno Haible  <bruno@clisp.org>
64702
64703         * m4/lock.m4: Update from GNU gettext.
64704
64705 2005-07-26  Bruno Haible  <bruno@clisp.org>
64706
64707         * lib/lock.h: Update from GNU gettext.
64708         * lib/lock.c: Update from GNU gettext.
64709
64710 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64713         obsolescent AC_TRY_RUN.  Include the default includes files, for
64714         'exit'.
64715
64716 2005-07-24  Bruno Haible  <bruno@clisp.org>
64717
64718         * modules/visibility: New file.
64719         * MODULES.html.sh (Misc): Add visibility.
64720
64721 2005-07-24  Bruno Haible  <bruno@clisp.org>
64722
64723         * m4/visibility.m4: New file.
64724
64725 2005-07-24  Bruno Haible  <bruno@clisp.org>
64726
64727         * doc/visibility.texi: New file.
64728
64729 2005-07-22  Bruno Haible  <bruno@clisp.org>
64730
64731         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64732         $(ALLOCA_H), redundant through BUILT_SOURCES.
64733         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64734         redundant through BUILT_SOURCES.
64735         * modules/byteswap (Makefile.am): Remove explicit dependency on
64736         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64737         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64738         $(FNMATCH_H), redundant through BUILT_SOURCES.
64739         * modules/getopt (Makefile.am): Remove explicit dependency on
64740         $(GETOPT_H), redundant through BUILT_SOURCES.
64741         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64742         redundant through BUILT_SOURCES.
64743         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64744         redundant through BUILT_SOURCES.
64745         * modules/stdbool (Makefile.am): Remove explicit dependency on
64746         $(STDBOOL_H), redundant through BUILT_SOURCES.
64747         * modules/stdint (Makefile.am): Remove explicit dependency on
64748         $(STDINT_H), redundant through BUILT_SOURCES.
64749         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64750         Remove explicit dependency on $(SYSEXITS_H).
64751         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64752
64753 2005-07-18  Simon Josefsson  <jas@extundo.com>
64754
64755         * lib/check-version.c (check_version): Accept identical versions too.
64756
64757 2005-07-18  Bruno Haible  <bruno@clisp.org>
64758
64759         * modules/lock: New file.
64760         * MODULES.html.sh (Multithreading): New section.
64761
64762 2005-07-18  Bruno Haible  <bruno@clisp.org>
64763
64764         * m4/lock.m4: New file, from GNU gettext.
64765
64766 2005-07-18  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/lock.h: New file, from GNU gettext.
64769         * lib/lock.c: New file, from GNU gettext.
64770
64771 2005-07-18  Bruno Haible  <bruno@clisp.org>
64772
64773         * lib/lock.h (gl_once_t): New type.
64774         (gl_once_define, gl_once): New macros.
64775         * lib/lock.c (fresh_once): New variable.
64776         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64777         functions.
64778
64779 2005-07-16  Simon Josefsson  <jas@extundo.com>
64780
64781         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64782         workaround, suggested by Bruno.
64783
64784 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * modules/xalloc (Depends-on): Add xalloc-die.
64787         * modules/xvasprintf (Depends-on): Add xalloc-die.
64788
64789 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64790
64791         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64792         with a minor change.
64793
64794 2005-07-15  Bruno Haible  <bruno@clisp.org>
64795
64796         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64797         When using lib/poll.c, define poll as rpl_poll.
64798
64799 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * modules/argp (Depends-on): Remove unlocked-io.
64802
64803 2005-07-14  Derek Price  <derek@ximbiot.com>
64804
64805         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64806         for glob symlink bug.
64807
64808 2005-07-14  Bruno Haible  <bruno@clisp.org>
64809
64810         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64811         Instead, test for *_unlocked function declarations directly.
64812
64813 2005-07-11  Simon Josefsson  <jas@extundo.com>
64814
64815         * modules/size_max: New file.
64816
64817         * modules/xsize: Depend on size_max module for size_max.m4.
64818
64819 2005-07-11  Simon Josefsson  <jas@extundo.com>
64820
64821         * lib/size_max.h: New file.
64822
64823 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64826         copyright symbol and the year.
64827         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64828         (version_etc_va): Use parameterized copyright notice.
64829         Reword to conform to the current GNU coding standards.
64830
64831 2005-07-11  Karl Berry  <karl@gnu.org>
64832
64833         * doc/gnulib.texi (Quoting): new node.
64834         (Initial import): more info, from Patrice.
64835
64836 2005-07-11  Bruno Haible  <bruno@clisp.org>
64837
64838         * gnulib-tool (func_usage): Document option --avoid.
64839         (Command line options): Handle --avoid.
64840         (func_acceptable): New function.
64841         (func_modules_transitive_closure): Use it.
64842
64843 2005-07-11  Bruno Haible  <bruno@clisp.org>
64844
64845         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64846         Reported by Jim Meyering.
64847
64848 2005-07-10  Bruno Haible  <bruno@clisp.org>
64849
64850         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64851         Needed when size_t is smaller than 'unsigned int'.
64852         Reported by Paul Eggert.
64853
64854 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64855
64856         * modules/argp (Depends-on): Add unlocked-io
64857
64858 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64859
64860         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64861         block of defines.
64862
64863 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64866         fix now.
64867
64868 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64869         and Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64872         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64873
64874 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64875
64876         * modules/regex (Files): Add lib/regex_internal.c,
64877         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64878         (Depends-on): Add extensions.
64879         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64880
64881 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64882
64883         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64884         pathconf.
64885         * m4/same.m4 (gl_SAME): Likewise.
64886         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64887
64888         * m4/regex.m4: Adjust to new libc regex implementation.
64889         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64890         all the .c and .h parts of (the new) regex.
64891         Quote the m4 stuff better.
64892         Check for RE_ICASE bug of old gnulib.
64893         Check for REG_STARTEND of recent libc.
64894         Rename local variables from jm_* to gl_*.
64895         Quote operand of "test -f".
64896         Say "recent enough" version of libc, not "version 2".
64897         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64898         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64899         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64900         Remove check for btowc, isascii.
64901         Require AM_LANGINFO_CODESET.
64902
64903 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         * lib/regex.c, regex.h: Sync from libc.
64906         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64907         * lib/regexec.c:
64908         New files, synced from libc, except that regex_internal.h
64909         currently has a small porting fix.
64910
64911 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64912
64913         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64914         regex_internal.c, regexec.c.
64915         Add regex_internal.h too, but as a comment, since the libc version
64916         is currently broken in gnulib mode.
64917
64918 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64919
64920         Support programs like Emacs that use gnulib but not gettext.
64921         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64922         * modules/gettext-h: New file.
64923         * modules/gettext (Files): Remove lib/gettext.h.
64924         (Depends-on): Add gettext-h.
64925         (Makefile.am): Remove lib_SOURCES.
64926         * modules/argmatch, modules/c-stack, modules/closeout:
64927         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64928         * modules/execute, modules/file-type, modules/getaddrinfo:
64929         * modules/getopt, modules/human, modules/javacomp:
64930         * modules/javaexec, modules/mkdir-p, modules/obstack:
64931         * modules/openat, modules/pagealign_alloc, modules/pipe:
64932         * modules/quotearg, modules/regex, modules/rpmatch:
64933         * modules/unicodeio, modules/userspec, modules/version-etc:
64934         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64935         * modules/xsetenv:
64936         Depend on gettext-h, not gettext.
64937
64938 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * gnulib-tool (func_import): Add support for 'public domain' license.
64941         * modules/alloca, modules/atexit, modules/memmove:
64942         Now public domain, not GPL.
64943         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64944         * modules/realloc, modules/strerror, modules/strtod:
64945         Now LGPL, not GPL.
64946
64947 2005-07-05  Bruno Haible  <bruno@clisp.org>
64948
64949         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64950         autoconf CVS. Needed for mingw.
64951
64952 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         Remove the dependency of the strftime module on the tzset module.
64955         * modules/strftime (Depends-on): Remove dependency on tzset.
64956
64957 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64958
64959         Remove the dependency of the strftime module on the tzset module.
64960         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64961         gl_FUNC_TZSET_CLOBBER.
64962
64963 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         Remove the dependency of the strftime module on the tzset module.
64966         * lib/strftime.c (my_strftime)
64967         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64968         Copy the input structure, to work around some of the bug with
64969         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64970         Solaris releases, you should also use the tzset module, but we won't
64971         require it as a dependency any more since we don't want LGPLed code
64972         to depend on GPLed code.
64973
64974 2005-07-02  Jim Meyering  <jim@meyering.net>
64975
64976         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64977         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64978         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64979         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64980
64981 2005-07-02  Jim Meyering  <jim@meyering.net>
64982
64983         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64984
64985 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64986
64987         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64988         declares only 'struct timespec;' (!).
64989
64990 2005-07-01  Jim Meyering  <jim@meyering.net>
64991
64992         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64993         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64994         * lib/save-cwd.c, tempname.c:
64995         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64996         and don't include <sys/file.h>).
64997
64998 2005-06-29  Jim Meyering  <jim@meyering.net>
64999
65000         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65001         type name.  Use the variable name instead.
65002         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65003         Likewise.
65004
65005 2005-06-28  Simon Josefsson  <jas@extundo.com>
65006
65007         * modules/check-version (Files): Add check-version.m4.
65008
65009 2005-06-28  Simon Josefsson  <jas@extundo.com>
65010
65011         * m4/check-version.m4: New file, suggested by Jim Meyering
65012         <jim@meyering.net>.
65013
65014 2005-06-28  Simon Josefsson  <jas@extundo.com>
65015
65016         * lib/check-version.h, lib/check-version.c: New files.
65017
65018 2005-06-28  Simon Josefsson  <jas@extundo.com>
65019
65020         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65021         collision with global variable.  Better indentation.  Don't
65022         increment buffer pointer beyond buffer end.  Based on comments
65023         from Paul Eggert <eggert@cs.ucla.edu>.
65024
65025         * lib/base64.h: Indent.
65026
65027 2005-06-28  Simon Josefsson  <jas@extundo.com>
65028
65029         * doc/gnulib.texi (Library version handling): New section.
65030
65031 2005-06-28  Jim Meyering  <jim@meyering.net>
65032
65033         * check-module (find_included_lib_files): Hard-code another
65034         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65035         but modules/fts-lgpl (correctly) does not list those files.
65036
65037         * modules/canonicalize (Files): Add lib/pathmax.h.
65038
65039 2005-06-25  Simon Josefsson  <jas@extundo.com>
65040
65041         * modules/check-version: New file.
65042
65043 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65044
65045         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65046         initializer of struct addrinfo, as an indication that we don't
65047         care how many members the structure has.
65048
65049 2005-06-24  Derek Price  <derek@ximbiot.com>
65050         and Bruno Haible  <bruno@clisp.org>
65051
65052         Remove stat module & update lstat.
65053         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65054         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65055         * m4/stat.m4: Remove this file.
65056
65057 2005-06-24  Derek Price  <derek@ximbiot.com>
65058         and Bruno Haible  <bruno@clisp.org>
65059
65060         Remove stat module & update lstat.
65061         * lib/stat.c: Remove this file...
65062         (slash_aware_lstat): ...moving this content and its support...
65063         * lib/lstat.c (rpl_lstat): ...into here.
65064         * lib/lstat.h: New file.
65065
65066 2005-06-24  Derek Price  <derek@ximbiot.com>
65067         and Bruno Haible  <bruno@clisp.org>
65068
65069         Remove stat module & update lstat.
65070         * config/srclist.txt (libc sources): Remove stat.
65071
65072 2005-06-24  Derek Price  <derek@ximbiot.com>
65073         and Bruno Haible  <bruno@clisp.org>
65074
65075         Remove stat module & update lstat.
65076         * MODULES.html.sh (stat): Remove.
65077         * MODULES.html: Regenerated.
65078         * modules/lstat (Description): Correct function name.
65079         (Files): Add "lstat.h".
65080         (Depends-on): Remove stat, add xalloc, stat-macros.
65081         * modules/stat: Remove this file.
65082         (Include): Add "lstat.h", remove <sys/stat.h>.
65083
65084 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65087         (ranged_convert): Don't save conversion in a temporary struct.
65088         This causes a warning with GCC 4.0.0, and anyway in the typical
65089         case it's not worth the extra 100 bytes or so of code.
65090         (ranged_convert, __mktime_internal): When calling a function via a
65091         pointer P, use P () rather than (*P) (), as we now assume C89 or
65092         better.
65093
65094 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65095
65096         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65097         "who -r" failed to give output.  Problem reported by Tim Waugh.
65098
65099         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65100         (xcalloc): Use it to avoid needless tests.
65101         Problem reported by Jim Meyering.
65102
65103 2005-06-20  Derek Price  <derek@ximbiot.com>
65104
65105         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65106         unnecessary for Autoconfs > 2.59c.
65107
65108 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65109
65110         * lib/argp.h (__option_is_short): Check upper limit of
65111         __key. Isprint() requires its argument to have the value
65112         of an unsigned char or EOF.
65113
65114 2005-06-16  Jim Meyering  <jim@meyering.net>
65115
65116         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65117         when either N or S is zero.
65118
65119 2005-06-16  Derek Price  <derek@ximbiot.com>
65120
65121         * m4/bison.m4: Declare YACC & YFLAGS precious.
65122
65123 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65126         multibyte string or pattern, fall back on unibyte matching.
65127         Problem reported by James Youngman.
65128
65129 2005-06-08  Bruno Haible  <bruno@clisp.org>
65130
65131         * modules/csharpcomp: New file.
65132         * MODULES.html.sh (C#): Add csharpcomp.
65133
65134 2005-06-08  Bruno Haible  <bruno@clisp.org>
65135
65136         * m4/csharpcomp.m4: New file, from GNU gettext.
65137
65138 2005-06-08  Bruno Haible  <bruno@clisp.org>
65139
65140         * lib/csharpcomp.h: New file, from GNU gettext.
65141         * lib/csharpcomp.c: New file, from GNU gettext.
65142         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65143
65144 2005-06-08  Bruno Haible  <bruno@clisp.org>
65145
65146         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65147         warning on mingw.
65148
65149 2005-06-07  Derek Price  <derek@ximbiot.com>
65150
65151         Sync from CVS.
65152         * lib/glob_.h: Indent nested #ifdef.
65153
65154 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65155
65156         Sync from coreutils.
65157         Use "file name" when talking about file names, instead of "filename"
65158         or "path", as per the GNU coding standards.
65159         * lib/mkdir-p.c: Renamed from makepath.c.
65160         (make_dir_parents): Renamed from make_path.  All callers changed.
65161         * lib/mkdir-p.h: Likewise.  All includers changed.
65162         * lib/filenamecat.c: Renamed from path-concat.c.
65163         (file_name_concat): Renamed from path_concat.  All callers changed.
65164         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65165         * lib/filenamecat.h: Likewise.  All includers changed.
65166         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65167         in comments or local variable names.
65168         * lib/basename.c: Likewise.
65169         * lib/canonicalize.c, canonicalize.h: Likewise.
65170         * lib/dirname.c, dirname.h: Likewise.
65171         * lib/euidaccess.c: Likewise.
65172         * lib/exclude.c: Likewise
65173         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65174         * lib/fsusage.c, fsuage.h: Likewise.
65175         * lib/fts.c, fts_.h: Likewise.
65176         * lib/getcwd.c: Likewise.
65177         * lib/getloadavg.c: Likewise.
65178         * lib/mkstemp.c: Likewise.
65179         * lib/mountlist.c, mountlist.h: Likewise.
65180         * lib/openat.c, openat.h: Likewise.
65181         * lib/readlink-stub.c: Likewise.
65182         * lib/readutmp.c, readutmp.h: Likewise.
65183         * lib/rename.c: Likewise.
65184         * lib/rmdir.c: Likewise.
65185         * lib/same.c: Likewise.
65186         * lib/savedir.c: Likewise.
65187         * lib/stripslash.c: Likewise.
65188         * lib/tempname.c: Likewise.
65189         * lib/xreadlink.c: Likewise.
65190         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65191         All uses changed.
65192         * lib/exclude.h: Likewise.
65193
65194         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65195         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65196         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65197         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65198         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65199         files have been getting away with it for years (MORE/BSD 4.3
65200         is extinct now).
65201         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65202         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65203
65204         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65205         Define to 256, not 255, as per modern POSIX.
65206
65207 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65208
65209         Sync from coreutils.
65210         Use "file name" when talking about file names, instead of "filename"
65211         or "path", as per the GNU coding standards.
65212         * MODULES.html.sh: mkdir-p renamed from makepath.
65213         filenamecat renamed from path-concat.
65214         * modules/filenamecat: Renamed from modules/path-concat.
65215         (Files): filenamecat.h and filenamecat.c renamed from
65216         path-concat.h and path-concat.c.
65217         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65218         (Include): filenamecat.h, not path-concat.h.
65219         * modules/mkdir-p: Renamed from modules/makepath.
65220         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65221         makepath.c.
65222         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65223         (Include): mkdir-p.h, not makepath.h.
65224
65225 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65226
65227         Sync from coreutils.
65228         * m4/mkdir-p.m4: Renamed from makepath.m4.
65229         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65230         Rename files from makepath.c to mkdir-p.c, and from
65231         makepath.h to mkdir-p.h.
65232         * m4/filenamecat.m4: Renamed from path-concat.m4.
65233         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65234         Rename files from path-concat.c to filenamecat.c,
65235         and from path-concat.h to filenamecat.h.
65236         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65237         "file name" in local variables or comments.
65238         * m4/rename.m4: Likewise.
65239
65240 2005-06-01  Bruno Haible  <bruno@clisp.org>
65241
65242         * modules/csharpexec: New file.
65243         * MODULES.html.sh (C#): New section.
65244
65245 2005-06-01  Bruno Haible  <bruno@clisp.org>
65246
65247         * m4/csharp.m4: New file, from GNU gettext.
65248         * m4/csharpexec.m4: New file, from GNU gettext.
65249
65250 2005-06-01  Bruno Haible  <bruno@clisp.org>
65251
65252         * lib/csharpexec.h: New file, from GNU gettext.
65253         * lib/csharpexec.c: New file, from GNU gettext.
65254         * lib/csharpexec.sh.in: New file, from GNU gettext.
65255
65256 2005-05-31  Derek Price  <derek@ximbiot.com>
65257             Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         Sync from cvs.
65260         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65261
65262 2005-05-31  Derek Price  <derek@ximbiot.com>
65263             Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         Sync from cvs.
65266         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65267
65268 2005-05-29  Derek Price  <derek@ximbiot.com>
65269
65270         * config/srclist.txt (glob_.h, glob.c): Add these files.
65271
65272 2005-05-29  Derek Price  <derek@ximbiot.com>
65273
65274         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65275         * modules/glob: New file.
65276         * modules/getlogin_r: Add link to POSIX spec in description.
65277
65278 2005-05-29  Derek Price  <derek@ximbiot.com>
65279             Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * m4/glob.m4: New file.
65282
65283 2005-05-29  Derek Price  <derek@ximbiot.com>
65284             Paul Eggert  <eggert@cs.ucla.edu>
65285
65286         * lib/glob_.h, lib/glob.c: New files.
65287
65288 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65289
65290         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65291         * modules/fts-lgpl (Depends-on): Remove gettext.
65292
65293 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65294
65295         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65296         and don't require gt_INTTYPES_PRI.
65297
65298 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65301
65302         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65303         the configuration hassle isn't worth it.
65304         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65305         (LONGEST_MODIFIER, PRIuMAX): Remove.
65306
65307 2005-05-27  Bruno Haible  <bruno@clisp.org>
65308
65309         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65310
65311 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65314         _POSIX_PTHREAD_SEMANTICS for Solaris.
65315
65316 2005-05-25  Derek Price  <derek@ximbiot.com>
65317
65318         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65319
65320 2005-05-25  Derek Price  <derek@ximbiot.com>
65321             Paul Eggert  <eggert@cs.ucla.edu>
65322
65323         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65324         * lib/getlogin_r.c, getlogin_r.h: New files.
65325
65326 2005-05-25  Bruno Haible  <bruno@clisp.org>
65327             Derek Price  <derek@ximbiot.com>
65328
65329         * lib/getlogin_r.h: Simplify API documentation.
65330
65331 2005-05-23  Derek Price  <derek@ximbiot.com>
65332
65333         * modules/minmax (Files): Add m4/minmax.m4.
65334         (configure.ac): Add gl_MINMAX.
65335
65336 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65337
65338         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65339         so that unistd-safer.h (GPL'ed code) need not be included.
65340
65341 2005-05-22  Bruno Haible  <bruno@clisp.org>
65342
65343         * m4/minmax.m4: New file.
65344         Based on a patch by Derek Price <derek@ximbiot.com>.
65345
65346 2005-05-22  Bruno Haible  <bruno@clisp.org>
65347
65348         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65349         (INT64_MIN): Fix definition.
65350         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65351
65352         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65353         NEED_SIGNED_INT_TYPES.
65354
65355         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65356         HAVE_SYSTEM_INTTYPES.
65357
65358 2005-05-22  Bruno Haible  <bruno@clisp.org>
65359
65360         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65361         Also include <sys/param.h> if it defines MIN, MAX.
65362         Based on a patch by Derek Price <derek@ximbiot.com>.
65363
65364 2005-05-21  Jim Meyering  <jim@meyering.net>
65365
65366         * modules/fts (Files): Add m4/inttypes-pri.m4.
65367         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65368
65369 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65370
65371         New fts module.
65372         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65373         (setup_dir, free_dir): New functions.
65374         (enter_dir, leave_dir): Define trivial
65375         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65376         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65377         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65378         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65379         Move to fts-cycle.c.
65380         (fts_open): Use setup_dir.
65381         (fts_close): Use free_dir.
65382         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65383         This adds a label and some gotos, but the alternatives were messier.
65384         Check for memory allocation failure when entering a dir.
65385         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65386         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65387         (FTS): New member fts_cycle, that is a union that contains the
65388         old active_dir_ht and cycle_state.  All uses changed to mention
65389         fts_cycle.ht and fts_cycle.state.
65390         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65391         fts.c, with the following changes:
65392         (setup_dir, free_dir): New functions.
65393         (enter_dir): Now returns bool.  Return true if successful, false
65394         if memory exhausted.  All callers changed.
65395         Do not bother partly cleaning up on
65396         memory allocation failure; that is free_dir's job.
65397         However, free ad if hash_insert fails, to avoid memory leak.
65398         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65399         fts->fts_options to see which union member to use.
65400
65401 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65404         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65405
65406 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65409
65410 2005-05-20  Jim Meyering  <jim@meyering.net>
65411
65412         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65413         Now a macro, to pacify GCC.
65414
65415 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65416
65417         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65418         of -1.
65419
65420 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65421
65422         * lib/chown.c (rpl_chown): Return -1 on failure.
65423
65424 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65427         Don't check for stddef.h.
65428         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65429         don't use its results.
65430         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65431         since we include them unconditionally.  Don't require
65432         AM_STDBOOL_H, since stdbool is a prerequisite.
65433         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65434         since we assume C89 or better.
65435         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65436         as we don't use their results.
65437         Don't check for fchdir, memmove, memset, strrchr, as we use
65438         them unconditionally.
65439         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65440         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65441
65442 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65443
65444         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65445         Include <stddef.h> unconditionally, since we assume C89 now.
65446         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65447         * lib/fts.c: Include fts_.h first, to check interface.
65448         Do not include intprops.h; no longer needed.
65449         Include cycle-check.h and hash.h, since fts_.h no longer does.
65450         Remove unnecessary casts of closedir to void.
65451         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65452         decide whether to decrement nlinks.
65453         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65454         (FTS): Use struct hash_table * instead of Hash_table, so that
65455         we no longer need to include hash.h here.
65456
65457 2005-05-18  Jim Meyering  <jim@meyering.net>
65458
65459         * modules/dirfd (License): Change to LGPL.  Most of the code
65460         is already in the public domain.
65461
65462 2005-05-18  Jim Meyering  <jim@meyering.net>
65463
65464         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65465         Reported by Yoann Vandoorselaere.
65466
65467 2005-05-17  Jim Meyering  <jim@meyering.net>
65468
65469         * m4/fts.m4: New file, from coreutils.
65470
65471 2005-05-17  Jim Meyering  <jim@meyering.net>
65472
65473         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65474
65475 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         Sync from coreutils.
65478         * m4/unlinkdir.m4: New file.
65479
65480 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65481
65482         Sync from coreutils.
65483         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65484         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65485         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65486         White space changes only.
65487         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65488         special.
65489         * lib/yesno.c: Include getline.h, not ctype.h.
65490         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65491         Use getline to remove arbitrary restriction on response length.
65492
65493 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65494
65495         * config/srclist-update: Spell out "Street" in FSF postal
65496         mail address; this is the style the FSF seems to prefer.
65497
65498         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65499         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65500         this updates FSF postal mail address.
65501
65502         Sync from coreutils.
65503         * modules/unlinkdir: New file.
65504         * modules/yesno (Depends-on): Add getline.
65505         * MODULES.html.sh (File system functions): Add unlinkdir.
65506
65507 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65508
65509         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65510         lib/strsep.h:
65511         Change the initial comment to refer to GPL, not LGPL.
65512         gnulib-tool will change it to LGPL as needed.
65513
65514         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65515         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65516         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65517         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65518         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65519         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65520         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65521         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65522         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65523         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65524         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65525         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65526         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65527         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65528         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65529         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65530         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65531         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65532         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65533         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65534         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65535         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65536         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65537         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65538         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65539         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65540         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65541         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65542         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65543         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65544         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65545         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65546         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65547         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65548         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65549         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65550         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65551         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65552         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65553         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65554         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65555         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65556         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65557         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65558         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65559         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65560         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65561         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65562         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65563         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65564         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65565         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65566         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65567         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65568         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65569         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65570         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65571         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65572         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65573         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65574         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65575         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65576         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65577         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65578         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65579         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65580         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65581         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65582         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65583         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65584         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65585         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65586         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65587         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65588         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65589         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65590         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65591         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65592         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65593         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65594         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65595         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65596         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65597         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65598         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65599         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65600         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65601         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65602         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65603         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65604         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65605         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65606         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65607         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65608         lib/yesno.c, lib/yesno.h:
65609         Update FSF postal mail address.
65610
65611 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65614         tests/test-memmem.c, tests/test-stpncpy.c:
65615         Update FSF postal mail address.
65616
65617 2005-05-13  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65620         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65621         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65622         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65623         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65624         Add support for 64-bit integers in the MSVC compiler.
65625
65626 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65627
65628         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65629
65630 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65631
65632         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65633
65634 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65635
65636         * doc/getdate.texi (General date syntax): Don't say that date
65637         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65638         Problem reported by Nic Ferrier.
65639
65640 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65641
65642         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65643         specified in ai_socktype. Fix invalid ai_protocol
65644         check. ai_protocol is usually set to 0 or depending on
65645         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65646         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65647         ai_socktype / ai_protocol in the returned addrinfo structure.
65648
65649 2005-05-10  Simon Josefsson  <jas@extundo.com>
65650
65651         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65652         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65653
65654 2005-05-10  Karl Berry  <karl@gnu.org>
65655
65656         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65657         (from http://www.gnu.org/licenses).
65658         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65659         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65660         fdl.texi suffices.
65661
65662 2005-05-10  Karl Berry  <karl@gnu.org>
65663
65664         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65665         (COPYING.DOC): remove.
65666
65667         * config/srclist-update: new FSF address.
65668
65669 2005-05-10  Derek Price  <derek@ximbiot.com>
65670
65671         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65672         possible.
65673
65674 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65675             Bruno Haible  <bruno@clisp.org>
65676
65677         * modules/inet_ntop: New file.
65678         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65679         inet_ntop.
65680
65681 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65682             Bruno Haible  <bruno@clisp.org>
65683
65684         * m4/inet_ntop.m4: New file.
65685
65686 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65687             Bruno Haible  <bruno@clisp.org>
65688
65689         * lib/inet_ntop.h: New file.
65690         * lib/inet_ntop.c: New file, from glibc with modifications.
65691
65692 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * modules/time_r (License): Change to LGPL.
65695         * modules/extensions (License): Change to LGPL.  Actually,
65696         the license is more permissive than that, but currently gnulib-tool
65697         doesn't know how to handle more-permissive licenses.
65698
65699         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65700         Problem reported by Dave Love.
65701
65702 2005-05-08  Jim Meyering  <jim@meyering.net>
65703
65704         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65705         blank.
65706
65707 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65708
65709         * modules/argmatch (Depends-on): Add stdbool.
65710         * modules/backupfile (Depends-on): Likewise.
65711         * modules/chdir-long (Depends-on): Likewise.
65712         * modules/closeout (Depends-on): Likewise.
65713         * modules/cycle-check (Depends-on): Likewise.
65714         * modules/dirname (Depends-on): Likewise.
65715         * modules/fnmatch (Depends-on): Likewise.
65716         * modules/fsusage (Depends-on): Likewise.
65717         * modules/fwriteerror (Depends-on): Likewise.
65718         * modules/getcwd (Depends-on): Likewise.
65719         * modules/getloadavg (Depends-on): Likewise.
65720         * modules/hard-locale (Depends-on): Likewise.
65721         * modules/makepath (Depends-on): Likewise.
65722         * modules/mountlist (Depends-on): Likewise.
65723         * modules/nanosleep (Depends-on): Likewise.
65724         * modules/posixtm (Depends-on): Likewise.
65725         * modules/quotearg (Depends-on): Likewise.
65726         * modules/readtokens (Depends-on): Likewise.
65727         * modules/readtokens0 (Depends-on): Likewise.
65728         * modules/readutmp (Depends-on): Likewise.
65729         * modules/save-cwd (Depends-on): Likewise.
65730         * modules/strftime (Depends-on): Likewise.
65731         * modules/userspec (Depends-on): Likewise.
65732         * modules/utimecmp (Depends-on): Likewise.
65733         * modules/xgetcwd (Depends-on): Likewise.
65734         * modules/xnanosleep (Depends-on): Likewise.
65735         * modules/xstrtod (Depends-on): Likewise.
65736         * modules/yesno (Depends-on): Likewise.
65737
65738 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65739
65740         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65741         needless checks.
65742
65743 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         Merge from coreutils.  Among other things,
65746         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65747         * lib/fd-safer.c: New file.
65748         * lib/fcntl-safer.h, open-safer.c: Remove.
65749         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65750         * lib/dup-safer.c: Include unistd-safer.h first.
65751         Don't include errno.h.
65752         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65753         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65754         * lib/file-type.c: Rely on file-type.h change.
65755         * lib/getloadavg.c: Include unistd-safer.h.
65756         (getloadavg): Use safer open.
65757         * lib/getusershell.c: Include "stdio-safer.h".
65758         (getusershell): Use safer fopen.
65759         * lib/long-options.c (long_options): Use NULL rather than 0.
65760         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65761         'free'.
65762         * lib/modechange.c: Likewise.
65763         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65764         (MODE_DONE): New constant.
65765         (struct mode_change): Remove 'next' member.
65766         (make_node_op_equals): New function; like the old one of the
65767         same name, except it allocates an array.
65768         (mode_compile, mode_create_from_ref): Use it.
65769         (mode_compile): Allocate result as an array, not a linked list.
65770         Parse octal string ourself, so that we catch mistakes like "+0".
65771         (mode_adjust): Arg is an array, not a linked list.
65772         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65773         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65774         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65775         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65776         Remove.  This is now stat-macros.h's job.
65777         (talloc): Remove.  All callers replaced by xalloc, so that
65778         our invokers don't have to worry about reporting memory failures.
65779         (make_node_op_equals): Remove.
65780         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65781         New constants.
65782         (struct mode_change): Moved here from modechange.h.
65783         (mode_append_entry): Remove.
65784         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65785         apps to have incorrect behavior.  Use simpler algorithm for head
65786         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65787         Detect more invalid usages rather than having somewhat-random behavior.
65788         Don't insert an "a=" action, as that leads to incorrect behavior.
65789         (mode_compile, mode_create_from_ref): Return NULL on error instead
65790         of an enum, since now there's only one way to have an error.  All
65791         callers changed.
65792         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65793         at the correct time.  Simplify calculation of "+u" and its ilk.
65794         Don't mishandle "+X".
65795         (mode_free): Remove "register" and localize decls.
65796         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65797         (struct mode_change): Move to modechange.c; callers don't
65798         need to see this stuff.
65799         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65800         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65801         (mode_change, mode_adjust): Reflect the new signatures noted above.
65802         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65803         that might redefine system include files.
65804         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65805         (my_usleep): Use NULL rather than (void *) 0.
65806         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65807         Use siginterrupt to specify that system calls should be interrupted.
65808         (rpl_nanosleep): Move initialization of suspended closer to call of
65809         my_usleep.
65810         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65811         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65812         (desirable_utmp_entry): New function.
65813         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65814         using x2nrealloc, to simplify logic.
65815         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65816         size calculation.  Do not assume utmp file is a regular file.
65817         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65818         (READ_UTMP_CHECK_PIDS): New constant.
65819         * lib/save-cwd.c: Include unistd-safer.h.
65820         (save_cwd): Use fd_safer.
65821         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65822         [!_LIBC] Include "stat-macros.h" instead.
65823         * lib/unistd-safer.h (fd_safer): New decl.
65824
65825 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65826
65827         * modules/getloadavg (Depends-on): Add unistd-safer.
65828         * modules/getusershell (Depends-on): Add stdio-safer.
65829         * modules/lstat (Depends-on): Remove xalloc.
65830         * modules/mkstemp (Depends-on): Add stat-macros.
65831         * modules/modechange (Depends-on): Remove xstrtol.
65832         Add stat-macros, xalloc.
65833         * modules/save-cwd (Depends-on): Add unistd-safer.
65834         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65835         * modules/unistd-safer (Files): Add lib/fd-safer.c
65836         (Makefile.am): Remove lib_SOURCES.
65837
65838         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65839         Remove fcntl-safer; unistd-safer supersedes it.
65840
65841 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65844         AC_HEADER_STAT.
65845         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65846         (gl_PREREQ_CHOWN): Remove.
65847         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65848         it.  Don't require AC_HEADER_STAT.
65849         (gl_PREREQ_LSTAT): Remove.
65850         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65851         Don't require AC_HEADER_STAT.
65852         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65853         (gl_PREREQ_RMDIR): Remove.
65854         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65855         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65856         the stat-macros module a prerequisite.
65857         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65858         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65859         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65860         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65861         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65862         variable names.
65863         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65864         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65865         variable prefixes.
65866         * m4/fcntl-safer.m4: Remove.
65867         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65868         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65869         Invoke gl_PREREQ_FD_SAFER.
65870         (gl_PREREQ_FD_SAFER): New macro.
65871         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65872         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65873         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65874         Remove duplicate call to AC_LIBOBJ(readutmp).
65875         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65876
65877         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65878         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65879
65880 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65881
65882         * MODULES.html.sh (Misc): Add byteswap.
65883
65884 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65885
65886         * modules/getcwd (Depends-on): Add extensions.
65887         * modules/openat (Depends-on): Likewise.
65888
65889 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65890
65891         * modules/byteswap: New file.
65892
65893 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65894
65895         * m4/byteswap.m4: New file.
65896
65897 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65898
65899         * lib/byteswap_.h: New file.
65900
65901 2005-04-25  Karl Berry  <karl@gnu.org>
65902
65903         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65904
65905 2005-04-25  Albert Chin  <china@thewrittenword.com>
65906
65907         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65908         Toolkit C bug.
65909
65910 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65911
65912         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65913         (func_ln_if_changed) Remove forcibly for no error message
65914         in case file does not exist.
65915
65916 2005-04-19  Simon Josefsson  <jas@extundo.com>
65917
65918         * gnulib-tool (Options): Make --symlink mean --symbolic.
65919
65920 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65921
65922         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65923
65924 2005-04-16  Simon Josefsson  <jas@extundo.com>
65925
65926         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65927
65928 2005-04-15  Simon Josefsson  <jas@extundo.com>
65929
65930         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65931
65932 2005-04-15  Simon Josefsson  <jas@extundo.com>
65933
65934         * gnulib-tool: Rename --symlink to --symbolic.
65935
65936 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65937
65938         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65939         symbolic links to files instead of copying/moving.  Add --aux-dir,
65940         specifying directory relative --dir where auxiliary build tools
65941         are placed.
65942
65943 2005-04-14  Bruno Haible  <bruno@clisp.org>
65944
65945         * modules/allocsa (License): Change to LGPL.
65946         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65947
65948 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65949
65950         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65951         that "UTC +1 second" continues to work.  Problem reported
65952         by Dmitry V. Levin.
65953         (relunit_snumber): New rule.
65954         (relunit): Use it.
65955
65956 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65957
65958         * lib/getdate.y (universal_time_zone_table): New constant.
65959         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65960         universal_time_zone_table.
65961         (lookup_zone): Prefer universal_time_zone_table to
65962         local_time_zone_table, so that "GMT" time stamps are allowed in
65963         London during the summer.  Problem reported by Ian Abbott.
65964
65965 2005-04-12  Jim Meyering  <jim@meyering.net>
65966
65967         * lib/human.c (humblock): Set *options even when returning due to
65968         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65969         warning from gcc-4.
65970
65971 2005-04-09  Jim Meyering  <jim@meyering.net>
65972
65973         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65974         -Wuninitialized: initialize tm0.tm_year.
65975
65976 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65977
65978         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65979         count, since there's no maximum.  All uses changed.
65980         Add member dsts_seen.
65981         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65982         not being INT_MAX.
65983         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65984         Use pc_rels_seen to decide whther a date is absolute.
65985
65986         * lib/getdate.y (number): Don't overwrite year.
65987         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65988         check.
65989
65990 2005-04-02  Simon Josefsson  <jas@extundo.com>
65991
65992         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65993         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65994
65995 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65996
65997         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65998         where no absolute path name can be longer than PATH_MAX.
65999
66000 2005-03-27  Jim Meyering  <jim@meyering.net>
66001
66002         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66003
66004 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66007         "one's complement" -> "ones' complement" in comment, as per Knuth.
66008         "value of type" -> "type or expression" in comment.
66009         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66010
66011 2005-03-26  Jim Meyering  <jim@meyering.net>
66012
66013         Comment nits.
66014         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66015         Correct typos: s/or/of/.
66016
66017 2005-03-26  Jim Meyering  <jim@meyering.net>
66018
66019         * modules/check-include-files: Move to ../ and rename to...
66020         * check-module: ...this.
66021
66022 2005-03-25  Jim Meyering  <jim@meyering.net>
66023
66024         * modules/xvasprintf (Files): Add xalloc.h.
66025
66026 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66027
66028         * modules/gettext (Files): config/config.rpath ->
66029         build-aux/config.rpath
66030         * modules/iconv (Files): Likewise.
66031         Problem reported by Oskar Liljeblad.
66032
66033 2005-03-23  Jim Meyering  <jim@meyering.net>
66034
66035         * modules/check-include-files: New script to check for
66036         missing dependencies, multiple includes, etc.
66037
66038         * modules/c-strtold (Depends-on): Add xalloc.
66039         * modules/c-strtod (Depends-on): Add xalloc.
66040         * modules/hash (Depends-on): Add xalloc.
66041         (Files): Remove lib/xalloc.h.
66042
66043         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66044         * modules/userspec (Files): Add lib/inttostr.h.
66045
66046 2005-03-23  Jim Meyering  <jim@meyering.net>
66047
66048         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66049
66050 2005-03-22  Jim Meyering  <jim@meyering.net>
66051
66052         * modules/stat-macros: New module.
66053         * modules/canonicalize, modules/euidaccess, modules/file-type,
66054         * modules/filemode, modules/lchown, modules/makepath,
66055         * modules/rmdir, modules/stat: Depend on new stat-macros module
66056         rather than listing lib/stat-macros.h manually.
66057         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66058
66059 2005-03-22  Jim Meyering  <jim@meyering.net>
66060
66061         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66062
66063 2005-03-22  Bruno Haible  <bruno@clisp.org>
66064
66065         * config/srclist.txt: Replace target directory 'config' with
66066         'build-aux'.
66067         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66068         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66069         ../build-aux/.
66070
66071 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66072
66073         * modules/chdir-long (Depends-on): Add mempcpy.
66074
66075         * modules/acl, modules/backupfile, modules/c-strtod,
66076         modules/c-strtold, modules/canon-host, modules/canonicalize,
66077         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66078         modules/exclude, modules/exitfail, modules/file-type,
66079         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66080         modules/getdate, modules/getline, modules/getpagesize,
66081         modules/getpass, modules/getugroups, modules/group-member,
66082         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66083         modules/inttostr, modules/long-options, modules/makepath,
66084         modules/md5, modules/memcasecmp, modules/memcoll,
66085         modules/modechange, modules/mountlist, modules/path-concat,
66086         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66087         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66088         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66089         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66090         modules/strftime, modules/strndup, modules/strverscmp,
66091         modules/timespec, modules/unlocked-io, modules/userspec,
66092         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66093         modules/yesno:
66094         Remove lib_SOURCES line from Makefile.am section, as this is now
66095         done automatically by the corresponding Autoconf macro.
66096
66097 2005-03-21  Jim Meyering  <jim@meyering.net>
66098
66099         Changes imported from coreutils.
66100
66101         * lib/cycle-check.c: Don't include xalloc.h.
66102
66103         * lib/path-concat.c: Don't include assert.h.
66104         (path_concat): Remove assertion that would have triggered
66105         for ABASE starting with more than one slash.
66106         Reported by Andreas Schwab.
66107
66108         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66109         properly when ABASE is an absolute file name.
66110         Correct the description of this function.
66111         Include <assert.h>.
66112         Add an assertion and a test driver.
66113         This fixes a bug introduced on 2004-07-02.
66114         Andreas Schwab reported the resulting failure of cp --parents:
66115         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66116
66117 2005-03-21  Jim Meyering  <jim@meyering.net>
66118
66119         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66120         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66121
66122 2005-03-21  Jim Meyering  <jim@meyering.net>
66123         and  Paul Eggert  <eggert@cs.ucla.edu>
66124
66125         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66126         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66127         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66128         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66129         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66130         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66131         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66132         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66133         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66134         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66135         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66136         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66137         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66138         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66139         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66140         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66141         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66142         for these modules.
66143
66144 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66145
66146         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66147         (which shouldn't happen), generate nothing instead of returning 0
66148         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66149
66150 2005-03-16  Bruno Haible  <bruno@clisp.org>
66151
66152         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66153         HAVE_LONGLONG_64BIT.
66154
66155 2005-03-16  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66158         HAVE_LONGLONG_64BIT.
66159
66160 2005-03-16  Bruno Haible  <bruno@clisp.org>
66161
66162         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66163         HAVE_LONGLONG_64BIT.
66164
66165 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66166
66167         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66168         reliably distinguish strftime failure from empty output on POSIX
66169         hosts.
66170
66171 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66174         (iconv_string): Don't guess a size-zero buffer, as that might cause
66175         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66176         result would be 'too large', where 'too large' is (heuristically)
66177         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66178         overflow concerns.  This will prevent some unwanted malloc failures
66179         when the inputs are very large.
66180
66181 2005-03-15  Karl Berry  <karl@gnu.org>
66182
66183         * config/srclist.txt (config.rpath): from gettext.
66184         * config/config.rpath: update.
66185
66186 2005-03-15  Bruno Haible  <bruno@clisp.org>
66187
66188         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66189         to 'negate'.
66190
66191         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66192         variable.
66193
66194         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66195         results.
66196
66197 2005-03-14  Simon Josefsson  <jas@extundo.com>
66198
66199         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66200         <fx@gnu.org>.
66201
66202 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66203
66204         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66205         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66206         intprops.h.
66207         * lib/strtol.c: Likewise.
66208
66209 2005-03-14  Jim Meyering  <jim@meyering.net>
66210
66211         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66212         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66213         to be nonzero so that we (and caller) can detect the difference
66214         between a valid zero-length expansion and an error return, even
66215         when the underlying strftime fails before writing anything into
66216         that location.
66217
66218 2005-03-14  Bruno Haible  <bruno@clisp.org>
66219
66220         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66221         Update from GNU gettext 0.14.3.
66222
66223 2005-03-10  Jim Meyering  <jim@meyering.net>
66224
66225         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66226
66227 2005-03-10  Jim Meyering  <jim@meyering.net>
66228
66229         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66230         so that this module works on systems without fchdir.
66231
66232 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66233
66234         Factor int-properties macros into a single file, except for
66235         glibc-related files.
66236         * lib/intprops.h: New file.
66237         * lib/getloadavg.c: Include it instead of limits.h.
66238         (INT_STRLEN_BOUND): Remove.
66239         * lib/human.c: Include intprops.h.
66240         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66241         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66242         302/1000.
66243         * lib/inttostr.h: Include intprops.h instead of limits.h.
66244         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66245         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66246         for consistency with intprops.h.
66247         (time_t_is_integer, twos_complement_arithmetic): Use them.
66248         * lib/sig2str.h: Include <signal.h>, intprops.h.
66249         (INT_STRLEN_BOUND): Remove.
66250         * lib/strftime.c (TYPE_SIGNED): Remove.
66251         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66252         * lib/strtol.c: Adjust comments to match intprops.h.
66253         * lib/userspec.c: Include intprops.h.
66254         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66255         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66256         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66257         instead of rolling our own expressions.
66258         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66259
66260         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66261         instead of int.
66262         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66263         the right thing even if adding 1900 would overflow.  Similarly
66264         for tm_mon + 1 and tm_yday + 1.
66265         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66266         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66267         (DO_SIGNED_NUMBER): New macro.
66268         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66269
66270 2005-03-07  Bruno Haible  <bruno@clisp.org>
66271
66272         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66273
66274 2005-03-07  Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66277
66278 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66279
66280         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66281         (func_import): Only replace files via --import when they have actually
66282         changed.
66283
66284 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66285
66286         * m4/mmap-anon.m4: New file.
66287         * m4/pagealign_alloc.m4: New file.
66288
66289 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66290             Bruno Haible  <bruno@clisp.org>
66291
66292         * modules/pagealign_alloc: New file.
66293         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66294
66295 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66296             Bruno Haible  <bruno@clisp.org>
66297
66298         * lib/pagealign_alloc.h: New file.
66299         * lib/pagealign_alloc.c: New file.
66300
66301 2005-03-03  Bruno Haible  <bruno@clisp.org>
66302
66303         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66304         Use an all-permissive copyright notice, recommended by RMS.
66305
66306 2005-03-02  Bruno Haible  <bruno@clisp.org>
66307
66308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66309         of AIX, the replacement has to be done only after <string.h> is
66310         included, therefore not in config.h. stpncpy.h does the replacement,
66311         and stpncpy.c uses it.
66312
66313 2005-03-02  Bruno Haible  <bruno@clisp.org>
66314
66315         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66316         stpncpy.c uses it.
66317
66318 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66321         The workaround isn't strictly needed for POSIX conformance, and
66322         it's too much of a pain to configure and maintain.  We'll ask
66323         people to fix their kernels instead.
66324         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66325         (NANOSLEEP_BUG_WORKAROUND): Remove.
66326         (xnanosleep): Remove the workaround.
66327
66328 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66331         Reported by Derek Price.
66332         (Include): Add "timespec.h".
66333
66334         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66335
66336 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66339         to detect nanosleep bug.
66340
66341 2005-03-01  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66344
66345 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         * modules/gethrxtime: New file.
66348         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66349         (Depends-on): Add gethrxtime.
66350         (configure.ac): Add gl_XNANOSLEEP.
66351         (Makefile.am): Remove lib_SOURCES line.
66352
66353 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66356         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66357
66358 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66359
66360         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66361         * lib/timespec.h (gettime): Return void, since it always
66362         succeeds now.  All uses changed.
66363         * lib/gettime.c (gettime) Likewise.
66364         [HAVE_NANOTIME]: Prefer nanotime.
66365         Assume gettimeofday succeeds, as POSIX requires.
66366         Assime time () succeeds, since other code already does.
66367         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66368         (timespec_subtract): Remove.
66369         (NANOSLEEP_BUG_WORKAROUND): New constant.
66370         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66371         things considerably.  Use it only on GNU/Linux hosts, since the
66372         workaround shouldn't be needed elsewhere.
66373
66374 2005-02-24  Bruno Haible  <bruno@clisp.org>
66375
66376         * modules/gettext (Files): Add m4/glibc2.m4.
66377
66378 2005-02-24  Bruno Haible  <bruno@clisp.org>
66379
66380         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66381         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66382         * m4/progtest.m4:
66383         Update from GNU gettext 0.14.2.
66384         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66385
66386 2005-02-24  Bruno Haible  <bruno@clisp.org>
66387
66388         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66389         * lib/config.charset: Update from GNU gettext 0.14.2.
66390
66391 2005-02-24  Bruno Haible  <bruno@clisp.org>
66392
66393         * lib/gettext.h: Update from GNU gettext 0.14.2.
66394
66395 2005-02-23  Simon Josefsson  <jas@extundo.com>
66396
66397         * m4/iconvme.m4: New file.
66398
66399 2005-02-23  Jim Meyering  <jim@meyering.net>
66400
66401         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66402         change.
66403         Thanks to Bruno Haible for catching it.
66404
66405 2005-02-22  Simon Josefsson  <jas@extundo.com>
66406
66407         * modules/iconvme: New file.
66408
66409         * MODULES.html.sh: Add iconvme.
66410
66411 2005-02-22  Simon Josefsson  <jas@extundo.com>
66412
66413         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66414
66415 2005-02-22  Simon Josefsson  <jas@extundo.com>
66416
66417         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66418
66419 2005-02-22  Jim Meyering  <jim@meyering.net>
66420
66421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66422         s/ifndef/ifdef/.
66423
66424 2005-02-20  Neil Conway  <neilc@samurai.com>
66425
66426         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66427         returned by OSX/Darwin if the specified buffer is not large
66428         enough for the hostname.
66429
66430 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66431
66432         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66433         pass it to _help, otherwise the latter coredumps trying to
66434         dereference state.root_argp.
66435
66436 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * modules/chdir-long (Depends-on): Add memrchr.
66439         * modules/memrchr (Files): Add lib/memrchr.h.
66440         (Include): "memrchr.h".
66441
66442 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66445
66446 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * lib/memrchr.h: New file.
66449         * lib/chdir-long.c: Include it.
66450         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66451         Don't bother including stddef.h.
66452
66453 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66456         inclusion.
66457         Include <sys/types.h>, for dev_t.
66458         (ME_DUMMY, ME_REMOTE): Move from here....
66459         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66460         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66461         Dmitry V. Levin.
66462         Include mountlist.h first, to test the interface.
66463
66464 2005-01-29  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/progname.c (program_name): Initialize.
66467         Needed when linking statically on MacOS X.
66468
66469 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66470
66471         Sync from coreutils.
66472         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66473         (Depends-on): Add c-strtod.
66474         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66475
66476 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         Sync from coreutils.
66479         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66480
66481         Remove files that are specific to coreutils.
66482         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66483
66484 2005-01-28  Bruno Haible  <bruno@clisp.org>
66485
66486         * modules/javacomp: New file.
66487         * MODULES.html.sh (Java): Add javacomp.
66488
66489 2005-01-28  Bruno Haible  <bruno@clisp.org>
66490
66491         * m4/javacomp.m4: New file, from GNU gettext.
66492
66493 2005-01-28  Bruno Haible  <bruno@clisp.org>
66494
66495         * lib/javacomp.sh.in: New file, from GNU gettext.
66496         * lib/javacomp.h: New file, from GNU gettext.
66497         * lib/javacomp.c: New file, from GNU gettext.
66498
66499 2005-01-26  Simon Josefsson  <jas@extundo.com>
66500
66501         * lib/gai_strerror.c: Use GPL in header.
66502
66503 2005-01-26  Bruno Haible  <bruno@clisp.org>
66504
66505         * modules/javaexec: New file.
66506         * MODULES.html.sh (Java): Add javaexec.
66507
66508 2005-01-26  Bruno Haible  <bruno@clisp.org>
66509
66510         * m4/javaexec.m4: New file, from GNU gettext.
66511
66512 2005-01-26  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/javaexec.sh.in: New file, from GNU gettext.
66515         * lib/javaexec.h: New file, from GNU gettext.
66516         * lib/javaexec.c: New file, from GNU gettext.
66517
66518 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66519
66520         * modules/lchown (Depends-on): Remove lchown.h
66521
66522 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66523
66524         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66525         must be defined if the header file was not found, in order
66526         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66527
66528 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66529
66530         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66531         initializers for struct pentry_state.
66532         (__argp_error): Check return value of __asprintf
66533         (__argp_failure): Translate error message
66534
66535         * lib/argp-parse.c: Removed braces around the expansion of N_()
66536
66537 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66540         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66541         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66542         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66543         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66544         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66545         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66546         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66547         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66548         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66549         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66550         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66551         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66552         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66553         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66554         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66555         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66556         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66557         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66558         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66559         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66560         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66561         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66562         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66563         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66564         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66565         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66566         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66567         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66568         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66569         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66570         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66571         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66572         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66573         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66574         Use an all-permissive copyright notice, recommended by RMS.
66575
66576 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * modules/chdir-long (Depends-on): Remove mempcpy.
66579
66580 2005-01-21  Jim Meyering  <jim@meyering.net>
66581
66582         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66583         same value as for Solaris 9.
66584
66585         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66586         component length.  This included changing the parameter to be
66587         of type `char *' rather than `char const *'.
66588         * lib/chdir-long.h (chdir_long): Update prototype.
66589
66590         * lib/openat.c (fdopendir, fstatat): New functions.
66591         * lib/openat.h: Include headers required for use of DIR and struct
66592         stat.
66593         [AT_SYMLINK_NOFOLLOW]: Define.
66594         (fdopendir, fstatat): Add prototypes.
66595
66596 2005-01-21  Bruno Haible  <bruno@clisp.org>
66597
66598         * modules/classpath: New file.
66599         * MODULES.html.sh (Java): Add classpath.
66600
66601 2005-01-21  Bruno Haible  <bruno@clisp.org>
66602
66603         * lib/classpath.h: New file, from GNU gettext.
66604         * lib/classpath.c: New file, from GNU gettext.
66605
66606 2005-01-20  Simon Josefsson  <jas@extundo.com>
66607
66608         * modules/version-etc-fsf: New file.
66609
66610 2005-01-20  Simon Josefsson  <jas@extundo.com>
66611
66612         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66613         * lib/version-etc.c: Remove version_etc_copyright.
66614         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66615         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66616
66617 2005-01-20  Simon Josefsson  <jas@extundo.com>
66618
66619         * lib/base64.h (isbase64): Add.
66620
66621         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66622         using a unsigned prototype, don't inline.
66623         (base64_decode): Use it.
66624
66625 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66628         it.
66629
66630 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         * lib/save-cwd.c (save_cwd): Remove code to support the case
66633         where fchdir is missing or flaky.
66634
66635 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66636
66637         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66638
66639 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66640
66641         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66642         AC_LIBSOURCES now does this.
66643         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66644         with new ullong_max module.
66645
66646 2005-01-19  Bruno Haible  <bruno@clisp.org>
66647
66648         * modules/sh-quote: New file.
66649         * MODULES.html.sh (Executing programs): Add sh-quote.
66650
66651 2005-01-19  Bruno Haible  <bruno@clisp.org>
66652
66653         * lib/sh-quote.h: New file, from GNU gettext.
66654         * lib/sh-quote.c: New file, from GNU gettext.
66655
66656 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66657
66658         Merge from coreutils.
66659         * m4/ullong_max.m4: New file.
66660         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66661         (gl_MACROS): Assume localeconv exists.
66662
66663 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         Merge changes from coreutils, as described below in several
66666         changelogs dated today.
66667
66668         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66669         (O_DIRECTORY): Remove; not needed here, since "." must be
66670         a directory.  All uses removed.
66671         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66672         universal on Suns, and we also need to test for IRIX.
66673         Revamp code to use 'if' rather than '#if'.
66674         Avoid unnecessary comparison of cwd->desc to 0.
66675
66676         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66677         for known valid error numbers rather than observed invalid ones.
66678
66679 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66680
66681         * modules/ullong_max: New file.
66682
66683         * modules/chdir-long, modules/openat: New files.
66684         * modules/save-cwd (Depends-on): Depend on chdir-long.
66685         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66686
66687 2005-01-18  Jim Meyering  <jim@meyering.net>
66688
66689         Merge from coreutils.
66690         * m4/chdir-long.m4, m4/openat.m4: New files.
66691         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66692         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66693         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66694         is sane and DOES follow symlinks.  Besides, testing 20 different
66695         systems found no broken chown implementations.
66696         Prompted by a change in rsync's copy of this macro.
66697         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66698
66699         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66700
66701         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66702         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66703         NULL-means-set-to-current-time semantics.
66704         Remove temporary file immediately, rather than waiting
66705         for configure's at-exit trap code to do it.
66706
66707 2005-01-18  Jim Meyering  <jim@meyering.net>
66708
66709         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66710
66711         * lib/utimens.c (futimens): Account for the fact that futimes
66712         can also fail with errno == ENOSYS or errno == ENOENT.
66713         Patch from Dmitry V. Levin.
66714
66715         Change the name of the robust chdir function from chdir to chdir_long.
66716         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66717         (restore_cwd): Use chdir_long, not chdir.
66718         * lib/chdir-long.c: Renamed from chdir.c.
66719         * lib/chdir-long.h: Renamed from chdir.h.
66720         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66721         Hurd.
66722
66723 2005-01-18  Bruno Haible  <bruno@clisp.org>
66724
66725         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66726         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66727         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66728         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66729         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66730         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66731         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66732         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66733         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66734         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66735         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66736         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66737         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66738         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66739         Use an all-permissive copyright notice, recommended by RMS.
66740
66741 2005-01-18  Bob Proulx  <bob@proulx.com>
66742
66743         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66744         simplify offsetof() macro construct to avoid compile failure with
66745         native HP-UX 11.0 ANSI C compiler.
66746
66747 2005-01-17  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66750         redundant because stpncpy.m4 takes care of it.
66751
66752 2005-01-17  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66755
66756 2005-01-17  Bruno Haible  <bruno@clisp.org>
66757
66758         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66759         used.
66760
66761 2005-01-17  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/fwriteerror.h (fwriteerror): Change specification to include
66764         fclose.
66765         * lib/fwriteerror.c: Include <stdbool.h>.
66766         (fwriteerror): At the end, close the file stream. Record whether
66767         stdout was already closed.
66768
66769 2005-01-17  Bruno Haible  <bruno@clisp.org>
66770
66771         * lib/execute.c (environ): Declare if needed.
66772         * lib/pipe.c (environ): Likewise.
66773         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66774
66775 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66776
66777         * modules/argp: Depend on vsnprintf
66778
66779 2005-01-10  Jim Meyering  <jim@meyering.net>
66780
66781         * modules/closeout (Depends-on): Add atexit.
66782
66783 2005-01-06  Bruno Haible  <bruno@clisp.org>
66784
66785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66786
66787 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66788
66789         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66790         definitions to be after all include files, to avoid collisions.
66791         Problem reported by Bob Proulx.
66792
66793 2005-01-04  Jim Meyering  <jim@meyering.net>
66794
66795         Changes imported from coreutils.
66796         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66797         as the mkstemp template, use a temporary directory and an
66798         8.3-friendly template to avoid trouble on systems like DJGPP.
66799         Reported by Juan M. Guerrero via Stepan Kasal.
66800         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66801         close. Remove the temporary directory right away, rather than waiting
66802         for configure's at-exit trap code to do it.
66803         Suggestion from Stepan Kasal.
66804
66805 2005-01-01  Simon Josefsson  <jas@extundo.com>
66806
66807         * gnulib-tool: Print #include directives when --import'ing.
66808
66809 2004-12-28  Simon Josefsson  <jas@extundo.com>
66810
66811         * tests/test-base64.c: Include required header files.  Remove
66812         unused variables.
66813
66814 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         * modules/error (Depends-on): Remove gettext.
66817
66818 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66821         not needed.  This removes a dependency on the gettext module.
66822         [defined _LIBC]: Do not include <libintl.h>; not needed.
66823
66824 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66825
66826         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66827         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66828
66829 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66832         HAVE_DECL_STRTOLD.
66833
66834 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66835
66836         * modules/getdate (Depends-on): Remove alloca-opt.
66837
66838 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66841
66842 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * lib/argp-parse.c: Include <stddef.h>.
66845         (alignof, alignto): New macros.
66846         (parser_init): Don't assume that void * is aligned sufficiently
66847         for struct option.
66848
66849         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66850         need to extend the stack.
66851         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66852         large.
66853
66854 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66855
66856         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66857
66858 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66859
66860         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66861         (2004-10-24) change.  Apparently this was a false alarm.
66862
66863         * modules/getdate: Depend on alloca-opt, not alloca.
66864
66865 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66868         Remove now-obsolete comment about AIX.
66869         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66870         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66871         (YYMAXDEPTH): New macro.
66872
66873 2004-12-18  Simon Josefsson  <jas@extundo.com>
66874
66875         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66876
66877 2004-12-18  Bruno Haible  <bruno@clisp.org>
66878
66879         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66880
66881 2004-12-18  Bruno Haible  <bruno@clisp.org>
66882
66883         * lib/fatal-signal.c (fatal_signals): Make non-const.
66884         (init_fatal_signals): New function.
66885         (uninstall_handlers, install_handlers): Ignore signals that were set to
66886         SIG_IGN.
66887         (at_fatal_signal): Call init_fatal_signals.
66888         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66889         SIG_IGN.
66890         Reported by Paul Eggert.
66891
66892 2004-12-18  Bruno Haible  <bruno@clisp.org>
66893
66894         * doc/alloca.texi: New file.
66895         * doc/alloca-opt.texi: New file.
66896
66897 2004-12-17  Jim Meyering  <jim@meyering.net>
66898
66899         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66900         Otherwise, install-sh could exit with improper exit status when
66901         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66902
66903 2004-12-16  Simon Josefsson  <jas@extundo.com>
66904
66905         * tests/test-base64.c: Add license.
66906
66907 2004-12-15  Stepan Kasal  <address@hidden>
66908
66909         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66910
66911 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66912
66913         * modules/getcwd (Files): Add m4/d-ino.m4.
66914         Suggested by Mark D. Baushke.
66915
66916 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66917
66918         * lib/getdate.y (textint): New member "negative".
66919         (time_zone_hhmm): New function.
66920         Expect 14 shift-reduce conflicts, not 13.
66921         (o_colon_minutes): New rule.
66922         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66923         (yylex): Set the "negative" member of signed numbers.
66924
66925 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * doc/getdate.texi (Time of day items, Time zone items):
66928         Describe new formats +00:00, UTC+00:00.
66929
66930 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66933         spurious "-l"s.  Problem reported by Stepan Kasal.
66934
66935 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66938         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66939
66940 2004-12-04  Simon Josefsson  <jas@extundo.com>
66941
66942         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66943         Vandoorselaere <yoann@prelude-ids.org>.
66944
66945 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66946
66947         Changes imported from coreutils.
66948         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66949         exist.
66950         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66951
66952 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         Changes imported from coreutils.
66955         * lib/hard-locale.c: Assume <locale.h> exists.
66956         Include "strdup.h".
66957         (GLIBC_VERSION): New macro.
66958         (hard_locale): Assume setlocale exists.
66959         Rewrite to avoid #ifdef.
66960         Use strdup rather than malloc + strcpy.
66961         * lib/human.c: Assume <locale.h> exists.
66962         (human_readable): Assume localeconv exists.
66963
66964 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66965
66966         * modules/hard-locale (Depends-on): Add strdup.
66967
66968 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66969
66970         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66971         convert T2, not T.  (Imported from libc.)
66972
66973 2004-11-30  Simon Josefsson  <jas@extundo.com>
66974
66975         * modules/restrict (License): Change to LGPL.
66976
66977 2004-11-30  Simon Josefsson  <jas@extundo.com>
66978
66979         * m4/restrict.m4: Add copyright and copying conditions.
66980
66981 2004-11-30  Simon Josefsson  <jas@extundo.com>
66982
66983         * m4/base64.m4: New file.
66984
66985 2004-11-30  Simon Josefsson  <jas@extundo.com>
66986
66987         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66988         base64.
66989
66990         * tests/test-base64.c: New file.
66991
66992         * modules/base64: New file.
66993
66994 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66997         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66998
66999         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67000
67001 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67004         (__getcwd.c): Don't restore errno; glibc doesn't.
67005         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67006         first, falling back to our code only if its results look suspicious.
67007         Ensure that the resulting buffer is only as large as necessary.
67008
67009         * lib/readutmp.c: Include readutmp.h first.
67010         Include <errno.h>, since readutmp.h no longer does that.
67011         * lib/readutmp.h: Don't include <errno.h>,
67012         <sys/param.h>, <time.h>; not needed to establish interface.
67013         (errno): Remove decl.
67014         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67015         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67016         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67017
67018 2004-11-28  Simon Josefsson  <jas@extundo.com>
67019
67020         * lib/base64.h, base64.c: New file.
67021
67022 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67025
67026 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67029         (Depends-on): Remove pathmax, same.  Add mempcpy.
67030         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67031         (Makefile.am): Append getcwd.h to lib_SOURCES.
67032         (Include): Add getcwd.h.
67033         (Maintainer): Change from Jim Meyering to "all, glibc",
67034         since getdate now uses intended-for-glibc code.
67035         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67036         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67037
67038 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67039
67040         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67041         HP's ANSI C compiler.
67042         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67043         Declaring int functions causes warnings on some modern systems and
67044         shouldn't be needed to compile on ancient ones.
67045         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67046         defined.
67047
67048         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67049         with the following changes.
67050         (__set_errno): Parenthesize properly.
67051         Include <stdbool.h>.
67052         (MIN, MAX, MATCHING_INO): New macros.
67053         (__getcwd): Define with prototype, not K&R form.
67054         Use heuristics to allocate default buffer on stack if possible.
67055         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67056         behavior, and to avoid the PATH_MAX limit when computing
67057         ../../../../...
67058         Use MATCHING_INO to compare inode number to file.
67059         Check for arithmetic overflow in size calculations.
67060         Fix bug in reallocation of dot array that caused getcwd to fail
67061         on directories nested deeper than 75.
67062         Be more careful about saving errno on error.
67063         Do not use realloc; use only free+malloc, as this is a bit
67064         more flexible and avoids a needless copy operation.
67065         Do not inspect st_dev and st_ino for symbolic links; POSIX
67066         doesn't specify the latter.
67067         Check for closedir errors.
67068         Avoid needless casts.
67069         Use "#ifdef weak_alias" around weak_alias, to be like other
67070         glibc code.
67071         The following changes to getcwd.c have effect only when used in
67072         gnulib; they have no effect inside glibc proper.
67073         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67074         as alloca isn't used.
67075         (alloca, __alloca): Likewise.
67076         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67077         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67078         unconditionally, as gnulib assumes C89 or better.
67079         Do not include <sys/param.h>.
67080         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67081         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67082         better.
67083         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67084         Include <dirent.h> in a way that is compatible with modern Autoconf.
67085         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67086         New macros, if not already defined.
67087         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67088         Use "_LIBC", not "defined _LIBC", for consistency.
67089         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67090         a mempcpy module.
67091         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67092         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67093         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67094         credit only to Jim Meyering and adjust the copyright dates.
67095         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67096         <stdlib.h>, <unistd.h>, "pathmax.h".
67097         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67098         (INITIAL_BUFFER_SIZE): Remove.
67099         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67100
67101 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67104         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67105         Use the _ONCE methods, for efficiency.
67106         Check for fcntl.h.  In test program, include <errno.h>
67107         and <fcntl.h> if available.  Remove old K&R cruft from
67108         test program.  Check for common errors in GNU/Linux,
67109         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67110         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67111         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67112         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67113         name accordingly.
67114         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67115         accommodate new getcwd.c.
67116         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67117         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67118         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67119         that's all we need now.
67120
67121 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67122
67123         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67124         argp-parse.c depends on getopt internals, that means we should
67125         always use our getopt, to be on the safe side.
67126         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67127         order not to spoil the result of an eventual previous invocation
67128         of gl_GETOPT_SUBSTITUTE.
67129
67130 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67131
67132         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67133         redefinition warnings. To avoid them, include the defines
67134         in `#if !defined __need_getopt ... #endif'. The only place
67135         where __getopt_argv_const is used is in definitions
67136         of getopt_long and getopt_long_only below, which are as well
67137         protected by `#ifndef __need_getopt'.
67138         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67139         __need_getopt after including <stdio.h> and <unistd.h> These
67140         headers might have defined it.
67141
67142 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67145
67146 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67147
67148         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67149         (futimens): New function, which uses futimes if available.
67150         (futimens, utimens): Support timespec==NULL, with same semantics
67151         as utime and utimens.
67152         * lib/utimens.h (futimens): New decl.
67153
67154 2004-11-23  Jim Meyering  <jim@meyering.net>
67155
67156         * lib/getopt_.h: Remove trailing blanks.
67157
67158 2004-11-23  Jim Meyering  <jim@meyering.net>
67159
67160         * lib/__fpending.c: Add comment.
67161
67162 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         * modules/canonicalize (Depends-on): Add xreadlink.
67165         Problem reported by James Youngman.
67166
67167 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67168
67169         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67170         New macros.
67171         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67172         optopt): Use them instead of invoking ## directly; otherwise, the
67173         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67174
67175 2004-11-19  Bruno Haible  <bruno@clisp.org>
67176
67177         * lib/strtok_r.c: Move comments from here...
67178         * lib/strtok_r.h: ... to here.
67179
67180 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67183         implementations that mishandle size_t overflow.
67184
67185 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67186
67187         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67188         might fail.  Problem reported by Yoann Vandoorselaere.
67189         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67190         implementations that mishandle size_t overflow.
67191
67192 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67193
67194         * modules/canon-host (Depends-on): Add strdup.
67195
67196 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67199
67200 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         * lib/canon-host.c: Include "strdup.h".
67203         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67204         Use strdup instead of malloc/strcpy to duplicate strings.
67205
67206         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67207         (human_space_before_unit): New constant.
67208         * lib/human.c (human_readable): Support it.
67209
67210         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67211         (xgetcwd): Set errno correctly when failing.
67212         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67213         the failure is actually due to a PATH_MAX problem.
67214
67215         Further getopt changes to make it more likely that glibc will
67216         buy the changes back.
67217         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67218         (getopt): Use it, so to preserve glibc semantic
67219         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67220         when compiling for libc.
67221         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67222         (getopt_long, getopt_long_only): Use it.
67223
67224         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67225         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67226         (getopt): Argv is now char * const *, as per standard.
67227         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67228         not char *__getopt_argv_const *.
67229         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67230         _getopt_long_only_r): Likewise.
67231         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67232         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67233         _getopt_long_r, _getopt_long_only_r): Likewise.
67234         * lib/getopt_.h (__getopt_argv_const): Remove.
67235         (getopt): Argv is now char * const *, as per standard.
67236
67237         * lib/getdate.y (tORDINAL): New token.
67238         (day, relunit): Allow it for relative times.
67239         (relative_time_table): Use tORDINAL for ordinals.
67240
67241 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67242
67243         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67244         Document that "second" isn't allowed as an ordinal number.
67245
67246 2004-11-16  Jim Meyering  <jim@meyering.net>
67247
67248         * modules/closeout (Depends-on): Add fpending.
67249
67250 2004-11-15  Jim Meyering  <jim@meyering.net>
67251
67252         * lib/closeout.c: Include "__fpending.h" once again.
67253         Include <stdbool.h>.
67254         (close_stdout): Don't fail just because stdout was closed initially,
67255         since some programs don't write to stdout in the normal course of
67256         operation (other than --version and --help), and we don't want this
67257         function to make e.g. `touch file >&-' fail.
67258         But do fail if it was closed and someone has tried to write to it.
67259         E.g., `printf foo >&-' must fail.
67260
67261 2004-11-13  Jim Meyering  <jim@meyering.net>
67262
67263         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67264
67265 2004-11-12  Simon Josefsson  <jas@extundo.com>
67266
67267         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67268         small doc fix is still pending.
67269
67270 2004-11-11  Simon Josefsson  <jas@extundo.com>
67271
67272         * modules/strtok_r: New file.
67273
67274         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67275         strtok_r.
67276
67277 2004-11-11  Simon Josefsson  <jas@extundo.com>
67278
67279         * m4/strtok_r.m4: New file.
67280
67281         * m4/getopt.m4: Replace opterr.
67282
67283 2004-11-11  Simon Josefsson  <jas@extundo.com>
67284
67285         * lib/strtok_r.h, strtok_r.c: New file.
67286
67287 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67288
67289         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67290         of replacing opterr, getopt, etc.  This should handle the
67291         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67292
67293 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67296         we can stop lying to compilers about the constness of argv when we
67297         are compiled outside glibc.
67298         (getopt, getopt_long, getopt_long_only): Use it.
67299         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67300         _getopt_internal, getopt): Likewise.
67301         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67302         _getopt_long_only_r): Likewise.
67303         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67304         _getopt_long_r, _getopt_long_only_r): Likewise.
67305
67306         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67307         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67308         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67309         the other external symbols.
67310         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67311         declaration, since the above renaming now works around collisions.
67312
67313 2004-11-11  Jim Meyering  <jim@meyering.net>
67314
67315         * lib/linebreak.c: Remove trailing blanks.
67316         * lib/alloca_.h: Likewise.
67317         * lib/acosl.c: Likewise.
67318         * lib/euidaccess.c: Likewise.
67319         * lib/allocsa.h: Likewise.
67320
67321 2004-11-10  Simon Josefsson  <jas@extundo.com>
67322
67323         * m4/getaddrinfo.m4: New file.
67324
67325 2004-11-10  Simon Josefsson  <jas@extundo.com>
67326
67327         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67328
67329 2004-11-10  Simon Josefsson  <jas@extundo.com>
67330
67331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67332         getaddrinfo.
67333
67334         * modules/getaddrinfo: New file.
67335
67336 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67339
67340 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67341
67342         * lib/mktime.c (SHR): New macro, which is a portable
67343         substitute for >> that should work even on Crays.
67344         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67345         Problem reported by Mark D. Baushke in
67346         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67347         * lib/getdate.y (SHR): Likewise.
67348         (tm_diff): Use it.
67349         * lib/strftime.c (SHR): Likewise.
67350         (tm_diff): Use it.
67351         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67352         quote_these_too, so that right shifts are well defined.  All uses
67353         changed.
67354
67355 2004-11-10  Jim Meyering  <jim@meyering.net>
67356
67357         Ensure that no close failure goes unreported.
67358         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67359         return early when it seems there's nothing to flush.
67360         Don't include __fpending.h.
67361
67362 2004-11-10  Jim Meyering  <jim@meyering.net>
67363
67364         * modules/closeout (Depends-on): Remove fpending.
67365
67366 2004-11-10  Jim Meyering  <jim@meyering.net>
67367
67368         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67369
67370 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67371
67372         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67373         gl_FUNC_STRFTIME.
67374         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67375         and AC_REQUIRE when possible, to avoid duplicate checks.
67376         Check for <wchar.h>.
67377
67378 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67379
67380         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67381
67382 2004-11-09  Bruno Haible  <bruno@clisp.org>
67383
67384         * m4/sockpfaf.m4: New file.
67385
67386 2004-11-05  Bruno Haible  <bruno@clisp.org>
67387
67388         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67389         Reported by Mark D. Baushke <mdb@cvshome.org>.
67390
67391 2004-11-04  Bruno Haible  <bruno@clisp.org>
67392
67393         2004-09-11  Bruno Haible  <bruno@clisp.org>
67394                 * allocsa.valgrind: New file.
67395         2004-02-06  Bruno Haible  <bruno@clisp.org>
67396                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67397                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67398                 Reported by Christopher Seip <chris.seip@hp.com>.
67399
67400 2004-11-04  Bruno Haible  <bruno@clisp.org>
67401
67402         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67403         (Makefile.am): Distribute it.
67404
67405 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67408         with errno == ERANGE if the buffer is too small.
67409         Problem reported by Mark D. Baushke.
67410
67411 2004-11-03  Albert Chin  <china@thewrittenword.com>
67412             Paul Eggert  <eggert@cs.ucla.edu>
67413
67414         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67415         equivalent, substitute $ac_type for equivalent type rather than
67416         blindly using uint32_t *always* which won't work if uint32_t is not
67417         available.  Define _UINT32_T to work around typedef of uint32_t if
67418         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67419         2.5.1.
67420
67421 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * m4/jm-macros.m4: Sync from coreutils.
67424         (gl_MACROS): Check for mbrlen, for pathchk.
67425         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67426
67427 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * lib/xreadlink.c (MAXSIZE): New macro.
67430         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67431         size does not exceed MAXSIZE.  Avoid cast.
67432         As suggested by Mark D. Baushke in
67433         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67434         if readlink fails with buffer size just under MAXSIZE, try again
67435         with MAXSIZE.
67436
67437 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67440
67441 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67442         and  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67445         (get_date): Overparenthesize to avoid GCC warning.
67446
67447 2004-11-02  Bruno Haible  <bruno@clisp.org>
67448
67449         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67450         returns void.
67451
67452 2004-11-02  Bruno Haible  <bruno@clisp.org>
67453
67454         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67455         function returns void.
67456
67457 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67460         fflush_unlocked, flockfile, funlockfile, funlockfile,
67461         fputs_unlocked, putc_unlocked.
67462
67463 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67466         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67467         already declared.
67468
67469 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * modules/getdate (Files): Add doc/getdate.texi.
67472         (Depends-on): Add setenv, xalloc.
67473
67474 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         * lib/getdate.y: Add support for TZ="foo" within a date string.
67477         Fix some bugs near time_t boundaries.  Reject dates with
67478         out-of-range components, e.g., "Sept 31".
67479         Include <stdlib.h>, "setenv.h", "xalloc.h".
67480         (ISDIGIT_LOCALE): Remove; unused.
67481         Note that the TZ and time functions used here are not reentrant.
67482         (mktime_ok, get_tz): New functions.
67483         (TZBUFSIZE): New constant.
67484         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67485         This requires that we sometimes generate our own TZ="XXX..." setting.
67486
67487 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * doc/getdate.texi: New file, from coreutils with modifications for
67490         the new TZ parsing.
67491
67492 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67493
67494         * lib/mktime.c (not_equal_tm): Remove redundant check.
67495
67496 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * modules/regex (lib_SOURCES): Add regex.c.
67499         Reported by James Youngman in
67500         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67501
67502 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67503
67504         * lib/getdate.y: Use Bison 1.875 features, and some minor
67505         code cleanups.  This change does not affect semantics.
67506         Don't include <stdlib.h>; no longer needed.
67507         Don't include unlocked-io.h; only the "#if TEST" code uses
67508         stdio, and performance isn't crucial there.
67509         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67510         Bison 1.875 features as described below.
67511         All uses of "PC." replaced by "pc->".
67512         (YYSTYPE): Add a forward declaration.
67513         (yylex, yyerror): Use full prototypes in forward decls.
67514         Use "%pure-parser" rather than obsolescent "%pure_parser".
67515         Use %parse-param and %lex-param instead of obsolescent
67516         YYPARSE_PARAM and YYLEX_PARAM.
67517         (meridian_table, month_and_day_table, time_units_table,
67518         relative_time_table, time_zone_table, military_table,
67519         lookup_zone, lookup_word, get_date):
67520         Use NULL instead of 0 where appropriate.
67521         (to_hour): Avoid abort (), to avoid a dependency on
67522         stdlib.h.
67523         (yyerror, yylex): Now accepts parser_control * arg.
67524         (main) [TEST]: Use '\0' rather than 0 for char.
67525
67526 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67529
67530 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67531
67532         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67533         It's now the caller's responsibility to handle the case where
67534         !HAVE_GETPAGESIZE && !defined getpagesize.
67535
67536         * lib/mktime.c (leapyear): Arg is long int, not int.
67537
67538 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67541
67542 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67545         missing.  Problem reported by James Youngman.
67546
67547 2004-10-16  Simon Josefsson  <jas@extundo.com>
67548
67549         * gnulib-tool: Fix comments.  Fix parse problem.
67550         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67551
67552 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67553
67554         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67555         implementation of getopt_long.  Problem reported by Alexander Taler in:
67556         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67557
67558 2004-10-15  Bruno Haible  <bruno@clisp.org>
67559
67560         * gnulib-tool: Untabify. Initialize supplied_libname.
67561         (func_usage): More homogenous output.
67562         (func_modules_transitive_closure, func_modules_to_filelist,
67563         func_emit_lib_Makefile_am): New functions.
67564         (func_import): New function, extracted from big case statement. Use
67565         func_get_license, func_modules_transitive_closure,
67566         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67567         opt_lgpl. Don't use test -a, as it's not portable.
67568         (func_create_testdir): Use func_modules_transitive_closure,
67569         func_modules_to_filelist, func_emit_lib_Makefile_am.
67570
67571 2004-10-15  Bruno Haible  <bruno@clisp.org>
67572
67573         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67574
67575 2004-10-15  Bruno Haible  <bruno@clisp.org>
67576
67577         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67578         the portions belonging to each module.
67579         Suggested by Derek Robert Price <derek@ximbiot.com>.
67580
67581 2004-10-12  Simon Josefsson  <jas@extundo.com>
67582
67583         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67584         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67585         to real functions.
67586
67587 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67588
67589         * modules/vsnprintf: New file.
67590
67591 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67592
67593         * m4/vsnprintf.m4: New file.
67594
67595 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67596
67597         * lib/vsnprintf.h: New file.
67598         * lib/vsnprintf.c: New file.
67599
67600 2004-10-11  Bruno Haible  <bruno@clisp.org>
67601
67602         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67603         vsnprintf.
67604
67605 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67606
67607         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67608
67609 2004-10-07  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67612         fits into the provided buffer.
67613
67614 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         * lib/diacrit.c, diacrit.h: Add GPL notice.
67617
67618         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67619         notice.
67620         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67621         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67622         This avoids a potential constant-folding bug.
67623
67624 2004-10-05  Bruno Haible  <bruno@clisp.org>
67625
67626         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67627         for the declaration of strsep.
67628
67629 2004-10-05  Bruno Haible  <bruno@clisp.org>
67630
67631         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67632
67633 2004-10-04  Simon Josefsson  <jas@extundo.com>
67634
67635         * modules/memmem: New file.
67636         * tests/test-memmem.c: New file.
67637         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67638
67639 2004-10-04  Simon Josefsson  <jas@extundo.com>
67640
67641         * m4/memmem.m4: New file.
67642
67643 2004-10-04  Simon Josefsson  <jas@extundo.com>
67644
67645         * lib/memmem.h: New file.
67646         * lib/memmem.c: New file, taken from glibc.
67647
67648 2004-10-04  Simon Josefsson  <jas@extundo.com>
67649
67650         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67651         '#ifdef USE_UNLOCKED_IO'.
67652
67653 2004-10-04  Simon Josefsson  <jas@extundo.com>
67654
67655         * config/srclist.txt: Add memmem from glibc.
67656
67657 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67660
67661         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67662         modules/exclude, modules/getdate, modules/getline,
67663         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67664         modules/getusershell, modules/linebuffer, modules/md5,
67665         modules/mountlist, modules/posixtm, modules/readtokens,
67666         modules/readutmp, modules/regex, modules/sha1,
67667         modules/version-etc, modules/yesno:
67668         Remove dependency on unlocked-io.
67669
67670 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67671
67672         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67673
67674         * m4/unlocked-io.m4: Add copyright notice.
67675         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67676
67677 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67680         * lib/xmalloc.c (xmemdup): Likewise.
67681         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67682         XFREE): Remove these long-obsolescent macros.
67683         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67684         * lib/xstrdup.c: Remove.
67685
67686         * lib/regex.c (re_comp): Cast gettext return value to char *,
67687         Problem reported by Martin Neitzel via Mark D. Baushke.
67688
67689 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67692         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67693         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67694         regex.c, sha1.c, version-etc.c, yesno.c:
67695         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67696         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67697         the includer's responsibility.
67698
67699         Sync from coreutils.
67700
67701         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67702         points to the start of a string, as the C Standard says the
67703         resulting behavior is undefined.
67704
67705         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67706         simple -> simple_backups, numbered_existing ->
67707         numbered_existing_backups, numbered -> numbered_backups
67708         to avoid shadowing problems.  All uses changed.
67709         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67710         * lib/backupfile.c (check_extension, numbered_backup):
67711         Rename locals to avoid shadowing 'basename'.
67712         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67713         once.
67714
67715         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67716         * lib/.cvsignore: Add getopt.h.
67717
67718 2004-10-04  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/README: New file.
67721         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67722         not a module.
67723
67724 2004-10-02  Jim Meyering  <jim@meyering.net>
67725
67726         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67727
67728 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67729
67730         * modules/strsep: New file.
67731
67732 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67733
67734         * m4/strsep.m4: New file.
67735
67736 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67737
67738         * lib/strsep.h: New file.
67739         * lib/strsep.c: New file.
67740
67741 2004-10-01  Simon Josefsson  <jas@extundo.com>
67742
67743         * lib/snprintf.c (snprintf): Handle size==0.
67744
67745 2004-10-01  Simon Josefsson  <jas@extundo.com>
67746             Bruno Haible  <bruno@clisp.org>
67747
67748         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67749         (snprintf): Declare 'args'.
67750
67751 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         * lib/snprintf.c: Remove comments as to why each header is needed.
67754
67755 2004-10-01  Bruno Haible  <bruno@clisp.org>
67756
67757         * MODULES.html.sh: Add strsep.
67758
67759 2004-09-30  Simon Josefsson  <jas@extundo.com>
67760
67761         * modules/snprintf: New file.
67762
67763 2004-09-30  Simon Josefsson  <jas@extundo.com>
67764
67765         * m4/snprintf.m4: New file.
67766
67767 2004-09-30  Simon Josefsson  <jas@extundo.com>
67768
67769         * lib/snprintf.h, lib/snprintf.c: New files.
67770
67771 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67772
67773         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67774         (hol_entry_help): Never translate an empty string.
67775         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67776         * lib/argp.h (OPTION_NO_TRANS): New option.
67777
67778 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * modules/argp (Maintainer): Replace Simon Josefsson
67781         by Sergey Poznyakoff.
67782
67783 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67784
67785         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67786         changes merged back into glibc.
67787
67788 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67791
67792 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67793
67794         * lib/xvasprintf.c: Include xalloc.h.
67795         (xvasprintf): Use xalloc_die, not xmalloc_die.
67796
67797 2004-09-29  Bruno Haible  <bruno@clisp.org>
67798
67799         * modules/alloca-opt: New file, derived from modules/alloca.
67800         * modules/allocsa: Depend on alloca-opt instead of alloca.
67801         * modules/setenv: Likewise.
67802         * modules/vasnprintf: Likewise.
67803         * MODULES.html.sh: Add alloca-opt.
67804
67805 2004-09-28  Simon Josefsson  <jas@extundo.com>
67806
67807         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67808         LGPL, and to replace license template from GPL to LGPL.
67809
67810 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         * modules/dummy: Change license to LGPL.
67813
67814 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67817
67818 2004-09-24  Simon Josefsson  <jas@extundo.com>
67819
67820         * modules/minmax (License): Change from GPL to LGPL.
67821
67822 2004-09-23  Simon Josefsson  <jas@extundo.com>
67823
67824         * gnulib-tool (--import): Typo.
67825
67826 2004-09-23  Simon Josefsson  <jas@extundo.com>
67827
67828         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67829
67830 2004-09-22  Bruno Haible  <bruno@clisp.org>
67831
67832         * modules/*: Add 'License' field.
67833         * gnulib-tool: Accept --extract-license option.
67834         (func_get_license): New function.
67835
67836 2004-09-21  Bruno Haible  <bruno@clisp.org>
67837
67838         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67839         Reported by Simon Josefsson.
67840
67841 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67844         gl_AC_TYPE_LONG_LONG.
67845
67846 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67847
67848         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67849
67850 2004-09-18  Simon Josefsson  <jas@extundo.com>
67851         and  Paul Eggert  <eggert@cs.ucla.edu>
67852
67853         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67854         calls with autoreconf.  Define GL_LIB.
67855
67856 2004-09-14  Karl Berry  <karl@gnu.org>
67857
67858         * config/srclist.txt: unsync setenv.c, sigh.
67859
67860 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67861
67862         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67863         Problem reported by Bruno Haible in:
67864         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67865
67866 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67867
67868         * config/srclist.txt: Comment out argp-pvh.c.
67869
67870 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67873         in case some system header has #define'd it.  Problem reported by
67874         Soeren D. Schulze in
67875         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67876
67877 2004-09-09  Karl Berry  <karl@gnu.org>
67878
67879         * regex.[ch]: delete from the root.  These were supposed to be
67880                 synced with emacs cvs, but this has not happened for about
67881                 a year, and anyway nothing else uses emacs regex.[ch].
67882                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67883                 lib/regex[.ch] is untouched.
67884
67885 2004-09-09  Bruno Haible  <bruno@clisp.org>
67886
67887         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67888
67889 2004-09-09  Bruno Haible  <bruno@clisp.org>
67890
67891         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67892         modifications.
67893         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67894
67895 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67896
67897         * modules/xvasprintf: New file.
67898         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67899
67900 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67901
67902         * lib/xvasprintf.h: New file.
67903         * lib/xvasprintf.c: New file.
67904         * lib/xasprintf.c: New file.
67905
67906 2004-09-08  Bruno Haible  <bruno@clisp.org>
67907
67908         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67909
67910 2004-09-08  Bruno Haible  <bruno@clisp.org>
67911
67912         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67913         length is > INT_MAX.
67914         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67915         more.
67916
67917 2004-09-08  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/stdint_.h: New file, taken from GNU clisp.
67920
67921 2004-09-08  Bruno Haible  <bruno@clisp.org>
67922             Oskar Liljeblad  <oskar@osk.mine.nu>
67923
67924         * modules/stdint: New file.
67925         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67926
67927 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67928
67929         Import from coreutils.
67930         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67931         strings on unbounded length.  alloca's performance benefits aren't
67932         that important here.
67933         (V_STRDUP): Remove.
67934         (parse_with_separator): New function, with most of the internals
67935         of the old parse_user_spec.  Allow user to omit both user and group,
67936         for compatibility with FreeBSD.
67937         Clone only the user name, not the entire spec.
67938         Do not set *uid, *gid unless entirely successful.
67939         Avoid memory leak in some failing cases.
67940         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67941         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67942         (parse_user_spec): Rewrite to use parse_with_separator.
67943
67944 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67945
67946         * modules/userspec: Don't depend on alloca.
67947
67948 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67951
67952 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67955         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67956         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67957
67958 2004-08-16  Simon Josefsson  <jas@extundo.com>
67959
67960         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67961         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67962         Add --dry-run for --import.
67963         Let user provided command line parameters override configure.ac
67964         settings.
67965
67966 2004-08-12  Simon Josefsson  <jas@extundo.com>
67967
67968         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67969         as discussed with Paul Eggert in threads rooted at
67970         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67971         and
67972         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67973         Before, the test was empty, and relied on ELIDE_CODE in source
67974         code.)
67975         (gl_PREREQ_GETOPT): New macro.
67976         (gl_GETOPT): Use them.
67977
67978 2004-08-12  Simon Josefsson  <jas@extundo.com>
67979
67980         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67981         * lib/getopt_.h: Renamed from getopt.h.
67982
67983 2004-08-12  Simon Josefsson  <jas@extundo.com>
67984
67985         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67986         Change default library name from libfoo to libgnu.
67987         Now, if you have a configure.ac that says:
67988                 gl_SOURCE_BASE(gl)
67989                 gl_M4_BASE(gl/m4)
67990                 gl_MODULES(error getopt etcetera)
67991                 gl_INIT
67992         you can import all you need by running:
67993                 ../gnulib/gnulib-tool --import
67994
67995         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67996         (Makefile.am): Rewrite, use logic from argz.
67997         (Include): Use <getopt.h> instead of "getopt.h".
67998
67999 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * modules/argp (Files): Add m4/unlocked-io.m4.
68002         (Depends-on): Add extensions.
68003
68004 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68007         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68008         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68009         Check for program_invocation_name, program_invocation_short_name,
68010         flockfile, funlockfile, features.h, _getopt_long_only_r.
68011
68012 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68015         its complicated substitute.
68016         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68017         and program_invocation_name.
68018         (__argp_basename) [!_LIBC]: Remove; the only use was
68019         replaced by its body.
68020         (__argp_short_program_name): Change condition from
68021         !defined __argp_short_program_name to
68022         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68023         to match argp-namefrob.h.
68024         (__argp_failure): Don't assume strerror_r returns char *.
68025         * lib/argp-parse.c (N_): Define unconditionally.
68026         (argp_default_options): Fill out initializers with 0 to avoid
68027         gcc warnings.
68028
68029 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68032         getopt1.c.
68033
68034 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         Merge from coreutils.
68037
68038         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68039
68040         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68041         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68042
68043 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68044
68045         Merge from coreutils.
68046
68047         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68048         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68049         for Reliant Unix 5.43.
68050
68051         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68052         (union fooround): Use uintmax_t, not long int.
68053         The rest is a merge from libc:
68054         [defined _LIBC]: Include <shlib-compat.h>.
68055         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68056
68057         * lib/settime.c (settime): Recode to avoid warning with
68058         Sun Forte C 6U2.
68059
68060         * lib/strverscmp.c: Convert to UTF-8.
68061
68062 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68063
68064         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68065         m4/uintmax_t.m4.
68066
68067 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68068
68069         * modules/xalloc-die: New file.
68070         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68071
68072         * modules/md5 (Files): Add m4/uint32_t.m4.
68073         * modules/sha1: Renamed from modules/sha.
68074         (Files):
68075         Rename lib/sha.h to lib/sha1.h.
68076         Rename lib/sha.c to lib/sha1.c.
68077         Rename m4/sha.m4 to m4/sha1.m4.
68078         (lib_SOURCES): Likewise.
68079         (configure.ac): Rename gl_SHA to gl_SHA1.
68080         (Include): sha.h -> sha1.h.
68081
68082 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68083
68084         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68085         * m4/sha1.m4: Renamed from sha.m4.
68086         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68087
68088 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * lib/obstack.h (obstack_empty_p):
68091         Don't assume that chunk->contents is suitably aligned.
68092         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68093         Likewise. Problem reported by Benno in
68094         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68095
68096         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68097         readable.  This could be improved further but it'd take some work.
68098
68099 2004-08-08  Simon Josefsson  <jas@extundo.com>
68100
68101         * modules/xgethostname (Depends-on): Remove exit and error (not
68102         used).
68103
68104         * modules/getpass-gnu: Add getpass.h.
68105         (Depends-on): Add stdbool.
68106         * modules/getpass: Add getpass.h.
68107
68108 2004-08-08  Simon Josefsson  <jas@extundo.com>
68109
68110         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68111         Check getpass declaration.
68112
68113 2004-08-08  Simon Josefsson  <jas@extundo.com>
68114
68115         * lib/xgethostname.c: Don't include error.h (not used).
68116
68117         * lib/getpass.h: Add.
68118         * lib/getpass.c: Include getpass.h first.
68119
68120 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * lib/xalloc-die.c: New file.
68123         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68124         All uses removed.
68125         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68126         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68127         xalloc-die.c.
68128         (_, N_, xalloc_die): Move to xalloc-die.c.
68129         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68130         so that we needn't mess with xalloc_msg_memory_exhausted.
68131
68132         * lib/sha1.h: Renamed from sha.h.
68133         (SHA1_H): Renamed from _SHA_H.
68134         (sha1_ctx): Renamed from sha_ctx.
68135         (sha1_init_ctx): Renamed from sha_init_ctx.
68136         (sha1_process_block): Renamed from sha_process_block.
68137         (sha1_process_bytes): Renamed from sha_process_bytes.
68138         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68139         (sha1_read_ctx): Renamed from sha_read_ctx.
68140         (sha1_stream): Renamed from sha_stream.
68141         (sha1_buffer): Renamed from sha_buffer.
68142         * lib/sha1.c: Likewise; renamed from sha.c.
68143         Do not include <sys/types.h>.
68144         Include <stddef.h> rather than <stdlib.h>.
68145
68146 2004-08-08  Bruno Haible  <bruno@clisp.org>
68147
68148         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68149         FILESYSTEM_PREFIX_LEN.
68150         * lib/progreloc.c: Likewise.
68151         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68152
68153 2004-08-06  Simon Josefsson  <jas@extundo.com>
68154
68155         * modules/progname (Depends-on): Don't depend on stdbool.
68156
68157 2004-08-06  Simon Josefsson  <jas@extundo.com>
68158
68159         * modules/getsubopt: New file.
68160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68161         getsubopt.
68162
68163 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68164
68165         More merge from coreutils.
68166
68167         * m4/utimens.m4, m4/utimecmp.m4: New files.
68168         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68169         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68170         prereq.m4, sha.m4: Import changes from coreutils.
68171
68172 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         More merge from coreutils.
68175         * modules/raise, modules/readtokens0, modules/utimens:
68176         * modules/utimecmp, module/xnanosleep: New files.
68177         * modules/strftime: Add lib/strftime.h.
68178         Change include from <time.h> to "strftime.h".
68179         * modules/yesno: Add lib/yesno.h.
68180         * modules/backupfile: Remove lib/addext.c.
68181         * modules/euidaccess: Add stat-macros.h.
68182         * modules/canonicalize, modules/euidaccess,
68183         modules/filemode, modules/lchown, modules/makepath,
68184         modules/rmdir, modules/stat: Likewise.
68185
68186 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         Merge from tar.
68189         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68190         SIZE_MAX is a valid preprocessor constant.
68191         (__argp_basename): Change from "#ifndef _LIBC"
68192         to "#ifndef __argp_short_program_name", so that
68193         we don't compile these functions for tar.
68194
68195         More merges from coreutils.
68196         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68197         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68198         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68199         * lib/addext.c: Remove; no longer needed.
68200         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68201         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68202         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68203         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68204         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68205         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68206         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68207         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68208         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68209         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68210         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68211         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68212         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68213         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68214         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68215         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68216         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68217         Import changes from coreutils.
68218
68219 2004-08-05  Simon Josefsson  <jas@extundo.com>
68220
68221         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68222
68223 2004-08-05  Simon Josefsson  <jas@extundo.com>
68224
68225         * m4/getsubopt.m4: New file.
68226
68227 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         Merge from coreutils.
68230
68231         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68232         * m4/getcwd-path-max.m4: New files.
68233
68234         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68235         FILESYSTEM_PREFIX_LEN ->
68236         FILE_SYSTEM_PREFIX_LEN.
68237         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68238         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68239         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68240         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68241
68242         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68243         prerequisite modules now handle the DOS stuff.
68244         Don't check for unistd.h.
68245
68246 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68247
68248         Merge from coreutils.
68249
68250         * lib/.gdb-history: Remove; this doesn't belong here.
68251
68252         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68253         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68254         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68255         * lib/getcwd.c: New files.
68256
68257         * lib/dirname.h: Include <stdbool.h>.
68258         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68259         for consistency with POSIX terminology.  All uses changed.
68260         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68261         (strip_trailing_slashes): Use bool for booleans.
68262         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68263
68264         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68265         sometimes returns a positive errno value even when it succeeds.
68266         (print_errno_message) [!LIBC]: Fall back on strerror if
68267         __strerror_r fails.
68268
68269         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68270         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68271         (longest_relative_suffix): New function.
68272         (path_concat): Use it.  Assume first argument is not NULL.
68273         Port to DOS.  Omit redundant separators.
68274         Report an error instead of returning NULL.
68275         Use mempcpy instead of memcpy.
68276         (xpath_concat): Remove: not declared or used.
68277
68278         * lib/same.h: Include <stdbool.h>
68279         (same_name): Return bool, not int.
68280         * lib/same.c (same_name): Likewise.
68281         (errno): Don't declare; we assume C89 or better now.
68282
68283         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68284         if not already defined.
68285
68286         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68287         * lib/dup-safer.c (errno): Likewise.
68288
68289 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68290
68291         Merge from coreutils.
68292         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68293         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68294         * modules/path-concat: Don't depend on strdup.
68295
68296 2004-08-03  Simon Josefsson  <jas@extundo.com>
68297
68298         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68299         * lib/progname.h: Don't include stdbool.h.
68300
68301 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68304         * MODULES.html.sh (func_all_modules): Remove fatal.
68305
68306 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68309
68310 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68313         working.
68314
68315 2004-08-02  Simon Josefsson  <jas@extundo.com>
68316
68317         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68318         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68319         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68320
68321 2004-08-01  Simon Josefsson  <jas@extundo.com>
68322
68323         * lib/xgetdomainname.c: Include stdlib.h, for free().
68324
68325 2004-07-19  Bruno Haible  <bruno@clisp.org>
68326
68327         * MODULES.html.sh (func_all_modules): Add dummy.
68328
68329 2004-07-16  Simon Josefsson  <jas@extundo.com>
68330
68331         * modules/dummy: New file.
68332
68333 2004-07-16  Simon Josefsson  <jas@extundo.com>
68334
68335         * lib/dummy.c: New file.
68336
68337 2004-07-16  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/backupfile.h: Add extern "C" for C++.
68340         * lib/closeout.h: Likewise.
68341         * lib/copy-file.h: Likewise.
68342         * lib/findprog.h: Likewise.
68343         * lib/full-write.h: Likewise.
68344         * lib/pathname.h: Likewise.
68345         * lib/progname.h: Likewise.
68346         * lib/stpcpy.h: Likewise.
68347         * lib/stpncpy.h: Likewise.
68348         * lib/strcase.h: Likewise.
68349         * lib/strstr.h: Likewise.
68350         * lib/xalloc.h: Likewise.
68351
68352         * lib/mbswidth.h: Add extern "C" for C++.
68353         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68354
68355 2004-07-13  Robert Millan  <robertmh@gnu.org>
68356
68357         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68358
68359 2004-07-09  Simon Josefsson  <jas@extundo.com>
68360
68361         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68362         failed without this.)
68363
68364 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * modules/chown (Files): Add lib/fchown-stub.c, since
68367         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68368
68369 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * lib/fchown-stub.c: New file.
68372
68373 2004-06-24  Jim Meyering  <jim@meyering.net>
68374
68375         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68376
68377 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         * modules/argz: Omit "#include".
68380
68381         * MODULES.html.sh (func_all_modules): Add calloc, to match
68382         2004-06-01 addition of calloc module.
68383
68384 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         * m4/argz.m4: New file, which is autoupdated from libtool.
68387
68388 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68391         libtool.
68392
68393 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * config/srclist-update: Don't insist on "USA." before the
68396         close-comment, as libtool omits the period and puts the */ on a
68397         separate line.
68398         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68399         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68400
68401 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68402
68403         * modules/argz: New file.
68404         * MODULES.html.sh (func_all_modules): Add argz.
68405
68406 2004-06-12  Jim Meyering  <jim@meyering.net>
68407         and  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * modules/hash (Files): Add lib/xalloc.h.
68410         * modules/pipe (Depends-on): Add wait-process.
68411         * modules/stat (Depends-on): Add xalloc.
68412         * modules/userspec (Files): Add lib/userspec.h.
68413         * modules/xstrto
68414
68415         Upgrade from gettext-0.13.
68416         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68417         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68418         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68419
68420 2004-06-10  Jim Meyering  <jim@meyering.net>
68421
68422         * lib/calloc.c: New file.
68423
68424 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * lib/getdate.y (yylex): Allow space between sign and number.
68427         Problem reported by Dan Jacobson.
68428
68429 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         Merge from coreutils CVS.
68432
68433         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68434         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68435         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68436         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68437         xstrtol.m4: Fix copyright date and/or serial number.
68438
68439         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68440         See if we need an fchown replacement.
68441         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68442         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68443         and use the replacement function if we detect either defect.
68444
68445         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68446         gl_UTIMECMP.
68447
68448 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68449         and  Jim Meyering  <jim@meyering.net>
68450
68451         Merge from coreutils CVS.
68452
68453         * lib/stat-macros.h: New file, with contents from file-type.h
68454         and coreutils' system.h.
68455         * lib/file-type.c: Include "stat-macros.h".
68456         * lib/file-type.h (file_type): Move all macro definitions to new file,
68457         stat-macros.h.
68458
68459         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68460         Wrap old code with this conditional.
68461         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68462         function that does not dereference symlinks.
68463         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68464
68465         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68466         dependency problems.
68467         (xreadlink): Accept new arg SIZE, for efficiency.
68468         All decls and uses changed.
68469         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68470
68471         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68472         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68473
68474         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68475         sysexits.h.
68476
68477 2004-06-01  Jim Meyering  <jim@meyering.net>
68478
68479         * m4/calloc.m4: New file.
68480
68481 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68482
68483         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68484         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68485         Also, fix a typo in a diagnostic.
68486
68487 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68490         or AC_FUNC_REALLOC.
68491
68492 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68495         macros to be defined.
68496         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68497         the allocator returns NULL because the requested size is zero.
68498
68499 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68500
68501         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68502         var.  Add comment explaining why libc still defines it.  This
68503         merges the following patch from glibc:
68504         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68505
68506 2004-05-20  Andreas Schwab  <schwab@suse.de>
68507
68508         * m4/free.m4: Replace free if it not known to work, not the other
68509         way round.
68510
68511 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68514         present in glibc since revision 1.1 of this file.
68515         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68516         obstack_alignment_mask, obstack_alloc, obstack_base,
68517         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68518         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68519         obstack_grow0, obstack_init, obstack_int_grow,
68520         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68521         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68522         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68523         nonexistent functions.
68524
68525 2004-05-18  Karl Berry  <karl@gnu.org>
68526
68527         * config/srclist.txt: break link for vasnprintf.c.
68528
68529 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         Port obstack to the AS/400, where pointers are 16 bytes wide and
68532         you cannot cast an integer to a valid pointer.  This patch is
68533         currently waiting to be integrated into glibc; see
68534         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68535
68536         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68537         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68538         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68539         (struct obstack): temp member is now a union of a pointer and
68540         an integer, instead of an integer.  All integer uses changed.
68541         This does not affect the physical layout of struct obstack,
68542         except on hosts (like the AS/400) where the size or alignment of
68543         void * is greater than that of ptrdiff_t.
68544         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68545         __STDC__)]: Store temporary in pointer member of union, not
68546         integer member.
68547         * lib/obstack.c: Include <stddef.h>, for offsetof.
68548         (struct fooalign): Remove; it doesn't need a name.
68549         (union fooround): Change double to long double, and add void *.
68550         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68551         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68552         not a macro.  Hence the values are always int; so remove all
68553         casts-to-int in uses.
68554
68555 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68558         we can get this patch merged into glibc.
68559
68560 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68561             Paul Eggert  <eggert@cs.ucla.edu>
68562
68563         * m4/argp: Depend on alloca.
68564
68565 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68566             Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68569         freecoding.
68570
68571 2004-05-17  Bruno Haible  <bruno@clisp.org>
68572
68573         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68574         precision that consists of a '.' followed by an empty digit string.
68575         Patch by Tor Lillqvist <tml@iki.fi>.
68576
68577 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68580         for backward compatibility with older code.  We need our own
68581         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68582         it under some other name, and our alloca.h will define it.
68583
68584 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68585             Derek Price  <derek@ximbiot.com>
68586
68587         * lib/alloca.c: Include <alloca.h>, to get our interface.
68588         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68589         include <alloca.h> first.  Use C89 prototype for alloca; this
68590         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68591         Use #elif for simplicity, since we can assume C89 now.
68592         Don't try to source the system alloca.h since it will not be found
68593         and to prevent recursively including its replacement.
68594         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68595         * lib/regex.c: Likewise.
68596
68597 2004-05-16  Derek Price  <derek@ximbiot.com>
68598             Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         getline cleanup.  This changes the getndelim2 API: both order of
68601         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68602         no delimiter).
68603
68604         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68605         interface does that.
68606         (getline): Always use getdelim, so that we don't have two
68607         copies of this code.
68608         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68609         if available.
68610         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68611         (GETNDELIM2_MAXIMUM): New macro.
68612         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68613         instead of the old practice of delim2==0.  All callers changed.
68614         Return -1 on overflow, instead of returning junk.
68615         Do not set *linesize unless allocation succeeds.
68616         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68617         that we include sys/types.h.
68618         * lib/getnline.h: Likewise.
68619         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68620         (getndelim2): Reorder arguments.
68621         * lib/getnline.c (getnline, getndelim):
68622         Don't discard the NMAX argument.
68623         (getnline): Invoke getndelim, to avoid code duplication.
68624         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68625         of (size_t) -1 by callers of the getnline family.
68626
68627 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68630         Check for gettimeofday.
68631         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68632         Check for settimeofday, stime.
68633
68634 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * lib/nanosleep.c (suspended): Change its type from int to
68637         sig_atomic_t volatile.
68638         (first_call): Make it private to rpl_nanosleep, and have it
68639         be zero initially as that's a bit faster.
68640         (my_usleep): Round up fractional times instead of truncating them,
68641         as this is the usual meaning for 'sleep'.
68642
68643         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68644         doesn't work.
68645         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68646         (ENOSYS): Define if not defined.
68647         (settime): Fall back on stime if it exists and settimeofday fails.
68648         But don't bother with fallbacks if a method fails with errno == EPERM.
68649
68650 2004-05-11  Jim Meyering  <jim@meyering.net>
68651
68652         Prior to this change, the save_cwd caller required read access to the
68653         current directory on most systems (ones with the fchdir function).
68654
68655         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68656         fails, try write-only, and finally, resort to using xgetcwd.
68657
68658 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * lib/obstack.c, obstack.h: Import changes from libc.
68661
68662 2004-04-28  Bruno Haible  <bruno@clisp.org>
68663
68664         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68665         also implicitly appends .exe to executables.
68666         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68667         accepts Windows pathnames.
68668         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68669         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68670         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68671         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68672         Reported by Derek Robert Price <derek@ximbiot.com>.
68673
68674 2004-04-21  Karl Berry  <karl@gnu.org>
68675
68676         * config/srclist.txt (localcharset.c): break sync.
68677
68678 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68679
68680         * m4/host-os.m4: Add a copyright notice.
68681
68682 2004-04-20  Jim Meyering  <jim@meyering.net>
68683
68684         Change UTILS_ to gl_ in AC_DEFINE'd names.
68685         Change utils_- and jm_-prefixed variables, too.
68686         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68687         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68688         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68689
68690         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68691         Don't emit trailing blanks.
68692         Also rename jm_-prefixed variables to have gl_ prefix.
68693
68694         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68695         Also rename jm_-prefixed variables to have gl_ prefix.
68696
68697         * m4/jm-macros.m4: Reflect the renamings.
68698         * m4/prereq.m4: Likewise.
68699
68700 2004-04-20  Jim Meyering  <jim@meyering.net>
68701
68702         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68703         memory.
68704
68705 2004-04-20  Jim Meyering  <jim@meyering.net>
68706             Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68709         memory when realloc fails.
68710
68711 2004-04-19  Jim Meyering  <jim@meyering.net>
68712
68713         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68714         now that readutmp.c may call `free (0)'.
68715
68716 2004-04-19  Bruno Haible  <bruno@clisp.org>
68717
68718         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68719         * m4/inttypes_h.m4: Likewise.
68720         * m4/stdint_h.m4: Likewise.
68721         * m4/intmax_t.m4: Likewise.
68722         * m4/uintmax_t.m4: Likewise.
68723
68724 2004-04-18  Jim Meyering  <jim@meyering.net>
68725
68726         * m4/prereq.m4: Don't forbid jm_ prefix.
68727
68728         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68729         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68730         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68731         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68732         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68733         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68734         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68735         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68736         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68737         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68738         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68739         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68740         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68741         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68742         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68743         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68744         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68745         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68746         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68747
68748 2004-04-18  Jim Meyering  <jim@meyering.net>
68749
68750         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68751         failure, don't leak memory and do call END_UTMP_ENT.
68752
68753 2004-04-16  Jim Meyering  <jim@meyering.net>
68754
68755         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68756         coreutils' stat program.
68757         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68758
68759 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68760
68761         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68762         C89.
68763         (CHAR_BIT): Remove, since we assume C89.
68764         Include <stdint.h> if available, as per current Autoconf CVS advice.
68765
68766 2004-03-31  Jim Meyering  <jim@meyering.net>
68767
68768         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68769         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68770         * m4/xalloc.m4: Likewise.
68771
68772 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68773
68774         Merge from coreutils.
68775
68776         * m4/inttostr.m4: New file.
68777         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68778         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68779         Require gl_CLOCK_TIME.
68780         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68781
68782 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68783
68784         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68785         not bool, to be more consistent with Unix conventions.
68786         Suggested by Bruno Haible.
68787
68788         Merge from coreutils.
68789
68790         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68791         * lib/umaxtostr.c: New files.
68792
68793         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68794         the usual <time.h> dance.
68795         (get_date): Change signature to support fractional time stamps.
68796         All callers changed.
68797         * lib/getdate.y: Include "getdate.h" first, as we can now
68798         assume C89 and don't need to worry about 'const'.
68799         Similarly, include "unlocked-io.h" near start, not in middle.
68800         Include <limits.h>.
68801         (textint.value): Use long int rather than int.
68802         (textint.digits): Use size_t rather than int.
68803         (BILLION, LOG10_BILLION): New constants.
68804         (parser_control): New member rel_ns.  Members day_ordinal,
68805         time_zone, month, day, hour, minutes, rel_year, rel_month,
68806         rel_day, rel_hour, rel_minutes, rel_seconds
68807         are now long int, not int.  Member seconds is now struct timespec,
68808         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68809         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68810         not int.
68811         (%union.intval): Now long int, not int.
68812         New member timespec.
68813         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68814         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68815         (spec): Now is a timespec or an item list.
68816         (timespec, items): New nonterminals.
68817         (time, rel, relunit, number, get_date):
68818         Add support for fractional seconds.
68819         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68820         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68821         (to_hour): First arg is now long int, not int.
68822         (to_year): Returns long int, not int.
68823         Don't treat year -70 like 70.
68824         (tm_diff): Returns long int, not int.
68825         (lookup_word): Use bool instead of int when appropriate.
68826         (yylex): Use size_t for count, not int.
68827         Detect overflow when parsing large integer constants.
68828         Add support for fractions.
68829         (get_date): Make pointers 'const' if possible.
68830         Use more-portable code to detect integer overflow.
68831         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68832         Don't use ctime; it's not reliable if the year has >4 digits.
68833
68834         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68835         This is for compatibility with BSD.
68836
68837         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68838         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68839         From coreutils' system.h.
68840
68841         * lib/userspec.c: Don't include "posixver.h".
68842         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68843         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68844         compatible extension.  Simplify code by removing a boolean int
68845         that was always nonzero if a string was nonnull.
68846
68847 2004-03-30  Jim Meyering  <jim@meyering.net>
68848
68849         Merge from coreutils.
68850
68851         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68852         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68853         on some systems one must include <grp.h> before it.
68854         Reported by Christian Krackowizer.
68855
68856 2004-03-30  Jim Meyering  <jim@meyering.net>
68857
68858         Merge from coreutils.
68859
68860         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68861
68862         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68863         an empty input stream.
68864
68865         * lib/readtokens.c: Include <stdbool.h>.
68866         (readtoken): Use `size_t' rather than int/long.
68867         All callers adjusted.
68868         Use `bool' rather than `int' where appropriate.
68869         Use memset rather than an explicit loop.
68870         Use x2nrealloc rather than xrealloc.
68871         Allow the use of `\0' as a delimiter.
68872         (readtokens): Likewise.
68873         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68874
68875 2004-03-30  Jim Meyering  <jim@meyering.net>
68876
68877         * m4/realloc.m4: Remove file, since now it does no more than
68878         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68879         the `configure.ac' section of module/realloc.
68880         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68881
68882 2004-03-30  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68885         nonnull.
68886
68887 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68888
68889         Merge changes to getloadavg.c from coreutils and Emacs.
68890
68891         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68892         Define to an expression, not to the empty string.
68893         Include cloexec.h and xalloc.h.
68894         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68895         Use set_cloexec_flag rather than rolling our own.
68896         * lib/cloexec.c, lib/cloexec.h: New files.
68897
68898 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68899
68900         * m4/cloexec.m4: New file.
68901
68902 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68903
68904         * lib/getopt.h: Sync with libc CVS.
68905
68906 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68907             Bruno Haible  <bruno@clisp.org>
68908
68909         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68910         mbswidth.
68911
68912 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68913             Bruno Haible  <bruno@clisp.org>
68914
68915         * lib/mbswidth.h: Include <wchar.h> only if
68916         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68917         <wchar.h>.
68918         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68919
68920 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68921
68922         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68923         Sync with libc CVS.
68924         * lib/getopt_int.h: New file, also synced from libc.
68925
68926 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68927
68928         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68929         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68930         Bring back getopt.c, getopt.h, getopt1.c.
68931
68932 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68933
68934         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68935         All uses changed.  Check for sa_sigaction member; this fixes
68936         a bug first reported by Jason Andrade in
68937         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68938
68939 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68940
68941         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68942         '#if' expressions.  Unlike the code it replaces, it does not
68943         depend on (defined _SC_PAGESIZE).  However, it does depend on
68944         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68945         first reported by Jason Andrade in
68946         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68947
68948 2004-02-25  Simon Josefsson  <jas@extundo.com>
68949
68950         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68951
68952 2004-02-25  Simon Josefsson  <jas@extundo.com>
68953
68954         * lib/strdup.h: New file.
68955         * lib/strdup.c: Include it.
68956         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68957         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68958
68959 2004-02-23  Karl Berry  <karl@gnu.org>
68960
68961         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68962         (from fencepost.gnu.org:/gd/gnuorg).
68963
68964 2004-02-23  Karl Berry  <karl@gnu.org>
68965
68966         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68967         * config/srclist.txt: add maintain/standards documents.
68968
68969 2004-02-18  Bruno Haible  <bruno@clisp.org>
68970
68971         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68972         Reported by Derek Robert Price <derek@ximbiot.com>.
68973
68974 2004-02-16  Karl Berry  <karl@gnu.org>
68975
68976         * config/mkinstalldirs, install-sh: update from automake.
68977
68978 2004-02-06  Karl Berry  <karl@gnu.org>
68979
68980         * m4/po.m4: update from gettext 0.14.1.
68981
68982 2004-02-06  Karl Berry  <karl@gnu.org>
68983
68984         * lib/config.charset: update from gettext 0.14.1.
68985
68986 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68987
68988         Add comments and code, prompted by suggestions from Bruno Haible
68989         for sh-quote.
68990         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68991         describing the enum quoting_style values.
68992         * lib/quotearg.c (quotearg_alloc): New function.
68993         (quotearg_buffer_restyled): Treat lone { and } as special.
68994         Treat = as special.  Work around bug with older shells
68995         that "see" a '\' that is really the 2nd byte of a multibyte char.
68996         Quote empty string with shell_quoting_style.
68997
68998 2004-02-03  Bruno Haible  <bruno@clisp.org>
68999
69000         * m4/pipe.m4: New file, from GNU gettext.
69001
69002 2004-02-03  Bruno Haible  <bruno@clisp.org>
69003
69004         * lib/pipe.h: New file, from GNU gettext.
69005         * lib/pipe.c: New file, from GNU gettext.
69006
69007 2004-01-27  Bruno Haible  <bruno@clisp.org>
69008
69009         * m4/execute.m4: New file, from GNU gettext.
69010
69011 2004-01-27  Bruno Haible  <bruno@clisp.org>
69012
69013         * lib/execute.h: New file, from GNU gettext.
69014         * lib/execute.c: New file, from GNU gettext.
69015         * lib/w32spawn.h: New file, from GNU gettext.
69016
69017 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69018
69019         Merge from diffutils.
69020
69021         * lib/file-type.c (file_type): Add typed memory objects.
69022         * lib/file-type.h (S_TYPEISTMO): New macro.
69023
69024         * lib/c-stack.h (c_stack_action): Remove argv argument.
69025         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69026         (die): Don't calculate message unless segv_action returns.
69027         (get_stack_location, min_address_from_argv, max_address_from_argv,
69028         volatile stack_base, volatile_stack_size): Remove.
69029         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69030         that every segmentation violation is a stack overflow.  (Ouch!)
69031         See Debian bug 136249 (still outstanding) for more info about why
69032         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69033
69034 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69035
69036         Exit-status fix from coreutils.
69037
69038         Use exit_failure consistently in place of EXIT_FAILURE,
69039         so that program exit statuses are consistent on failure.
69040
69041         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69042         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69043         * lib/argmatch.h: Comment fix to match the above.
69044         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69045         Now a macro referring to exit_failure, instead of a separate
69046         variable.  Include "exitfail.h" to get it.
69047         * lib/xstrtol.h: Include "exitfail.h".
69048         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69049
69050         * lib/long-options.c (parse_long_options): Use prototype
69051         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69052         for clarity.
69053
69054 2004-01-21  Jim Meyering  <jim@meyering.net>
69055
69056         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69057         so as not to conflict with a different-sized __mktime_internal
69058         function in GNU libc.
69059         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69060         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69061
69062 2004-01-20  Karl Berry  <karl@gnu.org>
69063
69064         * config/config.guess: update from config.
69065
69066         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69067
69068 2004-01-20  Bruno Haible  <bruno@clisp.org>
69069
69070         Safer stack allocation.
69071         * lib/setenv.c: Include allocsa.h.
69072         (alloca): Remove fallback definition.
69073         (freea): Remove macro.
69074         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69075         instead of freea.
69076
69077 2004-01-20  Bruno Haible  <bruno@clisp.org>
69078
69079         * m4/eealloc.m4: New file, from GNU gettext.
69080
69081 2004-01-20  Bruno Haible  <bruno@clisp.org>
69082
69083         * m4/allocsa.m4: New file, from GNU gettext.
69084
69085 2004-01-20  Bruno Haible  <bruno@clisp.org>
69086
69087         * lib/xallocsa.h: New file, from GNU gettext.
69088         * lib/xallocsa.c: New file, from GNU gettext.
69089
69090 2004-01-20  Bruno Haible  <bruno@clisp.org>
69091
69092         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69093
69094 2004-01-20  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69097         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69098         specially.
69099
69100 2004-01-20  Bruno Haible  <bruno@clisp.org>
69101
69102         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69103         patch.
69104
69105 2004-01-20  Bruno Haible  <bruno@clisp.org>
69106
69107         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69108
69109 2004-01-20  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/eealloc.h: New file.
69112
69113 2004-01-20  Bruno Haible  <bruno@clisp.org>
69114
69115         * lib/binary-io.h: Avoid warnings on Cygwin.
69116
69117 2004-01-20  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/allocsa.h: New file, from GNU gettext.
69120         * lib/allocsa.c: New file, from GNU gettext.
69121
69122 2004-01-18  Karl Berry  <karl@gnu.org>
69123
69124         * doc/gpl.texi, doc/lgpl.texi: new files.
69125
69126 2004-01-18  Karl Berry  <karl@gnu.org>
69127
69128         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69129         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69130
69131 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69132
69133         Merge from coreutils.
69134
69135         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69136         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69137         (gl_DEFAULT_POSIX2_VERSION): Move
69138         the documentation from 'configure' into 'config.hin',
69139         so that 'configure --help' isn't burdened by it and
69140         we don't have to worry about its formatting there.
69141         Reword the documentation so that it's more succinct
69142         and can be run together into a single paragraph.
69143         * m4/same.m4 (gl_SAME): Check for pathconf.
69144
69145 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69146
69147         Merge from coreutils.
69148
69149         * lib/posixver.c: Include posixver.h.
69150
69151         * lib/same.c: Include <stdbool.h>, <limits.h>.
69152         (_POSIX_NAME_MAX): Define if not defined.
69153         (MIN): New macro.
69154         (same_name): If file names are silently truncated, report
69155         that the file names are the same if they are the same after
69156         the silent truncation.
69157
69158         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69159         conversion function.
69160         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69161         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69162         longer needed.
69163
69164 2004-01-15  Jim Meyering  <jim@meyering.net>
69165
69166         Merge from coreutils.
69167
69168         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69169         if no library is required.
69170         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69171         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69172         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69173         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69174         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69175         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69176         value, $ac_cv_search_crypt, if it's "none required".
69177         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69178         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69179         not gl_FUNC_GETLOADAVG.
69180         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69181         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69182
69183 2004-01-15  Jim Meyering  <jim@meyering.net>
69184
69185         Merge from coreutils.
69186
69187         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69188         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69189         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69190
69191         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69192         optional configure-time default.
69193
69194         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69195
69196         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69197
69198 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69199
69200         Merge from coreutils.
69201
69202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69203         value, $ac_cv_search_nanosleep, if it's "none required".
69204
69205 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69206
69207         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69208         with like-named macro in fnmatch.c.
69209         (EXT): Use an internal constant instead.
69210
69211         Merge fnmatch patches from glibc.
69212         * lib/fnmatch.c (mbsinit): Remove define.
69213         Add libc_hidden_ver (__fnmatch, fnmatch).
69214         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69215         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69216
69217 2004-01-14  Karl Berry  <karl@gnu.org>
69218
69219         * config/install-sh: update from automake.
69220
69221 2004-01-13  Karl Berry  <karl@gnu.org>
69222
69223         * config/install-sh: update from automake.
69224
69225 2004-01-09  Karl Berry  <karl@gnu.org>
69226
69227         * config/install-sh: update from automake.
69228
69229 2004-01-05  Karl Berry  <karl@gnu.org>
69230
69231         * config/config.{sub,guess}: update from config.
69232
69233 2003-12-31  Karl Berry  <karl@gnu.org>
69234
69235         * config/depcomp: update from automake.
69236
69237 2003-12-14  Karl Berry  <karl@gnu.org>
69238
69239         * lib/config.charset: update from gettext-runtime.
69240
69241 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69242
69243         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69244         Bug reported by Alfred M. Szmidt.
69245
69246 2003-12-03  Bruno Haible  <bruno@clisp.org>
69247
69248         * m4/gettext.m4: Upgrade from gettext-0.13.
69249         * m4/po.m4: Upgrade from gettext-0.13.
69250         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69251         * m4/intmax.m4: New file, from gettext-0.13.
69252         * m4/printf-posix.m4: New file, from gettext-0.13.
69253
69254 2003-11-29  Karl Berry  <karl@gnu.org>
69255
69256         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69257
69258 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69259             Bruno Haible  <bruno@clisp.org>
69260
69261         * lib/printf-parse.h: Don't include sys/types.h.
69262         (ARG_NONE): New macro.
69263         (char_directive): Change type of *arg_index fields to size_t.
69264         * lib/printf-parse.c: Don't include sys/types.h.
69265         (SSIZE_MAX): Remove macro.
69266         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69267         Remove unnecessary overflow check.
69268         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69269         fields.
69270
69271 2003-11-25  Bruno Haible  <bruno@clisp.org>
69272
69273         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69274
69275 2003-11-25  Bruno Haible  <bruno@clisp.org>
69276
69277         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69278         gt_TYPE_SSIZE_T.
69279
69280 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69281
69282         * modules/alloca: Remove dependency on xalloc.
69283
69284 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69285
69286         * lib/alloca.c: Remove dependency on xalloc module.
69287         (xalloc_die): Remove.
69288         (memory_full) [!defined emacs]: New macro.
69289         [!defined emacs]: Don't include xalloc.h.
69290         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69291         address arithmetic overflows.  Change datatypes a bit to avoid
69292         unnecessary casts.
69293
69294 2003-11-22  Jim Meyering  <jim@meyering.net>
69295
69296         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69297         s/size/size_t/.
69298
69299 2003-11-21  Karl Berry  <karl@gnu.org>
69300
69301         * config/config.{sub,guess}: update from config.
69302
69303 2003-11-18  Karl Berry  <karl@gnu.org>
69304
69305         * config/config.{sub,guess}: update from config.
69306
69307         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69308
69309 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69310
69311         * README: Mention that S+T cannot overflow if S is the size of
69312         an existing object and T is sufficiently small.
69313
69314 2003-11-17  Jim Meyering  <jim@meyering.net>
69315
69316         On systems without utime and without a utimes function capable of
69317         dealing with a NULL struct utimbuf* argument, this utime replacement
69318         could -- in unusual circumstances -- leak a file descriptor.
69319         * lib/utime.c: Include <unistd.h> and <errno.h>.
69320         (utime_null): Be sure to close `fd' and to preserve errno.
69321         Reported by Geoff Collyer via Arnold Robbins.
69322
69323 2003-11-17  Bruno Haible  <bruno@clisp.org>
69324
69325         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69326         (Depends-on): Add xsize.
69327
69328 2003-11-17  Bruno Haible  <bruno@clisp.org>
69329
69330         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69331
69332 2003-11-17  Bruno Haible  <bruno@clisp.org>
69333
69334         * lib/vasnprintf.c (alloca): Remove fallback definition.
69335         (freea): Remove definition.
69336         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69337         Reported by Paul Eggert.
69338
69339 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69340             Bruno Haible  <bruno@clisp.org>
69341
69342         Protect against address arithmetic overflow.
69343         * lib/printf-args.h: Include stddef.h.
69344         (arguments): Change type of field 'count' to size_t.
69345         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69346         'unsigned int' where appropriate.
69347         * lib/printf-parse.h: Include sys/types.h.
69348         (char_directive): Change type of *arg_index fields to ssize_t.
69349         (char_directives): Change type of fields 'count', max_*_length to
69350         size_t.
69351         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69352         (SSIZE_MAX): Define fallback value.
69353         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69354         instead of 'int' where appropriate. Check a_allocated, d_allocated
69355         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69356         * lib/vasnprintf.c: Include xsize.h.
69357         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69358         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69359         overflow. Avoid wraparound when converting a width or precision from
69360         decimal to binary.
69361
69362 2003-11-16  Bruno Haible  <bruno@clisp.org>
69363
69364         Update from GNU gettext.
69365         * lib/printf-parse.c: Generalize to it can be compiled for wide
69366         strings.
69367         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69368         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69369         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69370         SNPRINTF): New macros.
69371         Don't include <alloca.h> if the file is used inside libintl.
69372         (local_wcslen): New function, for Solaris 2.5.1.
69373         (VASNPRINTF): Use it instead of wcslen.
69374
69375 2003-11-16  Bruno Haible  <bruno@clisp.org>
69376
69377         * lib/xsize.h (xmax): New function.
69378         (xsum, xsum3, xsum4): Declare as "pure" functions.
69379
69380 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69381
69382         * modules/xalloc (Files): Undo latest change, since xalloc.h
69383         no longer needs SIZE_MAX or PTRDIFF_MAX.
69384
69385 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69386
69387         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69388         gl_PTRDIFF_MAX.
69389
69390 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69391
69392         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69393         "return", to pacify some unknown compiler.  Problem reported
69394         by Joerg Schilling.
69395
69396 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69397
69398         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69399         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69400         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69401         heuristic is just as accurate as far as we know, and it removes a
69402         dependency on size_max.m4 and ptrdiff_max.m4.
69403
69404 2003-11-11  Bruno Haible  <bruno@clisp.org>
69405
69406         * modules/xsize (Files): Add m4/size_max.m4.
69407         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69408
69409 2003-11-11  Bruno Haible  <bruno@clisp.org>
69410
69411         * m4/size_max.m4: New file.
69412         * m4/ptrdiff_max.m4: New file.
69413         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69414         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69415         (gl_XALLOC): Invoke it.
69416
69417 2003-11-11  Bruno Haible  <bruno@clisp.org>
69418
69419         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69420         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69421         defined.
69422
69423 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69424
69425         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69426         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69427         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69428         From Bruno Haible.
69429         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69430         not (size_t) -1, since it's defined here.
69431
69432 2003-11-09  Karl Berry  <karl@gnu.org>
69433
69434         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69435
69436 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69437
69438         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69439         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69440         Reject sizes of exactly SIZE_MAX bytes.
69441         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69442         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69443
69444 2003-11-05  Bruno Haible  <bruno@clisp.org>
69445
69446         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69447         SIZE_MAX defined in <limits.h> on Solaris.
69448
69449 2003-11-04  Jim Meyering  <jim@meyering.net>
69450
69451         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69452         variable names, rather than @VAR@.
69453         * modules/poll: Likewise.
69454
69455 2003-11-04  Bruno Haible  <bruno@clisp.org>
69456
69457         * modules/xsize: New file.
69458         * modules/linebreak: Depend on xsize.
69459         * MODULES.html.sh (func_all_modules): Add xsize.
69460
69461 2003-11-04  Bruno Haible  <bruno@clisp.org>
69462
69463         * m4/xsize.m4: New file.
69464
69465 2003-11-04  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/xsize.h: New file.
69468         * lib/linebreak.c: Include xsize.h.
69469         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69470         argument for overflow.
69471         Suggested by Paul Eggert.
69472
69473 2003-11-03  Karl Berry  <karl@gnu.org>
69474
69475         * config/config.{guess,sub}: update from config.
69476
69477 2003-11-03  Jim Meyering  <jim@meyering.net>
69478
69479         * modules/userspec (lib_SOURCES): Add userspec.h.
69480         (Include): Add "userspec.h".
69481         Improve description.
69482
69483 2003-11-03  Jim Meyering  <jim@meyering.net>
69484
69485         * lib/userspec.c: Include "userspec.h".
69486         * lib/userspec.h: New file.
69487
69488 2003-11-03  Bruno Haible  <bruno@clisp.org>
69489
69490         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69491
69492 2003-11-03  Bruno Haible  <bruno@clisp.org>
69493
69494         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69495         available, to avoid (extremely rare) race condition.
69496         Suggested by Paul Eggert.
69497
69498 2003-11-02  Karl Berry  <karl@gnu.org>
69499
69500         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69501
69502 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69503
69504         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69505         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69506         (read_filesystem_list): Set and use me_type_malloced.
69507         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69508         whatever the type happens to be), for brevity and consistency.
69509         Check for size calculation overflow on Alphas running OSF/1.
69510
69511 2003-10-31  Jim Meyering  <jim@meyering.net>
69512
69513         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69514
69515         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69516
69517 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69518             Bruno Haible  <bruno@clisp.org>
69519
69520         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69521         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69522
69523 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69524
69525         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69526         netbsd*-gnu*.  Suggested by Robert Millan.
69527
69528 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69529
69530         * modules/group-member: Depend on stdbool.
69531
69532 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69533
69534         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69535
69536 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69537
69538         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69539         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69540         after the 'gnu' in these cases.  This fixes some bugs in the
69541         previous change, and is based on suggestions by Robert Millan.
69542
69543 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69544
69545         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69546         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69547         no longer needed.
69548         * lib/quotearg.c (quotearg_n_options): Use it.
69549         * lib/group-member.c: Include <stdbool.h>.
69550         (free_group_info): Arg is now const *; don't free arg.
69551         (get_group_info): Now returns bool and accepts struct group_info *,
69552         rather than returning a malloc'ed struct group_info *.
69553         All uses changed.  Check for overflow in internal size calculation.
69554
69555         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69556         rather than xmalloc/xrealloc.
69557         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69558         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69559         conformance bug: the old code used a pointer after freeing the
69560         storage that it addressed.
69561         * lib/hash.c (hash_initialize): Simplify the code by using
69562         xalloc_oversized rather than doing it by hand.
69563         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69564         the buffer preserved.  Use free and xmalloc instead.
69565         * lib/quotearg.c (quotearg_n_options): Likewise.
69566         Use a simpler test for size overflow.  Don't use xalloc_oversized
69567         because unsigned int might be wider than size_t (!); this suggests
69568         that we should switch from unsigned int to size_t for slot numbers.
69569
69570 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69571
69572         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69573         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69574         NetBSD kernels.  Requested by Richard Stallman.
69575
69576 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69577
69578         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69579         to allocate the returned structure.  Do not allocate a subarray,
69580         as x2nrealloc will do that.
69581         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69582         instead of xnrealloc.
69583         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69584
69585 2003-10-27  Bruno Haible  <bruno@clisp.org>
69586
69587         * lib/stdbool_.h: Better support for BeOS.
69588
69589 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69590
69591         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69592         now uses inline.
69593
69594 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69595
69596         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69597         callers that want to do their own size-overflow checking.  Include
69598         <stdbool.h>, since xalloc_oversized returns bool.
69599         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69600         to use xalloc_oversized.
69601
69602         Add two functions x2realloc, x2nrealloc, for programs that grow
69603         arrays dynamically by doubling their sizes.
69604         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69605         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69606         New functions.
69607
69608         Port to C99 semantics for 'inline' of external functions.
69609         Bug reported by Bruno Haible.
69610         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69611         with the old contents of xnmalloc.
69612         (xnmalloc, xmalloc): Use it.
69613         (xnrealloc_inline): New static inline function,
69614         with the old contents of xnrealloc.
69615         (xnrealloc, xrealloc): Use it.
69616
69617         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69618         that.
69619
69620 2003-10-26  Karl Berry  <karl@gnu.org>
69621
69622         * config/srclist.txt (COPYING.DOC): no longer available from
69623         /gd/gnuorg; don't know where the ultimate source is.
69624
69625 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69626
69627         Fix several address-calculation bugs in the hash modules,
69628         plus some minor code cleanup.
69629
69630         * lib/hash.h: Include <stdbool.h>, for bool.
69631         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69632         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69633         hash_get_n_entries, hash_get_max_bucket_length,
69634         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69635         hash_rehash): Use size_t rather than unsigned.
69636         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69637         hash_get_n_buckets_used, hash_get_n_entries,
69638         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69639         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69640         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69641         Likewise.
69642         (SIZE_MAX): Define if not defined.
69643         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69644         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69645         hash_print):
69646         Use const * when possible.
69647         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69648         (check_tuning): Fix bug: if tuning parameters were very close to
69649         0 or 1, rounding errors could have caused subscript violations.
69650         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69651         (hash_initialize): Add 'fail:' label
69652         to free table and return NULL, and use it to simplify code.
69653         Use calloc rather than clearing the storage ourself.
69654         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69655         buffer size calculations.
69656         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69657         Include <stddef.h>, for size_t.
69658         * lib/hash-pjw.c (hash_pjw): Likewise.
69659         Switch to method described by Bruno Haible.
69660         Include <limits.h>, for CHAR_BIT.
69661         (SIZE_BITS): New macro.
69662
69663 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69664
69665         * m4/getline.m4 (AM_FUNC_GETLINE):
69666         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69667         hosts.  Problem reported by Derek Robert Price in
69668         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69669         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69670         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69671
69672 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69673
69674         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69675         ceiling the allocation at NMAX bytes rather than silently
69676         discarding input bytes before NMAX is reached.  This makes
69677         a difference only if NMAX exceeds SIZE_MAX / 2.
69678
69679         * lib/obstack.c: Merge from glibc.
69680         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69681         Add libc_hidden_def (_obstack_newchunk).
69682         (_obstack_free) [! defined _LIBC]: Remove.
69683         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69684         a clone of the function body.
69685         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69686         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69687
69688         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69689         glibc.
69690         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69691         arg to memcpy.
69692
69693         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69694         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69695         Don't use lvalue casts, as GCC plans to remove support for them
69696         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69697         was also present in the non-GCC version, indicating that this
69698         code had always been buggy and had never been widely used.
69699         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69700         Use the fast variant of each macro, rather than copying the
69701         definiens of the fast variant; that way, we'll be more likely to
69702         catch future bugs in the fast variants.
69703
69704 2003-10-20  Bruno Haible  <bruno@clisp.org>
69705
69706         * modules/wait-process: New file.
69707         * MODULES.html.sh (func_all_modules): Add wait-process.
69708
69709 2003-10-20  Bruno Haible  <bruno@clisp.org>
69710
69711         * m4/wait-process.m4: New file.
69712
69713 2003-10-20  Bruno Haible  <bruno@clisp.org>
69714
69715         * lib/wait-process.h: New file, from GNU gettext.
69716         * lib/wait-process.c: New file, from GNU gettext.
69717
69718 2003-10-19  Jim Meyering  <jim@meyering.net>
69719
69720         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69721         HPUX 10.20.
69722
69723 2003-10-18  Karl Berry  <karl@gnu.org>
69724
69725         * config/config.guess: update from config.
69726
69727 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69728
69729         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69730         (getgroups): First arg is int, not size_t.
69731         Don't let 'free' mangle errno.
69732
69733 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69734
69735         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69736
69737 2003-10-16  Karl Berry  <karl@gnu.org>
69738
69739         * config/config.{guess,sub}: update from config.
69740
69741 2003-10-16  Jim Meyering  <jim@meyering.net>
69742
69743         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69744         memcpy.
69745
69746 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69747
69748         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69749         (SIZE_MAX): Remove.
69750         (new_exclude, add_exclude_file): Initial size no longer needs to
69751         be a power of 2.
69752         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69753         our own address arithmetic overflow checking.
69754
69755         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69756         (fnmatch): Do not alloca more than 2000 wide characters;
69757         instead, use malloc for large buffers.
69758         Check for address arithmetic overflow, and return -1
69759         with errno set to ENOMEM in that case.
69760         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69761         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69762         instead, return -1.  Check for address arithmetic overflow.
69763
69764 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69765
69766         Handle invalid suffixes and overflow independently, so that
69767         callers can treat them independently as needed.  Fix some bugs in
69768         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69769         suffix for a human-readable blocksize.  The major caller-visible
69770         change is the addition of a new
69771         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69772         that both overflow and suffix chars were found.
69773
69774         * lib/human.c (humblock): Don't check separately for invalid suffix
69775         char; that is xstrtoumax's job (now that its bug is fixed).
69776         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69777         INTMAX_MAX]: New macros.
69778         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69779         TYPE_MAXIMUM): New macros.
69780         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69781         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69782         if overflow occurs, as it's what __strtol does and it's more useful
69783         in practice.
69784         (__xstrtol): If __strtol reports some error other than ERANGE,
69785         reflect it to the caller as LONGINT_INVALID.  If it reports
69786         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69787         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69788         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69789         value.
69790         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69791         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69792         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69793         [defined UINTMAX_MAX]: New macros.
69794
69795 2003-10-14  Bruno Haible  <bruno@clisp.org>
69796
69797         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69798
69799 2003-10-14  Bruno Haible  <bruno@clisp.org>
69800
69801         * m4/sig_atomic_t: New file, from GNU gettext.
69802         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69803
69804 2003-10-14  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69807         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69808         Also use volatile where needed.
69809
69810 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69811
69812         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69813         Change maintainer from Bruno Haible to 'all'.
69814
69815 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69816
69817         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69818
69819 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69820
69821         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69822         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69823         and define in terms of the other primitives.
69824         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69825         (SIZE_MAX): Define if not already defined.
69826         (array_size_overflow): New function.
69827         (xalloc_die): Abort instead of exiting if 'error' returns.
69828         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69829         (xmalloc, xrealloc): Use them.
69830         (xcalloc): Check for address arithmetic overflow.
69831         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69832         a bit faster than strcpy.
69833
69834 2003-10-10  Simon Josefsson  <jas@extundo.com>
69835
69836         * modules/argp (Depends-on): Add restrict and strcase.
69837
69838 2003-10-10  Simon Josefsson  <jas@extundo.com>
69839
69840         * m4/argp.m4: Add AC_C_INLINE.
69841
69842 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69843
69844         Merge getpass from libc, plus a few fixes.
69845
69846         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69847         Include <stdbool.h>.
69848         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69849         __fsetlocking to empty.
69850         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69851         do include <bits/libc-lock.h>.
69852         Do not include <fcntl.h>; not needed.
69853         [_LIBC]: Include <wchar.h>.
69854         (NOTCANCEL_MODE): New macro.
69855         (flockfile, funlockfile) [_LIBC]: New macros.
69856         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69857         [!_LIBC]: New macros.
69858         (call_fclose): New function.
69859         (getpass): Use it.  Save tty stream separately; this simplifies the
69860         code and makes it more reliable if stdin happens to equal stdout.
69861         Invoke __fsetlocking on tty.
69862         Handle thread cancellation if needed.
69863         Namespace cleanup (use __tcgetattr, __getline).
69864         Use bool for Booleans.
69865         [USE_IN_LIBIO]: Handle wide streams.
69866         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69867         stream might go where.
69868
69869         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69870         doesn't have to include <stdio.h> before us.
69871         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69872         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69873         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69874         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69875         if not declared, so that we can use getpass.c code from libc without
69876         rewriting it.
69877         (flockfile, ftrylockfile, funlockfile): New macros.
69878
69879 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69880
69881         * modules/getpass: Depend on stdbool.
69882
69883 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69884
69885         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69886
69887 2003-10-07  Karl Berry  <karl@gnu.org>
69888
69889         * config/config.{guess,sub}: update from config.
69890
69891 2003-10-06  Jim Meyering  <jim@meyering.net>
69892             Bruno Haible  <bruno@clisp.org>
69893
69894         This lets translators provide better translations for the
69895         "Written by ..." part of --version output.
69896         * lib/version-etc.h: Include stdarg.h.
69897         (version_etc_copyright): Declare as readonly.
69898         (version_etc): Make this function variadic with a NULL-terminated list
69899         of author name strings.
69900         (version_etc_va): New declaration.
69901         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69902         (version_etc_copyright): Declare as readonly.
69903         (version_etc_va): New function. Provide a different translatable string
69904         for each possible number of authors < 10. Abbreviate when there are 10
69905         authors or more.
69906         (version_etc): Make this function variadic. Call version_etc_va.
69907         Suggestion from Gary V. Vaughan.
69908
69909         * lib/long-options.h (parse_long_options): Change prototype: the
69910         authors string is moved to the end and becomes variadic.
69911         * lib/long-options.c: Include stdarg.h.
69912         (parse_long_options): Make this function variadic, too.
69913         Call version_etc_va, not version_etc.
69914
69915 2003-10-06  Bruno Haible  <bruno@clisp.org>
69916
69917         * modules/version-etc-2: Remove file.
69918         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69919
69920 2003-10-06  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/fatal-signal: New file.
69923         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69924
69925 2003-10-06  Bruno Haible  <bruno@clisp.org>
69926
69927         * m4/fatal-signal.m4: New file.
69928         * m4/signalblocking.m4: New file, from GNU gettext.
69929
69930 2003-10-06  Bruno Haible  <bruno@clisp.org>
69931
69932         * lib/version-etc-2.h: Remove file.
69933         * lib/version-etc-2.c: Remove file.
69934
69935 2003-10-06  Bruno Haible  <bruno@clisp.org>
69936
69937         * lib/fatal-signal.h: New file, from GNU gettext.
69938         * lib/fatal-signal.c: New file, from GNU gettext.
69939
69940 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69941
69942         * README: Rework advice for preventing empty .o files.
69943         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69944         not <sys/types.h>.
69945
69946 2003-10-04  Karl Berry  <karl@gnu.org>
69947
69948         * lib/argp*: update from libc.
69949
69950 2003-10-04  Karl Berry  <karl@gnu.org>
69951
69952         * config/config.{guess,sub}: update from config.
69953
69954 2003-10-02  Bruno Haible  <bruno@clisp.org>
69955
69956         * modules/lchown (Include): Add lchown.h.
69957         * modules/time_r (Include): Use "..." syntax.
69958         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69959
69960 2003-10-01  Simon Josefsson  <jas@extundo.com>
69961
69962         * MODULES.html.sh (func_all_modules): Move gethostname from section
69963         'based on' to section 'lacking' POSIX:2001.
69964
69965 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69966
69967         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69968         to output mode on the same stream.
69969
69970 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69971
69972         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69973         Fix arg typo in previous patch.
69974
69975 2003-09-28  Jim Meyering  <jim@meyering.net>
69976
69977         * lib/error.c: Correct cpp indentation.
69978
69979 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69980
69981         * modules/free: New file.
69982
69983 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69984
69985         * m4/free.m4: New file.
69986
69987 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69988
69989         * lib/minmax.h (MIN, MAX)
69990         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69991         Omit the special code that used __typeof__, since we worry that
69992         it could be more trouble than it's worth.  See:
69993         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69994         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69995
69996         * lib/free.c: New file.
69997
69998 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69999
70000         Trivial fixes to Makefile.am parts of module listings.
70001         * modules/strstr: Append strstr.h to lib_SOURCES.
70002         * modules/strcase: Likewise, for strcase.h.
70003
70004 2003-09-27  Karl Berry  <karl@gnu.org>
70005
70006         * config/mkinstalldirs: update from automake.
70007
70008 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70009
70010         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70011         (error_tail): Do not loop, reallocating temporary buffer, since
70012         the output cannot contain more wide characters than the input
70013         contains bytes, the size must be big enough already.  This avoids
70014         one potential size overflow calculation.  Check for size overflow
70015         when calculating temporary buffer size.  Free temporary buffer
70016         when done, if it was allocated with malloc; this plugs a memory
70017         leak.  Remove casts from void * to pointers, that are no longer
70018         needed now that we're assuming C89 or better.
70019
70020         Merge error changes from glibc.
70021
70022         * lib/error.c, error.h: Update copyright notice header to match glibc.
70023         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70024         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70025         Disable cancellation while printing error.
70026         * lib/error.h: Prepend __ to parameter names.
70027
70028 2003-09-26  Jim Meyering  <jim@meyering.net>
70029
70030         * lib/error.c (error_tail): Move some declarations
70031         into inner scope where the local variables are used.
70032
70033 2003-09-26  Bruno Haible  <bruno@clisp.org>
70034
70035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70036         stpncpy().
70037         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70038
70039 2003-09-26  Bruno Haible  <bruno@clisp.org>
70040
70041         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70042         (stpncpy): Define as alias for gnu_stpncpy.
70043         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70044
70045 2003-09-25  Simon Josefsson  <jas@extundo.com>
70046
70047         * lib/xgetdomainname.h: New file.
70048         * lib/xgetdomainname.c: New file.
70049
70050 2003-09-25  Simon Josefsson  <jas@extundo.com>
70051             Bruno Haible  <bruno@clisp.org>
70052
70053         * modules/getdomainname: New file.
70054         * modules/xgetdomainname: New file.
70055         * MODULES.html.sh (func_all_modules): Add getdomainname,
70056         xgetdomainname.
70057
70058 2003-09-25  Simon Josefsson  <jas@extundo.com>
70059             Bruno Haible  <bruno@clisp.org>
70060
70061         * m4/getdomainname.m4: New file.
70062
70063 2003-09-25  Simon Josefsson  <jas@extundo.com>
70064             Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/getdomainname.h: New file.
70067         * lib/getdomainname.c: New file.
70068
70069 2003-09-25  Karl Berry  <karl@gnu.org>
70070
70071         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70072
70073 2003-09-25  Karl Berry  <karl@gnu.org>
70074
70075         * config/install-sh: update from automake.
70076
70077 2003-09-25  Bruno Haible  <bruno@clisp.org>
70078
70079         * modules/version-etc-2: New file, from modules/version-etc with
70080         modifications.
70081         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70082
70083 2003-09-25  Bruno Haible  <bruno@clisp.org>
70084
70085         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70086         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70087
70088 2003-09-24  Simon Josefsson  <jas@extundo.com>
70089
70090         * modules/xgethostname: Add xgethostname.h.
70091
70092 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70093
70094         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70095         the buffer associated with the argument.  Bug reported by
70096         Simon Josefsson.
70097
70098 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70099
70100         * README: Document assumptions that 'int' is at least 32 bits
70101         wide, that integer arithmetic is 2's complement without overflow,
70102         that there are no holes in integer values, that adding sizes of
70103         two nonoverlapping objects can't overflow, and that all-bits-zero
70104         yields scalar zero.  Fix spelling and capitalization typos.
70105
70106 2003-09-19  Karl Berry  <karl@gnu.org>
70107
70108         * lib/argp.h: update from libc.
70109
70110 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70111
70112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70113         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70114         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70115
70116 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70117
70118         * gnulib-tool: Use "test -h", not "test -L", for portability
70119         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70120         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70121         (sed_extract_prog): Issue s commands one-by-one, rather than
70122         using \| in one s command.
70123
70124 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70125
70126         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70127         input error, instead of returning NULL the next time we are called
70128         (and therefore losing track of errno).
70129
70130 2003-09-16  Bruno Haible  <bruno@clisp.org>
70131
70132         * gnulib-tool (func_create_testdir): Warn about duplicated
70133         dependencies.
70134
70135 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70136
70137         * modules/argmatch, modules/fatal, modules/obstack,
70138         modules/xalloc, modules/xgethostname: Sort dependencies by
70139         importance, not alphabetically.
70140
70141 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70142
70143         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70144         fails, so that the caller gets the proper errno.
70145
70146         * lib/readutmp.c (read_utmp): Likewise.
70147         Check for fstat error.  Close stream and free storage
70148         when failing.
70149
70150 2003-09-14  Karl Berry  <karl@gnu.org>
70151
70152         * config/srclist.txt (strdup.c): disable for c89 changes.
70153
70154 2003-09-14  Jim Meyering  <jim@meyering.net>
70155
70156         * lib/getloadavg.c: Correct cpp indentation.
70157         * lib/strdup.c: Likewise.
70158         * lib/vasnprintf.c: Likewise.
70159
70160 2003-09-14  Bruno Haible  <bruno@clisp.org>
70161
70162         * modules/fwriteerror: New file.
70163         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70164
70165 2003-09-14  Bruno Haible  <bruno@clisp.org>
70166
70167         * lib/fwriteerror.h: New file.
70168         * lib/fwriteerror.c: New file.
70169
70170 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70171
70172         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70173         modules/xgethostname, modules/xalloc: Depend on exit.
70174
70175 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70176
70177         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70178
70179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70180         and AC_MINIX, too, so that their extensions are available.
70181
70182         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70183         This macro has been superseded by gl_BACKUPFILE.
70184
70185         More patches to assume C89 or better.
70186
70187         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70188
70189         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70190         unconditionally.
70191         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70192         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70193         Include <string.h>, <stdlib.h> unconditionally.
70194         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70195         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70196         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70197         headers or for string.h.
70198         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70199         or strtoul.
70200
70201         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70202         headers.
70203         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70204         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70205         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70206         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70207         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70208         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70209         memcpy, memset.
70210         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70211         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70212         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70213         strtol.
70214         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70215         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70216         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70217         strtoul.
70218
70219 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70220
70221         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70222         * lib/obstack.c [!defined _LIBC]: Likewise.
70223         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70224         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70225         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70226
70227         More changes to assume C89 or better.
70228
70229         * lib/error.c (error_tail): Assume vprintf.
70230
70231         * lib/argmatch.c (getenv): Remove decl.
70232         * lib/progreloc.c (get_full_program_name): Define via prototype.
70233         * lib/setenv.c (clearenv): Likewise.
70234         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70235         needed.
70236         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70237         (malloc, memcpy): Remove decls.
70238         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70239         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70240         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70241         (memcpy): Remove macro.
70242         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70243         (__P): Remove.  All uses removed.
70244         (PTR): Remove.  All uses changed to void *.
70245         (CHAR_BIT, NULL): Remove.
70246         (spaces, zeros, memset_space, memset_zero)
70247         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70248         Remove.
70249         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70250         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70251         Define with prototype.
70252         Remove now-unnecessary prototype decl.
70253         (extra_args_spec): Assume ANSI C.  All uses changed.
70254         (extra_args_spec_iso): Remove.
70255         (my_strftime, emacs_strftimeu): Define via prototype.
70256         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70257         unconditionally.
70258         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70259         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70260         (strtoul, strtol): Remove decls.
70261         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70262         LONG_MAX): Remove.
70263         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70264         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70265         (LOCALE_PARAM_PROTO): New macro.
70266         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70267         (INTERNAL (strtol), strtol): Define with a prototype.
70268         (PARAMS): Remove.  All uses removed.
70269         * lib/tempname.c: Include <string.h> unconditionally.
70270         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70271         * lib/xgethostname.c (main): Define with a prototype.
70272         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70273         Include <stdlib.h> unconditionally.
70274         (calloc, malloc, realloc, free): Remove decls.
70275         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70276         Include <stdlib.h> unconditionally.  Sort include file names.
70277         (strtod): Remove.
70278         (xstrtod): Define with a prototype.
70279         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70280         (strtol, strtoul): Remove decls.
70281
70282 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70283
70284         More patches to assume C89 or better.
70285         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70286         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70287         string.h, memchr, STDC_HEADERS.
70288
70289 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70290
70291         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70292         Include <stdlib.h>, <string.h> unconditionally.
70293         Remove now-unnecessary cast to char *.
70294         * lib/strnlen.c: Include <string.h> unconditionally.
70295         * lib/yesno.c (yesno): Define with a prototype.
70296
70297 2003-09-11  Bruno Haible  <bruno@clisp.org>
70298
70299         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70300
70301 2003-09-10  Jim Meyering  <jim@meyering.net>
70302
70303         * lib/error.c: Correct indentation of cpp directives.
70304
70305 2003-09-10  Bruno Haible  <bruno@clisp.org>
70306
70307         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70308         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70309         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70310         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70311         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70312         <stdlib.h> and <string.h> checks.
70313         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70314         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70315
70316 2003-09-10  Bruno Haible  <bruno@clisp.org>
70317
70318         * lib/strcspn.c: Include <string.h> unconditionally.
70319         * lib/strpbrk.c: Include <string.h> unconditionally.
70320         * lib/strstr.c: Include <string.h> unconditionally.
70321         * lib/unicodeio.c: Include <string.h> unconditionally.
70322         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70323         * lib/unsetenv.c: Likewise.
70324         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70325         * lib/yesno.c: Include <stdlib.h> unconditionally.
70326         (rpmatch): Add prototype.
70327
70328 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70329
70330         More patches to assume C89 or better.
70331         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70332         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70333         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70334         or for string.h.
70335         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70336         stdlib.h.
70337         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70338         C headers.
70339         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70340         string.h.
70341         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70342         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70343         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70344         or for string.h.
70345         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70346         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70347         C headers.
70348         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70349         memcpy.
70350         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70351         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70352         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70353         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70354         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70355         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70356         string.h, free.
70357         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70358         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70359         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70360         C headers, or for string.h.
70361         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70362         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70363         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70364         headers, memory.h, stdlib.h, string.h, strings.h.
70365         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70366         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70367         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70368         strchr.
70369         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70370         headers, memory.h, string.h.
70371         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70372         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70373         free.
70374         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70375         headers.
70376         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70377         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70378         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70379         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70380         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70381
70382 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70383
70384         More K&R removal.
70385
70386         * lib/acosl.c (main): Use a prototype.
70387         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70388         tanl.c: Likewise.
70389
70390         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70391
70392         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70393         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70394         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70395         with a prototype.
70396         * lib/getopt.c (const): Remove macro.
70397         Include <string.h> unconditionally.
70398         (my_index): Remove; all uses changed to strchr.
70399         (strlen): Remove decl.
70400         (exchange): Remove forward decl; no longer needed.
70401         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70402         Define with prototype.
70403         * lib/getopt1.c (const): Remove macro.
70404         (getopt_long, getopt_long_only, main): Define with prototype.
70405
70406         * lib/getugroups.c: Include <string.h> unconditionally.
70407
70408         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70409         (getusershell, setusershell, endusershell, readname, main):
70410         Define with prototypes.
70411
70412         * lib/group-member.c: Include group-member.h first.
70413         Include <stdlib.h> unconditionally.
70414
70415         * lib/hard-locale.c: Include hard-locale.h first.
70416         Include <stdlib.h>, <string.h> unconditionally.
70417
70418         * lib/hash.c (free, malloc): Remove decls.
70419         Include <stdlib.h> unconditionally.
70420
70421         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70422         (getenv): Do not declare.
70423
70424         * lib/idcache.c: Include <string.h> unconditionally.
70425
70426         * lib/long-options.c: Include long-options.h first, to test interface.
70427         Include <stdlib.h> unconditionally.
70428
70429         * lib/makepath.c: Include makepath.h first, to test interface.
70430         Include <stdlib.h> and <string.h> unconditionally.
70431
70432         * lib/linebuffer.c: Include <stdlib.h>.
70433         (free): Remove decl.
70434
70435         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70436         stddef.h. rpl_malloc returns void *, not char *.
70437         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70438         prototype.
70439
70440         * lib/md5.h: Include <limits.h> unconditionally.
70441         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70442         (__P): Remove; all uses removed.
70443         * lib/md5.c: Include "md5.h" first.
70444         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70445         md5_buffer, md5_process_bytes, md5_process_block):
70446         Define with prototypes.
70447         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70448         * lib/sha.c: Include "sha.h" first.
70449         Include <stdlib.h>, <string.h> unconditionally.
70450
70451         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70452         * lib/memcmp.c (__ptr_t): Likewise.
70453         * lib/memrchr.c (__ptr_t): Likewise.
70454         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70455         Include <string.h> unconditionally.
70456         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70457         * lib/memchr.c: Include <stdlib.h> unconditionally.
70458         * lib/memchr.c (LONG_MAX): Remove.
70459         * lib/memrchr.c (LONG_MAX): Likewise.
70460         * lib/memchr.c (__memchr): Define via a prototype.
70461         * lib/memrchr.c (__memrchr): Likewise.
70462         * lib/memcmp.c (__P): Remove, and remove all uses.
70463         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70464         Remove forward decls; no longer needed.
70465         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70466         Use types required by C89 in prototype.
70467
70468         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70469         * lib/savedir.c: Likewise.
70470         * lib/mkdir.c (free): Remove decl.
70471         * lib/rmdir.c (rmdir): Define with a prototype.
70472         * lib/savedir.c: Include savedir.h first, to test interface.
70473
70474         * lib/mktime.c (STDC_HEADERS): Remove.
70475         Include <stdlib.h>, <string.h> unconditionally.
70476
70477         * lib/modechange.c: Include <stdlib.h> unconditionally.
70478         (malloc): Remove decl.
70479
70480         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70481         (free): Remove decl.
70482
70483         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70484         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70485         (This type really should be intptr_t, but that's a C99ism.)
70486         (_obstack_memcpy): Remove: all uses changed to memcpy.
70487         Include <string.h> unconditionally.
70488         (struct obstack): Assume __STDC__ for types of members
70489         chunkfun, freefun, extra_arg.
70490         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70491         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70492         obstack_begin, obstack_specify_allocation,
70493         obstack_specify_allocation_with_arg, obstack_chunkfun,
70494         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70495         Remove unprototyped decls and the macros that use them.
70496         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70497         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70498         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70499         (defined __STDC__ && __STDC__)]:
70500         Remove nonprototyped code.
70501         Include <stdlib.h> unconditionally.
70502         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70503         _obstack_allocated_p, _obstack_free, obstack_free,
70504         _obstack_memory_used, print_and_abort):
70505         Define using prototypes.
70506         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70507         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70508         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70509         obstack_next_free, obstack_object_size, obstack_room) [0]:
70510         Remove unused, unprototyped code.
70511
70512         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70513
70514         * lib/physmem.c (physmem_total, physmem_available, main): Define
70515         with prototypes.
70516
70517         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70518         (main): Define with a prototype.
70519
70520         * lib/posixver.c (getenv): Remove decl.
70521
70522         * lib/putenv.c (malloc): Returns void *, not char *.
70523         Include <string.h> unconditionally.
70524         (strchr, memcpy, NULL): Do not define.
70525
70526         * lib/readtokens.c: Include readtokens.h first, to test interface.
70527         Include <stdlib.h>, <string.h> unconditionally.
70528         (init_tokenbuffer): Define with a prototype.
70529
70530         * lib/regex.c (PARAMS): Remove.  All uses removed.
70531         All uses of _RE_ARGS removed, too.
70532         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70533         unconditionally.
70534         (bzero): Assume memset exists.
70535         (memcmp, memcpy, NULL): Remove.
70536         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70537         char, or assignments to local vars of type signed char.
70538         (init_syntax_once, PREFIX(extract_number_and_incr),
70539         PREFIX(print_partial_compiled_pattern),
70540         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70541         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70542         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70543         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70544         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70545         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70546         wcs_compile_range, byte_compile_range, truncate_wchar,
70547         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70548         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70549         count_mbs_length, wcs_re_match_2_internal,
70550         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70551         PREFIX(alt_match_null_string_p),
70552         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70553         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70554         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70555         now-unnecessary declaration, if any.
70556         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70557         regcomp, regexec):
70558         Remove now-unnecessary casts among pointer types.
70559         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70560
70561         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70562         (free): Remove decl.
70563
70564         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70565
70566         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70567         (free): Remove decl.
70568
70569         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70570         * lib/xgetcwd.c: Likewise.
70571
70572         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70573         (free): Remove decl.
70574
70575         * lib/strchrnul.c (strchrnul): Define with a prototype.
70576         Fix bug: c_in was not converted to char before searching.
70577
70578         The following changes are not K&R related:
70579
70580         * lib/group-member.h: Include <sys/types.h>, so that this file is
70581         self-contained.
70582         * lib/makepath.h: Likewise.
70583
70584         * lib/getusershell.c (readname, default_index, line_size, readname):
70585         Use size_t, not int, for sizes.
70586         (readname): If the size overflows, report an error instead of
70587         looping forever.
70588
70589 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70590
70591         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70592         libc.
70593
70594 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70595
70596         * README: New section: portability guidelines.
70597
70598 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70599
70600         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70601         C89 spec.
70602
70603 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70604
70605         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70606
70607 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70608
70609         Assume C89 or better; remove K&R cruft.
70610         A few of these changes were first proposed by Derek Robert Price
70611         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70612
70613         * lib/addext.c: Include <string.h> unconditionally.
70614         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70615         Don't declare getenv or malloc.
70616
70617         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70618         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70619         (NULL): Remove.
70620         (find_stack_direction, alloca): Use prototypes.
70621
70622         * lib/atexit.c (atexit): Define using a prototype.
70623
70624         * lib/basename.c, dirname.c, stripslash.c:
70625         Include <string.h> unconditionally.
70626
70627         * lib/bcopy.c: Include <stddef.h>.
70628         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70629
70630         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70631
70632         * lib/error.h (error, error_at_line, error_print_progname)
70633         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70634         * lib/error.c: Include error.h first, to check interface.
70635         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70636         (VA_START): Remove; all uses changeed to va_start.
70637         (exit, strerror): Remove decls.
70638         (error_print_progname): Prototype uncondionally.
70639         Don't include <errno.h>; no longer needed.
70640         (private_strerror): Remove.
70641         (error_tail): Always define.
70642         (error, error_at_line): Assume C89 or better; always use prototypes.
70643         * lib/fatal.c: Include "fatal.h" first, to test interface.
70644         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70645         (VA_START): Remove; all uses changed to va_start.
70646         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70647         this case.
70648         (exit): Remove decl.
70649         (fatal): Prototype unconditionally.  Assume va_start works.
70650         Abort at end, to pacify gcc.
70651
70652         * lib/euidaccess.c (main): Define with a prototype.
70653
70654         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70655
70656         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70657
70658         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70659         prototypes.
70660         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70661         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70662         (getenv): Remove decl.
70663         (fnmatch): Define using a prototype.
70664         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70665         (FCT): Define using a prototype.
70666
70667         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70668
70669         * lib/gethostname.c: Include <stddef.h>.
70670         (gethostname): Define with prototype.  Length is size_t, not int.
70671
70672 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70673
70674         Assume C89 or better; remove K&R cruft.
70675         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70676         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70677         string.h, getenv, malloc.
70678         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70679         headers.
70680         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70681         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70682         do not check for strerror.
70683         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70684         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70685         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70686         do not check for doprnt or vprintf.
70687         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70688         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70689
70690 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70691
70692         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70693         getversion.c should have been removed then, but was accidentally
70694         preserved.
70695
70696         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70697         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70698
70699 2003-09-08  Karl Berry  <karl@gnu.org>
70700
70701         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70702                 config, forget about prep.
70703
70704         * config/depcomp, missing: update from automake.
70705
70706 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70707
70708         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70709         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70710
70711 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70712
70713         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70714         copy_tm_result.  Bug reported by Simon Josefsson in
70715         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70716
70717 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70718
70719         * m4/time_r.m4: New file.
70720         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70721         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70722         is. Check for timegm declaration.
70723         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70724         Do not check for gmtime_r.
70725         Replace mktime if __mktime_internal does not exist and if mktime
70726         hasn't been replaced already.
70727
70728 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70729
70730         * lib/time_r.c, lib/time_r.h: New files.
70731
70732         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70733         __localtime_r.
70734         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70735         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70736
70737         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70738         __gmtime_r.
70739         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70740         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70741         Include <time_r.h>.
70742
70743         * lib/timegm.c: Switch to glibc implementation, with the following
70744         changes:
70745         [defined HAVE_CONFIG_H]: Include <config.h>.
70746         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70747         (__mktime_internal) [!defined _LIBC]: New decl.
70748         (__gmtime_r) [!defined _LIBC]: New macro and function.
70749         (timegm): Use a prototype, since gnulib assumes C89.
70750         Do not bother declaring tmp to be const, as it's not really usefu.
70751         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70752         (timegm): Declare only if HAVE_DECL_TIMEGM.
70753
70754 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70755
70756         * MODULES.html.sh (func_all_modules): Add time_r.
70757         * modules/time_r: New file.
70758         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70759         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70760
70761 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70762
70763         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70764         Bug reported by Lute Kamstra in
70765         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70766
70767         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70768         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70769         course with correspondingly smaller numbers for tomorrow and
70770         yesterday.  From Tadayoshi Funaba.  Originally installed into
70771         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70772         coreutils merge?).
70773
70774 2003-08-31  Simon Josefsson  <jas@extundo.com>
70775
70776         * modules/timegm: New file.
70777         * MODULES.html.sh (func_all_modules): Add timegm.
70778
70779 2003-08-31  Simon Josefsson  <jas@extundo.com>
70780
70781         * m4/timegm.m4: New file.
70782
70783 2003-08-31  Simon Josefsson  <jas@extundo.com>
70784
70785         * lib/timegm.h: New file.
70786         * lib/timegm.c: New file.  Based on
70787         wget-1.8.2/src/http.c:mktime_from_utc.
70788
70789 2003-08-31  Karl Berry  <karl@gnu.org>
70790
70791         * lib/argp.h: update from libc.
70792
70793 2003-08-28  Bruno Haible  <bruno@clisp.org>
70794
70795         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70796         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70797         followed by '#define fnmatch fnmatch_posix' gives an error.
70798
70799 2003-08-28  Bruno Haible  <bruno@clisp.org>
70800
70801         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70802         warning on QNX, which defines O_BINARY to 000000.
70803
70804 2003-08-27  Jim Meyering  <jim@meyering.net>
70805
70806         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70807         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70808         would fail after 32.  Reported by Danny Levinson.  Details here:
70809         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70810
70811 2003-08-24  Bruno Haible  <bruno@clisp.org>
70812
70813         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70814         MSVC7 <stdio.h> is included later.
70815
70816 2003-08-22  Simon Josefsson  <jas@extundo.com>
70817
70818         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70819
70820 2003-08-20  Karl Berry  <karl@gnu.org>
70821
70822         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70823
70824 2003-08-20  Bruno Haible  <bruno@clisp.org>
70825
70826         * modules/progname: New file.
70827         * MODULES.html.sh (func_all_modules): Add progname.
70828
70829 2003-08-20  Bruno Haible  <bruno@clisp.org>
70830
70831         * lib/progname.h: New file, from GNU gettext.
70832         * lib/progname.c: New file, from GNU gettext.
70833         * lib/progreloc.c: New file, from GNU gettext.
70834
70835 2003-08-19  Jim Meyering  <jim@meyering.net>
70836
70837         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70838         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70839
70840 2003-08-19  Bruno Haible  <bruno@clisp.org>
70841
70842         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70843         more.
70844
70845 2003-08-19  Bruno Haible  <bruno@clisp.org>
70846
70847         * lib/xstrdup.c: Assume <string.h> exists.
70848
70849 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70850
70851         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70852         in makefile rules.
70853
70854 2003-08-18  Jim Meyering  <jim@meyering.net>
70855
70856         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70857         * m4/lib-ld.m4: Likewise.
70858
70859 2003-08-18  Jim Meyering  <jim@meyering.net>
70860
70861         * lib/setenv.h: Indent nested cpp directive.
70862         * lib/vasnprintf.c: Remove trailing blanks.
70863
70864 2003-08-17  Simon Josefsson  <jas@extundo.com>
70865
70866         * modules/xstrndup: New file.
70867         * MODULES.html.sh (func_all_modules): Add xstrndup.
70868
70869 2003-08-17  Simon Josefsson  <jas@extundo.com>
70870
70871         * modules/argp: Fix autoconf macro name. Add more dependencies.
70872
70873 2003-08-17  Simon Josefsson  <jas@extundo.com>
70874
70875         * m4/xstrndup.m4: New file.
70876
70877 2003-08-17  Simon Josefsson  <jas@extundo.com>
70878
70879         * m4/argp.m4: New file.
70880
70881 2003-08-17  Simon Josefsson  <jas@extundo.com>
70882             Bruno Haible  <bruno@clisp.org>
70883
70884         * lib/xstrndup.h: New file.
70885         * lib/xstrndup.c: New file.
70886
70887 2003-08-17  Bruno Haible  <bruno@clisp.org>
70888
70889         * modules/strndup (Files, Include): Add lib/strndup.h.
70890
70891 2003-08-17  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/euidaccess (Files): Add lib/euidaccess.h.
70894
70895 2003-08-17  Bruno Haible  <bruno@clisp.org>
70896
70897         * lib/strndup.h: New file.
70898
70899 2003-08-17  Bruno Haible  <bruno@clisp.org>
70900
70901         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70902         like AC_GNU_SOURCE.
70903         * modules/extensions (configure.ac): Comment out the invocation of
70904         gl_USE_SYSTEM_EXTENSIONS.
70905
70906 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70907
70908         Merges from coreutils, etc.
70909         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70910         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70911         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70912         fixing a typo.
70913         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70914         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70915
70916 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70917
70918         Document merge from coreutils.
70919         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70920         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70921         * modules/utime: Add m4/utimes-null.m4.
70922
70923 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70924
70925         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70926         space, undoing this 2003-08-12 change:
70927         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70928
70929 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70930
70931         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70932         strtoul.c from libc, undoing this 2003-08-12 change:
70933         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70934
70935 2003-08-16  Jim Meyering  <jim@meyering.net>
70936
70937         Merges from coreutils.
70938         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70939         prefix.  Adjust cache variables similarly.  Create 500 rather than
70940         just 300 files, to exercise bug on Darwin6.5, too.
70941         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70942         $missing_dir.
70943         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70944         AM_SYS_POSIX_TERMIOS.
70945         Reported by mkc@mathdogs.com.
70946         Also change use of $am_cv_sys_posix_termios
70947         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70948         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70949         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70950         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70951         in /proc/mounts until it finds one with matching device number.  This
70952         is unnecessary when the FILE argument *is* a mount point.  No stat call
70953         is necessary in that case.  So, disable the statvfs-testing code on
70954         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70955         as RedHat bug# 84846.
70956         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70957         to 1MB, so as not to render systems with no stack size limit (e.g.,
70958         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70959         Include <unistd.h>.  On some systems,
70960         it is required for the definition of _SC_PAGESIZE.
70961
70962 2003-08-16  Jim Meyering  <jim@meyering.net>
70963
70964         Merge from coreutils.
70965         * lib/xstrtoimax.c: #else #if -> #elif.
70966         * lib/xstrtoumax.c: Likewise.
70967
70968 2003-08-16  Jim Meyering  <jim@meyering.net>
70969
70970         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70971         * m4/utimes.m4: Removed.
70972         * m4/utimes-null.m4: Renamed from utimes.m4.
70973
70974         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70975         to 1MB, so as not to render systems with no stack size limit (e.g.,
70976         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70977         Include <unistd.h>.  On some systems,
70978         it is required for the definition of _SC_PAGESIZE.
70979
70980 2003-08-16  Jim Meyering  <jim@meyering.net>
70981         and Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         Merges from coreutils, etc.
70984
70985         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70986         using the latest version from cvs.  This avoids problems with #line
70987         directives using a vendor (Sun) compiler.
70988         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70989         Don't set GETGROUPS_LIB here; now it's
70990         done via getgroups.m4's wrapper function.
70991         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70992         rather than just in sh-util/configure.in, so that the
70993         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70994         same.
70995         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70996         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70997         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70998         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70999         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71000         Remove code that is now done by the newly-required macros.
71001         Append $(EXEEXT) to DF_PROG.
71002         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71003         Do not invoke or require the following here,
71004         since prereq.m4 or some gnulib .m4 now does this for us:
71005         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71006         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71007         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71008         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71009         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71010         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71011         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71012         AC_FUNC_OBSTACK.
71013         Do not replace the following functions, as this is now the job
71014         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71015         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71016         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71017         atexit getpass, strdup, getpagesize.
71018         Replace 'raise'.
71019         Do not check for the following functions, as this is now the job
71020         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71021         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71022         setregid.
71023         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71024         Check for sys/sysctl.h.
71025         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71026         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71027         of checking for ssize_t ourselves.
71028
71029         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71030         Require every macro that gnulib/modules/* suggests for us.
71031         (jm_PREREQ_ADDEXT): New macro.
71032         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71033         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71034
71035         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71036         (gl_PHYSMEM): Use it.
71037         Also check for `table' function.
71038         Check for new headers and functions.
71039         Add check for sys/sysmp.h.
71040         With suggestions from Kaveh Ghazi.
71041         Ignore headers that are present but cannot be compiled.  This
71042         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71043         C 5.4.
71044
71045 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71046
71047         Document merge from coreutils.
71048         * modules/userspec: Depend on posixver.
71049         * modules/strftime: Depend on tzset.
71050
71051 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71052
71053         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71054         rather than tab, after '#' in shell-script copyright notices.
71055         Suggested by Bruno Haible.
71056
71057 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71058
71059         * config/srclist-update: Use three spaces, rather than tab, after '#'
71060         in shell-script copyright notices.  Suggested by Bruno Haible.
71061         Remove unnecessary parenthesization in regular expression.
71062
71063 2003-08-15  Jim Meyering  <jim@meyering.net>
71064
71065         Merge from coreutils.
71066         * lib/xgethostname.c: Include <stdlib.h>.
71067         (xghostname): Don't exit for anything other than memory-related
71068         failure; just return NULL.
71069         * lib/userspec.c: Include "posixver.h".
71070         (parse_user_spec): Accept `.' as a separator only
71071         in pre-POSIX-200112 mode.
71072         * lib/strtoimax.c: Use #elif rather than #else #if.
71073         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71074         Remove function, now that we can rely on a working tzset function.
71075         [!_LIBC]: Ensure that the required autoconf test has been run.
71076         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71077         Use underlying_strftime for %r.
71078         * lib/sha.c: Merge in some clean-up and optimization changes from
71079         glibc.
71080         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71081         Ensure that it is a multiple of 64.
71082         Rearrange loop exit tests so as to avoid performing an
71083         additional fread after encountering an error or EOF.
71084         * lib/realloc.c: Update copyright date.
71085
71086 2003-08-15  Jim Meyering  <jim@meyering.net>
71087         and Paul Eggert  <eggert@twinsun.com>
71088
71089         Merge from coreutils.
71090         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71091         member but strut utmpx does not.  Needed for AIX 4.3.3.
71092         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71093
71094 2003-08-15  Jim Meyering  <jim@meyering.net>
71095         and Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         Merges from coreutils, etc.
71098         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71099         Require gl_FUNC_TZSET_CLOBBER.
71100         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71101         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71102         members.
71103
71104 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71105
71106         Help the merge from coreutils.
71107         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71108         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71109         * m4/tzset.m4: Use it too.
71110
71111 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71112
71113         * modules/tzset: New file.
71114
71115 2003-08-14  Jim Meyering  <jim@meyering.net>
71116
71117         Merges from coreutils.
71118         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71119         variable names, rather than @FNMATCH_H@.
71120         * modules/alloca: Likewise for $(ALLOCA_H).
71121
71122         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71123         the three copies of the literal target, `fnmatch.h'.
71124         * modules/alloca (alloca.h): Likewise.
71125
71126 2003-08-14  Jim Meyering  <jim@meyering.net>
71127
71128         Merge from coreutils.
71129         * m4/tzset.m4: New file.
71130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71131         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71132         otherwise, AIX 5.1 systems would end up using the latter.
71133         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71134         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71135         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71136         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71137
71138 2003-08-14  Jim Meyering  <jim@meyering.net>
71139
71140         Merge from coreutils.
71141         * lib/obstack.h: Whitespace changes.
71142         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71143         and xcalloc return values.
71144         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71145         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71146         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71147         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71148         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71149         error from mntctl.
71150         Use mntctl's return value to drive the entry-processing loop, since
71151         we can't rely on the value of the vmt_length member in the last
71152         entry.  On some systems doing so could result in exhausting
71153         virtual memory.  Based in part on a patch from Mike Jetzer.
71154
71155 2003-08-14  Jim Meyering  <jim@meyering.net>
71156         and Paul Eggert  <eggert@twinsun.com>
71157
71158         Merges from coreutils, plus other fixes.
71159         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71160         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71161         for credits and details.  Thanks to Kaveh Ghazi for helping
71162         to keep these files in sync.
71163         (ARRAY_SIZE): Define it.
71164         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71165         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71166         (memcasecmp): Don't assume size_t fits in unsigned int.
71167         Remove casts and duplicate code.
71168         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71169         (memcpy): Remove definition.
71170         Merge in some clean-up and optimization changes from glibc.
71171         [BLOCKSIZE]: Move definition to top of file.
71172         Ensure that it is a multiple of 64.
71173         Rearrange loop exit tests so as to avoid performing an
71174         additional fread after encountering an error or EOF.
71175         * lib/md5.h (md5_uintptr): Define.
71176         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71177         return to the initial working directory.  Preserve errno
71178         for caller.
71179         * lib/idcache.c: Include "xalloc.h".
71180         (xmalloc, xrealloc): Remove decls.
71181         (getuser): Remove casts no longer required in C89.
71182         * lib/human.c: Include stdio.h, for sprintf.
71183         * lib/group-member.c: Include "xalloc.h".
71184         (xmalloc, xrealloc): Remove decls.
71185         (get_group_info): Remove casts no longer required in C89.
71186         * lib/getusershell.c (readname): Remove casts no longer required in
71187         C89.
71188         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71189         * lib/getline.c: Whitespace fix, from coreutils.
71190
71191 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71192
71193         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71194         Check for isascii.
71195
71196         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71197         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71198         Undo previous (whitespace-only) change.
71199
71200 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71201
71202         * lib/exclude.c: Include <ctype.h>
71203         (IN_CTYPE_DOMAIN): New macro.
71204         (is_space): New fn.
71205         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71206         and empty lines.
71207
71208         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71209         Undo previous (whitespace-only) change.
71210
71211 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71212
71213         * config/srclist-update: Change update back to the old behavior,
71214         leaving whitespace alone.  Use one 'sed' command rather than a
71215         pipeline.
71216         (fixlicense): Now a variable, not a function.
71217         (remove_trailing_blanks): Remove.
71218         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71219         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71220         Undo previous (whitespace-only) change.
71221
71222 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71223
71224         Merge from coreutils.
71225         * modules/euidaccess: Add lib_SOURCES, include for new
71226         file euidaccess.h
71227
71228 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71229
71230         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71231         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71232         Normalize leading white space and remove trailing white space.
71233
71234         Merge from coreutils
71235         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71236
71237         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71238         0.12.1.  These files are now being upgraded automatically by
71239         ../config/srclist-update.
71240
71241 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71242
71243         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71244         Normalize leading white space and remove trailing white space.
71245         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71246         notice, as per ../config/srclist-update.
71247
71248         Merge from coreutils.
71249         * lib/euidaccess.h: New file.
71250         * lib/euidaccess.c: Include it.
71251         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71252         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71253         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71254
71255 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71256
71257         * config/srclist-update: Add copyright notice.
71258         (remove_id_lines, remove_trailing_blanks): New constants.
71259         (fixfile): Use them to normalize spacing a bit in copied files.
71260         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71261         Normalize leading white space and remove trailing white space.
71262
71263         * config/texinfo.tex: Sync with texinfo.
71264
71265         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71266         strtoul.c from libc, to merge coreutils whitespace changes.
71267
71268         * config/srclist.txt: Get the following m4 files from gettext:
71269         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71270         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71271         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71272         wint_t.m4.
71273
71274 2003-08-12  Karl Berry  <karl@gnu.org>
71275
71276         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71277         been made.
71278
71279 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71280
71281         * modules/gnu-source, m4/gnu-source.m4:
71282         Remove; we're assuming Autoconf 2.54 or later now.
71283         Suggested by Bruno Haible.
71284         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71285
71286 2003-08-11  Bruno Haible  <bruno@clisp.org>
71287
71288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71289
71290 2003-08-11  Bruno Haible  <bruno@clisp.org>
71291
71292         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71293         (vasnprintf): Use it instead of wcslen.
71294
71295 2003-08-11  Bruno Haible  <bruno@clisp.org>
71296
71297         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71298         value to ensure that _Bool promotes to int. Use #define for _Bool when
71299         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71300
71301 2003-08-10  Karl Berry  <karl@gnu.org>
71302
71303         * lib/regex.h: update from libc (whitespace fix).
71304
71305 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71306
71307         Merge some files from coreutils.  These changes were
71308         originally made by Jim Meyering.
71309         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71310         many older Unixes require this.
71311         * lib/alloca.c (alloca): Remove cast to argument of free;
71312         no longer needed in C89.
71313         * lib/alloca_.h, regex.h: Fix white space to match
71314         what GNU indent does.
71315
71316 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71317
71318         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71319         apparently Emacs's Unicode mode got confused before my 2003-08-05
71320         checkin.
71321
71322 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71323
71324         * m4/extensions.m4: New file.
71325         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71326         Require gl_USE_SYSTEM_EXTENSIONS.
71327         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71328         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71329
71330 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71331
71332         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71333         * modules/extensions, modules/gnu-source: New files.
71334         * modules/timespec, modules/unlocked-io: Depend on extensions.
71335
71336 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71337
71338         * modules/restrict: New file.
71339         * MODULES.html.sh (func_all_modules): Add restrict.
71340         * modules/regex: Depend on restrict.
71341
71342 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71343
71344         * m4/restrict.m4: New file.
71345         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71346
71347 2003-08-07  Bruno Haible  <bruno@clisp.org>
71348
71349         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71350         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71351
71352 2003-08-07  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71355         makes the module 'getndelim2' compatible with the module 'getline'.
71356
71357 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71358
71359         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71360         byte with "\201" to avoid glitches when editing that source file
71361         with multi-gnome-terminal.
71362
71363 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71364
71365         * lib/bumpalloc.h: Remove.
71366
71367 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71368
71369         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71370         * modules/bumpalloc: Remove.
71371
71372 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71373
71374         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71375         GNU coding style.
71376
71377         Merge from coreutils.
71378         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71379         1. From glibc.
71380         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71381         from Karl Berry, implemented by Jim Meyering.
71382         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71383         from Dmitry V. Levin.
71384         Remove anachronistic cast of xrealloc.
71385         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71386         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71387         type. Otherwise, it wouldn't compile with at least /bin/cc on
71388         ymp-cray-unicos9.0.2.X.
71389         Combine two mostly-identical uses of alloca into one.
71390         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71391
71392 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71393
71394         [From Emacs.]
71395
71396         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71397         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71398         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71399         obsolete NLIST_NAME_UNION.
71400         [__GNU__]: Undef BSD and FSCALE.
71401         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71402
71403 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71404
71405         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71406         an enum type, so that it's guaranteed to promote to int.  See:
71407         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71408
71409 2003-08-03  Karl Berry  <karl@gnu.org>
71410
71411         * config/depcomp: update from automake.
71412
71413 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71414
71415         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71416         (strerror): Don't assume that a printable int fits in 14 bytes.
71417
71418 2003-07-31  Bruno Haible  <bruno@clisp.org>
71419
71420         * modules/getpass-gnu: New file.
71421         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71422
71423 2003-07-31  Bruno Haible  <bruno@clisp.org>
71424
71425         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71426
71427 2003-07-24  Karl Berry  <karl@gnu.org>
71428
71429         * config/missing: update from automake.
71430
71431 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71432             Bruno Haible  <bruno@clisp.org>
71433
71434         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71435         * lib/getline.c (getline, getdelim): Likewise.
71436         Remove _GNU_SOURCE define; now it's defined in config.h through
71437         m4/getline.m4.
71438
71439 2003-07-23  Karl Berry  <karl@gnu.org>
71440
71441         * config/config.sub: update from prep.
71442
71443 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71444
71445         * modules/xalloc (Depends-on): Add exitfail.
71446         * modules/xmemcoll: Likewise.
71447
71448 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71449
71450         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71451         over-parenthesization in macros.
71452
71453         Sync with coreutils.
71454
71455         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71456         required by C99.
71457
71458         Use `exit_failure' for xalloc and xmemcoll instead of their own
71459         private exit-failure variables.
71460         * lib/xalloc.h (xalloc_exit_failure): Remove.
71461         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71462         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71463         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71464         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71465         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71466
71467 2003-07-20  Jim Meyering  <jim@meyering.net>
71468
71469         * modules/closeout (Depends-on): Add exitfail.
71470         Suggestion from Bruno Haible.
71471
71472 2003-07-19  Karl Berry  <karl@gnu.org>
71473
71474         * config/config.sub: update from prep.
71475
71476 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71477
71478         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71479         Remove.
71480         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71481         to test that it can stand by itself.  Include "exitfail.h".
71482         Clients should set exit_failure instead.
71483         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71484
71485 2003-07-18  Bruno Haible  <bruno@clisp.org>
71486
71487         * modules/getndelim2: New file.
71488         * modules/getline: Share files with module getndelim2.
71489         * modules/getnline: Depend on getndelim2 instead of sharing files with
71490         it. Add getnline.c to lib_SOURCES.
71491         * MODULES.html.sh (func_all_modules): Add getndelim2.
71492
71493 2003-07-18  Bruno Haible  <bruno@clisp.org>
71494
71495         * m4/getndelim2.m4: New file.
71496         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71497         invoke gl_PREREQ_GETNDELIM2.
71498         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71499         gl_PREREQ_GETNDELIM2.
71500         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71501         gl_GETNDELIM2.
71502
71503 2003-07-18  Bruno Haible  <bruno@clisp.org>
71504
71505         * lib/getndelim2.h: New file.
71506         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71507         getndelim2.h.
71508         (getndelim2): Make non-static. Change return type to ssize_t.
71509         * lib/getline.h: Change argument names.
71510         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71511         * lib/getnline.c: Include getndelim2.h.
71512
71513 2003-07-18  Andreas Schwab  <schwab@suse.de>
71514
71515         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71516
71517 2003-07-17  Karl Berry  <karl@gnu.org>
71518
71519         * config/config.sub: update from prep.
71520
71521 2003-07-17  Bruno Haible  <bruno@clisp.org>
71522
71523         * modules/getnline: New file.
71524         * modules/getline: Add lib/getndelim2.c to source file list.
71525         * MODULES.html.sh (func_all_modules): Add getnline.
71526
71527 2003-07-17  Bruno Haible  <bruno@clisp.org>
71528
71529         * m4/getnline.m4: New file.
71530
71531 2003-07-17  Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/Makefile.am.in: Remove file.
71534         * m4/Makefile.am: Remove file.
71535         * m4/Makefile.in: Remove file.
71536
71537 2003-07-17  Bruno Haible  <bruno@clisp.org>
71538
71539         * lib/getnline.h: New file.
71540         * lib/getnline.c: New file.
71541         * lib/getndelim2.c: New file, extracted from getline.c.
71542         (getndelim2): Renamed from getdelim2, with added nmax argument.
71543         * lib/getline.c: Include getndelim2.c.
71544         (getdelim2): Moved out to getndelim2.c.
71545         (getline, getdelim): Update.
71546
71547 2003-07-17  Bruno Haible  <bruno@clisp.org>
71548
71549         * lib/Makefile.am: Remove file.
71550         * lib/Makefile.in: Remove file.
71551
71552 2003-07-17  Bruno Haible  <bruno@clisp.org>
71553
71554         * configure.in: Remove file.
71555         * Makefile.in: Remove file.
71556
71557 2003-07-17  Bruno Haible  <bruno@clisp.org>
71558
71559         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71560
71561 2003-07-16  Karl Berry  <karl@gnu.org>
71562
71563         * config/srclist-update: was running fixlicense twice, which caused
71564                 texinfo.tex to be nullified for some reason.  Simplify,
71565                 $gplsrc is no longer needed as far as I can see?
71566
71567 2003-07-16  Jim Meyering  <jim@meyering.net>
71568
71569         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71570
71571 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71572
71573         * config/srclist.txt: Get the following files from gettext-runtime/intl
71574         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71575         ref-del.sin.  From Bruno Haible.
71576         * config/srclist-update (fixfile): Change grep pattern again, since the
71577         previous fix didn't work (there was another trailing $).  Use
71578         '[$]' to escape the $s.
71579
71580 2003-07-15  Karl Berry  <karl@gnu.org>
71581
71582         * lib/vasnprintf.c: update from gettext.
71583
71584 2003-07-15  Karl Berry  <karl@gnu.org>
71585
71586         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71587         gets expanded when surrounded by '$'.
71588
71589 2003-07-15  Jim Meyering  <jim@meyering.net>
71590
71591         * modules/save-cwd: Don't depend on error.  From Derek Price.
71592
71593 2003-07-15  Jim Meyering  <jim@meyering.net>
71594
71595         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71596
71597 2003-07-14  Simon Josefsson  <jas@extundo.com>
71598
71599         * modules/mempcpy: New file.
71600         * MODULES.html.sh (func_all_modules): Add mempcpy.
71601
71602 2003-07-14  Simon Josefsson  <jas@extundo.com>
71603
71604         * m4/mempcpy.m4: New file.
71605
71606 2003-07-14  Simon Josefsson  <jas@extundo.com>
71607
71608         * lib/mempcpy.h: New file.
71609         * lib/mempcpy.c: New file.
71610
71611 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71612
71613         * modules/getdate, modules/posixtm: Depend on mktime.
71614
71615 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71616
71617         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71618         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71619         unicodeio.c, unicodeio.h, unlocked-io.h:
71620         Switch from LGPL to GPL.
71621
71622 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71623
71624         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71625         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71626         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71627         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71628         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71629         updated automatically by ../config/srclist-update.  This changes
71630         their license from LPGL to GPL.
71631
71632 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71633
71634         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71635         assumed to refer to the root of the most recent stable gettext version.
71636         * config/srclistvars.sh: Add defaults for eggert.
71637         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71638         Match "This program" as well as "The program".  This is needed
71639         for gettext.
71640
71641 2003-07-14  Jim Meyering  <jim@meyering.net>
71642
71643         Don't emit diagnostics.  Let callers do that.
71644         * lib/save-cwd.c: Don't include "error.h".
71645         (save_cwd): Don't call error.  Ensure that errno is valid
71646         when returning nonzero.
71647
71648         * lib/save-cwd.h (restore_cwd): Update prototype.
71649         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71650         Simplify.  Don't call error upon failure.  Let callers do that.
71651         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71652         when auditing is enabled.  But don't bother updating the #if.
71653
71654 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71655
71656         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71657         it breaks C++ compilation.
71658         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71659
71660 2003-07-10  Simon Josefsson  <jas@extundo.com>
71661
71662         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71663
71664 2003-07-10  Jim Meyering  <jim@meyering.net>
71665
71666         * m4/clock_time.m4: Remove trailing blank.
71667         * m4/intmax_t.m4: Likewise.
71668
71669 2003-07-10  Jim Meyering  <jim@meyering.net>
71670
71671         * lib/vasnprintf.c: Remove trailing blanks.
71672         Make cpp indentation consistent.
71673
71674 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71675
71676         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71677         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71678         Switch from LGPL to GPL.
71679
71680 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71681
71682         * config/srclist.txt: Sort sublists.  Add
71683         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71684         that differ from gnulib for one reason or another; we'd like this list
71685         to be smaller but for now let's document what we have.
71686
71687 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71688
71689         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71690         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71691         and sweeter "eval x=$x".
71692         * config/srclist.txt: Get lib/argp* from glibc.
71693
71694 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71695
71696         * lib/mktime.c: Fix some boundary cases and remove need for floating
71697         point.
71698
71699         Issue a compile-time diagnostic if time_t is floating point, or if
71700         two's complement arithmetic is not in effect, or if arithmetic
71701         right shift does not propagate the sign.  These assumptions were
71702         all in the original code but they weren't checked.
71703
71704         (TIME_T_MIDPOINT, verify): New macros.
71705         (__isleap): Remove; it has integer overflow problems.
71706         (leapyear): New function, without those problems.
71707         (ydhms_tm_diff): Remove; splitting into two parts.
71708         (ydhms_diff): New function, containing the arithmetic part of
71709         the old ydhms_tm_diff function.  Issue a compile-time
71710         diagnostic if we are not using C99 integer division.
71711         Avoid casts when possible.
71712         (guess_time_tm): New function, containing the checking part of
71713         the old ydhms_tm_diff function.  Return the new value, rather than
71714         the difference between it and the old.  Accept a new argument T
71715         so that *T specifies the old value.  Check for overflow in the result.
71716
71717         (__mktime_internal): Use a time_t offset, not a long int offset.
71718         This undoes the 2003-06-04 change, which is no longer needed now
71719         that we have better overflow checking.
71720         (localtime_offset): Likewise.
71721
71722         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71723         and long are 64-bit but int is only 32-bit.
71724         (ydhms_diff): Use long int to store year1 and yday1.
71725         Issue a compile-time diagnostic if long int is not wide enough.
71726
71727         (__mktime_internal): Use long int to store adjusted year and yday.
71728         Use plain C rather than preprocessor commands, if that doesn't
71729         affect efficiency.
71730         Check for overflow (and try to repair) after each probe
71731         rather than checking only at the very end.  This avoids some bugs
71732         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71733         does not equal GMT offset at maximum time).
71734         Use integer to check for overflow rather than floating point; this
71735         is more portable to non-IEEE hosts, and is a tad faster.
71736         When we detect that we are oscillating between two values,
71737         don't check whether tm_isdst has the requested value, since
71738         we already know the answer.  When tm_isdst has the wrong value,
71739         use a different heuristic to find the right one, based on the
71740         extreme values actually observed in practice in tz2003a,
71741         rather than the (overly optimistic) "previous 3 calendar quarters".
71742
71743         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71744         "T const" to accommodate glibc style.
71745         (check_result): Use less-confusing report format.  "long" -> "long int.
71746         (main): Likewise.
71747         Don't loop if the iteration overflows time_t.
71748         Allow a negative step in the iteration.
71749
71750 2003-07-06  Karl Berry  <karl@gnu.org>
71751
71752         * config/depcomp: update from automake.
71753         * config/config.sub: update from prep.
71754
71755 2003-07-03  Karl Berry  <karl@gnu.org>
71756
71757         * config/config.guess: update from prep.
71758
71759 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71760
71761         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71762         xreadlink.c now includes it unconditionally.
71763
71764 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71765
71766         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71767         having it depend on HAVE_SYS_TYPES_H.
71768
71769 2003-07-01  Bruno Haible  <bruno@clisp.org>
71770
71771         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71772         <sys/types.h> should be sufficient.
71773         Reported by Paul Eggert.
71774
71775 2003-06-26  Karl Berry  <karl@gnu.org>
71776
71777         * config/depcomp: update from automake.
71778
71779 2003-06-26  Bruno Haible  <bruno@clisp.org>
71780
71781         * modules/human: Depend on module stdbool.
71782
71783 2003-06-25  Bruno Haible  <bruno@clisp.org>
71784
71785         * modules/readlink: New file.
71786         * modules/xreadlink: Depend on it.
71787         * MODULES.html.sh (func_all_modules): Add readlink.
71788
71789 2003-06-25  Bruno Haible  <bruno@clisp.org>
71790
71791         * m4/readlink.m4: New file.
71792
71793 2003-06-25  Bruno Haible  <bruno@clisp.org>
71794
71795         * lib/readlink.c: New file.
71796
71797 2003-06-22  Karl Berry  <karl@gnu.org>
71798
71799         * config/srclist.txt: update mkinstalldirs from automake.
71800         * config/mkinstalldirs: update.
71801
71802 2003-06-22  Bruno Haible  <bruno@clisp.org>
71803
71804         Portability to mingw32.
71805         * m4/ssize_t.m4: New file, from GNU gettext.
71806         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71807         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71808
71809 2003-06-22  Bruno Haible  <bruno@clisp.org>
71810
71811         * modules/safe-read: Add m4/ssize_t.m4.
71812         * modules/xreadlink: Add m4/ssize_t.m4.
71813
71814 2003-06-20  Bruno Haible  <bruno@clisp.org>
71815
71816         Assume C89, so PARAMS isn't needed.
71817         * lib/unicodeio.h (PARAMS): Remove.
71818         * lib/unicodeio.c: Don't use PARAMS.
71819
71820 2003-06-18  Karl Berry  <karl@gnu.org>
71821
71822         * config/config.{guess,sub}: update from prep.
71823
71824 2003-06-18  Jim Meyering  <jim@meyering.net>
71825
71826         Merge changes from coreutils.
71827         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71828         Remove explicit declarations of xmalloc and realloc.
71829         Include xalloc.h.
71830         (read_utmp): Remove anachronistic cast of xmalloc.
71831
71832 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71833
71834         Assume C89, so PARAMS isn't needed.
71835         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71836         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71837         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71838         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71839         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71840         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71841         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71842         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71843         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71844         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71845         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71846         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71847         no longer needed. Anyway, config.h should always be included before any
71848         other file.
71849
71850 2003-06-11  Simon Josefsson  <jas@extundo.com>
71851
71852         * modules/sysexits: New file.
71853         * MODULES.html.sh (func_all_modules): Add sysexits.
71854
71855 2003-06-11  Simon Josefsson  <jas@extundo.com>
71856
71857         * lib/sysexit_.h: New file.
71858
71859 2003-06-11  Derek Price  <derek@ximbiot.com>
71860
71861         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71862         necessary.
71863
71864 2003-06-11  Bruno Haible  <bruno@clisp.org>
71865
71866         * m4/sysexits.m4: New file.
71867
71868 2003-06-10  Simon Josefsson  <jas@extundo.com>
71869
71870         * lib/argp.h: New file, from glibc.
71871         * lib/argp-ba.c: New file, from glibc.
71872         * lib/argp-eexst.c: New file, from glibc.
71873         * lib/argp-fmtstream.c: New file, from glibc.
71874         * lib/argp-fmtstream.h: New file, from glibc.
71875         * lib/argp-fs-xinl.c: New file, from glibc.
71876         * lib/argp-help.c: New file, from glibc.
71877         * lib/argp-namefrob.h: New file, from glibc.
71878         * lib/argp-parse.c: New file, from glibc.
71879         * lib/argp-pv.c: New file, from glibc.
71880         * lib/argp-pvh.c: New file, from glibc.
71881         * lib/argp-xinl.c: New file, from glibc.
71882
71883 2003-06-10  Simon Josefsson  <jas@extundo.com>
71884
71885         * modules/strchrnul: New file.
71886
71887 2003-06-10  Simon Josefsson  <jas@extundo.com>
71888
71889         * modules/argp: New file.
71890
71891 2003-06-10  Simon Josefsson  <jas@extundo.com>
71892
71893         * m4/strchrnul.m4: New file.
71894
71895 2003-06-10  Simon Josefsson  <jas@extundo.com>
71896
71897         * lib/strchrnul.h: New file.
71898         * lib/strchrnul.c: New file.
71899
71900 2003-06-10  Bruno Haible  <bruno@clisp.org>
71901
71902         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71903
71904 2003-06-07  Karl Berry  <karl@gnu.org>
71905
71906         * config/config.{guess,sub}: update from prep.
71907
71908 2003-06-07  Jim Meyering  <jim@meyering.net>
71909
71910         * modules/strtod: Use $(...) notation, not @...@ for
71911         AC_REPLACE'd variables.
71912         * modules/localcharset: Likewise.
71913
71914 2003-06-07  Jim Meyering  <jim@meyering.net>
71915
71916         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71917         in place of my name in the copyright comment.
71918         Remove definition and uses of __P.
71919
71920         From coreutils.
71921         * lib/stat.c: Don't declare xmalloc explicitly.
71922         Instead, include "xalloc.h".
71923         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71924         xrealloc, and xcalloc return values.
71925         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71926         Improve comment.
71927         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71928
71929 2003-06-07  Bruno Haible  <bruno@clisp.org>
71930
71931         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71932         avoid AC_CONFIG_LINKS.
71933         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71934         fnmatch.h, to avoid AC_CONFIG_LINKS.
71935         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71936
71937 2003-06-07  Bruno Haible  <bruno@clisp.org>
71938
71939         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71940         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71941         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71942         directory.
71943         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71944         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71945         directory.
71946
71947 2003-06-06  Jim Meyering  <jim@meyering.net>
71948
71949         Merge from coreutils.
71950         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71951         Consolidate declarations and initializations of *_base* locals.
71952
71953         Merge from coreutils.
71954         This avoids a core dump on systems without GNU putenv,
71955         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71956         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71957         (unsetenv): New static function, from GNU libc.
71958         (rpl_putenv): Use it.
71959
71960         * lib/modechange.c: Remove trailing blanks.
71961
71962         Merge from coreutils.
71963         * lib/fsusage.c: Remove declaration of statfs.
71964         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71965
71966         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71967
71968 2003-06-06  Jim Meyering  <jim@meyering.net>
71969
71970         * lib/stdbool_.h: Renamed from stdbool.h.in.
71971
71972 2003-06-06  Jim Meyering  <jim@meyering.net>
71973             Bruno Haible  <bruno@clisp.org>
71974
71975         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71976         Adjust Makefile.am snippet not to redirect directly to target.
71977         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71978
71979 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71980
71981         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71982         mismatch, look in future quarters as well as past.  This fixes a
71983         bug when processing fall-backwards gaps immediately after a long
71984         period of daylight-saving time.
71985
71986         * lib/mktime.c: Assume freestanding C89 or better.
71987         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71988         (__P): Remove; not used.
71989         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71990         (mktime, not_equal_tm, print_tm, check_result,
71991         main): Use prototypes.  Use const * where appropriate.
71992         (main): Fix typo in testing code that uncovered by above changes.
71993         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71994
71995 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71996
71997         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71998         locale.h, localeconv.  This merges changes from coreutils.
71999
72000         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72001         It can be removed after the next Autoconf is released.
72002         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72003         needed.
72004
72005 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72006
72007         * lib/mktime.c: Fix Debian bug 177940
72008         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72009         (localtime_offset): Now long int, not time_t, because we want it
72010         to be guaranteed to be signed.  All uses changed.
72011         (__mktime_internal): If overflow would occur when adding offset,
72012         don't add it.
72013
72014         Merge 'human' changes from coreutils.  Rewrite to support
72015         locale-specific notations like thousands separators.
72016         * lib/human.c: Simplify authorship notice.
72017         Include human.h immediately after config.h.
72018         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72019         <limits.h>: Do not include, since human.h does.
72020         (SIZE_MAX, UINTMAX_MAX): New macros.
72021         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72022         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72023         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72024         (power_letter): Renamed from suffixes.
72025         (generate_suffix_backwards): Remove.
72026         (adjust_value): Now takes int style (because of human.h changes)
72027         and long double value (for greater precision on some platforms).
72028         (group_number): New function.
72029         (human_readable): Use it.  Use integer options, not enum.
72030         Put the options before the sizes in the arg list.
72031         Support all the new options.
72032         The old human_readable function has been removed;
72033         use inttostr.h instead.
72034         (human_readable, default_block_size, humblock):
72035         Use uintmax_t, not int, for block sizes.
72036         (human_readable_inexact, block_size_types): Remove.
72037         (block_size_opts): New constant.
72038         (human_options): Renamed from human_block_size, with new signature
72039         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72040         * lib/human.h: Add copyright and authorship notice.
72041         Include <limits.h> and <stdbool.h> unconditionally.
72042         (PARAMS): Remove.  All uses removed.
72043         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72044         (enum human_inexact_style): Remove tag; now a nameless enum.
72045         (human_floor, human_ceiling, human_round_to_even): Now have
72046         values 2, 0, 1 rather than -1, 1, 0.
72047         (human_group_digits, human_suppress_point_zero, human_autoscale,
72048         human_base_1024, human_SI, human_B): New constants.
72049         (human_readable_inexact, human_block_size): Remove.
72050         (human_readable): Size args are now uintmax_t, not int.
72051         (human_options): New decl.
72052
72053         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72054         unnecessary now that we assume C89 or better.  This change
72055         imported from coreutils.
72056
72057         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72058         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72059         in the 2003-05-30 sync from glibc.
72060
72061         .h files should stand alone, but we shouldn't include <sys/types.h>
72062         if we can get away with just <stddef.h>.
72063
72064         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72065         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72066         rather than <sys/types.h>, as we merely need size_t.
72067         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72068         to get size_t.
72069         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72070         Include <stdio.h>, to get FILE.
72071         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72072         memcasecmp.h has included <stddef.h> and all we need is size_t.
72073         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72074         our interface, instead of including <sys/types.h>
72075
72076 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72077
72078         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72079         now, as glibc mktime is buggy on non-glibc systems.
72080
72081 2003-06-03  Karl Berry  <karl@gnu.org>
72082
72083         * config/config.sub: update from prep.
72084
72085 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72086
72087         [from coreutils]
72088         Fix some minor time-related bugs with POSIX time arguments.
72089         Some valid time stamps were being rejected (notably -1, and
72090         time stamps before 1900 on 64-bit hosts).  And some invalid
72091         time stamps were being accepted, e.g. September 31.
72092
72093         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72094         that we can return (time_t) -1 successfully.
72095         * lib/posixtm.c: Likewise.
72096         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72097         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72098         (t): Remove static var.
72099         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72100         of static var.  All uses changed.
72101         (year): Do not reject years before 1900; they can occur with
72102         64-bit time_t.
72103         (posix_time_parse): Do not check for out-of-range components;
72104         that is now the caller's responsibility, since our checks were
72105         only approximations.
72106         (posixtime): Use mktime to check for out-of-range components,
72107         since it knows them exactly.
72108         If mktime returns (time_t) -1, check whether an error actually occurred
72109         by invoking localtime on -1.
72110         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72111         posixtime failures better.
72112         Improve the test data (in comments only).
72113
72114 2003-06-02  Karl Berry  <karl@gnu.org>
72115
72116         * config/mkinstalldirs (version): new variable.
72117         (--version): new option.
72118         (usage): improve message.
72119
72120 2003-05-30  Karl Berry  <karl@gnu.org>
72121
72122         * lib/mktime.c: update from libc.
72123
72124 2003-05-30  Bruno Haible  <bruno@clisp.org>
72125
72126         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72127         * config/config.rpath: Upgrade to gettext-0.12.1.
72128
72129 2003-05-30  Bruno Haible  <bruno@clisp.org>
72130
72131         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72132         * m4/nls.m4: New file, from gettext-0.12.1.
72133         * m4/po.m4: New file, from gettext-0.12.1.
72134         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72135
72136 2003-05-30  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72139         * lib/localcharset.h: Likewise.
72140         * lib/localcharset.c: Likewise.
72141
72142 2003-05-29  Karl Berry  <karl@gnu.org>
72143
72144         * config/config.rpath: update from gettext.
72145
72146 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72147
72148         Assume the headers required for C89 freestanding compilers.
72149         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72150         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72151         * m4/human.m4 (gl_HUMAN): Likewise.
72152         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72153         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72154         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72155         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72156         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72157         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72158
72159 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72160
72161         Assume the headers required for C89 freestanding compilers.
72162         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72163         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72164         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72165         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72166         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72167         define, since <limits.h> is guaranteed to do that.
72168         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72169         * lib/exclude.c: Include <stdbool.h> unconditionally.
72170         * lib/tempname.c: Include <stddef.h> unconditionally.
72171         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72172         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72173         <stddef.h> does that.
72174         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72175         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72176         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72177         needed.
72178         * lib/xstrtol.c: Likewise.
72179         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72180         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72181
72182         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72183         warnings on some platforms.
72184
72185         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72186         arbitrarily.
72187
72188 2003-05-26  Jim Meyering  <jim@meyering.net>
72189
72190         Merge in a change from coreutils:
72191         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72192         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72193         that condition, rather than `-1' which is slightly misleading.
72194         Change the name of the cache variable to have the gl_ prefix.
72195         Prompted by a patch from Richard Dawe for DJGPP.
72196
72197 2003-05-24  Karl Berry  <karl@gnu.org>
72198
72199         * config/config.guess: update from prep.
72200
72201 2003-05-22  Karl Berry  <karl@gnu.org>
72202
72203         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72204
72205 2003-05-20  Karl Berry  <karl@gnu.org>
72206
72207         * config/config.guess: update from prep.
72208
72209 2003-05-18  Karl Berry  <karl@gnu.org>
72210
72211         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72212         might actually be set by the user.
72213
72214         * config/depcomp, install-sh, mdate-sh: update from automake.
72215
72216 2003-05-17  Bruno Haible  <bruno@clisp.org>
72217
72218         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72219         invalid expansion for AC_EGREP_CPP.
72220         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72221         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72222         Suggested by Akim Demaille <akim@epita.fr> in
72223         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72224
72225 2003-05-12  Jim Meyering  <jim@meyering.net>
72226
72227         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72228         the space-padded-by-default conversion specifiers, %e, %k, %l.
72229
72230 2003-05-12  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72233         the string is longer than 4 KB.
72234
72235 2003-05-11  Karl Berry  <karl@gnu.org>
72236
72237         * config/config.{guess,sub}: update from prep.
72238
72239 2003-05-09  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/error: Add m4/strerror_r.m4 to file list.
72242
72243 2003-05-03  Bruno Haible  <bruno@clisp.org>
72244
72245         Upgrade to Unicode-4.0.
72246         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72247         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72248         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72249         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72250         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72251         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72252         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72253         Change width of U+E0100..U+E01EF from 1 to 0.
72254
72255 2003-04-25  Jim Meyering  <jim@meyering.net>
72256
72257         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72258         of type size_t, not int.
72259
72260 2003-04-25  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/copy-file.c: Include <stddef.h>, for size_t.
72263
72264 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72265
72266         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72267         code which expansion is under static control.  Patch imported from
72268         Akim Demaille's patch to Bison; see
72269         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72270
72271 2003-04-14  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72274
72275 2003-04-11  Jim Meyering  <jim@meyering.net>
72276
72277         Merge changes from Coreutils.
72278
72279         2003-03-22  Jim Meyering  <jim@meyering.net>
72280
72281         * lib/strftime.c (widen): Cast alloca return value to proper type.
72282
72283         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72284
72285         From GNU libc.
72286         * lib/strftime.c (my_strftime): Handle very large width
72287         specifications for numeric values correctly.  Improve checks for
72288         overflow.
72289
72290         2003-01-19  Jim Meyering  <jim@meyering.net>
72291
72292         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72293         definitions.
72294         (nl_get_alt_digit) [! defined my_strftime]: Define.
72295         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72296         _nl_get_alt_digit and _nl_get_walt_digit.
72297
72298         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72299         libc. These changes have no effect outside of _LIBC.
72300
72301 2003-04-10  Bruno Haible  <bruno@clisp.org>
72302
72303         * modules/findprog: New file.
72304         * MODULES.html.sh (func_all_modules): Add it.
72305
72306 2003-04-10  Bruno Haible  <bruno@clisp.org>
72307
72308         * m4/findprog.m4: New file.
72309         * m4/eaccess.m4: New file.
72310
72311 2003-04-10  Bruno Haible  <bruno@clisp.org>
72312
72313         * lib/findprog.h: New file, from GNU gettext.
72314         * lib/findprog.c: New file, from GNU gettext.
72315
72316 2003-04-05  Jim Meyering  <jim@meyering.net>
72317
72318         Merge changes from Coreutils.
72319
72320         * lib/exclude.h (PARAMS): Remove definition and uses.
72321         * lib/exclude.c: Remove uses of `PARAMS'.
72322
72323         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72324         Add test-cases for DOS filenames. Declare program_name.
72325         (main): Set up program_name.  Patch by Rich Dawe.
72326
72327         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72328         error from mntctl.
72329         Use mntctl's return value to drive the entry-processing loop, since
72330         we can't rely on the value of the vmt_length member in the last
72331         entry.  On some systems doing so could result in exhausting
72332         virtual memory.  Based in part on a patch from Mike Jetzer.
72333
72334 2003-04-04  Bruno Haible  <bruno@clisp.org>
72335
72336         * modules/linebreak: New file.
72337         * MODULES.html.sh (func_all_modules): Add it.
72338
72339 2003-04-04  Bruno Haible  <bruno@clisp.org>
72340
72341         * m4/linebreak.m4: New file.
72342
72343 2003-04-04  Bruno Haible  <bruno@clisp.org>
72344
72345         * lib/linebreak.h: New file, from GNU gettext.
72346         * lib/linebreak.c: New file, from GNU gettext with slight
72347         modifications.
72348         * lib/lbrkprop.h: New file, from GNU gettext.
72349
72350 2003-04-03  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/utf8-ucs4: New file.
72353         * modules/utf16-ucs4: New file.
72354         * modules/ucs4-utf8: New file.
72355         * modules/ucs4-utf16: New file.
72356         * MODULES.html.sh (func_all_modules): Add them.
72357
72358 2003-04-03  Bruno Haible  <bruno@clisp.org>
72359
72360         * m4/utf-ucs4.m4: New file.
72361         * m4/ucs4-utf.m4: New file.
72362
72363 2003-04-03  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/utf8-ucs4.h: New file, from GNU gettext.
72366         * lib/utf16-ucs4.h: New file, from GNU gettext.
72367         * lib/ucs4-utf8.h: New file, from GNU gettext.
72368         * lib/ucs4-utf16.h: New file, from GNU gettext.
72369
72370 2003-04-02  Bruno Haible  <bruno@clisp.org>
72371
72372         * modules/binary-io: New file.
72373         * MODULES.html.sh (func_all_modules): Add it.
72374
72375 2003-04-02  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/binary-io.h: New file, from GNU gettext.
72378
72379 2003-04-01  Bruno Haible  <bruno@clisp.org>
72380
72381         * modules/pathname: New file.
72382         * MODULES.html.sh (func_all_modules): Add it.
72383
72384 2003-04-01  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/pathname.h: New file, from GNU gettext.
72387         * lib/concatpath.c: New file, from GNU gettext.
72388
72389 2003-03-30  Bruno Haible  <bruno@clisp.org>
72390
72391         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72392
72393 2003-03-30  Bruno Haible  <bruno@clisp.org>
72394
72395         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72396         function chown() doesn't exist.
72397
72398 2003-03-28  Bruno Haible  <bruno@clisp.org>
72399
72400         * modules/copy-file: New file.
72401         * MODULES.html.sh (func_all_modules): Add it.
72402
72403 2003-03-28  Bruno Haible  <bruno@clisp.org>
72404
72405         * m4/copy-file.m4: New file.
72406
72407 2003-03-28  Bruno Haible  <bruno@clisp.org>
72408
72409         * lib/copy-file.h: New file, from GNU gettext.
72410         * lib/copy-file.c: New file, from GNU gettext.
72411
72412 2003-03-18  Jim Meyering  <jim@meyering.net>
72413
72414         * lib/quote.c (quote_n): Fix typo in comment.
72415
72416 2003-03-18  Bruno Haible  <bruno@clisp.org>
72417
72418         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72419         checking.
72420         * m4/onceonly_2_57.m4: Likewise.
72421
72422 2003-03-17  Bruno Haible  <bruno@clisp.org>
72423
72424         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72425         (m4_quote): Remove macro.
72426         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72427
72428 2003-03-14  Jim Meyering  <jim@meyering.net>
72429
72430         Merge changes from Coreutils.
72431         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72432         to be const, in order to avoid warnings.
72433         (obstack_room): Likewise.
72434         (obstack_empty_p): Likewise.
72435
72436 2003-03-14  Bruno Haible  <bruno@clisp.org>
72437
72438         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72439         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72440
72441 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72442
72443         Merge changes from Bison.
72444         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72445         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72446         when compiling Bison 1.875's `bitset bset = obstack_alloc
72447         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72448         * lib/hash.c: Include <stdbool.h> unconditionally.
72449
72450 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72451
72452         * m4/onceonly.m4 (m4_quote): New macro.
72453         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72454         Quote AC_FOREACH variable-expansions properly.
72455
72456 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72457
72458         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72459
72460 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72461
72462         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72463         Reported by Bruce Becker; see:
72464         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72465
72466 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72467             Bruno Haible  <bruno@clisp.org>
72468
72469         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72470         Reported by John Hughes, see
72471         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72472
72473 2003-02-20  Bruno Haible  <bruno@clisp.org>
72474
72475         * MODULES.html.sh (func_all_modules): Add poll.
72476
72477 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72478
72479         * modules/poll: New file.
72480
72481 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72482
72483         * lib/poll_.h: New file.
72484         * lib/poll.c: New file.
72485
72486 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72487
72488         * m4/poll.m4: New file.
72489
72490 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72491
72492         * modules/mathl: New file.
72493
72494 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72495
72496         * lib/mathl.h: New file.
72497         * lib/acosl.c: New file.
72498         * lib/asinl.c: New file.
72499         * lib/atanl.c: New file.
72500         * lib/ceill.c: New file.
72501         * lib/cosl.c: New file.
72502         * lib/expl.c: New file.
72503         * lib/floorl.c: New file.
72504         * lib/frexpl.c: New file.
72505         * lib/ldexpl.c: New file.
72506         * lib/logl.c: New file.
72507         * lib/sincosl.c: New file.
72508         * lib/sinl.c: New file.
72509         * lib/sqrtl.c: New file.
72510         * lib/tanl.c: New file.
72511         * lib/trigl.c: New file.
72512         * lib/trigl.h: New file.
72513
72514 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72515
72516         * m4/mathl.m4: New file.
72517
72518 2003-02-18  Bruno Haible  <bruno@clisp.org>
72519
72520         * MODULES.html.sh (func_all_modules): Add mathl.
72521
72522 2003-02-17  Bruno Haible  <bruno@clisp.org>
72523
72524         * modules/mkdtemp: New module.
72525         * MODULES.html.sh (func_all_modules): Add it.
72526
72527 2003-02-17  Bruno Haible  <bruno@clisp.org>
72528
72529         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72530
72531 2003-02-17  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/mkdtemp.h: New file, from GNU gettext.
72534         * lib/mkdtemp.c: New file, from GNU gettext.
72535
72536 2003-02-02  Jim Meyering  <jim@meyering.net>
72537
72538         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72539         e.g. glibc-2.2.93.
72540
72541 2003-01-31  Bruno Haible  <bruno@clisp.org>
72542
72543         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72544         'rpl_rename'.
72545         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72546         'rpl_strnlen'.
72547         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72548         'rpl_strtod'.
72549         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72550         'rpl_utime'.
72551
72552 2003-01-31  Bruno Haible  <bruno@clisp.org>
72553
72554         * lib/rename.c: #undef rename before defining rpl_rename.
72555         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72556
72557 2003-01-30  Bruno Haible  <bruno@clisp.org>
72558
72559         * modules/vasnprintf, modules/vasprintf: New modules.
72560         * MODULES.html.sh (func_all_modules): Add them.
72561
72562 2003-01-30  Bruno Haible  <bruno@clisp.org>
72563
72564         * m4/signed.m4: New file, from GNU gettext.
72565         * m4/longdouble.m4: New file, from GNU gettext.
72566         * m4/wchar_t.m4: New file, from GNU gettext.
72567         * m4/wint_t.m4: New file, from GNU gettext.
72568         * m4/vasnprintf.m4: New file.
72569         * m4/vasprintf.m4: New file.
72570
72571 2003-01-30  Bruno Haible  <bruno@clisp.org>
72572
72573         * lib/printf-args.h: New file, from GNU gettext.
72574         * lib/printf-args.c: New file, from GNU gettext.
72575         * lib/printf-parse.h: New file, from GNU gettext.
72576         * lib/printf-parse.c: New file, from GNU gettext.
72577         * lib/vasnprintf.h: New file, from GNU gettext.
72578         * lib/vasnprintf.c: New file, from GNU gettext.
72579         * lib/asnprintf.c: New file, from GNU gettext.
72580         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72581         * lib/vasprintf.c: New file, from GNU gettext.
72582         * lib/asprintf.c: New file, from GNU gettext.
72583
72584 2003-01-29  Bruno Haible  <bruno@clisp.org>
72585
72586         * modules/stpncpy: New module.
72587         * MODULES.html.sh (func_all_modules): Add it.
72588
72589 2003-01-29  Bruno Haible  <bruno@clisp.org>
72590
72591         * m4/stpncpy.m4: New file.
72592
72593 2003-01-29  Bruno Haible  <bruno@clisp.org>
72594
72595         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72596         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72597
72598 2003-01-28  Bruno Haible  <bruno@clisp.org>
72599
72600         * modules/c-ctype: New module.
72601         * MODULES.html.sh (func_all_modules): Add it.
72602
72603 2003-01-28  Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72606         Paul Eggert.
72607         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72608         Paul Eggert.
72609
72610 2003-01-27  Bruno Haible  <bruno@clisp.org>
72611
72612         * modules/xsetenv: New module.
72613         * MODULES.html.sh (func_all_modules): Add it.
72614
72615 2003-01-27  Bruno Haible  <bruno@clisp.org>
72616
72617         * lib/xsetenv.h: New file, from GNU gettext.
72618         * lib/xsetenv.c: New file, from GNU gettext.
72619
72620 2003-01-23  Jim Meyering  <jim@meyering.net>
72621
72622         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72623         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72624
72625 2003-01-23  Bruno Haible  <bruno@clisp.org>
72626
72627         * modules/minmax: New module.
72628         * MODULES.html.sh (func_all_modules): Add it.
72629
72630 2003-01-23  Bruno Haible  <bruno@clisp.org>
72631
72632         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72633         Eggert.
72634
72635 2003-01-22  Bruno Haible  <bruno@clisp.org>
72636
72637         * modules/exit: New module.
72638         * MODULES.html.sh (func_all_modules): Add it.
72639
72640 2003-01-22  Bruno Haible  <bruno@clisp.org>
72641
72642         * lib/exit.h: New file, from GNU gettext.
72643
72644 2003-01-19  Bruno Haible  <bruno@clisp.org>
72645
72646         * gnulib-tool: Recognize option --extract-maintainer.
72647         (func_get_maintainer): New function.
72648         * modules/*: Add Maintainer entry.
72649
72650 2003-01-16  Jim Meyering  <jim@meyering.net>
72651
72652         * m4/regex.m4: The `regex' struct is both input and output.
72653         Initialize it before each use.  Patch by Tim Waugh.
72654
72655 2003-01-16  Bruno Haible  <bruno@clisp.org>
72656
72657         * MODULES.html.sh: Add a table of contents. Add the module name as
72658         leftmost column. Add hyperlinks.
72659
72660 2003-01-15  Bruno Haible  <bruno@clisp.org>
72661
72662         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72663
72664 2003-01-15  Bruno Haible  <bruno@clisp.org>
72665
72666         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72667         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72668         suffix.
72669
72670 2003-01-15  Bruno Haible  <bruno@clisp.org>
72671
72672         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72673
72674 2003-01-15  Bruno Haible  <bruno@clisp.org>
72675
72676         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72677         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72678
72679 2003-01-14  Jim Meyering  <jim@meyering.net>
72680
72681         * lib/same.c (same_name): Tweak a comment.
72682
72683 2003-01-14  Bruno Haible  <bruno@clisp.org>
72684
72685         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72686         when a string comparison is sufficient.
72687
72688 2003-01-14  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72691         'unsigned int'.
72692
72693 2003-01-14  Bruno Haible  <bruno@clisp.org>
72694
72695         * lib/hash-pjw.c: Add comment about low quality of this function.
72696
72697 2003-01-13  Bruno Haible  <bruno@clisp.org>
72698
72699         * modules/stpcpy: Distribute lib/stpcpy.h.
72700         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72701
72702 2003-01-13  Bruno Haible  <bruno@clisp.org>
72703
72704         * modules/*: Add a description.
72705         * modules/strpbrk: Fix Makefile.am snippet.
72706         * modules/strtoimax: Fix dependencies.
72707         * modules/strtoumax: Likewise.
72708
72709 2003-01-13  Bruno Haible  <bruno@clisp.org>
72710
72711         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72712         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72713         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72714
72715 2003-01-13  Bruno Haible  <bruno@clisp.org>
72716
72717         * gnulib-tool (func_create_testdir): Store config/* files in the main
72718         directory.
72719         * config.rpath: Move to ...
72720         * config/config.rpath: ... here.
72721         * modules/gettext: Contains config/config.rpath, not config.rpath.
72722         * modules/iconv: Likewise.
72723
72724 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72725
72726         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72727         to avoid collisions with libcurses and libreadline.
72728
72729         * m4/getstr.m4: Remove.
72730         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72731
72732 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72733
72734         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72735         to avoid collisions with libcurses and libreadline.
72736
72737         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72738         * lib/getstr.h, getstr.c: Remove.
72739         * lib/getline.c: Include "getline.h", to check interface.
72740         Move body of old getstr.c here: this defines MIN_CHUNK and
72741         declares getdelim2, which is renamed from getstr.
72742         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72743
72744         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72745         All uses changed.
72746         * lib/linebuffer.h: Likewise.
72747         (readline): Remove backward-compatibility macro.
72748
72749 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72750
72751         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72752         to avoid collisions with libcurses and libreadline.
72753         * getstr: Remove.
72754         * MODULES.html.sh: Remove getstr.
72755         * modules/getline: Depend on unlocked-io, not getstr.
72756
72757 2003-01-12  Jim Meyering  <jim@meyering.net>
72758
72759         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72760
72761 2003-01-10  Bruno Haible  <bruno@clisp.org>
72762
72763         * modules/alloca: Change Makefile.am requirements. Simplify Include
72764         requirements. Add lib/alloca_.h to file list.
72765
72766 2003-01-10  Bruno Haible  <bruno@clisp.org>
72767
72768         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72769
72770 2003-01-10  Bruno Haible  <bruno@clisp.org>
72771
72772         * lib/alloca_.h: New file.
72773         * lib/getdate.y: Unconditionally include alloca.h.
72774         * lib/makepath.c: Likewise.
72775         * lib/setenv.c: Likewise.
72776         * lib/userspec.c: Likewise.
72777
72778 2003-01-09  Karl Berry  <karl@gnu.org>
72779
72780         * MODULES.html.sh: include `dirname $0` in PATH, to find
72781         gnulib-tool.
72782
72783 2003-01-09  Bruno Haible  <bruno@clisp.org>
72784
72785         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72786         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72787
72788 2003-01-09  Bruno Haible  <bruno@clisp.org>
72789
72790         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72791
72792 2003-01-09  Bruno Haible  <bruno@clisp.org>
72793
72794         * lib/stdbool.h.in: New file.
72795
72796 2003-01-09  Bruno Haible  <bruno@clisp.org>
72797
72798         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72799         * MODULES.html.sh: Likewise.
72800
72801 2003-01-08  Jim Meyering  <jim@meyering.net>
72802
72803         * lib/full-write.c: Undefine and define-away `const' after inclusion
72804         of errno.h, not before.  Suggestion from Bruno Haible.
72805
72806 2003-01-08  Bruno Haible  <bruno@clisp.org>
72807
72808         * modules/full-read: Depend on full-write.
72809
72810 2003-01-08  Bruno Haible  <bruno@clisp.org>
72811
72812         * lib/safe-read.c: Include specification header first, to ensure its
72813         selfcontainedness.
72814         * lib/full-write.c: Likewise.
72815
72816 2003-01-07  Jim Meyering  <jim@meyering.net>
72817
72818         * lib/full-write.c: Rework so that it may serve to define full_read,
72819         too.
72820         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72821
72822 2003-01-07  Bruno Haible  <bruno@clisp.org>
72823
72824         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72825         <inttypes.h>.
72826         * lib/xstrtol.h: Likewise.
72827         * lib/xstrtoimax.c: Likewise.
72828         * lib/xstrtoumax.c: Likewise.
72829         * lib/human.h: Likewise.
72830
72831         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72832         on systems that have <inttypes.h> but not <stdint.h>.
72833
72834 2003-01-07  Bruno Haible  <bruno@clisp.org>
72835
72836         * MODULES.html.sh: Add copyright notice.
72837         (missed_files): Omit CVS directory entries.
72838         (func_module): Make it work with sed-3.02.
72839         * MODULES.txt: Remove file.
72840
72841 2003-01-06  Jim Meyering  <jim@meyering.net>
72842
72843         * lib/version-etc.c: Update year in translatable copyright string.
72844
72845 2003-01-03  Karl Berry  <karl@gnu.org>
72846
72847         * config/config.{guess,sub}: update from prep.
72848
72849 2003-01-02  Karl Berry  <karl@gnu.org>
72850
72851         * doc/COPYING.DOC: belatedly updated to 1.2.
72852
72853 2003-01-01  Karl Berry  <karl@gnu.org>
72854
72855         * gnulib-tool (func_verify_module): report module name $module in
72856         error message, not $1.
72857         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72858         be created, only if it doesn't exist.
72859         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72860
72861 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72862
72863         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72864
72865 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72866
72867         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72868         memcmp if strcoll doesn't work.
72869
72870 2002-12-31  Bruno Haible  <bruno@clisp.org>
72871
72872         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72873         nonempty.
72874
72875 2002-12-31  Bruno Haible  <bruno@clisp.org>
72876
72877         * lib/memcoll.c (STRCOLL): New macro.
72878         (memcoll): Use it.
72879
72880 2002-12-31  Bruno Haible  <bruno@clisp.org>
72881
72882         * lib/localcharset.h: New file.
72883         * lib/localcharset.c: Include it.
72884         * lib/unicodeio.c: Likewise.
72885
72886 2002-12-31  Bruno Haible  <bruno@clisp.org>
72887
72888         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72889         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72890
72891 2002-12-31  Bruno Haible  <bruno@clisp.org>
72892
72893         * lib/getline.h: Include <stddef.h>, for size_t.
72894
72895         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72896         * lib/unicodeio.c: Don't include <stddef.h>.
72897
72898 2002-12-31  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72901         HAVE_TM_ZONE.
72902
72903 2002-12-24  Karl Berry  <karl@gnu.org>
72904
72905         * config/config.guess: update from prep.
72906
72907 2002-12-24  Bruno Haible  <bruno@clisp.org>
72908
72909         General infrasructure.
72910         * m4/README: Rewritten.
72911         * m4/onceonly.m4: New file.
72912         * m4/onceonly_2_57.m4: New file.
72913
72914         Module atexit.
72915         * m4/atexit.m4: New file.
72916
72917         Module strtod.
72918         * m4/strtod.m4: New file.
72919
72920         Module strtol.
72921         * m4/strtol.m4: New file.
72922
72923         Module strtoul.
72924         * m4/strtoul.m4: New file.
72925
72926         Module memchr.
72927         * m4/memchr.m4: New file.
72928
72929         Module memcmp.
72930         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72931         (jm_FUNC_MEMCMP): Invoke it.
72932
72933         Module memcpy.
72934         * m4/memcpy.m4: New file.
72935
72936         Module memmove.
72937         * m4/memmove.m4: New file.
72938
72939         Module memset.
72940         * m4/memset.m4: New file.
72941
72942         Module strcspn.
72943         * m4/strcspn.m4: New file.
72944
72945         Module strpbrk.
72946         * m4/strpbrk.m4: New file.
72947
72948         Module strstr.
72949         * m4/strstr.m4: New file.
72950
72951         Module strerror.
72952         * m4/strerror.m4: New file.
72953
72954         Module mktime.
72955         * m4/mktime.m4: Renamed from jm-mktime.m4.
72956         (gl_PREREQ_MKTIME): New macro.
72957         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72958
72959         Module malloc.
72960         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72961         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72962         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72963
72964         Module realloc.
72965         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72966         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72967         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72968
72969         Module strftime.
72970         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72971         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72972         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72973         gl_TM_GMTOFF.
72974         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72975
72976         Module xalloc.
72977         * m4/xalloc.m4: New file.
72978
72979         Module alloca.
72980         * m4/alloca.m4: New file.
72981
72982         Module putenv.
72983         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72984         (jm_FUNC_PUTENV): Invoke it.
72985
72986         Module setenv.
72987         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72988         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72989         when invoked twice.
72990         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72991         gt_FUNC_SETENV.
72992
72993         Module memrchr.
72994         * m4/memrchr.m4: New file.
72995
72996         Module stpcpy.
72997         * m4/stpcpy.m4: New file.
72998
72999         Module strcase.
73000         * m4/strcase.m4: New file.
73001
73002         Module strdup.
73003         * m4/strdup.m4: New file.
73004
73005         Module strnlen.
73006         * m4/strnlen.m4: New file.
73007
73008         Module strndup.
73009         * m4/strndup.m4: New file.
73010
73011         Module xstrtod.
73012         * m4/xstrtod.m4: New file.
73013
73014         Module xstrtol.
73015         * m4/xstrtol.m4: New file.
73016
73017         Module getdate.
73018         * m4/getdate.m4: New file.
73019
73020         Module unlocked-io.
73021         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73022         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73023         * m4/jm-glibc-io.m4n: Remove file.
73024
73025         Module long-options.
73026         * m4/long-options.m4: New file.
73027
73028         Module md5.
73029         * m4/md5.m4: New file.
73030
73031         Module sha.
73032         * m4/sha.m4: New file.
73033
73034         Module getstr.
73035         * m4/getstr.m4: New file.
73036
73037         Module getline.
73038         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73039         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73040         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73041         simply getline. Infoke gl_PREREQ_GETLINE.
73042
73043         Module obstack.
73044         * m4/obstack.m4: New file.
73045
73046         Module hash.
73047         * m4/hash.m4: New file.
73048
73049         Module readtokens.
73050         * m4/readtokens.m4: New file.
73051
73052         Module strverscmp.
73053         * m4/strverscmp.m4: New file.
73054
73055         Module stdbool.
73056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73057         OSF/1.
73058
73059         Module strtoll.
73060         * m4/strtoll.m4: New file.
73061
73062         Module strtoull.
73063         * m4/strtoull.m4: New file.
73064
73065         Module strtoimax.
73066         * m4/strtoimax.m4: New file.
73067
73068         Module strtoumax.
73069         * m4/strtoumax.m4: New file.
73070
73071         Module xstrtoimax.
73072         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73073         jm_AC_PREREQ_XSTRTOIMAX.
73074         Moved the strtol prerequisites to strtol.m4.
73075         Moved the strtoll prerequisites to strtoll.m4.
73076         Moved the strtoimax prerequisites to strtoimax.m4.
73077
73078         Module xstrtoumax.
73079         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73080         jm_AC_PREREQ_XSTRTOUMAX.
73081         Moved the strtoul prerequisites to strtoul.m4.
73082         Moved the strtoull prerequisites to strtoull.m4.
73083         Moved the strtoumax prerequisites to strtoumax.m4.
73084
73085         Module chown.
73086         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73087         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73088
73089         Module dup2.
73090         * m4/dup2.m4: New file.
73091
73092         Module ftruncate.
73093         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73094         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73095
73096         Module getgroups.
73097         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73098         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73099
73100         Module gettimeofday.
73101         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73102         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73103         gl_PREREQ_GETTIMEOFDAY.
73104
73105         Module mkdir.
73106         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73107         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73108
73109         Module mkstemp.
73110         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73111         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73112         jm_AC_TYPE_UINTMAX_T.
73113         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73114
73115         Module stat.
73116         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73117         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73118
73119         Module lstat.
73120         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73121         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73122
73123         Module timespec.
73124         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73125         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73126         * m4/st_mtim.m4: Indentation.
73127
73128         Module nanosleep.
73129         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73130         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73131         gl_PREREQ_NANOSLEEP.
73132
73133         Module regex.
73134         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73135         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73136         (gl_REGEX): New macro.
73137
73138         Module rename.
73139         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73140         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73141
73142         Module rmdir.
73143         * m4/rmdir.m4: New file.
73144
73145         Module utime.
73146         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73147         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73148         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73149
73150         Module dirname.
73151         * m4/dirname.m4: New file.
73152
73153         Module getopt.
73154         * m4/getopt.m4: New file.
73155
73156         Module unistd-safer.
73157         * m4/unistd-safer.m4: New file.
73158
73159         Module fnmatch.
73160         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73161         declaration.
73162         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73163         (gl_FUNC_FNMATCH_POSIX): New macro.
73164         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73165         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73166         simply fnmatch.
73167
73168         Module exclude.
73169         * m4/exclude.m4: New file.
73170
73171         Module human.
73172         * m4/human.m4: New file.
73173
73174         Module acl.
73175         * m4/acl.m4: Nop.
73176
73177         Module backupfile.
73178         * m4/backupfile.m4: New file.
73179         * m4/d-ino.m4: Indentation.
73180
73181         Module fsusage.
73182         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73183         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73184         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73185
73186         Module dirfd.
73187         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73188         requirements.
73189
73190         Module euidaccess.
73191         * m4/euidaccess.m4: New file.
73192
73193         Module file-type.
73194         * m4/file-type.m4: New file.
73195
73196         Module fileblocks.
73197         * m4/fileblocks.m4: New file.
73198
73199         Module filemode.
73200         * m4/filemode.m4: New file.
73201
73202         Module isdir.
73203         * m4/isdir.m4: New file.
73204
73205         Module lchown.
73206         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73207         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73208
73209         Module makepath.
73210         * m4/makepath.m4: New file.
73211
73212         Module modechange.
73213         * m4/modechange.m4: New file.
73214
73215         Module mountlist.
73216         * m4/mountlist.m4: New file.
73217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73218         Indentation.
73219
73220         Module path-concat.
73221         * m4/path-concat.m4: New file.
73222
73223         Module pathmax.
73224         * m4/pathmax.m4: New file.
73225
73226         Module same.
73227         * m4/same.m4: New file.
73228
73229         Module save-cwd.
73230         * m4/save-cwd.m4: New file.
73231
73232         Module savedir.
73233         * m4/savedir.m4: New file.
73234
73235         Module xgetcwd.
73236         * m4/xgetcwd.m4: New file.
73237         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73238
73239         Module xreadlink.
73240         * m4/xreadlink.m4: New file.
73241
73242         Module safe-read.
73243         * m4/safe-read.m4: New file.
73244
73245         Module safe-write.
73246         * m4/safe-write.m4: New file.
73247
73248         Module closeout.
73249         * m4/closeout.m4: New file.
73250
73251         Module stdio-safer.
73252         * m4/stdio-safer.m4: New file.
73253
73254         Module getpass.
73255         * m4/getpass.m4: New file.
73256
73257         Module getugroups.
73258         * m4/getugroups.m4: New file.
73259
73260         Module group-member.
73261         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73262         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73263
73264         Module idcache.
73265         * m4/idcache.m4: New file.
73266
73267         Module userspec.
73268         * m4/userspec.m4: New file.
73269
73270         Module gettime.
73271         * m4/clock_time.m4: New file.
73272         * m4/gettime.m4: New file.
73273
73274         Module settime.
73275         * m4/settime.m4: New file.
73276
73277         Module posixtm.
73278         * m4/posixtm.m4: New file.
73279
73280         Module gethostname.
73281         * m4/gethostname.m4: New file.
73282
73283         Module canon-host.
73284         * m4/canon-host.m4: New file.
73285
73286         Module gettext.
73287         * m4/codeset.m4: New file, from gettext-0.11.5.
73288         * m4/gettext.m4: New file, from gettext-0.11.5.
73289         * m4/glibc21.m4: New file, from gettext-0.11.5.
73290         * m4/iconv.m4: New file, from gettext-0.11.5.
73291         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73292         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73293         * m4/inttypes.m4: New file, from gettext-0.11.5.
73294         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73295         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73296         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73297         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73298         * m4/lib-link.m4: New file, from gettext-0.11.5.
73299         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73300         * m4/progtest.m4: New file, from gettext-0.11.5.
73301         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73302         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73303         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73304
73305         Module localcharset.
73306         * m4/localcharset.m4: New file.
73307
73308         Module hard-locale.
73309         * m4/hard-locale.m4: New file.
73310
73311         Module mbswidth.
73312         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73313         onceonly macros.
73314         * m4/mbrtowc.m4: Add comment.
73315
73316         Module memcasecmp.
73317         * m4/memcasecmp.m4: New file.
73318
73319         Module memcoll.
73320         * m4/memcoll.m4: New file.
73321
73322         Module unicodeio.
73323         * m4/unicodeio.m4: New file.
73324
73325         Module rpmatch.
73326         * m4/rpmatch.m4: New file.
73327
73328         Module yesno.
73329         * m4/yesno.m4: New file.
73330
73331         Module exitfail.
73332         * m4/exitfail.m4: New file.
73333
73334         Module c-stack.
73335         * m4/c-stack.m4 (gl_C_STACK): New macro.
73336         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73337
73338         Module error.
73339         * m4/error.m4 (gl_ERROR): New macro.
73340         (jm_PREREQ_ERROR): Use onceonly macros.
73341
73342         Module fatal.
73343         * m4/fatal.m4: New file.
73344
73345         Module getloadavg.
73346         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73347         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73348
73349         Module getpagesize.
73350         * m4/getpagesize.m4: New file.
73351
73352         Module getusershell.
73353         * m4/getusershell.m4: New file.
73354
73355         Module physmem.
73356         * m4/physmem.m4: New file.
73357
73358         Module posixver.
73359         * m4/posixver.m4: New file.
73360
73361         Module quotearg.
73362         * m4/quotearg.m4: New file.
73363
73364         Module quote.
73365         * m4/quote.m4: New file.
73366
73367         Module readutmp.
73368         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73369
73370         Module sig2str.
73371         * m4/sig2str.m4: New file.
73372
73373         Other.
73374         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73375         ulonglong.m4.
73376         * m4/intmax_t.m4: New file.
73377         * m4/d-type.m4: Indentation.
73378         * m4/jm-macros.m4: Update.
73379         * m4/prereq.m4 (jm_PREREQ): Update.
73380         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73381         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73382         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73383         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73384         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73385         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73386         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73387         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73388         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73389         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73390         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73391         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73392         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73393         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73394         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73395         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73396         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73397         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73398         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73399
73400 2002-12-24  Bruno Haible  <bruno@clisp.org>
73401
73402         * MODULES.txt: Update according to m4/ changes.
73403
73404         Module gettext.
73405         * config.rpath: New file, from gettext-0.11.5.
73406
73407         * modules/*: New module descriptions.
73408         * gnulib-tool: New file.
73409         * MODULES.html.sh: New file.
73410
73411 2002-12-21  Karl Berry  <karl@gnu.org>
73412
73413         * doc/fdl.texi: update to version 1.2.
73414
73415 2002-12-19  Karl Berry  <karl@gnu.org>
73416
73417         * config/config.guess: update from prep.
73418
73419 2002-12-18  Bruno Haible  <bruno@clisp.org>
73420
73421         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73422         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73423
73424 2002-12-17  Bruno Haible  <bruno@clisp.org>
73425
73426         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73427         stdlib.h, string.h.
73428
73429 2002-12-17  Bruno Haible  <bruno@clisp.org>
73430
73431         * lib/canon-host.c (strdup): Remove unused declaration.
73432
73433         * lib/fsusage.c: Include full_read.h.
73434         (get_fs_usage): Use full_read instead of safe_read.
73435
73436         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73437
73438 2002-12-12  Karl Berry  <karl@gnu.org>
73439
73440         * config/config.guess: update from prep.
73441
73442 2002-12-11  Bruno Haible  <bruno@clisp.org>
73443
73444         * m4/setenv.m4: New file, from gettext-0.11.5.
73445
73446 2002-12-11  Bruno Haible  <bruno@clisp.org>
73447
73448         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73449         not unsetenv().
73450         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73451         modifications:
73452
73453         2002-12-11  Bruno Haible  <bruno@clisp.org>
73454
73455                 * setenv.c (alloca): Fall back to malloc.
73456                 (freea): New macro.
73457                 (setenv): Use freea() to free memory allocated with alloca().
73458
73459         2002-11-13  Bruno Haible  <bruno@clisp.org>
73460
73461                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73462                 function declarations.
73463                 * unsetenv.c (unsetenv): Likewise.
73464
73465         2002-03-04  Bruno Haible  <bruno@clisp.org>
73466
73467                 Portability to AIX 4.3.3.
73468                 * unsetenv.c: New file, extracted from setenv.c.
73469                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73470
73471         2001-12-20  Bruno Haible  <bruno@clisp.org>
73472
73473                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73474                 use malloc instead. For SunOS 4.
73475
73476         2001-12-11  Bruno Haible  <bruno@clisp.org>
73477
73478                 * setenv.c: Declare alloca.
73479                 (compar_fn_t): New typedef.
73480                 (KNOWN_VALUE, STORE_VALUE): Use it.
73481
73482         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73483         setenv.h.
73484
73485 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73486
73487         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73488         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73489         Choose values that are less likely to collide with system fnmatch
73490         options.
73491         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73492         defined (e.g., a pure POSIX system).
73493         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73494         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73495
73496 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73497
73498         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73499         a pain in practice to deal with generated m4 files.  This change
73500         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73501
73502         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73503         and jm-glibc-io.m4, as they are no longer a special case.
73504         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73505         kludge and the auto-generation stuff.  Check only whether the
73506         functions are declared, not whether they exist, since older hosts
73507         that don't declare the functions can't use the optimization anyway.
73508
73509 2002-12-06  Jim Meyering  <jim@meyering.net>
73510
73511         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73512
73513         Merge in changes from libc's misc/error.c, in preparation
73514         for the merge of gnulib's changes back into libc.
73515
73516         * lib/error.c (_): Define only if not already defined.
73517         Move definition to follow all #include directives.
73518         Include unlocked-io.h only if !_LIBC.
73519         [_LIBC]: Include <libio/libioP.h>.
73520         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73521         (fflush): Tweak definition to use INTUSE.
73522         (putc): Define.
73523
73524 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73525
73526         * lib/alloca.c [defined emacs]: Include "lisp.h".
73527         (xalloc_die) [defined emacs]: New macro.
73528         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73529         [! defined emacs]: Include <xalloc.h>.
73530         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73531         (pointer): Typedef to POINTER_TYPE *.
73532         (malloc): Remove decl; we now always use xmalloc.
73533         (alloca): Use old-style definition, since Emacs needs this.
73534         Check for arithmetic overflow when computing combined size.
73535
73536 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73537
73538         Do not generate unlocked-io.h automatically, since it's easier to
73539         maintain it by hand.
73540
73541         * lib/unlocked-io.h: New file, from GNU diffutils,
73542         but with proper copyright notice and attribution.
73543         * lib/gen-uio: Remove.
73544         * lib/Makefile.am: Add copyright notice.
73545         (libfetish_a_SOURCES): Add unlocked-io.h.
73546         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73547         (DISTCLEANFILES, io_functions): Remove macros.
73548         (EXTRA_DIST): Remove gen_uio.
73549         (unlocked-io.h): Remove rule.
73550
73551 2002-12-04  Jim Meyering  <jim@meyering.net>
73552
73553         Reflect the fact that stat.c and lstat.c are no longer generated.
73554         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73555         (DISTCLEANFILES): Likewise.
73556         (EXTRA_DIST): Likewise.
73557         (all_local): Don't depend on stat.c or lstat.c.
73558         (stat.c, lstat.c): Remove rules.
73559         (EXTRA_DIST): Remove xstat.in.
73560
73561         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73562         * lib/stat.c: New file.  Contents mostly from xstat.in.
73563         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73564         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73565
73566         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73567         too.
73568         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73569
73570 2002-12-03  Jim Meyering  <jim@meyering.net>
73571
73572         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73573         but not semantics, to minimize the differences between these two files.
73574         (safe_read): Change comment to mention SAFE_READ_ERROR.
73575
73576         * lib/safe-read.c (IS_EINTR): Define.
73577         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73578
73579 2002-12-02  Jim Meyering  <jim@meyering.net>
73580
73581         * lib/safe-read.c (EINTR): Define.
73582         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73583         (INT_MAX): Provide fallback.
73584         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73585
73586         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73587
73588 2002-12-02  Bruno Haible  <bruno@clisp.org>
73589
73590         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73591         Define, taken from safe-read.c.
73592         (INT_MAX): Provide fallback.
73593         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73594         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73595
73596         * lib/safe-read.c (EINTR): Remove definition.
73597         (safe_read): Don't use EINTR if it is absent.
73598
73599 2002-12-01  Jim Meyering  <jim@meyering.net>
73600
73601         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73602         zero.
73603         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73604
73605 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73606
73607         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73608         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73609         with `if (! (value < limit)) abort ();', for readability.
73610
73611 2002-11-26  Karl Berry  <karl@gnu.org>
73612
73613         * lib/strdup.c: copy from libc again, with jim's ok.
73614         * lib/.cppi-disable: re-add strdup.c
73615
73616 2002-11-25  Karl Berry  <karl@gnu.org>
73617
73618         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73619         instead of "strtol.c".
73620
73621 2002-11-25  Karl Berry  <karl@gnu.org>
73622
73623         * config/install-sh: update from automake for variable quoting, $0 in
73624         error msgs, etc.
73625
73626         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73627         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73628         entry.
73629
73630 2002-11-25  Jim Meyering  <jim@meyering.net>
73631
73632         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73633
73634 2002-11-24  Karl Berry  <karl@gnu.org>
73635
73636         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73637         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73638
73639 2002-11-24  Jim Meyering  <jim@meyering.net>
73640
73641         Update from coreutils:
73642
73643         * lib/mktime.c: Merge in changes from libc.
73644
73645         Avoid a link-time failure on some Linux systems.
73646         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73647         (otherwise).
73648         (__mon_yday): Declare with the STATIC attribute.
73649         (__mktime_internal): Likewise.
73650         Based on a report from Greg Schafer.
73651
73652 2002-11-23  Jim Meyering  <jim@meyering.net>
73653
73654         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73655         Use `unsigned', not `int', as type of index.
73656
73657         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73658
73659         * lib/fsusage.c: Remove unneeded parentheses around operands of
73660         `defined'.
73661
73662 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73663
73664         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73665         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73666         so that we can be included first.
73667         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73668         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73669         No need to include stddef.h or sys/types.h any more.
73670         Surround local include files with "", not "<>".
73671         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73672         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73673         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73674         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73675         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73676         (ISPRINT): Remove; no longer needed now that we assume C89.
73677
73678         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73679         Preserve errno.
73680
73681         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73682         quotearg_char): Use SIZE_MAX rather than
73683         (size_t) -1 when we are talking about "infinity".
73684
73685         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73686
73687 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73688
73689         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73690         hint that one should use `if (! x) abort ();' rather than `assert
73691         (x);', and anyway it's one less thing to worry about configuring.
73692         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73693         hash_rehash, hash_insert): Use abort rather than assert.
73694
73695 2002-11-22  Bruno Haible  <bruno@clisp.org>
73696
73697         * lib/safe-read.h: Assume C89. Add comments.
73698         (safe_read): Change return type to size_t.
73699         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73700         byte counts > SSIZE_MAX correctly.
73701         * lib/safe-write.h: New file.
73702         * lib/safe-write.c: New file.
73703         * lib/full-read.h: New file.
73704         * lib/full-read.c: New file.
73705         * lib/full-write.h: Assume C89. Add comments.
73706         * lib/full-write.c: Include safe-write.h.
73707         (full_write): Rewritten to use safe_write.
73708         Suggested by Jim Meyering and Paul Eggert.
73709
73710 2002-11-21  Jim Meyering  <jim@meyering.net>
73711
73712         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73713
73714         Merge in changes from the coreutils.
73715
73716         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73717         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73718         <stdint.h>.
73719         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73720         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73721         int.  Work more efficiently if X is the same width as uintmax_t.
73722         Do not compare X to -1, to avoid bogus compiler warning.
73723         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73724         Don't assume that f_frsize and f_bsize are the same type.
73725
73726         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73727         warning on FreeBSD.
73728
73729         * lib/makepath.c (make_path): Restore umask *before* creating the final
73730         component.
73731         (make_path): Minor reformatting.
73732
73733         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73734         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73735         HAVE_MALLOC/HAVE_REALLOC.
73736
73737         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73738         dummy ones.  At least on GNU/Linux systems, `auto' means something
73739         else.
73740         From Michael Stone.
73741
73742 2002-11-21  Bruno Haible  <bruno@clisp.org>
73743
73744         Remove case insensitive option matching.
73745         * lib/argmatch.h (argcasematch): Remove declaration.
73746         (ARGCASEMATCH): Remove macro.
73747         (__xargmatch_internal): Remove case_sensitive argument.
73748         (XARGMATCH): Update.
73749         (XARGCASEMATCH): Remove macro.
73750         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73751         case_sensitive argument.
73752         (argcasematch): Remove function.
73753         (__xargmatch_internal): Remove case_sensitive argument.
73754         (main): Use XARGMATCH instead of XARGCASEMATCH.
73755
73756         * lib/xmalloc.c: Change compile-time error message. Add comment about
73757         required autoconf version.
73758
73759 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73760
73761         Merge argmatch cleanups from Bison.  Assume C89.
73762
73763         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73764         Include stdlib.h, for EXIT_FAILURE.
73765         Always include <string.h>, since we assume C89.
73766         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73767         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73768         Include <stddef.h> instead, since it's all we need for size_t.
73769         (PARAMS): Remove.  All uses removed.
73770         (ARRAY_CARDINALITY): Do not bother to #undef.
73771         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73772         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73773         Remove unnecessary parentheses.
73774         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73775         Insert necessary parentheses.
73776         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73777         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73778
73779 2002-11-19  Bruno Haible  <bruno@clisp.org>
73780
73781         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73782         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73783
73784         * lib/mbswidth.h (PARAMS): Remove macro.
73785         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73786         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73787
73788         * lib/gcd.h (PARAMS): Remove macro.
73789         (gcd): Use ANSI C function declarations.
73790         * lib/gcd.c (gcd): Likewise.
73791
73792 2002-11-15  Bruno Haible  <bruno@clisp.org>
73793
73794         * lib/strcspn.c: Include <stddef.h>.
73795         (strcspn): Use ANSI C function declaration. Change return type to
73796         size_t. Use NULL.
73797         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73798         (strpbrk): Use NULL.
73799         * lib/strpbrk.h (PARAMS): Remove macro.
73800         (strpbrk): Use ANSI C function declaration.
73801         * lib/strstr.c: Don't include <sys/types.h>.
73802         * lib/strstr.h (PARAMS): Remove macro.
73803         (strstr): Use ANSI C function declarations.
73804
73805 2002-11-14  Karl Berry  <karl@gnu.org>
73806
73807         * config/mkinstalldirs: `do' on separate line, instead of
73808         `for var; do'.
73809
73810 2002-11-06  Bruno Haible  <bruno@clisp.org>
73811
73812         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73813         * lib/gcd.c (gcd): Likewise.
73814
73815 2002-11-05  Bruno Haible  <bruno@clisp.org>
73816
73817         * lib/gcd.h: New file, from gettext-0.11.5.
73818         * lib/gcd.c: New file, from gettext-0.11.5.
73819
73820 2002-11-05  Bruno Haible  <bruno@clisp.org>
73821
73822         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73823         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73824         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73825         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73826
73827         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73828         <libintl.h>.
73829         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73830         <libintl.h>.
73831
73832         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73833         * lib/human.c: Include gettext.h instead of <libintl.h>.
73834         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73835         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73836         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73837         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73838         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73839         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73840         (textdomain): Remove definition.
73841         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73842
73843         * lib/long-options.c: Remove include of <libintl.h> and definition of
73844         _.
73845         * lib/same.c: Remove include of <libintl.h> and definition of _.
73846
73847 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73848
73849         * lib/config.charset: A few additions for Solaris.
73850
73851 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73852
73853         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73854         * lib/localcharset.c (locale_charset): Declare as extern "C".
73855
73856 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73857
73858         * lib/config.charset: msdos in uk_UA uses CP1125.
73859
73860 2002-11-04  Bruno Haible  <bruno@clisp.org>
73861
73862         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73863         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73864         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73865         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73866         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73867
73868 2002-11-04  Bruno Haible  <bruno@clisp.org>
73869
73870         * lib/localcharset.c (locale_charset): Don't return an empty string.
73871
73872 2002-11-04  Bruno Haible  <bruno@clisp.org>
73873
73874         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73875         aliases.
73876
73877 2002-11-04  Bruno Haible  <bruno@clisp.org>
73878
73879         * lib/config.charset: Update for newest glibc. Add canonical names
73880         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73881
73882 2002-11-04  Bruno Haible  <bruno@clisp.org>
73883
73884         * lib/config.charset: Add support for NetBSD.
73885
73886 2002-11-04  Bruno Haible  <bruno@clisp.org>
73887
73888         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73889
73890 2002-11-01  Bruno Haible  <bruno@clisp.org>
73891
73892         * configure.in: Add AC_CONFIG_AUX_DIR call.
73893         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73894         test/Makefile.
73895         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73896
73897 2002-09-28  Karl Berry  <karl@gnu.org>
73898
73899         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73900         installed automake until the next release, since changes have been
73901         made.
73902
73903 2002-09-25  Karl Berry  <karl@gnu.org>
73904
73905         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73906         * lib/getopt*: copy from libc/posix.
73907         * lib/gettext.h: copy from gettext.
73908         * lib/.cppi-disable: add strdup.c, gettext.h.
73909
73910 2002-09-25  Karl Berry  <karl@gnu.org>
73911
73912         * config/srclist.txt: enable gettext.h check.
73913         * config/config.{guess,sub}: update from prep.
73914         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73915                 from automake 1.6.3.
73916         See srclist*.
73917
73918 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73919
73920         * regex.c (PATFETCH): Remove the translating fetch.
73921         (PATFETCH_RAW): Rename to PATFETCH.
73922         (set_image_of_range): New fun.
73923         (SET_RANGE_TABLE_WORK_AREA): Use it.
73924         (regex_compile): Don't translate the pattern chars so eagerly.
73925         Only do it when inserting an `exactn' bytecode or when handling
73926         a char-range.
73927         (mutually_exclusive_p): Avoid empty statement.
73928
73929 2002-07-06  Jim Meyering  <meyering@lucent.com>
73930
73931         * m4/README: Don't mention Makefile.am.in.
73932         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73933
73934 2002-07-01  Jim Meyering  <meyering@lucent.com>
73935
73936         * lib/c-stack.c: Include sys/time.h.
73937         From Volker Borchert.
73938
73939 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73940
73941         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73942
73943 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73944
73945         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73946         New macro.  Use it uniformly instead of
73947         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73948         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73949         reported by Vin Shelton.
73950
73951 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73952
73953         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73954         Do not assume SA_SIGINFO behavior.
73955         Bug reported by Jim Meyering on NetBSD 1.5.2.
73956
73957 2002-06-22  Jim Meyering  <meyering@lucent.com>
73958
73959         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73960         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73961
73962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73963         now that configure.ac uses AC_GNU_SOURCE.
73964         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73965         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73966
73967         Update to latest tools.  Suggestions from Paul Eggert.
73968         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73969         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73970         * m4/fnmatch.m4: Likewise.
73971         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73972         to AC_HEADER_STDBOOL
73973
73974 2002-06-22  Jim Meyering  <meyering@lucent.com>
73975
73976         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73977         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73978
73979 2002-06-22  Jim Meyering  <meyering@lucent.com>
73980
73981         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73982
73983         * lib/exitfail.c, exitfail.h: Likewise.
73984         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73985
73986         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73987         of fnmatch.h.
73988         (EXTRA_DIST): Add fnmatch_loop.c.
73989         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73990
73991         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73992         * lib/fnmatch.c: Update from diffutils-2.8.2.
73993         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73994         * lib/fnmatch.h: Remove file.
73995
73996 2002-06-21  Jim Meyering  <meyering@lucent.com>
73997
73998         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73999         * m4/mbrtowc.m4: Likewise.
74000
74001         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74002         * m4/mbswidth.m4: Reflect name change:
74003         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74004         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74005
74006         * m4/lib-link.m4: Update from gettext-0.11.2.
74007         * m4/gettext.m4: Likewise.
74008
74009         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74010         From Alfred M. Szmidt.
74011
74012 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74013
74014         * lib/file-type.h: Report an error if neither S_ISREG nor
74015         S_IFREG is defined, instead of using a test specific to glibc
74016         2.2.  This should be safe, since POSIX requires S_ISREG and
74017         Unix Version 7 had S_IFREG.  We don't need to check for
74018         <sys/types.h> since we don't use any symbols that it defines.
74019
74020 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74021
74022         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74023         $@-t, so that each temporary file name is unique and valid in the first
74024         8 characters, for operation under DOS.
74025
74026 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74027
74028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74029
74030 2002-06-15  Jim Meyering  <meyering@lucent.com>
74031
74032         Work even with DJGPP 2.03, which lacks support for symlinks.
74033         From Richard Dawe.
74034         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74035         is defined.
74036         * lib/lchown.c (S_ISLNK): Likewise.
74037
74038 2002-06-15  Jim Meyering  <meyering@lucent.com>
74039
74040         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74041         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74042         have been included before this file.
74043
74044 2002-06-14  Jim Meyering  <meyering@lucent.com>
74045
74046         * lib/file-type.h: Use the version from diffutils-2.8.2.
74047         * lib/file-type.c: Likewise.
74048
74049 2002-06-07  Jim Meyering  <meyering@lucent.com>
74050
74051         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74052         They're needed at least for NetBSD 1.5.2.
74053         ($statxfs_includes): Include those same headers.
74054         ($statxfs_includes): Include sys/vfs.h if available.
74055         ($statxfs_includes): Likewise for sys/statvfs.h.
74056         Check for the following members in both structs statfs and statvfs:
74057         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74058
74059 2002-06-01  Jim Meyering  <meyering@lucent.com>
74060
74061         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74062         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74063
74064 2002-05-28  Jim Meyering  <meyering@lucent.com>
74065
74066         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74067         Reported by Volker Borchert.
74068
74069 2002-05-27  Jim Meyering  <meyering@lucent.com>
74070
74071         Fix a problem seen only on nonconforming systems whereby ls.c's
74072         use of localtime, and then of gettimeofday would cause trouble:
74073         the localtime call used to initialize rpl_gettimeofday's save
74074         mechanism would clobber ls's current local time information so
74075         that in any long listing the first file would always be listed
74076         with date 1970-01-01.  Analysis by Volker Borchert.
74077
74078         * lib/gettimeofday.c (localtime): Undefine.
74079         (rpl_localtime): New function.
74080
74081 2002-05-27  Jim Meyering  <meyering@lucent.com>
74082
74083         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74084         localtime.
74085
74086         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74087         use the replacement function; it wouldn't resolve at link time.
74088         Reported by Volker Borchert.
74089
74090 2002-05-22  Jim Meyering  <meyering@lucent.com>
74091
74092         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74093         file-type.h.
74094         * lib/file-type.h: New file.
74095         * lib/file-type.c (file_type): New file/function.  Extracted from
74096         diffutils.
74097
74098 2002-04-30  Jim Meyering  <meyering@lucent.com>
74099
74100         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74101
74102 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74103
74104         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74105
74106 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74107
74108         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74109         Do not check for alloca.h (no longer used) or stdbool.h (was never
74110         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74111
74112 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74113
74114         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74115
74116 2002-04-29  Jim Meyering  <meyering@lucent.com>
74117
74118         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74119         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74120         Use AC_FUNC_STRNLEN here instead.
74121
74122         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74123         With autoconf-2.53a, it's part of AC_PROG_CC.
74124
74125 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74126
74127         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74128         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74129
74130 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74131
74132         * lib/sig2str.h, lib/sig2str.c: New files.
74133         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74134
74135 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74136
74137         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74138         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74139         of 127, since 64 is the largest conceivable number for ancient
74140         nonstandard hosts.
74141         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74142
74143 2002-04-28  Jim Meyering  <meyering@lucent.com>
74144
74145         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74146
74147 2002-04-24  Jim Meyering  <meyering@lucent.com>
74148
74149         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74150         (jm_PREREQ): Use it.
74151
74152         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74153         mach/mach.h fcntl.h.
74154         Check for this function: setlocale.
74155
74156 2002-04-24  Jim Meyering  <meyering@lucent.com>
74157
74158         * lib/gettext.h: New file, from Gettext.
74159         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74160         (libfetish_a_SOURCES): Add gettext.h.
74161
74162 2002-04-16  Jim Meyering  <meyering@lucent.com>
74163
74164         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74165         ut_pid, ut_id, ut_exit.
74166
74167 2002-04-16  Jim Meyering  <meyering@lucent.com>
74168
74169         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74170         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74171         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74172
74173 2002-04-12  Jim Meyering  <meyering@lucent.com>
74174
74175         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74176         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74177         existence of the getmntinfo function.  Needed for Darwin 5.3.
74178
74179         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74180         This is necessary at least on Darwin 5.3.
74181
74182         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74183         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74184         strnlen.o in the library, and that makes some versions of ranlib
74185         object.
74186
74187 2002-04-12  Jim Meyering  <meyering@lucent.com>
74188
74189         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74190
74191 2002-04-09  Jim Meyering  <meyering@lucent.com>
74192
74193         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74194         to be more precise.  Rather than saying we're checking whether the
74195         function `works', say what we're testing.
74196         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74197         Reported by Bruno Haible.
74198
74199 2002-03-10  Jim Meyering  <meyering@lucent.com>
74200
74201         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74202         Suggestion from Santiago Vila.
74203
74204 2002-03-08  Jim Meyering  <meyering@lucent.com>
74205
74206         * lib/rename.c: Mention that this wrapper is needed also on
74207         mips-dec-ultrix4.4 systems.
74208
74209 2002-03-02  Jim Meyering  <meyering@lucent.com>
74210
74211         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74212         not HAVE_CLOCK_SETTIME.
74213
74214 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74215
74216         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74217         Check for clock_settime.
74218
74219 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74220
74221         * lib/nanosleep.h: Rename to....
74222         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74223
74224         * lib/gettime.c: New file.
74225         * lib/settime.c: New file.
74226         * lib/stime.c: Remove.
74227
74228         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74229         timespec.h.  Remove nanosleep.h.
74230
74231 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74232
74233         * m4/acl.m4: New file.
74234         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74235         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74236
74237 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74238
74239         * lib/acl.c, lib/acl.h: New files.
74240         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74241
74242 2002-02-24  Jim Meyering  <meyering@lucent.com>
74243
74244         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74245         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74246         cause trouble.  Reported by Nelson Beebe.
74247
74248 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74249
74250         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74251         compilers that don't know that xalloc_die never returns.
74252
74253 2002-02-20  Jim Meyering  <meyering@lucent.com>
74254
74255         * lib/getdate.c: Regenerate using bison-1.33.
74256
74257 2002-02-17  Jim Meyering  <meyering@lucent.com>
74258
74259         * config/config.guess (main): Don't use `head -1'; it's no longer
74260         portable. Use `sed 1q' instead.
74261
74262 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74263
74264         * m4/codeset.m4: Upgrade to gettext-0.11.
74265         * m4/gettext.m4: Upgrade to gettext-0.11.
74266         * m4/glibc21.m4: Upgrade to gettext-0.11.
74267         * m4/iconv.m4: Upgrade to gettext-0.11.
74268         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74269         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74270         * m4/lib-ld.m4: New file, from gettext-0.11.
74271         * m4/lib-link.m4: New file, from gettext-0.11.
74272         * m4/lib-prefix.m4: New file, from gettext-0.11.
74273         * m4/progtest.m4: Upgrade to gettext-0.11.
74274
74275 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74276
74277         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74278         (jm_PREREQ): Use it.
74279
74280 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74281
74282         * lib/posixver.c, lib/posixver.h: New files.
74283         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74284
74285 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74286             Bruno Haible  <bruno@clisp.org>
74287
74288         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74289         (fwrite_success_callback): New declaration.
74290         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74291         print_unicode_char. Call failure callback instead of error.
74292         (fwrite_success_callback): New function.
74293         (exit_failure_callback): New function.
74294         (fallback_failure_callback): New function.
74295         (print_unicode_char): Call unicode_to_mb.
74296
74297 2002-01-26  Jim Meyering  <meyering@lucent.com>
74298
74299         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74300         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74301
74302 2002-01-26  Jim Meyering  <meyering@lucent.com>
74303
74304         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74305
74306 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74307
74308         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74309
74310 2002-01-22  Jim Meyering  <meyering@lucent.com>
74311
74312         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74313         Otherwise, some versions of automake would omit the rule that makes
74314         Makefile from Makefile.in.
74315
74316 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74317
74318         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74319         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74320         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74321         (memcoll): Set errno to zero if there is no error.
74322
74323         * lib/quotearg.c (quotearg_buffer_restyled):
74324         Fix bug with quoting buffers containing NUL when backslashing escapes.
74325         This bug was exposed by the other changes in this patch.
74326         (quotearg_n_options): New arg ARGSIZE.
74327         All callers changed.
74328         (quoting_options_from_style): New function.
74329         (quotearg_n_style): Use it.
74330         (quotearg_n_style_mem): New function.
74331
74332         * lib/quotearg.h (quotearg_n_style_mem): New function.
74333
74334 2002-01-19  Jim Meyering  <meyering@lucent.com>
74335
74336         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74337         Remove useless quotes: DF_PROG="df".
74338         * m4/strnlen.m4: New file.
74339
74340 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74341
74342         * lib/backupfile.c (ISDIGIT): Comment fix.
74343         * lib/getdate.y (ISDIGIT): Likewise.
74344         * lib/posixtm.c (ISDIGIT, year): Likewise.
74345         * lib/strverscmp.c (ISDIGIT): Likewise.
74346         * lib/userspec.c (ISDIGIT): Likewise.
74347
74348 2002-01-16  Jim Meyering  <meyering@lucent.com>
74349
74350         * lib/getdate.y: Add three semicolons, each just before a closing
74351         brace. Bison (as of version 1.31) no longer papers over that mistake.
74352
74353 2002-01-05  Jim Meyering  <meyering@lucent.com>
74354
74355         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74356
74357 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74358
74359         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74360         not silently exit merely because the output buffer happens to
74361         have nothing pending.
74362
74363 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74364
74365         See the big note in ../ChangeLog.
74366         * lib/human.c (suffixes): Prefer K to k for 1024.
74367         (generate_suffix_backwards): New function.
74368         (human_readable_inexact): Use it.
74369         * lib/xstrtol.c (__xstrtol): If there is no number but there
74370         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74371         Accept 'K' as well as 'k'.
74372
74373 2001-12-15  Jim Meyering  <meyering@lucent.com>
74374
74375         * lib/regex.h (__restrict_arr): Update from libc.
74376
74377         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74378         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74379         (STREQ): Define.
74380
74381 2001-12-14  Jim Meyering  <meyering@lucent.com>
74382
74383         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74384         Suggestion from Bruno Haible.
74385
74386 2001-12-10  Jim Meyering  <meyering@lucent.com>
74387
74388         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74389         xrealloc, Instead, include "xalloc.h".
74390         (initbuffer): Don't cast xmalloc return value to char*.
74391         (readline): Reword comment.
74392         Don't cast xrealloc return value to char*
74393         Return NULL, not 0.
74394
74395 2001-12-09  Jim Meyering  <meyering@lucent.com>
74396
74397         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74398         about `signed and unsigned type in conditional expression'.
74399         * lib/posixtm.c (posix_time_parse): Likewise.
74400
74401         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74402
74403         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74404         to avoid a pedantic warning.
74405
74406         * lib/getstr.c: Don't include assert.h.
74407         (getstr): Remove warning-evoking assertions.
74408         Return -1 if offset parameter is out of bounds.
74409         Change the type of a local from int to size_t.
74410
74411         * lib/strftime.c (my_strftime_localtime_r): Include this function
74412         definition in the `#if ! HAVE_TM_GMTOFF' block.
74413
74414         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74415         Include xalloc.h instead.
74416
74417 2001-12-02  Jim Meyering  <meyering@lucent.com>
74418
74419         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74420         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74421         included.
74422
74423         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74424         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74425
74426 2001-11-30  Akim Demaille  <akim@epita.fr>
74427
74428         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74429         before being defined.
74430
74431 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74432
74433         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74434         First arg is int, not unsigned.
74435         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74436         (SIZE_MAX, UINT_MAX): New macros.
74437         (quotearg_n_options): Abort if N is negative.
74438         Avoid overflow check on hosts where size_t is 64 bits and int
74439         is 32 bits, as overflow is impossible there.
74440         Fix off-by-one typo that caused unnecessary reallocation.
74441
74442 2001-11-27  Jim Meyering  <meyering@lucent.com>
74443
74444         * lib/tempname.c: Merge with version from libc.
74445         * lib/regex.c: Likewise.
74446
74447         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74448         systems for which STDC_HEADERS is 0, it was not included, resulting in
74449         a warning about an integer-to-pointer conversion problem with getenv.
74450         Reported by Volker Borchert.
74451
74452 2001-11-26  Jim Meyering  <meyering@lucent.com>
74453
74454         * lib/gtod.h: Remove file.
74455         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74456         * lib/gettimeofday.c: Don't include gtod.h.
74457         (GTOD_init): Remove function.
74458         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74459         Suggestion from Volker Borchert.
74460
74461 2001-11-23  Jim Meyering  <meyering@lucent.com>
74462
74463         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74464         it.
74465         * lib/hash.c (struct hash_table): Define it here instead.
74466
74467 2001-11-22  Jim Meyering  <meyering@lucent.com>
74468
74469         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74470
74471 2001-11-20  Jim Meyering  <meyering@lucent.com>
74472
74473         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74474         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74475
74476 2001-11-19  Jim Meyering  <meyering@lucent.com>
74477
74478         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74479         directory.  Use "conftestXXXXXX" as the template.
74480         Suggestion from Paul Eggert.
74481
74482         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74483         immediately, so the test doesn't mistakenly hit the max-open-files
74484         limit.
74485
74486 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74487
74488         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74489         (TEMPORARIES): New macro.
74490         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74491         removes an artificial limitation (e.g. HP-UX 10.20, where
74492         TMP_MAX is 17576).
74493
74494 2001-11-18  Jim Meyering  <meyering@lucent.com>
74495
74496         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74497
74498 2001-11-18  Jim Meyering  <meyering@lucent.com>
74499
74500         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74501         on SunOS 4.
74502
74503         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74504         files will be created before anything else.
74505
74506 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74507
74508         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74509         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74510
74511 2001-11-17  Jim Meyering  <meyering@lucent.com>
74512
74513         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74514         Prompted by a report from Bob Proulx.
74515
74516         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74517         Instead, require UTILS_FUNC_MKSTEMP.
74518
74519 2001-11-17  Jim Meyering  <meyering@lucent.com>
74520
74521         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74522         Now, that's done as part of AC_FUNC_STRTOD.
74523
74524 2001-11-17  Jim Meyering  <meyering@lucent.com>
74525
74526         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74527         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74528         rather than group writable.  Patch by Juan F. Codagnone.
74529
74530         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74531         xrealloc, Instead, include "xalloc.h".
74532
74533         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74534         Remove explicit declarations of xmalloc, xrealloc,
74535         and xstrdup.  Instead, include "xalloc.h".
74536
74537         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74538         unlocked-io.h.
74539         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74540         Likewise.
74541         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74542
74543         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74544         Reported by Padraig Brady.
74545
74546         * lib/mkstemp.c: #undef mkstemp.
74547         Include config.h.
74548         (rpl_mkstemp): Rename from mkstemp.
74549         Protoize.
74550
74551 2001-11-16  Jim Meyering  <meyering@lucent.com>
74552
74553         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74554         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74555         determine the amount of total physical memory, use pstat_getstatic.
74556         HPUX-11 doesn't define _SC_PHYS_PAGES.
74557         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74558         If sysconf couldn't be used to determine the amount of available
74559         physical memory, use both pstat_getstatic and pstat_getdynamic.
74560         Based on a patch from Bob Proulx.
74561
74562 2001-11-10  Jim Meyering  <meyering@lucent.com>
74563
74564         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74565         (jm_PREREQ): Use it.
74566
74567 2001-11-09  Jim Meyering  <meyering@lucent.com>
74568
74569         * m4/jm-macros.m4: Require autoconf-2.52f.
74570         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74571         Use these AC_-prefixed names, not the AM_-prefixed ones.
74572
74573         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74574
74575 2001-11-05  Jim Meyering  <meyering@lucent.com>
74576
74577         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74578
74579 2001-11-04  Jim Meyering  <meyering@lucent.com>
74580
74581         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74582         $DEFS.
74583
74584 2001-11-03  Jim Meyering  <meyering@lucent.com>
74585
74586         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74587         of AC_DEFUN.
74588
74589         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74590         know the name of the variable in the macro definition.
74591
74592 2001-11-03  Jim Meyering  <meyering@lucent.com>
74593
74594         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74595         in argmatch_to_argument call.
74596
74597         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74598         argument.
74599
74600         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74601         e.g., a fault due to an attempt to free a NULL pointer.
74602
74603 2001-11-01  Jim Meyering  <meyering@lucent.com>
74604
74605         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74606         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74607
74608 2001-11-01  Jim Meyering  <meyering@lucent.com>
74609
74610         * lib/dirfd.c, lib/dirfd.h: New files.
74611         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74612
74613         * lib/hash.c (hash_print) [TESTING]: Clean up.
74614
74615 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74616
74617         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74618         to avoid a warning if -Wall.
74619
74620 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74621
74622         * README: New file
74623         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74624         (per RMS's instructions, this is now the canonical source)
74625         * lgpl/, gpl/: New directories.
74626
74627 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74628
74629         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74630
74631 2001-10-21  Jim Meyering  <meyering@lucent.com>
74632
74633         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74634         this code would end up calling gettext even in packages built
74635         with --disable-nls.
74636         * lib/getopt.c (_): Likewise.
74637         * lib/regex.c (_): Likewise.
74638
74639 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74640
74641         * m4/error.m4 (jm_PREREQ_ERROR):
74642         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74643         AC_FUNC_STRERROR_R does that.
74644         Check for strerror declaration.
74645
74646         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74647         are supposed to have them these days.
74648         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74649         Merge changes from latest Autoconf CVS.
74650         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74651         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74652         POSIX decided to standardize on the int flavor of strerror_r.
74653
74654 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74655
74656         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74657         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74658         Use strerror_r that is only a macro, even if it is not a function.
74659         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74660         (private_strerror): Use prototypes, not old-style function definition.
74661         (print_errno_message): New function.
74662         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74663         char*-flavored one.
74664         (error_tail, error, error_at_line): Use it.
74665
74666 2001-10-11  Jim Meyering  <meyering@lucent.com>
74667
74668         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74669         and quote_n (1, ... to avoid clobbering a buffer.
74670
74671 2001-10-05  Jim Meyering  <meyering@lucent.com>
74672
74673         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74674         hash-pjw.h.
74675         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74676         * lib/hash-pjw.h: New file.
74677
74678 2001-09-30  Jim Meyering  <meyering@lucent.com>
74679
74680         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74681         `struct fsstat' has the `f_fstypename' member.
74682         Use that to define FS_TYPE, which is now used to make
74683         the getfsstat link test tighter.
74684
74685 2001-09-30  Jim Meyering  <meyering@lucent.com>
74686
74687         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74688         Include <sys/ucred.h>, for Apple Darwin.
74689         Include sys/mount.h and sys/fs_types.h only if available.
74690         (FS_TYPE): Define.
74691         (read_filesystem_list): Use FS_TYPE.
74692
74693 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74694
74695         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74696         a boolean context.
74697
74698 2001-09-29  Jim Meyering  <meyering@lucent.com>
74699
74700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74701         [one-argument getmntent function]): Include stdio.h before mntent.h.
74702         SunOS 4.1.x needs it for the declaration of `FILE'.
74703         Patch by Volker Borchert.
74704
74705         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74706         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74707         sys/fs_types.h, and make the link-test for getfsstat guard #include
74708         directives with appropriate #if HAVE_*_H tests so that we can
74709         detect getfsstat on Apple Darwin1.3.7 systems.
74710         Reported by Nelson Beebe.
74711         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74712
74713 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74714
74715         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74716         #defines strtoimax.  Also treat the other strto* functions
74717         like strtoimax.
74718
74719         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74720         Check for strtoul and strtoumax,
74721         as those declarations are made even in the signed case.
74722         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74723         Likewise, for strtol and strtoimax.
74724
74725 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74726
74727         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74728         #defines strtoimax.  Also treat the other strto* functions
74729         like strtoimax.
74730
74731         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74732         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74733         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74734
74735 2001-09-26  Jim Meyering  <meyering@lucent.com>
74736
74737         Most macros in unlocked-io.h had the wrong number of arguments.
74738         * lib/gen-uio: New script.
74739         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74740         * lib/unlocked-io.hin: Remove file.
74741         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74742         rather than trying to embed it here.
74743         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74744         Reported by Padraig Brady.
74745
74746 2001-09-25  Volker Borchert  <bt@teknon.de>
74747
74748         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74749         `result'.
74750
74751 2001-09-24  Jim Meyering  <meyering@lucent.com>
74752
74753         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74754
74755 2001-09-23  Jim Meyering  <meyering@lucent.com>
74756
74757         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74758         instead of the mere test for existence of mntent.h.  The latter
74759         would get a false-positive on AIX 3.4 systems.
74760         In the outer getmntent if-block, don't die if neither of the getmntent
74761         tests succeeds.  Instead, just fall through and continue with the
74762         remaining tests.
74763
74764 2001-09-23  Jim Meyering  <meyering@lucent.com>
74765
74766         * lib/mountlist.c: Remove useless parentheses in #if directives.
74767         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74768         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74769
74770 2001-09-22  Jim Meyering  <meyering@lucent.com>
74771
74772         * m4/gettext.m4: New file.  From gettext.
74773         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74774         * m4/progtest.m4: Likewise
74775         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74776         * m4/glibc21.m4: Likewise.
74777
74778         * m4/libintl.m4: Remove.  No longer used.
74779
74780 2001-09-22  Jim Meyering  <meyering@lucent.com>
74781
74782         * lib/localcharset.c: Update from latest gettext.
74783         * lib/config.charset: Likewise.
74784
74785 2001-09-20  Jim Meyering  <meyering@lucent.com>
74786
74787         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74788         strtoimax.
74789         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74790         strtoumax.
74791
74792 2001-09-20  Jim Meyering  <meyering@lucent.com>
74793
74794         * lib/xstrtol.c (strtoimax): Guard declaration with
74795         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74796         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74797         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74798         (strtoumax): Likewise, for completeness (it wasn't necessary).
74799
74800 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74801
74802         * lib/strtoimax.c (HAVE_LONG_LONG):
74803         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74804         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74805         to work around bug in IBM C compiler.
74806
74807 2001-09-17  Jim Meyering  <meyering@lucent.com>
74808
74809         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74810         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74811         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74812         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74813         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74814         whenever the right hand side need not be expanded by the shell.
74815
74816 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74817
74818         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74819         library.  It's not correct, as some older glibcs are buggy.
74820         fnmatch wasn't fixed until glibc 2.2.
74821
74822         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74823         special shell magic here.
74824
74825 2001-09-16  Jim Meyering  <meyering@lucent.com>
74826
74827         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74828         * m4/jm-macros.m4: Require it.
74829
74830 2001-09-16  Jim Meyering  <meyering@lucent.com>
74831
74832         * lib/mkdir.c: New file.
74833
74834 2001-09-15  Jim Meyering  <meyering@lucent.com>
74835
74836         * m4/jm-macros.m4: Check for help2man.
74837
74838 2001-09-11  Jim Meyering  <meyering@lucent.com>
74839
74840         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74841         The body, by Paul Eggert, was moved here from configure.in.
74842         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74843
74844 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74845
74846         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74847         (jm_PREREQ): Use it.
74848
74849 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74850
74851         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74852         Use ssize_t, not int, to store result of readlink.
74853         Check for ssize_t overflow as well as size_t overflow,
74854         as POSIX says the result of readlink is implementation-defined
74855         when ssize_t overflows.
74856         Remove unnecessary cast to char*.
74857         Use free+malloc instead of realloc, as the storage doesn't need
74858         to be preserved and it's clearer and can be more efficient that way.
74859         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74860         * lib/xreadlink.h (xreadlink): Update prototype.
74861
74862 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74863
74864         * lib/xgetcwd.c: Revert some of the previous change; intead,
74865         fix the HAVE_GETCWD_NULL code to behave more like the
74866         !HAVE_GETCWD_NULL code used to.
74867
74868         Include "xalloc.h".
74869         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74870         invoke xalloc_die.
74871
74872 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74873
74874         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74875         sys/param.h, as pathmax.h includes them.
74876
74877 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74878
74879         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74880         (jm_PREREQ_XGETCWD): New macro.
74881
74882         * m4/getcwd.m4: New file.
74883
74884 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74885
74886         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74887         like the HAVE_GETCWD_NULL code.
74888         Include pathmax.h if not HAVE_GETCWD.
74889         Do not include xalloc.h.
74890         (INITIAL_BUFFER_SIZE): New symbol.
74891         Do not use xmalloc / xrealloc, since the caller is responsible for
74892         handling errors.  Preserve errno around `free' during failure.
74893         Do not overrun buffer when using getwd.
74894
74895 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74896
74897         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74898         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74899         getcwd (NULL, 0).
74900
74901 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74902
74903         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74904         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74905         spotted by Jim Meyering.
74906
74907 2001-09-03  Jim Meyering  <meyering@lucent.com>
74908
74909         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74910         failure.
74911
74912 2001-09-02  Jim Meyering  <meyering@lucent.com>
74913
74914         * lib/error.c: Update from GNU libc.
74915
74916 2001-09-01  Jim Meyering  <meyering@lucent.com>
74917
74918         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74919         Used by df.
74920
74921 2001-09-01  Jim Meyering  <meyering@lucent.com>
74922
74923         * lib/xreadlink.c: New file.
74924         * lib/xreadlink.h: New file.
74925         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74926         xreadlink.h.
74927
74928         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74929         doesn't conflict with sparc Solaris 7's definition in
74930         /usr/include/sys/int_types.h.
74931
74932         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74933         files.
74934         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74935         and strncasecmp as r-values.  Unixware didn't have declarations.
74936
74937 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74938
74939         * lib/xstrtol.h: Add copyright notice.
74940         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74941         LONGINT_INVALID_SUFFIX_CHAR.
74942
74943 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74944
74945         * lib/xstrtol.c (strtoimax): New decl.
74946
74947 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74948
74949         * lib/xgetcwd.c: Don't include pathmax.h.
74950         Include stdlib.h and unistd.h if available.
74951         Include xalloc.h.
74952         (xmalloc, xstrdup, free): Remove decls.
74953         (xgetcwd): Don't assume sizes fit in unsigned.
74954         Check for overflow when computing sizes.
74955         Simplify reallocation code.
74956
74957 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74958
74959         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74960         a directory's st_size can have an arbitrary value, so the old
74961         usage could waste an arbitrary amount of memory.  All uses
74962         changed.
74963         * lib/savedir.h: Update prototype.
74964
74965 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74966
74967         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74968
74969         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74970         old strtoimax.c.
74971
74972         Also, make the following further changes to make this file's
74973         configuration more similar to that of strtol.c:
74974         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74975         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74976         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74977         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74978         changed to signed values.
74979
74980         And make the following changes as well:
74981         Fix copyright notice, as 1999 was missing.
74982         (verify): New macro.
74983         (strtoimax): Check sizes at compile-time, not run-time.
74984         Prefer strtol to strtoll if both work.
74985         (main): Remove; it was not that useful and was a pain to maintain.
74986
74987         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74988
74989 2001-08-31  Jim Meyering  <meyering@lucent.com>
74990
74991         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74992         Use an initial, malloc'd, buffer of length 128 rather than
74993         a statically allocated one of length 1024.
74994
74995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74996
74997         Simplify code, partly by assuming autoconf 2.52 semantics.
74998
74999         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75000
75001         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75002         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75003         All uses removed.
75004         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75005         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75006         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75007         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75008         jm_AC_HEADER_INTTYPES_H.
75009         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75010
75011         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75012
75013         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75014         Quote first arg of AC_DEFUN.
75015         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75016         since they are needed to parse the include file even if we need
75017         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75019         but with opposite signedness.
75020
75021 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75022
75023         Merge 'exclude' changes from tar 1.13.22.
75024         This fixes one or two unlikely storage allocation overflow bugs,
75025         but doesn't change user-visible behavior otherwise.
75026
75027 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75028
75029         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75030         (jm_PREREQ_EXCLUDE): New macro.
75031
75032 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75033
75034         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75035         tm to be declared.
75036
75037 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75038
75039         * lib/hash.c: Remove '2001' from copyright notice.
75040
75041 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75042
75043         * lib/full-write.h: New file.
75044         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75045         * lib/full-write.c: Correct credits, as cccp.c no longer
75046         exists and anyway it was so heavily changed from the old cccp
75047         code as to be unrecognizable.  Include full-write.h.
75048         (full_write) Return size_t, with short writes meaning failure.
75049         All callers changed.  This fixes a bug with large buffers
75050         on 64-bit hosts.
75051         * lib/utime.c: Include full-write.h.
75052
75053 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75054
75055         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75056         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75057         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75058         Include if available.
75059         (<xalloc.h>): Include
75060         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75061         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75062         collide with FNM macros.
75063         (struct patopts): New struct.
75064         (struct exclude): Use it, as exclude patterns now come with options.
75065         (new_exclude): Support above changes.
75066         (new_exclude, add_exclude_file):
75067         Initial size must now be a power of two to simplify overflow checking.
75068         (free_exclude, fnmatch_no_wildcards): New function.
75069         (excluded_filename): No longer requires options arg, as the options
75070         are determined by add_exclude.  Now returns bool, not int.
75071         (excluded_filename, add_exclude):
75072         Add support for the fancy new exclusion options.
75073         (add_exclude, add_exclude_file): Now takes int options arg.
75074         Check for arithmetic overflow when computing sizes.
75075         (add_exclude_file): xrealloc might modify errno, so don't
75076         realloc until after errno might be used.
75077
75078         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75079         New macros.
75080         (free_exclude): New decl.
75081         (add_exclude, add_exclude_file): Now takes int options arg.
75082         (excluded_filename): No longer requires options arg, as the options
75083         are determined by add_exclude.  Now returns bool, not int.
75084
75085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75086
75087         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75088
75089 2001-08-27  Jim Meyering  <meyering@lucent.com>
75090
75091         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75092
75093         * lib/version-etc.c (N_): Remove definition.
75094         Revert most of last change.
75095         Instead, simply don't mark the `Copyright...' string for translation.
75096         Based on advice from Paul Eggert.
75097
75098         * lib/strtoxmax.c: Tweak comment.
75099
75100 2001-08-26  Jim Meyering  <meyering@lucent.com>
75101
75102         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75103
75104         * m4/xstrtoimax.m4: New file.
75105         * m4/xstrtoumax.m4: Add comments explaining why we
75106         AC_REPLACE_FUNCS(strtol).
75107
75108 2001-08-26  Jim Meyering  <meyering@lucent.com>
75109
75110         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75111         of copyright with `%s' so translators don't get an untranslated
75112         message in 2002.
75113         (COPYRIGHT_YEAR): Define.
75114         (version_etc): Use fprintf rather than fputs.
75115         Suggestion from Ulrich Drepper.
75116
75117         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75118
75119         * lib/strtoll.c: New file, from GNU libc.
75120         * lib/xstrtoimax.c: New file.
75121
75122         * lib/xstrtol.h: Add xstrtoimax.
75123         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75124         * lib/strtoimax.c: New file.  Likewise, but first define
75125         STRTOUXMAX_SIGNED.
75126
75127         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75128         ...
75129         * lib/strtoxmax.c: ... then renamed to this.
75130
75131 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75132
75133         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75134         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75135         (jm_AC_TYPE_INTMAX_T): New macro.
75136         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75137
75138         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75139
75140         * m4/longlong.m4: Renamed from ulonglong.m4.
75141         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75142         * m4/uintmax_t.m4: Removed.
75143
75144 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75145
75146         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75147         Port to Solaris 8, where 'sed' requires a space after the 'r'
75148         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75149         Redirect output to $tmp just once.
75150
75151 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75152
75153         * lib/addext.c (<errno.h>): Include.
75154         (errno): Declare if not defined.
75155         (addext): Work correctly when pathconf returns -1 and leaves
75156         errno alone because there is no limit.  Also, work even if
75157         pathconf returns a value greater than SIZE_MAX.
75158
75159 2001-08-12  Jim Meyering  <meyering@lucent.com>
75160
75161         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75162         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75163         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75164         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75165         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75166         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75167         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75168         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75169         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75170         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75171         utime.m4, utimes.m4, xstrtoumax.m4:
75172         Quote the first argument in each use of AC_DEFUN.
75173
75174 2001-08-12  Jim Meyering  <meyering@lucent.com>
75175
75176         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75177         Simply `return getcwd (NULL, 0);'.
75178         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75179         Use 1300 as initial value for length, not PATH_MAX.
75180
75181         * lib/pathmax.h: Clean up cpp syntax.
75182
75183 2001-08-12  Jim Meyering  <meyering@lucent.com>
75184
75185         * lib/gettimeofday.c: New file.
75186         * lib/gtod.h: New file.
75187         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75188
75189 2001-08-05  Jim Meyering  <meyering@lucent.com>
75190
75191         * m4/jm-macros.m4: Require autoconf-2.52.
75192
75193 2001-08-04  Jim Meyering  <meyering@lucent.com>
75194
75195         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75196         stmt, to get in sync with glibc.
75197
75198 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75199
75200         The following changes are from gettext 0.10.39 as maintained by
75201         Bruno Haible.
75202
75203         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75204         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75205         with inverted sense.  All uses changed.
75206
75207         * lib/mbswidth.c: Don't include <limits.h>.
75208         Include <stdlib.h> and <string.h> unconditionally.
75209         (iswcntrl, mbsinit, ISCNTRL): New macros.
75210         (mbsnwidth): Use K&R style function declarations.
75211         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75212         can optimize it when MB_CUR_MAX == 1.
75213         The width of control characters is zero, not 1.
75214
75215 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75216
75217         The following changes are from gettext 0.10.39 as maintained by
75218         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75219
75220         * m4/codeset.m4: Upgrade to serial AM1.
75221         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75222         all uses changed.  Quote first arg of AC_DEFUN.
75223         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75224
75225         * m4/iconv.m4: Upgrade to serial AM2.
75226         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75227         Add --with-libconv-prefix.
75228         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75229         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75230         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75231         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75232         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75233
75234         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75235         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75236         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75237         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75238         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75239         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75240         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75241         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75242         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75243
75244         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75245         string.h any more.
75246
75247         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75248         not the default value.
75249
75250         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75252         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75253         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75254         Also check for iswcntrl, used for wcwidth fallback.
75255         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75256         to Autoconf 2.13.
75257
75258 2001-08-03  Jim Meyering  <meyering@lucent.com>
75259
75260         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75261         as it was in the original.  Reported by Paul Eggert.
75262
75263 2001-07-16  Jim Meyering  <meyering@lucent.com>
75264
75265         * m4/gettimeofday.m4: New file.
75266         Prompted by a report from Bernhard Baehr.
75267
75268 2001-07-15  Jim Meyering  <meyering@lucent.com>
75269
75270         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75271         stuff. Now it's in ../Makefile.cfg.
75272
75273 2001-07-15  Jim Meyering  <meyering@lucent.com>
75274
75275         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75276         (BUILT_SOURCES): Add unlocked-io.h.
75277         (io_functions): Define.
75278         (unlocked-io.h): New rule.
75279         (DISTCLEANFILES): Add unlocked-io.h.
75280         (all-local): Depend on unlocked-io.h, to ensure it is created.
75281
75282         * lib/unlocked-io.hin: New file
75283
75284         * lib/regex.c: Update from glibc.
75285
75286 2001-07-05  Jim Meyering  <meyering@lucent.com>
75287
75288         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75289         recommendation.
75290         (libfetish_a_SOURCES): Put all .h files here instead.
75291         Remove a thus-exposed (better checks in automake) duplicate and
75292         two unnecessary .h files.
75293
75294 2001-07-04  Jim Meyering  <meyering@lucent.com>
75295
75296         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75297         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75298         distcheck failure.
75299
75300 2001-07-02  Jim Meyering  <meyering@lucent.com>
75301
75302         The following changes were prompted by suggestions from Bruno Haible.
75303
75304         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75305         is now generated.
75306         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75307         definition of EXTRA_DIST.
75308         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75309         ensure that the generated file is created/updated whenever the list
75310         of $(unlocked_functions) is changed.
75311         (jm-glibc-io.m4): New rule.
75312         (unlocked-io.h): New rule -- currently unused.
75313
75314 2001-06-24  Jim Meyering  <meyering@lucent.com>
75315
75316         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75317         unmatched right bracket, rather than kludging it with an extra,
75318         falsely-matching quote in a comment.  Patch by Akim Demaille.
75319
75320 2001-06-11  Jim Meyering  <meyering@lucent.com>
75321
75322         * lib/regex.c: Update from GNU libc.
75323
75324 2001-05-27  Jim Meyering  <meyering@lucent.com>
75325
75326         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75327         Check for ut_type in struct utmp.
75328
75329 2001-05-27  Jim Meyering  <meyering@lucent.com>
75330
75331         * lib/readutmp.h (UT_TYPE): Define.
75332
75333 2001-05-24  Jim Meyering  <meyering@lucent.com>
75334
75335         * lib/argmatch.c: Include "quote.h".
75336         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75337         quote function.  Reported by Göran Uddeborg.
75338
75339 2001-05-22  Jim Meyering  <meyering@lucent.com>
75340
75341         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75342         now that we use the package-supplied version unconditionally.
75343         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75344
75345 2001-05-21  Jim Meyering  <meyering@lucent.com>
75346
75347         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75348         shell syntax errors.
75349
75350 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75351
75352         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75353
75354 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75355
75356         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75357         Don't bother to check library strftime, since
75358         we'll be using our own my_strftime function anyway.
75359         Define my_strftime instead of strftime.
75360
75361 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75362
75363         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75364         which is not yet declared.
75365
75366 2001-05-15  Jim Meyering  <meyering@lucent.com>
75367
75368         * m4/regex.m4: Use proper quoting so brackets appear in the test
75369         program.
75370         Reported by, and with help from, Bruno Haible.
75371
75372 2001-05-13  Jim Meyering  <meyering@lucent.com>
75373
75374         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75375         undefined.
75376
75377 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75378
75379         dirname code cleanup.  base_name now behaves more compatibly
75380         with POSIX basename when given file names that have trailing
75381         slashes, and similarly for dir_name.  Add new primitives
75382         base_len and dir_len.  Put the directory-name-related decls
75383         into dirname.h.
75384
75385         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75386         * lib/backupfile.c (base_name): Likewise.
75387         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75388         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75389         * lib/makepath.c (strip_trailing_slashes): Likewise.
75390         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75391         ISSLASH): Likewise.
75392         * lib/rename.c (strip_trailing_slashes): Likewise.
75393         * lib/same.c (base_name): Likewise.
75394         * lib/stripslash.c (ISSLASH): Likewise.
75395
75396         * lib/addext.c: Include <dirname.h> after size_t is defined.
75397         * lib/backupfile.c: Likewise.
75398
75399         * lib/addext.c (addext): Use base_len to trim redundant
75400         trailing slashes instead of doing it ourselves.
75401         But do not trim the last slash if it is not redundant.
75402
75403         * lib/backupfile.c (find_backup_file_name,
75404         max_backup_version): Use base_len instead of rolling it ourselves.
75405         Handle the case of "" and (on DOS) "C:" correctly.
75406
75407         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75408         needed. Include <string.h>, <dirname.h>.
75409         (base_name): Allow file names ending in slashes, other than names
75410         that are all slashes.  In this case, return the basename followed
75411         by the slashes.  This is more general, and can be used in places
75412         where the original base_name purposely had an assertion failure.
75413         (base_len): New function.
75414
75415         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75416         Do not include <assert.h>; no longer needed.
75417         Include xalloc.h.
75418         (memrchr): Remove decl.
75419         (dir_name_r): Remove.
75420         (dir_len): Renamed from dirlen.  All callers changed.
75421         Rewrite in terms of base_name, for simplicity and consistency.
75422         (dir_name): Never return NULL.  All callers changed.
75423         Do not include <stdlib.h> in test program; no longer needed.
75424         return 0; is fine for test program.
75425
75426         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75427         New macros.
75428         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75429
75430         * lib/path-concat.c (path_concat): Use base_len to compute
75431         base length, not strlen; this means we cannot rely on memcpy
75432         to null-terminate.
75433
75434         * lib/same.c (STREQ): Remove.
75435         (same_name): Handle the case where the basename ends in trailing '/'.
75436
75437         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75438         a slash was stripped.  Do not strip the last slash after a
75439         file system prefix.
75440
75441 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75442
75443         * lib/Makefile.am (libfetish_a_SOURCES):
75444         Add strftime.c, since we now compile it on all hosts.
75445
75446         * lib/strftime.c (my_strftime):
75447         Define to nstrftime if emacs, but only if my_strftime is not defined.
75448         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75449         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75450         Add one more extra argument: a nanoseconds value.
75451         All uses changed.
75452         (ns): New macro.
75453         (my_strftime function): Add %N format.
75454         (emacs_strftimeu): Renamed from emacs_strftime,
75455         with extra ut argument.
75456
75457 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75458
75459         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75460
75461 2001-04-21  Jim Meyering  <meyering@lucent.com>
75462
75463         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75464         doesn't interfere.
75465
75466 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75467
75468         * m4/ftruncate.m4: Check for chsize.
75469         Link with ftruncate.o unconditionally if ftruncate is missing.
75470         This was required when cross-compiling to i586-mingw32msvc.
75471
75472 2001-04-08  Jim Meyering  <meyering@lucent.com>
75473
75474         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75475         recomputed; that's necessary when the offset spans a DST transition.
75476         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75477
75478 2001-04-02  Jim Meyering  <meyering@lucent.com>
75479
75480         * lib/regex.h, regex.c: Update from GNU libc.
75481
75482 2001-03-24  Jim Meyering  <meyering@lucent.com>
75483
75484         * m4/jm-macros.m4: Require autoconf-2.49d.
75485
75486 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75487
75488         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75489
75490 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75491
75492         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75493
75494 2001-03-17  Jim Meyering  <meyering@lucent.com>
75495
75496         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75497         now that the version in autoconf is equivalent.
75498         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75499
75500         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75501         Suggestion from Akim Demaille.
75502
75503         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75504         (jm_PREREQ_TEMPNAME): New function.
75505
75506 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75507
75508         * lib/tempname.c (uint64_t): Define to uintmax_t if
75509         not defined, and if UINT64_MAX is not defined.
75510         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75511         Reported by John David Anglin.
75512
75513 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75514
75515         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75516         resolve alias if codeset is empty.
75517         * lib/config.charset (BeOS): Use wildcard syntax.
75518
75519 2001-03-13  Jim Meyering  <meyering@lucent.com>
75520
75521         * lib/path-concat.c (path_concat)
75522         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75523         concatenating e.g., `C:' and `foo'.
75524         From Bruno Haible.
75525
75526 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75527
75528         * lib/localcharset.c (locale_charset): Don't use
75529         setlocale(LC_CTYPE,NULL). Don't return NULL.
75530         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75531
75532 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75533
75534         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75535         support for DOS/DJGPP.
75536
75537 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75538
75539         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75540         lacks mkstemp.  Compile our own tempname.c if we compile our own
75541         mkstemp.c, as mkstemp relies on tempname.
75542
75543 2001-03-01  Jim Meyering  <meyering@lucent.com>
75544
75545         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75546         AH_VERBATIM really does output its argument verbatim.
75547
75548 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75549
75550         * lib/Makefile.am (libfetish_a_SOURCES):
75551         Add dup-safer.c, fopen-safer.c.
75552         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75553
75554         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75555         * lib/unistd-safer.h: New files.
75556
75557 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75558
75559         The mkstemp replacement is taken from glibc 2.2.2, with some
75560         portability fixes for use outside glibc, as follows:
75561
75562         * lib/tempname.c (struct_stat64): New macro.
75563         (direxists, __gen_tempname): Use it.
75564         This avoids a portability problem with Solaris 8.
75565
75566         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75567         (<stddef.h>, <stdint.h>, <string.h>):
75568         Include only if STDC_HEADERS || _LIBC.
75569         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75570         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75571         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75572         (__set_errno): Define this macro if <errno.h> doesn't.
75573         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75574         Define these macros if <stdio.h> doesn't.
75575         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75576         Define these macros if <sys/stat.h>
75577         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75578         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75579         __xstat64): Define if not _LIBC.
75580         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75581         (__gen_tempname): Invoke gettimeofday only if
75582         HAVE_GETTIMEOFDAY || _LIBC;
75583         otherwise, fall back on plain "time".
75584         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75585
75586         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75587
75588         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75589
75590 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75591
75592         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75593
75594 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75595
75596         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75597         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75598         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75599         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75600
75601 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75602
75603         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75604         Remove workaround macros for hosts that have mbrtowc but not
75605         mbstate_t, as we now insist on proper declarations for both
75606         before using mbrtowc.
75607
75608 2001-02-17  Jim Meyering  <meyering@lucent.com>
75609
75610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75611         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75612         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75613         UnixWare 7.1.1.
75614
75615         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75616         rather than AC_CACHE_VAL.
75617
75618 2001-02-17  Jim Meyering  <meyering@lucent.com>
75619
75620         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75621         around included file name.
75622
75623         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75624
75625         * lib/strftime.c: Update from GNU libc (the only changes were to
75626         comments).
75627
75628 2001-02-17  Jim Meyering  <meyering@lucent.com>
75629
75630         * lib/regex.c: Update from libc.
75631
75632 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75633
75634         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75635         clash.
75636
75637 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75638
75639         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75640         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75641         Reported by Mark Hounschell via Paul Eggert.
75642
75643 2001-02-07  Jim Meyering  <meyering@lucent.com>
75644
75645         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75646
75647 2001-02-05  Jim Meyering  <meyering@lucent.com>
75648
75649         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75650         it includes the patch required for `large file' support with at least
75651         HP-UX's 10.20 /bin/cc.
75652
75653 2001-02-03  Jim Meyering  <meyering@lucent.com>
75654
75655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75656         AS_IF, now that it works once again (mysteriously).
75657         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75658
75659 2001-01-30  Jim Meyering  <meyering@lucent.com>
75660
75661         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75662         * m4/chown.m4: Rename conftestchown to conftest.chown.
75663         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75664         s/conftestdir2/conftest.d2/.
75665         * m4/utimes.m4: s/conftestdata/conftest.data/
75666         Inspired by Pavel Roskin's change in autoconf.
75667
75668 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75669
75670         * lib/config.charset: Update for FreeBSD 4.2.
75671
75672 2001-01-27  Jim Meyering  <meyering@lucent.com>
75673
75674         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75675         a use of AS_IF.
75676         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75677
75678 2001-01-26  Jim Meyering  <meyering@lucent.com>
75679
75680         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75681         quotearg.c includes it.
75682
75683 2001-01-26  Jim Meyering  <meyering@lucent.com>
75684
75685         * lib/quotearg.c: Include stddef.h.
75686         * lib/quote.c: Include stddef.h.
75687         Reported by Axel Kittenberger.
75688
75689         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75690         line in double quotes so that it evokes a better diagnostic.
75691         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75692         Reported by Axel Kittenberger.
75693
75694 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75695
75696         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75697         as if it was a `charset'.
75698
75699 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75700
75701         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75702         has const.
75703
75704 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75705
75706         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75707         to avoid a warning.  Add back 'const' to inptr.
75708
75709 2001-01-20  Jim Meyering  <meyering@lucent.com>
75710
75711         Be sure that headers are checked before used in code compiled
75712         for the type checks.
75713         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75714         In place of that, invoke jm_CHECK_ALL_TYPES.
75715         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75716         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75717         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75718         The check for ssize_t was mistakenly run before the test for unistd.h.
75719
75720         The configure-time check for stdbool.h was missing.
75721         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75722         (jm_PREREQ_HASH): New function.
75723
75724 2001-01-17  Jim Meyering  <meyering@lucent.com>
75725
75726         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75727         for autoconf-2.49c.
75728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75729
75730 2001-01-16  Jim Meyering  <meyering@lucent.com>
75731
75732         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75733         From Bruno Haible.
75734
75735 2001-01-14  Jim Meyering  <meyering@lucent.com>
75736
75737         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75738         foo and bar.  Create conftestdir/ in the script, not in the C code.
75739         Remove directories in the script, not in the C code.
75740         Remove conftestdir{,2} before trying to create the directory.
75741         Make the entire configure script fail if the mkdir fails.
75742
75743 2001-01-14  Jim Meyering  <meyering@lucent.com>
75744
75745         * lib/rename.c: New file.  From Volker Borchert.
75746         Include stdlib.h, string.h or strings.h, and xalloc.h.
75747         Use strip_trailing_slashes rather than open-coding it.
75748
75749 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75750
75751         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75752
75753 2001-01-03  Jim Meyering  <meyering@lucent.com>
75754
75755         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75756         of local `inptr' to avoid warning with some system declarations of
75757         iconv.
75758
75759 2001-01-02  Volker Borchert  <bt@teknon.de>
75760
75761         * m4/rename.m4: New file.
75762         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75763
75764 2001-01-01  Jim Meyering  <meyering@lucent.com>
75765
75766         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75767         even on systems with utmpx.h.  It's necessary for the declaration of
75768         utmp's ut_user member.  Reported by Andreas Jaeger.
75769
75770         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75771         available. They are required for the declarations of getgrgid and
75772         getpwuid resp.
75773         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75774         Reported by Andreas Jaeger.
75775
75776 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75777
75778         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75779         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75780         so `make install' also works in VPATH builds.
75781
75782 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75783
75784         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75785         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75786         can be used in subdirectories.
75787
75788 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75789
75790         * lib/modechange.c: Do not assume that mode_t uses the
75791         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75792         the other-execute bit of FOO even if S_IXOTH != 1.
75793
75794         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75795         WOTH, XOTH, ALLM): New macros.
75796         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75797          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75798         Use them.
75799         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75800         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75801         (mode_compile):
75802         No need to use uintmax_t; unsigned long is long enough.
75803         Don't bother to get suffix since we don't use it.
75804
75805 2000-12-26  Jim Meyering  <meyering@lucent.com>
75806
75807         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75808         better with autoheader.
75809
75810 2000-12-24  Jim Meyering  <meyering@lucent.com>
75811
75812         * lib/hash.c (is_prime): Return explicit boolean values.
75813         (hash_get_first): Return NULL to appease Irix5.6's 89.
75814         Reported by Nelson Beebe.
75815
75816 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75817
75818         * lib/localcharset.c (locale_charset): Add support for Win32.
75819
75820 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75821
75822         * lib/physmem.h, lib/physmem.c: New files.
75823
75824         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75825         (noinst_HEADERS): Add physmem.h.
75826
75827         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75828         't' for compatibility with Solaris 8 sort.
75829
75830 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75831
75832         * lib/config.charset: Add support for BeOS.
75833
75834 2000-12-17  Jim Meyering  <meyering@lucent.com>
75835
75836         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75837         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75838
75839 2000-12-16  Jim Meyering  <meyering@lucent.com>
75840
75841         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75842         N and M) would have treated it like `chown N:N FILE'.
75843
75844         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75845
75846 2000-12-16  Jim Meyering  <meyering@lucent.com>
75847
75848         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75849         SHELLS_FILE to a file name that's useful on djgpp systems.
75850         Include stdlib.h.
75851         (ADDITIONAL_DEFAULT_SHELLS): Define.
75852         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75853         Based mostly on a patch from Prashant TR.
75854
75855 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75856
75857         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75858         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75859         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75860
75861 2000-12-08  Andreas Schwab  <schwab@suse.de>
75862
75863         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75864         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75865
75866 2000-12-07  Jim Meyering  <meyering@lucent.com>
75867
75868         * lib/stripslash.c (ISSLASH): Define.
75869         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75870         `/'.
75871         From Prashant TR.
75872
75873         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75874         (dir_name_r): Declare this function as static.
75875         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75876         manifest itself on a name containing a mix of slashes and
75877         backslashes.
75878         Make this function work with names starting with a DOS-style
75879         drive letter and colon prefix.
75880         (dir_name): Append `.' if necessary.
75881         Based mostly on patches from Prashant TR and Eli Zaretskii.
75882
75883         * lib/dirname.h (dir_name_r): Remove prototype.
75884
75885 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75886
75887         * m4/off_t-format.m4: Remove this file.
75888         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75889
75890 2000-12-06  Jim Meyering  <meyering@lucent.com>
75891
75892         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75893         replacement strtoull, we may well need the replacement strtoul, too.
75894         Check for declarations of strtoul and strtoull.
75895         Check for strtol.  Mainly as a cue to cause automake to include
75896         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75897         Check for limits.h -- strtol.c needs it.
75898
75899 2000-12-05  Jim Meyering  <meyering@lucent.com>
75900
75901         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75902
75903 2000-12-04  Jim Meyering  <meyering@lucent.com>
75904
75905         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75906         Also include memory.h, stdlib.h, unistd.h if appropriate.
75907         Reported by Andreas Jaeger (conflicting declaration of malloc).
75908
75909 2000-12-02  Jim Meyering  <meyering@lucent.com>
75910
75911         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75912         * m4/jm-macros.m4 (jm_MACROS): require it.
75913
75914 2000-12-02  Jim Meyering  <meyering@lucent.com>
75915
75916         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75917
75918 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75919
75920         * lib/memrchr.c: Include <config.h> before any system include file.
75921
75922 2000-11-30  Jim Meyering  <meyering@lucent.com>
75923
75924         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75925
75926 2000-11-30  Jim Meyering  <meyering@lucent.com>
75927
75928         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75929
75930 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75931
75932         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75933
75934 2000-11-26  Jim Meyering  <meyering@lucent.com>
75935
75936         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75937
75938 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75939
75940         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75941         size of (size_t) -1; it's not portable.
75942
75943 2000-11-17  Jim Meyering  <meyering@lucent.com>
75944
75945         * lib/strstr.c: Update from GNU libc.
75946
75947 2000-11-17  Akim Demaille  <akim@epita.fr>
75948
75949         * lib/obstack.h: Formatting changes.
75950         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75951         prevent type checking.
75952         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75953         cast the value to (void *): assigning a `foo *' to a `void *'
75954         variable is valid.
75955         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75956
75957 2000-11-16  Jim Meyering  <meyering@lucent.com>
75958
75959         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75960
75961 2000-11-11  Jim Meyering  <meyering@lucent.com>
75962
75963         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75964
75965 2000-11-10  Jim Meyering  <meyering@lucent.com>
75966
75967         * lib/obstack.h: Update from GNU libc.
75968         * lib/obstack.c: Likewise.
75969
75970 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75971
75972         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75973
75974 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75975
75976         * lib/getusershell.c (setusershell): Use rewind rather than
75977         fseek/fseeko, to avoid configuration hassles with fseeko.
75978         Don't bother opening SHELLS_FILE if shellstream is NULL;
75979         it's not necessary.
75980
75981 2000-11-05  Jim Meyering  <meyering@lucent.com>
75982
75983         * lib/makepath.h (make_dir): Declare.
75984         * lib/makepath.c (make_dir): Remove `static' attribute.
75985         Tweak a comment.
75986
75987 2000-11-04  Jim Meyering  <meyering@lucent.com>
75988
75989         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75990
75991 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75992
75993         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75994         last one in a bucket, advance to the next bucket.
75995
75996 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75997
75998         * lib/fnmatch.c: Do not comment out all the code if we are using
75999         the GNU C library, because in some cases we are replacing buggy
76000         code in the GNU C library itself.
76001
76002 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76003
76004         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76005         (regex_compile): Catch bogus \(\1\).
76006
76007 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76008
76009         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76010         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76011         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76012
76013 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76014
76015         * lib/error.h, getline.h, modechange.h:
76016         Remove "2000" from Copyright line, as the file hasn't been
76017         changed this year other than in the copyright notice.
76018
76019         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76020         was changed this year.
76021
76022 2000-10-29  Jim Meyering  <meyering@lucent.com>
76023
76024         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76025         renaming.
76026         * m4/ls-mntd-fs.m4: Likewise
76027
76028 2000-10-29  Jim Meyering  <meyering@lucent.com>
76029
76030         * lib/xstat.in: Fix grammar in comment.
76031
76032 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76033
76034         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76035         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76036         doesn't define __restrict_arr.
76037
76038 2000-10-28  Jim Meyering  <meyering@lucent.com>
76039
76040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76041         (jm_PREREQ_MEMCHR): New function.
76042
76043 2000-10-28  Jim Meyering  <meyering@lucent.com>
76044
76045         * lib/memchr.c: Update from libc.
76046         Adjust for portability:
76047         [HAVE_STDLIB_H]: Include stdlib.h.
76048         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76049         Undef __memchr, too.
76050         [!weak_alias]: Define __memchr to memchr.
76051
76052         * lib/regex.c: Update from libc.
76053         * lib/regex.h: Likewise.
76054         * lib/getopt1.c: Likewise.
76055         * lib/memcmp.c: Likewise.
76056
76057         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76058         Avoid using fseek, when possible -- it's broken by design.
76059         Patch by Ulrich Drepper.
76060
76061 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76062
76063         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76064         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76065         Giving in to popular pressure to shut up the compiler with casts.
76066
76067 2000-10-26  Jim Meyering  <meyering@lucent.com>
76068
76069         * lib/strftime.c: Update from libc.
76070
76071 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76072
76073         * regex.c: More `unsigned char' -> `re_char' changes.
76074         Also change several `int' into `re_wchar_t'.
76075         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76076         (PUSH_FAILURE_POINTER): Don't cast any more.
76077         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76078         We want GCC to complain, since this piece of code makes
76079         re_match non-reentrant, which *should* be fixed.
76080         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76081         (EXTEND_BUFFER): Use RETALLOC.
76082         (SET_LIST_BIT): Don't cast.
76083         (re_wchar_t): New type.
76084         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76085         that those two functions will always properly return.
76086         (IMMEDIATE_QUIT_CHECK): Cast to void.
76087         (analyse_first): Use recursion rather than an explicit stack.
76088         (re_compile_fastmap): Can't fail anymore.
76089         (re_search_2): Don't check re_compile_fastmap for failure.
76090         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76091         Now also sets the new value (passed in a new argument).
76092         (re_match_2_internal): Use it.
76093         Also, use a new var `reg' of type size_t when looping through regs
76094         rather than reuse the inappropriate `mcnt'.
76095
76096 2000-10-25  Jim Meyering  <meyering@lucent.com>
76097
76098         * lib/obstack.c: Update from libc.
76099
76100 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76101
76102         * regex.c (regex_compile): Change the way of handling a range from
76103         a char less than 256 to a char not less than 256.
76104
76105 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76106
76107         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76108         NT-Emacs only.
76109         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76110         so that re_search functions only quit when callers expect them to.
76111
76112 2000-10-23  Jim Meyering  <meyering@lucent.com>
76113
76114         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76115         wrong.  That set_locale call must not have any side effects.
76116         From Paul Eggert.
76117
76118 2000-10-22  Jim Meyering  <meyering@lucent.com>
76119
76120         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76121         [CYCLIC]: Remove now-unused definition.
76122
76123         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76124         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76125         Suggestion from Ulrich Drepper.
76126
76127 2000-10-21  Jim Meyering  <meyering@lucent.com>
76128
76129         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76130         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76131         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76132
76133 2000-10-21  Jim Meyering  <meyering@lucent.com>
76134
76135         * lib/dirname.c (memrchr): Declare if necessary.
76136         (dir_name): Remove the restriction that there be no
76137         trailing slashes.  Now, this code skips past them, effectively
76138         ignoring them.
76139         [TEST_DIRNAME] (main): New unit tests.
76140
76141         * lib/memrchr.c: New file from GNU libc.
76142         Undef __memrchr, too.
76143         [!weak_alias]: Define __memrchr to memrchr.
76144         Guard weak_alias use with `#ifdef weak_alias'.
76145
76146 2000-10-21  Jim Meyering  <meyering@lucent.com>
76147
76148         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76149         (dir_name): Use dir_name_r.
76150         * lib/dirname.h (dir_name_r): Declare it.
76151
76152 2000-10-17  Jim Meyering  <meyering@lucent.com>
76153
76154         * lib/quote.h (PARAMS): Define and use.
76155         Reported by Akim Demaille.
76156
76157         * lib/getopt.c: Update from libc.
76158
76159 2000-10-16  Jim Meyering  <meyering@lucent.com>
76160
76161         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76162         setlocale.
76163         From Jan Fedak.
76164
76165 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76166
76167         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76168
76169 2000-09-25  Jim Meyering  <meyering@lucent.com>
76170
76171         * lib/md5.h (rol): Define (from GnuPG).
76172
76173         * lib/sha.c: Give credit (GnuPG) where due.
76174         (M): Use rol rather than open-coding it.
76175         Add a FIXME comment.
76176
76177 2000-09-21  Jim Meyering  <meyering@lucent.com>
76178
76179         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76180         Reported by Michael Stone.
76181
76182 2000-09-20  Jim Meyering  <meyering@lucent.com>
76183
76184         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76185         (noinst_HEADERS): Add sha.h.
76186         Based on code from Scott G. Miller and from GnuPG.
76187
76188 2000-09-18  Jim Meyering  <meyering@lucent.com>
76189
76190         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76191         LIBS. Otherwise, everyone ends up linking with -lelf for some
76192         configurations.
76193         Reported by Mike Stone.
76194
76195 2000-09-15  Jim Meyering  <meyering@lucent.com>
76196
76197         * lib/regex.c: Update from libc.
76198
76199 2000-09-10  Jim Meyering  <meyering@lucent.com>
76200
76201         * lib/getopt.c (_getopt_internal): Update from glibc.
76202
76203 2000-09-09  Jim Meyering  <meyering@lucent.com>
76204
76205         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76206         think it should be used as a general replacement for isascii.
76207         * lib/fnmatch.c: Likewise.
76208         * lib/mbswidth.c: Likewise
76209         * lib/regex.c: Likewise.
76210
76211         Don't use atoi.
76212         * lib/userspec.c: Include sys/param.h and limits.h.
76213         Include xstrtol.h.
76214         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76215         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76216         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76217         UID, GID.  Check range.
76218
76219 2000-09-06  Jim Meyering  <meyering@lucent.com>
76220
76221         * lib/getopt.c (_getopt_internal): Update from glibc.
76222
76223 2000-08-30  Jim Meyering  <meyering@lucent.com>
76224
76225         * lib/strftime.c: Merge in changes from GNU libc.
76226
76227 2000-08-26  Jim Meyering  <meyering@lucent.com>
76228
76229         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76230         * m4/fpending.m4: New file.
76231
76232 2000-08-26  Jim Meyering  <meyering@lucent.com>
76233
76234         * lib/closeout.c: Include "__fpending.h".
76235         (close_stdout_status): Return right away if there's nothing to flush.
76236
76237         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76238         * lib/__fpending.c: New file.
76239         * lib/__fpending.h: New file.
76240
76241 2000-08-20  Jim Meyering  <meyering@lucent.com>
76242
76243         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76244         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76245         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76246
76247 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76248
76249         Improve fileutils installation on systems where running
76250         programs (like install) can't be unlinked.
76251         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76252         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76253
76254 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76255
76256         Standardize on "memory exhausted" instead of "Memory exhausted"
76257         or "virtual memory exhausted".
76258         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76259         "virtual memory exhausted".
76260         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76261         our own message.
76262         * lib/userspec.c (parse_user_spec): Likewise.
76263         * lib/bumpalloc.h: comment fix
76264         * lib/same.c, userspec.c: Include xalloc.h.
76265
76266         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76267         not char *const and pointing to a constant array.
76268         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76269         (xrealloc): Comment fix.
76270
76271         * lib/userspec.c (parse_user_spec):
76272         Don't translate a message until just before returning,
76273         to avoid unnecessary translation.
76274
76275 2000-08-07  Jim Meyering  <meyering@lucent.com>
76276
76277         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76278         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76279         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76280         getgroups.c, gethostname.c, getopt.h, group-member.c,
76281         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76282         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76283         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76284         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76285         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76286         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76287         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76288         yesno.c: Back out Copyright date changes for each file with no change
76289         this year.  This eases coordination with other programs using the same
76290         source code modules.  From Paul Eggert.
76291
76292 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76293
76294         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76295         not char, for compatibility with glibc 2.1.3 strftime.c.
76296
76297 2000-08-03  Greg McGary  <greg@mcgary.org>
76298
76299         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76300         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76301         (EXTEND_BUFFER): Use them.
76302
76303 2000-08-01  Jim Meyering  <meyering@lucent.com>
76304
76305         * lib/dirname.c (ISSLASH): Define.
76306         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76307         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76308         both `\' and `/' may be use as path separators.
76309         Based on a patch from Prashant TR.
76310
76311 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76312
76313         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76314         slot vector a constant, since it might get modified.
76315
76316 2000-07-31  Jim Meyering  <meyering@lucent.com>
76317
76318         * lib/xmalloc.c: Use `virtual memory exhausted', not
76319         `Memory exhausted'.
76320         * lib/obstack.c (print_and_abort): Likewise.
76321
76322 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76323
76324         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76325         buffer, so that the caller can always quote one small
76326         component of a "memory exhausted" message in slot 0.
76327         From a suggestion by Jim Meyering.
76328
76329 2000-07-30  Jim Meyering  <meyering@lucent.com>
76330
76331         * lib/makepath.c (make_path): Quote the other instance, too.
76332
76333         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76334         (STATIC_BUF_SIZE): Define.
76335         (quotearg_n_options): Use only statically allocated storage when
76336         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76337         than STATIC_BUF_SIZE.
76338
76339 2000-07-29  Jim Meyering  <meyering@lucent.com>
76340
76341         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76342         * lib/dirname.c (dir_name): Likewise.
76343
76344         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76345         `/'.
76346
76347         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76348         (dir_name): Assert that there are no trailing slashes.
76349
76350 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76351
76352         * lib/mbswidth.h (mbswidth): Add a flags argument.
76353         (mbswidth): New declaration.
76354         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76355         * lib/mbswidth.c (mbswidth): Add a flags argument.
76356         (mbsnwidth): New function.
76357
76358 2000-07-24  Jim Meyering  <meyering@lucent.com>
76359
76360         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76361
76362 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76363
76364         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76365
76366 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76367
76368         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76369         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76370         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76371         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76372         invoke multibyte primitives.
76373
76374 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76375
76376         * lib/quotearg.c:
76377         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76378         so that mbstate_t is always defined.
76379
76380         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76381         be 1 in at least one GCC installation, and this configuration
76382         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76383         performance on hosts that have mbrtowc but have only unibyte
76384         locales, but I assume these hosts are rare.
76385
76386 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76387
76388         * lib/mbswidth.c (_XOPEN_SOURCE):
76389         Don't define; this causes problems on Solaris 7.
76390         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76391
76392 2000-07-23  Jim Meyering  <meyering@lucent.com>
76393
76394         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76395         too: getgrgid, getpwuid, getuid.
76396
76397 2000-07-23  Jim Meyering  <meyering@lucent.com>
76398
76399         * lib/basename.c (base_name): Add an assertion.
76400
76401 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76402
76403         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76404         shadow its mbsinit function.
76405
76406 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76407
76408         * lib/mbswidth.h: New file.
76409         * lib/mbswidth.c: New file.
76410         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76411         (noinst_HEADERS): Add mbswidth.h.
76412
76413 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76414
76415         * lib/config.charset: Add support for FreeBSD. Improve support for
76416         HP-UX and IRIX 6.
76417
76418 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76419
76420         * m4/mbswidth.m4: New file.
76421         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76422
76423 2000-07-15  Jim Meyering  <meyering@lucent.com>
76424
76425         * lib/makepath.c: Include quote.h.
76426         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76427         corresponding argument in a `quote (...)' call.
76428         Give better diagnostics.
76429
76430         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76431         (noinst_HEADERS): Add quote.h.
76432
76433         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76434         from tar's src/misc.c.
76435         * lib/quote.h: New file.  Prototypes for same.
76436
76437 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76438
76439         From a suggestion by Bruno Haible.
76440         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76441         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76442         to decide whether to define the BeOS workaround macro;
76443         this adjusts to the change to AC_MBSTATE_T.
76444
76445 2000-07-14  Jim Meyering  <meyering@lucent.com>
76446
76447         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76448         jm_AC_TYPE_UINTMAX_T.
76449
76450 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76451
76452         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76453
76454         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76455         quotearg_buffer_restyled): Add support for
76456         clocale_quoting_style.  Undo previous change to
76457         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76458         and "{RIGHT QUOTATION MARK}" msgids.
76459
76460 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76461
76462         From a suggestion by Bruno Haible.
76463         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76464         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76465         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76466         and mbstate_t, to a single-part test that simply defines mbstate_t.
76467         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76468         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76469
76470 2000-07-10  Jim Meyering  <meyering@lucent.com>
76471
76472         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76473
76474         * m4/gnu-source.m4: Output to confdefs.h directly.
76475         Suggestion from Akim Demaille.
76476
76477 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76478
76479         The old behavior of quoting `like this' doesn't look good with
76480         newer, ISO-style fonts.  See:
76481         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76482
76483         Instead, quote "like this" by default.  Let the translator
76484         tailor the locale-specific quoting behavior by providing
76485         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76486
76487         * lib/quotearg.c (N_): New macro.
76488         (gettext_default): New function.
76489         (quotearg_buffer_restyled): Use
76490         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76491         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76492
76493 2000-07-09  Jim Meyering  <meyering@lucent.com>
76494
76495         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76496         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76497
76498         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76499         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76500
76501 2000-07-09  Jim Meyering  <meyering@lucent.com>
76502
76503         * lib/Most files: Update copyright dates to include 2000.
76504
76505 2000-07-08  Jim Meyering  <meyering@lucent.com>
76506
76507         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76508         if not defined.
76509         (xgethostname): Remove now-unnecessary #ifdef.
76510         Move declaration of `err' into loop where it's used.
76511
76512 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76513         and Bruno Haible  <haible@clisp.cons.org>
76514
76515         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76516         only if the test for an object-type mbstate_t fails.  This
76517         prevents us from mistakenly reporting that mbstate_t is a
76518         system object type after we "#define mbstate_t int" to work
76519         around its lack.
76520
76521 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76522         and Bruno Haible  <haible@clisp.cons.org>
76523
76524         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76525
76526 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76527
76528         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76529         to strerror_r.
76530         Include <ctype.h> for use of isalpha.
76531
76532 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76533
76534         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76535         by allocating a larger buffer. Test the gethostname return value for
76536         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76537         returns an error and ENAMETOOLONG isn't defined.
76538
76539 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76540
76541         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76542         dimension.
76543
76544 2000-07-04  Jim Meyering  <meyering@lucent.com>
76545
76546         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76547         of the deprecated AC_CHECKING.
76548
76549 2000-07-04  Jim Meyering  <meyering@lucent.com>
76550
76551         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76552         Reported by Bruno Haible.
76553
76554 2000-07-04  Jim Meyering  <meyering@lucent.com>
76555
76556         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76557         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76558         lacks mbrtowc.
76559
76560 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76561
76562         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76563         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76564
76565 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76566         and Bruno Haible  <haible@clisp.cons.org>
76567
76568         * lib/quotearg.c (mbrtowc):
76569         Assign to *pwc, and return 1 only if result is nonzero.
76570         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76571
76572 2000-07-03  Jim Meyering  <meyering@lucent.com>
76573
76574         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76575
76576 2000-07-03  Jim Meyering  <meyering@lucent.com>
76577
76578         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76579         This is necessary to get a definition of e.g., UTMP_FILE on
76580         HP-UX 10.20.
76581         From Bob Proulx.
76582
76583 2000-07-02  Jim Meyering  <meyering@lucent.com>
76584
76585         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76586
76587         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76588         AC_LIBOBJ(function_name).
76589         * m4/chown.m4: Likewise.
76590         * m4/fnmatch.m4: Likewise.
76591         * m4/ftruncate.m4: Likewise.
76592         * m4/getgroups.m4: Likewise.
76593         * m4/getline.m4: Likewise.
76594         * m4/group-member.m4: Likewise.
76595         * m4/jm-macros.m4: Likewise.
76596         * m4/lstat.m4: Likewise.
76597         * m4/malloc.m4: Likewise.
76598         * m4/memcmp.m4: Likewise.
76599         * m4/nanosleep.m4: Likewise.
76600         * m4/putenv.m4: Likewise.
76601         * m4/realloc.m4: Likewise.
76602         * m4/regex.m4: Likewise.
76603         * m4/stat.m4: Likewise.
76604         * m4/strftime.m4: Likewise.
76605
76606 2000-07-02  Jim Meyering  <meyering@lucent.com>
76607
76608         * lib/quotearg.c (mbstate_t): Don't define here.
76609
76610 2000-07-02  Jim Meyering  <meyering@lucent.com>
76611
76612         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76613
76614 2000-07-01  Jim Meyering  <meyering@lucent.com>
76615
76616         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76617
76618 2000-07-01  Jim Meyering  <meyering@lucent.com>
76619
76620         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76621         problem.
76622
76623 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76624
76625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76626         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76627
76628 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76629
76630         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76631         per change in ../m4/ls-mntd-fs.m4.
76632         (read_filesystem_list): Ignore symbolic links.
76633
76634 2000-06-29  Jim Meyering  <meyering@lucent.com>
76635
76636         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76637         for declaration of strcmp.
76638
76639         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76640
76641         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76642         Avoid warning by casting result to `char *' to remove `const'.
76643
76644 2000-06-28  Jim Meyering  <meyering@lucent.com>
76645
76646         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76647         included by quotearg.c, for which we perform this test.  From
76648         Bruno Haible.
76649
76650 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76651
76652         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76653         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76654         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76655
76656 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76657
76658         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76659
76660 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76661
76662         savedir now sets errno on failure and invokes xmalloc to get memory.
76663         Fix a couple of other minor bugs while we're at it.
76664
76665         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76666         (NAMLEN): Remove macro.
76667         (malloc, realloc): Remove decls.
76668         (stpcpy): Likewise.
76669         ("xalloc.h"): Include.
76670         (NAME_SIZE_DEFAULT): New macro.
76671         (savedir): Use xmalloc / xrealloc to allocate memory.
76672         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76673         Skip "" directory entries.
76674         Use strlen to calculate directory entry length, since the old method
76675         is rarely used these days and isn't worth supporting.
76676         Don't use a pointer after freeing it.
76677         Check for integer overflow when calculating allocation size.
76678         Use memcpy to copy entries, instead of stpcpy.
76679         Set errno properly when returning NULL.
76680         Check for readdir error.
76681
76682 2000-06-26  Jim Meyering  <meyering@lucent.com>
76683
76684         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76685
76686 2000-06-25  Jim Meyering  <meyering@lucent.com>
76687
76688         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76689         Linux header bug when _XOPEN_SOURCE is defined to 500.
76690
76691 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76692
76693         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76694         deficiency.
76695
76696 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76697
76698         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76699         Include xalloc.h.
76700         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76701
76702 2000-06-24  Jim Meyering  <meyering@lucent.com>
76703
76704         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76705         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76706         for which strerror does return char*, but which lacks a conveniently
76707         accessible declaration of the function.  If the compile-test says
76708         strerror_r doesn't work, then resort to a `run'-test that works on
76709         BeOS and segfaults on DEC Unix.
76710
76711 2000-06-24  Jim Meyering  <meyering@lucent.com>
76712
76713         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76714
76715 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76716
76717         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76718         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76719
76720 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76721
76722         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76723         (mbrtowc, mbstate_t): Define substitutes if
76724         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76725         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76726         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76727
76728 2000-06-23  Jim Meyering  <meyering@lucent.com>
76729
76730         * m4/afs.m4: Add missing AC_MSG_RESULT.
76731         Reported by Bruno Haible.
76732
76733         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76734         Suggestion from Bruno Haible.
76735
76736 2000-06-23  Jim Meyering  <meyering@lucent.com>
76737
76738         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76739
76740 2000-06-21  Jim Meyering  <meyering@lucent.com>
76741
76742         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76743
76744 2000-06-21  Jim Meyering  <meyering@lucent.com>
76745
76746         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76747         (noinst_HEADERS): Add getstr.h.
76748
76749         * lib/getline.c (getstr): Move into a separate file.
76750         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76751         the following changes: new parameter, delim2; both delim[12]
76752         parameters have type `int', not `char'.  The latter would lose
76753         with 8-bit delimiters.
76754         * lib/getstr.h: New file.
76755
76756 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76757
76758         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76759         than 1024, return a memory chunk of least possible size, instead
76760         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76761         Use free/xmalloc instead of xrealloc to avoid copying for very long
76762         paths.
76763
76764 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76765
76766         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76767         the empty string.
76768
76769 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76770
76771         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76772         address, not strdup.  Include <stdlib.h> and don't declare free().
76773
76774 2000-06-19  Jim Meyering  <meyering@lucent.com>
76775
76776         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76777
76778 2000-06-18  Jim Meyering  <meyering@lucent.com>
76779
76780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76781
76782         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76783         `checking whether...' message to be consistent with that of the
76784         lstat test.
76785
76786 2000-06-18  Jim Meyering  <meyering@lucent.com>
76787
76788         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76789         Besides, these days every porting target provides a mkdir function.
76790
76791         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76792         needed. (this snippet comes from src/system.h).
76793
76794 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76795
76796         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76797
76798 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76799
76800         * lib/human.c (adjust_value): New function.
76801         (human_readable_inexact): Apply rounding style even when
76802         printing approximate values.
76803
76804 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76805
76806         * lib/human.c (human_readable_inexact): Allow an input block
76807         size that is not a multiple of the output block size, and vice versa.
76808         Reported by Piergiorgio Sartor.
76809
76810 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76811
76812         * lib/getdate.y (get_date): Apply relative times after time
76813         zone indicator, not before.  Reported by Todd A. Jacobs.
76814
76815 2000-06-13  Jim Meyering  <meyering@lucent.com>
76816
76817         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76818
76819         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76820
76821 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76822
76823         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76824
76825 2000-06-12  Jim Meyering  <meyering@lucent.com>
76826
76827         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76828         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76829         optional argument.
76830         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76831         the optional argument, `lib'.
76832
76833 2000-06-08  Jim Meyering  <meyering@lucent.com>
76834
76835         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76836
76837 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76838
76839         Rewrite largefile configuration so that we don't need to run
76840         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76841         AC_CANONICAL_HOST in configure.in -- jmm]
76842
76843         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76844         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76845         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76846         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76847         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76848         All uses changed.
76849         Instead of inspecting the output of getconf, try to compile the
76850         test program without and with the macro definition.
76851         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76852         for getconf.  Instead, check for the needed flags by compiling
76853         test programs.
76854
76855 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76856
76857         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76858
76859 2000-06-04  Jim Meyering  <meyering@lucent.com>
76860
76861         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76862         SunOS 4.1.4 for which gid_t is an unsigned type.
76863
76864 2000-06-03  Jim Meyering  <meyering@lucent.com>
76865
76866         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76867         now that autoconf requires that.
76868
76869         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76870         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76871         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76872
76873 2000-06-03  Jim Meyering  <meyering@lucent.com>
76874
76875         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76876
76877 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76878
76879         * m4/glibc21.m4: New file.
76880         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76881
76882 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76883
76884         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76885         newer, don't install charset.alias.
76886         * lib/config.charset: Change the Linux/glibc rules so they become empty
76887         on glibc-2.1 or newer.
76888
76889 2000-06-02  Jim Meyering  <meyering@lucent.com>
76890
76891         * lib/mountlist.c: Back out last change.  Instead, do this...
76892         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76893         me_dummy member using the same `ignore'-testing code.
76894         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76895         fs_type strings.
76896         From Mark D. Roth.
76897
76898 2000-05-29  Jim Meyering  <meyering@lucent.com>
76899
76900         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76901         mounts with the `ignore' attribute.  Based on a patch from
76902         Mark D. Roth.
76903
76904 2000-05-28  Jim Meyering  <meyering@lucent.com>
76905
76906         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76907         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76908         * m4/stat.m4: Likewise.
76909         * m4/lstat.m4: Likewise.
76910         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76911
76912         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76913         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76914
76915 2000-05-26  Jim Meyering  <meyering@lucent.com>
76916
76917         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76918
76919 2000-05-24  Jim Meyering  <meyering@lucent.com>
76920
76921         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76922         autoconf requires that.
76923         * m4/lib-check.m4: Likewise.
76924         * m4/jm-macros.m4: Likewise.
76925         * m4/strftime.m4: Likewise.
76926
76927         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76928         AC_CHECK_DECLS, now that autoconf requires that.
76929
76930 2000-05-22  Jim Meyering  <meyering@lucent.com>
76931
76932         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76933         * m4/lstat.m4: Likewise.
76934
76935 2000-05-22  Jim Meyering  <meyering@lucent.com>
76936
76937         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76938
76939 2000-05-20  Jim Meyering  <meyering@lucent.com>
76940
76941         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76942         (jm_PREREQ): Use it.
76943
76944 2000-05-18  Jim Meyering  <meyering@lucent.com>
76945
76946         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76947         back, too, since it may have been modified by allocate_entry.
76948         (hash_delete): Rewrite to use neither the assignment operator
76949         nor the comma operator in an if-expression.
76950
76951 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76952
76953         * lib/closeout.c:
76954         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76955         Remove; no longer needed.
76956         "quotearg.h": Add include.
76957         (file_name): Do not bother to explicitly initialize to NULL; it's less
76958         efficient on some hosts.
76959         (close_stdout_status): Remove test as to whether stdout was already
76960         closed; it breaks for the case "echo x | sort >&-".
76961         Quote file name colons.
76962         Do not assume that _("write error") lacks format strings.
76963
76964 2000-05-15  Jim Meyering  <meyering@lucent.com>
76965
76966         * lib/version-etc.c (version_etc_copyright): Update the copyright
76967         string used in all --version output.
76968
76969 2000-05-14  Jim Meyering  <meyering@lucent.com>
76970
76971         * lib/closeout.c (close_stdout_set_file_name): New function.
76972         (close_stdout_status): Use new file-scoped global.
76973         Return right away if fstat says the stdout file descriptor is invalid.
76974         * lib/closeout.h (close_stdout_set_file_name): Declare.
76975
76976 2000-05-10  Jim Meyering  <meyering@lucent.com>
76977
76978         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76979         (close_stdout_set_status): New function.
76980         * lib/closeout.h (close_stdout_set_status): Declare.
76981
76982 2000-05-09  Jim Meyering  <meyering@lucent.com>
76983
76984         * m4/gettext.m4: Rename this...
76985         * m4/libintl.m4: ...to this.
76986
76987 2000-05-08  Jim Meyering  <meyering@lucent.com>
76988
76989         * lib/long-options.c: Don't include closeout.h.
76990         (parse_long_options): Don't call close_stdout for --version.
76991
76992 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76993
76994         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76995         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76996         2.1.3 bug.  This avoids a clash when files like regex.c define
76997         _GNU_SOURCE.
76998
76999 2000-05-06  Jim Meyering  <meyering@lucent.com>
77000
77001         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77002         (AC_REPLACE_FUNCS): Add strnlen.
77003
77004         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77005         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77006
77007         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77008         AC_SEARCH_LIBS call for nanosleep.
77009         (LIB_NANOSLEEP): Set and AC_SUBST.
77010
77011 2000-05-06  Jim Meyering  <meyering@lucent.com>
77012
77013         * lib/strnlen.c: Undefine __strnlen and strnlen.
77014         [!weak_alias]: Define __strnlen to strnlen.
77015
77016         * lib/atexit.c: New file, from libiberty.
77017
77018 2000-05-06  Jim Meyering  <meyering@lucent.com>
77019
77020         * lib/closeout.c (close_stdout_status): Also check for errors on the
77021         stderr stream.
77022
77023 2000-05-05  Jim Meyering  <meyering@lucent.com>
77024
77025         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77026         AC_SEARCH_LIBS call for clock_gettime.
77027         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77028
77029         * m4/search-libs.m4: Update from autoconf.
77030
77031         su doesn't work on Solaris 2.6.
77032         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77033         <shadow.h>.  Reported by Dragos Harabor.
77034
77035 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77036
77037         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77038         memcpy instead of xmalloc, xrealloc, path_concat.
77039         (locale_charset): Treat empty environment variables as absent.
77040         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77041
77042 2000-05-04  Jim Meyering  <meyering@lucent.com>
77043
77044         * lib/getopt.c: Update from glibc.
77045         * lib/obstack.c: Likewise.
77046         * lib/obstack.h: Likewise.
77047         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77048         file
77049
77050         * lib/regex.h: Likewise.
77051         * lib/strndup.c: Likewise.
77052         * lib/strnlen.c: New file, from glibc.
77053
77054 2000-05-03  Jim Meyering  <meyering@lucent.com>
77055
77056         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77057
77058 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77059
77060         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77061         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77062         compile-time test, rather than inspecting host and OS, to
77063         decide whether to define _LARGEFILE_SOURCE.
77064
77065 2000-05-01  Jim Meyering  <meyering@lucent.com>
77066
77067         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77068
77069         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77070         Based on a patch from Bruno Haible.
77071
77072 2000-05-01  Jim Meyering  <meyering@lucent.com>
77073
77074         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77075
77076 2000-04-29  Jim Meyering  <meyering@lucent.com>
77077
77078         * lib/path-concat.c: Declare strdup only if it's not defined.
77079         * lib/canon-host.c: Likewise.
77080
77081 2000-04-28  Jim Meyering  <meyering@lucent.com>
77082
77083         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77084         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77085         is included first, then limits.h is included by locale.h by libintl.h.
77086         From John David Anglin.
77087
77088 2000-04-25  Jim Meyering  <meyering@lucent.com>
77089
77090         * lib/makepath.c (S_IRWXUGO): Define.
77091         (make_path): Always perform explicit chmod if MODE specifies any
77092         of the `special' permission bits.  Prompted by a bug report against
77093         install from Mate Wierdl and Joost van Baal.
77094
77095 2000-04-18  Jim Meyering  <meyering@lucent.com>
77096
77097         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77098         (jm_PREREQ): Use it.
77099
77100 2000-04-18  Jim Meyering  <meyering@lucent.com>
77101
77102         * lib/README: New file.
77103
77104         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77105         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77106
77107 2000-04-17  Jim Meyering  <meyering@lucent.com>
77108
77109         Get it right :-)
77110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77111         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77112         Suggestion from Akim Demaille.
77113
77114 2000-04-17  Jim Meyering  <meyering@lucent.com>
77115
77116         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77117         the definition of it to rpl_strftime also defined-away the system's
77118         declaration.
77119
77120 2000-04-15  Jim Meyering  <meyering@lucent.com>
77121
77122         Use `C' to denote so-called `contiguous' files, the same way
77123         that tar does.
77124         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77125         (ftypelet): Use S_ISCTG.
77126         From Michael Deutschmann.
77127
77128 2000-04-14  Jim Meyering  <meyering@lucent.com>
77129
77130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77131         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77132         clobbered.
77133
77134 2000-04-14  Jim Meyering  <meyering@lucent.com>
77135
77136         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77137
77138 2000-04-13  Jim Meyering  <meyering@lucent.com>
77139
77140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77141         AH_VERBATIM to insert required #ifndef into config.h.in.
77142         Suggestion from Akim Demaille.
77143
77144 2000-04-12  Jim Meyering  <meyering@lucent.com>
77145
77146         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77147         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77148         Christian Krackowizer.
77149
77150         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77151         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77152         (AC_SYS_LARGEFILE): Require.
77153         (AM_C_PROTOTYPES): Require.
77154
77155 2000-04-08  Jim Meyering  <meyering@lucent.com>
77156
77157         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77158         names don't conflict.  Reported by Eli Zaretskii.
77159
77160 2000-04-07  Jim Meyering  <meyering@lucent.com>
77161
77162         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77163         sys/types.h, to work around system header problems on AIX 3.2.5.
77164         From Bruno Haible.
77165
77166 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77167
77168         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77169         bug.  Deal with the different error behavior of Irix iconv.
77170
77171 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77172
77173         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77174         IRIX if the installer said otherwise.
77175
77176 2000-04-05  Jim Meyering  <meyering@lucent.com>
77177
77178         Portability tweaks required for ultrix4.3.
77179         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77180         (jm_CHECK_DECLS): Add getutent to the list of functions.
77181         (_jm_DECL_HEADERS): Add utmpx.h.
77182         From John David Anglin.
77183
77184         * m4/strftime.m4: Back out the 2000-04-02 change.
77185         Instead of that change, simply undefine putenv in the test program.
77186
77187 2000-04-05  Jim Meyering  <meyering@lucent.com>
77188
77189         Portability tweaks required for ultrix4.3.
77190         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77191         getutent.
77192         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77193         * lib/canon-host.c: Declare strdup.
77194         * lib/path-concat.c: Likewise.
77195         From John David Anglin.
77196
77197 2000-04-04  Jim Meyering  <meyering@lucent.com>
77198
77199         Be more DOS 8.3-friendly.
77200         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77201         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77202         * lib/Makefile.am: Reflect renaming.
77203         Reported by Eli Zaretskii.
77204
77205         Use a temporary file name that won't clash with `charset.alias'
77206         in the DOS 8.3 name space.
77207         * lib/Makefile.am (charset_tmp): Define.
77208         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77209         (uninstall-local): Likewise.
77210         Reported by Eli Zaretskii.
77211
77212 2000-04-03  Jim Meyering  <meyering@lucent.com>
77213
77214         * m4/gettext.m4: Fix typo in comment.
77215
77216         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77217         textutils/configure.in).  Suggestion from Paul Eggert.
77218         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77219
77220 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77221
77222         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77223         variable in the shell rather than using putenv, which isn't
77224         portable.  This avoids the configure-time inter-test dependency
77225         on the potentially-renamed putenv function.
77226
77227 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77228
77229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77230         before checking struct stat.st_blksize, so that
77231         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77232
77233 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77234
77235         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77236         since strftime.c uses HAVE_STRFTIME to decide whether to use
77237         the underlying strftime.
77238
77239 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77240
77241         * lib/time/strftime.c (my_strftime): Make sure we call the system
77242         strftime, not ourselves, when invoking the underlying strftime.
77243
77244 2000-03-24  Jim Meyering  <meyering@lucent.com>
77245
77246         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77247         (charset_alias): Define.
77248         (install-exec-local): Factor out common code.
77249         (uninstall-local): Split lines longer than 80.
77250         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77251         (SUFFIXES): Define.
77252         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77253         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77254
77255 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77256
77257         * lib/config.charset: Output a line containing "Packages using this
77258         file".
77259         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77260         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77261         ref-del.sed): New rules.
77262
77263 2000-03-17  Jim Meyering  <meyering@lucent.com>
77264
77265         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77266         Otherwise, include <strings.h>
77267
77268 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77269
77270         * lib/unicodeio.c (utf8_wctomb): New function.
77271         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77272         format instead of in UCS-4 with platform dependent endianness.
77273
77274 2000-03-10  Jim Meyering  <meyering@lucent.com>
77275
77276         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77277         From Marco Franzen.
77278
77279 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77280
77281         * lib/savedir.c (savedir): Work even if directory size is
77282         negative; this can happen with some screwy NFS configurations.
77283
77284 2000-03-06  Jim Meyering  <meyering@lucent.com>
77285
77286         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77287         if it's NULL (because we ran out of memory).  From Bruno Haible.
77288
77289 2000-03-05  Jim Meyering  <meyering@lucent.com>
77290
77291         * lib/localcharset.c ("path-concat.h"): Include.
77292         (get_charset_aliases): Use path_concat instead of ANSI string
77293         concatenation.
77294
77295         * lib/unicodeio.h (PARAMS): Define.
77296         Use it to guard prototype.
77297
77298 2000-03-04  Jim Meyering  <meyering@lucent.com>
77299
77300         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77301         for lib/localcharset.c.
77302
77303 2000-03-04  Jim Meyering  <meyering@lucent.com>
77304
77305         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77306         installing into it.
77307         (uninstall-local): Uncomment this rule so `make distcheck' works
77308         once again.
77309
77310         * lib/unicodeio.c (<errno.h>): Include it.
77311         (errno): Declare if not defined.
77312
77313         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77314
77315         * lib/config.charset: New version, incorporating remarks from a linux
77316         i18n mailing list.  From Bruno Haible.
77317
77318 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77319
77320         * m4/codeset.m4: New file.
77321         * m4/iconv.m4: New file.
77322         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77323
77324 2000-03-03  Jim Meyering  <meyering@lucent.com>
77325
77326         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77327
77328 2000-03-02  Jim Meyering  <meyering@lucent.com>
77329
77330         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77331         the messages come out on separate lines.
77332
77333         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77334         rather than jm_CHECK_DECLARATIONS.
77335         * m4/decl.m4: Remove now-unused file.
77336
77337         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77338         geteuid.
77339
77340 2000-03-02  Jim Meyering  <meyering@lucent.com>
77341
77342         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77343
77344 2000-03-01  Jim Meyering  <meyering@lucent.com>
77345
77346         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77347         * lib/unicodeio.c: Likewise.
77348
77349 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77350
77351         * lib/config.charset: New file.
77352         * lib/localcharset.c: New file.
77353         * lib/unicodeio.h, lib/unicodeio.c: New files.
77354         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77355         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77356         (noinst_HEADERS): Add unicodeio.h.
77357         (all-local, install-exec-local, charset.alias): New targets.
77358
77359 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77360
77361         * lib/quotearg.c (ALERT_CHAR): New macro.
77362         (quotearg_buffer_restyled): Use it.
77363
77364 2000-02-27  Jim Meyering  <meyering@lucent.com>
77365
77366         * m4/check-decl.m4: Add getenv to the list.
77367
77368 2000-02-27  Jim Meyering  <meyering@lucent.com>
77369
77370         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77371         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77372
77373         * lib/backupfile.c: Guard inclusion of stdlib.h with
77374         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77375         Declare malloc if needed.
77376
77377         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77378         `#ifndef HAVE_DECL..'
77379         now that autoconf always defines the HAVE_DECL_ symbols.
77380         * lib/human.c: Likewise.
77381         * lib/same.c: Likewise.
77382         * lib/strtoumax.c: Likewise.
77383
77384         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77385         declaration check was not run.
77386         * lib/hash.c: Likewise.
77387         * lib/human.c: Likewise.
77388         * lib/same.c: Likewise.
77389         * lib/strtoumax.c: Likewise.
77390
77391         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77392         `.', then first look up the entire `.'-containing string as a login
77393         name.
77394
77395 2000-02-23  Jim Meyering  <meyering@lucent.com>
77396
77397         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77398         in place of my hack.
77399
77400 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77401
77402         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77403         (textint): New typedef.
77404         (parser_control): Member year changed from int to textint.
77405         All uses changed.
77406         (YYSTYPE): Removed; replaced by %union with int and textint members.
77407         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77408         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77409         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77410         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77411         (date, number, to_year): Use width of number in digits, not its value,
77412         to determine whether it's a 2-digit year, or a 2-digit time.
77413         (yylex): Store number of digits of numeric tokens.
77414         Reported by John Kendall.
77415
77416         (parser_control): Changed from struct parser_control to typedef (for
77417         consistency).  All uses changed.
77418
77419         (tID): Removed; not used.
77420         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77421
77422 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77423
77424         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77425         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77426
77427 2000-02-12  Jim Meyering  <meyering@lucent.com>
77428
77429         * lib/userspec.c (ISDIGIT): Define it.
77430         (isdigit): Remove definition.
77431         (is_number): Use ISDIGIT, not isdigit.
77432         <libintl.h>: Include.
77433         (_ and N_): Define.
77434         (parse_user_spec): Mark translatable strings.
77435
77436 2000-02-10  Jim Meyering  <meyering@lucent.com>
77437
77438         With these changes, nanosleep.[ch] are finally enough like the other
77439         lib/* replacement files to compile on a few more losing systems.
77440
77441         * lib/nanosleep.h: Don't include config.h.
77442         Remove prototype from declaration of nanosleep.
77443         (PARAMS): Remove now-unneeded definition.
77444         * lib/nanosleep.c: #undef nanosleep.
77445         (rpl_nanosleep): Rename from nanosleep.
77446
77447 2000-02-10  Jim Meyering  <meyering@lucent.com>
77448
77449         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77450         gnu_nanosleep to rpl_nanosleep.
77451
77452 2000-02-09  Jim Meyering  <meyering@lucent.com>
77453
77454         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77455         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77456
77457 2000-02-08  Akim Demaille  <akim@epita.fr>
77458
77459         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77460         `[' and `]' and remove uses of `changequote'.
77461         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77462         (AC_SYS_LARGEFILE): Likewise.
77463         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77464         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77465         of changequote.
77466         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77467         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77468         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77469         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77470
77471 2000-02-05  Jim Meyering  <meyering@lucent.com>
77472
77473         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77474         Remove explicit use of AC_HEADER_TIME.  It is required by
77475         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77476         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77477         in autoconf whereby the expansion of the latter ended up preceding
77478         the expansion of its prerequisite, AC_HEADER_TIME.
77479         Reported by Volker Borchert.
77480
77481 2000-02-03  Jim Meyering  <meyering@lucent.com>
77482
77483         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77484
77485 2000-02-03  Jim Meyering  <meyering@lucent.com>
77486
77487         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77488         rather than with `#if HAVE_UTMPNAME'.
77489
77490 2000-02-02  Jim Meyering  <meyering@lucent.com>
77491
77492         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77493         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77494         Reported by Eli Zaretskii.
77495
77496 2000-02-01  Jim Meyering  <meyering@lucent.com>
77497
77498         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77499
77500 2000-01-31  Jim Meyering  <meyering@lucent.com>
77501
77502         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77503         functions.  Add the time.h and sys/time.h headers along with the
77504         AC_REQUIRE'ment of AC_HEADER_TIME.
77505
77506 2000-01-31  Jim Meyering  <meyering@lucent.com>
77507
77508         * lib/nanosleep.h (nanosleep): Guard declaration with
77509         `#if ! HAVE_DECL_NANOSLEEP'.
77510         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77511         the declaration in that vendor's sys/timers.h.
77512         Reported by Christian Krackowizer.
77513
77514         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77515         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77516         (ISPRINT): Likewise.
77517         Reported by Tom Tromey.
77518
77519 2000-01-30  Jim Meyering  <meyering@lucent.com>
77520
77521         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77522
77523         * m4/prereq.m4 (utmp_includes): Define.
77524         Check for ut_user and ut_name members in both struct utmpx
77525         and struct utmp.
77526
77527 2000-01-30  Jim Meyering  <meyering@lucent.com>
77528
77529         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77530         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77531         header files where only utmpx.ut_user is declared.
77532
77533         * lib/readutmp.h (UT_USER): Define.
77534
77535 2000-01-29  Jim Meyering  <meyering@lucent.com>
77536
77537         * m4/lib-check.m4: New file containing library-related checks from
77538         fileutils and sh-utils (textutils had none).
77539
77540 2000-01-28  Jim Meyering  <meyering@lucent.com>
77541
77542         * m4/perl.m4: Change format of warning message to look more like that
77543         from the missing script.  Suggestion from François Pinard.
77544
77545 2000-01-25  Jim Meyering  <meyering@lucent.com>
77546
77547         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77548         well as time.h in the compile check.
77549         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77550         Fix typo in cross-compiling case: s/yes/no/.
77551
77552 2000-01-23  Jim Meyering  <meyering@lucent.com>
77553
77554         * m4/jm-macros.m4: Move df-related tests here from
77555         fileutils/configure.in
77556
77557         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77558         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77559
77560         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77561         s/space/ac_fsusage_space/.
77562         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77563
77564         * m4/ftruncate.m4: New file (derived from part of
77565         fileutils/configure.in).
77566         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77567         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77568
77569         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77570         AC_SUBST these here, rather than just in sh-util/configure.in, so
77571         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77572         all the same.
77573         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77574         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77575         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77576         (AC_SUBST(POW_LIBM)): Likewise.
77577         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77578
77579 2000-01-23  Jim Meyering  <meyering@lucent.com>
77580
77581         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77582         obstack.c.
77583
77584 2000-01-22  Jim Meyering  <meyering@lucent.com>
77585
77586         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77587
77588         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77589
77590         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77591         configure.in
77592         (AC_CHECK_HEADERS): Likewise for sh-utils.
77593         (AC_CHECK_HEADERS): Likewise for textutils.
77594         Merge the three lists of headers.
77595
77596         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77597         from fileutils' configure.in.
77598
77599         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77600         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77601         check-decl.m4.
77602
77603         * m4/check-decl.m4: Use #if rather than #ifdef.
77604         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77605         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77606         (_jm_DECL_HEADERS): Define new function.
77607         (jm_CHECK_DECLARATIONS): Require it.
77608
77609 2000-01-22  Jim Meyering  <meyering@lucent.com>
77610
77611         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77612         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77613         Required for some AIX systems.  Reported by Christian Krackowizer.
77614         [TESTING] (main): New function.
77615
77616         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77617         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77618         letters.
77619
77620         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77621         iswprint.
77622
77623         * lib/strverscmp.c (ISDIGIT): Define.
77624         (strverscmp): Use ISDIGIT, not isdigit.
77625
77626 2000-01-19  Jim Meyering  <meyering@lucent.com>
77627
77628         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77629         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77630         defines `struct timespec' in <sys/time.h>
77631
77632         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77633         Thanks to Akim for explaining.
77634
77635 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77636
77637         * lib/nanosleep.c (nanosleep):
77638         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77639         POSIX.1 doesn't require SA_INTERRUPT and some systems
77640         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77641         it's been part of POSIX.1 since day 1 (in 1988).
77642
77643 2000-01-17  Jim Meyering  <meyering@lucent.com>
77644
77645         * lib/interlock: Remove unused file.  Reported by François Pinard.
77646
77647 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77648
77649         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77650         alert, backslash, formfeed, and vertical tab unnecessarily in
77651         shell quoting style.
77652
77653 2000-01-16  Jim Meyering  <meyering@lucent.com>
77654
77655         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77656         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77657         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77658         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77659
77660 2000-01-16  Jim Meyering  <meyering@lucent.com>
77661
77662         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77663         because the latter didn't work.
77664
77665 2000-01-15  Jim Meyering  <meyering@lucent.com>
77666
77667         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77668         (AC_REPLACE_FUNCS): Add memcpy and memset.
77669         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77670         Add strpbrk.
77671         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77672
77673 2000-01-12  Jim Meyering  <meyering@lucent.com>
77674
77675         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77676         (jm_PREREQ): Use it.
77677         (jm_PREREQ_READUTMP): New macro.
77678         (jm_PREREQ): Use it.
77679
77680 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77681
77682         Quote multibyte characters correctly.
77683         * m4/c-bs-a.m4: New file.
77684         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77685         (jm_PREREQ): Use it.
77686
77687 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77688
77689         * m4/uintmax_t.m4: Port to autoconf 2.13.
77690
77691 2000-01-08  Jim Meyering  <meyering@ascend.com>
77692
77693         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77694         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77695
77696 2000-01-04  Jim Meyering  <meyering@ascend.com>
77697
77698         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77699         jm_STRUCT_DIRENT_D_TYPE.
77700         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77701         jm_STRUCT_DIRENT_D_INO.
77702         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77703         jm_STRUCT_UTIMBUF.
77704         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77705         renamings.
77706         * m4/utime.m4: Likewise.
77707
77708         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77709         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77710
77711 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77712
77713         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77714         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77715
77716 2000-01-02  Jim Meyering  <meyering@ascend.com>
77717
77718         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77719         remember if this is necessary.
77720
77721 1999-12-26  Jim Meyering  <meyering@ascend.com>
77722
77723         * m4/jm-macros.m4: Use it here.
77724         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77725
77726 1999-12-23  Jim Meyering  <meyering@ascend.com>
77727
77728         * m4/jm-macros.m4: Check for clock_gettime (moved from
77729         fileutils/configure.in)
77730         Check for gettimeofday.
77731
77732 1999-12-20  Jim Meyering  <meyering@ascend.com>
77733
77734         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77735         autoconf-2.14a-1999-12-20.
77736
77737 1999-12-19  Jim Meyering  <meyering@ascend.com>
77738
77739         * m4/lstat-slash.m4: New file.
77740         * m4/jm-macros.m4: Use the new macro:
77741         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77742
77743 1999-12-07  Jim Meyering  <meyering@ascend.com>
77744
77745         * m4/perl.m4: Require that File::Compare be available, too.
77746         Too many systems seem to lack it.
77747
77748         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77749         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77750
77751 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77752
77753         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77754         problem with the QNX 4.25 shell, which doesn't propagate exit
77755         status of failed commands inside shell assignments.
77756
77757 1999-11-17  Jim Meyering  <meyering@ascend.com>
77758
77759         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77760
77761 1999-11-07  Jim Meyering  <meyering@ascend.com>
77762
77763         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77764
77765 1999-11-06  Jim Meyering  <meyering@ascend.com>
77766
77767         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77768         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77769
77770 1999-11-05  Jim Meyering  <meyering@ascend.com>
77771
77772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77773         configure.in of textutils, fileutils, and sh-utils into this one
77774         (shared between those packages) file.
77775         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77776         AC_STRUCT_ST_BLKSIZE.
77777
77778 1999-11-03  Jim Meyering  <meyering@ascend.com>
77779
77780         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77781         of AC_CHECK_TYPE checks includes unistd.h.
77782         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77783         Suggestion from Akim Demaille.
77784
77785 1999-10-30  Jim Meyering  <meyering@ascend.com>
77786
77787         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77788         m4-quoted string.
77789         * m4/ls-mntd-fs.m4: Likewise.
77790         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77791         * m4/jm-winsz1.m4: Likewise.
77792
77793         * m4/const.m4: Remove file, since the fix made it into the experimental
77794         version of autoconf.
77795         * m4/mktime.m4: Likewise.
77796
77797         * m4/check-type.m4: Remove file, now that the latest version of
77798         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77799
77800         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77801         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77802         AC_CHECK_TYPE.
77803
77804 1999-10-04  Jim Meyering  <meyering@ascend.com>
77805
77806         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77807
77808 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77809
77810         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77811         2.95.1 bug with HP-UX 10.20.
77812
77813 1999-09-17  Jim Meyering  <meyering@ascend.com>
77814
77815         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77816         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77817         due to missing strdup (against sh-utils-2.0).
77818
77819 1999-08-29  Jim Meyering  <meyering@ascend.com>
77820
77821         * m4/jm-macros.m4: Require jm_BISON.
77822         * m4/bison.m4: New file.
77823
77824 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77825
77826         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77827         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77828
77829 1999-08-05  Jim Meyering  <meyering@ascend.com>
77830
77831         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77832         to avoid conflicts with `conftest' on 8+3 filesystems.
77833         Suggestion from Eli Zaretskii.
77834
77835 1999-08-04  Jim Meyering  <meyering@ascend.com>
77836
77837         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77838         fileutils and sh-utils (textutils's getline test was inadequate).
77839         (AM_FUNC_GETLINE): Run this test.
77840         (AC_CHECK_FUNCS): Check for getdelim.
77841         Reported by Bob Proulx.
77842
77843 1999-08-02  Jim Meyering  <meyering@ascend.com>
77844
77845         * m4/jm-macros.m4: Add a comment.
77846
77847 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77848
77849         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77850         <inttypes.h> defines strtoumax as a macro (and not as a
77851         function).
77852
77853 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77854
77855         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77856         that we can shift, multiply and divide unsigned long long
77857         values; Ultrix cc can't do it.
77858
77859 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77860
77861         * m4/mktime.m4: New file, which is a preview of what should appear
77862         in the next public autoconf release.
77863
77864 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77865
77866         * m4/lfs.m4: Remove this file.
77867         * m4/largefile.m4: New file.  It contains the old contents of
77868         lfs.m4, except that all names with prefix AC_LFS have been
77869         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77870         compatible with future autoconf versions.  Also, some minor m4
77871         quoting problems have been fixed.
77872
77873 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77874
77875         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77876         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77877         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77878         and simplify the shell code.
77879
77880 1999-08-01  Jim Meyering  <meyering@ascend.com>
77881
77882         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77883         m4.
77884
77885 1999-07-20  Jim Meyering  <meyering@ascend.com>
77886
77887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77888
77889 1999-07-15  Jim Meyering  <meyering@ascend.com>
77890
77891         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77892
77893 1999-05-22  Jim Meyering  <meyering@ascend.com>
77894
77895         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77896
77897 1999-05-20  Jim Meyering  <meyering@ascend.com>
77898
77899         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77900         Add a colon after each `then' in case $4 is empty.
77901
77902 1999-05-16  Jim Meyering  <meyering@ascend.com>
77903
77904         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77905
77906 1999-05-10  Jim Meyering  <meyering@ascend.com>
77907
77908         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77909
77910         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77911         AC_FUNC_MKTIME.
77912
77913 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77914
77915         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77916
77917 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77918
77919         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77920         not CPPFLAGS, so that linking works correctly in IRIX.
77921
77922 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77923
77924         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77925
77926 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77927
77928         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77929         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77931         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77932         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77933
77934         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77935
77936 1999-04-20  Jim Meyering  <meyering@ascend.com>
77937
77938         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77939         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77940         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77941
77942 1999-04-18  Jim Meyering  <meyering@ascend.com>
77943
77944         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77945         * m4/jm-macros.m4: Use it.
77946
77947 1999-04-06  Jim Meyering  <meyering@ascend.com>
77948
77949         * m4/strftime.m4: Remove test for %f.
77950
77951 1999-03-29  Jim Meyering  <meyering@ascend.com>
77952
77953         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77954         superset of the AC_TYPE_* checks in the textutils, fileutils,
77955         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77956         AC_TYPE_PID_T.
77957
77958 1999-03-28  Jim Meyering  <meyering@ascend.com>
77959
77960         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77961         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77962         replaced e.g., in the *.sh files of the sh-utils.
77963
77964 1999-03-20  Jim Meyering  <meyering@ascend.com>
77965
77966         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77967         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77968         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77969
77970 1999-03-19  Jim Meyering  <meyering@ascend.com>
77971
77972         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77973
77974 1999-03-12  Jim Meyering  <meyering@ascend.com>
77975
77976         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77977
77978 1999-03-07  Jim Meyering  <meyering@ascend.com>
77979
77980         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77981         declared.
77982
77983 1999-02-17  Jim Meyering  <meyering@ascend.com>
77984
77985         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77986         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77987
77988 1999-02-07  Jim Meyering  <meyering@ascend.com>
77989
77990         * m4/group-member.m4: New file -- extracted from sh-utils'
77991         configure.in.
77992
77993         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77994         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77995
77996 1999-02-06  Jim Meyering  <meyering@ascend.com>
77997
77998         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77999         * m4/fnmatch.m4: Likewise.
78000         * m4/getgroups.m4: Likewise.
78001         * m4/lstat.m4: Likewise.
78002         * m4/malloc.m4: Likewise.
78003         * m4/putenv.m4: Likewise.
78004         * m4/realloc.m4: Likewise.
78005         * m4/regex.m4: Likewise.
78006         * m4/stat.m4: Likewise.
78007         * m4/strftime.m4: Likewise.
78008         Suggestion from Alain Magloire.
78009
78010         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78011         * m4/fnmatch.m4: Likewise.
78012         * m4/getgroups.m4: Likewise.
78013         * m4/getline.m4: Likewise.
78014         * m4/lstat.m4: Likewise.
78015         * m4/malloc.m4: Likewise.
78016         * m4/memcmp.m4: Likewise.
78017         * m4/putenv.m4: Likewise.
78018         * m4/realloc.m4: Likewise.
78019         * m4/regex.m4: Likewise.
78020         * m4/stat.m4: Likewise.
78021         * m4/strftime.m4: Likewise.
78022         Suggestion from Alain Magloire.
78023
78024         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78025         an argument.
78026
78027         * m4/regex.m4: Add a run-time Test for proper operation of
78028         re_compile_pattern.
78029
78030 1999-01-31  Jim Meyering  <meyering@ascend.com>
78031
78032         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78033
78034 1999-01-30  Jim Meyering  <meyering@ascend.com>
78035
78036         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78037
78038         * m4/jm-mktime.m4: Make this a wrapper around the official
78039         AM_FUNC_MKTIME rather than my private copy, now that the official one
78040         is up to date.
78041         * m4/mktime.m4: Remove file.
78042
78043         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78044         * m4/uptime.m4: Likewise.
78045         * m4/uintmax_t.m4: Likewise.
78046
78047 1999-01-28  Jim Meyering  <meyering@ascend.com>
78048
78049         * m4/jm-macros.m4: Use jm_AFS.
78050         * m4/afs.m4: New file (from fileutils' configure.in).
78051
78052         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78053         * m4/chown.m4: Likewise.
78054         * m4/d-ino.m4: Likewise.
78055         * m4/d-type.m4: Likewise.
78056         * m4/fnmatch.m4: Likewise.
78057         * m4/getgroups.m4: Likewise.
78058         * m4/gettext.m4: Likewise.
78059         * m4/jm-mktime.m4: Likewise.
78060         * m4/jm-winsz2.m4: Likewise.
78061         * m4/lcmessage.m4: Likewise.
78062         * m4/ls-mntd-fs.m4: Likewise.
78063         * m4/malloc.m4: Likewise.
78064         * m4/memcmp.m4: Likewise.
78065         * m4/putenv.m4: Likewise.
78066         * m4/realloc.m4: Likewise.
78067         * m4/st_mtim.m4: Likewise.
78068         * m4/strftime.m4: Likewise.
78069
78070 1999-01-16  Jim Meyering  <meyering@ascend.com>
78071
78072         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78073         (ARGMATCH_DIE_DECL): Define.
78074
78075 1999-01-12  Jim Meyering  <meyering@ascend.com>
78076
78077         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78078         Reported by Lars Hecking.
78079
78080 1999-01-10  Jim Meyering  <meyering@ascend.com>
78081
78082         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78083         gross kludge.
78084         * m4/inttypes_h.m4: Likewise.
78085         * m4/lstat.m4: Likewise.
78086         * m4/malloc.m4: Likewise.
78087         * m4/readdir.m4: Likewise.
78088         * m4/realloc.m4: Likewise.
78089         * m4/st_dm_mode.m4: Likewise.
78090         * m4/stat.m4: Likewise.
78091         * m4/utimbuf.m4: Likewise.
78092         * m4/utimes.m4: Likewise.
78093
78094         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78095         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78096         comments in config.h.in are meaningful.
78097
78098         * m4/jm-macros.m4: Require autoconf-2.13 here.
78099
78100         * m4/regex.m4: By default, don't use the included regex.c on systems
78101         with glibc 2.  Suggestion from Uli Drepper.
78102
78103 1999-01-02  Jim Meyering  <meyering@ascend.com>
78104
78105         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78106
78107 1998-12-18  Jim Meyering  <meyering@ascend.com>
78108
78109         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78110         Based on a suggestion from Lars Hecking.
78111
78112 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78113
78114         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78115
78116 1998-11-16  Jim Meyering  <meyering@ascend.com>
78117
78118         * m4/lfs.m4: Double-quote the `uname...` expression.
78119
78120 1998-11-14  Jim Meyering  <meyering@ascend.com>
78121
78122         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78123         * m4/stat.m4: Likewise.
78124
78125 1998-11-03  Jim Meyering  <meyering@ascend.com>
78126
78127         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78128         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78129
78130 1998-10-18  Jim Meyering  <meyering@ascend.com>
78131
78132         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78133
78134 1998-10-17  Jim Meyering  <meyering@ascend.com>
78135
78136         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78137         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78138         calls for those previously hard-coded headers.  Instead, take a new
78139         parameter.
78140         (jm_CHECK_DECLARATIONS): Reflect interface change.
78141         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78142         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78143
78144         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78145
78146 1998-10-14  Jim Meyering  <meyering@ascend.com>
78147
78148         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78149         instead of "TZ=America/Vancouver".  From Paul Eggert.
78150
78151 1998-10-11  Jim Meyering  <meyering@ascend.com>
78152
78153         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78154         This adds a test for a recently added compatibility fix for mktime.c.
78155         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78156
78157 1998-09-27  Jim Meyering  <meyering@ascend.com>
78158
78159         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78160
78161         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78162         ../configure.in, including a change from Gordon Matzigkeit to allow
78163         cross-compiling for the Hurd.
78164
78165         * m4/glibc.m4: New file/macro to test for the GNU C Library
78166         versions 1 and 2.  From Gordon Matzigkeit.
78167         Indent.
78168
78169 1998-09-21  Jim Meyering  <meyering@ascend.com>
78170
78171         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78172
78173 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78174
78175         Port nanosecond-resolution times to UnixWare 2.1.2 and
78176         pedantic Solaris 2.6.
78177
78178         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78179         AC_STRUCT_ST_MTIM.
78180         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78181         Generate name of ns member, instead of just 1 or undef.
78182         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78183
78184 1998-08-15  Jim Meyering  <meyering@ascend.com>
78185
78186         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78187         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78188         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78189         instead of jm_TYPE_SSIZE_T.
78190
78191 1998-08-12  Jim Meyering  <meyering@ascend.com>
78192
78193         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78194
78195 1998-08-02  Jim Meyering  <meyering@ascend.com>
78196
78197         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78198         in acconfig.h manually.
78199
78200 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78201
78202         * m4/st_mtim.m4: New file.
78203
78204 1998-07-28  Jim Meyering  <meyering@ascend.com>
78205
78206         * m4/utimes.m4: Undef stat.
78207
78208 1998-07-25  Jim Meyering  <meyering@ascend.com>
78209
78210         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78211         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78212
78213 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78214
78215         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78216         uid and gid actually remain unchanged.
78217
78218 1998-07-07  Jim Meyering  <meyering@ascend.com>
78219
78220         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78221
78222 1998-07-04  Jim Meyering  <meyering@ascend.com>
78223
78224         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78225         to prove that this macro can be used in packages without regex.c.
78226
78227 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78228
78229         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78230         is to be used.
78231
78232 1998-07-03  Jim Meyering  <meyering@ascend.com>
78233
78234         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78235
78236         * m4/gettext.m4: New file -- from gettext-0.10.35.
78237         * m4/lcmessage.m4: Likewise.
78238         * m4/progtest.m4: Likewise.
78239
78240         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78241         * m4/jm-macros.m4: Require the new macro.
78242
78243 1998-06-29  Jim Meyering  <meyering@ascend.com>
78244
78245         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78246         for the definition of NGROUPS (used in a system header included
78247         by sys/mount.h).
78248
78249 1998-06-28  Jim Meyering  <meyering@ascend.com>
78250
78251         * m4/ls-mntd-fs.m4: New file.
78252         * m4/fstypename.m4: New file.
78253
78254         * m4/jm-macros.m4: Require the new macro.
78255         * m4/jm-glibc-io.m4: New file.
78256
78257 1998-05-19  Jim Meyering  <meyering@ascend.com>
78258
78259         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78260         * m4/lchown.m4: New file.
78261
78262         * m4/Makefile.am.in: New file.
78263         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78264
78265 1998-05-14  Jim Meyering  <meyering@ascend.com>
78266
78267         * m4/Makefile.am (EXTRA_DIST): Add them.
78268         * m4/jm-macros.m4: New file.
78269         * m4/utimbuf.m4: New file.
78270
78271 1998-05-12  Jim Meyering  <meyering@ascend.com>
78272
78273         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78274
78275 1998-05-11  Jim Meyering  <meyering@ascend.com>
78276
78277         * m4/isc-posix.m4: New file.
78278
78279 1998-05-10  Jim Meyering  <meyering@ascend.com>
78280
78281         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78282
78283 1998-05-09  Jim Meyering  <meyering@ascend.com>
78284
78285         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78286         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78287         with automake.
78288
78289         * m4/ssize_t.m4: New file.
78290         * m4/mktime.m4: Remove file -- the new automake has this now.
78291
78292 1998-04-26  Jim Meyering  <meyering@ascend.com>
78293
78294         * m4/assert.m4: New file.
78295         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78296
78297 1998-04-05  Jim Meyering  <meyering@ascend.com>
78298
78299         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78300         (jm_PREREQ): Use it here.
78301
78302 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78303
78304         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78305         in acconfig.h.
78306
78307 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78308
78309         * m4/prereq.m4: New file.
78310         * m4/error.m4: New file.
78311         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78312
78313 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78314
78315         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78316         cache-check for the same variable -- that defeated the purpose of
78317         the test; the test program was never run.  This was a problem only
78318         on systems with losing getline functions -- HP-UX 10.20 is one.
78319         Reported by Bjorn Helgaas.
78320
78321 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78322
78323         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78324
78325 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78326
78327         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78328
78329         * m4/const.m4: New file.  Use an initializer in this declaration
78330         typedef int charset[2]; const charset x;
78331         Reported by Bob Glickstein.
78332
78333 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78334
78335         * m4/chown.m4: Fix reversed types on -1 args to chown.
78336         From Kaveh Ghazi.
78337
78338 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78339
78340         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78341         Add lseek and memchr.
78342
78343         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78344         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78345         have a 20-character limit on names.
78346
78347 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78348
78349         * m4/inttypes_h.m4: New file.
78350         * m4/uintmax_t.m4: New file.
78351         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78352
78353
78354         -----
78355
78356         Local Variables:
78357         coding: utf-8
78358         End:
78359
78360         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78361
78362         Copying and distribution of this file, with or without
78363         modification, are permitted provided the copyright notice
78364         and this notice are preserved.