248d0f399a98622715cbf688d7b1b03333c0a35b
[gnulib.git] / ChangeLog
1 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2
3         inttypes: also provide default values for 32-bit tests
4         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6
7 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8
9         strtoumax: remove dependency on strtoimax
10         This is like the strtoull change of yesterday.
11         * modules/strtoumax (Files): Add lib/strtoimax.c.
12         (Depends-on): Remove strtoimax and add verify.
13
14         inttypes-incomplete: new module
15         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18         of gl_INTTYPES_H.
19         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
23         * modules/strtoumax, modules/xstrtol (Depends-on):
24         Depend on inttypes-incomplete, not inttypes.
25         * modules/inttypes-incomplete: New module, containing the contents
26         of the old modules/inttypes module, except that the Files: section
27         omits m4/inttypes-pri.m4, and the configure.ac section invokes
28         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
29         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
30         (Depends-on): Depend only on inttypes-incomplete.
31         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
32
33         inttypes: omit now-redundant strtoimax and strtoumax work
34         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
35         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
36
37         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
38         This supports apps that need pointers to strtoimax and strtoumax,
39         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40         nonexistent functions.  See
41         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
42         et seq.
43         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
44         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
45         a macro.
46         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47
48 2011-04-25  Simon Josefsson  <simon@josefsson.org>
49
50         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
51
52 2011-04-25  Bruno Haible  <bruno@clisp.org>
53
54         strtol, strtoul: Mark modules as obsolete.
55         * modules/strtol (Status, Notice): New sections.
56         * modules/strtoul (Status, Notice): New sections.
57
58 2011-04-25  Bruno Haible  <bruno@clisp.org>
59
60         strtod: Remove check for strtod, unless supporting old platforms.
61         * modules/strtod-obsolete: New file.
62         * m4/strtod-obsolete.m4: New file.
63         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
64         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
65         * modules/strtod (Depends-on): Add strtod-obsolete.
66         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
67
68 2011-04-25  Bruno Haible  <bruno@clisp.org>
69
70         strcase: Make module obsolete.
71         * modules/strcase (Status, Notice): New sections.
72
73 2011-04-25  Bruno Haible  <bruno@clisp.org>
74
75         dup2: Remove check for dup2, unless supporting old obsolete platforms.
76         * modules/dup2-obsolete: New file.
77         * m4/dup2-obsolete.m4: New file.
78         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
79         gl_FUNC_DUP2_OBSOLETE is not also defined.
80         * modules/dup2 (Depends-on): Add dup2-obsolete.
81         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
82
83 2011-04-25  Bruno Haible  <bruno@clisp.org>
84
85         strnlen: Avoid memchr related link error on old obsolete platforms.
86         * modules/memchr-obsolete: New file.
87         * m4/memchr-obsolete.m4: New file.
88         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
89         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
90         * modules/memchr (Depends-on): Add memchr-obsolete.
91         * modules/strnlen (Depends-on): Likewise.
92         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
93
94 2011-04-25  Jim Meyering  <meyering@redhat.com>
95
96         maint.mk: makefile_at_at_check extend and clean up
97         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
98         in addition to */Makefile.am.
99         Exempt legitimate uses of @VAR@ notation, e.g.,
100         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
101         Remove obsolete coreutils-specific comment.
102         Prompted by discussion here:
103         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
104
105 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
106
107         strtoul: remove dependency on strtol
108         This is so that 'configure' need not check for strtol merely because
109         the application needs strtoul.
110         * modules/strtoul (Files): Add lib/strtol.c.
111         (Depends-on): Remove strtol.
112
113         strtoull: remove dependency on strtoul
114         This is like the strtoll change.
115         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
116         (Depends-on): Remove strtoul.
117
118         strtoll: remove dependency on strtol
119         This is so that 'configure' need not check for strtol merely because
120         the application needs strtoll.
121         * modules/strtoll (Files): Add lib/strtol.c.
122         (Depends-on): Remove strtol.
123
124 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
125
126         inttypes: Move some configure check to module 'imaxdiv'.
127         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
128         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
129         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
130
131 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
132
133         inttypes: Move some configure check to module 'imaxabs'.
134         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
135         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
136         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
137
138 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
139
140         inttypes: Remove configure tests that are not needed since 2009-12-31.
141         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
142         gl_cv_header_working_inttypes_h.
143
144 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
145
146         * modules/strnlen (Depends-on): Remove memchr.
147         The strnlen implementation doesn't need the memchr module's fixes; see
148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
149
150         strtol: remove dependency on wchar
151         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
152         * modules/strtol (Depends-on): Remove wchar.
153
154 2011-04-21  Eric Blake  <eblake@redhat.com>
155
156         passfd: fix test regression on Linux
157         * modules/passfd-tests (configure.ac): Correct socketpair check.
158
159         passfd: speed up configure and drop unused code
160         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
161         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
162         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
163         Instead of probing at configure for unix_scm_rights_bsd44_way,
164         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
165         check to a struct member probe.
166         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
167         (sendfd, recvfd): Update preprocessor checks.
168         * modules/passfd (Files): Reflect rename, and drop unused file.
169         (Depends-on): Drop unused dependency.
170
171         passfd: allow compilation on mingw
172         * modules/sys_socket (Depends-on): Add sys_uio.
173         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
174         iovec and a minimal struct msghdr.
175         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
176         * tests/test-sys_socket.c (main): Enhance test.
177         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
178         guaranteed to provide what we need.
179         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
180         * modules/passfd-tests (Depends-on): Add sys_wait.
181         * tests/test-passfd.c (main): Skip test on mingw, for now.
182         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
183         partial 'struct msghdr' implementation.
184
185         sys_uio: new module
186         * modules/sys_uio: New module.
187         * modules/sys_uio-tests: Likewise.
188         * lib/sys_uio.in.h: New file.
189         * m4/sys_uio_h.m4: Likewise.
190         * tests/test-sys_uio.c: Likewise.
191         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
192         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
193
194 2011-04-20  Jim Meyering  <meyering@redhat.com>
195
196         useless-if-before-free: avoid false-positive
197         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
198         disjunct so that it too requires a terminating ";".  Without that,
199         this script would identify as useless one statement from gcc that
200         was not:
201           if (aligned_ptr)
202             free (((void **) aligned_ptr) [-1]);
203
204 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
205
206         doc: update users.txt.
207         * users.txt: Add barcode.
208
209 2011-04-19  Bruno Haible  <bruno@clisp.org>
210
211         ioctl: Remove link dependency on native Windows.
212         * lib/fd-hook.h: Renamed from lib/close-hook.h.
213         (gl_close_fn, gl_ioctl_fn): New types.
214         (struct fd_hook): Renamed from struct close_hook. Change type of
215         private_close_fn field. Add private_ioctl_fn field.
216         (close_hook_fn): Add parameter for primary close method.
217         (execute_close_hooks, execute_all_close_hooks): Likewise.
218         (ioctl_hook_fn): New type.
219         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
220         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
221         argument.
222         (unregister_fd_hook): Renamed from unregister_close_hook.
223         * lib/fd-hook.c: Renamed from lib/close-hook.c.
224         Don't include <unistd.h>.
225         (close): Remove undef.
226         (anchor): Update.
227         (execute_close_hooks): Add argument for primary close method.
228         (execute_all_close_hooks): Likewise.
229         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
230         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
231         argument. Allow each argument to be NULL.
232         (unregister_fd_hook): Renamed from unregister_close_hook.
233         * lib/close.c (rpl_close): Pass 'close' function pointer to
234         execute_all_close_hooks.
235         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
236         (primary_ioctl): New function.
237         (ioctl): Don't call ioctlsocket here. Instead, call
238         execute_all_ioctl_hooks.
239         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
240         close method.
241         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
242         (fd_sockets_hook): Renamed from close_sockets_hook.
243         (gl_sockets_startup, gl_sockets_cleanup): Update.
244         * modules/fd-hook: Renamed from modules/close-hook. Update.
245         * modules/close (Depends-on): Add fd-hook, remove close-hook.
246         * modules/sockets (Depends-on): Likewise.
247         * modules/ioctl (Depends-on): Add fd-hook.
248         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
249         GNULIB_SOCKET.
250
251 2011-04-19  Bruno Haible  <bruno@clisp.org>
252
253         Move the support of O_NONBLOCK in open() to the 'open' module.
254         * modules/nonblocking (Depends-on): Remove 'open'.
255         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
256         gl_cv_have_open_O_NONBLOCK.
257         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
258         O_NONBLOCK support.
259         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
260
261 2011-04-17  Bruno Haible  <bruno@clisp.org>
262
263         pipe2: Simplify code.
264         * lib/pipe2.c (pipe2): Reduce code duplication.
265
266 2011-04-17  Bruno Haible  <bruno@clisp.org>
267
268         nonblocking: Add comment.
269         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
270
271 2011-04-17  Bruno Haible  <bruno@clisp.org>
272
273         nonblocking: Add tests for sockets.
274         * tests/test-nonblocking-socket.sh: New file.
275         * tests/test-nonblocking-socket-main.c: New file.
276         * tests/test-nonblocking-socket-child.c: New file.
277         * tests/test-nonblocking-socket.h: New file.
278         * tests/socket-server.h: New file.
279         * tests/socket-client.h: New file.
280         * modules/nonblocking-socket-tests: New file.
281         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
282
283 2011-04-17  Bruno Haible  <bruno@clisp.org>
284
285         nonblocking: Add tests for pipes.
286         * tests/test-nonblocking-pipe.sh: New file.
287         * tests/test-nonblocking-pipe-main.c: New file.
288         * tests/test-nonblocking-pipe-child.c: New file.
289         * tests/test-nonblocking-pipe.h: New file.
290         * tests/test-nonblocking-writer.h: New file.
291         * tests/test-nonblocking-reader.h: New file.
292         * tests/test-nonblocking-misc.h: New file.
293         * modules/nonblocking-pipe-tests: New file.
294         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
295
296 2011-04-16  Bruno Haible  <bruno@clisp.org>
297
298         gettext: Clarify the needed programmer actions.
299         * modules/gettext (Notice): New field.
300         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
301
302 2011-04-16  Bruno Haible  <bruno@clisp.org>
303
304         strchrnul: Tweak last commit.
305         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
306         bug.
307         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
308         as in _GL_FUNCDECL_SYS.
309         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
310         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
311
312 2011-04-15  Eric Blake  <eblake@redhat.com>
313
314         strchrnul: work around cygwin bug
315         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
316         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
318         * modules/string (Makefile.am): Substitute it.
319         * lib/string.in.h (strchrnul): Use it.
320
321 2011-04-15  Bruno Haible  <bruno@clisp.org>
322
323         Don't require lib/stdio-write.c when only module 'stdio' is used.
324         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
325         invocation.
326         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
327
328 2011-04-14  Bruno Haible  <bruno@clisp.org>
329
330         Support non-blocking pipe I/O in read() on native Windows.
331         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
332         (read): New declaration.
333         * lib/read.c: New file.
334         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
335         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
336         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
337         vscanf): New declarations.
338         * lib/stdio-read.c: New file.
339         * m4/read.m4: New file.
340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
341         REPLACE_READ.
342         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
343         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
344         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
345         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
346         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
347         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
348         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
349         * modules/read: New file.
350         * modules/nonblocking (Files): Add lib/stdio-read.c.
351         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
352         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
353         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
354         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
355         * modules/pread (Depends-on): Add read.
356         * modules/safe-read (Depends-on): Likewise.
357         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
358         gets, scanf, vfscanf, vscanf): Verify signatures.
359         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
360         problem with non-blocking pipes.
361         * doc/posix-functions/fgetc.texi: Likewise.
362         * doc/posix-functions/fgets.texi: Likewise.
363         * doc/posix-functions/fread.texi: Likewise.
364         * doc/posix-functions/fscanf.texi: Likewise.
365         * doc/posix-functions/getc.texi: Likewise.
366         * doc/posix-functions/getchar.texi: Likewise.
367         * doc/posix-functions/gets.texi: Likewise.
368         * doc/posix-functions/scanf.texi: Likewise.
369         * doc/posix-functions/vfscanf.texi: Likewise.
370         * doc/posix-functions/vscanf.texi: Likewise.
371
372 2011-04-14  Bruno Haible  <bruno@clisp.org>
373
374         Support non-blocking pipe I/O in write() on native Windows.
375         * lib/write.c (rpl_write): Split a write request that failed merely
376         because the byte count was larger than the pipe buffer's size.
377         * doc/posix-functions/write.texi: Mention the problem with large byte
378         counts.
379
380 2011-04-14  Bruno Haible  <bruno@clisp.org>
381
382         wchar: Ensure that wchar_t gets defined on uClibc.
383         * lib/wchar.in.h: On uClibc, include <stddef.h>.
384         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
385
386 2011-04-13  Bruno Haible  <bruno@clisp.org>
387
388         safe-write, full-read: Avoid unnecessary compilation units.
389         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
390         (Depends-on): Remove safe-read. Add ssize_t.
391         * modules/full-read (Files): Add lib/full-write.c.
392         (Depends-on): Add full-write.
393
394 2011-04-13  Bruno Haible  <bruno@clisp.org>
395
396         Support non-blocking pipe I/O and SIGPIPE in pwrite().
397         * modules/pwrite (Depends-on): Add 'write'.
398
399 2011-04-13  Bruno Haible  <bruno@clisp.org>
400
401         Support non-blocking pipe I/O in write() on native Windows.
402         * lib/unistd.in.h (write): Enable replacement also if
403         GNULIB_UNISTD_H_NONBLOCKING is 1.
404         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
405         (rpl_write): When failing to write on a non-blocking pipe, change
406         errno from ENOSPC to EAGAIN.
407         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
408         putchar, puts, vfprintf, vprintf): Enable replacement also if
409         GNULIB_STDIO_H_NONBLOCKING is 1.
410         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
411         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
412         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
413         CALL_WITH_SIGPIPE_EMULATION.
414         (CALL_WITH_SIGPIPE_EMULATION): Use them.
415         * m4/nonblocking.m4: New file.
416         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
417         for non-blocking I/O support.
418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
419         GNULIB_UNISTD_H_NONBLOCKING.
420         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
421         required for non-blocking I/O support.
422         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
423         * modules/nonblocking (Files): Add m4/nonblocking.m4,
424         lib/stdio-write.c, m4/asm-underscore.m4.
425         (Depends-on): Add stdio, unistd.
426         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
427         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
428         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
429         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
430         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
431         problem with non-blocking pipes.
432         * doc/posix-functions/fputc.texi: Likewise.
433         * doc/posix-functions/fputs.texi: Likewise.
434         * doc/posix-functions/fwrite.texi: Likewise.
435         * doc/posix-functions/printf.texi: Likewise.
436         * doc/posix-functions/putc.texi: Likewise.
437         * doc/posix-functions/putchar.texi: Likewise.
438         * doc/posix-functions/puts.texi: Likewise.
439         * doc/posix-functions/vfprintf.texi: Likewise.
440         * doc/posix-functions/vprintf.texi: Likewise.
441         * doc/posix-functions/write.texi: Likewise.
442
443 2011-04-10  Jim Meyering  <meyering@redhat.com>
444
445         maint.mk: prohibit doubled words
446         Detect them also when they're separated by a newline.
447         There are 3 ways to customize it:
448           - disable the test on a per file basis, as usual with rules using
449             $(VC_LIST_EXCEPT)
450           - replace the default doubled-word-selecting regexp (affects all files)
451           - ignore a particular file-vs-doubled-word match
452         I nearly used that last one to ignore the "is is" match in
453         coreutils' NEWS file, since the text was "ls -is is ..."
454         To do that, I would have added this line to cfg.mk:
455           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
456         but it would have ignored any "is is" match in NEWS.
457         Low probability, but still...
458         Instead, I changed the text, slightly:
459           -  ls -is is now consistent with ls -lis in ignoring values returned
460           +  "ls -is" is now consistent with ls -lis in ignoring values returned
461         * top/maint.mk (prohibit_double_word_RE_): Provide default.
462         (prohibit_doubled_word_): Define.
463         (sc_prohibit_doubled_word): New rule.
464         (sc_prohibit_the_the): Remove.  Subsumed by the above.
465
466 2011-04-10  Jim Meyering  <meyering@redhat.com>
467
468         maint: fix doubled-word typo in comment
469         * m4/gethostname.m4: s/is is/it is/
470         * m4/getdomainname.m4: Likewise.
471
472 2011-04-10  Jim Meyering  <meyering@redhat.com>
473
474         maint: remove doubled word: s/it it/it/
475         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
476
477 2011-04-10  Jim Meyering  <meyering@redhat.com>
478
479         maint.mk: remove useless semicolon and backslash
480         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
481         semicolon and backslash.
482
483 2011-04-10  Bruno Haible  <bruno@clisp.org>
484
485         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
486         * modules/stdint-tests (Depends-on): Add wchar.
487
488 2011-04-10  Jim Meyering  <meyering@redhat.com>
489
490         maint: remove doubled words in comments, e.g., s/a a/a/
491         * lib/strptime.c (day_of_the_week): s/the the/the/
492         * tests/test-chown.h (test_chown): s/a a/a/
493
494         test-chown.h: correct a cast
495         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
496         when the destination is a stat.st_gid.
497
498 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
499
500         getaddrinfo: Fix test for sa_len member.
501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
502         include <sys/types.h> before <sys/socket.h>.
503
504 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
505
506         maint: change "can not" to "cannot"
507         * doc/posix-functions/iconv.texi (iconv): This one crossed line
508         boundaries.
509
510 2011-04-09  Jim Meyering  <meyering@redhat.com>
511
512         maint: change "a a" to "a"
513         * tests/test-lchown.h (test_lchown): s/a a/a/
514
515         maint.mk: prohibit \<the the\>
516         * top/maint.mk (sc_prohibit_the_the): New rule.
517
518         maint: fix "the the" in comment
519         * lib/count-one-bits.h: s/the the/the/
520
521         maint: change "can not" to "cannot"
522         But do not change the occurrences in maintain.texi or in
523         build-aux/po/Makefile.in.in, which I presume comes from gettext.
524         * doc/gnulib-tool.texi: s/can not/cannot/
525         * doc/posix-functions/accept.texi (accept): Likewise.
526         * doc/posix-functions/socket.texi (socket): Likewise.
527         * lib/mbrtowc.c: Likewise.
528
529         maint.mk: prohibit use of "can not"
530         * top/maint.mk (sc_prohibit_can_not): New rule.
531         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
532
533 2011-04-09  Bruno Haible  <bruno@clisp.org>
534
535         careadlinkat: Guard against misuse of careadlinkatcwd.
536         * lib/careadlinkat.c: Include <stdlib.h>.
537         (careadlinkatcwd): Check that the fd argument is as expected.
538
539 2011-04-09  Bruno Haible  <bruno@clisp.org>
540
541         careadlinkat: Use common coding style.
542         * lib/careadlinkat.c: Move gnulib includes after system includes.
543
544 2011-04-09  Bruno Haible  <bruno@clisp.org>
545
546         careadlinkat: Clarify specification.
547         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
548         (careadlinkatcwd): Add comment.
549         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
550
551 2011-04-09  Bruno Haible  <bruno@clisp.org>
552
553         areadlinkat: Avoid link error on many platforms.
554         * modules/areadlinkat (Depends-on): Add areadlink.
555
556 2011-04-09  Bruno Haible  <bruno@clisp.org>
557
558         allocator, careadlinkat: Fix double-inclusion guard.
559         * lib/allocator.h: Fix double-inclusion guard.
560         * lib/careadlinkat.h: Likewise.
561
562 2011-04-09  Bruno Haible  <bruno@clisp.org>
563
564         relocatable-prog-wrapper: Update after module 'areadlink' changed.
565         * lib/relocwrapper.c: Update dependencies hierarchy.
566         * build-aux/install-reloc: Update list of files to be compiled.
567         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
568         lib/allocator.[hc].
569
570 2011-04-08  Eric Blake  <eblake@redhat.com>
571
572         strftime: silence gnulib-tool warning
573         * modules/strftime-tests (Depends-on): Drop automatic dependency.
574
575 2011-04-08  Bruno Haible  <bruno@clisp.org>
576
577         verify: Fix syntax error with GCC 4.6 in C++ mode.
578         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
579         (HAVE_STATIC_ASSERT): New macro.
580         (verify_true, verify): Use 'static_assert' if it is supported and
581         '_Static_assert' is not supported.
582
583 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
584
585         allocator: New module.
586         * modules/allocator, lib/allocator.c: New files.
587         * lib/allocator.h (stdlib_allocator): New decl.
588         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
589         Remove.  Do not include <stdlib.h>.
590         (careadlinkat): Use stdlib_allocator instead of rolling our own.
591         * modules/careadlinkat (Files): Remove lib/allocator.h.
592         (Depends-on): Add allocator.
593
594         stdlib: let modules use system malloc, realloc
595         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
596         if !_GL_USE_STDLIB_ALLOC.
597         (malloc, realloc): Limit this change to a smaller scope.
598
599         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
600         (malloc, realloc): Don't #undef; no longer needed.
601         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
602         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
603         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
604         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
605         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
606         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
607         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
608         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
609
610         careadlinkat: rename members to avoid problem
611         * lib/allocator.h (struct allocator): Rename members from
612         malloc/realloc to allocate/reallocate, to avoid problems if malloc
613         and realloc are #define'd.  Reported by Eric Blake in
614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
615         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
616
617 2011-04-08  Eric Blake  <eblake@redhat.com>
618
619         nonblocking: reduce dependency
620         * tests/test-nonblocking.c: Only test sockets when in use.
621         * modules/nonblocking-tests (Depends-on): Drop socket.
622         (Makefile.am): Link even if sockets are not present.
623         * modules/pipe2-tests (Makefile.am): Likewise.
624         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
625
626         pipe2: fix O_NONBLOCK support on mingw
627         * modules/pipe2 (Depends-on): Add nonblocking.
628         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
629         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
630         * tests/test-nonblocking.c (main): Likewise.
631         * modules/pipe2-tests (Makefile.am): Avoid link failure.
632
633         fcntl-h: fix O_ACCMODE on cygwin
634         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
635         * lib/fcntl.in.h (O_ACCMODE): Fix it.
636
637         pipe-filter: drop O_NONBLOCK workarounds
638         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
639         * modules/pipe-filter-ii (Depends-on): Likewise.
640         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
641
642         nonblocking: provide O_NONBLOCK for mingw
643         * modules/nonblocking (Depends-on): Add open.
644         (configure.ac): Set new witness macro.
645         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
646         * modules/fcntl-h (Makefile.am): Substitute it.
647         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
648         nonblocking module is in use.
649         * lib/nonblocking.c: Adjust portability test.
650         * lib/open.c (open): Don't let native open see gnulib flag.
651         * tests/test-fcntl-h.c (main): Enhance test.
652         * tests/test-open.h (test_open): Likewise.
653         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
654
655         careadlinkat: fix compilation error on mingw
656         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
657         within struct allocator.
658
659 2011-04-06  Eric Blake  <eblake@redhat.com>
660
661         binary-io: relicense under LGPLv2+
662         * modules/binary-io (License): Relax to LGPLv2+.
663         Requested for libvirt, and required by pipe2.
664
665 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
666
667         verify: use _Static_assert if available
668         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
669         (verify_true, verify): Use it if available.  This generates better
670         diagnostics with GCC 4.6.0 and later.
671
672 2011-04-05  Bruno Haible  <bruno@clisp.org>
673
674         Remove leftover generated .h files after config.status changed.
675
676         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
677         GL_GENERATE_ALLOCA_H.
678         * modules/alloca-opt (Makefile.am): Remove alloca.h if
679         GL_GENERATE_ALLOCA_H evaluates to false.
680
681         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
682         GL_GENERATE_ARGZ_H.
683         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
684         evaluates to false.
685
686         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
687         GL_GENERATE_BYTESWAP_H.
688         * modules/byteswap (Makefile.am): Remove byteswap.h if
689         GL_GENERATE_BYTESWAP_H evaluates to false.
690
691         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
692         GL_GENERATE_ERRNO_H.
693         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
694         evaluates to false.
695
696         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
697         GL_GENERATE_FLOAT_H.
698         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
699         evaluates to false.
700
701         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
702         GL_GENERATE_FNMATCH_H.
703         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
704         GL_GENERATE_FNMATCH_H evaluates to false.
705
706         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
707         GL_GENERATE_GLOB_H.
708         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
709         evaluates to false.
710
711         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
712         automake conditional GL_GENERATE_ICONV_H.
713         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
714         evaluates to false.
715
716         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
717         GL_GENERATE_NETINET_IN_H.
718         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
719         GL_GENERATE_NETINET_IN_H evaluates to false.
720
721         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
722         conditional GL_GENERATE_PTHREAD_H.
723         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
724         * modules/pthread (Makefile.am): Remove pthread.h if
725         GL_GENERATE_PTHREAD_H evaluates to false.
726
727         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
728         GL_GENERATE_SCHED_H.
729         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
730         evaluates to false.
731
732         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
733         conditional GL_GENERATE_SELINUX_CONTEXT_H.
734         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
735         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
736
737         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
738         GL_GENERATE_STDARG_H.
739         * modules/stdarg (Makefile.am): Remove stdarg.h if
740         GL_GENERATE_STDARG_H evaluates to false.
741
742         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
743         GL_GENERATE_STDBOOL_H.
744         * modules/stdbool (Makefile.am): Remove stdbool.h if
745         GL_GENERATE_STDBOOL_H evaluates to false.
746
747         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
748         conditional GL_GENERATE_STDDEF_H.
749         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
750         * modules/stddef (Makefile.am): Remove stddef.h if
751         GL_GENERATE_STDDEF_H evaluates to false.
752
753         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
754         GL_GENERATE_STDINT_H.
755         * modules/stdint (Makefile.am): Remove stdint.h if
756         GL_GENERATE_STDINT_H evaluates to false.
757
758         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
759         GL_GENERATE_SYSEXITS_H.
760         * modules/sysexits (Makefile.am): Remove sysexits.h if
761         GL_GENERATE_SYSEXITS_H evaluates to false.
762
763         Reported by Karl Berry and Ralf Wildenhues.
764
765 2011-04-05  Bruno Haible  <bruno@clisp.org>
766
767         Ensure to rebuild generated .h files when config.status has changed.
768         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
769         config.status.
770         * modules/ctype (Makefile.am): Likewise.
771         * modules/dirent (Makefile.am): Likewise.
772         * modules/errno (Makefile.am): Likewise.
773         * modules/fcntl-h (Makefile.am): Likewise.
774         * modules/float (Makefile.am): Likewise.
775         * modules/getopt-posix (Makefile.am): Likewise.
776         * modules/glob (Makefile.am): Likewise.
777         * modules/iconv-h (Makefile.am): Likewise.
778         * modules/inttypes (Makefile.am): Likewise.
779         * modules/langinfo (Makefile.am): Likewise.
780         * modules/locale (Makefile.am): Likewise.
781         * modules/math (Makefile.am): Likewise.
782         * modules/netdb (Makefile.am): Likewise.
783         * modules/netinet_in (Makefile.am): Likewise.
784         * modules/poll-h (Makefile.am): Likewise.
785         * modules/pthread (Makefile.am): Likewise.
786         * modules/pty (Makefile.am): Likewise.
787         * modules/sched (Makefile.am): Likewise.
788         * modules/search (Makefile.am): Likewise.
789         * modules/selinux-h (Makefile.am): Likewise.
790         * modules/signal (Makefile.am): Likewise.
791         * modules/spawn (Makefile.am): Likewise.
792         * modules/stdarg (Makefile.am): Likewise.
793         * modules/stdbool (Makefile.am): Likewise.
794         * modules/stddef (Makefile.am): Likewise.
795         * modules/stdint (Makefile.am): Likewise.
796         * modules/stdio (Makefile.am): Likewise.
797         * modules/stdlib (Makefile.am): Likewise.
798         * modules/string (Makefile.am): Likewise.
799         * modules/strings (Makefile.am): Likewise.
800         * modules/sys_file (Makefile.am): Likewise.
801         * modules/sys_ioctl (Makefile.am): Likewise.
802         * modules/sys_select (Makefile.am): Likewise.
803         * modules/sys_socket (Makefile.am): Likewise.
804         * modules/sys_stat (Makefile.am): Likewise.
805         * modules/sys_time (Makefile.am): Likewise.
806         * modules/sys_times (Makefile.am): Likewise.
807         * modules/sys_utsname (Makefile.am): Likewise.
808         * modules/sys_wait (Makefile.am): Likewise.
809         * modules/sysexits (Makefile.am): Likewise.
810         * modules/termios (Makefile.am): Likewise.
811         * modules/time (Makefile.am): Likewise.
812         * modules/unistd (Makefile.am): Likewise.
813         * modules/wchar (Makefile.am): Likewise.
814         * modules/wctype-h (Makefile.am): Likewise.
815         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
816
817 2011-04-05  Bruno Haible  <bruno@clisp.org>
818
819         pipe2: Relicense under LGPLv2+.
820         * modules/pipe2 (License): Change to LGPLv2+.
821         Requested by Eric Blake, for libvirt.
822
823 2011-04-05  Bruce Korb  <bkorb@gnu.org>
824
825         bootstrap: compute gnulib_extra_files after updating build_aux
826         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
827         change build_aux or also supply gnulib_extra_files.  Handle correctly.
828
829 2011-04-05  Eric Blake  <eblake@redhat.com>
830
831         bootstrap: preserve git whitelist item sorting
832         * build-aux/bootstrap (sort_patterns): New function.
833         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
834
835 2011-04-05  Simon Josefsson  <simon@josefsson.org>
836
837         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
838         sc_space_tab check.
839
840 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
841
842         areadlink, areadlinkat: rewrite in terms of careadlinkat
843         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
844         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
845         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
846         (malloc, realloc): Remove #undefs.
847         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
848         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
849         readlink, ssize_t, stdint, unistd.
850         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
851         areadlink, stdint.
852
853         careadlinkat: new module
854         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
855         * modules/careadlinkat: New files, written by me with
856         a review and feedback from Ben Pfaff in
857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
858
859 2011-04-01  Bruno Haible  <bruno@clisp.org>
860
861         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
862         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
863         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
864         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
865         Reported by Bruce Korb <bruce.korb@gmail.com>.
866
867 2011-04-01  Bruno Haible  <bruno@clisp.org>
868
869         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
870         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
871         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
872         * modules/wcpcpy (Depends-on): Add extensions.
873         * modules/wcpncpy (Depends-on): Likewise.
874         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
875         systems.
876         * doc/posix-functions/wcpncpy.texi: Likewise.
877         * doc/posix-functions/wcwidth.texi: Likewise.
878
879 2011-03-31  Eric Blake  <eblake@redhat.com>
880
881         nonblocking: fix mingw test failures
882         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
883         non-blocking flag on regular file.
884         (get_nonblocking_flag): Set errno on invalid fd.
885         * tests/test-nonblocking.c (main): Avoid test failure on
886         directories if fchdir is not active.
887         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
888
889 2011-03-31  Bruno Haible  <bruno@clisp.org>
890
891         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
892         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
893         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
894         Reported by Simon Josefsson <simon@josefsson.org>.
895
896 2011-03-31  Bruno Haible  <bruno@clisp.org>
897         and Eric Blake  <eblake@redhat.com>
898
899         nonblocking: new module
900         * modules/nonblocking: New module.
901         * modules/nonblocking-tests: Likewise.
902         * lib/nonblocking.h: New file.
903         * lib/nonblocking.c: Likewise.
904         * tests/test-nonblocking.c: New test.
905         * lib/ioctl.c (ioctl) [mingw]: Update comment.
906
907 2011-03-30  Bruno Haible  <bruno@clisp.org>
908
909         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
910         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
911         instead of 'printf' format for GCC >= 4.4.
912         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
913         (fprintf, printf, vfprintf, vprintf): Declare with
914         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
915         the system's vfprintf() function.
916         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
917
918 2011-03-30  Eric Blake  <eblake@redhat.com>
919
920         passfd: fix scoping bug
921         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
922         before sendmsg/recvmsg.
923
924         passfd: standardize coding conventions
925         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
926         can be learned at compile time.
927         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
928         ifdefs.
929         (sendfd, recvfd): Follow gnulib code conventions.
930
931         passfd: fix incorrect sendmsg arguments
932         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
933         incorrect msg_controllen value.
934         * modules/passfd-tests (Depends-on): Check for alarm.
935         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
936         Reported by Bastien ROUCARIES.
937
938 2011-03-30  Bruno Haible  <bruno@clisp.org>
939
940         c-strcasestr: Relicense under LGPLv2+.
941         * modules/c-strcasestr (License): Change to LGPLv2+.
942         Requested by Eric Blake, for libvirt.
943
944 2011-03-30  Simon Josefsson  <simon@josefsson.org>
945
946         * users.txt: Add libidn2.  Fix libtasn1 link.
947
948 2011-03-30  Jim Meyering  <meyering@redhat.com>
949
950         tests: readlink* ("",... fails with EINVAL on newer kernels
951         readlink and readlinkat have typically failed with ENOENT for
952         the invalid, empty file name,  "".  However, with the advent
953         of linux-2.6.39, they fail with EINVAL.
954         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
955         when operating on the empty file name.
956         * tests/test-readlink.h (test_readlink): Likewise.
957
958 2011-03-29  Bruno Haible  <bruno@clisp.org>
959
960         Relicense some modules under LGPLv2+, for libidn2.
961         * modules/array-mergesort (License): Change to LGPLv2+.
962         * modules/c-strcaseeq (License): Likewise.
963         * modules/striconveh (License): Likewise.
964         * modules/striconveha (License): Likewise.
965         * modules/uniconv/base (License): Likewise.
966         * modules/uniconv/u8-conv-from-enc (License): Likewise.
967         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
968         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
969         * modules/unictype/base (License): Likewise.
970         * modules/unictype/bidiclass-of (License): Likewise.
971         * modules/unictype/category-M (License): Likewise.
972         * modules/unictype/category-none (License): Likewise.
973         * modules/unictype/category-of (License): Likewise.
974         * modules/unictype/category-test (License): Likewise.
975         * modules/unictype/category-test-withtable (License): Likewise.
976         * modules/unictype/combining-class (License): Likewise.
977         * modules/unictype/joiningtype-of (License): Likewise.
978         * modules/unictype/scripts (License): Likewise.
979         * modules/uninorm/base (License): Likewise.
980         * modules/uninorm/canonical-decomposition (License): Likewise.
981         * modules/uninorm/composition (License): Likewise.
982         * modules/uninorm/decompose-internal (License): Likewise.
983         * modules/uninorm/decomposition-table (License): Likewise.
984         * modules/uninorm/nfc (License): Likewise.
985         * modules/uninorm/nfd (License): Likewise.
986         * modules/uninorm/u32-normalize (License): Likewise.
987         * modules/unistr/base (License): Likewise.
988         * modules/unistr/u32-cpy (License): Likewise.
989         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
990         * modules/unistr/u32-to-u8 (License): Likewise.
991         * modules/unistr/u32-uctomb (License): Likewise.
992         * modules/unistr/u8-check (License): Likewise.
993         * modules/unistr/u8-mblen (License): Likewise.
994         * modules/unistr/u8-mbtouc (License): Likewise.
995         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
996         * modules/unistr/u8-mbtoucr (License): Likewise.
997         * modules/unistr/u8-prev (License): Likewise.
998         * modules/unistr/u8-strlen (License): Likewise.
999         * modules/unistr/u8-to-u32 (License): Likewise.
1000         * modules/unistr/u8-uctomb (License): Likewise.
1001         * modules/unitypes (License): Likewise.
1002         Requested by Simon Josefsson.
1003
1004 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1005
1006         lib-symbol-visibility: Add a notice.
1007         * modules/lib-symbol-visibility (Notice): New field.
1008
1009 2011-03-29  Bruno Haible  <bruno@clisp.org>
1010
1011         getaddrinfo: Doc fix.
1012         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1013         section "fixed in Gnulib".
1014
1015 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1016
1017         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1018         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1019
1020 2011-03-26  Bruno Haible  <bruno@clisp.org>
1021
1022         unictype/property-byname: Reduce the number of load-time relocations.
1023         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1024         (UC_PROPERTY_INDEX_*): New enumeration values.
1025         (uc_property_byname): Convert an index from the lookup table to an
1026         uc_property_t.
1027         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1028         values.
1029
1030 2011-03-26  Bruno Haible  <bruno@clisp.org>
1031
1032         unictype/property-byname: Allow omitted word separators and aliases.
1033         * lib/unictype/pr_byname.gperf: Add property names without word
1034         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1035         for 'space'.
1036
1037 2011-03-26  Bruno Haible  <bruno@clisp.org>
1038
1039         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1040         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1041         also hyphens to space.
1042         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1043         without spaces.
1044         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1045
1046 2011-03-26  Bruno Haible  <bruno@clisp.org>
1047
1048         unictype/joiningtype-byname: Recognize long names as well.
1049         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1050         a long name.
1051         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1052         unictype/joiningtype_byname.h.
1053         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1054         * lib/unictype/joiningtype_byname.gperf: New file.
1055         * modules/unictype/joiningtype-byname (Files): Add
1056         lib/unictype/joiningtype_byname.gperf.
1057         (Depends-on): Add gperf.
1058         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1059         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1060         long names.
1061
1062         Tests for module 'unictype/joiningtype-longname'.
1063         * modules/unictype/joiningtype-longname-tests: New file.
1064         * tests/unictype/test-joiningtype_longname.c: New file.
1065
1066         New module 'unictype/joiningtype-longname'.
1067         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1068         * lib/unictype/joiningtype_longname.c: New file.
1069         * modules/unictype/joiningtype-longname: New file.
1070         * modules/unictype/joiningtype-all (Depends-on): Add
1071         unictype/joiningtype-longname.
1072
1073 2011-03-26  Bruno Haible  <bruno@clisp.org>
1074
1075         unictype/bidiclass-byname: Recognize long names as well.
1076         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1077         name.
1078         * lib/unictype/bidi_byname.c: Include <string.h>,
1079         unictype/bidi_byname.h.
1080         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1081         * lib/unictype/bidi_byname.gperf: New file.
1082         * modules/unictype/bidiclass-byname (Files): Add
1083         lib/unictype/bidi_byname.gperf.
1084         (Depends-on): Add gperf.
1085         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1086         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1087         long names.
1088
1089         Tests for module 'unictype/bidiclass-longname'.
1090         * modules/unictype/bidiclass-longname-tests: New file.
1091         * tests/unictype/test-bidi_longname.c: New file.
1092
1093         New module 'unictype/bidiclass-longname'.
1094         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1095         * lib/unictype/bidi_longname.c: New file.
1096         * modules/unictype/bidiclass-longname: New file.
1097         * modules/unictype/bidiclass-all (Depends-on): Add
1098         unictype/bidiclass-longname.
1099
1100 2011-03-26  Bruno Haible  <bruno@clisp.org>
1101
1102         unictype/bidi*: Rename modules.
1103         * modules/unictype/bidiclass-all: Renamed from
1104         modules/unictype/bidicategory-all.
1105         * modules/unictype/bidiclass-name: Renamed from
1106         modules/unictype/bidiclass-name.
1107         (Description): Update.
1108         * modules/unictype/bidiclass-name-tests: Renamed from
1109         modules/unictype/bidicategory-name-tests.
1110         * modules/unictype/bidiclass-byname: Renamed from
1111         modules/unictype/bidicategory-byname.
1112         (Description): Update.
1113         * modules/unictype/bidiclass-byname-tests: Renamed from
1114         modules/unictype/bidicategory-byname-tests.
1115         * modules/unictype/bidiclass-of: Renamed from
1116         modules/unictype/bidicategory-of.
1117         (Description): Update.
1118         * modules/unictype/bidiclass-of-tests: Renamed from
1119         modules/unictype/bidicategory-of-tests.
1120         * modules/unictype/bidiclass-test: Renamed from
1121         modules/unictype/bidicategory-test.
1122         (Description): Update.
1123         * modules/unictype/bidiclass-test-tests: Renamed from
1124         modules/unictype/bidicategory-test-tests.
1125         * modules/unictype/bidicategory-all: New file, a simple redirection.
1126         * modules/unictype/bidicategory-name: Likewise.
1127         * modules/unictype/bidicategory-byname: Likewise.
1128         * modules/unictype/bidicategory-of: Likewise.
1129         * modules/unictype/bidicategory-test: Likewise.
1130         * modules/unictype/property-bidi-* (Dependencies): Update.
1131         * lib/unictype/bidi_*.c: Update comment.
1132
1133 2011-03-26  Bruno Haible  <bruno@clisp.org>
1134
1135         unictype/bidi*: Rename functions, part 2.
1136         * modules/unictype/bidicategory-name (configure.ac): Update required
1137         libunistring version.
1138         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1139
1140 2011-03-25  Bruno Haible  <bruno@clisp.org>
1141
1142         New module 'unictype/combining-class-all'.
1143         * modules/unictype/combining-class-all: New file.
1144
1145         Tests for module 'unictype/combining-class-byname'.
1146         * modules/unictype/combining-class-byname-tests: New file.
1147         * tests/unictype/test-combiningclass_byname.c: New file.
1148
1149         New module 'unictype/combining-class-byname'.
1150         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1151         * lib/unictype/combiningclass_byname.c: New file.
1152         * lib/unictype/combiningclass_byname.gperf: New file.
1153         * modules/unictype/combining-class-byname: New file.
1154
1155         Tests for module 'unictype/combining-class-longname'.
1156         * modules/unictype/combining-class-longname-tests: New file.
1157         * tests/unictype/test-combiningclass_longname.c: New file.
1158
1159         New module 'unictype/combining-class-longname'.
1160         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1161         * lib/unictype/combiningclass_longname.c: New file.
1162         * modules/unictype/combining-class-longname: New file.
1163
1164         Tests for module 'unictype/combining-class-name'.
1165         * modules/unictype/combining-class-name-tests: New file.
1166         * tests/unictype/test-combiningclass_name.c: New file.
1167
1168         New module 'unictype/combining-class-name'.
1169         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1170         * lib/unictype/combiningclass_name.c: New file.
1171         * modules/unictype/combining-class-name: New file.
1172
1173 2011-03-25  Bruno Haible  <bruno@clisp.org>
1174
1175         unictype/combining-class: Rename source files.
1176         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1177         of unictype/combining.h.
1178         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1179         Update.
1180         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1181         * modules/unictype/combining-class (Description): Fix.
1182         (Files, Makefile.am): Update.
1183         * tests/unictype/test-combiningclass.c: Renamed from
1184         tests/unictype/test-combining.c.
1185         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1186
1187 2011-03-25  Bruno Haible  <bruno@clisp.org>
1188
1189         unictype: Update list of canonical combining classes.
1190         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1191
1192 2011-03-25  Bruno Haible  <bruno@clisp.org>
1193
1194         unictype/category-byname: Recognize long names as well.
1195         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1196         a long name.
1197         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1198         unictype/categ_byname.h.
1199         (UC_CATEGORY_INDEX_*): New enumeration values.
1200         (uc_general_category_byname): Use uc_general_category_lookup and
1201         convert from index to value.
1202         * lib/unictype/categ_byname.gperf: New file.
1203         * modules/unictype/category-byname (Files): Add
1204         lib/unictype/categ_byname.gperf.
1205         (Depends-on): Add gperf.
1206         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1207         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1208         long names.
1209
1210         Tests for module 'unictype/category-longname'.
1211         * modules/unictype/category-longname-tests: New file.
1212         * tests/unictype/test-categ_longname.c: New file.
1213
1214         New module 'unictype/category-longname'.
1215         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1216         * lib/unictype/categ_longname.c: New file.
1217         * modules/unictype/category-longname: New file.
1218         * modules/unictype/category-all (Depends-on): Add it.
1219
1220 2011-03-25  Bruno Haible  <bruno@clisp.org>
1221
1222         Tests for module 'unictype/category-LC'.
1223         * modules/unictype/category-LC-tests: New file.
1224         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1225
1226         New module 'unictype/category-LC'.
1227         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1228         (UC_CATEGORY_LC): New declaration.
1229         (UC_CASED_LETTER): New macro.
1230         * lib/gen-uni-tables.c (is_category_LC): New function.
1231         (output_categories): Also handle category LC.
1232         (UC_CATEGORY_MASK_LC): New enumeration value.
1233         (general_category_byname): Also handle category LC.
1234         * lib/unictype/categ_LC.c: New file.
1235         * lib/unictype/categ_LC.h: New file, automatically generated.
1236         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1237         category LC.
1238         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1239         * modules/unictype/category-LC: New file.
1240         * modules/unictype/category-byname (Depends-on): Add
1241         unictype/category-LC.
1242         * modules/unictype/category-all (Depends-on): Likewise.
1243
1244 2011-03-25  Eric Blake  <eblake@redhat.com>
1245
1246         xmalloc: revert yesterday's regression
1247         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1248         realloc's underlying behavior (allowing allocation of zero-size
1249         objects, especially if malloc-gnu is also in use).
1250
1251 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1252
1253         maint.mk: add missing version to VC-tag
1254         * top/maint.mk: git tag was missing actual tag name; add it.
1255
1256         valgrind: do leak checking, and exit with code 1 on error (not 0)
1257         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1258         to VALGRIND.
1259
1260 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1261
1262         posix-modules: say what it does.
1263         * posix-modules: Add a line to the --help output saying what it does.
1264
1265 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1266
1267         xmalloc: Do not leak if underlying realloc is C99 compatible.
1268         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1269         This avoids a leak on C99-based systems.  See
1270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1271
1272 2011-03-24  Eric Blake  <eblake@redhat.com>
1273
1274         realloc: document portability problem
1275         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1276         passing 0 size to realloc.
1277
1278 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1279
1280         doc: update users.txt
1281         * users.txt: Add cvsps, tmpwatch
1282
1283 2011-03-23  Matt Rice  <ratmice@gmail.com>
1284
1285         doc: update users.txt
1286         * users.txt: Add gdb.
1287
1288 2011-03-23  Jim Meyering  <meyering@redhat.com>
1289
1290         doc: update users.txt
1291         Looking through matches up to the following URL (there are still
1292         several more pages), I found several projects that use gnulib:
1293         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1294         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1295         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1296
1297 2011-03-22  Bruno Haible  <bruno@clisp.org>
1298
1299         unictype/bidi*: Rename functions.
1300         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1301         uc_bidi_class, uc_is_bidi_class): New declarations.
1302         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1303         uc_bidi_category_byname.
1304         (uc_bidi_category_byname): New function.
1305         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1306         u_bidi_category_name.
1307         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1308         (uc_bidi_category_name): New function.
1309         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1310         uc_bidi_category.
1311         (uc_bidi_category): New function.
1312         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1313         uc_is_bidi_category. Invoke uc_bidi_class.
1314         (uc_is_bidi_category): New function.
1315         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1316         instead of uc_bidi_category_byname.
1317         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1318         instead of uc_bidi_category_name.
1319         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1320         uc_bidi_category.
1321         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1322         instead of uc_is_bidi_category.
1323
1324 2011-03-21  Bruno Haible  <bruno@clisp.org>
1325
1326         New module 'unictype/joininggroup-all'.
1327         * modules/unictype/joininggroup-all: New file.
1328
1329         Tests for module 'unictype/joininggroup-of'.
1330         * modules/unictype/joininggroup-of-tests: New file.
1331         * tests/unictype/test-joininggroup_of.c: New file.
1332         * tests/unictype/test-joininggroup_of.h: New file, automatically
1333         generated by gen-uni-tables.
1334
1335         New module 'unictype/joininggroup-of'.
1336         * modules/unictype/joininggroup-of: New file.
1337         * lib/unictype/joininggroup_of.c: New file.
1338         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1339         gen-uni-tables.
1340
1341         Tests for module 'unictype/joininggroup-byname'.
1342         * modules/unictype/joininggroup-byname-tests: New file.
1343         * tests/unictype/test-joininggroup_byname.c: New file.
1344
1345         New module 'unictype/joininggroup-byname'.
1346         * modules/unictype/joininggroup-byname: New file.
1347         * lib/unictype/joininggroup_byname.c: New file.
1348         * lib/unictype/joininggroup_byname.gperf: New file.
1349
1350         Tests for module 'unictype/joininggroup-name'.
1351         * modules/unictype/joininggroup-name-tests: New file.
1352         * tests/unictype/test-joininggroup_name.c: New file.
1353
1354         New module 'unictype/joininggroup-name'.
1355         * modules/unictype/joininggroup-name: New file.
1356         * lib/unictype/joininggroup_name.c: New file.
1357         * lib/unictype/joininggroup_name.h: New file.
1358
1359         New module 'unictype/joiningtype-all'.
1360         * modules/unictype/joiningtype-all: New file.
1361
1362         Tests for module 'unictype/joiningtype-of'.
1363         * modules/unictype/joiningtype-of-tests: New file.
1364         * tests/unictype/test-joiningtype_of.c: New file.
1365         * tests/unictype/test-joiningtype_of.h: New file, automatically
1366         generated by gen-uni-tables.
1367
1368         New module 'unictype/joiningtype-of'.
1369         * modules/unictype/joiningtype-of: New file.
1370         * lib/unictype/joiningtype_of.c: New file.
1371         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1372         gen-uni-tables.
1373
1374         Tests for module 'unictype/joiningtype-byname'.
1375         * modules/unictype/joiningtype-byname-tests: New file.
1376         * tests/unictype/test-joiningtype_byname.c: New file.
1377
1378         New module 'unictype/joiningtype-byname'.
1379         * modules/unictype/joiningtype-byname: New file.
1380         * lib/unictype/joiningtype_byname.c: New file.
1381
1382         Tests for module 'unictype/joiningtype-name'.
1383         * modules/unictype/joiningtype-name-tests: New file.
1384         * tests/unictype/test-joiningtype_name.c: New file.
1385
1386         New module 'unictype/joiningtype-name'.
1387         * modules/unictype/joiningtype-name: New file.
1388         * lib/unictype/joiningtype_name.c: New file.
1389
1390         unictype: Add support for Arabic shaping properties.
1391         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1392         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1393         declarations.
1394         (UC_JOINING_GROUP_*): New enumeration values.
1395         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1396         declarations.
1397         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1398         (unicode_joining_type): New variable.
1399         (UC_JOINING_GROUP_*): New enumeration values.
1400         (unicode_joining_group): New variable.
1401         (fill_arabicshaping, joining_type_as_c_identifier,
1402         output_joining_type_test, output_joining_type,
1403         joining_group_as_c_identifier, output_joining_group_test,
1404         output_joining_group): New functions.
1405         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1406         fill_arabicshaping and output_joining_type_test, output_joining_type,
1407         output_joining_group_test, output_joining_group.
1408         Reported by Simon Josefsson.
1409
1410 2011-03-21  Jim Meyering  <meyering@redhat.com>
1411
1412         strftime: fix a bug in yesterday's change
1413         * lib/strftime.c (add): Accommodate width's initial value of -1.
1414         Otherwise, nstrftime would copy uninitialized data into
1415         the result buffer.
1416
1417 2011-03-21  Jim Meyering  <meyering@redhat.com>
1418
1419         tests: add strftime-tests module
1420         * tests/test-strftime.c: New file.
1421         * modules/strftime-tests: New module.
1422
1423 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1424
1425         strftime: don't assume a byte count fits in 'int'
1426         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1427         found this problem by static analysis, using gcc -Wstrict-overflow
1428         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1429         on an integer overflow having undefined behavior, but it turns out
1430         that the argument is a size, which might not fit in 'int' anyway,
1431
1432 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1433
1434         stdio: don't require ignore_value around fwrite
1435
1436         This patch works around libc bug 11959
1437         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1438         Without this patch, applications must often write
1439         ignore_value (fwrite (...)) even though the ignore_value is
1440         not helpful here.  It's common to write many objects, using
1441         fwrite/printf/etc., and then use ferror to detect output error.
1442
1443         I considered making this patch optional, but decided against it,
1444         because libc is obviously being inconsistent here: there is no
1445         reason libc should insist that user code must inspect fwrite
1446         return's value without also insisting that it inspect printf's,
1447         putchar's, etc.  If user code wants to have a strict style where
1448         all these functions' values are checked (so that ferror need not
1449         be checked), we could add support for that style in a new gnulib
1450         module, but in the meantime it's better to be consistent and to
1451         support common usage.
1452
1453         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1454         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1455         that we are compiling in checking mode, and if not C++, and
1456         if not already wrapping fwrite for some other reason.
1457         (fwrite): #define to rpl_fwrite if the latter is defined.
1458
1459 2011-03-20  Bruno Haible  <bruno@clisp.org>
1460
1461         verror: Fix compilation error introduced on 2011-02-13.
1462         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1463         instead of __attribute__.
1464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1465
1466 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1467             Bruno Haible  <bruno@clisp.org>
1468
1469         socklen: do not depend on sys_socket
1470         While trying to modify Emacs to use gnulib's socklen module,
1471         I discovered a circular dependency: socklen depends on sys_socket
1472         and vice versa.  Emacs can use socklen, but it does not need
1473         sys_socket because it has its own substitute for sys/socket.h.
1474         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1475         gl_TYPE_SOCKLEN_T.
1476         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1477         gl_PREREQ_SYS_H_SOCKET.
1478         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1479         gl_PREREQ_SYS_H_SOCKET.
1480         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1481         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1482         * modules/socklen (Depends-on): Do not depend on sys_socket.
1483         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1484
1485 2011-03-20  Jim Meyering  <meyering@redhat.com>
1486
1487         maint.mk: sort file names *after* new transformation
1488         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1489         prefix would have led to an unwarranted failure in GNU parted.
1490         Sort after that transformation.
1491
1492 2011-03-19  Jim Meyering  <meyering@redhat.com>
1493
1494         maint.mk: fix po-file syntax-check rule
1495         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1496         Patch by Bruno Haible.
1497
1498 2011-03-19  Bruno Haible  <bruno@clisp.org>
1499
1500         socklen: Update comment.
1501         * m4/socklen.m4: Update comment about platforms.
1502
1503 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1504             Bruno Haible  <bruno@clisp.org>
1505
1506         inet_ntop, inet_pton: Simplify.
1507         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1508         documented to provide socklen_t and we already depend on sys_socket.
1509         * modules/inet_pton (Depends-on): Likewise.
1510         * lib/arpa_inet.in.h: Adjust comment.
1511
1512 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1513             Bruno Haible  <bruno@clisp.org>
1514
1515         netdb: Simplify.
1516         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1517         documented to provide socklen_t and we already depend on sys_socket.
1518         * lib/netdb.in.h: Adjust comment.
1519
1520 2011-03-19  Bruno Haible  <bruno@clisp.org>
1521
1522         sys_socket, netdb: Document problem with socklen_t.
1523         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1524         platforms.
1525         * doc/posix-headers/netdb.texi: Likewise.
1526
1527 2011-03-18  Eric Blake  <eblake@redhat.com>
1528
1529         maint.mk: let po check work in VPATH build
1530         * top/maint.mk (po_file): Allow cfg.mk override.
1531         (sc_po_check): Allow VPATH use.
1532         Reported by Jiri Denemark.
1533
1534 2011-03-16  Jim Meyering  <meyering@redhat.com>
1535
1536         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1537         Before, you would have had to create one .x-sc_ file per rule in order
1538         to exempt offending files.  Now, you may instead use a Make variable --
1539         usually defined in cfg.mk -- whose name identifies the affected rule.
1540         * top/maint.mk (_sc_excl): Define.
1541         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1542         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1543
1544 2011-03-13  Bruno Haible  <bruno@clisp.org>
1545
1546         ignore-value tests: Avoid warnings.
1547         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1548         empty for gcc < 3.4.
1549
1550 2011-03-13  Bruno Haible  <bruno@clisp.org>
1551
1552         passfd: Fix link error on Solaris.
1553         * modules/passfd (Description): Correct.
1554         (Depends-on): Add socketlib.
1555         (Link): New section.
1556         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1557
1558 2011-03-13  Bruno Haible  <bruno@clisp.org>
1559
1560         passfd: Fix link error on AIX 5.2.
1561         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1562
1563 2011-03-13  Bruno Haible  <bruno@clisp.org>
1564
1565         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1566         * lib/sys_socket.in.h: Include <stddef.h>.
1567         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1568         CMSG_FIRSTHDR. Remove unused variable.
1569
1570 2011-03-13  Bruno Haible  <bruno@clisp.org>
1571
1572         passfd: Fix compilation error on OpenBSD.
1573         * lib/passfd.c: Include <sys/uio.h>.
1574
1575 2011-03-13  Bruno Haible  <bruno@clisp.org>
1576
1577         passfd test: Fix warnings.
1578         * tests/test-passfd.c: Include <sys/wait.h>.
1579         (main): Fix typo.
1580
1581 2011-03-13  Bruno Haible  <bruno@clisp.org>
1582
1583         passfd module, part 4, tweaks.
1584         * tests/test-passfd.c: Reorder includes.
1585         (main): Fix perror and printf calls.
1586
1587 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1588
1589         passfd module, part 4.
1590         * modules/passfd-tests: New file.
1591         * tests/test-passfd.c: New file.
1592
1593 2011-03-13  Jim Meyering  <meyering@redhat.com>
1594
1595         Makefile: rely on GNU make; derive syntax-check rule names
1596         Rather than requiring that each sc_ rule be listed as a dependent
1597         of "check", use features of GNU make to derive the list.
1598         * Makefile (syntax-check-rules): Define.
1599         (check): Depend on the new variable, not the hard-coded list.
1600
1601 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1602             Bruno Haible  <bruno@clisp.org>
1603
1604         passfd module, part 3.
1605         * lib/passfd.h (recvfd): Add a flags argument.
1606         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1607         (recvfd): Add a flags argument.
1608         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1609         exists.
1610         * modules/passfd (Depends-on): Add cloexec.
1611         Suggested by Eric Blake.
1612
1613 2011-03-13  Bruno Haible  <bruno@clisp.org>
1614
1615         passfd module, part 2, tweaks.
1616         * modules/passfd (Files): Reorder.
1617         (Depends-on): Remove errno.
1618         (Include): Remove <sys/socket.h>, <sys/un.h>.
1619         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1620         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1621         specification header. Include <sys/socket.h> always. Don't include
1622         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1623         (sendfd): Clarify that it sets errno when it fails.
1624         (recvfd): Fix specification.
1625
1626 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1627
1628         passfd module, part 2.
1629         * modules/passfd: New file.
1630         * lib/passfd.h: New file.
1631         * lib/passfd.c: New file.
1632
1633 2011-03-12  Bruno Haible  <bruno@clisp.org>
1634
1635         wcswidth, mbswidth: Avoid integer overflow.
1636         * lib/wcswidth.c: Include <limits.h>.
1637         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1638         * lib/mbswidth.c: Include <limits.h>.
1639         (mbsnwidth): Avoid 'int' overflow.
1640         Reported by Jim Meyering.
1641
1642 2011-03-12  Bruno Haible  <bruno@clisp.org>
1643
1644         futimens, utimensat: Avoid endless recursion on Solaris 10.
1645         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1646         Solaris.
1647         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1648         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1649
1650 2011-03-11  Jim Meyering  <meyering@redhat.com>
1651
1652         maint.mk: relax a regexp to accommodate other formatting styles
1653         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1654         between "ngettext" and the following "(".
1655
1656 2011-03-11  Pádraig Brady <P@draigBrady.com>
1657
1658         maint.mk: suppress a false positive warning
1659         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1660         diagnostics are marked with ngettext.
1661
1662 2011-03-10  Eric Blake  <eblake@redhat.com>
1663
1664         wchar: add explicit dependencies, for Tru64
1665         * modules/mbmemcasecoll (Depends-on): Add wchar.
1666         * modules/mbtowc (Depends-on): Likewise.
1667         * modules/vasnprintf (Depends-on): Likewise.
1668         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1669         * modules/wctomb (Depends-on): Likewise.
1670         Reported by Peter O'Gorman.
1671
1672 2011-03-08  Bruno Haible  <bruno@clisp.org>
1673
1674         passfd module, part 1, tweaks.
1675         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1676         Improve indentation. Improve AC_MSG_CHECKING messages.
1677         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1678         gl_SOCKET_FAMILIES.
1679
1680 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1681
1682         passfd module, part 1.
1683         * m4/afunix.m4: New file.
1684         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1685         sockets.
1686
1687 2011-03-08  Bruno Haible  <bruno@clisp.org>
1688
1689         regex-quote: New API.
1690         * lib/regex-quote.h: Include <stdbool.h>.
1691         (struct regex_quote_spec): New type.
1692         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1693         New declarations.
1694         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1695         'const struct regex_quote_spec *' argument.
1696         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1697         (pcre_special): New constant.
1698         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1699         New functions.
1700         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1701         'const struct regex_quote_spec *' argument.
1702         * modules/regex-quote (Depends-on): Add stdbool.
1703         * tests/test-regex-quote.c (check): Update for new API. Add test for
1704         anchored results.
1705         * NEWS: Mention the API change.
1706         Reported by Reuben Thomas and Eric Blake.
1707
1708 2011-03-06  Bruno Haible  <bruno@clisp.org>
1709
1710         regex-quote: Fix creation of POSIX extended regular expressions.
1711         * lib/regex-quote.c (ere_special): Add grouping and alternation
1712         operators.
1713
1714 2011-03-05  Bruno Haible  <bruno@clisp.org>
1715
1716         doc: Improve doc regarding autopoint vs. gnulib.
1717         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1718         disable autopoint while running autoreconf.
1719         Suggested by Ralf Wildenhues.
1720
1721 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1722
1723         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1724         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1725
1726 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1727
1728         parse-duration: remove xalloc.h dependency
1729         * lib/parse-duration.c (parse_period): handle NULL return from
1730         strdup instead of calling xstrdup().
1731         * modules/parse-duration: remove "xalloc" dependency
1732
1733 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1734
1735         bootstrap: honor m4_base when running aclocal
1736         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1737
1738 2011-03-02  Jim Meyering  <meyering@redhat.com>
1739
1740         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1741         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1742         on request from Matt Booth.
1743
1744 2011-03-01  Eric Blake  <eblake@redhat.com>
1745
1746         test-link: work on Hurd
1747         * tests/test-link.h (test_link): Hurd rejects linking directories
1748         with EISDIR instead of the POSIX-mandated EPERM.
1749
1750 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1751
1752         stdio: simplify by moving files to printf-posix, sigpipe
1753         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1754         since this symbol is needed only if printf is replaced.
1755         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1756         Require gl_ASM_SYMBOL_PREFIX.
1757         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1758         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1759         (Depends-on): Add 'raise'.
1760         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1761         * modules/stdio (Files): Remove lib/stdio-write.c,
1762         m4/asm-underscore.m4.
1763         (Depends-on): Remove 'raise'.
1764
1765         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1766         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1767         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1768         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1769
1770 2011-02-28  Bruno Haible  <bruno@clisp.org>
1771
1772         localcharset: Assume ANSI C behaviour of free().
1773         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1774         calling free().
1775         Suggested by Simon Josefsson <simon@josefsson.org>.
1776
1777 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1778             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1779             Bruno Haible  <bruno@clisp.org>  (tiny change)
1780
1781         On Cygwin, use /proc file system instead of win32 API.
1782         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1783         Win32 file names.
1784         (DllMain): Simplify by removing Cygwin specific code.
1785         (find_shared_library_fullname): Use Linux specific implementation also
1786         for Cygwin.
1787         (get_shared_library_fullname): Update accordingly.
1788         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1789         Win32 file names.
1790         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1791         Cygwin specific code.
1792
1793 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1794             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1795
1796         Fix OpenMP flag detection for various Fortran compilers.
1797         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1798         OpenMP-conditional compilation construct, to force compile
1799         failure with missing OpenMP flag.
1800         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1801
1802 2011-02-25  Eric Blake  <eblake@redhat.com>
1803
1804         strstr: expand test coverage
1805         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1806         compilation.
1807         * tests/test-memmem.c (main): Duplicate tests.
1808         * tests/test-strcasestr.c (main): Likewise.
1809         * tests/test-c-strcasestr.c (main): Likewise.
1810
1811 2011-02-25  Jim Meyering  <meyering@redhat.com>
1812
1813         maint.mk: detect missing-NL-at-EOF, too
1814         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1815         it also detects when a file lacks a newline at EOF.
1816         (require_exactly_one_NL_at_EOF_): Renamed from
1817         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1818         since people may well have .x-sc_... file names tied to the
1819         existing name.  Suggested by Eric Blake.
1820
1821 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         dirname: move m4/dos.m4 functionality into lib/dosname.h
1824
1825         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1826         extracts symbols from it, puts them into config.h; but it's much
1827         easier to use the symbols directly.  filename.h already does this,
1828         but it disagrees with dos.m4 in some respects.  This patch
1829         introduces a different include file dosname.h that packages up
1830         dos.m4, and then later we can work on merging filename.h and
1831         dosname.h.  Applications that need only the easy-to-configure
1832         symbols should consider including dosname.h rather than dirname.h.
1833         * NEWS: Mention incompatible changes.
1834         * m4/dos.m4: Remove.
1835         * lib/dosname.h, modules/dosname: New files.
1836         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1837         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1838         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1839         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1840         Include dosname.h, not dirname.h.
1841         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1842         Include dosname.h, for definitions of symbols like ISSLASH
1843         that used to be in config.h.
1844         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1845         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1846         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1847         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1848         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1849         * modules/rmdir (Files): Likewise.
1850         * modules/stat (Files): Likewise.
1851         * modules/unlink (Files): Likewise.
1852         * modules/dirname-lgpl (Depends-on): Add dosname.
1853         * modules/lstat (Depends-on): Likewise.
1854         * modules/openat (Depends-on): Likewise.
1855         * modules/rmdir (Depends-on): Likewise.
1856         * modules/savewd (Depends-on): Likewise.
1857         * modules/stat (Depends-on): Likewise.
1858         * modules/unlink (Depends-on): Likewise.
1859         * modules/openat (Depends-on): Remove dirname-lgpl.
1860         * modules/savewd (Depends-on): Likewise.
1861         * tests/test-dirname.c: Do not use removed symbols like
1862         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1863         the remaining symbols, e.g., ISSLASH ('\\').
1864
1865 2011-02-25  Eric Blake  <eblake@redhat.com>
1866
1867         strstr: revert patches that introduced bug and pessimization
1868         * lib/str-two-way.h: Add another reference.
1869         (two_way_short_needle, two_way_long_needle): Revert changes from
1870         2011-02-24; they pessimize search speed.
1871         (critical_factorization): Partially revert changes from
1872         2010-06-22; they violate the requirement that the left half of the
1873         needle be smaller than the period of the needle.
1874
1875 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         filenamecat: remove unnecessary dependency on dirname-lgpl
1878         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1879         is no direct dependency, just an indirect one via filenamecat-lgpl.
1880
1881         remove: remove unnecessary use of m4/dos.m4
1882         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1883         * modules/remove (FILES): Remove m4/dos.m4.
1884
1885         * lib/openat-proc.c: Don't include dirname.h; not needed.
1886
1887         backupfile: remove unnecessary use of m4/dos.m4
1888         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1889         of its symbols are used by the backupfile code.  backupfile.c does
1890         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1891         for the rare case of programs that want all their backup file
1892         names to live within 8+3 limits, and dos.m4 doesn't address that.
1893         * modules/backupfile (Files): Remove m4/dos.m4.
1894
1895 2011-02-24  Jim Meyering  <meyering@redhat.com>
1896
1897         strstr: fix a bug whereby strstr would mistakenly return NULL
1898         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1899         in period calculation.
1900         (two_way_long_needle): Likewise.
1901         The original problem was reported by Mike Stump in
1902         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1903         Ralf Wildenhues provided the short needle and haystack.
1904         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1905         Add a more involved test to trigger the bug in two_way_long_needle.
1906
1907 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1908
1909         gnulib-tool: remove use of bold display in help screen
1910         * gnulib-tool (func_usage): Do not use bold display anymore in the
1911         help screen.  That was just meant to be a temporary emphasis for a
1912         backward-incompatible change.
1913
1914 2011-02-23  Bruno Haible  <bruno@clisp.org>
1915
1916         Fix misindentation of preprocessor directives.
1917         * lib/argp-namefrob.h: Reindent preprocessor directives.
1918         * lib/getopt_int.h (struct _getopt_data): Likewise.
1919         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1920         * lib/vasnprintf.c (decode_long_double): Likewise.
1921         * tests/test-argmatch.c: Insert blank lines, for clarity.
1922         * tests/test-exclude.c: Likewise.
1923
1924 2011-02-22  Bruno Haible  <bruno@clisp.org>
1925
1926         ioctl: Fix for MacOS X in 64-bit mode.
1927         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1928         value.
1929         Suggested by Eric Blake.
1930         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1931
1932 2011-02-22  Jim Meyering  <meyering@redhat.com>
1933
1934         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1935         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1936         in lib/.
1937
1938 2011-02-22  Eric Blake  <eblake@redhat.com>
1939
1940         maint: avoid any CDPATH issue
1941         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1942
1943         maint: adjust cpp indentation for my modules, as well
1944         * Makefile (sc_cpp_indent_check): Add my name.
1945         * lib/fbufmode.c: Filter through cppi.
1946         * lib/fpurge.c: Likewise.
1947         * lib/freadable.c: Likewise.
1948         * lib/freading.c: Likewise.
1949         * lib/fwritable.c: Likewise.
1950         * lib/fwriting.c: Likewise.
1951         * lib/sigaction.c: Likewise.
1952
1953 2011-02-22  Jim Meyering  <meyering@redhat.com>
1954
1955         maint: adjust cpp indentation to reflect nesting depth
1956         I.e., in a block of code that begins with an unnested "#if",
1957         put one space between the "#" in column 1 and following token.
1958         For example,
1959         -#include <sys/vfs.h>
1960         +# include <sys/vfs.h>
1961         Do this only in .c files that are part of a module I maintain.
1962         * lib/linkat.c: Filter through cppi.
1963         * lib/nanosleep.c: Likewise.
1964         * lib/openat.c: Likewise.
1965         * lib/openat-die.c: Likewise.
1966         * lib/dup3.c: Likewise.
1967         * lib/fchownat.c: Likewise.
1968         * lib/flock.c: Likewise.
1969         * lib/fsync.c: Likewise.
1970         * lib/fts.c: Likewise.
1971         * lib/getpass.c: Likewise.
1972         * lib/gettimeofday.c: Likewise.
1973         * lib/userspec.c: Likewise.
1974         * Makefile (sc_cpp_indent_check): New rule, to check this.
1975
1976 2011-02-22  Bruno Haible  <bruno@clisp.org>
1977
1978         New module 'wctomb'.
1979         * lib/stdlib.in.h (wctomb): New declaration.
1980         * lib/wctomb.c: New file.
1981         * lib/wctomb-impl.h: New file.
1982         * m4/wctomb.m4: New file.
1983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1984         REPLACE_WCTOMB.
1985         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1986         REPLACE_WCTOMB.
1987         * modules/wctomb: New file.
1988         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1989         * doc/posix-functions/wctomb.texi: Mention the new module.
1990         * modules/wctob (Depends-on): Add wctomb.
1991
1992 2011-02-22  Bruno Haible  <bruno@clisp.org>
1993
1994         New module 'mbtowc'.
1995         * lib/stdlib.in.h (mbtowc): New declaration.
1996         * lib/mbtowc.c: New file.
1997         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1998         * m4/mbtowc.m4: New file.
1999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2000         REPLACE_MBTOWC.
2001         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2002         REPLACE_MBTOWC.
2003         * modules/mbtowc: New file.
2004         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2005         * doc/posix-functions/mbtowc.texi: Mention the new module.
2006         * modules/btowc (Depends-on): Add mbtowc.
2007
2008 2011-02-22  Bruno Haible  <bruno@clisp.org>
2009
2010         wcrtomb: Add more tests for native Windows platforms.
2011         * tests/test-wcrtomb-w32-1.sh: New file.
2012         * tests/test-wcrtomb-w32-2.sh: New file.
2013         * tests/test-wcrtomb-w32-3.sh: New file.
2014         * tests/test-wcrtomb-w32-4.sh: New file.
2015         * tests/test-wcrtomb-w32-5.sh: New file.
2016         * tests/test-wcrtomb-w32.c: New file.
2017         * modules/wcrtomb-tests (Files): Add them.
2018         (Makefile.am): Arrange to run these tests.
2019         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2020         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2021
2022 2011-02-20  Bruno Haible  <bruno@clisp.org>
2023
2024         wcrtomb: Enhance test.
2025         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2026
2027 2011-02-20  Bruno Haible  <bruno@clisp.org>
2028
2029         mbrtowc: Tiny optimization.
2030         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2031
2032 2011-02-20  Jim Meyering  <meyering@redhat.com>
2033
2034         test-exclude.c: remove unmatched #endif
2035         * tests/test-exclude.c: Remove stray #endif, left over from
2036         the change of a week ago.
2037
2038 2011-02-19  Jim Meyering  <meyering@redhat.com>
2039
2040         git-version-gen: skip "-dirty" check when appropriate
2041         * build-aux/git-version-gen: Don't run any git commands when the
2042         version string comes from .tarball-version.  Prior to this, we
2043         would run git update-index --refresh even from a just-unpacked
2044         tarball directory, and that could affect a .git/ directory in a
2045         parent of the build directory.  Reported by Mike Frysinger.
2046
2047 2011-02-19  Bruno Haible  <bruno@clisp.org>
2048
2049         unictype/property-byname: Reduce the size of the 'data' segment.
2050         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2051
2052 2011-02-19  Bruno Haible  <bruno@clisp.org>
2053
2054         unictype/scripts: Reduce the size of the 'data' segment.
2055         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2056         '%pic'.
2057         * lib/unictype/scripts_byname.gperf: Regenerated.
2058
2059 2011-02-19  Bruno Haible  <bruno@clisp.org>
2060
2061         stdint: Update documentation.
2062         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2063
2064 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2065
2066         stdint: omit redundant check for wchar.h
2067         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2068         always tests whether wchar.h exists, so remove the now-redundant test.
2069
2070 2011-02-18  Bruno Haible  <bruno@clisp.org>
2071
2072         stdint: Cut dependency to module 'wchar'.
2073         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2074         include the necessary prerequisites.
2075         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2076         * modules/stdint (Depends-on): Remove wchar.
2077         (Makefile.am): Substitute HAVE_WCHAR_H.
2078         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2079
2080 2011-02-18  Eric Blake  <eblake@redhat.com>
2081
2082         longlong: skip, rather than fail, on cross-compilation
2083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2084         when cross-compiling; regression from 2011-02-16.
2085
2086 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2087
2088         * NEWS: Mention 2011-02-08 change to stdlib.
2089
2090 2011-02-17  Bruno Haible  <bruno@clisp.org>
2091
2092         getloadavg: Add comments about platforms.
2093         * m4/getloadavg.m4: Add comment.
2094         * lib/getloadavg.c: Likewise.
2095
2096 2011-02-17  Bruno Haible  <bruno@clisp.org>
2097
2098         getloadavg: Fix link error on Solaris 2.6.
2099         * modules/getloadavg (Link): New section.
2100         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2101         linking test-getloadavg.
2102         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2103         getloadavg.
2104
2105 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2106
2107         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2108         It was 'int', but this doesn't match the IRIX 6.5 manual.
2109         Suggested by Bruno Haible in
2110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2111
2112 2011-02-17  Bruno Haible  <bruno@clisp.org>
2113
2114         havelib: Fix comments.
2115         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2116         change.
2117
2118 2011-02-17  Bruno Haible  <bruno@clisp.org>
2119
2120         havelib: Update config.rpath.
2121         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2122
2123 2011-02-17  Bruno Haible  <bruno@clisp.org>
2124
2125         getloadavg test: Add some plausibility checks.
2126         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2127         is improbable.
2128
2129 2011-02-16  Eric Blake  <eblake@redhat.com>
2130
2131         maintainer-makefile: make syntax-check a no-op from tarballs
2132         * top/maint.mk (no-vc-detected): New rule.
2133         (local-checks-available): Use it to avoid hanging if someone tries
2134         'make syntax-check' from a tarball.  Also append to any non-syntax
2135         checks already defined in cfg.mk.
2136
2137 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2138
2139         longlong: tune, particularly for common case of c99
2140
2141         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2142         or running anything if c99, or if unsigned long long int does not
2143         work.  In either case, we know the answer without further tests.
2144         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2145         it at most once, and use its results for both long long int and
2146         unsigned long long int.  This is more likely to be efficient in
2147         the common case where the program wants to check for both long
2148         long int and unsigned long long int.
2149         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2150         since the answer is already known.
2151
2152 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2153
2154         getloadavg: set errno
2155         * lib/getloadavg.c: Set errno when returning -1.  If no other
2156         error number looks appropriate, set it to ENOSYS if the getloadavg
2157         looks like it can't possibly ever work, ENOTSUP otherwise.
2158         Suggested by Bruno Haible in
2159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2160
2161         getloadavg: trim unused parts and speed up 'configure'
2162         * NEWS: Document this.
2163         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2164         always compiled if getloadavg is absent.
2165         Move test code to ...
2166         * tests/test-getloadavg.c: New file, containing previous
2167         contents of test from lib/getloadavg.c.  It also contains
2168         suggestions by Bruno Haible in
2169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2170         * modules/getloadavg-tests: New file.
2171         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2172         Do tests in the same order as they're needed for getloadavg.c.
2173         Omit setgid-related tests that generate symbols KMEM_GROUP,
2174         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2175         Do only the tests that are needed to see whether the system has
2176         getloadavg, moving the other tests into ...
2177         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2178         NLIST_NAME_UNION; nobody should be using it.  Do not define
2179         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2180         relevant, as the user of this module shouldn't care how getloadavg
2181         is implemented.
2182
2183         getloadavg: omit unused var
2184         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2185
2186 2011-02-15  Jim Meyering  <meyering@redhat.com>
2187
2188         doc: update users.txt
2189         * users.txt: Update iwhd's URL.
2190
2191 2011-02-13  Bruno Haible  <bruno@clisp.org>
2192
2193         Consistent macro naming for macros that use GCC __attribute__.
2194         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2195         _ATTRIBUTE_NONNULL_.
2196         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2197         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2198         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2199         ATTRIBUTE_DEPRECATED.
2200         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2201         ATTRIBUTE_NORETURN.
2202         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2203         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2204         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2205         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2206         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2207         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2208         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2209         ATTRIBUTE_SENTINEL.
2210         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2211         ATTRIBUTE_RETURN_CHECK.
2212         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2213         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2214         ATTRIBUTE_NORETURN.
2215         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2216         Reported by Paul Eggert.
2217
2218 2011-02-13  Bruno Haible  <bruno@clisp.org>
2219
2220         Don't interfere with a program's definition of __attribute__.
2221         * lib/argp.h (__attribute__): Remove definition.
2222         (_GL_ATTRIBUTE_FORMAT): New macro.
2223         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2224         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2225         (_GL_ATTRIBUTE_FORMAT): New macro.
2226         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2227         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2228         GCC 3 or newer.
2229         * lib/error.h (__attribute__): Remove definition.
2230         (_GL_ATTRIBUTE_FORMAT): New macro.
2231         (error, error_at_line): Use it.
2232         * lib/hash.h (__attribute__): Remove definition.
2233         (ATTRIBUTE_WUR): Update definition. Define always.
2234         * lib/openat.h (__attribute__): Remove definition.
2235         (ATTRIBUTE_NORETURN): Update definition. Define always.
2236         * lib/sigpipe-die.h (__attribute__): Remove definition.
2237         (ATTRIBUTE_NORETURN): Update definition. Define always.
2238         * lib/vasnprintf.h (__attribute__): Remove definition.
2239         (_GL_ATTRIBUTE_FORMAT): New macro.
2240         (asnprintf, vasnprintf): Use it.
2241         * lib/xalloc.h (__attribute__): Remove definition.
2242         (ATTRIBUTE_NORETURN): Update definition. Define always.
2243         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2244         * lib/xmemdup0.h (__attribute__): Remove definition.
2245         (ATTRIBUTE_NORETURN): Update definition. Define always.
2246         * lib/xprintf.h (__attribute__): Remove definition.
2247         (_GL_ATTRIBUTE_FORMAT): New macro.
2248         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2249         * lib/xstrtol.h (__attribute__): Remove definition.
2250         (ATTRIBUTE_NORETURN): Update definition. Define always.
2251         * lib/xvasprintf.h (__attribute__): Remove definition.
2252         (_GL_ATTRIBUTE_FORMAT): New macro.
2253         (xasprintf, xvasprintf): Use it.
2254         * tests/test-argmatch.c (__attribute__): Remove definition.
2255         (ATTRIBUTE_NORETURN): Update definition. Define always.
2256         * tests/test-exclude.c (__attribute__): Remove definition.
2257         (ATTRIBUTE_NORETURN): Update definition. Define always.
2258         Reported by Paul Eggert.
2259
2260 2011-02-13  Bruno Haible  <bruno@clisp.org>
2261
2262         mbrtowc: Add more tests for native Windows platforms.
2263         * tests/test-mbrtowc-w32-1.sh: New file.
2264         * tests/test-mbrtowc-w32-2.sh: New file.
2265         * tests/test-mbrtowc-w32-3.sh: New file.
2266         * tests/test-mbrtowc-w32-4.sh: New file.
2267         * tests/test-mbrtowc-w32-5.sh: New file.
2268         * tests/test-mbrtowc-w32.c: New file.
2269         * modules/mbrtowc-tests (Files): Add them.
2270         (Makefile.am): Arrange to run these tests.
2271         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2272         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2273
2274 2011-02-13  Bruno Haible  <bruno@clisp.org>
2275
2276         mbrtowc: Work around native Windows bug.
2277         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2278         guess when no suitable locale for testing was found.
2279         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2280
2281 2011-02-13  Bruno Haible  <bruno@clisp.org>
2282
2283         mbsinit: Work around mingw bug.
2284         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2285         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2286         Windows.
2287         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2288
2289 2011-02-13  Bruno Haible  <bruno@clisp.org>
2290
2291         mbsinit: Don't crash for a NULL argument.
2292         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2293         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2294
2295 2011-02-13  Bruno Haible  <bruno@clisp.org>
2296
2297         Don't interfere with a program's definition of __attribute__.
2298         * lib/stdio.in.h (__attribute__): Remove definition.
2299         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2300         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2301         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2302         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2303         * lib/string.in.h (__attribute__): Remove definition.
2304         Reported by Paul Eggert.
2305
2306 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2307
2308         stdlib: don't get in the way of non-GCC __attribute__
2309         See thread starting at
2310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2311         Revert previous stdlib change, installing the following instead:
2312         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2313         to get in the way of a non-GCC compiler that supports __attribute__.
2314         (_GL_ATTRIBUTE_RETURN): New macro.
2315         (_Exit): Use it instead of __attribute__.
2316
2317 2011-02-12  Bruno Haible  <bruno@clisp.org>
2318
2319         quotearg test: Avoid test failure on mingw.
2320         * tests/test-quotearg.sh: Convert the locale identifier from native
2321         Windows syntax to Unix syntax.
2322
2323 2011-02-12  Bruno Haible  <bruno@clisp.org>
2324
2325         setlocale: Prefer gnulib's override over libintl's override.
2326         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2327         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2328         GNULIB_defined_setlocale is set.
2329
2330 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2331
2332         stdlib: support non-GCC __attribute__
2333
2334         Fix a serious and tricky problem encountered when attempting to
2335         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2336         5.5, but it crashed due to memory corruption on Solaris 10 with
2337         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2338         bits that are otherwise zero.  This tagging is optional inside
2339         Emacs but is preferred and is used when __attribute__ ((__aligned
2340         (8))) works, as it does with both recent-enough GCC and with Sun C
2341         5.11.  However, Sun C 5.11 is not GCC and does not #define
2342         __GNUC__ and __GNUC_MINOR__.
2343
2344         When I added the getloadavg module to Emacs, it brought in
2345         stdlib.in.h, which contained this fragment:
2346
2347            #ifndef __attribute__
2348            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2349            #  define __attribute__(Spec)   /* empty */
2350            # endif
2351            #endif
2352
2353         When files that include <stdlib.h> were compiled with Sun C 5.11,
2354         the above code disabled __attribute__ ((__aligned (8))), which
2355         caused variables to not be properly aligned, which eventually led
2356         to the pointer corruption mentioned above.  (This was a bit hard
2357         to diagnose, unfortunately.)
2358
2359         Several "#define __attribute__(X) /* empty */" code snippets need
2360         to be eradicated from Gnulib to work with non-GCC compilers that
2361         support __attribute__.  The Autoconf way to do this is to test for
2362         each kind of attribute that we want support for, and selectively
2363         enable that in source code.
2364
2365         Fix this problem just for stdlib.h, by adding a test for the
2366         __noreturn__ attribute, and change stdlib.in.h to use that test
2367         when needed.  This technique can be easily generalized to the
2368         other *.in.h files and attributes, and a similar technique can be
2369         used for *.h and *.c files.  This patch is enough to solve the
2370         problem for Emacs + getloadavg, and I thought I'd publish it for
2371         feedback before undertaking further, similar fixes in other
2372         modules.
2373
2374         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2375         because it's not needed for stdlib.h.  It merely substitutes the
2376         value directly into stdlib.h.  We may well need to #define it, or
2377         similar symbols, for other modules, but it's nice to also have an
2378         option to not #define it for applications like Emacs that do not
2379         need it.
2380
2381         * lib/stdlib.in.h (__attribute__): Do not #define.
2382         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2383         be defined only if the _Exit module is also used.
2384         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2386         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2387         platforms.
2388         * modules/_Exit (Files): Add m4/attribute.m4.
2389         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2390         * m4/attribute.m4: New file.
2391
2392 2011-02-12  Bruno Haible  <bruno@clisp.org>
2393
2394         wcsrtombs: Work around bug on native Windows.
2395         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2396         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2397         instead of len.
2398         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2399
2400 2011-02-12  Bruno Haible  <bruno@clisp.org>
2401
2402         mbsrtowcs: Work around bug on native Windows.
2403         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2404         against mingw bug.
2405         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2406
2407 2011-02-12  Bruno Haible  <bruno@clisp.org>
2408
2409         Avoid setlocale bugs in tests.
2410         * modules/btowc (Dependencies): Add setlocale.
2411         * modules/c-strcase (Dependencies): Likewise.
2412         * modules/mbmemcasecmp (Dependencies): Likewise.
2413         * modules/mbmemcasecoll (Dependencies): Likewise.
2414         * modules/mbrtowc (Dependencies): Likewise.
2415         * modules/mbscasecmp (Dependencies): Likewise.
2416         * modules/mbscasestr (Dependencies): Likewise.
2417         * modules/mbschr (Dependencies): Likewise.
2418         * modules/mbscspn (Dependencies): Likewise.
2419         * modules/mbsinit (Dependencies): Likewise.
2420         * modules/mbsncasecmp (Dependencies): Likewise.
2421         * modules/mbsnrtowcs (Dependencies): Likewise.
2422         * modules/mbspbrk (Dependencies): Likewise.
2423         * modules/mbspcasecmp (Dependencies): Likewise.
2424         * modules/mbsrchr (Dependencies): Likewise.
2425         * modules/mbsrtowcs (Dependencies): Likewise.
2426         * modules/mbsspn (Dependencies): Likewise.
2427         * modules/mbsstr (Dependencies): Likewise.
2428         * modules/nl_langinfo (Dependencies): Likewise.
2429         * modules/quotearg (Dependencies): Likewise.
2430         * modules/unicase/locale-language (Dependencies): Likewise.
2431         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2432         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2433         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2434         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2435         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2436         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2437         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2438         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2439         * modules/vasnprintf-posix (Dependencies): Likewise.
2440         * modules/wcrtomb (Dependencies): Likewise.
2441         * modules/wcsnrtombs (Dependencies): Likewise.
2442         * modules/wcsrtombs (Dependencies): Likewise.
2443
2444 2011-02-12  Bruno Haible  <bruno@clisp.org>
2445
2446         setlocale: Workaround native Windows bug.
2447         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2448         succeeds but sets LC_CTYPE to "C", report a failure.
2449         * tests/test-setlocale2.sh: New file.
2450         * tests/test-setlocale2.c: New file.
2451         * modules/setlocale-tests (Files): Add the new files.
2452         (Makefile.am): Enable test-setlocale2.sh test.
2453         * doc/posix-functions/setlocale.texi: Mention workaround.
2454
2455 2011-02-11  Bruno Haible  <bruno@clisp.org>
2456
2457         Tests for module 'setlocale'.
2458         * modules/setlocale-tests: New file.
2459         * tests/test-setlocale1.sh: New file.
2460         * tests/test-setlocale1.c: New file.
2461
2462         New module 'setlocale'.
2463         * lib/locale.in.h (setlocale): New declaration.
2464         * lib/setlocale.c: New file, based on
2465         gettext/gettext-runtime/intl/setlocale.c.
2466         * m4/setlocale.m4: New file.
2467         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2468         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2469         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2470         REPLACE_SETLOCALE.
2471         * modules/setlocale: New file.
2472         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2473         * doc/posix-functions/setlocale.texi: Mention the new module.
2474
2475 2011-02-11  Bruno Haible  <bruno@clisp.org>
2476
2477         Prepare for locale dependent tests on mingw.
2478         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2479         because it has the wrong locale encoding.
2480         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2481         French_France.1252 instead of "fr".
2482         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2483         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2484         because it has the wrong locale encoding.
2485         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2486         native Windows, try Turkish_Turkey.65001.
2487         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2488         Chinese_China.54936.
2489
2490         Prepare for locale dependent tests on mingw.
2491         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2492         differently.
2493         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2494         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2495         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2496         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2497
2498 2011-02-11  Eric Blake  <eblake@redhat.com>
2499
2500         strptime: avoid compiler warnings
2501         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2502         compiler warnings about dead code.
2503         Reported by Daniel P. Berrange.
2504
2505 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2506
2507         doc: update users.txt
2508         * users.txt: Add rcs.
2509
2510 2011-02-10  John W. Eaton  <jwe@gnu.org>
2511
2512         doc: update users.txt
2513         * users.txt: Add octave.
2514
2515 2011-02-10  Jim Meyering  <meyering@redhat.com>
2516
2517         doc: update users.txt
2518         * users.txt: Add iwhd.
2519
2520 2011-02-09  Bruno Haible  <bruno@clisp.org>
2521
2522         gnulib-tool: Make copyright notice adjustment more robust.
2523         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2524         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2525         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2526         License".
2527         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2528
2529 2011-02-06  Bruno Haible  <bruno@clisp.org>
2530
2531         New module 'towctrans'.
2532         * modules/towctrans: New file.
2533         * lib/wctype.in.h (towctrans): New declaration.
2534         * lib/towctrans.c: New file.
2535         * lib/towctrans-impl.h: New file.
2536         * m4/towctrans.m4: New file.
2537         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2538         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2539         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2540         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2541         * doc/posix-functions/towctrans.texi: Mention the new module.
2542
2543 2011-02-06  Bruno Haible  <bruno@clisp.org>
2544
2545         New module 'wctrans'.
2546         * modules/wctrans: New file.
2547         * lib/wctype.in.h (wctrans): New declaration.
2548         * lib/wctrans.c: New file.
2549         * lib/wctrans-impl.h: New file.
2550         * m4/wctrans.m4: New file.
2551         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2552         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2553         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2554         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2555         * doc/posix-functions/wctrans.texi: Mention the new module.
2556
2557 2011-02-06  Bruno Haible  <bruno@clisp.org>
2558
2559         New module 'iswctype'.
2560         * modules/iswctype: New file.
2561         * lib/wctype.in.h (iswctype): New declaration.
2562         * lib/iswctype.c: New file.
2563         * lib/iswctype-impl.h: New file.
2564         * m4/iswctype.m4: New file.
2565         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2566         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2567         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2568         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2569         * doc/posix-functions/iswctype.texi: Mention the new module and the
2570         HP-UX 11.00 problem.
2571
2572 2011-02-06  Bruno Haible  <bruno@clisp.org>
2573
2574         New module 'wctype'.
2575         * modules/wctype: Change to represent the wctype() substitute.
2576         * lib/wctype.in.h (wctype): New declaration.
2577         * lib/wctype.c: New file.
2578         * lib/wctype-impl.h: New file.
2579         * m4/wctype.m4: New file.
2580         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2581         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2582         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2583         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2584         * doc/posix-functions/wctype.texi: Mention the new module and the
2585         HP-UX 11.00 problem.
2586
2587 2011-02-06  Bruno Haible  <bruno@clisp.org>
2588
2589         wctype-h: Ensure wctype_t and wctrans_t are defined.
2590         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2591         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2592         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2593         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2594         HAVE_WCTRANS_T.
2595         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2596
2597 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         flock: fix license typo
2600
2601         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2602         omitted.
2603
2604 2011-02-08  Bruno Haible  <bruno@clisp.org>
2605
2606         Split large sed scripts, for HP-UX sed.
2607         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2608         to avoid HP-UX limit of 99 commands, in the near future.
2609         * modules/stdlib (Makefile.am): Likewise.
2610         * modules/unistd (Makefile.am): Likewise.
2611         * modules/wchar (Makefile.am): Likewise.
2612         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2613         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2614         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2615
2616 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2617             Bruno Haible  <bruno@clisp.org>
2618
2619         stdlib: improve random_r modularization
2620         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2621         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2622         you also need the random_r module to get this material right.
2623         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2624         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2625         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2626
2627 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2628
2629         stdlib: don't depend on stdint
2630         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2631         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2632         be independent of whether stdint.h is needed.
2633         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2634         here, instead of ...
2635         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2636         struct random_data should be using the random_r module, not just
2637         the stdlib module (which wouldn't make sense: what package needs
2638         just struct random_data without also needing random_r?).
2639         * modules/stdlib (Depends-on): Remove stdint.
2640
2641         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2642         See the thread rooted at
2643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2644         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2645         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2646         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2647         __VMS)); previously it was always included (via fcntl--.h).
2648         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2649         hand; this is good enough for load averages.  Also, do not use
2650         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2651         flags directly if available and don't bother otherwise.  (Packages
2652         that need the extra reliability should use the modules that define
2653         these flags on older platforms that lack them.)
2654         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2655         fcntl-safer.
2656
2657 2011-02-08  Jim Meyering  <meyering@redhat.com>
2658
2659         di-set.h, ino-map.h: add multiple-inclusion guard
2660         Technically, the guard is required only for ino-map.h, due to its
2661         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2662         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2663         * lib/ino-map.h: Likewise.
2664
2665 2011-02-06  Bruno Haible  <bruno@clisp.org>
2666
2667         iswblank: Ensure declaration on glibc systems.
2668         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2669         * modules/iswblank (Dependencies): Add 'extensions'.
2670         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2671
2672 2011-02-06  Bruno Haible  <bruno@clisp.org>
2673
2674         New module 'iswblank'.
2675         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2676         * modules/iswblank: New file.
2677         * modules/wctype-h (Files): Remove lib/iswblank.c.
2678         (Makefile.am): Substitute GNULIB_ISWBLANK.
2679         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2680         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2681         (gl_WCTYPE_H_DEFAULTS): New macro.
2682         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2683         * modules/iswblank-tests: New file.
2684         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2685         * tests/test-wctype-h.c (main): Remove iswblank tests.
2686         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2687         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2688         of 'wctype-h'.
2689         * NEWS: Mention the change.
2690         * modules/mbchar (Depends-on): Add iswblank.
2691
2692 2011-02-08  Bruno Haible  <bruno@clisp.org>
2693
2694         di-set tests: Refactor.
2695         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2696         unnecessary includes.
2697         (ASSERT): Remove macro.
2698         (main): Make C90 compliant by avoiding variable declaration after
2699         statement.
2700         * modules/di-set-tests (Files): Add tests/macros.h.
2701
2702 2011-02-08  Bruno Haible  <bruno@clisp.org>
2703
2704         ino-map tests: Refactor.
2705         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2706         unnecessary includes.
2707         (ASSERT): Remove macro.
2708         (main): Make C90 compliant by avoiding variable declaration after
2709         statement.
2710         * modules/ino-map-tests (Files): Add tests/macros.h.
2711
2712 2011-02-08  Jim Meyering  <meyering@redhat.com>
2713
2714         di-set: add "const" to a cast
2715         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2716         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2717
2718 2011-02-06  Bruno Haible  <bruno@clisp.org>
2719
2720         Rename module 'wctype' to 'wctype-h'.
2721         * modules/wctype-h: Renamed from modules/wctype.
2722         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2723         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2724         (Files, Depends-on, Makefile.am): Update.
2725         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2726         (Files, Makefile.am): Update.
2727         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2728         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2729         * doc/posix-headers/wctype.texi: Update.
2730         * doc/posix-functions/iswalnum.texi: Update.
2731         * doc/posix-functions/iswalpha.texi: Update.
2732         * doc/posix-functions/iswblank.texi: Update.
2733         * doc/posix-functions/iswcntrl.texi: Update.
2734         * doc/posix-functions/iswdigit.texi: Update.
2735         * doc/posix-functions/iswgraph.texi: Update.
2736         * doc/posix-functions/iswlower.texi: Update.
2737         * doc/posix-functions/iswprint.texi: Update.
2738         * doc/posix-functions/iswpunct.texi: Update.
2739         * doc/posix-functions/iswspace.texi: Update.
2740         * doc/posix-functions/iswupper.texi: Update.
2741         * doc/posix-functions/iswxdigit.texi: Update.
2742         * doc/posix-functions/towlower.texi: Update.
2743         * doc/posix-functions/towupper.texi: Update.
2744         * NEWS: Mention the change.
2745         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2746         * modules/mbchar (Dependencies): Likewise.
2747         * modules/mbswidth (Dependencies): Likewise.
2748         * modules/quotearg (Dependencies): Likewise.
2749         * modules/regex (Dependencies): Likewise.
2750         * modules/wcscasecmp (Dependencies): Likewise.
2751         * modules/wcsncasecmp (Dependencies): Likewise.
2752         * modules/wcwidth (Dependencies): Likewise.
2753
2754 2011-02-06  Bruno Haible  <bruno@clisp.org>
2755
2756         New module 'wcswidth'.
2757         * modules/wcswidth: New file.
2758         * lib/wchar.in.h (wcswidth): New declaration.
2759         * lib/wcswidth.c: New file.
2760         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2761         * m4/wcswidth.m4: New file.
2762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2764         REPLACE_WCSWIDTH.
2765         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2766         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2767         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2768         * doc/posix-functions/wcswidth.texi: Mention the new module.
2769
2770 2011-02-06  Bruno Haible  <bruno@clisp.org>
2771
2772         New module 'wcstok'.
2773         * modules/wcstok: New file.
2774         * lib/wchar.in.h (wcstok): New declaration.
2775         * lib/wcstok.c: New file.
2776         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2777         * m4/wcstok.m4: New file.
2778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2781         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2782         * doc/posix-functions/wcstok.texi: Mention the new module.
2783
2784 2011-02-06  Bruno Haible  <bruno@clisp.org>
2785
2786         New module 'wcsstr'.
2787         * modules/wcsstr: New file.
2788         * lib/wchar.in.h (wcsstr): New declaration.
2789         * lib/wcsstr.c: New file.
2790         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2791         * m4/wcsstr.m4: New file.
2792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2795         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2796         * doc/posix-functions/wcsstr.texi: Mention the new module.
2797
2798 2011-02-06  Bruno Haible  <bruno@clisp.org>
2799
2800         New module 'wcspbrk'.
2801         * modules/wcspbrk: New file.
2802         * lib/wchar.in.h (wcspbrk): New declaration.
2803         * lib/wcspbrk.c: New file.
2804         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2805         * m4/wcspbrk.m4: New file.
2806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2809         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2810         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2811
2812 2011-02-06  Bruno Haible  <bruno@clisp.org>
2813
2814         New module 'wcsspn'.
2815         * modules/wcsspn: New file.
2816         * lib/wchar.in.h (wcsspn): New declaration.
2817         * lib/wcsspn.c: New file.
2818         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2819         * m4/wcsspn.m4: New file.
2820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2823         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2824         * doc/posix-functions/wcsspn.texi: Mention the new module.
2825
2826 2011-02-06  Bruno Haible  <bruno@clisp.org>
2827
2828         New module 'wcscspn'.
2829         * modules/wcscspn: New file.
2830         * lib/wchar.in.h (wcscspn): New declaration.
2831         * lib/wcscspn.c: New file.
2832         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2833         * m4/wcscspn.m4: New file.
2834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2837         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2838         * doc/posix-functions/wcscspn.texi: Mention the new module.
2839
2840 2011-02-06  Bruno Haible  <bruno@clisp.org>
2841
2842         New module 'wcsrchr'.
2843         * modules/wcsrchr: New file.
2844         * lib/wchar.in.h (wcsrchr): New declaration.
2845         * lib/wcsrchr.c: New file.
2846         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2847         * m4/wcsrchr.m4: New file.
2848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2851         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2852         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2853
2854 2011-02-06  Bruno Haible  <bruno@clisp.org>
2855
2856         New module 'wcschr'.
2857         * modules/wcschr: New file.
2858         * lib/wchar.in.h (wcschr): New declaration.
2859         * lib/wcschr.c: New file.
2860         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2861         * m4/wcschr.m4: New file.
2862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2865         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2866         * doc/posix-functions/wcschr.texi: Mention the new module.
2867
2868 2011-02-06  Bruno Haible  <bruno@clisp.org>
2869
2870         New module 'wcsdup'.
2871         * modules/wcsdup: New file.
2872         * lib/wchar.in.h (wcsdup): New declaration.
2873         * lib/wcsdup.c: New file.
2874         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2875         * m4/wcsdup.m4: New file.
2876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2879         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2880         * doc/posix-functions/wcsdup.texi: Mention the new module.
2881
2882 2011-02-06  Bruno Haible  <bruno@clisp.org>
2883
2884         New module 'wcsxfrm'.
2885         * modules/wcsxfrm: New file.
2886         * lib/wchar.in.h (wcsxfrm): New declaration.
2887         * lib/wcsxfrm.c: New file.
2888         * lib/wcsxfrm-impl.h: New file.
2889         * m4/wcsxfrm.m4: New file.
2890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2893         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2894         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2895
2896 2011-02-06  Bruno Haible  <bruno@clisp.org>
2897
2898         New module 'wcscoll'.
2899         * modules/wcscoll: New file.
2900         * lib/wchar.in.h (wcscoll): New declaration.
2901         * lib/wcscoll.c: New file.
2902         * lib/wcscoll-impl.h: New file.
2903         * m4/wcscoll.m4: New file.
2904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2907         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2908         * doc/posix-functions/wcscoll.texi: Mention the new module.
2909
2910 2011-02-06  Bruno Haible  <bruno@clisp.org>
2911
2912         New module 'wcsncasecmp'.
2913         * modules/wcsncasecmp: New file.
2914         * lib/wchar.in.h (wcsncasecmp): New declaration.
2915         * lib/wcsncasecmp.c: New file.
2916         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2917         * m4/wcsncasecmp.m4: New file.
2918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2921         HAVE_WCSNCASECMP.
2922         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2923         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2924
2925 2011-02-06  Bruno Haible  <bruno@clisp.org>
2926
2927         New module 'wcscasecmp'.
2928         * modules/wcscasecmp: New file.
2929         * lib/wchar.in.h (wcscasecmp): New declaration.
2930         * lib/wcscasecmp.c: New file.
2931         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2932         * m4/wcscasecmp.m4: New file.
2933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2935         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2936         HAVE_WCSCASECMP.
2937         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2938         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2939
2940 2011-02-05  Bruno Haible  <bruno@clisp.org>
2941
2942         New module 'wcsncmp'.
2943         * modules/wcsncmp: New file.
2944         * lib/wchar.in.h (wcsncmp): New declaration.
2945         * lib/wcsncmp.c: New file.
2946         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2947         * m4/wcsncmp.m4: New file.
2948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2951         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2952         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2953
2954 2011-02-05  Bruno Haible  <bruno@clisp.org>
2955
2956         New module 'wcscmp'.
2957         * modules/wcscmp: New file.
2958         * lib/wchar.in.h (wcscmp): New declaration.
2959         * lib/wcscmp.c: New file.
2960         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2961         * m4/wcscmp.m4: New file.
2962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2964         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2965         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2966         * doc/posix-functions/wcscmp.texi: Mention the new module.
2967
2968 2011-02-05  Bruno Haible  <bruno@clisp.org>
2969
2970         New module 'wcsncat'.
2971         * modules/wcsncat: New file.
2972         * lib/wchar.in.h (wcsncat): New declaration.
2973         * lib/wcsncat.c: New file.
2974         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2975         * m4/wcsncat.m4: New file.
2976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2979         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2980         * doc/posix-functions/wcsncat.texi: Mention the new module.
2981
2982 2011-02-05  Bruno Haible  <bruno@clisp.org>
2983
2984         New module 'wcscat'.
2985         * modules/wcscat: New file.
2986         * lib/wchar.in.h (wcscat): New declaration.
2987         * lib/wcscat.c: New file.
2988         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2989         * m4/wcscat.m4: New file.
2990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2993         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2994         * doc/posix-functions/wcscat.texi: Mention the new module.
2995
2996 2011-02-05  Bruno Haible  <bruno@clisp.org>
2997
2998         New module 'wcpncpy'.
2999         * modules/wcpncpy: New file.
3000         * lib/wchar.in.h (wcpncpy): New declaration.
3001         * lib/wcpncpy.c: New file.
3002         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3003         * m4/wcpncpy.m4: New file.
3004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3006         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3007         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3008         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3009
3010 2011-02-05  Bruno Haible  <bruno@clisp.org>
3011
3012         New module 'wcsncpy'.
3013         * modules/wcsncpy: New file.
3014         * lib/wchar.in.h (wcsncpy): New declaration.
3015         * lib/wcsncpy.c: New file.
3016         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3017         * m4/wcsncpy.m4: New file.
3018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3021         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3022         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3023
3024 2011-02-05  Bruno Haible  <bruno@clisp.org>
3025
3026         New module 'wcpcpy'.
3027         * modules/wcpcpy: New file.
3028         * lib/wchar.in.h (wcpcpy): New declaration.
3029         * lib/wcpcpy.c: New file.
3030         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3031         * m4/wcpcpy.m4: New file.
3032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3034         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3035         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3036         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3037
3038 2011-02-05  Bruno Haible  <bruno@clisp.org>
3039
3040         New module 'wcscpy'.
3041         * modules/wcscpy: New file.
3042         * lib/wchar.in.h (wcscpy): New declaration.
3043         * lib/wcscpy.c: New file.
3044         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3045         * m4/wcscpy.m4: New file.
3046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3049         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3050         * doc/posix-functions/wcscpy.texi: Mention the new module.
3051
3052 2011-02-05  Bruno Haible  <bruno@clisp.org>
3053
3054         New module 'wcsnlen'.
3055         * modules/wcsnlen: New file.
3056         * lib/wchar.in.h (wcsnlen): New declaration.
3057         * lib/wcsnlen.c: New file.
3058         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3059         * m4/wcsnlen.m4: New file.
3060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3063         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3064         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3065
3066 2011-02-05  Bruno Haible  <bruno@clisp.org>
3067
3068         New module 'wcslen'.
3069         * modules/wcslen: New file.
3070         * lib/wchar.in.h (wcslen): New declaration.
3071         * lib/wcslen.c: New file.
3072         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3073         * m4/wcslen.m4: New file.
3074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3077         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3078         * doc/posix-functions/wcslen.texi: Mention the new module.
3079
3080 2011-02-05  Bruno Haible  <bruno@clisp.org>
3081
3082         New module 'wmemset'.
3083         * modules/wmemset: New file.
3084         * lib/wchar.in.h (wmemset): New declaration.
3085         * lib/wmemset.c: New file.
3086         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3087         * m4/wmemset.m4: New file.
3088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3090         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3091         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3092         * doc/posix-functions/wmemset.texi: Mention the new module.
3093
3094 2011-02-05  Bruno Haible  <bruno@clisp.org>
3095
3096         New module 'wmemmove'.
3097         * modules/wmemmove: New file.
3098         * lib/wchar.in.h (wmemmove): New declaration.
3099         * lib/wmemmove.c: New file.
3100         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3101         * m4/wmemmove.m4: New file.
3102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3104         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3105         HAVE_WMEMMOVE.
3106         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3107         * doc/posix-functions/wmemmove.texi: Mention the new module.
3108
3109 2011-02-05  Bruno Haible  <bruno@clisp.org>
3110
3111         New module 'wmemcpy'.
3112         * modules/wmemcpy: New file.
3113         * lib/wchar.in.h (wmemcpy): New declaration.
3114         * lib/wmemcpy.c: New file.
3115         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3116         * m4/wmemcpy.m4: New file.
3117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3119         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3120         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3121         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3122
3123 2011-02-05  Bruno Haible  <bruno@clisp.org>
3124
3125         New module 'wmemcmp'.
3126         * modules/wmemcmp: New file.
3127         * lib/wchar.in.h (wmemcmp): New declaration.
3128         * lib/wmemcmp.c: New file.
3129         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3130         * m4/wmemcmp.m4: New file.
3131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3133         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3134         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3135         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3136
3137 2011-02-07  Jim Meyering  <meyering@redhat.com>
3138
3139         di-set, ino-map: new modules, from coreutils
3140         * lib/di-set.c: New file.
3141         * lib/di-set.h: Likewise.
3142         * lib/ino-map.c: Likewise.
3143         * lib/ino-map.h: Likewise.
3144         * modules/di-set: Likewise.
3145         * modules/di-set-tests: Likewise.
3146         * modules/ino-map: Likewise.
3147         * modules/ino-map-tests: Likewise.
3148         * tests/test-di-set.c: Likewise.
3149         * tests/test-ino-map.c: Likewise.
3150
3151 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3152
3153         getloadavg: merge minor changes from Emacs
3154
3155         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3156         (getloadavg): Use memset, not bzero.
3157
3158         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3159         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3160         clash (bug#86).
3161
3162 2010-11-14  Bruno Haible  <bruno@clisp.org>
3163
3164         Allow multiple gnulib generated replacements to coexist.
3165         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3166         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3167         * lib/langinfo.in.h (nl_item): Likewise.
3168         * lib/math.in.h (_NaN, NAN): Likewise.
3169         * lib/netdb.in.h (struct addrinfo): Likewise.
3170         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3171         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3172         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3173         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3174         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3175         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3176         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3177         pthread_mutexattr_init, pthread_mutexattr_settype,
3178         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3179         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3180         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3181         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3182         * lib/sched.in.h (struct sched_param): Likewise.
3183         * lib/se-selinux.in.h (security_class_t, security_context_t,
3184         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3185         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3186         lsetfilecon, fsetfilecon, security_check_context,
3187         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3188         Likewise.
3189         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3190         Likewise.
3191         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3192         _gl_function_taking_int_returning_void_t, union sigval,
3193         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3194         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3195         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3196         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3197         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3198         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3199         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3200         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3201         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3202         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3203         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3204         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3205         socklen_t, rpl_fd_isset): Likewise.
3206         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3207         * lib/sys_time.in.h (struct timeval): Likewise.
3208         * lib/sys_times.in.h (struct tms): Likewise.
3209         * lib/sys_utsname.in.h (struct utsname):
3210         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3211         * lib/unistd.in.h (getpagesize): Likewise.
3212         * lib/wchar.in.h (mbstate_t): Likewise.
3213         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3214         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3215         towlower, towupper): Likewise.
3216         Reported by Sam Steingold <sds@gnu.org>.
3217
3218 2011-02-05  Eric Blake  <eblake@redhat.com>
3219
3220         unsetenv: work around Haiku issues
3221         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3222         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3223
3224 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3225
3226         libposix: avoid calling error() within libposix
3227         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3228         is defined.
3229
3230 2011-02-05  Eric Blake  <eblake@redhat.com>
3231
3232         strerror_r-posix: port to cygwin
3233         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3234         implementation.
3235         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3236         * tests/test-strerror_r.c (main): Fix test.
3237         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3238         issue.
3239
3240 2011-02-05  Bruno Haible  <bruno@clisp.org>
3241
3242         New module 'wmemchr'.
3243         * modules/wmemchr: New file.
3244         * lib/wchar.in.h (wmemchr): New declaration.
3245         * lib/wmemchr.c: New file.
3246         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3247         * m4/wmemchr.m4: New file.
3248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3250         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3251         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3252         * doc/posix-functions/wmemchr.texi: Mention the new module.
3253
3254 2011-02-04  Eric Blake  <eblake@redhat.com>
3255
3256         fdopendir: detect FreeBSD bug
3257         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3258         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3259
3260 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3261
3262         stdbool: do not define HAVE_STDBOOL_H
3263         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3264         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3265         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3266         imported from the latest Autoconf git.  It was motivated by Emacs,
3267         which uses gnulib but does not need HAVE_STDBOOL_H.
3268
3269 2011-02-04  Bruno Haible  <bruno@clisp.org>
3270
3271         wcsnrtombs: Prepare for new module wwcsnrtombs.
3272         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3273         * lib/wcsnrtombs.c: Include it.
3274         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3275
3276         wcsrtombs: Prepare for new module wwcsrtombs.
3277         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3278         * lib/wcsrtombs.c: Include it.
3279         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3280
3281         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3282         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3283         * lib/mbsnrtowcs.c: Include it.
3284         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3285
3286         mbsrtowcs: Prepare for new module mbsrtowwcs.
3287         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3288         * lib/mbsrtowcs.c: Include it.
3289         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3290
3291 2011-02-04  Bruno Haible  <bruno@clisp.org>
3292
3293         vasnprintf: Reduce use of malloc for small format strings.
3294         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3295         (arguments): Add room for the first 7 arguments.
3296         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3297         (char_directives, u8_directives, u16_directives, u32_directives): Add
3298         room for the first 7 directives.
3299         * lib/printf-parse.c: Include <string.h>.
3300         (PRINTF_PARSE): Change memory handling code so that it uses the first
3301         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3302         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3303         Reported by Pádraig Brady <P@draigbrady.com>.
3304
3305 2011-01-31  Eric Blake  <eblake@redhat.com>
3306
3307         dup2: work around Haiku bug
3308         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3309         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3310         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3311         * tests/test-dup2.c (main): Enhance test.
3312
3313 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3314
3315         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3316         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3317         declared by eglibc 2.11.2.
3318         * lib/stdio.in.h: Likewise.
3319
3320 2011-01-31  Eric Blake  <eblake@redhat.com>
3321
3322         ignore-value: add missing test dependency
3323         * tests/test-ignore-value.c: Revert previous change; stdio.h
3324         provides off_t.
3325         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3326
3327 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3328
3329         mktime: clarify long_int width checking
3330         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3331         the top level, to make it clearer that the assumption about
3332         long_int width is being checked.  See
3333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3334
3335 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3336
3337         ignore-value: Fix self-test.
3338         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3339
3340 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3341
3342         TYPE_MAXIMUM: avoid theoretically undefined behavior
3343         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3344         negative number, which the C Standard says has undefined behavior.
3345         In practice this is not a problem, but might as well do it by the book.
3346         Reported by Rich Felker and Eric Blake; see
3347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3348         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3349         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3351         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3352         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3353         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3354
3355         mktime: #undef mktime before #defining it
3356         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3357
3358         mktime: systematically normalize tm_isdst comparisons
3359         * lib/mktime.c (isdst_differ): New function.
3360         (__mktime_internal): Use it systematically for all isdst comparisons.
3361         This completes the fix for libc BZ #6723, and removes the need for
3362         normalizing tm_isdst.  See
3363         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3364         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3365
3366         mktime: fix some integer overflow issues and sidestep the rest
3367
3368         This was prompted by a bug report by Benjamin Lindner for MinGW
3369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3370         His bug is due to signed integer overflow (0 - INT_MIN), and I
3371         I scanned through mktime.c looking for other integer overflow
3372         problems, fixing all the bugs I found.
3373
3374         Although the C Standard says the resulting code is still not safe
3375         in the presence of integer overflow, in practice it should be good
3376         enough for all real-world two's-complement implementations, except
3377         for debugging environments that deliberately trap on integer
3378         overflow (e.g., gcc -ftrapv).
3379
3380         * lib/mktime.c (WRAPV): New macro.
3381         (SHR): Also check that long_int and time_t shift right in the
3382         usual way, before using the fast-but-unportable method.
3383         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3384         used.  The code already assumed two's complement, so there's
3385         no need to test for alternatives.  All uses removed.
3386         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3387         the C standard.  Problem reported by Rich Felker in
3388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3389         (twos_complement_arithmetic): Also check long_int and time_t.
3390         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3391         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3392         (__mktime_internal): Avoid integer overflow with unary subtraction
3393         in two instances where -1 - X is an adequate replacement for -X,
3394         since the calculations are approximate.
3395
3396 2011-01-29  Eric Blake  <eblake@redhat.com>
3397
3398         mktime: avoid infinite loop
3399         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3400         type; behavior is still undefined but portable to all known targets.
3401         Reported by Rich Felker.
3402
3403 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3404
3405         rename, unlink, same-inode: Relicense.
3406         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3407         * modules/unlink (License): Likewise.
3408         * modules/same-inode (License): Likewise.
3409
3410 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3411
3412         mktime: avoid problems on NetBSD 5 / i386
3413         * lib/mktime.c (long_int): New type.  This works around a problem
3414         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3415         but time_t is 64 bits, and where I expect the existing code is
3416         wrong in some cases.
3417         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3418         (ydhms_diff): Bring back the compile-time check for wide-enough
3419         year and yday.
3420
3421         mktime: fix misspelling in comment
3422         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3423         This merges all recent glibc changes of importance.
3424
3425 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3426
3427         move-if-change: cope with concurrent mv of identical file.
3428         * build-aux/move-if-change (CMPPROG): Accept environment
3429         variable as an override for `cmp'.
3430         (usage): Document CMPPROG.
3431         Adjust comparison to drop stdout.  Cope with failure of mv if
3432         the target file exists and is identical to the source, for
3433         parallel builds.
3434         Report from H.J. Lu against binutils in PR binutils/12283.
3435
3436 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3437
3438         * users.txt: Mention sharutils.
3439
3440 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3441
3442         * users.txt: Mention OATH Toolkit.
3443
3444 2011-01-27  Bruno Haible  <bruno@clisp.org>
3445
3446         Prepare for supporting FreeBSD 10.
3447         * build-aux/config.libpath: Remove handling of freebsd1*.
3448
3449 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3450
3451         Prepare for supporting FreeBSD 10.
3452         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3453         match FreeBSD 10.0.
3454
3455 2011-01-27  Bruno Haible  <bruno@clisp.org>
3456
3457         vma-iter, get-rusage-as: Add OpenBSD support.
3458         * modules/vma-iter (configure.ac): Test for mquery.
3459         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3460         * lib/vma-iter.c: Include <sys/mman.h>.
3461         (vma_iterate): Add an implementation based on mquery().
3462         * lib/resource-ext.h (get_rusage_as): Update comments.
3463         * lib/get-rusage-as.c: Likewise.
3464         * lib/get-rusage-data.c: Likewise.
3465
3466 2011-01-26  Karl Berry  <karl@gnu.org>
3467
3468         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3469         variables to make it easier to override the makeinfo program used.
3470
3471 2011-01-26  Eric Blake  <eblake@redhat.com>
3472
3473         fcntl: work around Haiku F_DUPFD bugs
3474         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3475         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3476         cloexec bit on duplication.
3477         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3478
3479 2011-01-26  Bruno Haible  <bruno@clisp.org>
3480
3481         Enable memory leak tests on AIX.
3482         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3483         * tests/test-fprintf-posix3.c (main): Likewise.
3484
3485 2011-01-26  Bruno Haible  <bruno@clisp.org>
3486
3487         Tests for module 'get-rusage-data'.
3488         * modules/get-rusage-data-tests: New file.
3489         * tests/test-get-rusage-data.c: New file.
3490
3491         New module 'get-rusage-data'.
3492         * lib/resource-ext.h (get_rusage_data): New declaration.
3493         * lib/get-rusage-data.c: New file.
3494         * modules/get-rusage-data: New file.
3495
3496 2011-01-25  Bruno Haible  <bruno@clisp.org>
3497
3498         get-rusage-as: Allow for easier testing.
3499         * lib/resource-ext.h (get_rusage_as): Add comment.
3500         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3501         (main): New function for interactive testing.
3502
3503 2011-01-25  Bruno Haible  <bruno@clisp.org>
3504
3505         vma-iter: Treat Haiku like BeOS.
3506         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3507         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3508
3509 2011-01-25  Eric Blake  <eblake@redhat.com>
3510
3511         c-stack: fix regression on cygwin when libsigsegv is present
3512         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3513
3514 2011-01-24  Bruno Haible  <bruno@clisp.org>
3515
3516         vma-iter: Avoid empty intervals.
3517         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3518         on an empty interval.
3519
3520 2011-01-24  Jim Meyering  <meyering@redhat.com>
3521
3522         u64: remove unnecessary #include
3523         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3524
3525 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3526
3527         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3528         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3529
3530 2011-01-23  Bruno Haible  <bruno@clisp.org>
3531
3532         New module 'vma-iter'.
3533         * lib/vma-iter.h: New file.
3534         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3535         * modules/vma-iter: New file.
3536         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3537         for get_rusage_as_via_iterator.
3538         (vma_iterate_callback): New function.
3539         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3540         * modules/get-rusage-as (Depends-on): Add vma-iter.
3541
3542 2011-01-23  Bruno Haible  <bruno@clisp.org>
3543
3544         uninorm: Tweak includes.
3545         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3546         Reported by Jim Meyering.
3547
3548 2011-01-23  Bruno Haible  <bruno@clisp.org>
3549
3550         get-rusage-as: Improve on NetBSD.
3551         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3552         /proc, like on FreeBSD.
3553
3554 2011-01-23  Jim Meyering  <meyering@redhat.com>
3555
3556         xreadlink.h: remove unnecessary #include
3557         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3558
3559         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3560         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3561
3562 2011-01-23  Bruno Haible  <bruno@clisp.org>
3563
3564         get-rusage-as: Fix bug.
3565         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3566         original limit when aborting the first loop.
3567
3568 2011-01-23  Bruno Haible  <bruno@clisp.org>
3569
3570         wctype: Ensure valid C syntax.
3571         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3572         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3573
3574 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3575
3576         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3578         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3579         as they are needed only for configure's test case.
3580         This removes two unnecessary symbols from config.h.
3581
3582         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3583         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3585         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3586         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3587         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3588         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3589         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3590         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3591         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3592         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3593         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3594         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3596         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3597         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3598         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3599         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3600
3601 2011-01-21  Eric Blake  <eblake@redhat.com>
3602
3603         maintainer-makefile: work with older git for submodule check
3604         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3605         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3606         Reported by Matthias Bolte.
3607
3608         bootstrap: minor portability fixes
3609         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3610         (usage): Omit leading capital and trailing . on help phrases, per
3611         GNU Coding Standards.
3612         (check_versions, top level): Prefix messages with script name.
3613
3614 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3615
3616         bootstrap: support --no-git option
3617         * build-aux/bootstrap: Add --no-git option, to be used when
3618         --gnulib-srcdir points to the exact desired checkout.
3619
3620 2011-01-21  Eric Blake  <eblake@redhat.com>
3621
3622         strerror_r-posix: work with glibc 2.13
3623         * lib/strerror_r.c (strerror_r): Fix return type.
3624
3625 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3626             Bruno Haible  <bruno@clisp.org>
3627
3628         uN_strstr: New unit tests.
3629         * modules/unistr/u8-strstr-tests: New file.
3630         * modules/unistr/u16-strstr-tests: New file.
3631         * modules/unistr/u32-strstr-tests: New file.
3632         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3633         * tests/unistr/test-u8-strstr.c: New file.
3634         * tests/unistr/test-u16-strstr.c: New file.
3635         * tests/unistr/test-u32-strstr.c: New file.
3636
3637 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3638             Bruno Haible  <bruno@clisp.org>
3639
3640         Make uN_strstr functions O(n) worst-case.
3641         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3642         16-bit and 32-bit unit cases, use the unibyte algorithm from
3643         lib/mbsstr.c.
3644         * lib/unistr/u8-strstr.c: Include <string.h>.
3645         (UNIT_IS_UINT8_T): New macro.
3646         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3647         (U_STRLEN, U_STRNLEN): New macros.
3648         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3649         (U_STRLEN, U_STRNLEN): New macros.
3650         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3651         (configure.ac): Update required libunistring version.
3652         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3653         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3654         malloca.
3655         (configure.ac): Update required libunistring version.
3656         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3657         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3658         malloca.
3659         (configure.ac): Update required libunistring version.
3660
3661 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3662             Bruno Haible  <bruno@clisp.org>
3663
3664         Prepare for faster uN_strstr functions.
3665         * lib/str-kmp.h: Support definable UNITs.
3666         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3667         needle_len argument.
3668         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3669         * lib/mbscasestr.c (mbscasestr): Likewise.
3670
3671 2011-01-21  Pádraig Brady <P@draigBrady.com>
3672
3673         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3674         * tests/test-malloca.c (main): Unset the environment variable
3675         to greatly speed up the test.
3676         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3677         * modules/malloca-tests: Depend on unsetenv.
3678
3679 2011-01-21  Pádraig Brady <P@draigBrady.com>
3680
3681         ignore-value: remove stdint dependency
3682         * lib/ignore-value.h: Remove <stdint.h>
3683         * modules/ignore-value: Remove stdint dependency.
3684
3685 2011-01-21  Jim Meyering  <meyering@redhat.com>
3686
3687         maint.mk: adjust variable name to be consistent with other gl_ vars
3688         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3689         to be lower case.
3690
3691 2011-01-20  Jim Meyering  <meyering@redhat.com>
3692
3693         maint.mk: make "check" depend on public-submodule-commit by default
3694         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3695
3696 2011-01-20  Bruno Haible  <bruno@clisp.org>
3697
3698         mbfile, mbiter: Complete change from 2008-12-21.
3699         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3700         * m4/mbiter.m4 (gl_MBITER): Likewise.
3701
3702 2011-01-20  Jim Meyering  <meyering@redhat.com>
3703
3704         init.sh: insert space between each function name and "()"
3705         * tests/init.sh: Make it a little easier to see that a function's
3706         name is "warn_", and not "warn" when looking at the first part of
3707         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3708
3709 2011-01-20  Jim Meyering  <meyering@redhat.com>
3710
3711         mountlist: clean up code formatting
3712         * lib/mountlist.c (read_file_system_list): Split a long line,
3713         correct bracing style, use NULL in place of "(struct statfs *)0",
3714         don't parenthesize return value, add spaces around "=" and after
3715         ";-in-for-stmt".
3716
3717 2011-01-14  Markus Duft <mduft@gentoo.org>
3718
3719         mountlist: add support for Interix
3720         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3721         Apply statvfs to all entries of /dev/fs.
3722         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3723         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3724
3725 2011-01-20  Jim Meyering  <meyering@redhat.com>
3726
3727         maint.mk: improve the public-submodule-commit rule
3728         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3729         to suppress printing of its commands... unless V=1.
3730         Add git submodule's --quiet option to suppress printing of e.g.,
3731         "Entering gnulib" output.
3732         "cd" into $(srcdir) before running git submodule.
3733
3734 2011-01-20  Bruno Haible  <bruno@clisp.org>
3735
3736         include_next: Fix bug introduced on 2011-01-18.
3737         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3738         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3739         ac_cv_header_... variable if the second argument is not 'check'.
3740         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3741         gl_NEXT_HEADERS_INTERNAL.
3742
3743 2011-01-20  Bruno Haible  <bruno@clisp.org>
3744
3745         Allow the user to avoid the GNULIB_TEST_* macros.
3746         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3747         Suggested by Paul Eggert.
3748
3749 2011-01-14  Jim Meyering  <meyering@redhat.com>
3750
3751         bootstrap: avoid failure when there is no .gitmodules file
3752         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3753         has been assigned to, even when its value is the empty string.
3754         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3755         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3756         Reported by John W. Eaton <jwe@gnu.org>.
3757
3758 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3759
3760         assume <ctype.h>, ..., <time.h> exist
3761         For years gnulib has been assuming the existence of the headers
3762         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3763         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3764         them, since they don't appear to be needed.
3765         * README (Portability guidelines): Document this.
3766         * lib/flock.c: Assume <fcntl.h> exists.
3767         * lib/regex_internal.h: Assume <locale.h> exists.
3768         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3770         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3771         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3772         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3773         * m4/regex.m4 (gl_REGEX): Likewise.
3774         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3775         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3776         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3777         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3778         * tests/test-argp.c: Likewise.
3779         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3780
3781         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3782         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3783         AA_APPLE_UNIVERSAL_BUILD.  See
3784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3785         * NEWS: Document this.
3786
3787 2011-01-19  Eric Blake  <eblake@redhat.com>
3788
3789         c-stack: assume stack overflow if SA_SIGINFO unsupported
3790         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3791         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3792         sigaction will work.
3793         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3794         behavior match Linux.
3795         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3796
3797         stdbool-tests: accomodate Haiku
3798         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3799
3800         binary-io: fix O_TEXT on Haiku
3801         * modules/binary-io (Depends-on): Add fcntl-h.
3802         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3803         than blindly undefining O_TEXT.
3804         Reported by Scott McCreary.
3805
3806 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3807
3808         include_next: do not check for standard headers like stddef.h
3809
3810         I found this problem when modifying Emacs to use gnulib.
3811         I noticed that it added HAVE_STDDEF_H to config.h, even though
3812         gnulib always assumes <stddef.h> exists as per README and this
3813         symbol is unnecessary.
3814         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3815         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3816         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3817         faster for headers like stddef.h that are known to exist.
3818         (gl_CHECK_NEXT_HEADERS): Use it.
3819         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3820         rather than gl_CHECK_NEXT_HEADERS.
3821         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3822         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3823
3824 2011-01-18  Eric Blake  <eblake@redhat.com>
3825
3826         ansi-c++-opt: skip C++ dependency style if C++ is unused
3827         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3828         tests when we know C++ compilation is not desired.
3829         Reported by Scott McCreary.
3830
3831 2011-01-18  Bruno Haible  <bruno@clisp.org>
3832
3833         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3834         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3835         (main): Perform test also when getrlimit and setrlimit don't exist or
3836         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3837         limiting the address space size using setrlimit, compare the address
3838         space size before and after the the test.
3839         * tests/test-dprintf-posix2.c: Likewise.
3840         * tests/test-fprintf-posix3.sh: Update skip messages.
3841         * tests/test-dprintf-posix2.sh: Likewise.
3842         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3843         * modules/dprintf-posix-tests (Depends-on): Likewise.
3844         Reported by Bruce Korb <bkorb@gnu.org> and
3845         Gary V. Vaughan <gary@gnu.org>.
3846
3847 2011-01-18  Bruno Haible  <bruno@clisp.org>
3848
3849         get-rusage-as: Improvement for Cygwin.
3850         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3851         areas that are merely reserved.
3852
3853 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3854
3855         strftime: remove dependencies on multibyte modules
3856
3857         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3858         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3859         only if __osf__ is defined, and I suspect OSF doesn't need these
3860         other modules.  If my guess is wrong, we'll need to come up with a
3861         variant of strftime that doesn't need the multibyte modules.
3862
3863         I discovered this problem when attempting modify Emacs to use the
3864         strftime module.  With the previous gnulib, this caused Emacs to
3865         need 31 new files, ranging from lib/config.charset to
3866         m4/wint_t.m4.  This was overkill and I expect would be offputting
3867         to the Emacs maintainers.  After this change, only 6 new files are
3868         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3869         stdbool.m4, and tm_gmtoff.m4.
3870
3871         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3872         Suggested by Bruno Haible in
3873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3874         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3875         and do not check for wchar.h.
3876         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3877         (Depends-on): Remove mbrlen, mbsinit, wchar.
3878
3879 2011-01-18  Bruno Haible  <bruno@clisp.org>
3880
3881         Tests for module 'get-rusage-as'.
3882         * modules/get-rusage-as-tests: New file.
3883         * tests/test-get-rusage-as.c: New file.
3884
3885         New module 'get-rusage-as'.
3886         * modules/get-rusage-as: New file.
3887         * lib/resource-ext.h: New file.
3888         * lib/get-rusage-as.c: New file.
3889
3890 2011-01-17  Eric Blake  <eblake@redhat.com>
3891
3892         sigaction: relax license from LGPLv3+ to LGPLv2+
3893         * modules/sigaction (License): Relax to LGPLv2+.
3894
3895 2011-01-14  Bruno Haible  <bruno@clisp.org>
3896
3897         filemode: Make function declarations usable in C++ mode.
3898         * lib/filemode.h: Enclose function declarations in extern "C" block.
3899         Reported by John W. Eaton <jwe@gnu.org>.
3900
3901 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3902
3903         save-cwd: no longer include "xgetcwd.h"
3904         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3905         This avoids a compilation failure in projects that use save-cwd
3906         without also using the xgetcwd module.
3907
3908 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3909
3910         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3911         This is so that a program like Emacs, which needs only dtoastr,
3912         does not have to bother with distributing and compiling ftoastr
3913         and ldtoastr.
3914         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3915         * modules/dtoastr, modules/ldtoastr: New files.
3916         * modules/ftoastr: Now works just for 'float'.
3917         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3918         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3919         dtoastr.c, ldtoastr.c.
3920
3921 2011-01-11  Jim Meyering  <meyering@redhat.com>
3922
3923         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3924         There is no need to work around the lack of the fchdir function,
3925         since gnulib can now provide a replacement when required.
3926         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3927         * modules/save-cwd (Depends-on): Add fchdir.
3928
3929 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3930
3931         openat, save-cwd: avoid xmalloc
3932
3933         This removes a direct (but undocumented) dependency of openat on
3934         xalloc, along with an indirect dependency via save-cwd.  It also
3935         removes a dependency of save-cwd on xgetcwd, and thereby
3936         indirectly on xalloc.  This change causes the openat substitute
3937         to fall back on save_cwd when memory is tight, and for save_cwd to
3938         fail instead of dying when memory is tight, but that's good enough.
3939         Problem and initial idea for fix reported by Bastien Roucaries in
3940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3941
3942         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3943         xalloc.h (for xmalloc).
3944         (openat_proc_name): Use malloc, not xmalloc.
3945         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3946         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3947
3948         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3949         This avoids heap allocation for file names whose lengths are in
3950         the range 512..1023, with the upper bound increasing to at most
3951         4031 depending on the platform's PATH_MAX.  (We do not want
3952         pathmax.h here as it might supply a non-constant PATH_MAX.)
3953         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3954         Perhaps they should be moved to malloca.h?
3955         (OPENAT_BUFFER_SIZE): Use them.
3956
3957 2011-01-10  Bruno Haible  <bruno@clisp.org>
3958
3959         doc: Update users.txt.
3960         * users.txt: Add recutils.
3961
3962 2011-01-09  Karl Berry  <karl@gnu.org>
3963
3964         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3965
3966         * doc/configmake.texi: New file.
3967         * doc/gnulib.texi: Include it.
3968         * modules/configmake: Move documentation from here.
3969
3970 2011-01-09  Bruno Haible  <bruno@clisp.org>
3971
3972         Update to Unicode 6.0.0.
3973         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3974         (get_lbp): Update for Unicode 6.0.0.
3975         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3976         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3977         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3978         U+11001, U+11038..U+11046. Remove U+06DE.
3979         (uc_width): Fix bounds of planes.
3980         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3981         lib/uniwidth/width.c.
3982         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3983         trailing whitespace removed.
3984         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3985         without comments, but with the original copyright notice.
3986         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3987         * lib/unicase/ignorable.h: Likewise.
3988         * lib/unicase/tocasefold.h: Likewise.
3989         * lib/unicase/tolower.h: Likewise.
3990         * lib/unicase/totitle.h: Likewise.
3991         * lib/unicase/toupper.h: Likewise.
3992         * lib/unictype/bidi_of.h: Likewise.
3993         * lib/unictype/blocks.h: Likewise.
3994         * lib/unictype/categ_C.h: Likewise.
3995         * lib/unictype/categ_Cn.h: Likewise.
3996         * lib/unictype/categ_L.h: Likewise.
3997         * lib/unictype/categ_Ll.h: Likewise.
3998         * lib/unictype/categ_Lm.h: Likewise.
3999         * lib/unictype/categ_Lo.h: Likewise.
4000         * lib/unictype/categ_Lu.h: Likewise.
4001         * lib/unictype/categ_M.h: Likewise.
4002         * lib/unictype/categ_Mc.h: Likewise.
4003         * lib/unictype/categ_Me.h: Likewise.
4004         * lib/unictype/categ_Mn.h: Likewise.
4005         * lib/unictype/categ_N.h: Likewise.
4006         * lib/unictype/categ_Nd.h: Likewise.
4007         * lib/unictype/categ_No.h: Likewise.
4008         * lib/unictype/categ_P.h: Likewise.
4009         * lib/unictype/categ_Po.h: Likewise.
4010         * lib/unictype/categ_S.h: Likewise.
4011         * lib/unictype/categ_Sc.h: Likewise.
4012         * lib/unictype/categ_Sk.h: Likewise.
4013         * lib/unictype/categ_Sm.h: Likewise.
4014         * lib/unictype/categ_So.h: Likewise.
4015         * lib/unictype/categ_of.h: Likewise.
4016         * lib/unictype/combining.h: Likewise.
4017         * lib/unictype/ctype_alnum.h: Likewise.
4018         * lib/unictype/ctype_alpha.h: Likewise.
4019         * lib/unictype/ctype_graph.h: Likewise.
4020         * lib/unictype/ctype_lower.h: Likewise.
4021         * lib/unictype/ctype_print.h: Likewise.
4022         * lib/unictype/ctype_punct.h: Likewise.
4023         * lib/unictype/ctype_upper.h: Likewise.
4024         * lib/unictype/decdigit.h: Likewise.
4025         * lib/unictype/digit.h: Likewise.
4026         * lib/unictype/numeric.h: Likewise.
4027         * lib/unictype/pr_alphabetic.h: Likewise.
4028         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4029         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4030         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4031         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4032         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4033         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4034         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4035         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4036         * lib/unictype/pr_case_ignorable.h: Likewise.
4037         * lib/unictype/pr_cased.h: Likewise.
4038         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4039         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4040         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4041         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4042         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4043         * lib/unictype/pr_combining.h: Likewise.
4044         * lib/unictype/pr_composite.h: Likewise.
4045         * lib/unictype/pr_currency_symbol.h: Likewise.
4046         * lib/unictype/pr_decimal_digit.h: Likewise.
4047         * lib/unictype/pr_deprecated.h: Likewise.
4048         * lib/unictype/pr_format_control.h: Likewise.
4049         * lib/unictype/pr_grapheme_base.h: Likewise.
4050         * lib/unictype/pr_grapheme_extend.h: Likewise.
4051         * lib/unictype/pr_grapheme_link.h: Likewise.
4052         * lib/unictype/pr_id_continue.h: Likewise.
4053         * lib/unictype/pr_id_start.h: Likewise.
4054         * lib/unictype/pr_ideographic.h: Likewise.
4055         * lib/unictype/pr_lowercase.h: Likewise.
4056         * lib/unictype/pr_math.h: Likewise.
4057         * lib/unictype/pr_numeric.h: Likewise.
4058         * lib/unictype/pr_other_alphabetic.h: Likewise.
4059         * lib/unictype/pr_other_id_continue.h: Likewise.
4060         * lib/unictype/pr_other_math.h: Likewise.
4061         * lib/unictype/pr_punctuation.h: Likewise.
4062         * lib/unictype/pr_sentence_terminal.h: Likewise.
4063         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4064         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4065         * lib/unictype/pr_unified_ideograph.h: Likewise.
4066         * lib/unictype/pr_uppercase.h: Likewise.
4067         * lib/unictype/pr_xid_continue.h: Likewise.
4068         * lib/unictype/pr_xid_start.h: Likewise.
4069         * lib/unictype/scripts.h: Likewise.
4070         * lib/unictype/scripts_byname.gperf: Likewise.
4071         * lib/unictype/sy_java_ident.h: Likewise.
4072         * lib/unigbrk/gbrkprop.h: Likewise.
4073         * lib/unilbrk/lbrkprop1.h: Likewise.
4074         * lib/unilbrk/lbrkprop2.h: Likewise.
4075         * lib/uninorm/decomposition-table2.h: Likewise.
4076         * lib/uniwbrk/wbrkprop.h: Likewise.
4077         * tests/unicase/test-cased.c: Likewise.
4078         * tests/unicase/test-ignorable.c: Likewise.
4079         * tests/unicase/test-uc_tolower.c: Likewise.
4080         * tests/unicase/test-uc_totitle.c: Likewise.
4081         * tests/unicase/test-uc_toupper.c: Likewise.
4082         * tests/unictype/test-categ_C.c: Likewise.
4083         * tests/unictype/test-categ_Cn.c: Likewise.
4084         * tests/unictype/test-categ_L.c: Likewise.
4085         * tests/unictype/test-categ_Ll.c: Likewise.
4086         * tests/unictype/test-categ_Lm.c: Likewise.
4087         * tests/unictype/test-categ_Lo.c: Likewise.
4088         * tests/unictype/test-categ_Lu.c: Likewise.
4089         * tests/unictype/test-categ_M.c: Likewise.
4090         * tests/unictype/test-categ_Mc.c: Likewise.
4091         * tests/unictype/test-categ_Me.c: Likewise.
4092         * tests/unictype/test-categ_Mn.c: Likewise.
4093         * tests/unictype/test-categ_N.c: Likewise.
4094         * tests/unictype/test-categ_Nd.c: Likewise.
4095         * tests/unictype/test-categ_No.c: Likewise.
4096         * tests/unictype/test-categ_P.c: Likewise.
4097         * tests/unictype/test-categ_Po.c: Likewise.
4098         * tests/unictype/test-categ_S.c: Likewise.
4099         * tests/unictype/test-categ_Sc.c: Likewise.
4100         * tests/unictype/test-categ_Sk.c: Likewise.
4101         * tests/unictype/test-categ_Sm.c: Likewise.
4102         * tests/unictype/test-categ_So.c: Likewise.
4103         * tests/unictype/test-ctype_alnum.c: Likewise.
4104         * tests/unictype/test-ctype_alpha.c: Likewise.
4105         * tests/unictype/test-ctype_graph.c: Likewise.
4106         * tests/unictype/test-ctype_lower.c: Likewise.
4107         * tests/unictype/test-ctype_print.c: Likewise.
4108         * tests/unictype/test-ctype_punct.c: Likewise.
4109         * tests/unictype/test-ctype_upper.c: Likewise.
4110         * tests/unictype/test-decdigit.h: Likewise.
4111         * tests/unictype/test-digit.h: Likewise.
4112         * tests/unictype/test-numeric.h: Likewise.
4113         * tests/unictype/test-pr_alphabetic.c: Likewise.
4114         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4115         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4116         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4117         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4118         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4119         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4120         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4121         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4122         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4123         * tests/unictype/test-pr_cased.c: Likewise.
4124         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4125         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4126         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4127         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4128         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4129         * tests/unictype/test-pr_combining.c: Likewise.
4130         * tests/unictype/test-pr_composite.c: Likewise.
4131         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4132         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4133         * tests/unictype/test-pr_deprecated.c: Likewise.
4134         * tests/unictype/test-pr_format_control.c: Likewise.
4135         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4136         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4137         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4138         * tests/unictype/test-pr_id_continue.c: Likewise.
4139         * tests/unictype/test-pr_id_start.c: Likewise.
4140         * tests/unictype/test-pr_ideographic.c: Likewise.
4141         * tests/unictype/test-pr_lowercase.c: Likewise.
4142         * tests/unictype/test-pr_math.c: Likewise.
4143         * tests/unictype/test-pr_numeric.c: Likewise.
4144         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4145         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4146         * tests/unictype/test-pr_other_math.c: Likewise.
4147         * tests/unictype/test-pr_punctuation.c: Likewise.
4148         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4149         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4150         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4151         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4152         * tests/unictype/test-pr_uppercase.c: Likewise.
4153         * tests/unictype/test-pr_xid_continue.c: Likewise.
4154         * tests/unictype/test-pr_xid_start.c: Likewise.
4155         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4156         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4157         changes.
4158         * lib/unictype/categ_Cc.h: Likewise.
4159         * lib/unictype/categ_Cf.h: Likewise.
4160         * lib/unictype/categ_Co.h: Likewise.
4161         * lib/unictype/categ_Cs.h: Likewise.
4162         * lib/unictype/categ_Lt.h: Likewise.
4163         * lib/unictype/categ_Nl.h: Likewise.
4164         * lib/unictype/categ_Pc.h: Likewise.
4165         * lib/unictype/categ_Pd.h: Likewise.
4166         * lib/unictype/categ_Pe.h: Likewise.
4167         * lib/unictype/categ_Pf.h: Likewise.
4168         * lib/unictype/categ_Pi.h: Likewise.
4169         * lib/unictype/categ_Ps.h: Likewise.
4170         * lib/unictype/categ_Z.h: Likewise.
4171         * lib/unictype/categ_Zl.h: Likewise.
4172         * lib/unictype/categ_Zp.h: Likewise.
4173         * lib/unictype/categ_Zs.h: Likewise.
4174         * lib/unictype/ctype_blank.h: Likewise.
4175         * lib/unictype/ctype_cntrl.h: Likewise.
4176         * lib/unictype/ctype_digit.h: Likewise.
4177         * lib/unictype/ctype_space.h: Likewise.
4178         * lib/unictype/ctype_xdigit.h: Likewise.
4179         * lib/unictype/mirror.h: Likewise.
4180         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4181         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4182         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4183         * lib/unictype/pr_bidi_control.h: Likewise.
4184         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4185         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4186         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4187         * lib/unictype/pr_bidi_pdf.h: Likewise.
4188         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4189         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4190         * lib/unictype/pr_dash.h: Likewise.
4191         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4192         * lib/unictype/pr_diacritic.h: Likewise.
4193         * lib/unictype/pr_extender.h: Likewise.
4194         * lib/unictype/pr_hex_digit.h: Likewise.
4195         * lib/unictype/pr_hyphen.h: Likewise.
4196         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4197         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4198         * lib/unictype/pr_ignorable_control.h: Likewise.
4199         * lib/unictype/pr_iso_control.h: Likewise.
4200         * lib/unictype/pr_join_control.h: Likewise.
4201         * lib/unictype/pr_left_of_pair.h: Likewise.
4202         * lib/unictype/pr_line_separator.h: Likewise.
4203         * lib/unictype/pr_logical_order_exception.h: Likewise.
4204         * lib/unictype/pr_non_break.h: Likewise.
4205         * lib/unictype/pr_not_a_character.h: Likewise.
4206         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4207         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4208         * lib/unictype/pr_other_id_start.h: Likewise.
4209         * lib/unictype/pr_other_lowercase.h: Likewise.
4210         * lib/unictype/pr_other_uppercase.h: Likewise.
4211         * lib/unictype/pr_paired_punctuation.h: Likewise.
4212         * lib/unictype/pr_paragraph_separator.h: Likewise.
4213         * lib/unictype/pr_pattern_syntax.h: Likewise.
4214         * lib/unictype/pr_pattern_white_space.h: Likewise.
4215         * lib/unictype/pr_private_use.h: Likewise.
4216         * lib/unictype/pr_quotation_mark.h: Likewise.
4217         * lib/unictype/pr_radical.h: Likewise.
4218         * lib/unictype/pr_soft_dotted.h: Likewise.
4219         * lib/unictype/pr_space.h: Likewise.
4220         * lib/unictype/pr_titlecase.h: Likewise.
4221         * lib/unictype/pr_variation_selector.h: Likewise.
4222         * lib/unictype/pr_white_space.h: Likewise.
4223         * lib/unictype/pr_zero_width.h: Likewise.
4224         * lib/unictype/sy_c_ident.h: Likewise.
4225         * lib/unictype/sy_c_whitespace.h: Likewise.
4226         * lib/unictype/sy_java_whitespace.h: Likewise.
4227         * lib/uninorm/composition-table.gperf: Likewise.
4228         * lib/uninorm/decomposition-table1.h: Likewise.
4229         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4230         LB8.
4231         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4232         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4233         * modules/unictype/*: Bump version number of expected libunistring
4234         version.
4235
4236 2011-01-09  Bruno Haible  <bruno@clisp.org>
4237
4238         Update to Unicode 5.2.0.
4239         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4240         trailing whitespace removed.
4241
4242 2011-01-09  Bruno Haible  <bruno@clisp.org>
4243
4244         New Unicode character properties, from Unicode 5.2.0.
4245         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4246         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4247         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4248         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4249         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4250         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4251         uc_is_property_cased, uc_is_property_case_ignorable,
4252         uc_is_property_changes_when_lowercased,
4253         uc_is_property_changes_when_uppercased,
4254         uc_is_property_changes_when_titlecased,
4255         uc_is_property_changes_when_casefolded,
4256         uc_is_property_changes_when_casemapped): New declarations.
4257         * lib/unictype/pr_byname.gperf: Add the new properties.
4258         * modules/unictype/property-byname (Depends-on): Depend on the new
4259         properties modules.
4260         * modules/unictype/property-all (Depends-on): Likewise.
4261         * MODULES.html.sh (Unicode string functions): Add
4262         unictype/property-case-ignorable, unictype/property-cased,
4263         unictype/property-changes-when-casefolded,
4264         unictype/property-changes-when-casemapped,
4265         unictype/property-changes-when-lowercased,
4266         unictype/property-changes-when-titlecased,
4267         unictype/property-changes-when-uppercased.
4268
4269         New module 'unictype/property-changes-when-casemapped'.
4270         * modules/unictype/property-changes-when-casemapped: New file.
4271         * lib/unictype/pr_changes_when_casemapped.c: New file.
4272         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4273         generated by gen-uni-tables.
4274         * modules/unictype/property-changes-when-casemapped-tests: New file.
4275         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4276         automatically generated by gen-uni-tables.
4277
4278         New module 'unictype/property-changes-when-casefolded'.
4279         * modules/unictype/property-changes-when-casefolded: New file.
4280         * lib/unictype/pr_changes_when_casefolded.c: New file.
4281         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4282         generated by gen-uni-tables.
4283         * modules/unictype/property-changes-when-casefolded-tests: New file.
4284         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4285         automatically generated by gen-uni-tables.
4286
4287         New module 'unictype/property-changes-when-titlecased'.
4288         * modules/unictype/property-changes-when-titlecased: New file.
4289         * lib/unictype/pr_changes_when_titlecased.c: New file.
4290         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4291         generated by gen-uni-tables.
4292         * modules/unictype/property-changes-when-titlecased-tests: New file.
4293         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4294         automatically generated by gen-uni-tables.
4295
4296         New module 'unictype/property-changes-when-uppercased'.
4297         * modules/unictype/property-changes-when-uppercased: New file.
4298         * lib/unictype/pr_changes_when_uppercased.c: New file.
4299         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4300         generated by gen-uni-tables.
4301         * modules/unictype/property-changes-when-uppercased-tests: New file.
4302         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4303         automatically generated by gen-uni-tables.
4304
4305         New module 'unictype/property-changes-when-lowercased'.
4306         * modules/unictype/property-changes-when-lowercased: New file.
4307         * lib/unictype/pr_changes_when_lowercased.c: New file.
4308         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4309         generated by gen-uni-tables.
4310         * modules/unictype/property-changes-when-lowercased-tests: New file.
4311         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4312         automatically generated by gen-uni-tables.
4313
4314         New module 'unictype/property-case-ignorable'.
4315         * modules/unictype/property-case-ignorable: New file.
4316         * lib/unictype/pr_case_ignorable.c: New file.
4317         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4318         by gen-uni-tables.
4319         * modules/unictype/property-case-ignorable-tests: New file.
4320         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4321         generated by gen-uni-tables.
4322
4323         New module 'unictype/property-cased'.
4324         * modules/unictype/property-cased: New file.
4325         * lib/unictype/pr_cased.c: New file.
4326         * lib/unictype/pr_cased.h: New file, automatically generated by
4327         gen-uni-tables.
4328         * modules/unictype/property-cased-tests: New file.
4329         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4330         gen-uni-tables.
4331
4332 2011-01-09  Bruno Haible  <bruno@clisp.org>
4333
4334         Update to Unicode 5.2.0.
4335         * lib/gen-uni-tables.c (output_predicate, output_category,
4336         output_combclass, output_bidi_category, output_decimal_digit_test,
4337         output_decimal_digit, output_digit_test, output_digit,
4338         output_numeric_test, output_numeric, output_mirror, output_scripts,
4339         output_scripts_byname, output_blocks, output_ident_category): Fix
4340         comment header.
4341         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4342         get_wbp.
4343         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4344         items.
4345         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4346         Changes_When_Lowercased, Changes_When_Uppercased,
4347         Changes_When_Titlecased, Changes_When_Casefolded,
4348         Changes_When_Casemapped.
4349         (is_property_alphabetic, is_property_default_ignorable_code_point):
4350         Update for Unicode 5.2.0.
4351         (is_property_cased, is_property_case_ignorable,
4352         is_property_changes_when_lowercased,
4353         is_property_changes_when_uppercased,
4354         is_property_changes_when_titlecased,
4355         is_property_changes_when_casefolded,
4356         is_property_changes_when_casemapped): New functions.
4357         (output_properties): Output also the properties cased, case_ignorable,
4358         changes_when_lowercased, changes_when_uppercased,
4359         changes_when_titlecased, changes_when_casefolded,
4360         changes_when_casemapped.
4361         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4362         Unicode TR#11 revision 17 -> 19.
4363         (LBP_CP): New enumeration value.
4364         (LBP_*): Adjust values accordingly.
4365         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4366         TR#14 revision 22 -> 24.
4367         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4368         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4369         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4370         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4371         is_WBP_MIDLETTER.
4372         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4373         the code1 and code2 of each composition rule.
4374         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4375         * lib/unicase/ignorable.h: Likewise.
4376         * lib/unicase/tocasefold.h: Likewise.
4377         * lib/unicase/tolower.h: Likewise.
4378         * lib/unicase/totitle.h: Likewise.
4379         * lib/unicase/toupper.h: Likewise.
4380         * lib/unictype/bidi_of.h: Likewise.
4381         * lib/unictype/blocks.h: Likewise.
4382         * lib/unictype/categ_C.h: Likewise.
4383         * lib/unictype/categ_Cf.h: Likewise.
4384         * lib/unictype/categ_Cn.h: Likewise.
4385         * lib/unictype/categ_L.h: Likewise.
4386         * lib/unictype/categ_Ll.h: Likewise.
4387         * lib/unictype/categ_Lm.h: Likewise.
4388         * lib/unictype/categ_Lo.h: Likewise.
4389         * lib/unictype/categ_Lu.h: Likewise.
4390         * lib/unictype/categ_M.h: Likewise.
4391         * lib/unictype/categ_Mc.h: Likewise.
4392         * lib/unictype/categ_Mn.h: Likewise.
4393         * lib/unictype/categ_N.h: Likewise.
4394         * lib/unictype/categ_Nd.h: Likewise.
4395         * lib/unictype/categ_Nl.h: Likewise.
4396         * lib/unictype/categ_No.h: Likewise.
4397         * lib/unictype/categ_P.h: Likewise.
4398         * lib/unictype/categ_Pd.h: Likewise.
4399         * lib/unictype/categ_Po.h: Likewise.
4400         * lib/unictype/categ_S.h: Likewise.
4401         * lib/unictype/categ_Sc.h: Likewise.
4402         * lib/unictype/categ_So.h: Likewise.
4403         * lib/unictype/categ_of.h: Likewise.
4404         * lib/unictype/combining.h: Likewise.
4405         * lib/unictype/ctype_alnum.h: Likewise.
4406         * lib/unictype/ctype_alpha.h: Likewise.
4407         * lib/unictype/ctype_graph.h: Likewise.
4408         * lib/unictype/ctype_lower.h: Likewise.
4409         * lib/unictype/ctype_print.h: Likewise.
4410         * lib/unictype/ctype_punct.h: Likewise.
4411         * lib/unictype/ctype_upper.h: Likewise.
4412         * lib/unictype/decdigit.h: Likewise.
4413         * lib/unictype/digit.h: Likewise.
4414         * lib/unictype/numeric.h: Likewise.
4415         * lib/unictype/pr_alphabetic.h: Likewise.
4416         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4417         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4418         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4419         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4420         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4421         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4422         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4423         * lib/unictype/pr_combining.h: Likewise.
4424         * lib/unictype/pr_composite.h: Likewise.
4425         * lib/unictype/pr_currency_symbol.h: Likewise.
4426         * lib/unictype/pr_dash.h: Likewise.
4427         * lib/unictype/pr_decimal_digit.h: Likewise.
4428         * lib/unictype/pr_deprecated.h: Likewise.
4429         * lib/unictype/pr_diacritic.h: Likewise.
4430         * lib/unictype/pr_extender.h: Likewise.
4431         * lib/unictype/pr_grapheme_base.h: Likewise.
4432         * lib/unictype/pr_grapheme_extend.h: Likewise.
4433         * lib/unictype/pr_grapheme_link.h: Likewise.
4434         * lib/unictype/pr_id_continue.h: Likewise.
4435         * lib/unictype/pr_id_start.h: Likewise.
4436         * lib/unictype/pr_ideographic.h: Likewise.
4437         * lib/unictype/pr_ignorable_control.h: Likewise.
4438         * lib/unictype/pr_logical_order_exception.h: Likewise.
4439         * lib/unictype/pr_lowercase.h: Likewise.
4440         * lib/unictype/pr_numeric.h: Likewise.
4441         * lib/unictype/pr_other_alphabetic.h: Likewise.
4442         * lib/unictype/pr_punctuation.h: Likewise.
4443         * lib/unictype/pr_sentence_terminal.h: Likewise.
4444         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4445         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4446         * lib/unictype/pr_unified_ideograph.h: Likewise.
4447         * lib/unictype/pr_uppercase.h: Likewise.
4448         * lib/unictype/pr_xid_continue.h: Likewise.
4449         * lib/unictype/pr_xid_start.h: Likewise.
4450         * lib/unictype/pr_zero_width.h: Likewise.
4451         * lib/unictype/scripts.h: Likewise.
4452         * lib/unictype/scripts_byname.gperf: Likewise.
4453         * lib/unictype/sy_java_ident.h: Likewise.
4454         * lib/unigbrk/gbrkprop.h: Likewise.
4455         * lib/unilbrk/lbrkprop1.h: Likewise.
4456         * lib/unilbrk/lbrkprop2.h: Likewise.
4457         * lib/unilbrk/lbrktables.h: Likewise.
4458         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4459         LBP_CP. Implement rule LB30.
4460         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4461         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4462         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4463         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4464         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4465         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4466         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4467         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4468         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4469         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4470         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4471         bits instead of 16 bits in the code1 and code2 of each composition
4472         rule.
4473         (uc_composition): Update for Unicode 5.2.0.
4474         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4475         * lib/uninorm/decomposition-table2.h: Likewise.
4476         * lib/uniwbrk/wbrkprop.h: Likewise.
4477         * tests/unicase/test-cased.c: Likewise.
4478         * tests/unicase/test-ignorable.c: Likewise.
4479         * tests/unicase/test-uc_tolower.c: Likewise.
4480         * tests/unicase/test-uc_totitle.c: Likewise.
4481         * tests/unicase/test-uc_toupper.c: Likewise.
4482         * tests/unictype/test-categ_C.c: Likewise.
4483         * tests/unictype/test-categ_Cf.c: Likewise.
4484         * tests/unictype/test-categ_Cn.c: Likewise.
4485         * tests/unictype/test-categ_L.c: Likewise.
4486         * tests/unictype/test-categ_Ll.c: Likewise.
4487         * tests/unictype/test-categ_Lm.c: Likewise.
4488         * tests/unictype/test-categ_Lo.c: Likewise.
4489         * tests/unictype/test-categ_Lu.c: Likewise.
4490         * tests/unictype/test-categ_M.c: Likewise.
4491         * tests/unictype/test-categ_Mc.c: Likewise.
4492         * tests/unictype/test-categ_Mn.c: Likewise.
4493         * tests/unictype/test-categ_N.c: Likewise.
4494         * tests/unictype/test-categ_Nd.c: Likewise.
4495         * tests/unictype/test-categ_Nl.c: Likewise.
4496         * tests/unictype/test-categ_No.c: Likewise.
4497         * tests/unictype/test-categ_P.c: Likewise.
4498         * tests/unictype/test-categ_Pd.c: Likewise.
4499         * tests/unictype/test-categ_Po.c: Likewise.
4500         * tests/unictype/test-categ_S.c: Likewise.
4501         * tests/unictype/test-categ_Sc.c: Likewise.
4502         * tests/unictype/test-categ_So.c: Likewise.
4503         * tests/unictype/test-ctype_alnum.c: Likewise.
4504         * tests/unictype/test-ctype_alpha.c: Likewise.
4505         * tests/unictype/test-ctype_graph.c: Likewise.
4506         * tests/unictype/test-ctype_lower.c: Likewise.
4507         * tests/unictype/test-ctype_print.c: Likewise.
4508         * tests/unictype/test-ctype_punct.c: Likewise.
4509         * tests/unictype/test-ctype_upper.c: Likewise.
4510         * tests/unictype/test-decdigit.h: Likewise.
4511         * tests/unictype/test-digit.h: Likewise.
4512         * tests/unictype/test-numeric.h: Likewise.
4513         * tests/unictype/test-pr_alphabetic.c: Likewise.
4514         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4515         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4516         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4517         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4518         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4519         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4520         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4521         * tests/unictype/test-pr_combining.c: Likewise.
4522         * tests/unictype/test-pr_composite.c: Likewise.
4523         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4524         * tests/unictype/test-pr_dash.c: Likewise.
4525         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4526         * tests/unictype/test-pr_deprecated.c: Likewise.
4527         * tests/unictype/test-pr_diacritic.c: Likewise.
4528         * tests/unictype/test-pr_extender.c: Likewise.
4529         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4530         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4531         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4532         * tests/unictype/test-pr_id_continue.c: Likewise.
4533         * tests/unictype/test-pr_id_start.c: Likewise.
4534         * tests/unictype/test-pr_ideographic.c: Likewise.
4535         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4536         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4537         * tests/unictype/test-pr_lowercase.c: Likewise.
4538         * tests/unictype/test-pr_numeric.c: Likewise.
4539         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4540         * tests/unictype/test-pr_punctuation.c: Likewise.
4541         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4542         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4543         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4544         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4545         * tests/unictype/test-pr_uppercase.c: Likewise.
4546         * tests/unictype/test-pr_xid_continue.c: Likewise.
4547         * tests/unictype/test-pr_xid_start.c: Likewise.
4548         * tests/unictype/test-pr_zero_width.c: Likewise.
4549         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4550         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4551         changed behaviour: line breaking is now disallowed between a letter
4552         or '=' and '('.
4553         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4554         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4555         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4556         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4557         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4558         lib/uniwidth/width.c.
4559         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4560         without comments, but with the original copyright notice.
4561         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4562         changes.
4563         * lib/unictype/categ_Cc.h: Likewise.
4564         * lib/unictype/categ_Co.h: Likewise.
4565         * lib/unictype/categ_Cs.h: Likewise.
4566         * lib/unictype/categ_Lt.h: Likewise.
4567         * lib/unictype/categ_Me.h: Likewise.
4568         * lib/unictype/categ_Pc.h: Likewise.
4569         * lib/unictype/categ_Pe.h: Likewise.
4570         * lib/unictype/categ_Pf.h: Likewise.
4571         * lib/unictype/categ_Pi.h: Likewise.
4572         * lib/unictype/categ_Ps.h: Likewise.
4573         * lib/unictype/categ_Sk.h: Likewise.
4574         * lib/unictype/categ_Sm.h: Likewise.
4575         * lib/unictype/categ_Z.h: Likewise.
4576         * lib/unictype/categ_Zl.h: Likewise.
4577         * lib/unictype/categ_Zp.h: Likewise.
4578         * lib/unictype/categ_Zs.h: Likewise.
4579         * lib/unictype/ctype_blank.h: Likewise.
4580         * lib/unictype/ctype_cntrl.h: Likewise.
4581         * lib/unictype/ctype_digit.h: Likewise.
4582         * lib/unictype/ctype_space.h: Likewise.
4583         * lib/unictype/ctype_xdigit.h: Likewise.
4584         * lib/unictype/mirror.h: Likewise.
4585         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4586         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4587         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4588         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4589         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4590         * lib/unictype/pr_bidi_control.h: Likewise.
4591         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4592         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4593         * lib/unictype/pr_bidi_pdf.h: Likewise.
4594         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4595         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4596         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4597         * lib/unictype/pr_format_control.h: Likewise.
4598         * lib/unictype/pr_hex_digit.h: Likewise.
4599         * lib/unictype/pr_hyphen.h: Likewise.
4600         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4601         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4602         * lib/unictype/pr_iso_control.h: Likewise.
4603         * lib/unictype/pr_join_control.h: Likewise.
4604         * lib/unictype/pr_left_of_pair.h: Likewise.
4605         * lib/unictype/pr_line_separator.h: Likewise.
4606         * lib/unictype/pr_math.h: Likewise.
4607         * lib/unictype/pr_non_break.h: Likewise.
4608         * lib/unictype/pr_not_a_character.h: Likewise.
4609         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4610         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4611         * lib/unictype/pr_other_id_continue.h: Likewise.
4612         * lib/unictype/pr_other_id_start.h: Likewise.
4613         * lib/unictype/pr_other_lowercase.h: Likewise.
4614         * lib/unictype/pr_other_math.h: Likewise.
4615         * lib/unictype/pr_other_uppercase.h: Likewise.
4616         * lib/unictype/pr_paired_punctuation.h: Likewise.
4617         * lib/unictype/pr_paragraph_separator.h: Likewise.
4618         * lib/unictype/pr_pattern_syntax.h: Likewise.
4619         * lib/unictype/pr_pattern_white_space.h: Likewise.
4620         * lib/unictype/pr_private_use.h: Likewise.
4621         * lib/unictype/pr_quotation_mark.h: Likewise.
4622         * lib/unictype/pr_radical.h: Likewise.
4623         * lib/unictype/pr_soft_dotted.h: Likewise.
4624         * lib/unictype/pr_space.h: Likewise.
4625         * lib/unictype/pr_titlecase.h: Likewise.
4626         * lib/unictype/pr_variation_selector.h: Likewise.
4627         * lib/unictype/pr_white_space.h: Likewise.
4628         * lib/unictype/sy_c_ident.h: Likewise.
4629         * lib/unictype/sy_c_whitespace.h: Likewise.
4630         * lib/unictype/sy_java_whitespace.h: Likewise.
4631         * modules/uni*/*: Bump version number of expected libunistring version.
4632         Reported by Simon Josefsson.
4633
4634 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4635
4636         useless-if-before-free: fix typo in --help and make the internal,
4637         automatic version date update process work once again.
4638         --help output contained a NUL character instead of the
4639         backslash-zero that was intended.  Also, the "must lie within
4640         the first 8 lines" line is on line 9, and hence not getting
4641         automatically updated.
4642         * build-aux/useless-if-before-free: Fix the former by adding a
4643         backslash, and the latter by condensing the three lines of what-it-does
4644         to a single line, leaving one line of slack for the future.
4645
4646 2011-01-09  Bruno Haible  <bruno@clisp.org>
4647
4648         uniwidth/width: Fix width of U+1D173..U+1D17A.
4649         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4650         symbolic_width, output_width_property_test): New functions.
4651         (main): Invoke output_nonspacing_property, output_width_property_test.
4652         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4653         U+1D173..U+1D17A.
4654         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4655         1.
4656         * modules/uniwidth/*: Bump version number of expected libunistring
4657         version.
4658         * modules/unilbrk/*: Likewise.
4659
4660 2011-01-08  Bruno Haible  <bruno@clisp.org>
4661
4662         uninorm tests: Preserve copyright of Unicode data file.
4663         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4664         Mention modifications.
4665
4666 2011-01-08  Bruno Haible  <bruno@clisp.org>
4667
4668         gen-uni-tables: Prepare for Unicode 5.2.0.
4669         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4670         (debug_output_lbp, output_lbp): Update.
4671
4672 2011-01-08  Bruno Haible  <bruno@clisp.org>
4673
4674         unilbrk: Clarify gen-uni-tables.c code.
4675         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4676         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4677         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4678
4679 2011-01-07  Bruno Haible  <bruno@clisp.org>
4680
4681         strtod: Restore errno when successfully parsing Infinity or NaN.
4682         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4683         restore the original errno.
4684
4685 2011-01-07  Bruno Haible  <bruno@clisp.org>
4686
4687         remove test: Avoid failure on HP-UX 11.
4688         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4689
4690 2011-01-07  Bruno Haible  <bruno@clisp.org>
4691
4692         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4693         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4694         error code.
4695
4696 2011-01-07  Pádraig Brady <P@draigBrady.com>
4697
4698         ignore-value: fixup comments, and add Eric Blake
4699         as an author since he rewrote the macros.
4700         * lib/ignore-value.h (ignore_value):  State that
4701         we now support aggregates.  Also specify exactly
4702         when the GCC warn_unused_result feature was added.
4703
4704 2011-01-06  Eric Blake  <eblake@redhat.com>
4705
4706         ignore-value: support aggregate types
4707         * lib/ignore-value.h (ignore_value): Provide separate gcc
4708         definition.
4709         * modules/ignore-value-tests: New test module.
4710         * tests/test-ignore-value.c: New test.
4711
4712         maint.mk: improve sc_prohibit_strcmp regex
4713         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4714         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4715         definition of STRNEQ.
4716
4717         signal: work around Haiku issue with SIGBUS
4718         * lib/siglist.h: Add comment.
4719         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4720         strsignal's favoring of SIGSEGV.
4721         * tests/test-signal.c (main): Avoid test failure.
4722         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4723         Reported by Scott McCreary.
4724
4725         maint.mk: add pre-release check to ensure submodule commits are public
4726         * top/maint.mk (public-submodule-commit): New rule.
4727         (submodule-checks): New variable.
4728         (alpha beta stable): Depend on the variable.
4729
4730 2011-01-05  Pádraig Brady <P@draigBrady.com>
4731         and Jim Meyering  <meyering@redhat.com>
4732
4733         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4734         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4735         (ATTRIBUTE_DEPRECATED): Define.
4736         (_ignore_case): New function.
4737         (ignore_value): New macro, to replace the old function.
4738         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4739         * modules/ignore-value (Depends-on): Add stdint.
4740
4741 2011-01-04  Eric Blake  <eblake@redhat.com>
4742
4743         doc: regenerate INSTALL
4744         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4745         @firstparagraphindent support, now that autoconf dropped it.
4746         (INSTALL_PRELUDE): Reinstate old macro.
4747         * doc/install.texi: Resync from autoconf.
4748         * doc/INSTALL: Reflect recent autoconf update.
4749         * doc/INSTALL.ISO: Likewise.
4750         * doc/INSTALL.UTF-8: Likewise.
4751         Reported by Karl Berry.
4752
4753 2011-01-04  Bruce Korb  <address@hidden>
4754
4755         git-version-gen: avoid a sub-shell
4756         * build-aux/git-version-gen: Redirect stderr in `...` via
4757         "exec 2>...", rather than via an added sub-shell.
4758
4759 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4760
4761         git-version-gen: use (...) rather than sh -c '...'
4762         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4763         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4764
4765 2011-01-03  Jim Meyering  <meyering@redhat.com>
4766
4767         git-version-gen: convert leading TABs to spaces
4768         * build-aux/git-version-gen: Expand leading TABs.
4769
4770         git-version-gen: handle failed "git rev-list"
4771         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4772         from git and proceeding as if it had succeeded but printed no SHA1
4773         checksums, suppress the diagnostic and handle the failure.
4774         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4775
4776         git-version-gen: include command name in one more diagnostic
4777         * build-aux/git-version-gen: When the required .tarball-version file
4778         was missing or unreadable, you might see the diagnostic from "cat",
4779         but no trace of the name of the invoking script.  Now, you still see
4780         the diagnostic from cat, but also get one from "git-version-gen: ".
4781         Inspired by a patch from Bruce Korb.
4782
4783         update-copyright: adjust test to match changed code
4784         * tests/test-update-copyright.sh: Change test's expected output
4785         to match new actual output.
4786
4787 2011-01-02  Bruno Haible  <bruno@clisp.org>
4788
4789         getlogin_r: Avoid test failure on HP-UX 11.
4790         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4791         ERANGE when the second argument is zero.
4792         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4793         portability problem.
4794
4795 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4796
4797         * build-aux/update-copyright: doc Simon's changes
4798
4799 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4800
4801         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4802         environment variable.
4803
4804 2011-01-02  Bruno Haible  <bruno@clisp.org>
4805
4806         unigbrk: Avoid gcc warnings.
4807         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4808         unused variable.
4809         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4810         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4811         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4812         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4813         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4814         Change type of first argument to 'const char *'.
4815         (main): Remove unused variable.
4816         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4817         type of first argument to 'const char *'.
4818         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4819         Likewise.
4820         (main): Change type of variable 's'.
4821         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4822         to 'int'.
4823
4824 2011-01-02  Bruno Haible  <bruno@clisp.org>
4825
4826         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4827         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4828         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4829         bug.
4830         * lib/pwrite.c: Undo 2010-12-31 patch.
4831         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4832
4833 2011-01-02  Bruno Haible  <bruno@clisp.org>
4834
4835         pread: Fix test whether it works.
4836         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4837
4838 2011-01-02  Bruno Haible  <bruno@clisp.org>
4839
4840         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4841         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4842         ends in "6". Don't require a specific month name. Try also the locale
4843         names found on HP-UX 11 and Solaris 7.
4844
4845 2011-01-02  Bruno Haible  <bruno@clisp.org>
4846
4847         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4848         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4849         C linkage.
4850         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4851
4852 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4853
4854         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4855         for consistency, since the "cluster" term is not used elsewhere.
4856         * lib/unigbrk.in.h: Update name.
4857         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4858         * lib/unigbrk/u16-grapheme-next.c: Update name.
4859         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4860         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4861         * lib/unigbrk/u32-grapheme-next.c: Update name.
4862         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4863         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4864         * lib/unigbrk/u8-grapheme-next.c: Update name.
4865         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4866         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4867         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4868         Suggested by Bruno Haible.
4869
4870 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4871
4872         Remove module 'u8-grapheme-len' as too redundant with
4873         'u8-grapheme-next'.
4874         * modules/unigbrk/u8-grapheme-len: Delete file.
4875         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4876         * lib/unigbrk.in.h: Remove prototype for deleted function.
4877         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4878         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4879
4880         Remove module 'u16-grapheme-len' as too redundant with
4881         'u16-grapheme-next'.
4882         * modules/unigbrk/u16-grapheme-len: Delete file.
4883         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4884         * lib/unigbrk.in.h: Remove prototype for deleted function.
4885         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4886         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4887
4888         Remove module 'u32-grapheme-len' as too redundant with
4889         'u32-grapheme-next'.
4890         * modules/unigbrk/u32-grapheme-len: Delete file.
4891         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4892         * lib/unigbrk.in.h: Remove prototype for deleted function.
4893         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4894         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4895
4896         Suggested by Bruno Haible.
4897
4898 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4899
4900         * unigbrk.in.h: Fix typo: "ben" => "been".
4901         Reported by Bruno Haible.
4902
4903 2011-01-01  Jim Meyering  <meyering@redhat.com>
4904
4905         maint: update almost all copyright ranges to include 2011
4906         Run the new "make update-copyright" rule.
4907
4908 2011-01-01  Jim Meyering  <meyering@redhat.com>
4909
4910         maint: update-copyright: exempt doc/INSTALL*
4911         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4912         since they are generated.  Suggested by Bruno Haible.
4913
4914 2011-01-01  Jim Meyering  <meyering@redhat.com>
4915
4916         maint: refine the update-copyright rule
4917         * Makefile (update-copyright): Also exclude any file that includes
4918         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4919         code that merely generates the comment.
4920
4921 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4922
4923         New module 'u8-grapheme-len'.
4924         * modules/unigbrk/u8-grapheme-len: New file.
4925         * modules/unigbrk/u8-grapheme-len-tests: New file.
4926         * lib/unigbrk.in.h: Add prototype for new function.
4927         * lib/unigbrk/u8-grapheme-len.c: New file.
4928         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4929
4930         New module 'u16-grapheme-len'.
4931         * modules/unigbrk/u16-grapheme-len: New file.
4932         * modules/unigbrk/u16-grapheme-len-tests: New file.
4933         * lib/unigbrk.in.h: Add prototype for new function.
4934         * lib/unigbrk/u16-grapheme-len.c: New file.
4935         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4936
4937         New module 'u32-grapheme-len'.
4938         * modules/unigbrk/u32-grapheme-len: New file.
4939         * modules/unigbrk/u32-grapheme-len-tests: New file.
4940         * lib/unigbrk.in.h: Add prototype for new function.
4941         * lib/unigbrk/u32-grapheme-len.c: New file.
4942         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4943
4944         New module 'u8-grapheme-next'.
4945         * modules/unigbrk/u8-grapheme-next: New file.
4946         * modules/unigbrk/u8-grapheme-next-tests: New file.
4947         * lib/unigbrk.in.h: Add prototype for new function.
4948         * lib/unigbrk/u8-grapheme-next.c: New file.
4949         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4950
4951         New module 'u16-grapheme-next'.
4952         * modules/unigbrk/u16-grapheme-next: New file.
4953         * modules/unigbrk/u16-grapheme-next-tests: New file.
4954         * lib/unigbrk.in.h: Add prototype for new function.
4955         * lib/unigbrk/u16-grapheme-next.c: New file.
4956         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4957
4958         New module 'u32-grapheme-next'.
4959         * modules/unigbrk/u32-grapheme-next: New file.
4960         * modules/unigbrk/u32-grapheme-next-tests: New file.
4961         * lib/unigbrk.in.h: Add prototype for new function.
4962         * lib/unigbrk/u32-grapheme-next.c: New file.
4963         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4964
4965         New module 'u8-grapheme-prev'.
4966         * modules/unigbrk/u8-grapheme-prev: New file.
4967         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4968         * lib/unigbrk.in.h: Add prototype for new function.
4969         * lib/unigbrk/u8-grapheme-prev.c: New file.
4970         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4971
4972         New module 'u16-grapheme-prev'.
4973         * modules/unigbrk/u16-grapheme-prev: New file.
4974         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4975         * lib/unigbrk.in.h: Add prototype for new function.
4976         * lib/unigbrk/u16-grapheme-prev.c: New file.
4977         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4978
4979         New module 'u32-grapheme-prev'.
4980         * modules/unigbrk/u32-grapheme-prev: New file.
4981         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4982         * lib/unigbrk.in.h: Add prototype for new function.
4983         * lib/unigbrk/u32-grapheme-prev.c: New file.
4984         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4985
4986         New module 'u8-grapheme-breaks'.
4987         * modules/unigbrk/u8-grapheme-breaks: New file.
4988         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4989         * lib/unigbrk.in.h: Add prototype for new function.
4990         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4991         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4992
4993         New module 'u16-grapheme-breaks'.
4994         * modules/unigbrk/u16-grapheme-breaks: New file.
4995         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4996         * lib/unigbrk.in.h: Add prototype for new function.
4997         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4998         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4999
5000         New module 'u32-grapheme-breaks'.
5001         * modules/unigbrk/u32-grapheme-breaks: New file.
5002         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5003         * lib/unigbrk.in.h: Add prototype for new function.
5004         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5005         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5006
5007         New module 'ulc-grapheme-breaks'.
5008         * modules/unigbrk/ulc-grapheme-breaks: New file.
5009         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5010         * m4/locale-ar.m4: New file.
5011         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5012         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5013         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5014
5015 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5016
5017         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5018         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5019         modified how this file was generated before I initially submitted
5020         the module, but failed to regenerate it.  This meant that several
5021         of the level2 entries were wrong.
5022         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5023         Remove the division-by-2 that is folded into the table now that
5024         gbrkprop.h has been regenerated properly.  Now -1 entries are
5025         handled correctly.
5026
5027         New module 'unigbrk/uc-gbrk-prop-tests'.
5028         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5029         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5030         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5031         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5032
5033 2011-01-01  Bruno Haible  <bruno@clisp.org>
5034
5035         Avoid use of hexadecimal escapes.
5036         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5037         instead of hexadecimal escapes.
5038
5039 2011-01-01  Jim Meyering  <meyering@redhat.com>
5040
5041         maint: new rule to update copyright year ranges
5042         * Makefile (update-copyright): New rule.
5043
5044         maint: indent with TABs in Makefile
5045         * Makefile: Expand leading sequences of spaces to TABs
5046
5047         version-etc: update the copyright year it reports
5048         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5049
5050 2010-12-31  Bruno Haible  <bruno@clisp.org>
5051
5052         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5053         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5054         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5055         zero.
5056
5057 2010-12-31  Bruno Haible  <bruno@clisp.org>
5058
5059         pwrite: Work around HP-UX 11.11 bug.
5060         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5061         works and set REPLACE_PWRITE if not.
5062         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5063         function.
5064         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5065
5066 2010-12-31  Bruno Haible  <bruno@clisp.org>
5067
5068         pread: Work around HP-UX 11 bugs.
5069         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5070         and set REPLACE_PREAD if not.
5071         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5072
5073 2010-12-31  Eric Blake  <eblake@redhat.com>
5074
5075         nl_langinfo: fix YESEXPR on Irix 6.5
5076         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5077         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5078         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5079         it.
5080
5081 2010-12-31  Bruno Haible  <bruno@clisp.org>
5082
5083         iconv: Document HP-UX 11 bug.
5084         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5085
5086 2010-12-31  Bruno Haible  <bruno@clisp.org>
5087
5088         ldexpl: Fix link error on HP-UX 11.
5089         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5090         LDEXPL_LIBM, using $ISNANL_LIBM.
5091
5092 2010-12-31  Eric Blake  <eblake@redhat.com>
5093
5094         ftello: avoid compilation failure with SunStudio c89
5095         * lib/ftello.c (ftello): Use lseek, not llseek.
5096
5097         tests: avoid failing coreutils tests on cygwin
5098         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5099         (create_exe_shims_): Return 0 when skipping.
5100
5101 2010-12-31  Bruno Haible  <bruno@clisp.org>
5102
5103         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5104         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5105
5106 2010-12-31  Bruno Haible  <bruno@clisp.org>
5107
5108         waitpid: Fix link error in C++ mode.
5109         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5110
5111 2010-12-31  Bruno Haible  <bruno@clisp.org>
5112
5113         isnan: Use GCC built-ins when possible.
5114         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5115         __builtin_isnan.
5116         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5117         (isnan): Define using GCC built-ins for GCC >= 4.0.
5118
5119 2010-12-31  Bruno Haible  <bruno@clisp.org>
5120
5121         isnand: Fix mistake.
5122         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5123         __builtin_isnand.
5124
5125 2010-12-31  Bruno Haible  <bruno@clisp.org>
5126
5127         open: Avoid C++ error on HP-UX 11.
5128         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5129
5130 2010-12-31  Bruno Haible  <bruno@clisp.org>
5131
5132         time_r: Add missing declarations on HP-UX 11.
5133         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5134         instead of HAVE_LOCALTIME_R.
5135         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5136         HAVE_LOCALTIME_R always.
5137         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5138         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5139         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5140         HAVE_LOCALTIME_R.
5141         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5142         * doc/posix-functions/localtime_r.texi: Likewise.
5143
5144 2010-12-29  Eric Blake  <eblake@redhat.com>
5145
5146         mountlist: tweak previous commit
5147         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5148         Reported by Paul Eggert.
5149
5150         mountlist: fix local drive detection on cygwin
5151         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5152         that works for cygwin.
5153
5154 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5155
5156         ftoastr, snprintf: ftoastr + snprintf module
5157         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5158         since the snprintf module now should be good enough here.
5159         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5160         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5161         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5162         GNULIB_SNPRINTF only for the test directory, and the latter
5163         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5164         seems to suffice by itself.
5165
5166 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5167
5168         alloca: one step towards thread-safety
5169         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5170         need for a static variable.  All callers changed.  This does not
5171         make the alloca replacement thread-safe, but it's one step.
5172
5173         tests: minor indenting change
5174         * tests/init.sh: Sync from coreutils housekeeping patch
5175         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5176         to keep lines within 80 columns.
5177
5178 2010-12-28  Jim Meyering  <meyering@redhat.com>
5179
5180         regex: don't infloop on persistent failing calloc
5181         * lib/regexec.c (build_trtable): Return failure indication upon
5182         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5183         In glibc, this was fixed for version 2.13:
5184         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5185
5186 2010-12-28  Bruno Haible  <bruno@clisp.org>
5187             Paul Eggert <eggert@cs.ucla.edu>
5188
5189         linkat: Make implementation robust against system behaviour variations.
5190         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5191         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5192         way, and to -2 if it needs a generic runtime test.
5193         * lib/linkat.c (solaris_optimized_link_immediate,
5194         solaris_optimized_link_follow): New functions.
5195         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5196         (check_same_link): Use it.
5197
5198 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5199
5200         New module 'unigbrk/base'.
5201         * modules/unigbrk/base: New file.
5202         * lib/unigbrk.in.h: New file.
5203
5204         New module 'unigbrk/uc-gbrk-prop'.
5205         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5206         * modules/unigbrk/uc-gbrk-prop: New file.
5207         * lib/unigbrk/gbrkprop.h: New file.
5208         * lib/unigbrk/uc-gbrk-prop.c: New file.
5209
5210         New module 'unigbrk/uc-is-grapheme-break'.
5211         * modules/unigbrk/uc-is-grapheme-break: New file.
5212         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5213         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5214         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5215         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5216         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5217
5218         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5219
5220 2010-12-27  Bruno Haible  <bruno@clisp.org>
5221
5222         linkat test: Avoid failure on Solaris 11 2010-11.
5223         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5224
5225 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5226
5227         utimens: work around glibc rounding bug on more platforms
5228         * lib/utimens.c (fdutimens): Work around rounding bug even if
5229         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5230         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5231
5232 2010-12-27  Bruno Haible  <bruno@clisp.org>
5233
5234         select tests: Improve comments.
5235         * tests/test-select.c (do_select): Add comments.
5236
5237 2010-12-27  Bruno Haible  <bruno@clisp.org>
5238
5239         select tests: Safer way of handling timeout.
5240         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5241         at every invocation.
5242
5243 2010-12-27  Bruno Haible  <bruno@clisp.org>
5244
5245         select tests: Use 'bool' where appropriate.
5246         * tests/test-select.c (connect_to_socket): Change argument type to
5247         'bool'.
5248
5249 2010-12-27  Bruno Haible  <bruno@clisp.org>
5250
5251         select tests: Use existing modules.
5252         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5253         (configure.ac): Don't test for unistd.h.
5254         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5255         declared in <unistd.h>.
5256
5257 2010-12-27  Bruno Haible  <bruno@clisp.org>
5258
5259         mbrtowc: Work around a Solaris 7 bug.
5260         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5261         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5262         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5263         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5264         MBRTOWC_NULL_ARG1_BUG.
5265         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5266         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5267         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5268         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5269
5270 2010-12-27  Jim Meyering  <meyering@redhat.com>
5271
5272         read-file.c: tweak syntax
5273         * lib/read-file.c (fread_file): Remove space after "*" in function
5274         definitions.
5275
5276 2010-12-27  Bruno Haible  <bruno@clisp.org>
5277
5278         times test: Avoid gcc warnings on OSF/1.
5279         * tests/test-times.c (main): Cast printf arguments from clock_t to
5280         'long int'.
5281
5282 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5283
5284         utimens: work around glibc rounding bug on older Linux kernels
5285         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5286         on Linux with a glibc whose utimes might not work, then work
5287         around a longstanding glibc bug involving rounding rather than
5288         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5290
5291 2010-12-26  Bruno Haible  <bruno@clisp.org>
5292
5293         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5294         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5295         _GL_CXXALIAS_SYS.
5296         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5297
5298 2010-12-26  Bruno Haible  <bruno@clisp.org>
5299
5300         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5301         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5302         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5303         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5304         looking for the declaration.
5305         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5306         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5307         problem.
5308         * doc/posix-functions/inet_pton.texi: Likewise.
5309
5310 2010-12-26  Bruno Haible  <bruno@clisp.org>
5311
5312         arpa_inet: Use the common idioms with C++ support.
5313         * lib/arpa_inet.in.h: Include c++defs.h.
5314         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5315         support.
5316         * modules/arpa_inet (Depends-on): Add c++defs.
5317         (Makefile.am): Substitute the contents of c++defs.h.
5318         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5319         * modules/arpa_inet-c++-tests: New file.
5320         * tests/test-arpa_inet-c++.cc: New file.
5321
5322 2010-12-25  Bruno Haible  <bruno@clisp.org>
5323
5324         Fix more C++ link errors on Solaris 8.
5325         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5326         $(LIB_EACCESS).
5327         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5328         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5329         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5330         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5331         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5332
5333 2010-12-25  Bruno Haible  <bruno@clisp.org>
5334
5335         printf-posix: Fix link error when a non-GCC compiler is used.
5336         * lib/stdio.in.h (printf): When not using GCC, override printf
5337         correctly.
5338         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5339
5340 2010-12-25  Bruno Haible  <bruno@clisp.org>
5341
5342         strerror_r-posix: Update doc.
5343         * doc/posix-functions/strerror_r.texi: Update doc about the return
5344         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5345
5346 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5347
5348         utimens: simplify the logic of the previous change
5349         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5350         This should not affect whether the test succeeds or fails.
5351
5352         utimens: configure better on hosts with NFS clock skew
5353         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5354         uses the clock of the local host.  It might use the clock of the
5355         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5357
5358 2010-12-25  Bruno Haible  <bruno@clisp.org>
5359
5360         ptsname test: Avoid failure on Solaris.
5361         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5362         open a pseudo-terminal; don't use BSD-style ptys.
5363         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5364
5365 2010-12-25  Bruno Haible  <bruno@clisp.org>
5366
5367         ptsname: Avoid ERANGE failure on some systems.
5368         * lib/ptsname.c (buffer): Increase size.
5369
5370 2010-12-25  Bruno Haible  <bruno@clisp.org>
5371
5372         rename, renameat: Avoid test failures at NFS mounted locations.
5373         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5374         so that subsequent mkdir calls succeed.
5375
5376 2010-12-25  Bruno Haible  <bruno@clisp.org>
5377
5378         iswblank: Fix C++ link error on Solaris 8.
5379         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5380         _GL_FUNCDECL_SYS.
5381
5382 2010-12-25  Bruno Haible  <bruno@clisp.org>
5383
5384         unistd: Fix C++ link error on Solaris 8.
5385         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5386
5387 2010-12-25  Bruno Haible  <bruno@clisp.org>
5388
5389         readlink doc: Mention an old glibc bug.
5390         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5391
5392 2010-12-25  Bruno Haible  <bruno@clisp.org>
5393
5394         fcntl-h: Fix for use of C++ on glibc systems.
5395         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5396         also on glibc systems in C++ mode.
5397         Reported by Gary V. Vaughan <gary@gnu.org>.
5398
5399 2010-12-25  Bruno Haible  <bruno@clisp.org>
5400
5401         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5402         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5403
5404 2010-12-25  Bruno Haible  <bruno@clisp.org>
5405
5406         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5407         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5408         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5409         test whether truncl works according to ISO C 99 with IEC 60559.
5410         * m4/truncl-ieee.m4: New file.
5411         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5412         m4/signbit.m4.
5413         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5414
5415 2010-12-25  Bruno Haible  <bruno@clisp.org>
5416
5417         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5418         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5419         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5420         test whether ceill works according to ISO C 99 with IEC 60559.
5421         * m4/ceill-ieee.m4: New file.
5422         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5423         m4/signbit.m4.
5424         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5425
5426 2010-12-25  Bruno Haible  <bruno@clisp.org>
5427
5428         Ensure all prerequisites of <wchar.h> are included.
5429         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5430         before <wchar.h>.
5431         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5432         gl_MBRLEN_NUL_RETVAL): Likewise.
5433         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5434         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5435         AC_FUNC_MBRTOWC): Likewise.
5436         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5437         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5438         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5439         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5440         Likewise.
5441         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5442         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5443         (gl_WCHAR_H): Improve comments.
5444         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5445
5446 2010-12-25  Bruno Haible  <bruno@clisp.org>
5447
5448         strtok_r: Fix C syntax error in autoconf macro.
5449         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5450         characters in test program.
5451
5452 2010-12-24  Bruno Haible  <bruno@clisp.org>
5453
5454         ceil, trunc, round: Fix gcc warnings.
5455         * lib/ceil.c (MIN): Undefine before redefining.
5456         * lib/trunc.c (MIN): Likewise.
5457         * lib/round.c (MIN): Likewise.
5458         Include <math.h> first.
5459
5460 2010-12-24  Bruno Haible  <bruno@clisp.org>
5461
5462         select tests: Avoid failures on OSF/1 5.1.
5463         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5464         failure of closing the last socket; it may fail with ECONNRESET.
5465
5466 2010-12-24  Eric Blake  <eblake@redhat.com>
5467
5468         stdint: avoid HP-UX 10.20 preprocessor bug
5469         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5470         than #if.
5471         * tests/test-floor2.c (main): Likewise.
5472         Reported by Peter O'Gorman.
5473
5474         pipe: make obsoletion transition easier
5475         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5476         * modules/pipe (Files): Include revived file.
5477         (Include): Drop reference, to mirror getdate's behavior.
5478
5479 2010-12-24  Bruno Haible  <bruno@clisp.org>
5480
5481         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5482         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5483         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5484         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5485
5486 2010-12-24  Bruno Haible  <bruno@clisp.org>
5487
5488         gethostname: Ensure declaration on NonStop Kernel.
5489         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5490         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5491
5492 2010-12-24  Bruno Haible  <bruno@clisp.org>
5493
5494         sys_select: Ensure all necessary types on NonStop Kernel.
5495         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5496         include <sys/time.h>.
5497         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5498         NonStop Kernel.
5499         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5500
5501 2010-12-24  Bruno Haible  <bruno@clisp.org>
5502
5503         sys_select: Remove unneeded include.
5504         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5505         have <sys/select.h>.
5506
5507 2010-12-24  Bruno Haible  <bruno@clisp.org>
5508
5509         gethostname: Provide a fallback for HOST_NAME_MAX.
5510         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5511         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5512         instead.
5513         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5514
5515 2010-12-24  Bruno Haible  <bruno@clisp.org>
5516
5517         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5518         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5519         (SA_RESTART): Likewise.
5520         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5521
5522 2010-12-24  Bruno Haible  <bruno@clisp.org>
5523
5524         signal: Define NSIG.
5525         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5526         * tests/test-signal.c (nsig): New variable.
5527         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5528
5529 2010-12-24  Bruno Haible  <bruno@clisp.org>
5530
5531         rename, renameat: Avoid test failures on OSF/1 5.1.
5532         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5533         alternative error codes.
5534         * tests/test-renameat.c (main): Likewise.
5535
5536 2010-12-24  Bruno Haible  <bruno@clisp.org>
5537
5538         *printf: Detect large precisions bug on Solaris 10/SPARC.
5539         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5540         by Paul Eggert.
5541         * tests/test-snprintf-posix.h (test_function): Add this test code here
5542         too.
5543         * tests/test-sprintf-posix.h (test_function): Likewise.
5544         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5545         * tests/test-vasprintf-posix.c (test_function): Likewise.
5546         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5547         around by gnulib.
5548         * doc/posix-functions/printf.texi: Likewise.
5549         * doc/posix-functions/snprintf.texi: Likewise.
5550         * doc/posix-functions/sprintf.texi: Likewise.
5551         * doc/posix-functions/vfprintf.texi: Likewise.
5552         * doc/posix-functions/vprintf.texi: Likewise.
5553         * doc/posix-functions/vsnprintf.texi: Likewise.
5554         * doc/posix-functions/vsprintf.texi: Likewise.
5555         * doc/posix-functions/dprintf.texi: Undo last commit.
5556         * doc/posix-functions/vdprintf.texi: Likewise.
5557
5558 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5559
5560         tests: port test-fdutimensat.c to Solaris 8
5561         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5562         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5563         On Solaris 8, it fails with errno == ENOSYS, because there is no
5564         futimens (so it can't use the fd), and there is no lutimens (so it
5565         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5566
5567         vsnprintf: make more consistent with snprintf; doc fixes
5568
5569         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5570         the byte count return problem was promoted from the snprintf-posix
5571         to the snprintf module.
5572         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5573         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5574         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5575         * tests/test-snprintf.c (main): Check the byte count returned.
5576         * tests/test-vsnprintf.c (main): Likewise.
5577
5578 2010-12-23  Eric Blake  <eblake@redhat.com>
5579
5580         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5581         * modules/sigpipe (License): Relax license.
5582
5583 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         doc: document Solaris printf bug with large float precisions
5586         * doc/posix-functions/dprintf.texi (dprintf):
5587         * doc/posix-functions/fprintf.texi (fprintf):
5588         * doc/posix-functions/printf.texi (printf):
5589         * doc/posix-functions/snprintf.texi (snprintf):
5590         * doc/posix-functions/sprintf.texi (sprintf):
5591         * doc/posix-functions/vdprintf.texi (vdprintf):
5592         * doc/posix-functions/vfprintf.texi (vfprintf):
5593         * doc/posix-functions/vprintf.texi (vprintf):
5594         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5595         * doc/posix-functions/vsprintf.texi (vsprintf):
5596         Mention that these functions mishandle large floating point
5597         precisions on Solaris 10.  The same bug is also present in Solaris
5598         8, and I assume earlier.  This causes "cd gnulib-tests; make
5599         check" to fail on Solaris 8 (and I assume, later) when building
5600         the latest coreutils, in test-vasprintf-posix's call to
5601         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5602         the wide flavors (e.g., wprintf) so this patch just updates the
5603         documentation for the narrow ones.
5604
5605         test-posixtm.c: add two tests
5606         * tests/test-posixtm.c: Add two tests, to highlight the
5607         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5608         around this bug; this is merely to document it.
5609
5610 2010-12-22  Bruno Haible  <bruno@clisp.org>
5611
5612         getlogin_r: Work around portability problem on OSF/1.
5613         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5614         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5615         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5616         test for a truncated result.
5617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5618         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5619         * modules/getlogin_r (Depends-on): Add memchr.
5620         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5621
5622 2010-12-22  Bruno Haible  <bruno@clisp.org>
5623
5624         ptsname: Avoid test failure on OSF/1 5.1.
5625         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5626         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5627         (same_slave): New function.
5628         (main): Use it to compare ptsname's result with the expected file name.
5629
5630 2010-12-22  Bruno Haible  <bruno@clisp.org>
5631
5632         Port extended stdio modules to HP NonStop Kernel.
5633         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5634         macros.
5635         * lib/fbufmode.c: Update comments.
5636         * lib/fflush.c: Likewise.
5637         * lib/fpurge.c: Likewise.
5638         * lib/freadable.c: Likewise.
5639         * lib/freadahead.c: Likewise.
5640         * lib/freading.c: Likewise.
5641         * lib/freadptr.c: Likewise.
5642         * lib/freadseek.c: Likewise.
5643         * lib/fseeko.c: Likewise.
5644         * lib/fseterr.c: Likewise.
5645         * lib/fwritable.c: Likewise.
5646         * lib/fwriting.c: Likewise.
5647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5648
5649 2010-12-22  Bruno Haible  <bruno@clisp.org>
5650
5651         ttyname_r: Work around bug on OSF/1 5.1.
5652         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5653         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5654         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5655         present.
5656         * lib/ttyname_r.c (ttyname_r): Update comments.
5657
5658 2010-12-22  Bruno Haible  <bruno@clisp.org>
5659
5660         round: Implement result sign according to IEEE 754.
5661         * lib/round.c (MIN, MINUS_ZERO): New macros.
5662         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5663         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5664         * tests/test-round-ieee.c (main): Likewise.
5665         * tests/test-roundl-ieee.c (main): Likewise.
5666
5667         trunc: Implement result sign according to IEEE 754.
5668         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5669         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5670         * tests/test-trunc2.c: Include minus-zero.h.
5671         (MINUS_ZERO): New macro.
5672         (trunc_reference): Keep in sync with lib/trunc.c.
5673         * tests/test-truncf2.c: Include minus-zero.h.
5674         (MINUS_ZERO): New macro.
5675         (truncf_reference): Keep in sync with lib/trunc.c.
5676         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5677         * tests/test-trunc-ieee.c (main): Likewise.
5678         * tests/test-truncl-ieee.c (main): Likewise.
5679
5680         ceil: Implement result sign according to IEEE 754.
5681         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5682         (FUNC): Return -0.0 for -1 < x < 0.
5683         * tests/test-ceil2.c: Include minus-zero.h.
5684         (MINUS_ZERO): New macro.
5685         (ceil_reference): Keep in sync with lib/ceil.c.
5686         * tests/test-ceilf2.c: Include minus-zero.h.
5687         (MINUS_ZERO): New macro.
5688         (ceilf_reference): Keep in sync with lib/ceil.c.
5689         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5690         * tests/test-ceil-ieee.c (main): Likewise.
5691         * tests/test-ceill-ieee.c (main): Likewise.
5692
5693         floor: Implement result sign according to IEEE 754.
5694         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5695         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5696         * tests/test-floorf2.c (floorf_reference): Likewise.
5697         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5698         * tests/test-floor-ieee.c (main): Likewise.
5699         * tests/test-floorl-ieee.c (main): Likewise.
5700
5701 2010-12-22  Bruno Haible  <bruno@clisp.org>
5702
5703         getaddrinfo: Update doc.
5704         * doc/posix-functions/gai_strerror.texi: Return type is also different
5705         on AIX and HP-UX.
5706
5707 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         getaddrinfo, inet_ntop: Update doc for Solaris.
5710         * doc/posix-functions/gai_strerror.texi: Return type is also an
5711         issue on Solaris 9 and earlier.
5712         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5713         on Solaris 10 and earlier.
5714
5715 2010-12-21  Bruno Haible  <bruno@clisp.org>
5716
5717         New module 'roundl-ieee'.
5718         * modules/roundl-ieee: New file.
5719         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5720         test whether roundl works according to ISO C 99 with IEC 60559.
5721         * m4/roundl-ieee.m4: New file.
5722         * modules/roundl-ieee-tests: New file.
5723         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5724         * tests/test-roundl.c (main): Remove signbit tests.
5725         * modules/roundl-tests (Depends-on): Remove signbit.
5726         * doc/posix-functions/roundl.texi: Mention the new module.
5727
5728 2010-12-21  Bruno Haible  <bruno@clisp.org>
5729
5730         New module 'truncl-ieee'.
5731         * modules/truncl-ieee: New file.
5732         * modules/truncl-ieee-tests: New file.
5733         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5734         * tests/test-truncl.c (main): Remove signbit tests.
5735         * modules/truncl-tests (Depends-on): Remove signbit.
5736         * doc/posix-functions/truncl.texi: Mention the new module.
5737
5738 2010-12-21  Bruno Haible  <bruno@clisp.org>
5739
5740         New module 'ceill-ieee'.
5741         * modules/ceill-ieee: New file.
5742         * modules/ceill-ieee-tests: New file.
5743         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5744         * tests/test-ceill.c (main): Remove signbit tests.
5745         * modules/ceill-tests (Depends-on): Remove signbit.
5746         * doc/posix-functions/ceill.texi: Mention the new module.
5747
5748 2010-12-21  Bruno Haible  <bruno@clisp.org>
5749
5750         New module 'floorl-ieee'.
5751         * modules/floorl-ieee: New file.
5752         * modules/floorl-ieee-tests: New file.
5753         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5754         * tests/test-floorl.c (main): Remove signbit tests.
5755         * modules/floorl-tests (Depends-on): Remove signbit.
5756         * doc/posix-functions/floorl.texi: Mention the new module.
5757
5758 2010-12-21  Bruno Haible  <bruno@clisp.org>
5759
5760         New module 'round-ieee'.
5761         * modules/round-ieee: New file.
5762         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5763         whether round works according to ISO C 99 with IEC 60559.
5764         * m4/round-ieee.m4: New file.
5765         * modules/round-ieee-tests: New file.
5766         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5767         * tests/test-round1.c (main): Remove signbit tests.
5768         * modules/round-tests (Depends-on): Remove 'signbit'.
5769         * doc/posix-functions/round.texi: Mention the new module.
5770
5771 2010-12-21  Bruno Haible  <bruno@clisp.org>
5772
5773         New module 'trunc-ieee'.
5774         * modules/trunc-ieee: New file.
5775         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5776         whether trunc works according to ISO C 99 with IEC 60559.
5777         * m4/trunc-ieee.m4: New file.
5778         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5780         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5781         * modules/trunc-ieee-tests: New file.
5782         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5783         * tests/test-trunc1.c (main): Remove signbit tests.
5784         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5785         * doc/posix-functions/trunc.texi: Mention the new module.
5786
5787 2010-12-21  Bruno Haible  <bruno@clisp.org>
5788
5789         New module 'ceil-ieee'.
5790         * modules/ceil-ieee: New file.
5791         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5792         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5793         ISO C 99 with IEC 60559.
5794         * m4/ceil-ieee.m4: New file.
5795         * modules/ceil (Files): Add lib/ceil.c.
5796         (Depends-on): Add 'float'.
5797         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5798         * lib/math.in.h (ceil): New declaration.
5799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5800         REPLACE_CEIL.
5801         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5802         * modules/ceil-ieee-tests: New file.
5803         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5804         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5805         * doc/posix-functions/ceil.texi: Mention the new module.
5806
5807 2010-12-21  Bruno Haible  <bruno@clisp.org>
5808
5809         New module 'floor-ieee'.
5810         * modules/floor-ieee: New file.
5811         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5812         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5813         ISO C 99 with IEC 60559.
5814         * m4/floor-ieee.m4: New file.
5815         * modules/floor (Files): Add lib/floor.c.
5816         (Depends-on): Add 'float'.
5817         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5818         * lib/math.in.h (floor): New declaration.
5819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5820         REPLACE_FLOOR.
5821         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5822         * modules/floor-ieee-tests: New file.
5823         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5824         * tests/test-math-c++.cc: Check the signature of 'floor'.
5825         * doc/posix-functions/floor.texi: Mention the new module.
5826
5827 2010-12-21  Bruno Haible  <bruno@clisp.org>
5828
5829         New module 'roundf-ieee'.
5830         * modules/roundf-ieee: New file.
5831         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5832         test whether roundf works according to ISO C 99 with IEC 60559.
5833         * m4/roundf-ieee.m4: New file.
5834         * modules/roundf-ieee-tests: New file.
5835         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5836         * tests/test-roundf1.c (main): Remove signbit tests.
5837         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5838         * doc/posix-functions/roundf.texi: Mention the new module.
5839
5840 2010-12-21  Bruno Haible  <bruno@clisp.org>
5841
5842         New module 'truncf-ieee'.
5843         * modules/truncf-ieee: New file.
5844         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5845         test whether truncf works according to ISO C 99 with IEC 60559.
5846         * m4/truncf-ieee.m4: New file.
5847         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5849         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5850         * modules/truncf-ieee-tests: New file.
5851         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5852         * tests/test-truncf1.c (main): Remove signbit tests.
5853         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5854         * doc/posix-functions/truncf.texi: Mention the new module.
5855
5856 2010-12-21  Bruno Haible  <bruno@clisp.org>
5857
5858         New module 'ceilf-ieee'.
5859         * modules/ceilf-ieee: New file.
5860         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5861         test whether ceilf works according to ISO C 99 with IEC 60559.
5862         * m4/ceilf-ieee.m4: New file.
5863         * modules/ceilf-ieee-tests: New file.
5864         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5865         * tests/test-ceilf1.c (main): Remove signbit tests.
5866         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5867         * doc/posix-functions/ceilf.texi: Mention the new module.
5868
5869 2010-12-21  Bruno Haible  <bruno@clisp.org>
5870
5871         New module 'floorf-ieee'.
5872         * modules/floorf-ieee: New file.
5873         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5874         test whether floorf works according to ISO C 99 with IEC 60559.
5875         * m4/floorf-ieee.m4: New file.
5876         * modules/floorf-ieee-tests: New file.
5877         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5878         * tests/test-floorf1.c (main): Remove signbit tests.
5879         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5880         * doc/posix-functions/floorf.texi: Mention the new module.
5881
5882 2010-12-21  Bruno Haible  <bruno@clisp.org>
5883
5884         Support for minus zero in autoconf macros.
5885         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5886         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5887         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5888         * tests/minus-zero.h: Update comments.
5889
5890 2010-12-21  Bruno Haible  <bruno@clisp.org>
5891
5892         Tests for module 'ceil'.
5893         * modules/ceil-tests: New file.
5894         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5895         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5896
5897 2010-12-21  Bruno Haible  <bruno@clisp.org>
5898
5899         Tests for module 'floor'.
5900         * modules/floor-tests: New file.
5901         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5902         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5903
5904 2010-12-21  Bruno Haible  <bruno@clisp.org>
5905
5906         math: Fix indentation.
5907         * lib/math.in.h (floorf): Fix indentation.
5908
5909 2010-12-21  Bruno Haible  <bruno@clisp.org>
5910
5911         Fix cross-compilation guesses on Solaris.
5912         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5913         not match "solaris2.10".
5914         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5915         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5916         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5917
5918 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5919
5920         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5921         This fixes a problem observed with the latest coreutils snapshot
5922         that caused a test to fail on Solaris 8.  src/csplit.c's call
5923         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5924         earlier, instead of returning the number of bytes that would have
5925         been generated; this causes csplit to incorrectly report memory
5926         exhaustion.
5927         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5928         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5929         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5930         comments to match.
5931         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5932         Fix typo in matching older versions of Solaris: "solaris2.10"
5933         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5934         only for guessing while cross-compiling.
5935         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5936
5937 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5938
5939         ftoastr: fix comment again
5940         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5941         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5942         Also, simplify example a bit by using flags = 0.
5943
5944 2010-12-20  Bruno Haible  <bruno@clisp.org>
5945
5946         round*, trunc*: Update documentation regarding glibc.
5947         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5948         * doc/posix-functions/round.texi: Likewise.
5949         * doc/posix-functions/roundl.texi: Likewise.
5950         * doc/posix-functions/truncf.texi: Likewise.
5951         * doc/posix-functions/trunc.texi: Likewise.
5952         * doc/posix-functions/truncl.texi: Likewise.
5953
5954 2010-12-20  Bruno Haible  <bruno@clisp.org>
5955
5956         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5957         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5958         * doc/posix-functions/round.texi: Likewise.
5959         * doc/posix-functions/roundl.texi: Likewise.
5960
5961 2010-12-20  Bruno Haible  <bruno@clisp.org>
5962
5963         ttyname_r: Add missing declaration on HP-UX 11.
5964         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5965         HAVE_TTYNAME_R.
5966         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5967         declared. Set HAVE_TTYNAME_R always.
5968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5969         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5970         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5971         HAVE_TTYNAME_R.
5972         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5973
5974 2010-12-20  Bruno Haible  <bruno@clisp.org>
5975
5976         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5977         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5978         * doc/posix-functions/getlogin_r.texi: Likewise.
5979         * tests/test-getlogin.c: Include <errno.h>.
5980         (main): Avoid test failure on HP-UX 11.11.
5981         * tests/test-getlogin_r.c (main): Likewise.
5982
5983 2010-12-20  Bruno Haible  <bruno@clisp.org>
5984
5985         getlogin_r: Add missing declaration on HP-UX 11.
5986         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5987         declared also when it exists as a function.
5988         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5989
5990 2010-12-20  Bruno Haible  <bruno@clisp.org>
5991
5992         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5993         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5994         through wcrtomb.
5995
5996 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5997
5998         ftoastr: fix comment
5999         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6000         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6001
6002 2010-12-19  Bruno Haible  <bruno@clisp.org>
6003
6004         isnan: Ensure it is a macro.
6005         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6006         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6007         Solaris.
6008
6009 2010-12-19  Bruno Haible  <bruno@clisp.org>
6010
6011         ldexpl test: Fix link error on OSF/1 5.1.
6012         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6013
6014 2010-12-19  Bruno Haible  <bruno@clisp.org>
6015
6016         wctype: Make it work in C++ mode on OSF/1 5.1.
6017         * lib/wctype.in.h (iswblank): Declare but not define here.
6018         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6019         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6020         * modules/wctype (Files): Add lib/iswblank.c.
6021
6022 2010-12-19  Bruno Haible  <bruno@clisp.org>
6023
6024         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6025         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6026         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6027
6028 2010-12-19  Bruno Haible  <bruno@clisp.org>
6029
6030         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6031         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6032         _POSIX_PII_SOCKET.
6033         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6034         * doc/posix-functions/recvfrom.texi: Likewise.
6035         * doc/posix-functions/send.texi: Likewise.
6036         * doc/posix-functions/sendto.texi: Likewise.
6037
6038 2010-12-19  Bruno Haible  <bruno@clisp.org>
6039
6040         tcgetsid: Add missing declaration on OSF/1 5.1.
6041         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6042         HAVE_TCGETSID.
6043         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6044         Don't set HAVE_TCGETSID.
6045         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6046         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6047         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6048         HAVE_TCGETSID.
6049         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6050
6051 2010-12-19  Bruno Haible  <bruno@clisp.org>
6052
6053         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6054         * lib/stdio.in.h: During the include_next statement, let recursive
6055         includes of this file include only the system header file.
6056
6057 2010-12-19  Bruno Haible  <bruno@clisp.org>
6058
6059         iconv_open: Fix regression from 2010-12-04.
6060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6061         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6062
6063 2010-12-19  Bruno Haible  <bruno@clisp.org>
6064
6065         stdbool test: Avoid a gcc warning.
6066         * tests/test-stdbool.c (main): Fail if e1 is false.
6067         Reported by Jim Meyering.
6068
6069 2010-12-19  Jim Meyering  <meyering@redhat.com>
6070
6071         setenv: restore to working order
6072         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6073         mistakenly removed.
6074         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6075         HAVE_SETENV.
6076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6077         HAVE_SETENV.
6078
6079 2010-12-19  Bruno Haible  <bruno@clisp.org>
6080
6081         Document some different function declarations on OSF/1 5.1.
6082         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6083         * doc/posix-functions/inet_ntop.texi: Likewise.
6084         * doc/posix-functions/gethostname.texi: Likewise.
6085         * lib/unistd.in.h (gethostname): Update comment.
6086
6087 2010-12-19  Bruno Haible  <bruno@clisp.org>
6088
6089         doc: Mention vasprintf-posix module.
6090         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6091         the 'vasprintf-posix' module.
6092         * doc/glibc-functions/vasprintf.texi: Likewise.
6093
6094 2010-12-19  Bruno Haible  <bruno@clisp.org>
6095
6096         unsetenv: Add missing declaration on OSF/1 5.1.
6097         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6098         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6099         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6101         not HAVE_UNSETENV.
6102         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6103         HAVE_UNSETENV.
6104         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6105
6106 2010-12-19  Bruno Haible  <bruno@clisp.org>
6107
6108         setenv: Add missing declaration on OSF/1 5.1.
6109         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6110         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6111         declared. Don't set HAVE_SETENV.
6112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6113         not HAVE_SETENV.
6114         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6115         HAVE_SETENV.
6116         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6117
6118 2010-12-19  Bruno Haible  <bruno@clisp.org>
6119
6120         nl_langinfo tests: Avoid gcc warning.
6121         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6122
6123 2010-12-19  Bruno Haible  <bruno@clisp.org>
6124
6125         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6126         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6127         _GL_CXXALIAS_SYS.
6128
6129 2010-12-19  Bruno Haible  <bruno@clisp.org>
6130
6131         stdbool: Relax test.
6132         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6133         address to 'bool' work in static initializer, for compilers other than
6134         GCC.
6135
6136 2010-12-19  Bruno Haible  <bruno@clisp.org>
6137
6138         ftello: Add missing declaration on OSF/1 5.1.
6139         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6140         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6142         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6143         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6144
6145 2010-12-19  Bruno Haible  <bruno@clisp.org>
6146
6147         fseeko: Add missing declaration on OSF/1 5.1.
6148         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6149         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6151         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6152         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6153
6154 2010-12-19  Bruno Haible  <bruno@clisp.org>
6155
6156         fchdir: Add missing declaration on OSF/1 5.1.
6157         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6160         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6161         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6162
6163 2010-12-19  Bruno Haible  <bruno@clisp.org>
6164
6165         relocatable-prog-wrapper: Separate from relocatable-prog.
6166         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6167         uninstall-relocwrapper rule here.
6168         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6169         Reported by Ian Beckwith <ianb@erislabs.net>.
6170
6171 2010-12-19  Bruno Haible  <bruno@clisp.org>
6172
6173         unistr/u8-mbsnlen: Add missing dependency.
6174         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6175         Reported by Ian Beckwith <ianb@erislabs.net>.
6176
6177 2010-12-19  Bruno Haible  <bruno@clisp.org>
6178
6179         iconv: Make it possible again to use this module without 'iconv-h'.
6180         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6181         if it is not defined.
6182         Reported by Ian Beckwith <ianb@erislabs.net>.
6183
6184 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6185
6186         acl: port to Solaris 8 when copying from tmpfs to ufs
6187         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6188         error number.  Problem observed on Solaris 8 with latest
6189         coreutils, with "mv A B", where A is on a tmpfs file system and B
6190         is on a ufs file system.  This caused coreutils' mv/part-symlink
6191         test to fail.
6192
6193         tests: set fail=0 at start
6194         * tests/init.sh (setup_): Move fail=0 initialization here ...
6195         (mktempd_): ... from here, so that tests can rely on fail being
6196         set to 0 initially.  This fixes a problem in coreutils; see:
6197         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6198
6199 2010-12-18  Bruno Haible  <bruno@clisp.org>
6200
6201         memmem-simple: Stylistic changes.
6202         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6203         Fix preprocessor directive indentation.
6204
6205 2010-12-15  Pádraig Brady <P@draigBrady.com>
6206
6207         memmem, memmem-simple: reorganize and expand empty needle check
6208         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6209         functional checks to memmem-simple so that one has a fully functional
6210         memmem by using just this module.
6211         Restrict the performance only check to the memmem module.
6212         Also expand the empty needle check to ensure the correct
6213         pointer is returned, not just a non NULL pointer.
6214         * doc/glibc-functions/memmem.texi: Rearrange the portability
6215         documentation to correlate with the rearranged checks.
6216         Clarify exactly how the memmem and memmem-simple modules
6217         relate to each other.
6218
6219 2010-12-15  Pádraig Brady <P@draigBrady.com>
6220             Bruno Haible  <bruno@clisp.org>
6221
6222         Improve cross-compilation guesses for uClibc.
6223         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6224         that uClibc does not have the glibc bug.
6225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6226         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6227
6228 2010-12-14  Eric Blake  <eblake@redhat.com>
6229
6230         configmake: provide fallbacks for oldest supported autotools
6231         * m4/configmake.m4: New file.
6232         * modules/configmake (Files): Ship it.
6233         (configure.ac): Use it to guarantee fallbacks.
6234
6235 2010-12-13  Pádraig Brady <P@draigBrady.com>
6236
6237         read-file: Improve handling of large files
6238         * lib/read-file.c (fread_file): Minimize realloc()s
6239         for regular files, and better manage sizes around SIZE_MAX.
6240
6241 2010-12-13  Eric Blake  <eblake@redhat.com>
6242
6243         cloexec, fcntl: relax license
6244         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6245         consent from all contributors.
6246         * modules/fcntl (License): Likewise.
6247
6248 2010-12-10  Bruno Haible  <bruno@clisp.org>
6249
6250         Tests for module 'pipe-posix'.
6251         * modules/pipe-posix-tests: New file.
6252         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6253
6254 2010-12-10  Bruno Haible  <bruno@clisp.org>
6255
6256         pipe-posix: Make it work in C++ mode.
6257         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6258         (pipe): Use common idiom, not a macro definition.
6259         * lib/pipe.c: New file.
6260         * m4/pipe.m4: New file.
6261         * modules/pipe-posix (Description): Enhance.
6262         (Files): Add lib/pipe.c, m4/pipe.m4.
6263         (configure.ac): Invoke gl_FUNC_PIPE.
6264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6265         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6266         * tests/test-unistd-c++.cc: Check the signature of pipe.
6267
6268 2010-12-10  Bruno Haible  <bruno@clisp.org>
6269
6270         Rename module 'pipe' to 'spawn-pipe'.
6271         * modules/spawn-pipe: New file, renamed from modules/pipe.
6272         (Files, configure.ac, Makefile.am): Update.
6273         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6274         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6275         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6276         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6277         "spawn-pipe.h" instead of "pipe.h".
6278         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6279         to gl_SPAWN_PIPE.
6280         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6281         (Files, Makefile.am): Update.
6282         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6283         Update.
6284         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6285         Include "spawn-pipe.h" instead of "pipe.h".
6286         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6287         * lib/javacomp.c: Likewise.
6288         * lib/javaversion.c: Likewise.
6289         * lib/pipe-filter-gi.c: Likewise.
6290         * lib/pipe-filter-ii.c: Likewise.
6291         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6292         * modules/javacomp (Depends-on): Likewise.
6293         * modules/javaversion (Depends-on): Likewise.
6294         * modules/pipe-filter-gi (Depends-on): Likewise.
6295         * modules/pipe-filter-ii (Depends-on): Likewise.
6296         * MODULES.html.sh (Executing programs): Update.
6297         * NEWS: Mention the change.
6298
6299 2010-12-10  Eric Blake  <eblake@redhat.com>
6300
6301         pipe-posix: new module
6302         * modules/pipe-posix: New file.
6303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6304         (gl_UNISTD_H): Check for declaration.
6305         * modules/unistd (Makefile.am): Substitute it.
6306         * lib/unistd.in.h (pipe): Provide it for mingw.
6307         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6308         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6309
6310 2010-12-07  Bruno Haible  <bruno@clisp.org>
6311
6312         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6313         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6314         u8_strcmp_gnu.
6315         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6316
6317 2010-12-06  Bruno Haible  <bruno@clisp.org>
6318
6319         Update internal documentation.
6320         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6321
6322 2010-12-04  Bruno Haible  <bruno@clisp.org>
6323
6324         Put more information about failed tests into the test return codes.
6325         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6326         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6327         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6328         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6329         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6332         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6333         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6335         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6336         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6337         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6338         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6339         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6340         returns a bit mask.
6341         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6342         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6343         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6344         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6345         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6346         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6349         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6350         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6351         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6352         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6353         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6355         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6356         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6357         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6358         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6359         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6360         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6361         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6362         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6364         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6365         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6366         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6367         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6368         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6369         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6370         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6371         gl_PRINTF_PRECISION): Likewise.
6372         * m4/regex.m4 (gl_REGEX): Likewise.
6373         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6374         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6375         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6376         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6379         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6380         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6381         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6382         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6383         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6384         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6385         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6386         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6387         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6388         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6389         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6390         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6392         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6393         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6394         enumerated value.
6395         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6396
6397 2010-12-04  Bruno Haible  <bruno@clisp.org>
6398
6399         Update for Solaris 11 2010-11.
6400         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6401         Express, released in November 2010.
6402
6403 2010-12-04  Bruno Haible  <bruno@clisp.org>
6404
6405         nproc: Relax license.
6406         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6407         and Paul Eggert.
6408         Requested by Ludovic Courtès <ludo@gnu.org>.
6409
6410 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6411
6412         utimecmp: fine-grained src to nearby coarse-grained dest
6413
6414         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6415         and the source is on a file system with higher-resolution time
6416         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6417         not work, and the time stamps are close together, the algorithm to
6418         determine the exact resolution from the read-back mtime was buggy:
6419         it had a "!=" where it should have had an "==".  This bug has been
6420         in the code ever since it was introduced to gnulib.
6421         Problem reported by Dan Jacobson in
6422         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6423
6424 2010-11-30  Bruno Haible  <bruno@clisp.org>
6425
6426         strerror_r-posix: Fix autoconf test.
6427         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6428
6429 2010-11-28  Bruno Haible  <bruno@clisp.org>
6430             Paul Eggert  <eggert@cs.ucla.edu>
6431
6432         Tests for module 'getdomainname'.
6433         * modules/getdomainname-tests: New file.
6434         * tests/test-getdomainname.c: New file, based on
6435         tests/test-gethostname.c.
6436
6437 2010-11-28  Bruno Haible  <bruno@clisp.org>
6438             Paul Eggert  <eggert@cs.ucla.edu>
6439
6440         getdomainname: Use the system function when possible.
6441         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6442         (getdomainname): Replace if needed. Provide the declaration if it is
6443         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6444         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6445         (getdomainname): When the system has getdomainname, call the system
6446         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6447         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6448         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6449         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6450         the function if its second argument is of type 'int' or if it is found
6451         in libnsl.
6452         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6453         <sys/systeminfo.h> and sysinfo().
6454         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6456         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6457         HAVE_GETDOMAINNAME.
6458         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6459         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6460         * doc/glibc-functions/getdomainname.texi: Document the problems with
6461         the getdomainname declaration.
6462
6463 2010-11-28  Bruno Haible  <bruno@clisp.org>
6464
6465         sys_socket: Ensure ss_family field on AIX.
6466         * lib/sys_socket.in.h (ss_family): New macro definition.
6467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6468         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6469         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6470         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6471         * modules/sys_socket (Makefile.am): Substitute
6472         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6473         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6474
6475 2010-11-27  Bruno Haible  <bruno@clisp.org>
6476
6477         readline: Improve configure output.
6478         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6479         "checking for readline..." result understandable.
6480
6481 2010-11-27  Bruno Haible  <bruno@clisp.org>
6482
6483         *printf-posix: Detect a bug on Solaris 10/x86.
6484         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6485         for floating-point output.
6486         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6487         directive.
6488         * tests/test-snprintf-posix.h (test_function): Likewise.
6489         * tests/test-sprintf-posix.h (test_function): Likewise.
6490         * tests/test-vasprintf-posix.c (test_function): Likewise.
6491         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6492         * doc/posix-functions/printf.texi: Likewise.
6493         * doc/posix-functions/snprintf.texi: Likewise.
6494         * doc/posix-functions/sprintf.texi: Likewise.
6495         * doc/posix-functions/vfprintf.texi: Likewise.
6496         * doc/posix-functions/vprintf.texi: Likewise.
6497         * doc/posix-functions/vsnprintf.texi: Likewise.
6498         * doc/posix-functions/vsprintf.texi: Likewise.
6499         * doc/glibc-functions/obstack_printf.texi: Likewise.
6500         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6501
6502 2010-11-27  Bruno Haible  <bruno@clisp.org>
6503
6504         Fix link error when module libunistring-optional is in use.
6505         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6506         * modules/striconveha-tests (Makefile.am): Likewise.
6507
6508 2010-11-27  Bruno Haible  <bruno@clisp.org>
6509
6510         regex: Mention link dependencies.
6511         * modules/regex (Link): New section.
6512         * modules/rpmatch (Link): Likewise.
6513         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6514
6515 2010-11-27  Bruno Haible  <bruno@clisp.org>
6516
6517         ftoastr: Fix compilation error on Solaris.
6518         * lib/ftoastr.c: Include <config.h>.
6519
6520 2010-11-27  Bruno Haible  <bruno@clisp.org>
6521
6522         getloadavg: Update documentation.
6523         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6524
6525 2010-11-27  Bruno Haible  <bruno@clisp.org>
6526
6527         sys_socket: Fix test whether the functions are declared.
6528         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6529         not <sys/select.h>.
6530
6531 2010-11-27  Bruno Haible  <bruno@clisp.org>
6532
6533         getpass: Make sure to get system declaration on some platforms.
6534         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6535         gl_USE_SYSTEM_EXTENSIONS.
6536         * modules/getpass (Depends-on): Add extensions.
6537
6538 2010-11-26  Bruno Haible  <bruno@clisp.org>
6539
6540         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6541         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6542         'iconv' module is present.
6543         (ICONV_CONST): New macro.
6544         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6545         ICONV_CONST.
6546         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6547         set ICONV_CONST.
6548         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6549         here.
6550         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6551         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6552         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6553         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6554         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6555         present.
6556
6557 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6558
6559         ftoastr: comment fix
6560         * lib/ftoastr.c: "little" -> "little or no" in comment
6561
6562 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6563
6564         stdint: port to GCC 4.3 + OSX + Octave
6565         On this platform, stdint.h is buggy and defines int64_t to long
6566         long int.  The replacement defined it to long int, causing
6567         problems with C++ style name mangling.  Instead, trust the system
6568         definition if INT64_MAX is defined, and likewise for the unsigned
6569         variant.   Problem reported by Jarno Rajahalme in
6570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6571         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6572         and don't mess with int64_t and INT64_MAX in this case.
6573         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6574
6575 2010-11-24  Bruno Haible  <bruno@clisp.org>
6576
6577         doc: Corrections regarding MacOS X 10.4 and 10.5.
6578         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6579         MacOS X.
6580         Reported by Simon Josefsson.
6581
6582 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6583
6584         Uninstall ".bin" files installed by relocwrapper.
6585         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6586         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6587         unless it is already there.
6588
6589 2010-11-21  Bruno Haible  <bruno@clisp.org>
6590
6591         Update for NetBSD 5.0.
6592         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6593         NetBSD; the test fails on NetBSD 5.0.
6594         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6595         about NetBSD.
6596
6597 2010-11-21  Bruno Haible  <bruno@clisp.org>
6598
6599         Update for HP-UX 11.23 and HP-UX 11.31.
6600         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6601         HP-UX.
6602
6603 2010-11-21  Bruno Haible  <bruno@clisp.org>
6604
6605         Update for MacOS X 10.5.
6606         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6607         MacOS X; the test fails on MacOS X 10.5.8.
6608         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6609         about MacOS X.
6610
6611 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6612
6613         bootstrap: add bootstrap_sync option.
6614         See discussion at
6615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6617         * build-aux/bootstrap: Accept --bootstrap-sync to update
6618         bootstrap if it is not identical to the local gnulib's
6619         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6620         enable this by default.  Accept --no-bootstrap-sync to disable
6621         it.
6622
6623 2010-11-20  Bruno Haible  <bruno@clisp.org>
6624
6625         Ensure that <features.h> is included before __GLIBC__ is tested.
6626         * lib/printf-parse.h: Include <features.h>.
6627         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6628         Reported by Mike Frysinger <vapier@gentoo.org>.
6629
6630         Ensure that <features.h> is included before __GLIBC__ is tested.
6631         * lib/wchar.in.h: Include <features.h>.
6632         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6633         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6634         Reported by Mike Frysinger <vapier@gentoo.org>.
6635
6636         Ensure that <features.h> is included before __GLIBC__ is tested.
6637         * lib/arpa_inet.in.h: Include <features.h>.
6638         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6639         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6640         Reported by Mike Frysinger <vapier@gentoo.org>.
6641
6642         Ensure that <features.h> is included before __GLIBC__ is tested.
6643         * build-aux/link-warning.h: Include <features.h>.
6644         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6645         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6646         Reported by Mike Frysinger <vapier@gentoo.org>.
6647
6648         Ensure that <features.h> is included before __GLIBC__ is tested.
6649         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6650         Reported by Mike Frysinger <vapier@gentoo.org>.
6651
6652 2010-11-20  Bruno Haible  <bruno@clisp.org>
6653
6654         memmem: Fix autoconf test.
6655         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6656
6657 2010-11-20  Bruno Haible  <bruno@clisp.org>
6658
6659         Port to uClibc.
6660         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6661         * lib/fcntl.in.h: Likewise.
6662         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6663         * lib/mbrtowc.c (mbrtowc): Likewise.
6664         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6665         * lib/strerror_r.c: Likewise.
6666         * lib/unistr/u8-strnlen.c: Likewise.
6667         * lib/vasnprintf.c (decimal_point_char): Likewise.
6668         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6669         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6670         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6671         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6672         * tests/test-sigaction.c (handler, main): Likewise.
6673         * lib/freading.h: Treat uClibc like a non-glibc platform.
6674         * lib/freading.c: Likewise.
6675         * lib/gettext.h: Likewise.
6676         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6677         Likewise.
6678         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6679         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6680         * lib/propername.c (proper_name_utf8): Likewise.
6681         * lib/spawn.in.h: Likewise.
6682         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6683         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6684         mem_cd_iconveh_internal): Likewise.
6685         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6686         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6687         strstr, strcasestr): Likewise.
6688         * lib/unicodeio.c (unicode_to_mb): Likewise.
6689         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6690         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6691         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6692         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6693         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6694         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6695         * lib/unistr/u8-stpncpy.c: Likewise.
6696         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6697         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6698         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6699         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6700         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6702         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6703         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6705         Likewise.
6706         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6707         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6708         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6709         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6710         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6711         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6712         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6713         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6714         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6715         * tests/test-striconveha.c (main): Likewise.
6716         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6717         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6718         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6719         * doc/posix-functions/getline.texi: Likewise.
6720         Reported by Mike Frysinger <vapier@gentoo.org>.
6721
6722 2010-11-20  Bruno Haible  <bruno@clisp.org>
6723
6724         nproc: Fix condition.
6725         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6726         HAVE_PTHREAD_AFFINITY_NP.
6727
6728 2010-11-20  Bruno Haible  <bruno@clisp.org>
6729
6730         Fix a comment.
6731         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6732
6733 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6734
6735         ftoastr: don't assume snprintf
6736         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6737         Implement a subset of snprintf here, by using sprintf safely.
6738         * modules/ftoastr (Depends-on): Remove snprintf.
6739
6740 2010-11-19  Jim Meyering  <meyering@redhat.com>
6741
6742         test-rename.h: fix compilation failure
6743         * tests/test-rename.h (test_rename): Add omitted "}".
6744
6745 2010-11-17  Jim Meyering  <meyering@redhat.com>
6746
6747         maint.mk: add a URL discussing the no-@acronym policy
6748         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6749
6750 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6751
6752         ftoastr: depend on snprintf, improve comments
6753         * lib/ftoastr.c: Also mention Loitsch's draft.
6754         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6755         needed in the current implementation, but it might simplify
6756         speeding up the code later.
6757         * modules/ftoastr: Depend on snprintf; this improves portability.
6758         Suggested by Bruno Haible in the same email.
6759
6760         ftoastr: port to hosts lacking strtof and strtold
6761         Problem reported by Bruno Haible in
6762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6763         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6764         environment and strtold (and presumably strtof) are not available.
6765         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6766         (configure.ac): Require gl_C99_STRTOLD.
6767
6768 2010-11-18  Bruno Haible  <bruno@clisp.org>
6769
6770         c-strtold: Avoid link error on AIX 7.
6771         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6772         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6773         (gl_C_STRTOLD): Test whether strtold_l exists.
6774         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6775
6776 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6777
6778         intprops: new macro INT_BITS_STRLEN_BOUND
6779         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6780         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6781         not exposed.  Also, it uses a slightly tighter bound than before;
6782         though this makes no practical difference, we might as well be as
6783         tight as we easily can.
6784
6785         ftoastr: new module, for lossless conversion of floats to short strings
6786         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6787         * modules/ftoastr: New files.
6788
6789 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6790
6791         bootstrap: port to Solaris sed
6792         * build-aux/bootstrap (get_version): Port to Solaris sed.
6793         See Ralf Wildenhues's note in
6794         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6795
6796 2010-11-14  Jim Meyering  <meyering@redhat.com>
6797
6798         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6799         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6800         and move definition closer to sole use.
6801
6802 2010-11-13  Jim Meyering  <meyering@redhat.com>
6803
6804         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6805         Now we require at least autoconf-2.59, which means the work-around
6806         is no longer needed.
6807         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6808         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6809         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6810         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6811         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6812
6813 2010-11-13  Bruno Haible  <bruno@clisp.org>
6814
6815         rename, renameat: Avoid test failures at NFS mounted locations.
6816         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6817         functions.
6818         (test_rename): Use assert_nonexistent.
6819         * tests/test-rename.c: Include <dirent.h>.
6820         * tests/test-renameat.c: Likewise.
6821         Reported by Gary V. Vaughan <gary@gnu.org>.
6822
6823         rename, renameat: Document Linux bug with NFS
6824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6825         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6826         * doc/posix-functions/renameat.texi: Likewise.
6827         Suggested by Eric Blake.
6828
6829 2010-11-13  Bruno Haible  <bruno@clisp.org>
6830
6831         rename test: Add comments.
6832         * tests/test-rename.h (test_rename): Add structure and comments.
6833
6834 2010-11-13  Eric Blake  <eblake@redhat.com>
6835
6836         maintainer-makefile: cover a few more files
6837         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6838         scripts generated within C files, for libvirt.
6839
6840 2010-11-13  Bruno Haible  <bruno@clisp.org>
6841
6842         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6843         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6844         character, return the number of bytes that belong together, not always
6845         1.
6846         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6847         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6848         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6849         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6850         number of bytes of an invalid character.
6851         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6852         (main): Invoke it.
6853         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6854         results.
6855         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6856         malformed byte sequences.
6857         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6858         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6859         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6860         Reported by Ben Pfaff and Paolo Bonzini.
6861
6862 2010-11-13  Bruno Haible  <bruno@clisp.org>
6863
6864         openat: Work around glibc bug with fchownat() and empty file names.
6865         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6866         (gl_FUNC_FCHOWNAT): Invoke it.
6867         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6868         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6869         Reported by Gary V. Vaughan <gary@gnu.org>.
6870
6871 2010-11-13  Bruno Haible  <bruno@clisp.org>
6872
6873         openat: Ensure autoconf macro ordering.
6874         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6875         gl_USE_SYSTEM_EXTENSIONS.
6876         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6877
6878 2010-11-13  Bruno Haible  <bruno@clisp.org>
6879
6880         Update comments.
6881         * lib/unistr/u8-check.c: Update file name in comments.
6882         * lib/unistr/u8-mblen.c: Likewise.
6883         * lib/unistr/u8-prev.c: Likewise.
6884         * lib/unistr/u8-strmblen.c: Likewise.
6885         * lib/unistr/u8-strmbtouc.c: Likewise.
6886
6887 2010-11-13  Jim Meyering  <meyering@redhat.com>
6888
6889         tests: avoid test failure on Solaris 10 due to lack of PATH export
6890         * tests/test-update-copyright.sh: Don't forget to export PATH.
6891
6892         init.sh: ensure that IFS is defined, just in case...
6893         * tests/init.sh (setup_): Ensure that IFS is defined,
6894         so that saving and restoring it works as expected.  This
6895         appears to be useful at least for an old version of dash
6896         from a long time ago (RH 6).  See here for details:
6897         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6898
6899         maint.mk: tighten "test a == b" check
6900         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6901         test to files that contain something like #!/bin/sh.
6902         Without this, coreutils would get two false positives in
6903         the comments of C source files.
6904
6905 2010-11-12  Eric Blake  <eblake@redhat.com>
6906
6907         bootstrap: fix typo in previous attempt
6908         * build-aux/bootstrap (buildreq): Correct the grouping.
6909         Reported by Paul Eggert.
6910
6911         maintainer-makefile: prohibit test x == x
6912         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6913         Based on a report by Matthias Bolte.
6914
6915         bootstrap: allow FreeBSD gzip
6916         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6917         which has no '.' and goes to stderr.
6918         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6919         Reported by Matthias Bolte.
6920
6921         maintainer-makefile: check for i18n setup
6922         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6923         will likely work.
6924
6925 2010-11-12  Bruno Haible  <bruno@clisp.org>
6926
6927         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6928         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6929         * lib/nanosleep.c (nanosleep): Likewise.
6930
6931 2010-11-11  Bruno Haible  <bruno@clisp.org>
6932
6933         fcntl-h: Fix for use of C++ on glibc systems.
6934         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6935         also on glibc systems in C++ mode.
6936         Reported by Gary V. Vaughan <gary@gnu.org>.
6937
6938 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6939
6940         mknod: avoid false failure with dash
6941         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6942
6943 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6944
6945         unlink: Fix "is it should" typo in diagnostic.
6946         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6947         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6948
6949 2010-11-11  Bruno Haible  <bruno@clisp.org>
6950
6951         Tests for module 'strerror_r-posix'.
6952         * modules/strerror_r-posix-tests: New file.
6953         * tests/test-strerror_r.c: New file.
6954         * tests/test-string-c++.cc: Check the signature of strerror_r.
6955
6956         New module 'strerror_r-posix'.
6957         * lib/string.in.h (strerror_r): New declaration.
6958         * lib/strerror_r.c: New file.
6959         * m4/strerror_r.m4: New file.
6960         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6961         of strerror_r.
6962         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6963         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6964         * modules/strerror_r-posix: New file.
6965         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6966         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6967         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6968         portability problems.
6969
6970 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6971
6972         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6973         line is also considered for output. Quoted function name in shell
6974         command, so temporary files for functions like MyClass::operator()
6975         are removed correctly without errors.
6976
6977 2010-11-09  Bruno Haible  <bruno@clisp.org>
6978
6979         * doc/posix-functions/strerror.texi: List more failing platforms.
6980
6981         * doc/posix-functions/strerror.texi: Add a comment.
6982
6983 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6984
6985         fdopendir: fix bug on MacOS X when low on file descriptors
6986
6987         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6988         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6989         All callers changed.
6990         (fdopendir): Invoke save_cwd at the top level, not after using
6991         multiple dup() calls to use up file descriptors.  Then retry
6992         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6993         less than the maximum number of open file descriptors, because
6994         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6995         on Mac OS X 10.6.4 for tar 1.24
6996         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6997         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6998         and for tar 1.25
6999         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7000
7001 2010-11-07  Bruno Haible  <bruno@clisp.org>
7002
7003         vasnprintf: Support I flag on glibc systems.
7004         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7005         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7006         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7007         snprintf function.
7008         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7009         glibc systems.
7010         * tests/test-vasnprintf-posix3.c: New file.
7011         * modules/vasnprintf-posix-tests (Files): Add it.
7012         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7013
7014 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7015
7016         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7017         * MODULES.html.sh: For compiler warnings, use name
7018         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7019
7020 2010-11-05  Eric Blake  <eblake@redhat.com>
7021
7022         ceil, floor: avoid spurious failure with icc
7023         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7024         [denormals-as-zero] when optimizing without -mieee-fp option.
7025         * tests/test-floorf2.c (floorf_reference): Likewise.
7026         * tests/test-ceilf1.c (dummy): New function.
7027         (main): Use it to outsmart icc's optimization.
7028         * tests/test-floorf1.c (dummy, main): Likewise.
7029
7030         tests: require working signbit
7031         * modules/ceilf-tests (Depends-on): Add signbit.
7032         * modules/ceill-tests (Depends-on): Likewise.
7033         * modules/floorf-tests (Depends-on): Likewise.
7034         * modules/floorl-tests (Depends-on): Likewise.
7035         * modules/round-tests (Depends-on): Likewise.
7036         * modules/roundf-tests (Depends-on): Likewise.
7037         * modules/roundl-tests (Depends-on): Likewise.
7038         * modules/trunc-tests (Depends-on): Likewise.
7039         * modules/truncf-tests (Depends-on): Likewise.
7040         * modules/truncl-tests (Depends-on): Likewise.
7041
7042         strtod: work around icc bug
7043         * lib/strtod.c (minus_zero): Define to working value.
7044         (strtod): Use it to avoid icc bug.
7045
7046         copysign: enhance tests
7047         * modules/copysign-tests (Files): Add minus-zero.h.
7048         * tests/test-copysign.c (main): Also test zeros.
7049
7050 2010-11-04  Eric Blake  <eblake@redhat.com>
7051
7052         ceil, floor, round, trunc: enhance tests of -0
7053         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7054         * tests/test-ceill.c (main): Likewise.
7055         * tests/test-floorf1.c (main): Likewise.
7056         * tests/test-floorl.c (main): Likewise.
7057         * tests/test-round1.c (main): Likewise.
7058         * tests/test-roundf1.c (main): Likewise.
7059         * tests/test-roundl.c (main): Likewise.
7060         * tests/test-trunc1.c (main): Likewise.
7061         * tests/test-truncf1.c (main): Likewise.
7062         * tests/test-truncl.c (main): Likewise.
7063
7064 2010-11-04  Eric Blake  <eblake@redhat.com>
7065
7066         frexp, tests: work around ICC bug with -zero
7067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7068         works with more compilers.
7069         * tests/minus-zero.h: New file.
7070         * modules/ceilf-tests (Files): Include it.
7071         * modules/ceill-tests (Files): Likewise.
7072         * modules/floorf-tests (Files): Likewise.
7073         * modules/floorl-tests (Files): Likewise.
7074         * modules/frexp-nolibm-tests (Files): Likewise.
7075         * modules/frexp-tests (Files): Likewise.
7076         * modules/frexpl-nolibm-tests (Files): Likewise.
7077         * modules/frexpl-tests (Files): Likewise.
7078         * modules/isnan-tests (Files): Likewise.
7079         * modules/isnand-nolibm-tests (Files): Likewise.
7080         * modules/isnand-tests (Files): Likewise.
7081         * modules/isnanf-nolibm-tests (Files): Likewise.
7082         * modules/isnanf-tests (Files): Likewise.
7083         * modules/isnanl-nolibm-tests (Files): Likewise.
7084         * modules/isnanl-tests (Files): Likewise.
7085         * modules/round-tests (Files): Likewise.
7086         * modules/roundf-tests (Files): Likewise.
7087         * modules/roundl-tests (Files): Likewise.
7088         * modules/ldexpl-tests (Files): Likewise.
7089         * modules/signbit-tests (Files): Likewise.
7090         * modules/snprintf-posix-tests (Files): Likewise.
7091         * modules/sprintf-posix-tests (Files): Likewise.
7092         * modules/strtod-tests (Files): Likewise.
7093         * modules/trunc-tests (Files): Likewise.
7094         * modules/truncf-tests (Files): Likewise.
7095         * modules/truncl-tests (Files): Likewise.
7096         * modules/vsnprintf-posix-tests (Files): Likewise.
7097         * modules/vsprintf-posix-tests (Files): Likewise.
7098         * modules/vasnprintf-posix-tests (Files): Likewise.
7099         * modules/vasprintf-posix-tests (Files): Likewise.
7100         * tests/test-ceilf1.c (main): Use it.
7101         * tests/test-ceill.c (main): Likewise.
7102         * tests/test-floorf1.c (main): Likewise.
7103         * tests/test-floorl.c (main): Likewise.
7104         * tests/test-frexp.c (main): Likewise.
7105         * tests/test-frexpl.c (main): Likewise.
7106         * tests/test-isnan.c (main): Likewise.
7107         * tests/test-isnand.h (main): Likewise.
7108         * tests/test-isnanf.h (main): Likewise.
7109         * tests/test-isnanl.h (main): Likewise.
7110         * tests/test-ldexpl.c (main): Likewise.
7111         * tests/test-round.c (main): Likewise.
7112         * tests/test-roundf.c (main): Likewise.
7113         * tests/test-roundl.c (main): Likewise.
7114         * tests/test-signbit.c (test_signbitf, test_signbitd)
7115         (test_signbitl): Likewise.
7116         * tests/test-snprintf-posix.h (test_function): Likewise.
7117         * tests/test-sprintf-posix.h (test_function): Likewise.
7118         * tests/test-strtod.c (main): Likewise.
7119         * tests/test-trunc1.c (main): Likewise.
7120         * tests/test-truncf1.c (main): Likewise.
7121         * tests/test-truncl.c (main): Likewise.
7122
7123         isnanl: work around icc bug
7124         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7125
7126 2010-11-03  Eric Blake  <eblake@redhat.com>
7127
7128         tests: fix compiler warnings
7129         * tests/test-getopt.h (test_getopt): Fix condition.
7130         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7131         * tests/test-pipe2.c (main): Likewise.
7132         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7133
7134         utimens: fix broken m4 test
7135         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7136
7137 2010-10-28  Bruno Haible  <bruno@clisp.org>
7138
7139         posix_spawn*, getdtablesize: Relax license.
7140         * modules/posix_spawn (License): Change to LGPLv2+.
7141         * modules/posix_spawnp (License): Likewise.
7142         * modules/posix_spawn-internal (License): Likewise.
7143         * modules/posix_spawnattr_init (License): Likewise.
7144         * modules/posix_spawnattr_getflags (License): Likewise.
7145         * modules/posix_spawnattr_setflags (License): Likewise.
7146         * modules/posix_spawnattr_getpgroup (License): Likewise.
7147         * modules/posix_spawnattr_setpgroup (License): Likewise.
7148         * modules/posix_spawnattr_getschedparam (License): Likewise.
7149         * modules/posix_spawnattr_setschedparam (License): Likewise.
7150         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7151         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7152         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7153         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7154         * modules/posix_spawnattr_getsigmask (License): Likewise.
7155         * modules/posix_spawnattr_setsigmask (License): Likewise.
7156         * modules/posix_spawnattr_destroy (License): Likewise.
7157         * modules/posix_spawn_file_actions_init (License): Likewise.
7158         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7159         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7160         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7161         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7162         * modules/getdtablesize (License): Likewise.
7163         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7164
7165 2010-10-26  Bruno Haible  <bruno@clisp.org>
7166
7167         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7168         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7169         Cygwin and mingw.
7170         Suggested by Eric Blake.
7171
7172 2010-10-26  Bruno Haible  <bruno@clisp.org>
7173
7174         stdio: Work around compilation error due to renameat() on Solaris 10.
7175         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7176         * lib/renameat.c: Don't include <unistd.h> here.
7177         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7178         Reported by Paul Eggert and Eric Blake.
7179
7180 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7181
7182         renameat: port to Solaris 10, which declares renameat in unistd.h
7183
7184         * lib/renameat.c: Include unistd.h before stdio.h, because
7185         Solaris 10 declares renameat in unistd.h.  Problem encountered
7186         when building GNU tar 1.24 on Solaris 10.
7187
7188 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7189
7190         fdopendir: fix C89 compilation
7191         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7192         compilers.
7193
7194 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7195
7196         inttostr: simplify by removing unnecessary redundancy
7197         * lib/anytostr.c: Don't include verify.h.
7198         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7199         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7200         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7201         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7202         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7203         Likewise.
7204         * modules/inttostr (Depends-on): Remove 'verify'.
7205
7206 2010-10-23  Bruno Haible  <bruno@clisp.org>
7207
7208         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7209         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7210         Reported by Eric Blake.
7211
7212 2010-10-23  Bruno Haible  <bruno@clisp.org>
7213
7214         Tests: Fix LOCALE_JA on MirBSD 10.
7215         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7216         to an UTF-8 locale.
7217         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7218         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7219         Reported by Eric Blake.
7220
7221 2010-10-21  Bruno Haible  <bruno@clisp.org>
7222
7223         nl_langinfo test: Avoid test failure on NetBSD 5.
7224         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7225         Reported by Eric Blake.
7226
7227 2010-10-21  Eric Blake  <eblake@redhat.com>
7228
7229         c-stack: work around libsigsegv 2.8 bug
7230         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7231         overflow on at least PowerPC64.
7232
7233 2010-10-17  Bruno Haible  <bruno@clisp.org>
7234
7235         userspec: Drop redundant file.
7236         * modules/userspec (Files): Remove lib/inttostr.h.
7237
7238 2010-10-17  Bruno Haible  <bruno@clisp.org>
7239
7240         nl_langinfo tests: Silence some warnings.
7241         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7242         Reported by Jim Meyering.
7243
7244 2010-10-17  Bruno Haible  <bruno@clisp.org>
7245
7246         Make use of GCC's attribute __alloc_size__.
7247         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7248         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7249         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7250         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7251         __alloc_size__.
7252         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7253         Suggested by Jim Meyering.
7254
7255 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7256
7257         bootstrap: anchor .gitignore entries.
7258         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7259         with...
7260         (insert_vc_ignore): ... this new function, which prepends `/' to
7261         all .gitignore entries before passing them to
7262         insert_sorted_if_absent.
7263
7264 2010-10-16  Bruno Haible  <bruno@clisp.org>
7265
7266         nextafter: Fix configure check.
7267         * modules/nextafter (configure.ac): Correct expected prototype.
7268
7269 2010-10-16  Bruno Haible  <bruno@clisp.org>
7270
7271         termios: Update documentation.
7272         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7273
7274 2010-10-16  Bruno Haible  <bruno@clisp.org>
7275
7276         tests: Make them compile with TinyCC.
7277         * tests/test-strstr.c (main): Remove parentheses around array
7278         initializer.
7279
7280 2010-10-15  Eric Blake  <eblake@redhat.com>
7281
7282         ignore-value: make header idempotent
7283         * lib/ignore-value.h: Add double-inclusion guards.
7284         Reported by Stefan Berger.
7285
7286 2010-10-15  Jim Meyering  <meyering@redhat.com>
7287
7288         GNUmakefile: handle "stable" target, not "major"
7289         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7290         lists in maint.mk and announce-gen.  Without this, "make stable"
7291         would fail to ensure that $(VERSION) is up to date.
7292
7293 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7294
7295         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7296         & co.
7297
7298 2010-10-14  Bruno Haible  <bruno@clisp.org>
7299
7300         vasnprintf: Don't set errno to 0.
7301         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7302         block that sets it to 0.
7303         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7304
7305 2010-10-14  Bruno Haible  <bruno@clisp.org>
7306
7307         socketlib: Fix.
7308         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7309         gl_PREREQ_SYS_H_WINSOCK2.
7310         Reported by Ian Beckwith <ianb@erislabs.net>.
7311
7312 2010-10-13  Jim Meyering  <meyering@redhat.com>
7313
7314         test-select-stdin.c: avoid warn_unused_result warnings
7315         * tests/test-select-stdin.c: Include "macros.h".
7316         ASSERT that read and fflush succeed.
7317
7318 2010-10-13  Jim Meyering  <meyering@redhat.com>
7319
7320         git-version-gen: do require git-VC'd files in cwd
7321         * build-aux/git-version-gen: Reject a git version string
7322         if there are no commits associated with the current directory.
7323         This avoids an unlikely false-positive (unrelated dir whose parent
7324         repository also contains a tag matching v*), as pointed out
7325         by Giuseppe Scrivano in
7326         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7327
7328 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7329
7330         argv-iter: omit nonconforming declaration
7331         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7332         enum arg_iter_err declaration, which doesn't conform to C99.
7333         Solaris 10 cc warns about this.
7334
7335 2010-10-13  Eric Blake  <eblake@redhat.com>
7336
7337         termios: fix compilation on mingw
7338         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7339         (gl_TERMIOS_H): Adjust it on mingw.
7340         * modules/termios (Makefile.am): Substitute new key.
7341         * lib/termios.in.h (includes): Make include_next conditional.
7342         * doc/posix-headers/termios.texi (termios.h): Update
7343         documentation.
7344         Reported by Daniel P. Berrange.
7345
7346 2010-10-13  Jim Meyering  <meyering@redhat.com>
7347
7348         git-version-gen: don't require that .git/ be in the current dir
7349         * build-aux/git-version-gen: Adjust this script so that it works
7350         when run from any working directory beneath the top-level .git/-
7351         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7352         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7353
7354         test-select: avoid warn_unused_result warnings
7355         * tests/test-select.c: Include "macros.h".
7356         ASSERT that each call to read, write, and pipe succeeds.
7357         While not technically required, also check each "close".
7358         * modules/select-tests (Files): Add tests/macros.h.
7359
7360         test-symlinkat: remove declaration of unused local
7361         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7362
7363         test-inttostr: avoid shadowing warnings
7364         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7365         and use malloc rather than the stack for the same reason as
7366         mentioned in the comment justifying the other allocation.
7367
7368 2010-10-11  Bruno Haible  <bruno@clisp.org>
7369
7370         stdlib: Allow multiple gnulib generated replacements to coexist.
7371         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7372         Reported by Sam Steingold <sds@gnu.org>.
7373
7374 2010-10-11  Jim Meyering  <meyering@redhat.com>
7375
7376         fix a documentation typo
7377         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7378
7379 2010-10-11  Eric Blake  <eblake@redhat.com>
7380
7381         futimens: work around Solaris 11 bug
7382         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7383         * tests/test-futimens.h (test_futimens): Enhance, rather than
7384         weaken test.
7385         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7386
7387 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7388
7389         Indentation.
7390         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7391         higher-level operators more to the left.
7392
7393 2010-10-11  Jim Meyering  <meyering@redhat.com>
7394
7395         test-futimens: avoid unwarranted test failure on Solaris 5.11
7396         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7397         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7398         because it tries to dereference the NULL name argument.
7399
7400 2010-10-11  Bruno Haible  <bruno@clisp.org>
7401
7402         Indentation.
7403         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7404         indentation.
7405
7406 2010-10-11  Jim Meyering  <meyering@redhat.com>
7407
7408         spawn.in.h: make indentation consistent with parentheses
7409         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7410         Make indentation consistent with parentheses.
7411
7412 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7413
7414         Fix mismatched parens in previous commit
7415         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7416         parens.
7417
7418 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7419
7420         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7421
7422         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7423         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7424         * lib/malloca.c: Include "verify.h".
7425         (verify1): Remove, replacing with a verify call.
7426         * lib/relocwrapper.c (verify1): Likewise.
7427         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7428         Likewise.
7429         * modules/malloca (Depends-on): Add 'verify'.
7430         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7431         * modules/vasnprintf (Depends-on): Add 'verify'.
7432         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7433         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7434         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7435         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7436         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7437         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7438         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7439
7440         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7441
7442         Formerly the style was sometimes 2*X - 1, because the C standard
7443         was wrongly thought to disallow ?: in integral constant expressions.
7444         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7445         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7446         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7447         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7448         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7449         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7450         verify that time_t cannot be floating.
7451
7452 2010-10-08  Eric Blake  <eblake@redhat.com>
7453
7454         time: enforce recent POSIX ruling that time_t is integral
7455         * lib/time.in.h (__time_t_must_be_integral): Detect any
7456         problematic systems, allowing the rest of gnulib to assume POSIX.
7457
7458 2010-10-08  Jim Meyering  <meyering@redhat.com>
7459
7460         fdopendir: fix a bug on systems lacking openat and /proc support
7461         OpenBSD 4.7 is one such system.  The most noticeable effect was
7462         failure of any application making nontrivial use of fts: rm, du,
7463         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7464           ./rm: traversal failed: `a': Bad file descriptor
7465         Debugging that, you see that even though FD 6 was closed just
7466         prior to the opendir call in fd_clone_opendir, its resulting
7467         dir->dd_fd was 8, rather than the expected value of 6:
7468
7469         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7470         93                close (fd);
7471         (gdb) n
7472         94                dir = fd_clone_opendir (dupfd);
7473         (gdb) n
7474         95                saved_errno = errno;
7475         (gdb) p dir->dd_fd
7476         $11 = 8
7477
7478         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7479         The problem is that on OpenBSD, fd_clone_opendir has to resort
7480         to using the old-style save/restore CWD mechanism, due to its
7481         lack of openat/proc support, and *that* would steal the FD (6)
7482         that opendir was supposed to use.
7483
7484         The fix is to squirrel away the desired FD so that save_cwd uses a
7485         different one, and then free the dest FD right before calling opendir.
7486         That guarantees opendir will use the required file descriptor.
7487
7488         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7489
7490 2010-10-08  Bruno Haible  <bruno@clisp.org>
7491
7492         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7493         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7494
7495 2010-10-08  Bruno Haible  <bruno@clisp.org>
7496
7497         nanosleep: Make replacement POSIX compliant.
7498         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7499         is out of range.
7500         Reported by Jim Meyering.
7501
7502 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7503
7504         bootstrap: add hook for altering gnulib.mk, for Bison
7505         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7506         the Bison bootstrapping process can rewrite file names and variables
7507         in this file before later parts of 'bootstrap' use the file.
7508         Bison wants to include lib/gnulib.mk from the top-level makefile,
7509         so it needs the file names in this file to be relative to the top
7510         level, not relative to lib; plus it needs variable names to be
7511         rewritten.
7512         (slurp): Use the new function.
7513
7514         bootstrap: reformat for readability
7515         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7516
7517 2010-10-08  Eric Blake  <eblake@redhat.com>
7518
7519         docs: update cygwin progress
7520         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7521         1.7.7.
7522         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7523         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7524         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7525         * doc/posix-functions/carg.texi (carg): Likewise.
7526         * doc/posix-functions/cargf.texi (cargf): Likewise.
7527         * doc/posix-functions/casin.texi (casin): Likewise.
7528         * doc/posix-functions/casinf.texi (casinf): Likewise.
7529         * doc/posix-functions/casinh.texi (casinh): Likewise.
7530         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7531         * doc/posix-functions/catan.texi (catan): Likewise.
7532         * doc/posix-functions/catanf.texi (catanf): Likewise.
7533         * doc/posix-functions/catanh.texi (catanh): Likewise.
7534         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7535         * doc/posix-functions/ccos.texi (ccos): Likewise.
7536         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7537         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7538         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7539         * doc/posix-functions/cexp.texi (cexp): Likewise.
7540         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7541         * doc/posix-functions/cimag.texi (cimag): Likewise.
7542         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7543         * doc/posix-functions/clog.texi (clog): Likewise.
7544         * doc/posix-functions/clogf.texi (clogf): Likewise.
7545         * doc/posix-functions/conj.texi (conj): Likewise.
7546         * doc/posix-functions/conjf.texi (conjf): Likewise.
7547         * doc/posix-functions/cpow.texi (cpow): Likewise.
7548         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7549         * doc/posix-functions/cproj.texi (cproj): Likewise.
7550         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7551         * doc/posix-functions/creal.texi (creal): Likewise.
7552         * doc/posix-functions/crealf.texi (crealf): Likewise.
7553         * doc/posix-functions/csin.texi (csin): Likewise.
7554         * doc/posix-functions/csinf.texi (csinf): Likewise.
7555         * doc/posix-functions/csinh.texi (csinh): Likewise.
7556         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7557         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7558         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7559         * doc/posix-functions/ctan.texi (ctan): Likewise.
7560         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7561         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7562         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7563         * doc/posix-headers/complex.texi (complex.h): Likewise.
7564
7565 2010-10-07  Jim Meyering  <meyering@redhat.com>
7566
7567         parse-datetime: avoid compilation failure on OpenBSD 4.7
7568         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7569         This works around a compilation failure on OpenBSD 4.7:
7570         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7571
7572 2010-10-07  Eric Blake  <eblake@redhat.com>
7573
7574         docs: update cygwin progress
7575         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7576         1.7.6.
7577         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7578         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7579         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7580         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7581         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7582         Likewise.
7583         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7584         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7585         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7586         Likewise.
7587         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7588         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7589         Likewise.
7590         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7591         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7592         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7593         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7594         Likewise.
7595         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7596         Likewise.
7597         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7598
7599         docs: update parse-datetime history
7600         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7601         documentation of this function's history and alternatives.
7602
7603         cygwin: use more robust version check
7604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7605         exclude an eventual cygwin 1.9.1.
7606         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7608         (gl_FUNC_STRCASESTR): Likewise.
7609         Reported by Bruno Haible.
7610
7611 2010-10-06  Bruno Haible  <bruno@clisp.org>
7612
7613         string, sys_select: Avoid #including large headers unless necessary.
7614         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7615         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7616         OSF/1, BeOS, Haiku.
7617         Reported by Jim Meyering.
7618
7619 2010-10-05  Eric Blake  <eblake@redhat.com>
7620
7621         memmem, strstr, strcasestr: fix bug with long periodic needle
7622         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7623         periodic needle having false positive.
7624         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7625         and cygwin 1.7.7.
7626         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7628         (gl_FUNC_STRCASESTR): Likewise.
7629         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7630         * tests/test-memmem.c (main): Expose the bug.
7631         * tests/test-strcasestr.c (main): Likewise.
7632         * tests/test-strstr.c (main): Likewise.
7633         * tests/test-c-strcasestr.c (main): Likewise.
7634         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7635         * doc/posix-functions/strstr.texi (strstr): Likewise.
7636         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7637         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7638
7639 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7640
7641         parse-datetime: do some more renaming
7642         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7643         parse_datetime, not get_date.  Mention the renaming.
7644         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7645         in comments.
7646         * m4/bison.m4: Likewise.
7647
7648 2010-10-05  Eric Blake  <eblake@redhat.com>
7649
7650         parse-datetime: better name than get_date
7651         * NEWS: Reword the deprecation notice.
7652         * modules/get_date: Rename to modules/parse-datetime.
7653         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7654         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7655         * lib/get_date.y: Rename to lib/parse-datetime.y.
7656         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7657         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7658         * doc/getdate.texi: Provide fallback wrapper.
7659         * lib/getdate.h: Move guts, and wrap...
7660         * lib/parse-datetime.h: ...new file.
7661         * lib/parse-datetime.y (get_date): Rename...
7662         (parse_datetime): ...to this.
7663         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7664         (gl_PARSE_DATETIME): ...to this.
7665         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7666         documentation.
7667         * modules/getdate (Files): Provide fallback docs and header.
7668         (Notice, Depends-on): Update references.
7669         * tests/test-parse-datetime.c: Likewise.
7670         * DEPENDENCIES: Likewise.
7671         * MODULES.html.sh (Date and time <time.h>): Likewise.
7672         * doc/parse-datetime.texi (Date input formats)
7673         (Authors of parse_datetime): Likewise.
7674         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7675         (Include): Likewise.
7676         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7677         * gnulib-tool: Likewise.
7678         * m4/bison.m4 (gl_BISON): Likewise.
7679         Suggested by Bruno Haible.
7680
7681 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7682
7683         more ports to Solaris tr, which needs [] around ranges
7684         * gnulib-tool: Solaris tr needs [] around ranges.
7685         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7686         * tests/test-pipe-filter-gi1.c (main): Likewise.
7687         * tests/test-pipe-filter-ii1.c (main): Likewise.
7688
7689 2010-10-05  Eric Blake  <eblake@redhat.com>
7690
7691         bootstrap: fix Solaris regression
7692         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7693         around ranges.
7694         Reported by Pádraig Brady.
7695
7696         bootstrap: work with pkg-config
7697         * build-aux/bootstrap (check_versions): Also transliterate - in
7698         prerequisite name.
7699         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7700         prerequisites that were already found, to avoid confusion.
7701         Reported by Justin Clift.
7702
7703         faccessat: remove unused wrappers
7704         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7705         presence of these wrappers dragged in -lgen on Solaris.
7706         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7707
7708 2010-10-05  Jim Meyering  <meyering@redhat.com>
7709
7710         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7711         * Makefile (sc_pragma_columns): New syntax-check rule.
7712
7713 2010-10-04  Bruno Haible  <bruno@clisp.org>
7714
7715         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7716         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7717         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7718         Reported by Bruce Korb and Eric Blake.
7719
7720 2010-10-04  Bruno Haible  <bruno@clisp.org>
7721
7722         threadlib: Make option --with-libpth-prefix work.
7723         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7724         use $LIBPTH, not just -lpth.
7725
7726 2010-10-04  Bruno Haible  <bruno@clisp.org>
7727
7728         Avoid line length limitation from HP NonStop system header files.
7729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7730         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7731         * lib/ctype.in.h: Likewise.
7732         * lib/dirent.in.h: Likewise.
7733         * lib/errno.in.h: Likewise.
7734         * lib/fcntl.in.h: Likewise.
7735         * lib/float.in.h: Likewise.
7736         * lib/getopt.in.h: Likewise.
7737         * lib/iconv.in.h: Likewise.
7738         * lib/inttypes.in.h: Likewise.
7739         * lib/langinfo.in.h: Likewise.
7740         * lib/locale.in.h: Likewise.
7741         * lib/math.in.h: Likewise.
7742         * lib/netdb.in.h: Likewise.
7743         * lib/netinet_in.in.h: Likewise.
7744         * lib/poll.in.h: Likewise.
7745         * lib/pthread.in.h: Likewise.
7746         * lib/pty.in.h: Likewise.
7747         * lib/sched.in.h: Likewise.
7748         * lib/se-selinux.in.h: Likewise.
7749         * lib/search.in.h: Likewise.
7750         * lib/signal.in.h: Likewise.
7751         * lib/spawn.in.h: Likewise.
7752         * lib/stdarg.in.h: Likewise.
7753         * lib/stddef.in.h: Likewise.
7754         * lib/stdint.in.h: Likewise.
7755         * lib/stdio.in.h: Likewise.
7756         * lib/stdlib.in.h: Likewise.
7757         * lib/string.in.h: Likewise.
7758         * lib/strings.in.h: Likewise.
7759         * lib/sys_file.in.h: Likewise.
7760         * lib/sys_ioctl.in.h: Likewise.
7761         * lib/sys_select.in.h: Likewise.
7762         * lib/sys_socket.in.h: Likewise.
7763         * lib/sys_stat.in.h: Likewise.
7764         * lib/sys_time.in.h: Likewise.
7765         * lib/sys_times.in.h: Likewise.
7766         * lib/sys_utsname.in.h: Likewise.
7767         * lib/sys_wait.in.h: Likewise.
7768         * lib/sysexits.in.h: Likewise.
7769         * lib/termios.in.h: Likewise.
7770         * lib/time.in.h: Likewise.
7771         * lib/unistd.in.h: Likewise.
7772         * lib/wchar.in.h: Likewise.
7773         * lib/wctype.in.h: Likewise.
7774         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7775         * modules/ctype (Makefile.am): Likewise.
7776         * modules/dirent (Makefile.am): Likewise.
7777         * modules/errno (Makefile.am): Likewise.
7778         * modules/fcntl-h (Makefile.am): Likewise.
7779         * modules/float (Makefile.am): Likewise.
7780         * modules/getopt-posix (Makefile.am): Likewise.
7781         * modules/iconv-h (Makefile.am): Likewise.
7782         * modules/inttypes (Makefile.am): Likewise.
7783         * modules/langinfo (Makefile.am): Likewise.
7784         * modules/locale (Makefile.am): Likewise.
7785         * modules/math (Makefile.am): Likewise.
7786         * modules/netdb (Makefile.am): Likewise.
7787         * modules/netinet_in (Makefile.am): Likewise.
7788         * modules/poll-h (Makefile.am): Likewise.
7789         * modules/pthread (Makefile.am): Likewise.
7790         * modules/pty (Makefile.am): Likewise.
7791         * modules/sched (Makefile.am): Likewise.
7792         * modules/search (Makefile.am): Likewise.
7793         * modules/selinux-h (Makefile.am): Likewise.
7794         * modules/signal (Makefile.am): Likewise.
7795         * modules/spawn (Makefile.am): Likewise.
7796         * modules/stdarg (Makefile.am): Likewise.
7797         * modules/stddef (Makefile.am): Likewise.
7798         * modules/stdint (Makefile.am): Likewise.
7799         * modules/stdio (Makefile.am): Likewise.
7800         * modules/stdlib (Makefile.am): Likewise.
7801         * modules/string (Makefile.am): Likewise.
7802         * modules/strings (Makefile.am): Likewise.
7803         * modules/sys_file (Makefile.am): Likewise.
7804         * modules/sys_ioctl (Makefile.am): Likewise.
7805         * modules/sys_select (Makefile.am): Likewise.
7806         * modules/sys_socket (Makefile.am): Likewise.
7807         * modules/sys_stat (Makefile.am): Likewise.
7808         * modules/sys_time (Makefile.am): Likewise.
7809         * modules/sys_times (Makefile.am): Likewise.
7810         * modules/sys_utsname (Makefile.am): Likewise.
7811         * modules/sys_wait (Makefile.am): Likewise.
7812         * modules/sysexits (Makefile.am): Likewise.
7813         * modules/termios (Makefile.am): Likewise.
7814         * modules/time (Makefile.am): Likewise.
7815         * modules/unistd (Makefile.am): Likewise.
7816         * modules/wchar (Makefile.am): Likewise.
7817         * modules/wctype (Makefile.am): Likewise.
7818
7819 2010-10-04  Bruno Haible  <bruno@clisp.org>
7820
7821         read-file tests: Avoid a test failure on NonStop Kernel.
7822         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7823         a regular file.
7824         Reported by Joachim Schmitz <schmitz@hp.com>.
7825
7826 2010-10-03  Bruno Haible  <bruno@clisp.org>
7827
7828         gnulib-tool: Fixes for --create-testdir with --libtool.
7829         * gnulib-tool (func_get_automake_snippet): Don't augment
7830         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7831         an executable.
7832         (func_create_testdir): Handle module 'alloca' like func_import.
7833         Reported by Bruce Korb <bruce.korb@gmail.com>.
7834
7835 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7836
7837         Avoid some lines longer than 80 characters.
7838         * lib/stdint.in.h: Break long comment lines.
7839         * lib/math.in.h: Likewise.
7840         (_GL_NUM_UINT_WORDS): New macro, for readability.
7841         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7842         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7843         * lib/stdlib.in.h: Likewise.
7844         * lib/spawn.in.h: Likewise.
7845         * lib/sys_socket.in.h: Update an URL.
7846         * lib/sys_stat.in.h: Break long line.
7847
7848 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7849
7850         Improve pmccabe2html.
7851         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7852         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7853         when the sources change. Remove the line in the HTML about "Used
7854         ranges" (which implied that there might be other unused ranges),
7855         rename "Resume" to "Summary" (easier to understand for more users).
7856         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7857         styles, and some unnecessary blank lines.
7858
7859 2010-10-03  Bruno Haible  <bruno@clisp.org>
7860             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7861
7862         acl: Add support for ACLs on NonStop Kernel.
7863         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7864         Check whether the function aclsort() exists.
7865         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7866         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7867         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7868         (acl_nontrivial [HAVE_ACLSORT]: New function.
7869         (file_has_acl): Implement for NonStop Kernel.
7870         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7871         (qset_acl): Implement for NonStop Kernel.
7872         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7873         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7874         (main): Implement for NonStop Kernel.
7875         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7876         Kernel. Handle this flavor.
7877         * tests/test-set-mode-acl.sh: Likewise.
7878         * tests/test-copy-acl.sh: Likewise.
7879         * tests/test-copy-file.sh: Likewise.
7880
7881 2010-10-03  Bruno Haible  <bruno@clisp.org>
7882
7883         Info about ACLs on NonStop Kernel.
7884         * doc/acl-resources.txt: Add info about NonStop Kernel.
7885         References by Joachim Schmitz <schmitz@hp.com>.
7886
7887 2010-10-02  Bruno Haible  <bruno@clisp.org>
7888
7889         Define missing EDQUOT on NonStop Kernel.
7890         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7891         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7893         missing.
7894         * doc/posix-headers/errno.texi: Mention the NSK bug.
7895         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7896         Reported by Joachim Schmitz <schmitz@hp.com>.
7897
7898 2010-10-02  Bruno Haible  <bruno@clisp.org>
7899
7900         Update doc for POSIX:2008.
7901         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7902         Update URL of POSIX specification.
7903
7904 2010-10-02  Bruno Haible  <bruno@clisp.org>
7905
7906         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7907         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7908         from gnulib, not from Automake.
7909
7910 2010-10-02  Bruno Haible  <bruno@clisp.org>
7911
7912         New module 'system-posix'.
7913         * modules/system-posix: New file.
7914         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7915         module is present.
7916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7917         GNULIB_SYSTEM_POSIX.
7918         * modules/stdlib (Depends-on): Remove sys_wait.
7919         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7920         * doc/posix-functions/system.texi: Mention the new module.
7921         * doc/posix-headers/stdlib.texi: Likewise.
7922         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7923         define test_sys_wait_macros to a no-op.
7924         Reported by Sam Steingold <sds@gnu.org>.
7925
7926 2010-09-30  Bruno Haible  <bruno@clisp.org>
7927
7928         More renaming from 'getdate' to 'get_date'.
7929         * doc/get_date.texi: Renamed from doc/getdate.texi.
7930         * modules/get_date (Files): Update.
7931         * MODULES.html.sh (Date and time <time.h>): Update.
7932         * DEPENDENCIES: Update.
7933         * gnulib-tool: Update comment.
7934         * m4/bison.m4 (gl_BISON): Likewise.
7935         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7936
7937 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7938
7939         bootstrap: support ACLOCAL_FLAGS during aclocal
7940         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7941         can add additional -I dir for third-party .m4 files.
7942
7943 2010-09-30  Eric Blake  <eblake@redhat.com>
7944
7945         bootstrap: use glibtoolize on MacOS
7946         * build-aux/bootstrap (check_versions): Convert libtool into
7947         libtoolize.
7948         (tool search): Move libtool check earlier, and look for
7949         glibtoolize for MacOS.
7950         (gnulib_tool_options): Auto-add --libtool when appropriate.
7951         Reported by Justin Clift.
7952
7953         poll: fix typo that broke test on MacOS
7954         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7955         Reported by Justin Clift.
7956
7957         getdate: rename to get_date
7958         Note: getdate.h is not renamed, to minimize client impact.
7959         * modules/getdate: Mark obsolete.  Move old contents...
7960         * modules/get_date: ...to new module name.
7961         * modules/getdate-tests: Move...
7962         * modules/get_date-tests: ...here.
7963         * m4/getdate.m4: Move...
7964         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7965         * lib/getdate.y: Move...
7966         * lib/get_date.y: ...here.
7967         * tests/test-getdate.c: Move...
7968         * tests/test-get_date.c: ...here.
7969         * doc/posix-functions/getdate.texi (getdate): Update name.
7970         * NEWS: Mention the change.
7971
7972 2010-09-29  Bruno Haible  <bruno@clisp.org>
7973
7974         Separate the module 'waitpid' from the module 'sys_wait'.
7975         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7976         present.
7977         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7978         gl_MODULE_INDICATOR_FOR_TESTS.
7979         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7980         * modules/sys_wait (Depends-on): Remove waitpid.
7981         (Makefile.am): Substitute GNULIB_WAITPID.
7982         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7983         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7984         signature only if the 'waitpid' module is present.
7985         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7986         * NEWS: Mention the change.
7987         * modules/grantpt (Depends-on): Add waitpid.
7988         * modules/wait-process (Depends-on): Likewise.
7989
7990 2010-09-29  Bruno Haible  <bruno@clisp.org>
7991
7992         More tests for module 'sys_wait'.
7993         * modules/sys_wait-c++-tests: New file.
7994         * tests/test-sys_wait-c++.cc: New file.
7995         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7996         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7997
7998 2010-09-29  Bruno Haible  <bruno@clisp.org>
7999
8000         New module 'waitpid'.
8001         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8002         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8003         Don't include <process.h>.
8004         (waitpid): Declare only, using modern idiom.
8005         * m4/waitpid.m4: New file.
8006         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8007         * modules/waitpid: New file.
8008         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8009         (Makefile.am): Update.
8010         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8011
8012 2010-09-28  Bruno Haible  <bruno@clisp.org>
8013
8014         poll: Assume ANSI C.
8015         * lib/poll.c (poll): Use an ANSI C declaration.
8016
8017 2010-09-28  Bruno Haible  <bruno@clisp.org>
8018
8019         poll-h: Create poll.h on all platforms.
8020         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8021         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8022         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8023         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8024         (gl_REPLACE_POLL_H): Don't set POLL_H.
8025         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8026         * modules/poll-h (Depends-on): Add include_next.
8027         (Makefile.am): Create poll.h unconditionally. Substitute also
8028         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8029
8030 2010-09-28  Bruno Haible  <bruno@clisp.org>
8031
8032         Tests for module 'poll-h'.
8033         * modules/poll-h-c++-tests: New file.
8034         * tests/test-poll-h-c++.cc: New file.
8035
8036         Tests for module 'poll-h'.
8037         * modules/poll-h-tests: New file.
8038         * tests/test-poll-h.c: New file.
8039
8040 2010-09-28  Bruno Haible  <bruno@clisp.org>
8041
8042         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8043         * modules/poll-h (Depends-on): Add 'extensions'.
8044
8045 2010-09-28  Bruno Haible  <bruno@clisp.org>
8046
8047         New module 'poll-h'.
8048         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8049         (poll): Use modern idiom.
8050         * modules/poll-h: New file.
8051         * modules/poll (Files): Remove lib/poll.in.h.
8052         (Depends-on): Add poll-h.
8053         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8054         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8055         * m4/poll_h.m4: New file.
8056         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8057         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8058         and invoke gl_REPLACE_POLL_H.
8059         * lib/poll.c: Use common idiom.
8060         * tests/test-poll.c: Likewise.
8061         * doc/posix-headers/poll.texi: Mention the poll-h module.
8062         Suggested by Eric Blake.
8063
8064 2010-09-26  Bruno Haible  <bruno@clisp.org>
8065
8066         sys_wait: Implement WSTOPSIG.
8067         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8068         Reported by Simon Josefsson.
8069
8070 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8071
8072         stdlib, sys_wait: Avoid compilation error on mingw.
8073         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8074
8075 2010-09-26  Bruno Haible  <bruno@clisp.org>
8076
8077         stdlib tests: Avoid code duplication.
8078         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8079         * modules/sys_wait-tests (Files): Likewise.
8080         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8081         * tests/test-stdlib.c: Include test-sys_wait.h.
8082         (main): Invoke test_sys_wait_macros.
8083         * tests/test-sys_wait.c: Include test-sys_wait.h.
8084         (main): Invoke test_sys_wait_macros.
8085
8086 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8087
8088         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8089         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8090         sure Windows sockets are working before calling getaddrinfo.
8091         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8092         * doc/gnulib.texi (Windows sockets): Fix typo.
8093
8094 2010-09-25  Bruno Haible  <bruno@clisp.org>
8095
8096         Tests for module 'regex-quote'.
8097         * modules/regex-quote-tests: New file.
8098         * tests/test-regex-quote.c: New file.
8099
8100         New module 'regex-quote'.
8101         * lib/regex-quote.h: New file.
8102         * lib/regex-quote.c: New file.
8103         * modules/regex-quote: New file.
8104         Suggested by Reuben Thomas <rrt@sc3d.org>.
8105
8106 2010-09-24  Bruno Haible  <bruno@clisp.org>
8107
8108         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8109         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8110
8111 2010-09-23  Bruno Haible  <bruno@clisp.org>
8112
8113         setenv: Relax license.
8114         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8115         Blake.
8116         Requested by Eric Blake.
8117
8118 2010-09-22  Bruno Haible  <bruno@clisp.org>
8119
8120         termios: Relax license.
8121         * modules/termios (License): Change to LGPLv2+.
8122         Requested by Eric Blake.
8123
8124 2010-09-22  Bruno Haible  <bruno@clisp.org>
8125
8126         threadlib: Allow the package to change the default to 'no'.
8127         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8128         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8129         Reported by Paul Eggert.
8130
8131 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8132             Bruno Haible  <bruno@clisp.org>
8133
8134         Fix endless loop in mbmemcasecoll.
8135         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8136         byte.
8137         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8138
8139 2010-09-22  Bruno Haible  <bruno@clisp.org>
8140
8141         Tests for module 'memcoll'.
8142         * modules/memcoll-tests: New file.
8143         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8144
8145         memcoll, xmemcoll: Clarify size vs. length.
8146         * modules/memcoll.c (memcoll0): Clarify specification.
8147         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8148         passed to collate_error.
8149
8150 2010-09-22  Bruno Haible  <bruno@clisp.org>
8151
8152         Tests for module 'memcasecmp'.
8153         * modules/memcasecmp-tests: New file.
8154         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8155
8156 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8157
8158         * lib/pthread.in.h: Add split double-inclusion guard, and include
8159         system <pthread.h> if there is one.  Use @@-style as in other
8160         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8161         pthread.h doesn't.
8162         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8163         (pthread_mutexattr_settype, pthread_mutex_trylock):
8164         New static inline functions, if there's no system <pthread.h>.
8165         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8166         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8167         Approximate with mutexes if the system lacks spinlocks, as in
8168         MacOS.
8169         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8170         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8171         @@-style.  Check for spinlocks separately.
8172         (gl_PTHREAD_DEFAULTS): New macro.
8173         * modules/pthread: Redo to use a more typical style for in.h files.
8174
8175 2010-09-21  Eric Blake  <eblake@redhat.com>
8176
8177         net_if: enhance tests
8178         * tests/test-net_if.c (main): Move signature checks earlier.
8179         Print failures to stderr.
8180         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8181         Document the bug that we do not yet fix.
8182
8183 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8184
8185         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8186         about gnulib, not GSS.
8187
8188 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8189
8190         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8191         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8192         for Emacs.
8193         * build-aux/pmccabe2html: Make Makefile.am example code more
8194         cut-and-paste friendly.
8195
8196 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8197
8198         * tests/test-net_if.c: New file.
8199         * modules/net_if-tests: New file.
8200
8201 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8202
8203         pthread: add pthread_spin_destroy
8204         * lib/pthread.in.h (pthread_spin_destroy): New function.
8205
8206 2010-09-19  Bruno Haible  <bruno@clisp.org>
8207
8208         gnulib-tool: Fix --help output.
8209         * gnulib-tool (func_usage): Fix help message.
8210         Reported by Reuben Thomas <rrt@sc3d.org>.
8211
8212 2010-09-18  Jim Meyering  <meyering@redhat.com>
8213
8214         maint.mk: avoid unexpanded \n in two diagnostics
8215         * top/maint.mk (sc_prohibit_always_true_header_tests):
8216         Don't use a literal \n in a halt=... assignment.  It would not be
8217         expanded, and the two \n bytes would appear in the diagnostic output
8218         rather than the desired newline.  Use halt=$$(printf ... instead.
8219         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8220
8221 2010-09-18  Bruno Haible  <bruno@clisp.org>
8222
8223         netinet_in: Doc tweak.
8224         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8225         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8226
8227 2010-09-18  Jim Meyering  <meyering@redhat.com>
8228
8229         init.sh: correct an outdated comment
8230         * tests/init.sh (create_exe_shims_):  s/function/alias/
8231
8232         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8233         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8234         a file named "*.exe" is removed between the glob expansion and the
8235         processing of that oddly named file.
8236
8237 2010-09-17  Eric Blake  <eblake@redhat.com>
8238
8239         mirbsd: add some more support
8240         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8241         in BSD family.
8242         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8243         devices as OpenBSD.
8244         * m4/host-os.m4 (mirbsd): Add MirBSD.
8245
8246         tests: fix unportable assumption on sys/wait.h
8247         * tests/test-sys_wait.c (main): Relax test.
8248         * tests/test-stdlib.c (main): Likewise.
8249
8250         init.sh: accomodate directory with no .exes
8251         * tests/init.sh: Accomodate directory containing only scripts.
8252
8253         tests: avoid compiler warning
8254         * tests/test-stdlib.c (main): Use the variable.
8255
8256         fdutimens, fdutimensat: update signature, again
8257         * lib/utimens.h (gl_futimens): Delete, and move signature...
8258         (fdutimens): ...here.
8259         (fdutimensat): Rearrange signature.
8260         (lutimensat): Rename variable for clarity.
8261         * lib/fdutimensat.c (fdutimensat): Update signature.
8262         * lib/utimens.c (fdutimens): Likewise.
8263         (gl_futimens): Delete.
8264         (utimens, lutimens): Update callers.
8265         * lib/futimens.c (futimens): Likewise.
8266         * tests/test-fdutimensat.c: Likewise.
8267         * tests/test-utimens.c: Likewise.
8268         * tests/test-futimens.h: Update comment.
8269         * NEWS: Mention this.
8270         Suggested by Paul Eggert.
8271
8272 2010-09-17  Bruno Haible  <bruno@clisp.org>
8273
8274         Take over the maintenance of some older macros from Autoconf.
8275         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8276         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8277         GNU Autoconf.
8278         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8279         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8280
8281 2010-09-17  Eric Blake  <eblake@redhat.com>
8282
8283         fdutimensat: drop atflag validation
8284         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8285         with valid fd, to close a race scenario where futimens is
8286         unsupported and FILE was replaced by a symlink.
8287         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8288         accordingly.
8289         Suggested by Paul Eggert.
8290
8291 2010-09-16  Bruno Haible  <bruno@clisp.org>
8292
8293         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8294         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8295
8296 2010-09-16  Bruno Haible  <bruno@clisp.org>
8297
8298         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8299         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8300         login_tty exists.
8301         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8302
8303 2010-09-16  Bruno Haible  <bruno@clisp.org>
8304
8305         login_tty: Make the replacement code work on BSD systems.
8306         * lib/login_tty.c: Include <sys/ioctl.h>.
8307         (login_tty): Use ioctl TIOCSCTTY when available.
8308         * modules/login_tty (Depends-on): Add sys_ioctl.
8309         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8310
8311 2010-09-16  Bruno Haible  <bruno@clisp.org>
8312
8313         login_tty: Stricter unit test.
8314         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8315         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8316         and tcgetsid() after login_tty.
8317         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8318
8319 2010-09-16  Bruno Haible  <bruno@clisp.org>
8320
8321         New module 'tcgetsid'.
8322         * lib/tcgetsid.c: New file.
8323         * m4/tcgetsid.m4: New file.
8324         * modules/tcgetsid: New file.
8325         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8326         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8327         GNULIB_TCGETSID, HAVE_TCGETSID.
8328         * lib/termios.in.h: Include <sys/types.h>.
8329         (tcgetsid): New declaration.
8330         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8331         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8332         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8333         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8334
8335 2010-09-16  Bruno Haible  <bruno@clisp.org>
8336
8337         Tests for module 'termios'.
8338         * modules/termios-c++-tests: New file.
8339         * modules/termios-tests: New file.
8340         * tests/test-termios-c++.cc: New file.
8341         * tests/test-termios.c: New file.
8342
8343         New module 'termios'.
8344         * modules/termios: New file.
8345         * lib/termios.in.h: New file.
8346         * m4/termios_h.m4: New file.
8347         * doc/posix-headers/termios.texi: Mention the new module.
8348
8349 2010-09-16  Eric Blake  <eblake@redhat.com>
8350
8351         fdutimensat: add an atflag parameter
8352         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8353         * lib/utimens.h (fdutimensat): Update prototype.
8354         * tests/test-fdutimensat.c: Adjust test to match.
8355         * NEWS: Document the change.
8356         Suggested by Paul Eggert.
8357
8358 2010-09-16  Bruno Haible  <bruno@clisp.org>
8359
8360         Fix typos in comments.
8361         * lib/striconveh.h: Fix typo in comment.
8362         * lib/login_tty.c (login_tty): Likewise.
8363
8364 2010-09-15  Bruno Haible  <bruno@clisp.org>
8365
8366         stdlib: clarify MirBSD WEXITSTATUS bug
8367         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8368         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8369
8370 2010-09-15  Eric Blake  <eblake@redhat.com>
8371
8372         stdlib: work around MirBSD WEXITSTATUS bug
8373         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8374         * modules/stdlib (Depends-on): Add sys_wait.
8375         * tests/test-sys_wait.c (main): Enhance test.
8376         * tests/test-stdlib.c (main): Likewise.
8377         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8378
8379         docs: mention MacOS issue with WEXITSTATUS(constant)
8380         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8381         issue.
8382         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8383
8384         strnlen: add tests
8385         * modules/strnlen-tests: New file.
8386         * tests/test-strnlen.c: Likewise.
8387
8388 2010-09-14  Bruno Haible  <bruno@clisp.org>
8389
8390         unistr/base: Avoid link errors when module 'libunistring' is also used.
8391         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8392         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8393         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8394         Declare also when HAVE_LIBUNISTRING is set.
8395         Reported by Pádraig Brady <P@draigbrady.com>.
8396
8397 2010-09-14  Eric Blake  <eblake@redhat.com>
8398
8399         test-rawmemchr: make more robust
8400         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8401         (Depends-on, configure.ac): Add needed prerequisites to use it.
8402         * modules/memchr-tests (Files, Depends-on, configure.ac):
8403         Likewise, to avoid implicit reliance on memchr module prereqs.
8404         * tests/test-memchr.c (main): Ensure proper masking.
8405         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8406         reads.
8407
8408         memchr: detect glibc Alpha bug
8409         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8410         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8411         Alpha.
8412         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8413         * tests/test-memchr.c (main): Enhance test.
8414         Reported by Nelson H. F. Beebe.
8415
8416 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8417
8418         fts, getcwd, glob: audit for dirfd returning -1
8419         * lib/fts.c (opendir): Remove #define; no longer used.
8420         (opendirat): New arg PDIR_FD.  All callers changed.
8421         (fts_build, _opendir2): Use new opendirat to avoid the need for
8422         dirfd, or for checking whether dirfd returns a negative value.
8423         Don't use opendir; always use openat followed by fdopendir.
8424         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8425         it.
8426         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8427         returns -1 here.
8428         * modules/fts (Depends-on): Remove dirfd.
8429         * modules/getcwd (Depends-on): Likewise.
8430
8431 2010-09-13  Eric Blake  <eblake@redhat.com>
8432
8433         float: fix broken MirBSD header
8434         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8435         * doc/posix-headers/float.texi (float.h): Document it.
8436
8437 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8438
8439         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8440         * lib/fts.c (opendirat): New arg extra_flags.
8441         (__opendir2): Use it to avoid following symlinks when opening
8442         a directory, if symlinks are not supposed to be followed.  See
8443         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8444
8445         fdopendir: preserve argument fd before returning
8446         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8447         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8448         (fdopendir): Use them, arranging for FD to be open to the same
8449         directory that it was when it started.  (It might be temporarily
8450         closed while fdopendir is running, so this not thread- or
8451         signal-safe.)  Be careful to do the right thing even when file
8452         descriptors are scarce and dup fails with errno == EMFILE.  See
8453         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8454
8455 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8456
8457         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8458         * NEWS: Document change.
8459         * m4/regex.m4: Disable test for regoff_t size.
8460
8461 2010-09-13  Jim Meyering  <meyering@redhat.com>
8462
8463         fts: don't operate on an invalid file descriptor after failed dup
8464         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8465         negative file descriptor.
8466
8467 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8468
8469         savedir: add streamsavedir, deprecate fdsavedir
8470         * NEWS: Mention deprecation of fdsavedir.
8471         * lib/savedir.c (streamsavedir): New extern function, whose name
8472         ends in "savedir" to be consistent with the others.  This differs
8473         from savedirstream in that it doesn't close its argument.  The
8474         next version of GNU tar will use this instead of fdsavedir, to
8475         avoid some race conditions and conserve file descriptors.
8476         (savedirstream): Reimplement as a wrapper around streamsavedir.
8477         (fdsavedir): Add a comment deprecating this function.  As far as
8478         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8479         * lib/savedir.h (streamsavedir): New decl.
8480         (fdsavedir): Add a comment deprecating this.
8481
8482 2010-09-10  Bruno Haible  <bruno@clisp.org>
8483
8484         langinfo: Fix last commit.
8485         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8486         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8488
8489 2010-09-10  Bruno Haible  <bruno@clisp.org>
8490
8491         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8492         * lib/progreloc.c (O_EXEC): Define fallback.
8493
8494 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8495
8496         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8497         * NEWS: Document recent changes to fcntl-h.
8498         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8499         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8500         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8501         Similarly for O_SEARCH; this last was already true, but not documented.
8502         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8503         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8504         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8505         Likewise.
8506         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8507         is zero, not whether it is defined.
8508         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8509         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8510         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8511
8512 2010-09-10  Bruno Haible  <bruno@clisp.org>
8513
8514         langinfo, nl_langinfo: Fix for IRIX 5.3.
8515         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8516         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8517         HAVE_LANGINFO_YESEXPR.
8518         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8519         HAVE_LANGINFO_YESEXPR.
8520         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8521         HAVE_LANGINFO_T_FMT_AMPM is 0.
8522         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8523         HAVE_LANGINFO_YESEXPR is 0.
8524         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8525         NOEXPR.
8526         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8527         * doc/posix-functions/nl_langinfo.texi: Likewise.
8528         Reported by Eric Blake.
8529
8530 2010-09-10  Bruno Haible  <bruno@clisp.org>
8531
8532         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8533         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8534         on FreeBSD 8.0 and OpenBSD 4.6.
8535         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8536         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8537         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8538         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8539         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8540         ac_includes_default.
8541         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8542
8543 2010-09-09  Eric Blake  <eblake@redhat.com>
8544
8545         strsignal: work around NetBSD bug
8546         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8547         * lib/string.in.h (includes): Likewise.
8548         * doc/posix-functions/strsignal.texi (strsignal): Document the
8549         bug.
8550         Reported by Nelson H. F. Beebe.
8551
8552         gnulib-tool: work with NetBSD /bin/sh
8553         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8554         (func_get_description, func_get_comment, func_get_status)
8555         (func_get_notice, func_get_applicability, func_get_filelist)
8556         (func_get_dependencies, func_get_autoconf_early_snippet)
8557         (func_get_autoconf_snippet, func_get_automake_snippet)
8558         (func_get_include_directive, func_get_link_directive)
8559         (func_get_license, func_get_maintainer, func_import): Avoid
8560         shell syntax errors from parsing syntax extensions.
8561
8562 2010-09-09  Bruno Haible  <bruno@clisp.org>
8563
8564         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8565         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8566         a reliable way to determine whether the 'alias' command works.
8567
8568 2010-09-08  Jim Meyering  <meyering@redhat.com>
8569
8570         init.sh: penalize a set-x-impaired shell; don't disqualify it
8571         * tests/init.sh: Too many shells corrupt application stderr when
8572         you set -x, so we can't afford to disqualify them, since at least
8573         on Irix-6.5, that would disqualify all bourne shells.
8574         Instead, use a two-pass approach.
8575         On the first pass, try to find a shell that meets the stricter
8576         condition that set -x does not corrupt stderr.
8577         If no shell meets the stricter condition, retest each candidate
8578         shell, but without that extra condition.  Finally, when
8579         VERBOSE=yes is requested and set -x might cause trouble, simply
8580         issue a warning and refrain from enabling debug output.
8581
8582 2010-09-08  Eric Blake  <eblake@redhat.com>
8583
8584         unsetenv: fix OpenBSD bug
8585         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8586         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8587         documentation.
8588         Reported by Jim Meyering.
8589
8590         strtod: work around IRIX 6.5 bug
8591         * lib/strtod.c (strtod): Reparse number on shorter string if
8592         exponent parse was invalid.
8593         * tests/test-strtod.c (main): Add check for "0x1p 2".
8594         Reported by Tom G. Christensen.
8595
8596         getopt: optimize previous patch
8597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8598         empty variable.  Speed up awk script.
8599         Reported by Paolo Bonzini.
8600
8601 2010-09-08  Jim Meyering  <meyering@redhat.com>
8602
8603         test.sh: disqualify shells for which set -x corrupts stderr
8604         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8605         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8606         appear in stderr output.  For example, this command:
8607             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8608         prints "P=1" on those two systems:
8609
8610 2010-09-08  Bruno Haible  <bruno@clisp.org>
8611
8612         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8613         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8614         commands, because some shells ignore redirections when there is an
8615         error in the command lookup.
8616         Reported by Eric Blake.
8617
8618 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8619
8620         * lib/regex.h: Fix a mention of `regex_compile' (should be
8621         `re_compile_pattern').
8622         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8623         (re_set_registers): Correct name of parameter in comment.
8624
8625         * doc/regex.texi: Add documentation for missing syntax flags.
8626         Remove commented-out documentation of defunct syntax option
8627         RE_NO_EMPTY_ALTS.
8628         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8629         Add documentation of re_set_registers.
8630         Document trick to re-use a pattern buffer by setting fastmap manually.
8631         Update documentation of struct re_pattern_buffer per public members.
8632         Uncomment documentation of equivalence class operators and
8633         collating symbol operators, since they are now implemented,
8634         Explain leftmost-longest matching in relation to alternatives.
8635         Tidy documentation of substring matching.
8636         Remove POSIX documentation, which is done better in
8637         glibc, and refer the reader there. Keep BSD API documentation, as
8638         that is not readily available elsewhere.
8639
8640 2010-09-07  Eric Blake  <eblake@redhat.com>
8641
8642         getopt: handle POSIXLY_CORRECT set but not exported
8643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8644         export state of POSIXLY_CORRECT, due to bash set -o posix.
8645         Reported by Dustin J. Mitchell.
8646
8647 2010-09-05  Bruno Haible  <bruno@clisp.org>
8648
8649         gnulib-tool: Highlight the changed options.
8650         * gnulib-tool (func_usage): Display the --import, --add-import,
8651         --remove-import explanations in bold font.
8652
8653 2010-09-06  Karl Berry  <karl@gnu.org>
8654
8655         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8656
8657 2010-09-05  Bruno Haible  <bruno@clisp.org>
8658
8659         uniwidth/width: Update comment.
8660         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8661         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8662
8663 2010-09-05  Bruno Haible  <bruno@clisp.org>
8664
8665         isinf, isnan: Relax license.
8666         * modules/isinf (License): Change from GPL to LGPL, with consent from
8667         Ben Pfaff.
8668         * modules/isnan (License): Likewise.
8669         Requested by Ludovic Courtès.
8670
8671 2010-09-04  Bruno Haible  <bruno@clisp.org>
8672
8673         gnulib-tool: Help migration from --import to --add-import or --update.
8674         * gnulib-tool: Emit a verbose error message when --import is used
8675         without any module name.
8676
8677 2010-09-04  Bruno Haible  <bruno@clisp.org>
8678
8679         Update doc about gnulib-tool.
8680         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8681         'gnulib-tool --update' in more detail.
8682         Reported by Eric Blake.
8683
8684 2010-09-04  Bruno Haible  <bruno@clisp.org>
8685
8686         gnulib-tool: Change --import. New options --add/remove-import.
8687         * gnulib-tool: New options --add-import, --remove-import.
8688         (func_usage): Document them.
8689         (have_associative): Define always.
8690         (func_import): In import mode, don't merge the specified settings with
8691         the cached settings. Implement remove-import mode.
8692         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8693         Explain when to use them versus --import.
8694         (Simple update): Use --add-import instead of --import.
8695         * NEWS: Mention the change.
8696
8697 2010-09-04  Bruno Haible  <bruno@clisp.org>
8698
8699         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8700         separate gnulib.mk.
8701
8702 2010-09-04  Bruno Haible  <bruno@clisp.org>
8703
8704         gnulib-tool: Don't talk about CVS any more.
8705         * gnulib-tool (func_usage, func_import): Write "version control"
8706         instead of CVS.
8707
8708 2010-09-04  Jim Meyering  <meyering@redhat.com>
8709
8710         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8711         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8712         false positives (whose names may be ill-chosen) when searching
8713         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8714         would cause a false-positive.
8715
8716         avoid coreutils "make distcheck" failure
8717         Coreutils tests with an absolute build directory name that contains
8718         a space.  Not quoting this directory name caused a failure.
8719         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8720         * tests/test-vc-list-files-cvs.sh: Likewise.
8721
8722 2010-09-04  Bruno Haible  <bruno@clisp.org>
8723
8724         gnulib-tool: Avoid error when run in a package without Makefile.am.
8725         * gnulib-tool: When collecting the m4dirs in a package that does not
8726         have a Makefile.am, eliminate those directories that contain no
8727         gnulib-cache.m4. Fix expression that counts these directories.
8728
8729 2010-09-04  Bruno Haible  <bruno@clisp.org>
8730
8731         update-copyright test: Improve output when perl is missing or too old.
8732         * tests/test-update-copyright.sh: Move test of Perl version down after
8733         the test whether Perl exists. Provide an explanation relating Perl's
8734         error message to Automake's SKIP: message.
8735
8736 2010-09-04  Bruno Haible  <bruno@clisp.org>
8737
8738         Don't augment PATH in TESTS_ENVIRONMENT.
8739         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8740         set abs_aux_dir instead of augmenting PATH.
8741         * modules/vc-list-files-tests (Makefile.am): Likewise.
8742         * tests/test-update-copyright.sh: Augment PATH here.
8743         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8744         path_prepend_.
8745         * tests/test-vc-list-files-git.sh: Likewise.
8746
8747 2010-09-04  Jim Meyering  <meyering@redhat.com>
8748
8749         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8750         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8751
8752 2010-09-04  Bruno Haible  <bruno@clisp.org>
8753
8754         strdup: Fix compilation error in C++ mode.
8755         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8756         the macro.
8757
8758 2010-09-04  Bruno Haible  <bruno@clisp.org>
8759
8760         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8761         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8762         macro into a function.
8763         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8764
8765 2010-09-04  Bruno Haible  <bruno@clisp.org>
8766
8767         Set PATH_SEPARATOR the same way autoconf does.
8768         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8769         the value of PATH_SEPARATOR the same way autoconf-generated configure
8770         scripts do.
8771         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8772         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8773
8774 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8775
8776         Set PATH_SEPARATOR the same way autoconf does.
8777         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8778         the same way autoconf-generated configure scripts do.
8779         * posix-modules: Likewise.
8780
8781 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8782
8783         hash: fix safe_hasher const typo
8784         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8785         const; otherwise, there is a type error later.
8786
8787 2010-09-02  Jim Meyering  <meyering@redhat.com>
8788
8789         test-update-copyright.sh: require perl 5.8.0
8790         * tests/test-update-copyright.sh: Require 5.8.0,
8791         which Tom G. Christensen has confirmed is adequate,
8792         while 5.6.1 is not.
8793
8794 2010-09-02  Eric Blake  <eblake@redhat.com>
8795
8796         tests: init.sh improvements for re-exec'ing with zsh
8797         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8798         -vx through shell re-exec.
8799         Reported by Tom G. Christensen.
8800
8801         wctype: fix typo in previous commit
8802         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8803         Reported by Ludovic Courtès.
8804
8805 2010-09-02  Jim Meyering  <meyering@redhat.com>
8806
8807         test-update-copyright.sh: skip test if Perl is too old
8808         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8809         Reported by Tom G. Christensen.
8810
8811 2010-09-02  Bruno Haible  <bruno@clisp.org>
8812
8813         wctype: Avoid compilation error on IRIX 6.5.30.
8814         * lib/wctype.in.h (iswblank): Declare with a replacement if
8815         REPLACE_ISWBLANK is set.
8816         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8817         declared. Set REPLACE_ISWBLANK.
8818         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8819         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8820         * doc/posix-headers/wctype.texi: Likewise.
8821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8822
8823 2010-09-01  Bruno Haible  <bruno@clisp.org>
8824
8825         New module 'socketlib'.
8826         * modules/socketlib: New file.
8827         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8828         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8829         * modules/sockets (Depends-on): Add socketlib.
8830         Suggested by Sam Steingold <sds@gnu.org>.
8831
8832 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8833
8834         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8835
8836         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8837         when one needs search access to a directory but not read access.
8838         On systems where it is available, it works in some cases where
8839         O_RDONLY does not, namely on directories that are searchable but
8840         not readable, and which need only to be searchable.  If O_SEARCH
8841         is not available, fall back to the traditional method of using
8842         O_RDONLY.
8843
8844         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8845         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8846         when opening a directory that needs only to be searchable.
8847         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8848         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8849         * lib/openat-proc.c (openat_proc_name): Likewise.
8850         * lib/openat.c (openat_needs_fchdir): Likewise.
8851         * lib/save-cwd.c (save_cwd): Likewise.
8852         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8853
8854 2010-08-28  Bruno Haible  <bruno@clisp.org>
8855
8856         New module 'host-cpu-c-abi'.
8857         * modules/host-cpu-c-abi: New file.
8858         * m4/host-cpu-c-abi.m4: New file, based on part of
8859         clisp/src/m4/general.m4.
8860         Requested by Sam Steingold <sds@gnu.org>.
8861
8862 2010-08-31  Eric Blake  <eblake@redhat.com>
8863         and Jim Meyering  <meyering@redhat.com>
8864
8865         hash: factor, and guard against misbehaving hasher function
8866         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8867         of table->hasher's return value.  Also protect against a hash value
8868         so large that adding it to table->bucket results in a NULL pointer.
8869         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8870         Use it in place of open-coded check-and-abort.
8871
8872 2010-08-30  Bruno Haible  <bruno@clisp.org>
8873
8874         hash: silence spurious clang warning
8875         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8876         Reported by Eric Blake.
8877
8878 2010-08-30  Eric Blake  <eblake@redhat.com>
8879
8880         strstr, memmem, strcasestr: avoid leaked shell message
8881         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8882         FreeBSD.
8883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8885
8886         tests: silence clang warning
8887         * tests/test-malloca.c (do_allocation): Avoid dead store.
8888
8889 2010-08-29  Bruno Haible  <bruno@clisp.org>
8890
8891         gettext: Fix recent mistake.
8892         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8893
8894 2010-08-29  Bruno Haible  <bruno@clisp.org>
8895
8896         selinux-h: Offer a --without-selinux option.
8897         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8898         --without-selinux was specified, skip all tests and define
8899         HAVE_SELINUX_SELINUX_H to 0.
8900         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8901         set LIB_SELINUX to empty.
8902         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8903         gl_LIBSELINUX. If --without-selinux was specified, replace
8904         selinux/context.h.
8905         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8906
8907 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8908             Bruno Haible  <bruno@clisp.org>
8909
8910         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8911         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8912         of HAVE_REALLOC.
8913         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8914         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8915         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8916         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8917
8918 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8919             Bruno Haible  <bruno@clisp.org>
8920
8921         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8922         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8923         HAVE_CALLOC.
8924         * lib/xmalloc.c: Update accordingly.
8925         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8926         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8927         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8928
8929 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8930             Bruno Haible  <bruno@clisp.org>
8931
8932         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8933         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8934         HAVE_MALLOC.
8935         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8936         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8937         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8938
8939 2010-08-29  Bruno Haible  <bruno@clisp.org>
8940
8941         Update modules list.
8942         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8943         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8944         (String handling <string.h>): Add astrxfrm.
8945         (File system functions): Add readlinkat.
8946
8947 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8948
8949         Tests for module 'realloc-gnu'.
8950         * modules/realloc-gnu-tests: New file.
8951         * tests/test-realloc-gnu.c: New file.
8952
8953         Tests for module 'calloc-gnu'.
8954         * modules/calloc-gnu-tests: New file.
8955         * tests/test-calloc-gnu.c: New file.
8956
8957         Tests for module 'malloc-gnu'.
8958         * modules/malloc-gnu-tests: New file.
8959         * tests/test-malloc-gnu.c: New file.
8960
8961 2010-08-28  Bruno Haible  <bruno@clisp.org>
8962
8963         Rename module 'realloc' -> 'realloc-gnu'.
8964         * modules/realloc-gnu: New file, copied from modules/realloc.
8965         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8966         obsolete.
8967         * modules/mgetgroups (Depends-on): Update.
8968         * doc/posix-functions/realloc.texi: Update.
8969         * NEWS: Mention the change.
8970
8971         Rename module 'calloc' -> 'calloc-gnu'.
8972         * modules/calloc-gnu: New file, copied from modules/calloc.
8973         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8974         obsolete.
8975         * doc/posix-functions/calloc.texi: Update.
8976         * NEWS: Mention the change.
8977
8978         Rename module 'malloc' -> 'malloc-gnu'.
8979         * modules/malloc-gnu: New file, copied from modules/malloc.
8980         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8981         obsolete.
8982         * modules/argp (Depends-on): Update.
8983         * modules/regex (Depends-on): Update.
8984         * doc/posix-functions/malloc.texi: Update.
8985         * NEWS: Mention the change.
8986
8987 2010-08-28  Eric Blake  <eblake@redhat.com>
8988
8989         pread, pwrite: add missing dependency
8990         * modules/pread (Depends-on): Add extensions.
8991         * modules/pwrite (Depends-on): Likewise.
8992
8993 2010-08-28  Bruno Haible  <bruno@clisp.org>
8994
8995         unistr/u*-strchr: Fix tests dependencies.
8996         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8997         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8998         Reported by Ian Beckwith <ianb@erislabs.net>.
8999
9000 2010-08-28  Bruno Haible  <bruno@clisp.org>
9001
9002         read-file: Don't occupy too much unused memory.
9003         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9004
9005 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9006             Eric Blake  <eblake@redhat.com>
9007             Bruno Haible  <bruno@clisp.org>
9008
9009         read-file: Avoid memory reallocations with regular files.
9010         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9011         (fread_file): With regular files, use the remaining length as the
9012         initial buffer size.  Check against overflow.
9013         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9014         sys_stat.
9015
9016 2010-08-28  Bruno Haible  <bruno@clisp.org>
9017
9018         ftello: Relax license.
9019         * modules/ftello (License): Relax to LGPLv2+.
9020         Reported by Eric Blake.
9021
9022 2010-08-28  Bruno Haible  <bruno@clisp.org>
9023
9024         Avoid relocwrapper link errors due to gnulib replacement functions.
9025         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9026         function.
9027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9028
9029 2010-08-28  Bruno Haible  <bruno@clisp.org>
9030
9031         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9032         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9033         defined.
9034         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9035         Suggested by Eric Blake.
9036
9037 2010-08-28  Bruno Haible  <bruno@clisp.org>
9038
9039         sys_socket, netdb: Ensure socklen_t gets defined.
9040         * modules/sys_socket (Depends-on): Add socklen.
9041         * modules/netdb (Depends-on): Likewise.
9042         * modules/getaddrinfo (Depends-on): Remove socklen.
9043         * modules/getsockopt (Depends-on): Likewise.
9044         * modules/setsockopt (Depends-on): Likewise.
9045         * tests/test-sys_socket.c: Check that socklen_t is defined.
9046         * tests/test-netdb.c: Likewise.
9047         * m4/socklen.m4: Update comments.
9048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9049
9050 2010-08-27  Eric Blake  <eblake@redhat.com>
9051
9052         login_tty: add missing dependency
9053         * modules/login_tty (Depends-on): Add pty.
9054
9055 2010-08-26  Eric Blake  <eblake@redhat.com>
9056
9057         lib-symbol-versions: fix m4 quoting
9058         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9059         format for AC_LINK_IFELSE.
9060
9061         glob: fix compile test
9062         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9063
9064         btowc: fix missing file
9065         * modules/btowc (Files): Also ship locale-fr.m4.
9066
9067         lseek: fix link test
9068         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9069         AC_LINK_IFELSE.
9070
9071         include_next: silence autoconf 2.68 warning
9072         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9073         AC_COMPILE_IFELSE as special.
9074         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9075         autoconf < 2.68.
9076
9077         acl: fix compilation test
9078         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9079         AC_COMPILE_IFELSE.
9080
9081 2010-08-26  Bruno Haible  <bruno@clisp.org>
9082
9083         Modernize AC_TRY_RUN invocations.
9084         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9085         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9086         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9087         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9088         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9089         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9090         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9092         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9093         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9094         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9095         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9096         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9097         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9098         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9099         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9100         gl_MBRLEN_NUL_RETVAL): Likewise.
9101         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9102         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9103         Likewise.
9104         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9105         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9106         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9107         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9108         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9109         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9110         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9111         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9112         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9113         Likewise.
9114         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9115         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9116         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9117         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9118         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9119         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9120         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9121         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9122         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9124
9125 2010-08-26  Bruno Haible  <bruno@clisp.org>
9126
9127         Modernize AC_TRY_LINK invocations.
9128         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9129         AC_TRY_LINK.
9130         * m4/argp.m4 (gl_ARGP): Likewise.
9131         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9132         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9133         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9134         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9135         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9136         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9137         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9138         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9139         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9140         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9141         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9142         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9143         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9144         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9145         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9146         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9147         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9148         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9149         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9150         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9151         Likewise.
9152         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9153         Likewise.
9154         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9155         Likewise.
9156         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9157         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9158         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9159         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9160         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9161         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9162         * m4/servent.m4 (gl_SERVENT): Likewise.
9163         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9164         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9165         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9166         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9167         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9168         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9169         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9170         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9171         * modules/tsearch-tests (configure.ac): Likewise.
9172
9173 2010-08-26  Bruno Haible  <bruno@clisp.org>
9174
9175         Modernize AC_TRY_COMPILE invocations.
9176         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9177         AC_TRY_COMPILE.
9178         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9179         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9180         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9181         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9182         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9183         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9184         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9185         * m4/lock.m4 (gl_LOCK): Likewise.
9186         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9187         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9188         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9189         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9190         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9191         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9192         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9193         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9194         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9195         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9196         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9197         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9198         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9199         extraneous semicolon.
9200
9201 2010-08-26  Jim Meyering  <meyering@redhat.com>
9202
9203         stat-time: relax license LGPL
9204         * modules/stat-time (License): Change from GPL to LGPL,
9205         with consent from all contributors, for use in libguile.
9206         Requested by Ludovic Courtès.
9207
9208 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9209
9210         poll: return immediately on POLLHUP.
9211         * lib/poll.c (poll): Always set timeout before wait_timeout is
9212         computed.
9213
9214 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9215
9216         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9217         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9218         rmdir ("dir/.//"), unlinkat.
9219
9220 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9221
9222         stdbool: avoid spurious failure with modern xlc
9223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9224
9225 2010-08-24  Bruno Haible  <bruno@clisp.org>
9226
9227         getloadavg: simplify code
9228         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9229         gl_have_func. Update comments.
9230
9231 2010-08-24  Eric Blake  <eblake@redhat.com>
9232
9233         getloadavg: don't define SVR4 on cygwin
9234         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9235         only define SVR4 when -lkvm is required.
9236         Reported by Yaakov Selkowitz.
9237
9238 2010-08-24  Bruno Haible  <bruno@clisp.org>
9239
9240         priv-set: fix comment
9241         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9242
9243 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9244
9245         priv-set: fix comments
9246         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9247         to match code, as suggested by David Bartley in:
9248         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9249
9250 2010-08-23  Eric Blake  <eblake@redhat.com>
9251
9252         stdbool: avoid rejecting clang
9253         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9254         * tests/test-stdbool.c: Enable more tests if using the system
9255         <stdbool.h> instead of the gnulib replacement.
9256         (main): Move xlc bug test to a runtime test for all compilers.
9257         Reported by Anders Kaseorg.
9258
9259         argz: fix shell quoting issue
9260         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9261         Reported by Charles Wilson.
9262
9263 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9264             Erik Faye-Lund <kusmabite@gmail.com>
9265
9266         poll, select: handle ERROR_BROKEN_PIPE.
9267         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9268         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9269         * lib/select.c (win32_compute_revents): Do not mark a pipe
9270         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9271
9272 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9273
9274         fts: allow compilation with C++
9275         * lib/fts_.h: Specify extern "C" linkage with C++.
9276
9277 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9278
9279         Fix gnulib-tool sed script de-commentation for AIX sed.
9280         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9281         sed.
9282
9283 2010-08-17  Eric Blake  <eblake@redhat.com>
9284
9285         test-stddef: test for (some) offsetof bugs
9286         * tests/test-stddef.c: Enhance test to ensure correct type of
9287         offsetof.
9288         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9289         that we are not fixing at this time.
9290
9291 2010-08-15  Bruno Haible  <bruno@clisp.org>
9292
9293         stpncpy: Allow stpncpy to be defined as a macro.
9294         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9295         if it's already correctly declared.
9296         * lib/string.in.h (stpncpy): Undefine before redefining.
9297         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9298
9299 2010-08-14  Bruno Haible  <bruno@clisp.org>
9300
9301         Rename module 'memxfrm' to 'amemxfrm'.
9302         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9303         (amemxfrm): Renamed from memxfrm.
9304         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9305         (amemxfrm): Renamed from memxfrm.
9306         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9307         * NEWS: Mention the change.
9308         * MODULES.html.sh (String handling <string.h>): Update.
9309         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9310         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9311         * lib/unicase/u16-casexfrm.c: Likewise.
9312         * lib/unicase/u32-casexfrm.c: Likewise.
9313         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9314         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9315         * lib/uninorm/u16-normxfrm.c: Likewise.
9316         * lib/uninorm/u32-normxfrm.c: Likewise.
9317         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9318         memxfrm.
9319         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9320         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9321         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9322         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9323         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9324         Suggested by Paul Eggert.
9325
9326 2010-08-14  Bruno Haible  <bruno@clisp.org>
9327
9328         Tests for module 'astrxfrm'.
9329         * modules/astrxfrm-tests: New file.
9330         * tests/test-astrxfrm.c: New file.
9331
9332         New module 'astrxfrm'.
9333         * lib/astrxfrm.h: New file.
9334         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9335         * modules/astrxfrm: New file.
9336
9337 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9338
9339         regex: Tweak doc.
9340         * doc/regex.texi (Overview): Don't mention regex.c.
9341         (GNU Regular Expression Compiling): Likewise.
9342         (Match-end-of-line Operator): Mention 'not_eol'.
9343
9344 2010-08-14  Brian Gough  <bjg@gnu.org>
9345             Bruno Haible  <bruno@clisp.org>
9346
9347         git-merge-changelog: add doc relating to use with bzr and hg.
9348         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9349
9350 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9351
9352         pthread: fix pthread.h creation for srcdir != builddir
9353         * modules/pthread (Makefile.am): Fix the rule to work also in a
9354         non-srcdir build.
9355
9356 2010-08-13  Karl Berry  <karl@gnu.org>
9357
9358         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9359         * doc/posix-*/*: force line break before @url of POSIX
9360         specifications.
9361         Suggested by Werner Lemberg.
9362
9363 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9364
9365         strtod: fix const diagnostic
9366         * lib/strtod.c (strtod): Don't assign const char * to char *,
9367         as this elicits a warning from GCC when warnings are enabled.
9368
9369 2010-08-10  Pádraig Brady <P@draigbrady.com>
9370         and Eric Blake  <eblake@redhat.com>
9371
9372         copy-acl: ignore ENOTSUP on HP-UX
9373         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9374         so that it is available for HP-UX.
9375         * lib/copy-acl.c (qcopy_acl): Use it.
9376         Reported by Patrick M. Callahan.
9377
9378 2010-08-10  Eric Blake  <eblake@redhat.com>
9379
9380         open, chown: relax license
9381         * modules/open (License): Change to LGPLv2+, with consent by all
9382         authors, for use in augeas.
9383         * modules/chown (License): Likewise.
9384         * modules/lchown (Likewise): Likewise.
9385         Requested by Adam Stokes.
9386
9387 2010-08-09  Karl Berry  <karl@gnu.org>
9388
9389         * build-aux/ar-lib: new file, import from Automake.
9390         * config/srclist.txt: autocheck for updates.
9391
9392 2010-08-09  Eric Blake  <eblake@redhat.com>
9393
9394         readlinkat: adjust client modules
9395         * modules/areadlinkat (Depends-on): Use readlinkat, not
9396         symlinkat.
9397         * modules/areadlinkat-with-size (Depends-on): Likewise.
9398
9399         mknod: be more vocal about danger of running tests as root
9400         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9401         root, since that is just asking for problems.
9402         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9403
9404         readlinkat: split into its own module
9405         * modules/symlinkat: Split readlinkat...
9406         * modules/readlinkat: ...into separate module.
9407         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9408         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9409         * lib/symlinkat.c (readlinkat): Move...
9410         * lib/readlinkat.c: ...into new file.
9411         * modules/symlinkat-tests: Split readlinkat test...
9412         * modules/readlinkat-tests: ...into separate module.
9413         * tests/test-symlinkat.c: Split...
9414         * tests/test-readlinkat.c: ...into new file.
9415         * NEWS: Document the split.
9416         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9417         * lib/unistd.in.h (readlinkat): Likewise.
9418         Suggested by Bruno Haible.
9419
9420 2010-08-08  Bruno Haible  <bruno@clisp.org>
9421
9422         memxfrm: Speed up.
9423         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9424         that usually only one call to strxfrm is necessary for each string
9425         part.
9426         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9427
9428 2010-08-07  Karl Berry  <karl@gnu.org>
9429
9430         * doc/posix-headers/limits.texi,
9431         * doc/posix-functions/malloc.texi,
9432         * doc/posix-functions/strsignal.texi: missing @item.
9433         * doc/ld-version-script.texi: spurious leading i.
9434         * doc/regex.texi (Interval Operators): no commas inside @var.
9435
9436 2010-08-01  Bruno Haible  <bruno@clisp.org>
9437
9438         Integrate the regex documentation.
9439         * doc/gnulib.texi: Define 'cn' index.
9440         (Regular expressions): New a chapter that includes regex.texi and
9441         regexprops-generic.texi.
9442         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9443         syntax.
9444
9445         Whitespace cleanup.
9446         * doc/regex.texi: Remove trailing spaces.
9447
9448         Add regex documentation.
9449         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9450         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9451         Written by Kathy A. Hargreaves and Karl Berry.
9452
9453 2010-08-01  Bruno Haible  <bruno@clisp.org>
9454
9455         link: Update documentation.
9456         * doc/posix-functions/link.texi: Update regarding Solaris.
9457
9458 2010-07-31  Bruno Haible  <bruno@clisp.org>
9459
9460         Update modules list.
9461         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9462         (String handling <string.h>): Add memcmp2, memxfrm.
9463         (Container data structures): Add xlist, xsublist, xoset.
9464         (Core language properties): Add alignof, unused-parameter.
9465         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9466         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9467         (Unibyte characters <ctype.h>): New section.
9468         (String handling <string.h>): New section.
9469         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9470         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9471         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9472         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9473         tan, tanh, tanl, y0, y1, yn.
9474         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9475         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9476         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9477         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9478         unlockpt, vdprintf, vdprintf-posix.
9479         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9480         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9481         xconcat-filename.
9482         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9483         getdtablesize, pipe2, pipe2-safer.
9484         (Security): New section.
9485         (Networking functions): Add accept4.
9486         (Signal handling): Add sigpipe.
9487         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9488         mbmemcasecoll.
9489         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9490         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9491         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9492         pipe-filter-ii.
9493         (Misc): Add argp-version-etc, login_tty, parse-duration.
9494
9495 2010-07-31  Bruno Haible  <bruno@clisp.org>
9496
9497         Improve doc in MODULES.html.
9498         * modules/linkat (Description): Add the word "function".
9499         * modules/mkfifo (Description): Likewise.
9500         * modules/mknod (Description): Likewise.
9501         * modules/remove (Description): Likewise.
9502         * modules/renameat (Description): Likewise.
9503         * modules/stat (Description): Likewise.
9504         * modules/symlink (Description): Likewise.
9505         * modules/unlink (Description): Likewise.
9506
9507 2010-07-31  Bruno Haible  <bruno@clisp.org>
9508
9509         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9510         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9511         option --enable/disable-c++ instead of --enable/disable-cxx.
9512         * NEWS: Mention the change.
9513
9514 2010-07-31  Bruno Haible  <bruno@clisp.org>
9515
9516         readlink, areadlink: Relax test a bit.
9517         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9518         alternative to ENOTDIR.
9519         * tests/test-areadlink.h (test_areadlink): Likewise.
9520         Reported by Rainer Tammer.
9521
9522 2010-07-31  Bruno Haible  <bruno@clisp.org>
9523
9524         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9525         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9526         character, perform the search using U_STRCHR.
9527         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9528         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9529         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9530         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9531         Suggested by Paolo Bonzini.
9532
9533 2010-07-31  Bruno Haible  <bruno@clisp.org>
9534
9535         unistr/u*-strstr: Fix dependencies.
9536         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9537         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9538         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9539
9540 2010-07-31  Bruno Haible  <bruno@clisp.org>
9541
9542         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9543         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9544         the beginning of the loop.
9545         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9546         cases in 'switch' statement.
9547
9548         unistr/u8-strchr: Fix several bugs.
9549         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9550         the string. When not found, return NULL, not a pointer near the end.
9551
9552         More tests for unistr/u8-strchr.
9553         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9554         that the function does not read past the first occurrence of the byte
9555         being searched.
9556         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9557         * tests/unistr/test-u16-strchr.c (main): New function.
9558         * tests/unistr/test-u32-strchr.c (main): New function.
9559
9560 2010-07-31  Bruno Haible  <bruno@clisp.org>
9561
9562         posix-modules: Ignore backup files of documentation files.
9563         * posix-modules: grep only through files named *.texi.
9564
9565 2010-07-31  Bruno Haible  <bruno@clisp.org>
9566
9567         symlinkat: Fix documentation.
9568         * doc/posix-functions/readlinkat.texi: Fix module name.
9569
9570 2010-07-31  Bruno Haible  <bruno@clisp.org>
9571
9572         fchownat: Replace also when chown has the trailing slash bug.
9573         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9574         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9575         introduced on 2010-04-10.
9576         Reported by Rainer Tammer.
9577
9578 2010-07-31  Bruno Haible  <bruno@clisp.org>
9579
9580         linkat: Work around AIX 7.1 bug.
9581         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9582         whether linkat handles trailing slash correctly. If not, replace linkat
9583         and define LINKAT_TRAILING_SLASH_BUG.
9584         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9585         check whether (fd1,file1) points to a directory if file1 or file2 ends
9586         in a slash. Code taken from lib/link.c.
9587         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9588         Reported by Rainer Tammer.
9589
9590 2010-07-31  Bruno Haible  <bruno@clisp.org>
9591
9592         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9593         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9594         This disables an xlc optimization that was causing wrong test results.
9595         Reported by Rainer Tammer.
9596
9597 2010-07-31  Bruno Haible  <bruno@clisp.org>
9598
9599         iconv: Work around AIX 6.1..7.1 bug.
9600         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9601         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9602         cross-compiling, guess no on all versions of AIX.
9603         Reported by Rainer Tammer.
9604
9605 2010-07-31  Bruno Haible  <bruno@clisp.org>
9606
9607         readlink: Relax test a bit.
9608         * tests/test-readlink.h (test_readlink): Allow different errno value
9609         when readlink is called with a file name that ends in / and refers to
9610         a file.
9611         Suggested by Eric Blake.
9612         Reported by Rainer Tammer.
9613
9614 2010-07-31  Bruno Haible  <bruno@clisp.org>
9615
9616         copysign: Does not require -lm on glibc systems.
9617         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9618         gl_COMMON_DOUBLE_MATHFUNC.
9619         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9620
9621 2010-07-31  Bruno Haible  <bruno@clisp.org>
9622
9623         duplocale: Work around AIX 7.1 bug.
9624         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9625         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9626         * lib/duplocale.c (rpl_duplocale): Update comment.
9627         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9628         Reported by Rainer Tammer.
9629
9630 2010-07-30  Bruno Haible  <bruno@clisp.org>
9631
9632         dirfd: Avoid link error on AIX 7.1.
9633         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9634         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9635         exist, set REPLACE_DIRFD.
9636         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9637         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9638         * doc/posix-functions/dirfd.texi: Update.
9639         Reported by Rainer Tammer.
9640
9641 2010-07-30  Eric Blake  <eblake@redhat.com>
9642
9643         strtod: next round of AIX fixes
9644         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9645         exponent.
9646         * tests/test-strtod.c (main): Enhance tests.
9647         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9648         Reported by Rainer Tammer.
9649
9650         futimens: fix configure check
9651         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9652         Reported by Bruno Haible.
9653
9654 2010-07-30  Bruno Haible  <bruno@clisp.org>
9655
9656         getline: Update regarding AIX.
9657         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9658         Reported by Rainer Tammer.
9659
9660 2010-07-30  Bruno Haible  <bruno@clisp.org>
9661
9662         wcwidth: Drop replacement on AIX 7.
9663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9664         AIX 7.
9665         Reported by Rainer Tammer.
9666
9667 2010-07-30  Bruno Haible  <bruno@clisp.org>
9668
9669         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9671         a 'char *'.
9672         Reported by Rainer Tammer.
9673
9674 2010-07-30  Bruno Haible  <bruno@clisp.org>
9675
9676         unlink: Update regarding AIX.
9677         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9678         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9679         Reported by Rainer Tammer.
9680
9681 2010-07-30  Bruno Haible  <bruno@clisp.org>
9682
9683         symlink: Update regarding AIX.
9684         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9685         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9686         Reported by Rainer Tammer.
9687
9688 2010-07-30  Bruno Haible  <bruno@clisp.org>
9689
9690         strndup: Update regarding AIX.
9691         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9692         AIX 7.
9693         Reported by Rainer Tammer.
9694
9695 2010-07-30  Bruno Haible  <bruno@clisp.org>
9696
9697         stat: Update regarding AIX.
9698         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9699         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9700         Reported by Rainer Tammer.
9701
9702 2010-07-30  Bruno Haible  <bruno@clisp.org>
9703
9704         truncl: Fix autoconf test.
9705         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9706         whether truncl works.
9707         Reported by Rainer Tammer.
9708
9709 2010-07-30  Bruno Haible  <bruno@clisp.org>
9710
9711         round: Update regarding AIX.
9712         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9713         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9714         Reported by Rainer Tammer.
9715
9716 2010-07-30  Bruno Haible  <bruno@clisp.org>
9717
9718         rename: Update regarding AIX.
9719         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9720         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9721         Reported by Rainer Tammer.
9722
9723 2010-07-30  Bruno Haible  <bruno@clisp.org>
9724
9725         printf.m4: Update regarding AIX.
9726         * m4/printf.m4: Update comments regarding AIX.
9727         Reported by Rainer Tammer.
9728
9729 2010-07-30  Bruno Haible  <bruno@clisp.org>
9730
9731         iconv: Update regarding AIX.
9732         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9733         AIX 7.
9734         Reported by Rainer Tammer.
9735
9736 2010-07-30  Bruno Haible  <bruno@clisp.org>
9737
9738         getopt: Update regarding AIX.
9739         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9740         no on AIX.
9741         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9742         Reported by Rainer Tammer.
9743
9744 2010-07-30  Bruno Haible  <bruno@clisp.org>
9745
9746         ldexpl; Update regarding AIX.
9747         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9748         on AIX 7.
9749         Reported by Rainer Tammer.
9750
9751 2010-07-30  Bruno Haible  <bruno@clisp.org>
9752
9753         frexpl: Update regarding AIX.
9754         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9755         on AIX 7.
9756         Reported by Rainer Tammer.
9757
9758 2010-07-30  Bruno Haible  <bruno@clisp.org>
9759
9760         open, fopen: Update regarding AIX.
9761         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9762         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9763         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9764         * doc/posix-functions/fopen.texi: Likewise.
9765         Reported by Rainer Tammer.
9766
9767 2010-07-30  Bruno Haible  <bruno@clisp.org>
9768
9769         chown: Update doc regarding AIX.
9770         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9771         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9772         Reported by Rainer Tammer.
9773
9774 2010-07-30  Eric Blake  <eblake@redhat.com>
9775
9776         strtod: fix bug in replacement function on AIX
9777         * lib/strtod.c (strtod): Special case broken "0x" parse in
9778         underlying strtod.
9779         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9780         * doc/posix-functions/strtod.texi (strtod): Likewise.
9781         Reported by Rainer Tammer.
9782
9783 2010-07-30  Bruno Haible  <bruno@clisp.org>
9784
9785         mbrlen: Fix cross-compilation guess for AIX.
9786         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9787         guess. Leftover from 2008-12-22.
9788
9789 2010-07-30  Bruno Haible  <bruno@clisp.org>
9790
9791         mbrtowc: Fix cross-compilation guess for AIX.
9792         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9793         guess. Leftover from 2008-12-21.
9794
9795 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9796
9797         init.sh: work around trap limitation of some shells
9798         * tests/init.sh (setup_): Move exit trap outside of shell function.
9799
9800 2010-07-29  Eric Blake  <eblake@redhat.com>
9801
9802         strtod: aid debugging
9803         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9804         understanding why strtod is rejected.
9805
9806 2010-07-28  Bruno Haible  <bruno@clisp.org>
9807
9808         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9809         * lib/unistr/u8-chr.c: Include <string.h>.
9810         * tests/unistr/test-u8-chr.c: Likewise.
9811         * tests/unistr/test-u16-chr.c: Likewise.
9812         * tests/unistr/test-u32-chr.c: Likewise.
9813         * tests/unistr/test-u8-strchr.c: Likewise.
9814         * tests/unistr/test-u16-strchr.c: Likewise.
9815         * tests/unistr/test-u32-strchr.c: Likewise.
9816         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9817         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9818         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9819         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9820
9821 2010-07-28  Bruno Haible  <bruno@clisp.org>
9822
9823         Use spaces for indentation, not tabs.
9824         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9825
9826 2010-07-27  Bruno Haible  <bruno@clisp.org>
9827
9828         mbspcasecmp: Fix function specification.
9829         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9830         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9831         Reported by Eric Blake <eblake@redhat.com>.
9832
9833 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9834
9835         timespec: use cast and not conditional, as truncation isn't possible
9836         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9837         instead of a conditional.  Comment about the situation in more detail.
9838         This undoes most of the 2009-10-29 patch.
9839
9840 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9841
9842         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9843         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9844         * lib/unistr/u8-strchr.c: Likewise.
9845         * modules/unistr/u8-chr: Depend on memchr.
9846
9847         unistr/u*-strchr: add tests
9848         * modules/unistr/u8-strchr-tests: New file.
9849         * modules/unistr/u16-strchr-tests: New file.
9850         * modules/unistr/u32-strchr-tests: New file.
9851         * tests/unistr/test-strchr.h: New file.
9852         * tests/unistr/test-u8-strchr.c: New file.
9853         * tests/unistr/test-u16-strchr.c: New file.
9854         * tests/unistr/test-u32-strchr.c: New file.
9855
9856         unistr/u*-chr: test multibyte sequences more
9857         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9858         test vector.
9859         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9860         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9861         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9862
9863         unistr/u*-chr: test multibyte sequences
9864         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9865
9866         unistr/u*-chr: prepare for multibyte tests
9867         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9868         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9869         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9870         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9871         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9872         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9873
9874 2010-07-18  Bruno Haible  <bruno@clisp.org>
9875
9876         unistr/u8-strchr: Optimize non-ASCII argument case.
9877         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9878         because the first byte often matches anyway.
9879         Reported by Pádraig Brady <P@draigbrady.com>.
9880
9881 2010-07-15  Karl Berry  <karl@gnu.org>
9882
9883         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9884
9885 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9886
9887         getcwd: on Solaris, work better if ancestors are inaccessible
9888         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9889         buffer and size, try again with a large buffer.  This works better
9890         on Solaris, since its getcwd succeeds even if the path to the root
9891         is inaccessible, and this is helpful in common cases such as .zfs
9892         hidden directories.  Problem reported by J Chapman Flack in
9893         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9894         Use system getcwd if it's declared, not merely if it's partly
9895         working; use the partly-working test only to avoid needless effort
9896         if the system getcwd fails.
9897         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9898         comment that was already obsolete and is now even more obsolete.
9899         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9900         now might call strdup.
9901
9902 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9903
9904         pthread: Add enough so that coreutils/src/sort.c compiles.
9905         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9906         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9907         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9908         Include <sys/types.h>, in case it defines pthread_t.
9909         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9910         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9911         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9912         (pthread_rwlockattr_t, pthread_spinlock_t):
9913         New typedefs, if HAVE_PTHREAD_T is not defined.
9914         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9915         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9916         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9917         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9918         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9919         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9920         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9921         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9922         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9923         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9924         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9925         New macros.
9926         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9927         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9928         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9929         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9930         (pthread_spin_unlock): New dummy functions.
9931         (pthread_create): Return EAGAIN; don't set errno.
9932         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9933         require AC_C_INLINE.
9934         * modules/pthread (Depends-on): Add sched, time.
9935         (pthread.h): Use AM_V_GEN.
9936
9937 2010-07-13  Bruno Haible  <bruno@clisp.org>
9938
9939         striconveh: Don't malloc memory if the result buffer is sufficient.
9940         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9941         buffer if its size is sufficient.
9942         Reported by Ludovic Courtès <ludo@gnu.org>.
9943
9944 2010-07-13  Bruno Haible  <bruno@clisp.org>
9945
9946         strtod: Add safety check.
9947         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9948
9949 2010-07-12  Bruno Haible  <bruno@clisp.org>
9950
9951         Unify tests that set gl_cv_func_ldexpl_no_libm.
9952         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9953         gl_FUNC_LDEXPL.
9954         (gl_FUNC_LDEXPL): Invoke it.
9955         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9956
9957 2010-07-12  Bruno Haible  <bruno@clisp.org>
9958
9959         Unify tests that set gl_cv_func_ldexp_no_libm.
9960         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9961         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9962         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9963         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9964         * modules/strtod (Files): Add m4/ldexp.m4.
9965
9966 2010-07-12  Bruno Haible  <bruno@clisp.org>
9967
9968         Unify tests that set gl_cv_func_frexpl_no_libm.
9969         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9970         gl_FUNC_FREXPL_NO_LIBM.
9971         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9972         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9973
9974 2010-07-12  Bruno Haible  <bruno@clisp.org>
9975
9976         Unify tests that set gl_cv_func_frexp_no_libm.
9977         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9978         gl_FUNC_FREXP_NO_LIBM.
9979         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9980         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9981
9982 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9983
9984         memcoll: clarify sizes versus lengths, document better, and tweak perf
9985         * lib/memcoll.c (strcoll_loop, memcoll0):
9986         Improve quality of descriptive comments.  Name variables
9987         consistently as to whether they are lengths (which do not include
9988         terminating null) versus sizes (which do).
9989         * lib/xmemcoll.c (xmemcoll0): Likewise.
9990         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9991         returned when s1size == 0; this is easier to compile and saves
9992         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9993
9994 2010-07-12  Bruno Haible  <bruno@clisp.org>
9995
9996         Tests for module '_Exit'.
9997         * modules/_Exit-tests: New file.
9998         * tests/test-_Exit.sh: New file.
9999         * tests/test-_Exit.c: New file.
10000
10001         New module '_Exit'.
10002         * lib/stdlib.in.h (__attribute__): New macro.
10003         (_Exit): New declaration.
10004         * lib/_Exit.c: New file.
10005         * m4/_Exit.m4: New file.
10006         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10007         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10008         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10009         * modules/_Exit: New file.
10010         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10011         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10012
10013 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10014
10015         strtod: make it more-accurate typically, and don't require libm
10016         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10017         Include limits.h.  Don't include string.h.
10018         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10019         (locale_isspace): New function, so that no casts are needed to
10020         check whether *s is a space.
10021         (ldexp): Provide an unused dummy if not available.
10022         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10023         (strtod): Use them.  This implementation prefers to use the
10024         underlying strtod if available, falling back on our own code
10025         only to fix known bugs.  This is more likely to produce an
10026         accurate result.  Also, it avoids the use of libm functions.
10027         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10028         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10029         was absent, but it caused a test failure with coreutils.
10030         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10031         with libm.
10032         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10033         * modules/strtod-tests (Makefile.am): Likewise.
10034
10035 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10036             Bruno Haible  <bruno@clisp.org>
10037
10038         unistr/u8-strchr: Optimize ASCII argument case.
10039         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10040
10041 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10042
10043         (x)memcoll: minor tweaks
10044         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10045         is after the type that it qualifies.
10046         (memcoll0): Likewise.
10047         * lib/memcoll.h (memcoll0): Likewise.
10048         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10049         * lib/xmemcoll.h (xmemcoll0): Likewise.
10050         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10051         differs from memcoll in that the NUL byte is part of the argument.
10052         Omit the abort-checks, as performance is a real issue here.  Plus,
10053         the checks were wrong anyway (an off-by-one error).  Omit local
10054         variable 'diff', as it's a bit clearer that way.
10055         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10056         no longer needed.
10057
10058 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10059
10060         (x)memcoll: speedup when input is known to be NUL delimited
10061         * lib/memcoll.c: Include stdlib.
10062         (memcoll0) New function.
10063         (strcoll_loop) New function, refactored for use in both memcoll
10064         and memcoll0.
10065         * lib/memcoll.h: Add prototype for memcoll0.
10066         * lib/xmemcoll.c: (xmemcoll0) New function.
10067         (collate_error) New function, refactored for use in both xmemcoll
10068         and xmemcoll0.
10069         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10070         * m4/memcoll.m4: add inline invocation.
10071
10072 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10073
10074         * build-aux/bootstrap: Remove any local translations
10075         from the translation project synchronization directory,
10076         so that local only translations are not distributed.
10077
10078 2010-07-04  Bruno Haible  <bruno@clisp.org>
10079
10080         fsusage: Clarify which code applies to which platforms.
10081         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10082         platform.
10083         * lib/fsusage.c (get_fs_usage): Likewise.
10084
10085 2010-07-04  Bruno Haible  <bruno@clisp.org>
10086
10087         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10088         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10089         Reported by Martin Lambers <marlam@marlam.de>.
10090
10091 2010-07-04  Jim Meyering  <meyering@redhat.com>
10092
10093         hash: once again explicitly disallow insertion of NULL
10094         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10095         inserting a NULL pointer cannot work with these functions.
10096         Add a comment with details.
10097         This reverts part of the 2010-07-01 commit, 5bef1a35
10098         "hash: extend module to deal with non-pointer keys".
10099
10100 2010-07-01  Bruno Haible  <bruno@clisp.org>
10101
10102         stdbool: Update doc.
10103         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10104         Info from Christian Weisgerber <naddy@mips.inka.de>.
10105
10106 2010-07-01  Jim Meyering  <meyering@redhat.com>
10107
10108         hash: extend module to deal with non-pointer keys
10109         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10110         but that allows insertion of non-pointer entries.
10111         Do not disallow an ENTRY value of NULL.
10112         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10113         * lib/hash.h (hash_insert0): Declare.
10114
10115 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10116
10117         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10118         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10119         not present (i.e. with autoconf 2.59 and when using gettextize, not
10120         gnulib), require AC_GNU_SOURCE instead.
10121
10122 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10123
10124         idpriv-drop: Fix tests.
10125         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10126         not to the test-idpriv-droptemp program.
10127
10128 2010-06-29  Bruno Haible  <bruno@clisp.org>
10129
10130         string: Fix syntax error with g++ 2.96.
10131         * lib/string.in.h (__pure__): Remove definition.
10132         (_GL_ATTRIBUTE_PURE): New macro.
10133         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10134         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10135         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10136
10137 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10138
10139         unitypes: Fix bug introduced on 2010-05-18.
10140         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10141
10142 2010-06-22  Eric Blake  <eblake@redhat.com>
10143
10144         memmem: slight optimization
10145         * lib/str-two-way.h (critical_factorization): Update comments.
10146         Reduce work during factorization phase.
10147         Reported by Carlos Bueno <carlos@bueno.org>.
10148
10149 2010-06-21  Bruno Haible  <bruno@clisp.org>
10150
10151         Fix HAVE_CALLOC_POSIX misnomer.
10152         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10153         !HAVE_CALLOC_POSIX.
10154         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10155         HAVE_CALLOC_POSIX.
10156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10157         instead of HAVE_CALLOC_POSIX.
10158         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10159         HAVE_CALLOC_POSIX.
10160
10161         Use modern idiom for calloc() replacement.
10162         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10163         AC_FUNC_CALLOC.
10164         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10165         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10166         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10167         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10168         (gl_REPLACE_CALLOC): New macro.
10169
10170 2010-06-21  Bruno Haible  <bruno@clisp.org>
10171
10172         Fix HAVE_REALLOC_POSIX misnomer.
10173         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10174         !HAVE_REALLOC_POSIX.
10175         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10176         HAVE_REALLOC_POSIX.
10177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10178         instead of HAVE_REALLOC_POSIX.
10179         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10180         HAVE_REALLOC_POSIX.
10181
10182         Use modern idiom for realloc() replacement.
10183         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10184         AC_FUNC_REALLOC.
10185         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10186         Autoconf's AC_FUNC_REALLOC.
10187         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10188         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10189         (gl_REPLACE_REALLOC): New macro.
10190         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10191
10192 2010-06-21  Bruno Haible  <bruno@clisp.org>
10193
10194         Fix HAVE_MALLOC_POSIX misnomer.
10195         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10196         !HAVE_MALLOC_POSIX.
10197         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10198         HAVE_MALLOC_POSIX.
10199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10200         instead of HAVE_MALLOC_POSIX.
10201         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10202         HAVE_MALLOC_POSIX.
10203
10204         Use modern idiom for malloc() replacement.
10205         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10206         AC_FUNC_MALLOC.
10207         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10208         Autoconf's AC_FUNC_MALLOC.
10209         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10210         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10211         (gl_REPLACE_MALLOC): New macro.
10212         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10213
10214 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10215
10216         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10217         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10218         This macro takes 3 arguments, not 4.
10219
10220 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10221
10222         ipv6: fix detection under mingw
10223         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10224         in6_addr.
10225
10226 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10227
10228         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10229         that strtod() works when cross-compiling to a glibc version known
10230         to work.
10231
10232 2010-06-15  Bruno Haible  <bruno@clisp.org>
10233
10234         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10235
10236 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10237
10238         select: Correct timeout.
10239         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10240
10241 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10242
10243         git-version-gen: init shell var to avoid env var influence
10244         * build-aux/git-version-gen (v): Init shell var to empty.
10245
10246 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10247
10248         priv-set: Don't assume that priv.h exists merely because getppriv does.
10249         See Jan Andersen's bug report about AIX 5L in
10250         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10251         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10252         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10253         * lib/priv-set.h: Likewise.
10254         * tests/test-priv-set.c: Likewise.
10255
10256 2010-06-13  Bruno Haible  <bruno@clisp.org>
10257
10258         relocatable: Make it easier to test whether to install wrappers.
10259         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10260         RELOCATABLE_VIA_WRAPPER.
10261
10262 2010-06-13  Bruno Haible  <bruno@clisp.org>
10263
10264         gnulib-tool: Display specified modules and dependencies differently.
10265         * gnulib-tool (func_show_module_list): New function.
10266         (func_import, func_create_testdir): Invoke it.
10267         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10268
10269 2010-06-13  Bruno Haible  <bruno@clisp.org>
10270
10271         gnulib-tool: Align code of func_import and func_create_testdir.
10272         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10273         specified_modules.
10274
10275 2010-06-12  Jim Meyering  <meyering@redhat.com>
10276
10277         test-inttostr: avoid spurious failure on Solaris 9
10278         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10279         to accept "%ju".  Reported by Bruno Haible.
10280
10281 2010-06-11  Jim Meyering  <meyering@redhat.com>
10282
10283         test-sys_socket: mark variables as used more readably
10284         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10285         as "used" explicitly via (void) statement casts.  This is more
10286         readable than using them in an artificial return expression.
10287         Suggestion from Bruno Haible.
10288
10289 2010-06-11  Bruno Haible  <bruno@clisp.org>
10290
10291         Avoid some more warnings from "gcc -Wwrite-strings".
10292         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10293         to 'const char *'.
10294         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10295         * tests/test-c-strcasestr.c (main): Likewise.
10296         * tests/test-mbscasestr1.c (main): Likewise.
10297         * tests/test-mbscasestr2.c (main): Likewise.
10298         * tests/test-memmem.c (main): Likewise.
10299         * tests/test-strstr.c (main): Likewise.
10300         * tests/test-strcasestr.c (main): Likewise.
10301
10302 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10303
10304         init.sh: change framework_failure_ to fail with status 99, not 1
10305         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10306         automake's parallel-tests rule that this is an unexpected failure,
10307         even if the test is listed in XFAIL_TESTS.
10308
10309 2010-06-11  Jim Meyering  <meyering@redhat.com>
10310
10311         test-inttostr: avoid warnings about 4-6KB literal strings
10312         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10313         Include "macros.h", for its definition of ASSERT.
10314         (CK): s/assert/ASSERT/
10315         * modules/inttostr-tests (Files): Add macros.h.
10316
10317         init.sh: don't use $ME_ or skip_ before they are defined
10318         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10319         their first uses.  Also hoist their companions: warn_, fail_,
10320         framework_failure_, $stderr_fileno.  Prompted by a patch from
10321         Stefano Lattarini.
10322
10323         test-sys_socket: avoid set-but-not-used warnings from gcc
10324         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10325         avoid warning about set-but-not-used variables.
10326
10327         test-xvasprintf: avoid 'const' discard warnings
10328         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10329         "const" when assigning from literal strings.
10330         (test_xasprintf): Add "void" in function argument list to placate
10331         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10332
10333         tests: avoid compilation warnings in argmatch and exclude tests...
10334         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10335         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10336         Since it always exits, declare with the "noreturn" attribute.
10337         * tests/test-argmatch.c: Likewise.
10338
10339         tests: avoid 'const' discard warnings in mbsstr tests
10340         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10341         * tests/test-mbsstr2.c (main): Likewise.
10342
10343         test-verify: avoid warning from gcc's -Wmissing-declarations
10344         * tests/test-verify.c (function): Declare to be static.
10345
10346         test-inttostr.c: include <string.h> for use of strcmp
10347         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10348
10349         test-linkat: avoid failed assertion on "other" architectures
10350         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10351         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10352         sparc: https://bugs.launchpad.net/bugs/591968
10353
10354 2010-06-11  Jim Meyering  <meyering@redhat.com>
10355
10356         printf.m4: avoid autoconf's "Expanded Before Required" warning
10357         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10358         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10359         autoconf warning.
10360
10361 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10362
10363         Replacement header templates are now named with ".in", not "_".
10364         * doc/gnulib-intro.texi: Correct.
10365
10366 2010-06-10  Jim Meyering  <meyering@redhat.com>
10367
10368         inttostr-tests: depend on snprintf, not snprintf-posix
10369         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10370         snprintf-posix, to avoid this aclocal failure:
10371           missing file gnulib-tests/vasnprintf.c
10372           configure.ac:45: error: expected source file, required through \
10373           AC_LIBSOURCES, not found
10374
10375 2010-06-10  Jim Meyering  <meyering@redhat.com>
10376
10377         inttostr: add a new function, inttostr, and tests
10378         The namesake function was not available.  The existence of the
10379         template file, inttostr.c makes its addition nontrivial.
10380         * lib/anytostr.c: Rename from inttostr.c.
10381         (anytostr): Rename from inttostr.
10382         * lib/inttostr.c: New file.
10383         * modules/inttostr (Files): Add anytostr.c.
10384         (Makefile.am): Set lib_SOURCES instead of ...
10385         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10386         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10387         * lib/offtostr.c: Likewise.
10388         * lib/uinttostr.c: Likewise.
10389         * lib/umaxtostr.c: Likewise.
10390         * modules/inttostr-tests: New file.
10391         * tests/test-inttostr.c: New file.  Test these functions.
10392
10393 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10394             Bruno Haible  <bruno@clisp.org>
10395
10396         Add "Extending Gnulib" chapter to manual.
10397         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10398         chapter.
10399         (Extending Gnulib): New chapter.
10400         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10401         chapter.
10402
10403 2010-06-09  Bruno Haible  <bruno@clisp.org>
10404
10405         Avoid relocwrapper link errors due to gnulib replacement functions.
10406         * lib/areadlink.c: Use the system's malloc, realloc functions.
10407         (areadlink): Set errno to ENOMEM explicitly.
10408         * modules/areadlink (Depends-on): Remove malloc-posix.
10409         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10410
10411 2010-06-09  Bruno Haible  <bruno@clisp.org>
10412
10413         Avoid relocwrapper link errors due to gnulib replacement functions.
10414         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10415         * lib/malloca.c: Likewise.
10416         * lib/relocatable.c: Likewise.
10417         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10418         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10419         * lib/setenv.c: Use the system's malloc, realloc functions.
10420         * lib/strerror.c: Use the system's sprintf function.
10421         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10422
10423 2010-06-04  Bruno Haible  <bruno@clisp.org>
10424
10425         Prefer documented low-level autoconf macro names.
10426         * m4/lib-link.m4: Use m4_translit instead of translit.
10427         * m4/environ.m4: Likewise.
10428         * m4/mathfunc.m4: Likewise.
10429         * m4/onceonly.m4: Likewise.
10430         * m4/stdint.m4: Likewise.
10431         Suggested by Eric Blake.
10432
10433 2010-06-04  Martin Lambers  <marlam@marlam.de>
10434             Bruno Haible  <bruno@clisp.org>
10435
10436         havelib: Allow library names with '+' characters.
10437         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10438         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10439
10440 2010-06-09  Bruno Haible  <bruno@clisp.org>
10441
10442         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10443         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10444         realloc failed.
10445
10446 2010-06-08  Peter Simons  <simons@cryp.to>
10447
10448         maint.mk: make the news-check rule more configurable
10449         * top/maint.mk (news-check-lines-spec) New variable.
10450         (news-check): Use "sed -n 1,10p" in place of "head".
10451
10452 2010-06-07  Jim Meyering  <meyering@redhat.com>
10453
10454         do-release-commit-and-tag: fix typo in --help
10455         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10456
10457         regex: avoid new dead-code warning with gcc-4.6.0
10458         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10459         if-block containing a while-loop.  It's been unused for at least
10460         5 years.
10461
10462 2010-06-05  Bruno Haible  <bruno@clisp.org>
10463
10464         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10465         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10466
10467 2010-06-04  Bruno Haible  <bruno@clisp.org>
10468
10469         Update to GNU gettext 0.18.1.
10470         * modules/gettext (configure.ac): Require gettext infrastructure from
10471         version 0.18.1.
10472
10473 2010-06-03  Bruno Haible  <bruno@clisp.org>
10474
10475         Don't use AC_LIBOBJ with file names in subdirectories.
10476         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10477         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10478         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10479         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10480         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10481         gl_LIBUNISTRING_LIBSOURCE.
10482         (Makefile.am): Augment lib_SOURCES here, conditionally.
10483         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10484
10485 2010-06-03  Bruno Haible  <bruno@clisp.org>
10486
10487         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10488         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10489         expansion does not end with a newline.
10490         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10491         unnecessary newline.
10492
10493 2010-06-03  Bruno Haible  <bruno@clisp.org>
10494
10495         Reduce dependencies.
10496         * tests/test-quotearg.h: New file, extracted from
10497         tests/test-quotearg.c.
10498         * tests/test-quotearg-simple.c: New file, extracted from
10499         tests/test-quotearg.c.
10500         * tests/test-quotearg.c: Don't include <ctype.h>.
10501         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10502         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10503         use_quote_double_quotes, use_quotearg_colon): Moved to
10504         tests/test-quotearg.h.
10505         (results_g, flag_results, custom_quotes, custom_results): Moved
10506         to tests/test-quotearg-simple.c.
10507         (main): Moved the part that does not depend on gettext to
10508         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10509         performed.
10510         * modules/quotearg-simple: New file.
10511         * modules/quotearg-simple-tests: New file.
10512         * modules/quotearg (Depends-on): Add quotearg-simple.
10513         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10514         (Files): Add tests/test-quotearg.h.
10515         Reported by Paolo Bonzini.
10516
10517 2010-06-03  Bruno Haible  <bruno@clisp.org>
10518
10519         Reduce dependencies.
10520         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10521
10522 2010-06-03  Bruno Haible  <bruno@clisp.org>
10523
10524         time: Undefine more broken macros.
10525         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10526         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10527         Reported by Eric Blake.
10528
10529 2010-06-03  Bruno Haible  <bruno@clisp.org>
10530
10531         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10532         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10533         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10534         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10535         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10536         Reported by Ludovic Courtès <ludo@gnu.org>.
10537
10538 2010-06-02  Eric Blake  <eblake@redhat.com>
10539
10540         time: work with mingw + pthreads-win32 library
10541         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10542         if timespec is defined only in pthread.h.
10543         * modules/time (Makefile.am): Substitute it.
10544         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10545         <pthread.h>, when needed.
10546         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10547         from the library.
10548
10549 2010-05-31  Bruno Haible  <bruno@clisp.org>
10550
10551         Avoid expanding two macros in the wrong order.
10552         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10553         gl_LIBUNISTRING if it is defined.
10554         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10555         autoconf >= 2.64.
10556         Reported by Ludovic Courtès <ludo@gnu.org>.
10557
10558 2010-05-27  Jim Meyering  <meyering@redhat.com>
10559
10560         maint.mk: also prohibit "#undef" of always-defined symbols
10561         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10562         Allow more than one space before the symbol name.
10563         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10564         the regexp uses alternation.
10565
10566 2010-05-26  Eric Blake  <eblake@redhat.com>
10567
10568         maint.mk: avoid echo -e
10569         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10570         Convert all uses of echo -* to printf.
10571         Reported by Matthias Bolte.
10572
10573 2010-05-25  Bruno Haible  <bruno@clisp.org>
10574
10575         Update to GNU gettext 0.18, part 2.
10576         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10577         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10578
10579 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10580
10581         Add missing include in test-pwrite.c.
10582         * tests/test-pwrite.c: Include string.h, for strcmp.
10583
10584 2010-05-24  Bruno Haible  <bruno@clisp.org>
10585
10586         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10587
10588 2010-05-24  Bruno Haible  <bruno@clisp.org>
10589
10590         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10591         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10592         iconveh_error argument.
10593         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10594         U_STRCONV_TO_LOCALE.
10595         * lib/unistr/u16-strcoll.c: Likewise.
10596         * lib/unistr/u32-strcoll.c: Likewise.
10597         * modules/unistr/u8-strcoll (Depends-on): Add
10598         uniconv/u8-strconv-to-enc, localcharset. Remove
10599         uniconv/u8-strconv-to-locale.
10600         (configure.ac): Bump version number.
10601         * modules/unistr/u16-strcoll (Depends-on): Add
10602         uniconv/u16-strconv-to-enc, localcharset. Remove
10603         uniconv/u16-strconv-to-locale.
10604         (configure.ac): Bump version number.
10605         * modules/unistr/u32-strcoll (Depends-on): Add
10606         uniconv/u32-strconv-to-enc, localcharset. Remove
10607         uniconv/u32-strconv-to-locale.
10608         (configure.ac): Bump version number.
10609
10610 2010-05-24  Bruno Haible  <bruno@clisp.org>
10611
10612         Avoid a test failure on NetBSD 5.0.
10613         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10614         an iconv() bug.
10615
10616 2010-05-24  Bruno Haible  <bruno@clisp.org>
10617
10618         Adjust #include directive style.
10619         * modules/regex (Includes): Recommend to write <regex.h>.
10620
10621 2010-05-24  Bruno Haible  <bruno@clisp.org>
10622
10623         regex: Don't require alloca.
10624         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10625         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10626         only inside if (0).
10627
10628 2010-05-23  Jim Meyering  <meyering@redhat.com>
10629
10630         test-renameat.c: include <sys/stat.h>
10631         * tests/test-renameat.c: Include <sys/stat.h>; required for
10632         definition of S_IS* macros.
10633
10634 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10635
10636         Update maintainer documentation for 'relocatable-prog' module.
10637         * doc/relocatable-maint.texi: Update.
10638         Comments by Bruno Haible.
10639
10640 2010-05-23  Bruno Haible  <bruno@clisp.org>
10641
10642         git-merge-changelog: Enable --split-merged-entry by default.
10643         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10644         (usage): Don't mention this option any more.
10645         Reported by Ralf Wildenhues.
10646
10647 2010-05-23  Jim Meyering  <meyering@redhat.com>
10648
10649         test-pwrite: do not leave behind a test file named "out"
10650         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10651         The trivial-looking use of init.sh is really necessary.
10652         It ensures that the temporary file, "out", is created in
10653         a temporary directory, and removed upon termination.
10654         * tests/test-pwrite.sh: Re-add file.
10655         * modules/pwrite-tests: Reference it.
10656
10657 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10658
10659         Fix output redirection buglet in init.sh.
10660         * tests/init.sh: Fix redirection of stderr.
10661
10662 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10663
10664         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10665
10666 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10667
10668         * modules/valgrind-tests: New file.
10669         * m4/valgrind-tests.m4: New file.
10670         * doc/valgrind-tests.texi: New file.
10671         * doc/gnulib.texi (Running self-tests under valgrind): New
10672         section.
10673
10674 2010-05-19  Bruno Haible  <bruno@clisp.org>
10675
10676         Clean up dead code in recent commit.
10677         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10678         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10679         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10680         Suggested by Paolo Bonzini.
10681
10682 2010-05-19  Bruno Haible  <bruno@clisp.org>
10683
10684         Avoid valgrind error reports from libunistring.
10685         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10686         * modules/libunistring (Files): Add it.
10687         * modules/libunistring-optional (Files): Likewise.
10688
10689 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10690             Bruno Haible  <bruno@clisp.org>
10691
10692         New module 'libunistring-optional'.
10693         * modules/libunistring-optional: New file.
10694         * m4/libunistring-base.m4: New file.
10695         * m4/libunistring-optional.m4: New file.
10696         * lib/unicase.in.h: Renamed from lib/unicase.h.
10697         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10698         * lib/unictype.in.h: Renamed from lib/unictype.h.
10699         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10700         * lib/uniname.in.h: Renamed from lib/uniname.h.
10701         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10702         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10703         * lib/unistr.in.h: Renamed from lib/unistr.h.
10704         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10705         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10706         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10707         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10708         gl_LIBUNISTRING. If the library was found, determine the installed
10709         version and set LIBUNISTRING_VERSION.
10710         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10711         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10712         handle a configuration option --with-included-libunistring.
10713         * modules/libunistring (Files): Add m4/absolute-header.m4.
10714         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10715         Add m4/libunistring-base.m4.
10716         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10717         (Makefile.am): Build unicase.h from unicase.in.h.
10718         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10719         Add m4/libunistring-base.m4.
10720         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10721         (Makefile.am): Build uniconv.h from uniconv.in.h.
10722         * modules/unictype/base (Files): Use unictype.in.h instead of
10723         unictype.h. Add m4/libunistring-base.m4.
10724         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10725         (Makefile.am): Build unictype.h from unictype.in.h.
10726         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10727         Add m4/libunistring-base.m4.
10728         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10729         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10730         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10731         Add m4/libunistring-base.m4.
10732         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10733         (Makefile.am): Build uniname.h from uniname.in.h.
10734         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10735         Add m4/libunistring-base.m4.
10736         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10737         (Makefile.am): Build uninorm.h from uninorm.in.h.
10738         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10739         unistdio.h. Add m4/libunistring-base.m4.
10740         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10741         (Makefile.am): Build unistdio.h from unistdio.in.h.
10742         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10743         Add m4/libunistring-base.m4.
10744         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10745         (Makefile.am): Build unistr.h from unistr.in.h.
10746         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10747         Add m4/libunistring-base.m4.
10748         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10749         (Makefile.am): Build unitypes.h from unitypes.in.h.
10750         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10751         Add m4/libunistring-base.m4.
10752         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10753         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10754         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10755         uniwidth.h. Add m4/libunistring-base.m4.
10756         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10757         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10758         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10759         instead of augmenting lib_SOURCES.
10760         * modules/unicase/empty-suffix-context: Likewise.
10761         * modules/unicase/locale-language: Likewise.
10762         * modules/unicase/tolower: Likewise.
10763         * modules/unicase/totitle: Likewise.
10764         * modules/unicase/toupper: Likewise.
10765         * modules/unicase/u8-casecmp: Likewise.
10766         * modules/unicase/u8-casecoll: Likewise.
10767         * modules/unicase/u8-casefold: Likewise.
10768         * modules/unicase/u8-casexfrm: Likewise.
10769         * modules/unicase/u8-ct-casefold: Likewise.
10770         * modules/unicase/u8-ct-tolower: Likewise.
10771         * modules/unicase/u8-ct-totitle: Likewise.
10772         * modules/unicase/u8-ct-toupper: Likewise.
10773         * modules/unicase/u8-is-cased: Likewise.
10774         * modules/unicase/u8-is-casefolded: Likewise.
10775         * modules/unicase/u8-is-lowercase: Likewise.
10776         * modules/unicase/u8-is-titlecase: Likewise.
10777         * modules/unicase/u8-is-uppercase: Likewise.
10778         * modules/unicase/u8-prefix-context: Likewise.
10779         * modules/unicase/u8-suffix-context: Likewise.
10780         * modules/unicase/u8-tolower: Likewise.
10781         * modules/unicase/u8-totitle: Likewise.
10782         * modules/unicase/u8-toupper: Likewise.
10783         * modules/unicase/u16-casecmp: Likewise.
10784         * modules/unicase/u16-casecoll: Likewise.
10785         * modules/unicase/u16-casefold: Likewise.
10786         * modules/unicase/u16-casexfrm: Likewise.
10787         * modules/unicase/u16-ct-casefold: Likewise.
10788         * modules/unicase/u16-ct-tolower: Likewise.
10789         * modules/unicase/u16-ct-totitle: Likewise.
10790         * modules/unicase/u16-ct-toupper: Likewise.
10791         * modules/unicase/u16-is-cased: Likewise.
10792         * modules/unicase/u16-is-casefolded: Likewise.
10793         * modules/unicase/u16-is-lowercase: Likewise.
10794         * modules/unicase/u16-is-titlecase: Likewise.
10795         * modules/unicase/u16-is-uppercase: Likewise.
10796         * modules/unicase/u16-prefix-context: Likewise.
10797         * modules/unicase/u16-suffix-context: Likewise.
10798         * modules/unicase/u16-tolower: Likewise.
10799         * modules/unicase/u16-totitle: Likewise.
10800         * modules/unicase/u16-toupper: Likewise.
10801         * modules/unicase/u32-casecmp: Likewise.
10802         * modules/unicase/u32-casecoll: Likewise.
10803         * modules/unicase/u32-casefold: Likewise.
10804         * modules/unicase/u32-casexfrm: Likewise.
10805         * modules/unicase/u32-ct-casefold: Likewise.
10806         * modules/unicase/u32-ct-tolower: Likewise.
10807         * modules/unicase/u32-ct-totitle: Likewise.
10808         * modules/unicase/u32-ct-toupper: Likewise.
10809         * modules/unicase/u32-is-cased: Likewise.
10810         * modules/unicase/u32-is-casefolded: Likewise.
10811         * modules/unicase/u32-is-lowercase: Likewise.
10812         * modules/unicase/u32-is-titlecase: Likewise.
10813         * modules/unicase/u32-is-uppercase: Likewise.
10814         * modules/unicase/u32-prefix-context: Likewise.
10815         * modules/unicase/u32-suffix-context: Likewise.
10816         * modules/unicase/u32-tolower: Likewise.
10817         * modules/unicase/u32-totitle: Likewise.
10818         * modules/unicase/u32-toupper: Likewise.
10819         * modules/unicase/ulc-casecmp: Likewise.
10820         * modules/unicase/ulc-casecoll: Likewise.
10821         * modules/unicase/ulc-casexfrm: Likewise.
10822         * modules/uniconv/u8-conv-from-enc: Likewise.
10823         * modules/uniconv/u8-conv-to-enc: Likewise.
10824         * modules/uniconv/u8-strconv-from-enc: Likewise.
10825         * modules/uniconv/u8-strconv-from-locale: Likewise.
10826         * modules/uniconv/u8-strconv-to-enc: Likewise.
10827         * modules/uniconv/u8-strconv-to-locale: Likewise.
10828         * modules/uniconv/u16-conv-from-enc: Likewise.
10829         * modules/uniconv/u16-conv-to-enc: Likewise.
10830         * modules/uniconv/u16-strconv-from-enc: Likewise.
10831         * modules/uniconv/u16-strconv-from-locale: Likewise.
10832         * modules/uniconv/u16-strconv-to-enc: Likewise.
10833         * modules/uniconv/u16-strconv-to-locale: Likewise.
10834         * modules/uniconv/u32-conv-from-enc: Likewise.
10835         * modules/uniconv/u32-conv-to-enc: Likewise.
10836         * modules/uniconv/u32-strconv-from-enc: Likewise.
10837         * modules/uniconv/u32-strconv-from-locale: Likewise.
10838         * modules/uniconv/u32-strconv-to-enc: Likewise.
10839         * modules/uniconv/u32-strconv-to-locale: Likewise.
10840         * modules/unictype/bidicategory-byname: Likewise.
10841         * modules/unictype/bidicategory-name: Likewise.
10842         * modules/unictype/bidicategory-of: Likewise.
10843         * modules/unictype/bidicategory-test: Likewise.
10844         * modules/unictype/block-list: Likewise.
10845         * modules/unictype/block-test: Likewise.
10846         * modules/unictype/category-C: Likewise.
10847         * modules/unictype/category-Cc: Likewise.
10848         * modules/unictype/category-Cf: Likewise.
10849         * modules/unictype/category-Cn: Likewise.
10850         * modules/unictype/category-Co: Likewise.
10851         * modules/unictype/category-Cs: Likewise.
10852         * modules/unictype/category-L: Likewise.
10853         * modules/unictype/category-Ll: Likewise.
10854         * modules/unictype/category-Lm: Likewise.
10855         * modules/unictype/category-Lo: Likewise.
10856         * modules/unictype/category-Lt: Likewise.
10857         * modules/unictype/category-Lu: Likewise.
10858         * modules/unictype/category-M: Likewise.
10859         * modules/unictype/category-Mc: Likewise.
10860         * modules/unictype/category-Me: Likewise.
10861         * modules/unictype/category-Mn: Likewise.
10862         * modules/unictype/category-N: Likewise.
10863         * modules/unictype/category-Nd: Likewise.
10864         * modules/unictype/category-Nl: Likewise.
10865         * modules/unictype/category-No: Likewise.
10866         * modules/unictype/category-P: Likewise.
10867         * modules/unictype/category-Pc: Likewise.
10868         * modules/unictype/category-Pd: Likewise.
10869         * modules/unictype/category-Pe: Likewise.
10870         * modules/unictype/category-Pf: Likewise.
10871         * modules/unictype/category-Pi: Likewise.
10872         * modules/unictype/category-Po: Likewise.
10873         * modules/unictype/category-Ps: Likewise.
10874         * modules/unictype/category-S: Likewise.
10875         * modules/unictype/category-Sc: Likewise.
10876         * modules/unictype/category-Sk: Likewise.
10877         * modules/unictype/category-Sm: Likewise.
10878         * modules/unictype/category-So: Likewise.
10879         * modules/unictype/category-Z: Likewise.
10880         * modules/unictype/category-Zl: Likewise.
10881         * modules/unictype/category-Zp: Likewise.
10882         * modules/unictype/category-Zs: Likewise.
10883         * modules/unictype/category-and: Likewise.
10884         * modules/unictype/category-and-not: Likewise.
10885         * modules/unictype/category-byname: Likewise.
10886         * modules/unictype/category-name: Likewise.
10887         * modules/unictype/category-none: Likewise.
10888         * modules/unictype/category-of: Likewise.
10889         * modules/unictype/category-or: Likewise.
10890         * modules/unictype/category-test: Likewise.
10891         * modules/unictype/combining-class: Likewise.
10892         * modules/unictype/ctype-alnum: Likewise.
10893         * modules/unictype/ctype-alpha: Likewise.
10894         * modules/unictype/ctype-blank: Likewise.
10895         * modules/unictype/ctype-cntrl: Likewise.
10896         * modules/unictype/ctype-digit: Likewise.
10897         * modules/unictype/ctype-graph: Likewise.
10898         * modules/unictype/ctype-lower: Likewise.
10899         * modules/unictype/ctype-print: Likewise.
10900         * modules/unictype/ctype-punct: Likewise.
10901         * modules/unictype/ctype-space: Likewise.
10902         * modules/unictype/ctype-upper: Likewise.
10903         * modules/unictype/ctype-xdigit: Likewise.
10904         * modules/unictype/decimal-digit: Likewise.
10905         * modules/unictype/digit: Likewise.
10906         * modules/unictype/mirror: Likewise.
10907         * modules/unictype/numeric: Likewise.
10908         * modules/unictype/property-alphabetic: Likewise.
10909         * modules/unictype/property-ascii-hex-digit: Likewise.
10910         * modules/unictype/property-bidi-arabic-digit: Likewise.
10911         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10912         * modules/unictype/property-bidi-block-separator: Likewise.
10913         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10914         * modules/unictype/property-bidi-common-separator: Likewise.
10915         * modules/unictype/property-bidi-control: Likewise.
10916         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10917         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10918         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10919         * modules/unictype/property-bidi-european-digit: Likewise.
10920         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10921         * modules/unictype/property-bidi-left-to-right: Likewise.
10922         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10923         * modules/unictype/property-bidi-other-neutral: Likewise.
10924         * modules/unictype/property-bidi-pdf: Likewise.
10925         * modules/unictype/property-bidi-segment-separator: Likewise.
10926         * modules/unictype/property-bidi-whitespace: Likewise.
10927         * modules/unictype/property-byname: Likewise.
10928         * modules/unictype/property-combining: Likewise.
10929         * modules/unictype/property-composite: Likewise.
10930         * modules/unictype/property-currency-symbol: Likewise.
10931         * modules/unictype/property-dash: Likewise.
10932         * modules/unictype/property-decimal-digit: Likewise.
10933         * modules/unictype/property-default-ignorable-code-point: Likewise.
10934         * modules/unictype/property-deprecated: Likewise.
10935         * modules/unictype/property-diacritic: Likewise.
10936         * modules/unictype/property-extender: Likewise.
10937         * modules/unictype/property-format-control: Likewise.
10938         * modules/unictype/property-grapheme-base: Likewise.
10939         * modules/unictype/property-grapheme-extend: Likewise.
10940         * modules/unictype/property-grapheme-link: Likewise.
10941         * modules/unictype/property-hex-digit: Likewise.
10942         * modules/unictype/property-hyphen: Likewise.
10943         * modules/unictype/property-id-continue: Likewise.
10944         * modules/unictype/property-id-start: Likewise.
10945         * modules/unictype/property-ideographic: Likewise.
10946         * modules/unictype/property-ids-binary-operator: Likewise.
10947         * modules/unictype/property-ids-trinary-operator: Likewise.
10948         * modules/unictype/property-ignorable-control: Likewise.
10949         * modules/unictype/property-iso-control: Likewise.
10950         * modules/unictype/property-join-control: Likewise.
10951         * modules/unictype/property-left-of-pair: Likewise.
10952         * modules/unictype/property-line-separator: Likewise.
10953         * modules/unictype/property-logical-order-exception: Likewise.
10954         * modules/unictype/property-lowercase: Likewise.
10955         * modules/unictype/property-math: Likewise.
10956         * modules/unictype/property-non-break: Likewise.
10957         * modules/unictype/property-not-a-character: Likewise.
10958         * modules/unictype/property-numeric: Likewise.
10959         * modules/unictype/property-other-alphabetic: Likewise.
10960         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10961         * modules/unictype/property-other-grapheme-extend: Likewise.
10962         * modules/unictype/property-other-id-continue: Likewise.
10963         * modules/unictype/property-other-id-start: Likewise.
10964         * modules/unictype/property-other-lowercase: Likewise.
10965         * modules/unictype/property-other-math: Likewise.
10966         * modules/unictype/property-other-uppercase: Likewise.
10967         * modules/unictype/property-paired-punctuation: Likewise.
10968         * modules/unictype/property-paragraph-separator: Likewise.
10969         * modules/unictype/property-pattern-syntax: Likewise.
10970         * modules/unictype/property-pattern-white-space: Likewise.
10971         * modules/unictype/property-private-use: Likewise.
10972         * modules/unictype/property-punctuation: Likewise.
10973         * modules/unictype/property-quotation-mark: Likewise.
10974         * modules/unictype/property-radical: Likewise.
10975         * modules/unictype/property-sentence-terminal: Likewise.
10976         * modules/unictype/property-soft-dotted: Likewise.
10977         * modules/unictype/property-space: Likewise.
10978         * modules/unictype/property-terminal-punctuation: Likewise.
10979         * modules/unictype/property-test: Likewise.
10980         * modules/unictype/property-titlecase: Likewise.
10981         * modules/unictype/property-unassigned-code-value: Likewise.
10982         * modules/unictype/property-unified-ideograph: Likewise.
10983         * modules/unictype/property-uppercase: Likewise.
10984         * modules/unictype/property-variation-selector: Likewise.
10985         * modules/unictype/property-white-space: Likewise.
10986         * modules/unictype/property-xid-continue: Likewise.
10987         * modules/unictype/property-xid-start: Likewise.
10988         * modules/unictype/property-zero-width: Likewise.
10989         * modules/unictype/scripts: Likewise.
10990         * modules/unictype/syntax-c-ident: Likewise.
10991         * modules/unictype/syntax-c-whitespace: Likewise.
10992         * modules/unictype/syntax-java-ident: Likewise.
10993         * modules/unictype/syntax-java-whitespace: Likewise.
10994         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10995         * modules/unilbrk/u8-width-linebreaks: Likewise.
10996         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10997         * modules/unilbrk/u16-width-linebreaks: Likewise.
10998         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10999         * modules/unilbrk/u32-width-linebreaks: Likewise.
11000         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11001         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11002         * modules/uniname/uniname: Likewise.
11003         * modules/uninorm/canonical-decomposition: Likewise.
11004         * modules/uninorm/composition: Likewise.
11005         * modules/uninorm/decomposing-form: Likewise.
11006         * modules/uninorm/decomposition: Likewise.
11007         * modules/uninorm/filter: Likewise.
11008         * modules/uninorm/nfc: Likewise.
11009         * modules/uninorm/nfd: Likewise.
11010         * modules/uninorm/nfkc: Likewise.
11011         * modules/uninorm/nfkd: Likewise.
11012         * modules/uninorm/u8-normalize: Likewise.
11013         * modules/uninorm/u8-normcmp: Likewise.
11014         * modules/uninorm/u8-normcoll: Likewise.
11015         * modules/uninorm/u8-normxfrm: Likewise.
11016         * modules/uninorm/u16-normalize: Likewise.
11017         * modules/uninorm/u16-normcmp: Likewise.
11018         * modules/uninorm/u16-normcoll: Likewise.
11019         * modules/uninorm/u16-normxfrm: Likewise.
11020         * modules/uninorm/u32-normalize: Likewise.
11021         * modules/uninorm/u32-normcmp: Likewise.
11022         * modules/uninorm/u32-normcoll: Likewise.
11023         * modules/uninorm/u32-normxfrm: Likewise.
11024         * modules/unistdio/u8-asnprintf: Likewise.
11025         * modules/unistdio/u8-asprintf: Likewise.
11026         * modules/unistdio/u8-snprintf: Likewise.
11027         * modules/unistdio/u8-sprintf: Likewise.
11028         * modules/unistdio/u8-u8-asnprintf: Likewise.
11029         * modules/unistdio/u8-u8-asprintf: Likewise.
11030         * modules/unistdio/u8-u8-snprintf: Likewise.
11031         * modules/unistdio/u8-u8-sprintf: Likewise.
11032         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11033         * modules/unistdio/u8-u8-vasprintf: Likewise.
11034         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11035         * modules/unistdio/u8-u8-vsprintf: Likewise.
11036         * modules/unistdio/u8-vasnprintf: Likewise.
11037         * modules/unistdio/u8-vasprintf: Likewise.
11038         * modules/unistdio/u8-vsnprintf: Likewise.
11039         * modules/unistdio/u8-vsprintf: Likewise.
11040         * modules/unistdio/u16-asnprintf: Likewise.
11041         * modules/unistdio/u16-asprintf: Likewise.
11042         * modules/unistdio/u16-snprintf: Likewise.
11043         * modules/unistdio/u16-sprintf: Likewise.
11044         * modules/unistdio/u16-u16-asnprintf: Likewise.
11045         * modules/unistdio/u16-u16-asprintf: Likewise.
11046         * modules/unistdio/u16-u16-snprintf: Likewise.
11047         * modules/unistdio/u16-u16-sprintf: Likewise.
11048         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11049         * modules/unistdio/u16-u16-vasprintf: Likewise.
11050         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11051         * modules/unistdio/u16-u16-vsprintf: Likewise.
11052         * modules/unistdio/u16-vasnprintf: Likewise.
11053         * modules/unistdio/u16-vasprintf: Likewise.
11054         * modules/unistdio/u16-vsnprintf: Likewise.
11055         * modules/unistdio/u16-vsprintf: Likewise.
11056         * modules/unistdio/u32-asnprintf: Likewise.
11057         * modules/unistdio/u32-asprintf: Likewise.
11058         * modules/unistdio/u32-snprintf: Likewise.
11059         * modules/unistdio/u32-sprintf: Likewise.
11060         * modules/unistdio/u32-u32-asnprintf: Likewise.
11061         * modules/unistdio/u32-u32-asprintf: Likewise.
11062         * modules/unistdio/u32-u32-snprintf: Likewise.
11063         * modules/unistdio/u32-u32-sprintf: Likewise.
11064         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11065         * modules/unistdio/u32-u32-vasprintf: Likewise.
11066         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11067         * modules/unistdio/u32-u32-vsprintf: Likewise.
11068         * modules/unistdio/u32-vasnprintf: Likewise.
11069         * modules/unistdio/u32-vasprintf: Likewise.
11070         * modules/unistdio/u32-vsnprintf: Likewise.
11071         * modules/unistdio/u32-vsprintf: Likewise.
11072         * modules/unistdio/ulc-asnprintf: Likewise.
11073         * modules/unistdio/ulc-asprintf: Likewise.
11074         * modules/unistdio/ulc-fprintf: Likewise.
11075         * modules/unistdio/ulc-snprintf: Likewise.
11076         * modules/unistdio/ulc-sprintf: Likewise.
11077         * modules/unistdio/ulc-vasnprintf: Likewise.
11078         * modules/unistdio/ulc-vasprintf: Likewise.
11079         * modules/unistdio/ulc-vfprintf: Likewise.
11080         * modules/unistdio/ulc-vsnprintf: Likewise.
11081         * modules/unistdio/ulc-vsprintf: Likewise.
11082         * modules/unistr/u8-check: Likewise.
11083         * modules/unistr/u8-chr: Likewise.
11084         * modules/unistr/u8-cmp: Likewise.
11085         * modules/unistr/u8-cmp2: Likewise.
11086         * modules/unistr/u8-cpy: Likewise.
11087         * modules/unistr/u8-cpy-alloc: Likewise.
11088         * modules/unistr/u8-endswith: Likewise.
11089         * modules/unistr/u8-mblen: Likewise.
11090         * modules/unistr/u8-mbsnlen: Likewise.
11091         * modules/unistr/u8-mbtouc: Likewise.
11092         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11093         * modules/unistr/u8-mbtoucr: Likewise.
11094         * modules/unistr/u8-move: Likewise.
11095         * modules/unistr/u8-next: Likewise.
11096         * modules/unistr/u8-prev: Likewise.
11097         * modules/unistr/u8-set: Likewise.
11098         * modules/unistr/u8-startswith: Likewise.
11099         * modules/unistr/u8-stpcpy: Likewise.
11100         * modules/unistr/u8-stpncpy: Likewise.
11101         * modules/unistr/u8-strcat: Likewise.
11102         * modules/unistr/u8-strchr: Likewise.
11103         * modules/unistr/u8-strcmp: Likewise.
11104         * modules/unistr/u8-strcoll: Likewise.
11105         * modules/unistr/u8-strcpy: Likewise.
11106         * modules/unistr/u8-strcspn: Likewise.
11107         * modules/unistr/u8-strdup: Likewise.
11108         * modules/unistr/u8-strlen: Likewise.
11109         * modules/unistr/u8-strmblen: Likewise.
11110         * modules/unistr/u8-strmbtouc: Likewise.
11111         * modules/unistr/u8-strncat: Likewise.
11112         * modules/unistr/u8-strncmp: Likewise.
11113         * modules/unistr/u8-strncpy: Likewise.
11114         * modules/unistr/u8-strnlen: Likewise.
11115         * modules/unistr/u8-strpbrk: Likewise.
11116         * modules/unistr/u8-strrchr: Likewise.
11117         * modules/unistr/u8-strspn: Likewise.
11118         * modules/unistr/u8-strstr: Likewise.
11119         * modules/unistr/u8-strtok: Likewise.
11120         * modules/unistr/u8-to-u16: Likewise.
11121         * modules/unistr/u8-to-u32: Likewise.
11122         * modules/unistr/u8-uctomb: Likewise.
11123         * modules/unistr/u16-check: Likewise.
11124         * modules/unistr/u16-chr: Likewise.
11125         * modules/unistr/u16-cmp: Likewise.
11126         * modules/unistr/u16-cmp2: Likewise.
11127         * modules/unistr/u16-cpy: Likewise.
11128         * modules/unistr/u16-cpy-alloc: Likewise.
11129         * modules/unistr/u16-endswith: Likewise.
11130         * modules/unistr/u16-mblen: Likewise.
11131         * modules/unistr/u16-mbsnlen: Likewise.
11132         * modules/unistr/u16-mbtouc: Likewise.
11133         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11134         * modules/unistr/u16-mbtoucr: Likewise.
11135         * modules/unistr/u16-move: Likewise.
11136         * modules/unistr/u16-next: Likewise.
11137         * modules/unistr/u16-prev: Likewise.
11138         * modules/unistr/u16-set: Likewise.
11139         * modules/unistr/u16-startswith: Likewise.
11140         * modules/unistr/u16-stpcpy: Likewise.
11141         * modules/unistr/u16-stpncpy: Likewise.
11142         * modules/unistr/u16-strcat: Likewise.
11143         * modules/unistr/u16-strchr: Likewise.
11144         * modules/unistr/u16-strcmp: Likewise.
11145         * modules/unistr/u16-strcoll: Likewise.
11146         * modules/unistr/u16-strcpy: Likewise.
11147         * modules/unistr/u16-strcspn: Likewise.
11148         * modules/unistr/u16-strdup: Likewise.
11149         * modules/unistr/u16-strlen: Likewise.
11150         * modules/unistr/u16-strmblen: Likewise.
11151         * modules/unistr/u16-strmbtouc: Likewise.
11152         * modules/unistr/u16-strncat: Likewise.
11153         * modules/unistr/u16-strncmp: Likewise.
11154         * modules/unistr/u16-strncpy: Likewise.
11155         * modules/unistr/u16-strnlen: Likewise.
11156         * modules/unistr/u16-strpbrk: Likewise.
11157         * modules/unistr/u16-strrchr: Likewise.
11158         * modules/unistr/u16-strspn: Likewise.
11159         * modules/unistr/u16-strstr: Likewise.
11160         * modules/unistr/u16-strtok: Likewise.
11161         * modules/unistr/u16-to-u32: Likewise.
11162         * modules/unistr/u16-to-u8: Likewise.
11163         * modules/unistr/u16-uctomb: Likewise.
11164         * modules/unistr/u32-check: Likewise.
11165         * modules/unistr/u32-chr: Likewise.
11166         * modules/unistr/u32-cmp: Likewise.
11167         * modules/unistr/u32-cmp2: Likewise.
11168         * modules/unistr/u32-cpy: Likewise.
11169         * modules/unistr/u32-cpy-alloc: Likewise.
11170         * modules/unistr/u32-endswith: Likewise.
11171         * modules/unistr/u32-mblen: Likewise.
11172         * modules/unistr/u32-mbsnlen: Likewise.
11173         * modules/unistr/u32-mbtouc: Likewise.
11174         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11175         * modules/unistr/u32-mbtoucr: Likewise.
11176         * modules/unistr/u32-move: Likewise.
11177         * modules/unistr/u32-next: Likewise.
11178         * modules/unistr/u32-prev: Likewise.
11179         * modules/unistr/u32-set: Likewise.
11180         * modules/unistr/u32-startswith: Likewise.
11181         * modules/unistr/u32-stpcpy: Likewise.
11182         * modules/unistr/u32-stpncpy: Likewise.
11183         * modules/unistr/u32-strcat: Likewise.
11184         * modules/unistr/u32-strchr: Likewise.
11185         * modules/unistr/u32-strcmp: Likewise.
11186         * modules/unistr/u32-strcoll: Likewise.
11187         * modules/unistr/u32-strcpy: Likewise.
11188         * modules/unistr/u32-strcspn: Likewise.
11189         * modules/unistr/u32-strdup: Likewise.
11190         * modules/unistr/u32-strlen: Likewise.
11191         * modules/unistr/u32-strmblen: Likewise.
11192         * modules/unistr/u32-strmbtouc: Likewise.
11193         * modules/unistr/u32-strncat: Likewise.
11194         * modules/unistr/u32-strncmp: Likewise.
11195         * modules/unistr/u32-strncpy: Likewise.
11196         * modules/unistr/u32-strnlen: Likewise.
11197         * modules/unistr/u32-strpbrk: Likewise.
11198         * modules/unistr/u32-strrchr: Likewise.
11199         * modules/unistr/u32-strspn: Likewise.
11200         * modules/unistr/u32-strstr: Likewise.
11201         * modules/unistr/u32-strtok: Likewise.
11202         * modules/unistr/u32-to-u16: Likewise.
11203         * modules/unistr/u32-to-u8: Likewise.
11204         * modules/unistr/u32-uctomb: Likewise.
11205         * modules/uniwbrk/u8-wordbreaks: Likewise.
11206         * modules/uniwbrk/u16-wordbreaks: Likewise.
11207         * modules/uniwbrk/u32-wordbreaks: Likewise.
11208         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11209         * modules/uniwbrk/wordbreak-property: Likewise.
11210         * modules/uniwidth/u8-strwidth: Likewise.
11211         * modules/uniwidth/u8-width: Likewise.
11212         * modules/uniwidth/u16-strwidth: Likewise.
11213         * modules/uniwidth/u16-width: Likewise.
11214         * modules/uniwidth/u32-strwidth: Likewise.
11215         * modules/uniwidth/u32-width: Likewise.
11216         * modules/uniwidth/width: Likewise.
11217         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11218         with $(LIBUNISTRING).
11219         * modules/unicase/ignorable-tests: Likewise.
11220         * modules/unicase/locale-language-tests: Likewise.
11221         * modules/unicase/tolower-tests: Likewise.
11222         * modules/unicase/totitle-tests: Likewise.
11223         * modules/unicase/toupper-tests: Likewise.
11224         * modules/unicase/u8-casecmp-tests: Likewise.
11225         * modules/unicase/u8-casecoll-tests: Likewise.
11226         * modules/unicase/u8-casefold-tests: Likewise.
11227         * modules/unicase/u8-is-cased-tests: Likewise.
11228         * modules/unicase/u8-is-casefolded-tests: Likewise.
11229         * modules/unicase/u8-is-lowercase-tests: Likewise.
11230         * modules/unicase/u8-is-titlecase-tests: Likewise.
11231         * modules/unicase/u8-is-uppercase-tests: Likewise.
11232         * modules/unicase/u8-tolower-tests: Likewise.
11233         * modules/unicase/u8-totitle-tests: Likewise.
11234         * modules/unicase/u8-toupper-tests: Likewise.
11235         * modules/unicase/u16-casecmp-tests: Likewise.
11236         * modules/unicase/u16-casecoll-tests: Likewise.
11237         * modules/unicase/u16-casefold-tests: Likewise.
11238         * modules/unicase/u16-is-cased-tests: Likewise.
11239         * modules/unicase/u16-is-casefolded-tests: Likewise.
11240         * modules/unicase/u16-is-lowercase-tests: Likewise.
11241         * modules/unicase/u16-is-titlecase-tests: Likewise.
11242         * modules/unicase/u16-is-uppercase-tests: Likewise.
11243         * modules/unicase/u16-tolower-tests: Likewise.
11244         * modules/unicase/u16-totitle-tests: Likewise.
11245         * modules/unicase/u16-toupper-tests: Likewise.
11246         * modules/unicase/u32-casecmp-tests: Likewise.
11247         * modules/unicase/u32-casecoll-tests: Likewise.
11248         * modules/unicase/u32-casefold-tests: Likewise.
11249         * modules/unicase/u32-is-cased-tests: Likewise.
11250         * modules/unicase/u32-is-casefolded-tests: Likewise.
11251         * modules/unicase/u32-is-lowercase-tests: Likewise.
11252         * modules/unicase/u32-is-titlecase-tests: Likewise.
11253         * modules/unicase/u32-is-uppercase-tests: Likewise.
11254         * modules/unicase/u32-tolower-tests: Likewise.
11255         * modules/unicase/u32-totitle-tests: Likewise.
11256         * modules/unicase/u32-toupper-tests: Likewise.
11257         * modules/unicase/ulc-casecmp-tests: Likewise.
11258         * modules/unicase/ulc-casecoll-tests: Likewise.
11259         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11260         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11261         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11262         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11263         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11264         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11265         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11266         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11267         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11268         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11269         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11270         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11271         * modules/unictype/bidicategory-byname-tests: Likewise.
11272         * modules/unictype/bidicategory-name-tests: Likewise.
11273         * modules/unictype/bidicategory-of-tests: Likewise.
11274         * modules/unictype/bidicategory-test-tests: Likewise.
11275         * modules/unictype/block-list-tests: Likewise.
11276         * modules/unictype/block-of-tests: Likewise.
11277         * modules/unictype/block-test-tests: Likewise.
11278         * modules/unictype/category-C-tests: Likewise.
11279         * modules/unictype/category-Cc-tests: Likewise.
11280         * modules/unictype/category-Cf-tests: Likewise.
11281         * modules/unictype/category-Cn-tests: Likewise.
11282         * modules/unictype/category-Co-tests: Likewise.
11283         * modules/unictype/category-Cs-tests: Likewise.
11284         * modules/unictype/category-L-tests: Likewise.
11285         * modules/unictype/category-Ll-tests: Likewise.
11286         * modules/unictype/category-Lm-tests: Likewise.
11287         * modules/unictype/category-Lo-tests: Likewise.
11288         * modules/unictype/category-Lt-tests: Likewise.
11289         * modules/unictype/category-Lu-tests: Likewise.
11290         * modules/unictype/category-M-tests: Likewise.
11291         * modules/unictype/category-Mc-tests: Likewise.
11292         * modules/unictype/category-Me-tests: Likewise.
11293         * modules/unictype/category-Mn-tests: Likewise.
11294         * modules/unictype/category-N-tests: Likewise.
11295         * modules/unictype/category-Nd-tests: Likewise.
11296         * modules/unictype/category-Nl-tests: Likewise.
11297         * modules/unictype/category-No-tests: Likewise.
11298         * modules/unictype/category-P-tests: Likewise.
11299         * modules/unictype/category-Pc-tests: Likewise.
11300         * modules/unictype/category-Pd-tests: Likewise.
11301         * modules/unictype/category-Pe-tests: Likewise.
11302         * modules/unictype/category-Pf-tests: Likewise.
11303         * modules/unictype/category-Pi-tests: Likewise.
11304         * modules/unictype/category-Po-tests: Likewise.
11305         * modules/unictype/category-Ps-tests: Likewise.
11306         * modules/unictype/category-S-tests: Likewise.
11307         * modules/unictype/category-Sc-tests: Likewise.
11308         * modules/unictype/category-Sk-tests: Likewise.
11309         * modules/unictype/category-Sm-tests: Likewise.
11310         * modules/unictype/category-So-tests: Likewise.
11311         * modules/unictype/category-Z-tests: Likewise.
11312         * modules/unictype/category-Zl-tests: Likewise.
11313         * modules/unictype/category-Zp-tests: Likewise.
11314         * modules/unictype/category-Zs-tests: Likewise.
11315         * modules/unictype/category-and-not-tests: Likewise.
11316         * modules/unictype/category-and-tests: Likewise.
11317         * modules/unictype/category-byname-tests: Likewise.
11318         * modules/unictype/category-name-tests: Likewise.
11319         * modules/unictype/category-none-tests: Likewise.
11320         * modules/unictype/category-of-tests: Likewise.
11321         * modules/unictype/category-or-tests: Likewise.
11322         * modules/unictype/category-test-withtable-tests: Likewise.
11323         * modules/unictype/combining-class-tests: Likewise.
11324         * modules/unictype/ctype-alnum-tests: Likewise.
11325         * modules/unictype/ctype-alpha-tests: Likewise.
11326         * modules/unictype/ctype-blank-tests: Likewise.
11327         * modules/unictype/ctype-cntrl-tests: Likewise.
11328         * modules/unictype/ctype-digit-tests: Likewise.
11329         * modules/unictype/ctype-graph-tests: Likewise.
11330         * modules/unictype/ctype-lower-tests: Likewise.
11331         * modules/unictype/ctype-print-tests: Likewise.
11332         * modules/unictype/ctype-punct-tests: Likewise.
11333         * modules/unictype/ctype-space-tests: Likewise.
11334         * modules/unictype/ctype-upper-tests: Likewise.
11335         * modules/unictype/ctype-xdigit-tests: Likewise.
11336         * modules/unictype/decimal-digit-tests: Likewise.
11337         * modules/unictype/digit-tests: Likewise.
11338         * modules/unictype/mirror-tests: Likewise.
11339         * modules/unictype/numeric-tests: Likewise.
11340         * modules/unictype/property-alphabetic-tests: Likewise.
11341         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11342         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11343         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11344         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11345         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11346         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11347         * modules/unictype/property-bidi-control-tests: Likewise.
11348         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11349         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11350         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11351         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11352         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11353         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11354         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11355         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11356         * modules/unictype/property-bidi-pdf-tests: Likewise.
11357         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11358         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11359         * modules/unictype/property-byname-tests: Likewise.
11360         * modules/unictype/property-combining-tests: Likewise.
11361         * modules/unictype/property-composite-tests: Likewise.
11362         * modules/unictype/property-currency-symbol-tests: Likewise.
11363         * modules/unictype/property-dash-tests: Likewise.
11364         * modules/unictype/property-decimal-digit-tests: Likewise.
11365         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11366         * modules/unictype/property-deprecated-tests: Likewise.
11367         * modules/unictype/property-diacritic-tests: Likewise.
11368         * modules/unictype/property-extender-tests: Likewise.
11369         * modules/unictype/property-format-control-tests: Likewise.
11370         * modules/unictype/property-grapheme-base-tests: Likewise.
11371         * modules/unictype/property-grapheme-extend-tests: Likewise.
11372         * modules/unictype/property-grapheme-link-tests: Likewise.
11373         * modules/unictype/property-hex-digit-tests: Likewise.
11374         * modules/unictype/property-hyphen-tests: Likewise.
11375         * modules/unictype/property-id-continue-tests: Likewise.
11376         * modules/unictype/property-id-start-tests: Likewise.
11377         * modules/unictype/property-ideographic-tests: Likewise.
11378         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11379         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11380         * modules/unictype/property-ignorable-control-tests: Likewise.
11381         * modules/unictype/property-iso-control-tests: Likewise.
11382         * modules/unictype/property-join-control-tests: Likewise.
11383         * modules/unictype/property-left-of-pair-tests: Likewise.
11384         * modules/unictype/property-line-separator-tests: Likewise.
11385         * modules/unictype/property-logical-order-exception-tests: Likewise.
11386         * modules/unictype/property-lowercase-tests: Likewise.
11387         * modules/unictype/property-math-tests: Likewise.
11388         * modules/unictype/property-non-break-tests: Likewise.
11389         * modules/unictype/property-not-a-character-tests: Likewise.
11390         * modules/unictype/property-numeric-tests: Likewise.
11391         * modules/unictype/property-other-alphabetic-tests: Likewise.
11392         * modules/unictype/property-other-default-ignorable-code-point-tests:
11393         Likewise.
11394         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11395         * modules/unictype/property-other-id-continue-tests: Likewise.
11396         * modules/unictype/property-other-id-start-tests: Likewise.
11397         * modules/unictype/property-other-lowercase-tests: Likewise.
11398         * modules/unictype/property-other-math-tests: Likewise.
11399         * modules/unictype/property-other-uppercase-tests: Likewise.
11400         * modules/unictype/property-paired-punctuation-tests: Likewise.
11401         * modules/unictype/property-paragraph-separator-tests: Likewise.
11402         * modules/unictype/property-pattern-syntax-tests: Likewise.
11403         * modules/unictype/property-pattern-white-space-tests: Likewise.
11404         * modules/unictype/property-private-use-tests: Likewise.
11405         * modules/unictype/property-punctuation-tests: Likewise.
11406         * modules/unictype/property-quotation-mark-tests: Likewise.
11407         * modules/unictype/property-radical-tests: Likewise.
11408         * modules/unictype/property-sentence-terminal-tests: Likewise.
11409         * modules/unictype/property-soft-dotted-tests: Likewise.
11410         * modules/unictype/property-space-tests: Likewise.
11411         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11412         * modules/unictype/property-test-tests: Likewise.
11413         * modules/unictype/property-titlecase-tests: Likewise.
11414         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11415         * modules/unictype/property-unified-ideograph-tests: Likewise.
11416         * modules/unictype/property-uppercase-tests: Likewise.
11417         * modules/unictype/property-variation-selector-tests: Likewise.
11418         * modules/unictype/property-white-space-tests: Likewise.
11419         * modules/unictype/property-xid-continue-tests: Likewise.
11420         * modules/unictype/property-xid-start-tests: Likewise.
11421         * modules/unictype/property-zero-width-tests: Likewise.
11422         * modules/unictype/scripts-tests: Likewise.
11423         * modules/unictype/syntax-c-ident-tests: Likewise.
11424         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11425         * modules/unictype/syntax-java-ident-tests: Likewise.
11426         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11427         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11428         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11429         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11430         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11431         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11432         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11433         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11434         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11435         * modules/uniname/uniname-tests: Likewise.
11436         * modules/uninorm/canonical-decomposition-tests: Likewise.
11437         * modules/uninorm/compat-decomposition-tests: Likewise.
11438         * modules/uninorm/composition-tests: Likewise.
11439         * modules/uninorm/decomposing-form-tests: Likewise.
11440         * modules/uninorm/decomposition-tests: Likewise.
11441         * modules/uninorm/filter-tests: Likewise.
11442         * modules/uninorm/nfc-tests: Likewise.
11443         * modules/uninorm/nfd-tests: Likewise.
11444         * modules/uninorm/nfkc-tests: Likewise.
11445         * modules/uninorm/nfkd-tests: Likewise.
11446         * modules/uninorm/u8-normcmp-tests: Likewise.
11447         * modules/uninorm/u8-normcoll-tests: Likewise.
11448         * modules/uninorm/u16-normcmp-tests: Likewise.
11449         * modules/uninorm/u16-normcoll-tests: Likewise.
11450         * modules/uninorm/u32-normcmp-tests: Likewise.
11451         * modules/uninorm/u32-normcoll-tests: Likewise.
11452         * modules/unistdio/u8-asnprintf-tests: Likewise.
11453         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11454         * modules/unistdio/u8-vasprintf-tests: Likewise.
11455         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11456         * modules/unistdio/u8-vsprintf-tests: Likewise.
11457         * modules/unistdio/u16-asnprintf-tests: Likewise.
11458         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11459         * modules/unistdio/u16-vasprintf-tests: Likewise.
11460         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11461         * modules/unistdio/u16-vsprintf-tests: Likewise.
11462         * modules/unistdio/u32-asnprintf-tests: Likewise.
11463         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11464         * modules/unistdio/u32-vasprintf-tests: Likewise.
11465         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11466         * modules/unistdio/u32-vsprintf-tests: Likewise.
11467         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11468         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11469         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11470         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11471         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11472         * modules/unistr/u8-check-tests: Likewise.
11473         * modules/unistr/u8-chr-tests: Likewise.
11474         * modules/unistr/u8-cmp-tests: Likewise.
11475         * modules/unistr/u8-cmp2-tests: Likewise.
11476         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11477         * modules/unistr/u8-cpy-tests: Likewise.
11478         * modules/unistr/u8-mblen-tests: Likewise.
11479         * modules/unistr/u8-mbsnlen-tests: Likewise.
11480         * modules/unistr/u8-mbtouc-tests: Likewise.
11481         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11482         * modules/unistr/u8-mbtoucr-tests: Likewise.
11483         * modules/unistr/u8-move-tests: Likewise.
11484         * modules/unistr/u8-next-tests: Likewise.
11485         * modules/unistr/u8-prev-tests: Likewise.
11486         * modules/unistr/u8-set-tests: Likewise.
11487         * modules/unistr/u8-stpcpy-tests: Likewise.
11488         * modules/unistr/u8-stpncpy-tests: Likewise.
11489         * modules/unistr/u8-strcat-tests: Likewise.
11490         * modules/unistr/u8-strcmp-tests: Likewise.
11491         * modules/unistr/u8-strcoll-tests: Likewise.
11492         * modules/unistr/u8-strcpy-tests: Likewise.
11493         * modules/unistr/u8-strdup-tests: Likewise.
11494         * modules/unistr/u8-strlen-tests: Likewise.
11495         * modules/unistr/u8-strmblen-tests: Likewise.
11496         * modules/unistr/u8-strmbtouc-tests: Likewise.
11497         * modules/unistr/u8-strncat-tests: Likewise.
11498         * modules/unistr/u8-strncmp-tests: Likewise.
11499         * modules/unistr/u8-strncpy-tests: Likewise.
11500         * modules/unistr/u8-strnlen-tests: Likewise.
11501         * modules/unistr/u8-to-u16-tests: Likewise.
11502         * modules/unistr/u8-to-u32-tests: Likewise.
11503         * modules/unistr/u8-uctomb-tests: Likewise.
11504         * modules/unistr/u16-check-tests: Likewise.
11505         * modules/unistr/u16-chr-tests: Likewise.
11506         * modules/unistr/u16-cmp-tests: Likewise.
11507         * modules/unistr/u16-cmp2-tests: Likewise.
11508         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11509         * modules/unistr/u16-cpy-tests: Likewise.
11510         * modules/unistr/u16-mblen-tests: Likewise.
11511         * modules/unistr/u16-mbsnlen-tests: Likewise.
11512         * modules/unistr/u16-mbtouc-tests: Likewise.
11513         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11514         * modules/unistr/u16-mbtoucr-tests: Likewise.
11515         * modules/unistr/u16-move-tests: Likewise.
11516         * modules/unistr/u16-next-tests: Likewise.
11517         * modules/unistr/u16-prev-tests: Likewise.
11518         * modules/unistr/u16-set-tests: Likewise.
11519         * modules/unistr/u16-stpcpy-tests: Likewise.
11520         * modules/unistr/u16-stpncpy-tests: Likewise.
11521         * modules/unistr/u16-strcat-tests: Likewise.
11522         * modules/unistr/u16-strcmp-tests: Likewise.
11523         * modules/unistr/u16-strcoll-tests: Likewise.
11524         * modules/unistr/u16-strcpy-tests: Likewise.
11525         * modules/unistr/u16-strdup-tests: Likewise.
11526         * modules/unistr/u16-strlen-tests: Likewise.
11527         * modules/unistr/u16-strmblen-tests: Likewise.
11528         * modules/unistr/u16-strmbtouc-tests: Likewise.
11529         * modules/unistr/u16-strncat-tests: Likewise.
11530         * modules/unistr/u16-strncmp-tests: Likewise.
11531         * modules/unistr/u16-strncpy-tests: Likewise.
11532         * modules/unistr/u16-strnlen-tests: Likewise.
11533         * modules/unistr/u16-to-u32-tests: Likewise.
11534         * modules/unistr/u16-to-u8-tests: Likewise.
11535         * modules/unistr/u16-uctomb-tests: Likewise.
11536         * modules/unistr/u32-check-tests: Likewise.
11537         * modules/unistr/u32-chr-tests: Likewise.
11538         * modules/unistr/u32-cmp-tests: Likewise.
11539         * modules/unistr/u32-cmp2-tests: Likewise.
11540         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11541         * modules/unistr/u32-cpy-tests: Likewise.
11542         * modules/unistr/u32-mblen-tests: Likewise.
11543         * modules/unistr/u32-mbsnlen-tests: Likewise.
11544         * modules/unistr/u32-mbtouc-tests: Likewise.
11545         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11546         * modules/unistr/u32-mbtoucr-tests: Likewise.
11547         * modules/unistr/u32-move-tests: Likewise.
11548         * modules/unistr/u32-next-tests: Likewise.
11549         * modules/unistr/u32-prev-tests: Likewise.
11550         * modules/unistr/u32-set-tests: Likewise.
11551         * modules/unistr/u32-stpcpy-tests: Likewise.
11552         * modules/unistr/u32-stpncpy-tests: Likewise.
11553         * modules/unistr/u32-strcat-tests: Likewise.
11554         * modules/unistr/u32-strcmp-tests: Likewise.
11555         * modules/unistr/u32-strcoll-tests: Likewise.
11556         * modules/unistr/u32-strcpy-tests: Likewise.
11557         * modules/unistr/u32-strdup-tests: Likewise.
11558         * modules/unistr/u32-strlen-tests: Likewise.
11559         * modules/unistr/u32-strmblen-tests: Likewise.
11560         * modules/unistr/u32-strmbtouc-tests: Likewise.
11561         * modules/unistr/u32-strncat-tests: Likewise.
11562         * modules/unistr/u32-strncmp-tests: Likewise.
11563         * modules/unistr/u32-strncpy-tests: Likewise.
11564         * modules/unistr/u32-strnlen-tests: Likewise.
11565         * modules/unistr/u32-to-u16-tests: Likewise.
11566         * modules/unistr/u32-to-u8-tests: Likewise.
11567         * modules/unistr/u32-uctomb-tests: Likewise.
11568         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11569         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11570         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11571         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11572         * modules/uniwidth/u8-strwidth-tests: Likewise.
11573         * modules/uniwidth/u8-width-tests: Likewise.
11574         * modules/uniwidth/u16-strwidth-tests: Likewise.
11575         * modules/uniwidth/u16-width-tests: Likewise.
11576         * modules/uniwidth/u32-strwidth-tests: Likewise.
11577         * modules/uniwidth/u32-width-tests: Likewise.
11578         * modules/uniwidth/width-tests: Likewise.
11579
11580 2010-05-18  Richard Jones  <rjones@redhat.com>
11581
11582         doc: users.txt: list hivex
11583         * users.txt: Add hivex.
11584
11585 2010-05-18  Richard Jones  <rjones@redhat.com>
11586
11587         doc: users.txt: list febootstrap
11588         * users.txt: Add febootstrap.
11589
11590 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11591
11592         bootstrap: fix an error when gnulib is not used as a git submodule
11593         * build-aux/bootstrap (gnulib_path): If its length is zero then
11594         assign "gnulib" to it.
11595         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11596
11597 2010-05-16  Bruno Haible  <bruno@clisp.org>
11598
11599         Avoid autoconf warnings about AM_ICONV.
11600         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11601         2.64.
11602
11603 2010-05-16  Bruno Haible  <bruno@clisp.org>
11604
11605         absolute-header: Make the macro usable in more situations.
11606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11607         from gl_ABSOLUTE_HEADER.
11608         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11609
11610 2010-05-16  James Youngman  <jay@gnu.org>
11611
11612         doc: update users.txt
11613         * users.txt: Add CSSC.
11614
11615 2010-05-16  Jim Meyering  <meyering@redhat.com>
11616
11617         init.sh: fix an error in the previous change; add more comments
11618         * tests/init.sh: Compare exit code in loop against 9, not 2.
11619         Patch by Bruno Haible.
11620         Make the two tests more similar by adding an empty "then" clause.
11621         Add comments.
11622
11623         init.sh: avoid unnecessary shell re-exec
11624         * tests/init.sh: Improve the re-exec-required check to first test the
11625         current shell.  If it passes the test, do not search for a shell that
11626         does pass, and do not re-exec.  This test is particularly contorted to
11627         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11628         of $(...) evokes a syntax error and causes immediate shell exit with
11629         status 2.  Bruno Haible reported that the re-exec made it impossible
11630         to single-step through any init.sh-using script.
11631
11632 2010-05-16  Bruno Haible  <bruno@clisp.org>
11633
11634         Fix collision between gnulib's and libintl's printf replacements.
11635         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11636         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11637         (printf): When using GNU C, map the __printf__ function to rpl_printf
11638         via __asm__. When not using GNU C, define rpl_printf instead of
11639         __printf__.
11640         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11641         commit.
11642         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11643         commit.
11644         * m4/asm-underscore.m4: New file.
11645         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11646         * modules/stdio (Files): Add m4/asm-underscore.m4.
11647         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11648         Reported by Ben Pfaff.
11649
11650 2010-05-16  Bruno Haible  <bruno@clisp.org>
11651
11652         verify: Avoid skipping the test on openSUSE 11.0.
11653         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11654
11655 2010-05-13  Bruno Haible  <bruno@clisp.org>
11656
11657         Avoid useless warnings from G++.
11658         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11659         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11660         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11661
11662 2010-05-11  Jim Meyering  <meyering@redhat.com>
11663
11664         maint.mk: tweak preceding change
11665         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11666         regexps tighter by anchoring at EOL, and make the new group "shy"
11667         for slightly decreased overhead.
11668
11669 2010-05-11  Eric Blake  <eblake@redhat.com>
11670
11671         maint.mk: gnulib doesn't guarantee NSIG
11672         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11673
11674 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11675
11676         test-pwrite.c: Remove unused variable declaration.
11677         * tests/test-pwrite.c (main): Remove read_buf declaration.
11678
11679         Remove useless test-pwrite.sh file.
11680         * tests/test-pwrite.sh: Delete file.
11681         * modules/pwrite-tests: Remove references.
11682         Reported by Bruno Haible.
11683
11684 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11685
11686         init.sh: fix a typo
11687         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11688
11689 2010-05-10  Jim Meyering  <meyering@redhat.com>
11690
11691         maint.mk: avoid using a temporary file in the always-defined-macros check
11692         * top/maint.mk (.re-defmac): Remove rule.
11693         (gl_trap_): Remove definition.
11694         (sc_prohibit_always-defined_macros): Rewrite not to create and
11695         depend on a temporary file.  Instead, depend on GNU grep's ability
11696         to read a list of regular expressions from stdin when given "-f -".
11697
11698 2010-05-09  Bruno Haible  <bruno@clisp.org>
11699
11700         Update to GNU gettext 0.18, part 1.
11701         * m4/gettext.m4: Update to GNU gettext 0.18.
11702         * m4/intl.m4: Likewise.
11703         * m4/po.m4: Likewise.
11704         * modules/gettext (Files): Add m4/fcntl-o.m4.
11705         (configure.ac): Require gettext infrastructure from version 0.18.
11706
11707 2010-05-09  Jim Meyering  <meyering@redhat.com>
11708
11709         init.sh: enable MALLOC_PERTURB_
11710         * tests/init.sh: Enable glibc's malloc-perturbing option.
11711
11712         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11713         With my recent change in init.sh from the two-line form:
11714             -#   : ${srcdir=.}
11715             -#   . "$srcdir/init.sh"; path_prepend_ .
11716             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11717         I noticed that using the one-line form would cause this test
11718         to fail with a false-positive, or to stop working altogether,
11719         depending on whether help-version changed or all the tests did.
11720         * top/maint.mk (_hv_regex): Remove this definition.
11721         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11722         (_hv_regex_strong): Use a stronger regex to check for conformance.
11723         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11724         Give a separate diagnostic for lack of conforming use.
11725
11726         maint.mk: prohibit definition of symbols defined by gnulib
11727         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11728         definition of symbols defined by gnulib.
11729
11730 2010-05-09  Bruno Haible  <bruno@clisp.org>
11731
11732         acl: Avoid test failure on Cygwin-hosted mingw.
11733         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11734
11735 2010-05-09  Bruno Haible  <bruno@clisp.org>
11736
11737         error: Use system's fcntl function.
11738         * lib/error.c (fcntl): Undefine.
11739
11740 2010-05-09  Jim Meyering  <meyering@redhat.com>
11741
11742         verify: adjust formatting to be more consistent
11743         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11744         argument-list '('s, and after one comma.
11745
11746 2010-05-09  Bruno Haible  <bruno@clisp.org>
11747
11748         error: More reliable output on mingw.
11749         * lib/error.c: Include <windows.h>.
11750         (is_open): New function.
11751         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11752         defined.
11753
11754 2010-05-09  Bruno Haible  <bruno@clisp.org>
11755
11756         vasnprintf: Fix syntax errors in libintl build on mingw.
11757         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11758         pad_ourselves and prec_ourselves after use.
11759
11760 2010-05-08  Bruno Haible  <bruno@clisp.org>
11761
11762         * lib/config.charset: Update comments for Cygwin 1.7.
11763         * lib/localcharset.c: Likewise.
11764
11765 2010-05-07  Jim Meyering  <meyering@redhat.com>
11766
11767         init.sh: improve comments
11768         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11769         . "${srcdir=.}/init.sh"; path_prepend_ .
11770         Add a note about path_prepend_ and the alternative of using
11771         TESTS_ENVIRONMENT.
11772
11773 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11774
11775         exclude: Unescape hashed patterns in wildcard mode.
11776         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11777         to the hash list.
11778         * tests/test-exclude8.sh: New test case.
11779         * modules/exclude-tests: Add new test.
11780
11781 2010-05-05  Eric Blake  <eblake@redhat.com>
11782
11783         verify: automate tests
11784         * modules/verify-tests: New module.
11785         * tests/test-verify.sh: New file.
11786         * tests/test-verify.c: Guard each negative test with a unique id.
11787         Also avoid warning about unused left hand of comma expressions.
11788
11789 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         Further improvements to verify.h, suggested by Eric Blake.
11792         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11793         the GL_* versions, to avoid collision with OpenGL.
11794         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11795         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11796         than testing merely whether it's defined.
11797
11798         Modify verify.h to pacify gcc -Wredundant_decls.
11799         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11800         These use the prefix "GL_" since they're likely to be useful elsewhere.
11801         We may need to break them out into a different .h file.
11802         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11803         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11804         of verify_function__.
11805
11806 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11807
11808         Tests for module pwrite.
11809         * modules/pwrite-tests: New file.
11810         * tests/test-pwrite.sh: New file.
11811         * tests/test-pwrite.c: New file.
11812
11813         New module pwrite.
11814         * lib/unistd.in.h (pwrite): New declaration.
11815         * lib/pwrite.c: New file, from glibc with modifications.
11816         * m4/pwrite.m4: New file.
11817         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11818         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11819         REPLACE_PWRITE.
11820         * modules/pwrite: New file.
11821         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11822         REPLACE_PWRITE.
11823         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11824         * doc/posix-functions/pwrite.texi: Mention the new module.
11825
11826 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11827
11828         pread: Update documentation.
11829         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11830
11831 2010-05-04  Eric Blake  <eblake@redhat.com>
11832
11833         docs: update cygwin progress
11834         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11835         this bug.
11836         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11837         Added in cygwin 1.7.2.
11838         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11839         Likewise.
11840         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11841         Likewise.
11842         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11843         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11844         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11845         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11846         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11847         Mention nproc module.
11848         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11849         bug in cygwin 1.7.5 addition.
11850         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11851         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11852         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11853         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11854         1.7.5.
11855         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11856         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11857         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11858         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11859         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11860         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11861         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11862         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11863         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11864         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11865         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11866         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11867         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11868         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11869         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11870         Likewise.
11871         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11872         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11873         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11874         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11875         Likewise.
11876         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11877         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11878         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11879         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11880         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11881         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11882         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11883         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11884         Likewise.
11885         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11886         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11887         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11888         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11889         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11890         Likewise.
11891         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11892         Likewise.
11893         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11894         Likewise.
11895         * doc/glibc-functions/xdrrec_endofrecord.texi
11896         (xdrrec_endofrecord): Likewise.
11897         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11898         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11899         Likewise.
11900         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11901         Likewise.
11902
11903 2010-05-04  Jim Meyering  <meyering@redhat.com>
11904
11905         gendocs.sh: make its "-s FILE" option more useful
11906         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11907         $PACKAGE to reflect the probably-different basename of "FILE".
11908
11909 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11910
11911         bootstrap: don't ignore download_po_files failure
11912         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11913         failure.
11914
11915 2010-05-03  Jim Meyering  <meyering@redhat.com>
11916
11917         maint.mk: allow to pass options to gendocs.sh
11918         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11919         (gendocs_options_): New overridable variable.
11920
11921         gnu-web-doc-update: don't ignore configure or build failure
11922         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11923
11924         announce-gen: backslash-escape '@'s in --help output
11925         * build-aux/announce-gen: Fix syntax errors.
11926
11927         maint.mk, announce-gen: allow project-specific announcement mail headers
11928         * top/maint.mk (translation_project_): Define default.
11929         (announcement_Cc_, announcement_mail_headers_): Likewise.
11930         (announcement): Invoke announce-gen with new --mail-headers option.
11931         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11932
11933         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11934         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11935         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11936         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11937         line in the "err2" output file when running "make check" in verbose
11938         mode (i.e., with set -x enabled).
11939
11940 2010-05-03  Bruno Haible  <bruno@clisp.org>
11941
11942         wctob: Fix for weird platforms.
11943         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11944         argument value.
11945
11946 2010-05-03  Jim Meyering  <meyering@redhat.com>
11947
11948         maint.mk: prohibit unwarranted use of <strings.h>
11949         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11950         strings.h in a file that does not also use strcasecmp, strncasecmp,
11951         ffs or ffsll.
11952
11953         maint.mk: remove obsolete comments
11954         * top/maint.mk: Remove stale, commented-out rules.
11955
11956 2010-05-02  Bruno Haible  <bruno@clisp.org>
11957
11958         wcwidth: Declare also when it's aliased.
11959         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11960         macro.
11961
11962 2010-05-02  Bruno Haible  <bruno@clisp.org>
11963
11964         Fix regression from 2010-04-25.
11965         * gnulib-tool (func_modules_transitive_closure): Check the status of
11966         all modules, not only of the tests that are of the form foo-tests where
11967         foo is a module.
11968
11969 2010-05-02  Bruno Haible  <bruno@clisp.org>
11970
11971         wctob: Work around nasty Cygwin 1.7.2 bug.
11972         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11973         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11974
11975 2010-05-01  Bruno Haible  <bruno@clisp.org>
11976
11977         fpurge: Sharper test.
11978         * tests/test-fpurge.c (main): Add one more ftell check.
11979         * modules/fpurge-tests (Depends-on): Add ftell.
11980         Suggested by Eric Blake.
11981
11982 2010-05-01  Bruno Haible  <bruno@clisp.org>
11983
11984         ftello: Another test.
11985         * tests/test-ftello3.c: New file.
11986         * modules/ftello-tests (Files): Add it.
11987         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11988         MOSTLYCLEANFILES.
11989
11990         ftell: Another test.
11991         * tests/test-ftell3.c: New file.
11992         * modules/ftell-tests (Files): Add it.
11993         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11994         MOSTLYCLEANFILES.
11995
11996 2010-05-01  Bruno Haible  <bruno@clisp.org>
11997
11998         ftell, ftello: Work around Solaris bug.
11999         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12000         * lib/ftello.c: Include stdio-impl.h.
12001         (ftello): On Solaris, when _IOWRT is set, compute the result without
12002         looking at _IOREAD.
12003         * modules/ftello (Files): Add lib/stdio-impl.h.
12004         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12005         * doc/posix-functions/ftello.texi: Likewise.
12006         Reported by Eric Blake.
12007
12008 2010-05-01  Bruno Haible  <bruno@clisp.org>
12009
12010         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12011         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12012         the _IOWRT flag is also set.
12013
12014 2010-05-01  Bruno Haible  <bruno@clisp.org>
12015
12016         Fix doc about a HP-UX stdio bug.
12017         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12018         * doc/posix-functions/ftello.texi: Likewise.
12019
12020 2010-05-01  Bruno Haible  <bruno@clisp.org>
12021
12022         lseek test: Fix failure on Solaris.
12023         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12024         output.
12025
12026 2010-04-30  Jim Meyering  <meyering@redhat.com>
12027
12028         bootstrap: don't ignore failure to generate po*/Makevars
12029         * build-aux/bootstrap (with_gettext): Don't ignore failure
12030         to create po/Makevars or runtime-po/Makevars.
12031
12032 2010-04-29  Eric Blake  <eblake@redhat.com>
12033
12034         headers: relax license to LGPLv2+
12035         * modules/fcntl-h (License): Relax license.
12036         * modules/getopt-posix (License): Likewise.
12037         * modules/locale (License): Likewise.
12038         * modules/math (License): Likewise.
12039         * modules/pty (License): Likewise.
12040         * modules/sched (License): Likewise.
12041         * modules/search (License): Likewise.
12042         * modules/spawn (License): Likewise.
12043         * modules/stdarg (License): Likewise.
12044         * modules/sysexits (License): Likewise.
12045
12046 2010-04-29  Jim Meyering  <meyering@redhat.com>
12047
12048         inttypes: relax license to LGPLv2+
12049         * modules/inttypes (License): Relax license.
12050
12051 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12052
12053         * top/maint.mk (indent): Run twice to produce idempotent results.
12054
12055 2010-04-28  Bruno Haible  <bruno@clisp.org>
12056
12057         getdate: Generate getdate.c in the source directory.
12058         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12059         MOSTLYCLEANFILES.
12060         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12061
12062 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12063
12064         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12065         is not declared as a const *; avoid warnings in that case.
12066
12067 2010-04-28  Eric Blake  <eblake@redhat.com>
12068
12069         canonicalize-lgpl: avoid compiler warning
12070         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12071         declaration' / 'extraneous semicolon' warning with some compilers.
12072         Reported by Andreas Gruenbacher.
12073
12074 2010-04-28  Jim Meyering  <meyering@redhat.com>
12075
12076         init.sh: ensure a more reliable exit status when exiting via trap
12077         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12078         Inspired by patches from Dmitry V. Levin.
12079         Also trap on signal 3 (SIGQUIT).
12080
12081 2010-04-27  Bruno Haible  <bruno@clisp.org>
12082
12083         Update doc about utimes().
12084         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12085         'utimens' module.
12086         Reported by Andreas Gruenbacher <agruen@suse.de>.
12087
12088 2010-04-27  Eric Blake  <eblake@redhat.com>
12089
12090         full-read, full-write: relax license
12091         * modules/full-read (License): Drop to LGPLv2+.
12092         * modules/full-write (License): Likewise.
12093         * modules/safe-read (License): Likewise.
12094         * modules/safe-write (License): Likewise.
12095
12096         pthread: mention library for linking
12097         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12098
12099 2010-04-27  Jim Meyering  <meyering@redhat.com>
12100
12101         maint.mk: fix a bug introduced in last change
12102         * top/maint.mk (gl_assured_headers_): Now that all names are on
12103         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12104         is not anchored to end of word, it should be adequate.
12105
12106         maint.mk: avoid side-effect in latest syntax-check
12107         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12108         to run commands via $(shell...), and hence to incur cost only when
12109         the new rule is actually run.
12110
12111         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12112         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12113         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12114         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12115         (gl_assured_headers_, az_, AZ_): Define.
12116         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12117
12118 2010-04-26  Jim Meyering  <jim@meyering.net>
12119             Bruno Haible  <bruno@clisp.org>
12120
12121         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12122         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12123         Prompted by an exchange with Gilles Espinasse.
12124
12125 2010-04-26  Jim Meyering  <meyering@redhat.com>
12126
12127         git-version-gen: aesthetic tweak
12128         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12129         so that the command remains on a single line.
12130
12131 2010-04-26  Eric Blake  <eblake@redhat.com>
12132
12133         git-version-gen: allow use on EBCDIC hosts
12134         * build-aux/git-version-gen (dirty): Use literal rather than tying
12135         ourselves to ascii.
12136         Reported by Steve Goetze.
12137
12138 2010-04-25  Bruno Haible  <bruno@clisp.org>
12139
12140         netdb: Add support for GNULIB_POSIXCHECK.
12141         * lib/netdb.in.h: Include warn-on-use.h.
12142         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12143         functions are used when GNULIB_POSIXCHECK is defined and the
12144         getaddrinfo module is not in use.
12145         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12146         freeaddrinfo, gai_strerror, getnameinfo are declared.
12147         * modules/netdb (Depends-on): Add warn-on-use.
12148         (Makefile.am): Include warn-on-use.h in netdb.h.
12149
12150 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12151
12152         build: avoid "make check" failure without .git/ directory
12153         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12154         there is no .git/ directory.
12155
12156 2010-04-25  Bruno Haible  <bruno@clisp.org>
12157
12158         ptsname: Fix misuse of ttyname_r.
12159         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12160         of errno.
12161
12162 2010-04-25  Bruno Haible  <bruno@clisp.org>
12163
12164         ttyname_r: Make it work on Solaris 10.
12165         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12166         if the system function has the POSIX declaration. Test whether the
12167         function fails if the buffer is less than 128 bytes large.
12168         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12169         system's ttyname_r function. Provide a reasonably large buffer.
12170         * modules/ttyname_r (Depends-on): Add extensions.
12171         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12172
12173 2010-04-25  Bruno Haible  <bruno@clisp.org>
12174
12175         Use the 'extensions' module for some more functions on Solaris.
12176         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12177         module.
12178         * doc/posix-functions/ctime_r.texi: Likewise.
12179         * doc/posix-functions/getgrgid_r.texi: Likewise.
12180         * doc/posix-functions/getgrnam_r.texi: Likewise.
12181         * doc/posix-functions/getpwnam_r.texi: Likewise.
12182         * doc/posix-functions/getpwuid_r.texi: Likewise.
12183         * doc/posix-functions/readdir_r.texi: Likewise.
12184         * doc/posix-functions/sigwait.texi: Likewise.
12185         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12186         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12187
12188 2010-04-25  Bruno Haible  <bruno@clisp.org>
12189
12190         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12191         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12192         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12193         * lib/ttyname_r.c: Include <limits.h>.
12194         (ttyname_r): Define using the system's ttyname_r function, if it exists
12195         and not on Solaris.
12196         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12197         set.
12198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12199         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12200         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12201         Reported by Simon Josefsson.
12202
12203 2010-04-25  Bruno Haible  <bruno@clisp.org>
12204
12205         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12206         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12207         * doc/posix-functions/ctime_r.texi: Likewise.
12208         * doc/posix-functions/getgrgid_r.texi: Likewise.
12209         * doc/posix-functions/getgrnam_r.texi: Likewise.
12210         * doc/posix-functions/getlogin_r.texi: Likewise.
12211         * doc/posix-functions/getpwnam_r.texi: Likewise.
12212         * doc/posix-functions/getpwuid_r.texi: Likewise.
12213         * doc/posix-functions/readdir_r.texi: Likewise.
12214         * doc/posix-functions/sigwait.texi: Likewise.
12215         * doc/posix-functions/ttyname_r.texi: Likewise.
12216         Reported by Simon Josefsson.
12217
12218 2010-04-25  Bruno Haible  <bruno@clisp.org>
12219
12220         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12221         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12222         also to --create-testdir.
12223         (func_acceptable): Don't consider the status of *-tests modules here.
12224         (func_modules_transitive_closure): Consider it here, before including a
12225         test module.
12226         (func_import, func_create_testdir): Set inc_all_direct_tests,
12227         inc_all_indirect_tests.
12228         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12229         --create-testdir and --create-megatestdir.
12230
12231 2010-04-25  Bruno Haible  <bruno@clisp.org>
12232
12233         gnulib-tool: Add --without-*-tests options.
12234         * gnulib-tool (func_usage): Document the --without-*-tests options.
12235         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12236         excl_unportable_tests): New variables.
12237         Fail if they are specified with --import or --update.
12238         (func_acceptable): Respect the excl_*_tests variables.
12239         (func_import): Set the excl_*_tests variables to empty.
12240
12241 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12242             Bruno Haible  <bruno@clisp.org>
12243
12244         Work around a MacOS X 10.4 bug with openpty.
12245         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12246         * tests/test-openpty.c (main): Close the master side explicitly.
12247
12248 2010-04-25  Bruno Haible  <bruno@clisp.org>
12249
12250         strnlen: Fix a C++ test error on MacOS X and Solaris.
12251         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12252         the function is not declared.
12253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12254         Simon Josefsson.
12255
12256 2010-04-24  Bruno Haible  <bruno@clisp.org>
12257
12258         Avoid a gcc warning.
12259         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12260         of correct type for %08lx directive.
12261         Reported by Eric Blake.
12262
12263 2010-04-24  Bruno Haible  <bruno@clisp.org>
12264
12265         vasnprintf: Correct errno value in case of out-of-memory.
12266         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12267         or sprintf. Use the errno value from SNPRINTF or sprintf.
12268         Reported by Ian Beckwith <ianb@erislabs.net>.
12269
12270 2010-04-24  Bruno Haible  <bruno@clisp.org>
12271
12272         ansi-c++-opt: Find correct compiler when cross-compiling.
12273         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12274         AC_CHECK_PROGS.
12275         Reported by Simon Josefsson.
12276
12277 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12278
12279         vc-list-files: Add support for subversion
12280         * build-aux/vc-list-files: Use "svn list" to generate the list of
12281         files controlled by subversion.
12282
12283 2010-04-23  Jim Meyering  <meyering@redhat.com>
12284
12285         vc-list-files tests: convert to use init.sh
12286         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12287         path_prepend_.
12288         Use Exit, not exit.
12289         Use skip_ rather than open coding it.
12290         Remove trap set-up and compare definitions.
12291         * tests/test-vc-list-files-git.sh: Likewise.
12292         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12293
12294 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12295
12296         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12297         backup files.
12298
12299 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12300
12301         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12302
12303 2010-04-20  Eric Blake  <eblake@redhat.com>
12304
12305         tests: be robust to ignored SIGPIPE
12306         * tests/test-select-in.sh: Consume all output.
12307         * tests/test-lseek.sh: Check correct exit status, while avoiding
12308         EPIPE.
12309
12310 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12311             Bruno Haible  <bruno@clisp.org>
12312
12313         visibility: Don't use -fvisibility if it leads to a warning.
12314         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12315         yes, don't pretend that visibility works if it leads to a warning.
12316         Reported by Mike Gran <spk121@yahoo.com>.
12317
12318 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12319
12320         * build-aux/bootstrap: Use "git -h" for testing for supported options
12321         instead of "git --help".  The short-form option only shows a summary,
12322         and doesn't layout the full man page.  Grep for the full option name
12323         in the summary, too.
12324
12325 2010-04-19  Bruno Haible  <bruno@clisp.org>
12326
12327         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12328         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12329         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12330         mention of RELOCATABLE_STRIP.
12331         Reported by Sylvain Beucler <beuc@beuc.net>.
12332
12333 2010-04-19  Bruno Haible  <bruno@clisp.org>
12334
12335         * lib/diffseq.h: Fix typo in comment.
12336         Reported by Eric Blake.
12337
12338 2010-04-19  Bruno Haible  <bruno@clisp.org>
12339
12340         ioctl: Move autoconf macro to a .m4 file.
12341         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12342         * modules/ioctl (Files): Add it.
12343         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12344         Reported by Ian Beckwith <ianb@erislabs.net>.
12345
12346 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12347             Bruno Haible  <bruno@clisp.org>
12348
12349         diffseq: Accommodate use-case with abstract arrays.
12350         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12351         is not defined.
12352         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12353         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12354
12355 2010-04-18  Bruno Haible  <bruno@clisp.org>
12356
12357         * doc/posix-headers/stdbool.texi: More precise wording.
12358
12359 2010-04-17  Jim Meyering  <meyering@redhat.com>
12360
12361         maint.mk: use gnu-style indentation in an embedded perl script
12362         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12363         Rename variable: s/two/last_two_bytes/
12364
12365 2010-04-16  Eric Blake  <eblake@redhat.com>
12366
12367         test-stdbool: skip test that fails with Solaris CC
12368         * tests/test-stdbool.c (f): Skip test that causes compilation
12369         error under buggy C++ compiler.
12370         * lib/stdbool.in.h: Document the limitation.
12371         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12372
12373         setenv: allow compilation with C++
12374         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12375         register keyword.
12376
12377         stdint: allow test to pass with C++
12378         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12379
12380         getopt: allow compilation with C++
12381         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12382         struct.
12383         * lib/getopt.c (_getopt_internal_r): Use correct type.
12384         Reported by Dagobert Michelson, via Joel E. Denny.
12385
12386 2010-04-16  Bruno Haible  <bruno@clisp.org>
12387
12388         Override netdb.h always.
12389         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12390         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12391         Reported by Ludovic Courtès <ludo@gnu.org>.
12392
12393 2010-04-15  Bruno Haible  <bruno@clisp.org>
12394
12395         openpty: Fix mistake from 2010-03-21.
12396         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12397         Reported by Simon Josefsson.
12398
12399 2010-04-15  Eric Blake  <eblake@redhat.com>
12400
12401         test-forkpty: fix expected signature
12402         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12403         Reported by Simon Josefsson.
12404
12405 2010-04-15  Jim Meyering  <meyering@redhat.com>
12406
12407         maint.mk: texinfo_suffix_re_: correct the default regexp
12408         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12409
12410         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12411         make it configurable via texinfo_suffix_re_.
12412
12413 2010-04-14  Eric Blake  <eblake@redhat.com>
12414
12415         strtok_r: relax license to LGPLv2+
12416         * modules/strtok_r (License): Relax license.
12417         Reported by Matthias Bolte.
12418
12419 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12420
12421         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12422         version 1.4.4 by default instead of requiring the libgcrypt
12423         version used during build.  This makes it possible to use the
12424         application with older but still binary compatible libgcrypt
12425         versions.
12426
12427 2010-04-13  Eric Blake  <eblake@redhat.com>
12428
12429         getopt-gnu: match recent glibc fixes and posix ruling
12430         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12431         '+' handling, when requesting extensions.
12432         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12433         'W;' handling.
12434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12435         * doc/posix-functions/getopt.texi (getopt): Document this.
12436         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12438         Likewise.
12439
12440         getopt: merge bug fixes from glibc
12441         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12442         diagnostics.  Honor '+:' correctly.  Reject ';'.
12443
12444         getopt-posix: detect MacOS bug
12445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12446         optind when missing a required argument.
12447         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12448         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12449         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12450         Likewise.
12451
12452         getopt-posix: avoid spurious failure on Solaris
12453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12454         an indicator that setting optind=1 is sufficient for reset.
12455
12456         getopt-posix: avoid spurious failure on FreeBSD
12457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12458         in POSIX mode, since the m4 test uses it.
12459
12460         gnulib-tool: silence warning on BSD sh
12461         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12462
12463 2010-04-13  Jim Meyering  <meyering@redhat.com>
12464
12465         doc: users.txt: GNU patch now uses gnulib
12466         * users.txt: Add patch.
12467
12468 2010-04-12  Jim Meyering  <meyering@redhat.com>
12469
12470         maint.mk: generate more concise timing data for syntax-check rules
12471         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12472         " done" from each line that reports a syntax-check test duration.
12473
12474 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12475
12476         git-version-gen: use "git update-index..." rather than "git status"
12477         * build-aux/git-version-gen: Use git update-index --refresh, not
12478         "git status".  With some versions of git, "git status" would fail
12479         to update the index and result in an unwarranted "-dirty" suffix.
12480
12481 2010-04-11  Jim Meyering  <meyering@redhat.com>
12482
12483         openat: correct formatting (no semantic change)
12484         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12485         Suggested by Bruno Haible.
12486
12487 2010-04-11  Bruno Haible  <bruno@clisp.org>
12488
12489         Stricter declaration checking in testdirs.
12490         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12491         If for_tests is true, augment AM_CPPFLAGS to define
12492         GNULIB_STRICT_CHECKING.
12493         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12494         GNULIB_STRICT_CHECKING is defined, verify that the function is
12495         declared.
12496
12497 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12498             Bruno Haible  <bruno@clisp.org>
12499
12500         libunistring: Improve configure output.
12501         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12502         Don't say "consider installing GNU libunistring" when checking again
12503         with libiconv.
12504
12505 2010-04-11  Bruno Haible  <bruno@clisp.org>
12506
12507         libunistring: Correct value of $LTLIBUNISTRING.
12508         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12509         correct the value of $LTLIBUNISTRING.
12510
12511 2010-04-11  Bruno Haible  <bruno@clisp.org>
12512
12513         havelib: Add static libraries to LIBS in the right order.
12514         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12515         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12516
12517 2010-04-11  Bruno Haible  <bruno@clisp.org>
12518
12519         libunistring: Detect libunistring also when it depends on libiconv.
12520         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12521         the second AC_LIB_HAVE_LINKFLAGS invocation.
12522
12523 2010-04-11  James Youngman  <jay@gnu.org>
12524
12525         close-stream: declare local scalars to be "const"
12526         * lib/close-stream.c (close_stream): Make boolean variables const
12527         to document the fact that we set but do not change them.
12528
12529 2010-04-11  Bruno Haible  <bruno@clisp.org>
12530
12531         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12532
12533 2010-04-11  Jim Meyering  <meyering@redhat.com>
12534
12535         maint.mk: don't include dist-check.mk
12536         * top/maint.mk: Remove bogus include directive.
12537
12538         maint.mk: improve empty-line-at-EOF check
12539         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12540         solution, rather than tail+Perl-based one.  The latter would read
12541         a few kilobytes from the end of each file, and did not handle empty
12542         files properly.
12543
12544         maint.mk: print the elapsed time for each syntax-check rule
12545         * top/maint.mk (sc_m_rules_): Save start time in a file.
12546         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12547         (local-check): Interpose the .z rules
12548
12549 2010-04-11  Jim Meyering  <meyering@redhat.com>
12550
12551         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12552         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12553         empty file with one that ends in an empty line.
12554
12555 2010-04-10  Bruno Haible  <bruno@clisp.org>
12556
12557         mkdir: Make it work on mingw64.
12558         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12559         * lib/mkdir.c: Update comment.
12560         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12561
12562 2010-04-10  Bruno Haible  <bruno@clisp.org>
12563
12564         Don't override improved macro from newer autoconf.
12565         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12566         autoconf >= 2.62.
12567         Reported by Joel E. Denny <jdenny@clemson.edu>.
12568
12569 2010-04-10  Jim Meyering  <meyering@redhat.com>
12570
12571         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12572         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12573
12574         maint.mk: correct a diagnostic
12575         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12576         in diagnostic; now use $prohibit.
12577
12578 2010-04-10  Bruno Haible  <address@hidden>
12579
12580         fchownat: Fix a C++ test error on Solaris 8.
12581         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12582         the function does not exist.
12583
12584 2010-04-10  Bruno Haible  <bruno@clisp.org>
12585
12586         vasnprintf: Add more tests.
12587         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12588         (test_function): Test converting an invalid wide string.
12589
12590         vasnprintf: Correct handling of unconvertible wide string arguments.
12591         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12592         VASNPRINTF.
12593         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12594         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12595         smaller than the expected maximum need for the directive. Set errno to
12596         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12597         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12599         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12600         * modules/vasnprintf (Files): Add m4/printf.m4.
12601         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12602
12603 2010-04-10  Bruno Haible  <bruno@clisp.org>
12604
12605         vasnprintf: Fix crash in %ls directive.
12606         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12607         string is passed as argument to %ls, with no precision and no width.
12608         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12609
12610 2010-04-10  Bruno Haible  <bruno@clisp.org>
12611
12612         vasnprintf: Fix multiple test failures on mingw.
12613         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12614         _snprintf, or snwprintf, not _snwprintf.
12615
12616 2010-04-10  Bruno Haible  <bruno@clisp.org>
12617
12618         write: Fix a C++ test error on mingw.
12619         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12620
12621 2010-04-10  Bruno Haible  <bruno@clisp.org>
12622
12623         vasnprintf test: Reduce code duplication.
12624         * tests/test-vasnprintf.c (test_function): New function, extracted from
12625         test_vasnprintf.
12626         (test_vasnprintf, test_asnprintf): Invoke it.
12627
12628 2010-04-10  Bruno Haible  <bruno@clisp.org>
12629
12630         strnlen: Fix warning in C++ mode on MacOS X.
12631         * lib/string.in.h (strnlen): Use the modern idiom.
12632         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12633         defining strnlen as a macro already in <config.h>.
12634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12635         REPLACE_STRNLEN.
12636         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12637         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12638
12639 2010-04-08  James Youngman  <jay@gnu.org>
12640
12641         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12642         the example.
12643
12644 2010-04-09  Jim Meyering  <meyering@redhat.com>
12645
12646         maint.mk: print better diagnostic when there is no $(_hv_file)
12647         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12648         announce that when $(_hv_file) (aka help-version) does not exist.
12649
12650         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12651         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12652         not try to interpret its random input bytes.  Jarno Rajahalme reported
12653         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12654         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12655         (mktempd_): Likewise, just in case.
12656
12657         ftruncate: add two years to projected module removal date: 2012
12658         * m4/ftruncate.m4: Adjust comments.
12659
12660         ftruncate: mark module as obsolete; even MinGW provides it, now
12661         * modules/ftruncate (Status): Obsolete.
12662         (Notice): Say that.
12663         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12665
12666 2010-04-08  Bruno Haible  <bruno@clisp.org>
12667
12668         Fix side effects from tests-related modules.
12669         * modules/dprintf-posix (Comment): New section.
12670         * modules/fprintf-posix (Comment): Likewise.
12671         * modules/obstack-printf-posix (Comment): Likewise.
12672         * modules/printf-posix (Comment): Likewise.
12673         * modules/snprintf-posix (Comment): Likewise.
12674         * modules/sprintf-posix (Comment): Likewise.
12675         * modules/vasnprintf-posix (Comment): Likewise.
12676         * modules/vasprintf-posix (Comment): Likewise.
12677         * modules/vdprintf-posix (Comment): Likewise.
12678         * modules/vfprintf-posix (Comment): Likewise.
12679         * modules/vprintf-posix (Comment): Likewise.
12680         * modules/vsnprintf-posix (Comment): Likewise.
12681         * modules/vsprintf-posix (Comment): Likewise.
12682         * modules/xprintf-posix (Comment): Likewise.
12683         * modules/xvasprintf-posix (Comment): Likewise.
12684         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12685         * modules/floorf-tests (Depends-on): Likewise.
12686         * modules/round-tests (Depends-on): Likewise.
12687         * modules/roundf-tests (Depends-on): Likewise.
12688         * modules/trunc-tests (Depends-on): Likewise.
12689         * modules/truncf-tests (Depends-on): Likewise.
12690         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12691         'fprintf-posix' module is not present.
12692         * tests/test-floorf2.c (check): Likewise.
12693         * tests/test-trunc2.c (check): Likewise.
12694         * tests/test-truncf2.c (check): Likewise.
12695         * tests/test-round2.c (equal): Likewise.
12696         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12697
12698 2010-04-07  Karl Berry  <karl@gnu.org>
12699
12700         * config/srclist.txt,
12701         * config/srclistvars.sh,
12702         * config/srclist-update: doc fixes.
12703
12704 2010-04-07  Jim Meyering  <meyering@redhat.com>
12705
12706         maint.mk: add a PATH crosschecking syntax-check rule
12707         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12708         Useful if you use a test like the one in help-version (coreutils,
12709         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12710         printed by prog --version.
12711
12712 2010-04-06  Bruno Haible  <bruno@clisp.org>
12713
12714         Fix link error on mingw.
12715         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12716         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12717
12718 2010-04-06  Bruno Haible  <bruno@clisp.org>
12719
12720         Assume rmdir exists.
12721         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12722
12723 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12724
12725         doc: update users.txt
12726         * users.txt: Add gcal.
12727
12728 2010-04-06  Jim Meyering  <meyering@redhat.com>
12729
12730         init.sh: simply unset TMPDIR rather than risking env -i
12731         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12732         although it probably works fine on all Unix-based systems, some
12733         systems (Cygwin?) cannot tolerate a totally cleared environment.
12734         Suggestion from Eric Blake.
12735
12736 2010-04-06  Jim Meyering  <meyering@redhat.com>
12737
12738         init.sh: portability fix: use env's POSIX-specified -i option not -u
12739         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12740         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12741
12742 2010-04-05  Bruno Haible  <bruno@clisp.org>
12743
12744         btowc: Work around Cygwin 1.7.2 bug.
12745         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12746         does not map NUL to 0.
12747         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12748
12749 2010-04-05  Bruno Haible  <bruno@clisp.org>
12750
12751         Make the multithread modules work on Cygwin 1.7.2.
12752         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12753         imported symbols can be declared weak, so that it returns "no" on
12754         Cygwin 1.7.2.
12755
12756 2010-04-05  Bruno Haible  <bruno@clisp.org>
12757
12758         Use the module 'strncat'.
12759         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12760
12761         Tests for module 'strncat'.
12762         * modules/strncat-tests: New file.
12763         * tests/test-strncat.c: New file.
12764
12765         New module 'strncat'.
12766         * lib/string.in.h (strncat): New declaration.
12767         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12768         * m4/strncat.m4: New file, based on m4/memchr.m4.
12769         * modules/strncat: New file.
12770         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12771         is declared.
12772         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12773         REPLACE_STRNCAT.
12774         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12775         REPLACE_STRNCAT.
12776         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12777         module.
12778         * tests/test-string-c++.cc: Check signature of strncat.
12779
12780 2010-04-05  Jim Meyering  <meyering@redhat.com>
12781
12782         xstrtoumax-tests: convert to use init.sh
12783         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12784         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12785         Use Exit, not exit.
12786         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12787
12788         xstrtoimax-tests: convert to use init.sh
12789         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12790         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12791         Use Exit, not exit.
12792         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12793
12794 2010-04-05  Bruno Haible  <bruno@clisp.org>
12795
12796         sys_socket: Avoid #define replacements in C++ mode.
12797         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12798         warning to the function if possible, rather than #defining the symbol
12799         to a dysfunctional alias.
12800
12801 2010-04-05  Bruno Haible  <bruno@clisp.org>
12802
12803         fseeko: Fix C++ test error on mingw.
12804         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12805         gl_FUNC_FSEEKO.
12806         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12807         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12808         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12809         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12810
12811 2010-04-05  Bruno Haible  <bruno@clisp.org>
12812
12813         duplocale: Improve test output.
12814         * tests/test-duplocale.c (main): Print reason for skipped test.
12815
12816 2010-04-05  Bruno Haible  <bruno@clisp.org>
12817
12818         Assume rmdir exists.
12819         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12820         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12821
12822 2010-04-05  Bruno Haible  <bruno@clisp.org>
12823
12824         Fix link error on Solaris 8 with cc.
12825         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12826
12827 2010-04-05  Bruno Haible  <bruno@clisp.org>
12828
12829         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12830         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12831
12832 2010-04-05  Bruno Haible  <bruno@clisp.org>
12833
12834         vasprintf: Update documentation.
12835         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12836
12837 2010-04-05  Bruno Haible  <bruno@clisp.org>
12838
12839         ptsname: Improve test.
12840         * tests/test-ptsname.c (main): Also try the various master names of BSD
12841         systems.
12842
12843 2010-04-05  Bruno Haible  <bruno@clisp.org>
12844
12845         memchr: Avoid a possible C++ test error.
12846         * lib/string.in.h (memchr): Provide declaration if function is missing.
12847         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12848         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12850         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12851
12852 2010-04-05  Bruno Haible  <bruno@clisp.org>
12853
12854         strtok_r: Improve idiom.
12855         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12856         AC_LIBOBJ is used.
12857
12858 2010-04-05  Bruno Haible  <bruno@clisp.org>
12859
12860         strdup: Improve idiom.
12861         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12862         AC_LIBOBJ is used.
12863         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12864         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12865         when AC_LIBOBJ is used.
12866
12867 2010-04-05  Bruno Haible  <bruno@clisp.org>
12868
12869         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12870         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12871         don't set REPLACE_MBSINIT to 1.
12872         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12873         don't set REPLACE_MBRTOWC to 1.
12874         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12875         exist, don't set REPLACE_MBSRTOWCS to 1.
12876         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12877         exist, don't set REPLACE_MBSNRTOWCS to 1.
12878         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12879         don't set REPLACE_WCRTOMB to 1.
12880         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12881         exist, don't set REPLACE_WCSRTOMBS to 1.
12882         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12883         exist, don't set REPLACE_WCSNRTOMBS to 1.
12884
12885 2010-04-05  Bruno Haible  <bruno@clisp.org>
12886
12887         ldexpl: Improve idiom.
12888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12889         make sure to set HAVE_DECL_LDEXPL to 0.
12890
12891 2010-04-05  Jim Meyering  <meyering@redhat.com>
12892
12893         xstrtol-tests: convert to use init.sh
12894         * modules/xstrtol-tests (Files): Add tests/init.sh.
12895         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12896         Use Exit, not exit.
12897         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12898
12899         atexit-tests: convert to use init.sh
12900         * modules/atexit-tests (Files): Add tests/init.sh.
12901         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12902         Use Exit, not exit.
12903         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12904
12905         init.sh: fix typo
12906         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12907
12908         init.sh: make it easier for a test script to write to the tty, ...
12909         when using automake's parallel-tests mode.
12910         * tests/init.sh (stderr_fileno_): Define overridable variable.
12911         (warn_): New function, to use it.
12912         (fail_, skip_, framework_failure_): Use warn_.
12913
12914 2010-04-04  Bruno Haible  <bruno@clisp.org>
12915
12916         btowc: Avoid warning.
12917         * lib/btowc.c: Include <stdlib.h>.
12918         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12919
12920 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12921             Bruno Haible  <bruno@clisp.org>
12922
12923         wchar: Port to NetBSD 1.5.
12924         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12925         * lib/wctype.in.h (WEOF): Likewise.
12926
12927 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12928             Bruno Haible  <bruno@clisp.org>
12929
12930         Port extended stdio to NetBSD 1.5.
12931         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12932         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12933         older.
12934
12935 2010-04-04  Bruno Haible  <bruno@clisp.org>
12936
12937         string: Remove unused substitution.
12938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12939         HAVE_DECL_STRERROR.
12940         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12941
12942 2010-04-04  Bruno Haible  <bruno@clisp.org>
12943
12944         strtod: Avoid a possible C++ test error.
12945         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12946         set REPLACE_STRTOD.
12947
12948 2010-04-04  Bruno Haible  <bruno@clisp.org>
12949
12950         strerror: Update documentation.
12951         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12952
12953 2010-04-04  Bruno Haible  <bruno@clisp.org>
12954
12955         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12956         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12957         _GL_CXXALIAS_SYS_CAST.
12958
12959 2010-04-04  Bruno Haible  <bruno@clisp.org>
12960
12961         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12962         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12963         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12964         REPLACE_FREXPL to 1.
12965         * doc/posix-functions/frexpl.texi: Update documentation.
12966
12967 2010-04-04  Bruno Haible  <bruno@clisp.org>
12968
12969         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12970         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12971
12972 2010-04-04  Bruno Haible  <bruno@clisp.org>
12973
12974         Implement nanosleep for native Windows.
12975         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12976
12977 2010-04-04  Bruno Haible  <bruno@clisp.org>
12978
12979         math: Fix some C++ test errors on Solaris 8.
12980         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12981
12982 2010-04-04  Bruno Haible  <bruno@clisp.org>
12983
12984         math: Fix some C++ test errors on Cygwin.
12985         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12986         truncl): Provide declaration if the system does not have it.
12987         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12988         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12989         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12990         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12991         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12992         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12993         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12994         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12995         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12996         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12997         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12998         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12999         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13000         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13001         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13002         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13004         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13005         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13006         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13007         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13008         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13009
13010 2010-04-04  Bruno Haible  <bruno@clisp.org>
13011
13012         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13013         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13014         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13015         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13016         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13017         * m4/isinf.m4 (gl_ISINF): Likewise.
13018         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13019
13020 2010-04-04  Bruno Haible  <bruno@clisp.org>
13021
13022         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13023         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13024
13025 2010-04-04  Bruno Haible  <bruno@clisp.org>
13026
13027         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13028         * modules/tmpfile (configure.ac): Update.
13029
13030         tmpfile: Fix C++ test error on mingw.
13031         * lib/stdio.in.h (tmpfile): New declaration.
13032         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13033         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13034         * modules/tmpfile (Depends-on): Add stdio.
13035         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13036         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13037         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13038         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13039         REPLACE_TMPFILE.
13040         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13041
13042 2010-04-04  Bruno Haible  <bruno@clisp.org>
13043
13044         ioctl: Fix C++ test error on mingw.
13045         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13046         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13047         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13048
13049 2010-04-03  Bruno Haible  <bruno@clisp.org>
13050
13051         wcwidth: Fix C++ test error on mingw.
13052         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13054         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13055
13056 2010-04-03  Bruno Haible  <bruno@clisp.org>
13057
13058         nanosleep: Fix C++ test error on mingw.
13059         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13060         * lib/time.in.h (nanosleep): Use modern idiom.
13061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13062         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13063         REPLACE_NANOSLEEP to 1.
13064         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13065         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13066
13067 2010-04-03  Bruno Haible  <bruno@clisp.org>
13068
13069         strptime: Fix C++ test error on mingw.
13070         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13071         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13072         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13073         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13074         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13075         not REPLACE_STRPTIME.
13076         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13077         REPLACE_STRPTIME.
13078
13079 2010-04-03  Bruno Haible  <bruno@clisp.org>
13080
13081         timegm: Fix C++ test error on mingw.
13082         * lib/time.in.h (timegm): Use modern idiom.
13083         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13084         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13085         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13086         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13087
13088 2010-04-03  Bruno Haible  <bruno@clisp.org>
13089
13090         timegm: Assume declaration if function exists.
13091         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13092         if it exists. Don't clobber ac_cv_func_timegm.
13093
13094 2010-04-03  Bruno Haible  <bruno@clisp.org>
13095
13096         time_r: Fix C++ test error on mingw.
13097         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13098         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13099         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13100         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13101         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13102
13103 2010-04-03  Bruno Haible  <bruno@clisp.org>
13104
13105         time_r: Minor updates.
13106         * modules/time_r (Description): Mention the provided functions.
13107         * lib/time_r.c: Don't include <string.h>.
13108         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13109         * doc/posix-functions/localtime_r.texi: Likewise.
13110
13111 2010-04-03  Bruno Haible  <bruno@clisp.org>
13112
13113         time: Fix regression introduced on 2010-03-08.
13114         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13115         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13116
13117 2010-04-03  Jim Meyering  <meyering@redhat.com>
13118
13119         maint.mk: don't silently disable project-specific syntax-check rules
13120         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13121         that they need to convert their project-specific syntax-check rules
13122         to use the new _sc_search_regexp.
13123
13124 2010-04-03  Bruno Haible  <bruno@clisp.org>
13125
13126         fchdir: Fix regression introduced on 2010-03-08.
13127         * lib/unistd.in.h (fchdir): Fix declaration.
13128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13130         REPLACE_FCHDIR.
13131         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13132         REPLACE_FCHDIR.
13133
13134 2010-04-03  Bruno Haible  <bruno@clisp.org>
13135
13136         getpagesize: Fix C++ test error on mingw.
13137         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13138         system does not declare the function.
13139         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13140         declared.
13141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13142         HAVE_DECL_GETPAGESIZE.
13143         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13144
13145 2010-04-03  Bruno Haible  <bruno@clisp.org>
13146
13147         stdio: Make C++ tests work on mingw.
13148         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13149         does not declare the function.
13150
13151 2010-04-03  Bruno Haible  <bruno@clisp.org>
13152
13153         ftello: Fix C++ test error on mingw.
13154         * lib/stdio.in.h (ftello): Use modern idiom.
13155         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13156         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13157         is missing and that it needs to be replaced.
13158         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13160         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13161
13162 2010-04-03  Bruno Haible  <bruno@clisp.org>
13163
13164         fseeko: Fix C++ test error on mingw.
13165         * lib/stdio.in.h (fseeko): Use modern idiom.
13166         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13167         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13168         is missing and that it needs to be replaced.
13169         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13171         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13172
13173 2010-04-03  Bruno Haible  <bruno@clisp.org>
13174
13175         mkstemp: Fix C++ test error on mingw.
13176         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13178         function is missing and that it needs to be replaced.
13179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13180         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13181
13182 2010-04-03  Bruno Haible  <bruno@clisp.org>
13183
13184         stpncpy: Fix C++ test error on mingw.
13185         * lib/string.in.h (stpncpy): Use modern idiom.
13186         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13187         function is missing and that it needs to be replaced.
13188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13189         REPLACE_STPNCPY.
13190         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13191
13192 2010-04-03  Bruno Haible  <bruno@clisp.org>
13193
13194         sys_stat: Fix C++ test error on mingw.
13195         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13196         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13197
13198 2010-04-03  Bruno Haible  <bruno@clisp.org>
13199
13200         pty: Update doc.
13201         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13202
13203 2010-04-03  Bruno Haible  <bruno@clisp.org>
13204
13205         unistd: Fix C++ test error on mingw.
13206         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13207
13208 2010-04-03  Bruno Haible  <bruno@clisp.org>
13209
13210         Update doc regarding mingw.
13211         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13212         * doc/glibc-functions/login_tty.texi: Likewise.
13213         * doc/glibc-functions/forkpty.texi: Likewise.
13214
13215 2010-04-03  Bruno Haible  <bruno@clisp.org>
13216
13217         stdlib: Avoid compilation failure of c-strtold on mingw.
13218         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13219
13220 2010-04-03  Bruno Haible  <bruno@clisp.org>
13221
13222         locale: Make C++ tests work on Cygwin and mingw.
13223         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13224         cannot provide the function.
13225         Reported by Simon Josefsson.
13226
13227 2010-04-03  Bruno Haible  <bruno@clisp.org>
13228
13229         localename: Port to MacOS X 10.6.
13230         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13231         memory layout of the locales in MacOS X 10.6 as well.
13232         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13233
13234 2010-04-02  Bruno Haible  <bruno@clisp.org>
13235
13236         gnulib-tool: Ensure that long-running tests are executed last.
13237         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13238         running tests after the one for the other tests.
13239
13240 2010-04-02  Bruno Haible  <bruno@clisp.org>
13241
13242         gnulib-tool: Ensure the tests in the main directory are executed first.
13243         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13244         start with the current directory.
13245
13246 2010-04-02  Bruno Haible  <bruno@clisp.org>
13247
13248         Tests for module 'havelib', moved here from GNU gettext.
13249         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13250         modifications.
13251         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13252         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13253         with modifications.
13254         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13255         modifications.
13256         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13257         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13258         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13259         with modifications.
13260         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13261         with modifications.
13262         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13263         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13264         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13265         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13266         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13267         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13268         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13269         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13270         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13271         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13272         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13273         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13274         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13275         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13276         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13277         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13278         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13279         with modifications.
13280         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13281         with modifications.
13282         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13283         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13284         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13285         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13286         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13287         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13288         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13289         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13290         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13291         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13292         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13293         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13294         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13295         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13296         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13297         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13298         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13299         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13300         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13301         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13302         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13303         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13304         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13305         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13306         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13307         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13308         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13309         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13310         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13311         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13312         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13313         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13314         * tests/havelib/rpathx/rpathx.c: New file, from
13315         gettext/autoconf-lib-link.
13316         * tests/havelib/rpathx/Makefile.am: New file, from
13317         gettext/autoconf-lib-link.
13318         * tests/havelib/rpathx/configure.ac: New file, from
13319         gettext/autoconf-lib-link with modifications.
13320         * tests/havelib/rpathy/rpathy.c: New file, from
13321         gettext/autoconf-lib-link.
13322         * tests/havelib/rpathy/Makefile.am: New file, from
13323         gettext/autoconf-lib-link.
13324         * tests/havelib/rpathy/configure.ac: New file, from
13325         gettext/autoconf-lib-link with modifications.
13326         * tests/havelib/rpathz/rpathz.c: New file, from
13327         gettext/autoconf-lib-link.
13328         * tests/havelib/rpathz/Makefile.am: New file, from
13329         gettext/autoconf-lib-link.
13330         * tests/havelib/rpathz/configure.ac: New file, from
13331         gettext/autoconf-lib-link with modifications.
13332         * tests/havelib/rpathlx/usex.c: New file, from
13333         gettext/autoconf-lib-link.
13334         * tests/havelib/rpathlx/Makefile.am: New file, from
13335         gettext/autoconf-lib-link.
13336         * tests/havelib/rpathlx/configure.ac: New file, from
13337         gettext/autoconf-lib-link with modifications.
13338         * tests/havelib/rpathly/usey.c: New file, from
13339         gettext/autoconf-lib-link.
13340         * tests/havelib/rpathly/Makefile.am: New file, from
13341         gettext/autoconf-lib-link.
13342         * tests/havelib/rpathly/configure.ac: New file, from
13343         gettext/autoconf-lib-link with modifications.
13344         * tests/havelib/rpathlz/usez.c: New file, from
13345         gettext/autoconf-lib-link.
13346         * tests/havelib/rpathlz/Makefile.am: New file, from
13347         gettext/autoconf-lib-link.
13348         * tests/havelib/rpathlz/configure.ac: New file, from
13349         gettext/autoconf-lib-link with modifications.
13350         * tests/havelib/rpathlyx/usey.c: New file, from
13351         gettext/autoconf-lib-link.
13352         * tests/havelib/rpathlyx/Makefile.am: New file, from
13353         gettext/autoconf-lib-link.
13354         * tests/havelib/rpathlyx/configure.ac: New file, from
13355         gettext/autoconf-lib-link with modifications.
13356         * tests/havelib/rpathlzyx/usez.c: New file, from
13357         gettext/autoconf-lib-link.
13358         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13359         gettext/autoconf-lib-link.
13360         * tests/havelib/rpathlzyx/configure.ac: New file, from
13361         gettext/autoconf-lib-link with modifications.
13362         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13363         with modifications.
13364
13365 2010-04-02  Bruno Haible  <bruno@clisp.org>
13366
13367         gnulib-tool: Create distributed built sources also for the tests.
13368         * gnulib-tool (func_create_testdir): Also generate distributed built
13369         sources in the tests directory.
13370
13371 2010-04-02  Bruno Haible  <bruno@clisp.org>
13372
13373         gnulib-tool: Obey user's environment variables.
13374         * gnulib-tool (func_create_testdir): When creating built sources,
13375         respect the environment variables for autoconf, automake, etc. given by
13376         the user.
13377
13378 2010-04-02  Bruno Haible  <bruno@clisp.org>
13379
13380         gnulib-tool: Provide the value of --m4-base to modules.
13381         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13382         of gl_m4_base.
13383
13384 2010-04-02  Eric Blake  <eblake@redhat.com>
13385
13386         maint.mk: fix some fallout
13387         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13388         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13389
13390 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13391
13392         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13393         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13394         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13395         (sc_cast_of_x_alloc_return_value): Likewise.
13396         (sc_cast_of_alloca_return_value): Likewise.
13397         (sc_space_tab): Likewise.
13398         (sc_prohibit_atoi_atof): Likewise.
13399         (sc_prohibit_magic_number_exit): Likewise.
13400         (sc_error_exit_success): Likewise.
13401         (sc_file_system): Likewise.
13402         (sc_prohibit_have_config_h): Likewise.
13403         (sc_require_config_h): Likewise.
13404         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13405         (sc_obsolete_symbols): Likewise.
13406         (sc_changelog): Likewise.
13407         (sc_program_name): Likewise.
13408         (sc_the_the): Likewise.
13409         (sc_trailing_blank): Likewise.
13410         (sc_two_space_separator_in_usage): Likewise.
13411         (sc_useless_cpp_parens): Likewise.
13412         (sc_GPL_version): Likewise.
13413         (sc_GFDL_version): Likewise.
13414         (sc_texinfo_acronym): Likewise.
13415         (sc_prohibit_cvs_keyword): Likewise.
13416         (sc_prohibit_stat_st_blocks): Likewise.
13417         (sc_prohibit_S_IS_definition): Likewise.
13418         (sc_redundant_const): Likewise.
13419         (sc_makefile_TAB_only_indentation): Likewise.
13420         (sc_m4_quote_check): Likewise.
13421         (sc_makefile_path_separator_check): Likewise.
13422         (sc_copyright_check): Likewise.
13423         (sc_Wundef_boolean): Likewise.
13424         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13425
13426         maint.mk: match 0 or more whitespace-before-function-call '('
13427         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13428         that have zero or two-and-more spaces between the function name
13429         and the open parenthesis.
13430         (sc_error_message_warn_fatal): Likewise.
13431         (sc_error_message_uppercase): Likewise.
13432         (sc_error_message_period): Likewise.
13433
13434 2010-03-31  Eric Blake  <eblake@redhat.com>
13435
13436         maint.mk: check for [ as well as test
13437         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13438         Based on a libvirt report by Matthias Bolte.
13439
13440         gnumakefile: don't squelch _version output
13441         * top/GNUmakefile (_version): Create one-shot dependency rather
13442         than using $(shell) when version must be regenerated.
13443         (_autoreconf): Run verbosely, by default.
13444
13445         sys_time: avoid compiler warnings
13446         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13447         unconditional, fixing regression from 2010-03-29.
13448         Reported by Simon Josefsson.
13449
13450 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13451
13452         maint.mk: s/_header_without_use/_sc_header_without_use/
13453         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13454         (sc_prohibit_assert_without_use): Use the new name.
13455         (sc_prohibit_close_stream_without_use): Likewise.
13456         (sc_prohibit_getopt_without_use): Likewise.
13457         (sc_prohibit_quotearg_without_use): Likewise.
13458         (sc_prohibit_quote_without_use): Likewise.
13459         (sc_prohibit_long_options_without_use): Likewise.
13460         (sc_prohibit_inttostr_without_use): Likewise.
13461         (sc_prohibit_ignore_value_without_use): Likewise.
13462         (sc_prohibit_error_without_use): Likewise.
13463         (sc_prohibit_xalloc_without_use): Likewise.
13464         (sc_prohibit_hash_without_use): Likewise.
13465         (sc_prohibit_hash_pjw_without_use): Likewise.
13466         (sc_prohibit_safe_read_without_use): Likewise.
13467         (sc_prohibit_argmatch_without_use): Likewise.
13468         (sc_prohibit_canonicalize_without_use): Likewise.
13469         (sc_prohibit_root_dev_ino_without_use): Likewise.
13470         (sc_prohibit_openat_without_use): Likewise.
13471         (sc_prohibit_c_ctype_without_use): Likewise.
13472         (sc_prohibit_signal_without_use): Likewise.
13473         (sc_prohibit_intprops_without_use): Likewise.
13474
13475 2010-03-30  Eric Blake  <eblake@redhat.com>
13476
13477         maint: improve module indicators
13478         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13479         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13480         columns, and avoid extra macro expansion.
13481
13482         fdopendir: work around FreeBSD bug
13483         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13484         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13485         * modules/dirent (Makefile.am): Substitute it.
13486         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13487         declaration.
13488         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13489         fix.
13490         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13491
13492 2010-03-29  Bruno Haible  <bruno@clisp.org>
13493
13494         Emit #pragma system_header after the inclusion guard, not before.
13495         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13496         guard that spans the entire file, not before. This enables an
13497         optimization in GCC's preprocessor.
13498         * lib/ctype.in.h: Likewise.
13499         * lib/dirent.in.h: Likewise.
13500         * lib/errno.in.h: Likewise.
13501         * lib/float.in.h: Likewise.
13502         * lib/getopt.in.h: Likewise.
13503         * lib/iconv.in.h: Likewise.
13504         * lib/langinfo.in.h: Likewise.
13505         * lib/locale.in.h: Likewise.
13506         * lib/math.in.h: Likewise.
13507         * lib/netdb.in.h: Likewise.
13508         * lib/netinet_in.in.h: Likewise.
13509         * lib/pty.in.h: Likewise.
13510         * lib/sched.in.h: Likewise.
13511         * lib/se-selinux.in.h: Likewise.
13512         * lib/search.in.h: Likewise.
13513         * lib/spawn.in.h: Likewise.
13514         * lib/stdarg.in.h: Likewise.
13515         * lib/stdint.in.h: Likewise.
13516         * lib/string.in.h: Likewise.
13517         * lib/strings.in.h: Likewise.
13518         * lib/sys_file.in.h: Likewise.
13519         * lib/sys_ioctl.in.h: Likewise.
13520         * lib/sys_time.in.h: Likewise.
13521         * lib/sys_times.in.h: Likewise.
13522         * lib/sys_utsname.in.h: Likewise.
13523         * lib/sys_wait.in.h: Likewise.
13524         * lib/sysexits.in.h: Likewise.
13525         * lib/wctype.in.h: Likewise.
13526
13527 2010-03-28  James Youngman  <jay@gnu.org>
13528
13529         save-cwd: don't leak a file descriptor when the caller execs.
13530         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13531         saved file descriptor.
13532         * modules/save-cwd (Depends-on): Depend on cloexec.
13533
13534 2010-03-29  Bruno Haible  <bruno@clisp.org>
13535
13536         Remove vestiges of fts-lgpl module.
13537         * lib/fts_.h: Assume GNULIB_FTS is 1.
13538         * lib/fts.c: Likewise.
13539         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13540
13541 2010-03-28  Bruno Haible  <bruno@clisp.org>
13542
13543         Fix definition of tests witness macro.
13544         * gnulib-tool (func_import): Fix definition of witness macro.
13545
13546 2010-03-28  Bruno Haible  <bruno@clisp.org>
13547
13548         Fix ioctl's protoype on glibc systems.
13549         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13550         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13551         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13552         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13553         signature. If not, arrange to replace the ioctl function.
13554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13555         REPLACE_IOCTL.
13556         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13557         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13558         Reported by Ludovic Courtès <ludo@gnu.org>.
13559
13560 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13561
13562         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13563         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13564         made it so grep -r --include=GLOB* ... did not work.
13565
13566 2010-03-26  Jim Meyering  <meyering@redhat.com>
13567             Eric Blake  <eblake@redhat.com>
13568
13569         maint.mk: prohibit use of test's -o and -a operators
13570         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13571
13572 2010-03-28  Bruno Haible  <bruno@clisp.org>
13573
13574         Remove unused GNULIB_XYZ macro definitions.
13575         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13576         invocation.
13577
13578 2010-03-28  Bruno Haible  <bruno@clisp.org>
13579
13580         Mark privileged tests modules.
13581         * modules/idpriv-drop-tests (Status): New section.
13582         * modules/idpriv-droptemp-tests (Status): New section.
13583
13584 2010-03-28  Bruno Haible  <bruno@clisp.org>
13585
13586         Split C++ tests into separate tests modules.
13587         * modules/dirent-c++-tests: New file, extracted from
13588         modules/dirent-tests.
13589         * modules/dirent-tests: Depend on it.
13590         * modules/fcntl-h-c++-tests: New file, extracted from
13591         modules/fcntl-h-tests.
13592         * modules/fcntl-h-tests: Depend on it.
13593         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13594         * modules/glob-tests: Depend on it.
13595         * modules/iconv-h-c++-tests: New file, extracted from
13596         modules/iconv-h-tests.
13597         * modules/iconv-h-tests: Depend on it.
13598         * modules/langinfo-c++-tests: New file, extracted from
13599         modules/langinfo-tests.
13600         * modules/langinfo-tests: Depend on it.
13601         * modules/locale-c++-tests: New file, extracted from
13602         modules/locale-tests.
13603         * modules/locale-tests: Depend on it.
13604         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13605         * modules/math-tests: Depend on it.
13606         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13607         * modules/pty-tests: Depend on it.
13608         * modules/search-c++-tests: New file, extracted from
13609         modules/search-tests.
13610         * modules/search-tests: Depend on it.
13611         * modules/signal-c++-tests: New file, extracted from
13612         modules/signal-tests.
13613         * modules/signal-tests: Depend on it.
13614         * modules/spawn-c++-tests: New file, extracted from
13615         modules/spawn-tests.
13616         * modules/spawn-tests: Depend on it.
13617         * modules/stdio-c++-tests: New file, extracted from
13618         modules/stdio-tests.
13619         * modules/stdio-tests: Depend on it.
13620         * modules/stdlib-c++-tests: New file, extracted from
13621         modules/stdlib-tests.
13622         * modules/stdlib-tests: Depend on it.
13623         * modules/string-c++-tests: New file, extracted from
13624         modules/string-tests.
13625         * modules/string-tests: Depend on it.
13626         * modules/sys_ioctl-c++-tests: New file, extracted from
13627         modules/sys_ioctl-tests.
13628         * modules/sys_ioctl-tests: Depend on it.
13629         * modules/sys_select-c++-tests: New file, extracted from
13630         modules/sys_select-tests.
13631         * modules/sys_select-tests: Depend on it.
13632         * modules/sys_socket-c++-tests: New file, extracted from
13633         modules/sys_socket-tests.
13634         * modules/sys_socket-tests: Depend on it.
13635         * modules/sys_stat-c++-tests: New file, extracted from
13636         modules/sys_stat-tests.
13637         * modules/sys_stat-tests: Depend on it.
13638         * modules/sys_time-c++-tests: New file, extracted from
13639         modules/sys_time-tests.
13640         * modules/sys_time-tests: Depend on it.
13641         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13642         * modules/time-tests: Depend on it.
13643         * modules/unistd-c++-tests: New file, extracted from
13644         modules/unistd-tests.
13645         * modules/unistd-tests: Depend on it.
13646         * modules/wchar-c++-tests: New file, extracted from
13647         modules/wchar-tests.
13648         * modules/wchar-tests: Depend on it.
13649         * modules/wctype-c++-tests: New file, extracted from
13650         modules/wctype-tests.
13651         * modules/wctype-tests: Depend on it.
13652         Reported by Simon Josefsson.
13653
13654 2010-03-28  Bruno Haible  <bruno@clisp.org>
13655
13656         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13657         * gnulib-tool (func_exists_module): New function, extracted from
13658         func_verify_module.
13659         (func_verify_module): Use it.
13660         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13661         'foo' only if 'foo' exists.
13662         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13663         module.
13664
13665 2010-03-28  Bruno Haible  <bruno@clisp.org>
13666
13667         gnulib-tool: Add support for special categories of tests.
13668         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13669         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13670         (func_usage): Document them.
13671         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13672         inc_unportable_tests, inc_all_tests): New variables.
13673         (func_acceptable): Consider these variables.
13674         (func_modules_transitive_closure): Make it work when the 'Status' field
13675         consists of multiple words.
13676         (func_import): Store and restore the values of inc_cxx_tests,
13677         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13678         inc_all_tests in gnulib-comp.m4.
13679         (func_create_testdir): Set inc_all_tests to true.
13680         * doc/gnulib.texi (Extra tests modules): New section.
13681         Suggested by Jim Meyering.
13682
13683 2010-03-28  Bruno Haible  <bruno@clisp.org>
13684
13685         ansi-c++-opt: Allow turning off the C++ build by default.
13686         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13687         gl_CXX_CHOICE_DEFAULT_NO is defined.
13688         Requested by Eric Blake.
13689
13690 2010-03-28  Bruno Haible  <bruno@clisp.org>
13691
13692         unistd: Avoid #define replacements in C++ mode.
13693         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13694         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13695         setsockopt, shutdown, select): In C++, attach a warning to the function
13696         if possible, rather than #defining the symbol to a dysfunctional alias.
13697         Reported by John W. Eaton <jwe@gnu.org>.
13698
13699 2010-03-28  Bruno Haible  <bruno@clisp.org>
13700
13701         Fix link errors on mingw.
13702         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13703         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13704         $(LIBSOCKET).
13705         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13706         $(LIBSOCKET).
13707
13708 2010-03-28  Bruno Haible  <bruno@clisp.org>
13709             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13710
13711         lib-ignore: Determine different options for different compilers.
13712         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13713         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13714         Add comments.
13715         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13716         * NEWS: Mention the change.
13717
13718 2010-03-27  Bruno Haible  <bruno@clisp.org>
13719
13720         Remove unused GNULIB_XYZ macro definitions.
13721         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13722         * modules/fseek (configure.ac): Likewise.
13723         * modules/ioctl (configure.ac): Likewise.
13724         * modules/open (configure.ac): Likewise.
13725         * modules/stdlib-safer (configure.ac): Likewise.
13726
13727 2010-03-27  Bruno Haible  <bruno@clisp.org>
13728
13729         Add a remark about certain modules.
13730         * modules/malloc (Comment): New section.
13731         * modules/realloc (Comment): Likewise.
13732         * modules/sigpipe (Comment): Likewise.
13733
13734 2010-03-27  Bruno Haible  <bruno@clisp.org>
13735
13736         Resolve conflict between the two kinds of module indicators.
13737         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13738         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13739         * modules/canonicalize (configure.ac): Invoke
13740         gl_MODULE_INDICATOR_FOR_TESTS.
13741         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13742         GNULIB_XYZ.
13743         * tests/test-dirent-c++.cc: Likewise.
13744         * tests/test-dirent-safer.c: Likewise.
13745         * tests/test-dup2.c: Likewise.
13746         * tests/test-fchdir.c: Likewise.
13747         * tests/test-fcntl-h-c++.cc: Likewise.
13748         * tests/test-getopt.c: Likewise.
13749         * tests/test-getopt.h: Likewise.
13750         * tests/test-langinfo-c++.cc: Likewise.
13751         * tests/test-locale-c++.cc: Likewise.
13752         * tests/test-math-c++.cc: Likewise.
13753         * tests/test-pty-c++.cc: Likewise.
13754         * tests/test-search-c++.cc: Likewise.
13755         * tests/test-signal-c++.cc: Likewise.
13756         * tests/test-spawn-c++.cc: Likewise.
13757         * tests/test-stdio-c++.cc: Likewise.
13758         * tests/test-stdlib-c++.cc: Likewise.
13759         * tests/test-string-c++.cc: Likewise.
13760         * tests/test-sys_ioctl-c++.cc: Likewise.
13761         * tests/test-sys_select-c++.cc: Likewise.
13762         * tests/test-sys_socket-c++.cc: Likewise.
13763         * tests/test-sys_stat-c++.cc: Likewise.
13764         * tests/test-sys_time-c++.cc: Likewise.
13765         * tests/test-time-c++.cc: Likewise.
13766         * tests/test-unistd-c++.cc: Likewise.
13767         * tests/test-wchar-c++.cc: Likewise.
13768         * tests/uninorm/test-u8-nfc.c: Likewise.
13769         * tests/uninorm/test-u8-nfd.c: Likewise.
13770         * tests/uninorm/test-u8-nfkc.c: Likewise.
13771         * tests/uninorm/test-u8-nfkd.c: Likewise.
13772         * tests/uninorm/test-u16-nfc.c: Likewise.
13773         * tests/uninorm/test-u16-nfd.c: Likewise.
13774         * tests/uninorm/test-u16-nfkc.c: Likewise.
13775         * tests/uninorm/test-u16-nfkd.c: Likewise.
13776         * tests/uninorm/test-u32-nfc.c: Likewise.
13777         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13778         * tests/uninorm/test-u32-nfd.c: Likewise.
13779         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13780         * tests/uninorm/test-u32-nfkc.c: Likewise.
13781         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13782         * tests/uninorm/test-u32-nfkd.c: Likewise.
13783         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13784         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13785
13786 2010-03-27  Bruno Haible  <bruno@clisp.org>
13787
13788         Distinguish two kinds of module indicators.
13789         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13790         gl_MODULE_INDICATOR.
13791         (gl_MODULE_INDICATOR): New macro.
13792         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13793         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13794         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13795         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13796         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13797         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13798         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13799         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13800         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13801         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13802         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13803         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13806         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13807         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13808         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13809         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13810         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13811         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13812         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13813         * modules/cloexec (configure.ac): Likewise.
13814         * modules/getopt-gnu (configure.ac): Likewise.
13815         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13816         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13817         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13818         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13819
13820 2010-03-27  Bruno Haible  <bruno@clisp.org>
13821
13822         New module description field 'Comment'.
13823         * gnulib-tool: New option --extract-comment.
13824         (func_usage): Document it.
13825         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13826         (func_get_comment): New function.
13827         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13828
13829 2010-03-27  Bruno Haible  <bruno@clisp.org>
13830
13831         Addendum to 2010-02-07 commit.
13832         * gnulib-tool (func_usage): Document --extract-applicability option.
13833
13834 2010-03-27  Bruno Haible  <bruno@clisp.org>
13835
13836         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13837         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13838         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13839         rather than link errors.
13840
13841 2010-03-27  Bruno Haible  <bruno@clisp.org>
13842
13843         Avoid side effects from tests-related modules on the compilation of lib.
13844         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13845         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13846         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13847         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13848         macro.
13849         (func_import): Define a witness macro. Assign it a value that depends
13850         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13851         tests-related modules.
13852         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13853         Reported by Jim Meyering.
13854
13855 2010-03-27  Bruno Haible  <bruno@clisp.org>
13856
13857         Factorize common .m4 code.
13858         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13859         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13860         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13861         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13862         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13863         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13864         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13865         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13866         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13867         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13868         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13869         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13870         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13871         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13872         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13873         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13874         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13875         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13877         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13878         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13879         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13880         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13881         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13882         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13883         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13884         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13885         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13886         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13887         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13888         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13889         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13890
13891 2010-03-27  Bruno Haible  <bruno@clisp.org>
13892
13893         Fix a compilation error on Cygwin with g++ >= 4.3.
13894         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13895         if it is undefined or if we alias it to chmod.
13896         (lstat): Don't warn about the use of this function if it is undefined
13897         or if we alias it to stat.
13898         Reported by Simon Josefsson.
13899
13900 2010-03-27  Bruno Haible  <bruno@clisp.org>
13901
13902         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13903         * modules/getlogin (configure.ac): Update.
13904
13905         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13906         * modules/getlogin_r (configure.ac): Update.
13907
13908         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13910         * modules/inet_ntop (configure.ac): Update.
13911
13912         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13913         * modules/inet_pton (configure.ac): Update.
13914
13915         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13916         * modules/mbslen (configure.ac): Update.
13917
13918         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13919         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13920         * modules/forkpty (configure.ac): Update.
13921         * modules/openpty (configure.ac): Update.
13922
13923 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13924
13925         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13926         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13927
13928 2010-03-25  Eric Blake  <eblake@redhat.com>
13929
13930         maint: use pragma consistently across replacement headers
13931         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13932         * lib/dirent.in.h (system_header): Likewise.
13933         * lib/errno.in.h (system_header): Likewise.
13934         * lib/float.in.h (system_header): Likewise.
13935         * lib/getopt.in.h (system_header): Likewise.
13936         * lib/iconv.in.h (system_header): Likewise.
13937         * lib/inttypes.in.h (system_header): Likewise.
13938         * lib/langinfo.in.h (system_header): Likewise.
13939         * lib/locale.in.h (system_header): Likewise.
13940         * lib/math.in.h (system_header): Likewise.
13941         * lib/netdb.in.h (system_header): Likewise.
13942         * lib/netinet_in.in.h (system_header): Likewise.
13943         * lib/pty.in.h (system_header): Likewise.
13944         * lib/sched.in.h (system_header): Likewise.
13945         * lib/se-selinux.in.h (system_header): Likewise.
13946         * lib/search.in.h (system_header): Likewise.
13947         * lib/spawn.in.h (system_header): Likewise.
13948         * lib/stdarg.in.h (system_header): Likewise.
13949         * lib/stdint.in.h (system_header): Likewise.
13950         * lib/string.in.h (system_header): Likewise.
13951         * lib/strings.in.h (system_header): Likewise.
13952         * lib/sys_file.in.h (system_header): Likewise.
13953         * lib/sys_ioctl.in.h (system_header): Likewise.
13954         * lib/sys_socket.in.h (system_header): Likewise.
13955         * lib/sys_times.in.h (system_header): Likewise.
13956         * lib/sys_utsname.in.h (system_header): Likewise.
13957         * lib/sys_wait.in.h (system_header): Likewise.
13958         * lib/sysexits.in.h (system_header): Likewise.
13959         * lib/unistd.in.h (system_header): Likewise.
13960         * lib/wctype.in.h (system_header): Likewise.
13961
13962         arpa/inet: fix mingw compilation warning
13963         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13964         Reported by Matthew Bolte.
13965
13966 2010-03-25  Bruno Haible  <bruno@clisp.org>
13967
13968         Avoid collision between gnulib wrapper and libintl wrapper.
13969         * lib/printf.c (printf): Don't define if a printf wrapper is already
13970         defined in intl/printf.c.
13971         Reported by Michel Boaventura <michel@michelboaventura.com>.
13972
13973 2010-03-25  Bruno Haible  <bruno@clisp.org>
13974
13975         Use ANSI C.
13976         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13977
13978 2010-03-25  Bruno Haible  <bruno@clisp.org>
13979
13980         Minor formatting changes.
13981         * lib/acosl.c: Insert space before function argument list.
13982         * lib/argz.c: Likewise.
13983         * lib/asinl.c: Likewise.
13984         * lib/expl.c: Likewise.
13985         * lib/gen-uni-tables.c: Likewise.
13986         * lib/gettext.h: Likewise.
13987         * lib/glthread/lock.h: Likewise.
13988         * lib/tanl.c: Likewise.
13989         * lib/uniname/uniname.c: Likewise.
13990         * tests/test-idpriv-drop.c: Likewise.
13991         * tests/test-idpriv-droptemp.c: Likewise.
13992         * tests/test-lock.c: Likewise.
13993         * tests/test-tls.c: Likewise.
13994         * lib/argp-help.c: Insert space before function-like macro argument
13995         list.
13996         * lib/memcmp.c: Likewise.
13997         * tests/test-base64.c: Likewise.
13998         * lib/localename.c: Insert space before sizeof's argument list.
13999         * lib/safe-alloc.h: Likewise.
14000         * lib/file-set.h: Insert space before macro argument list.
14001         * tests/test-argp.c: Likewise.
14002         * lib/argp-namefrob.h: Insert space before function parameter list.
14003         * lib/getaddrinfo.c: Likewise.
14004         * lib/netdb.in.h: Likewise.
14005         * lib/parse-duration.h: Likewise.
14006         * lib/parse-duration.c: Likewise.
14007         * lib/poll.c: Likewise.
14008         * lib/select.c: Likewise.
14009         * lib/trim.h: Likewise.
14010         * tests/test-usleep.c: Likewise.
14011         * lib/ldexpl.c: Insert space before function parameter list and before
14012         function argument list.
14013         * lib/logl.c: Likewise.
14014         * lib/sqrtl.c: Likewise.
14015         * lib/trim.c: Likewise.
14016         * lib/cosl.c: Use GNU style indentation. Insert space before function
14017         argument list.
14018         * lib/sinl.c: Likewise.
14019         * lib/tsearch.c: Insert space after 'for'.
14020         Reported by Jim Meyering.
14021
14022 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14023
14024         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14025         config header before grepping, as it's not present before
14026         autoreconf/configure are run.  Reported by Simon Josefsson.
14027
14028 2010-03-23  Bruno Haible  <bruno@clisp.org>
14029
14030         pt_chown: Make it work with automake < 1.11.
14031         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14032         Reported by Simon Josefsson.
14033
14034 2010-03-23  Bruno Haible  <bruno@clisp.org>
14035
14036         pt_chown: Don't depend on GPLed modules.
14037         * lib/pt_chown.c: Don't include idpriv.h.
14038         (main): Don't drop privileges.
14039         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14040         Reported by Simon Josefsson.
14041
14042 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14043
14044         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14045         suggestions from karl@freefriends.org (Karl Berry).
14046
14047 2010-03-22  Eric Blake  <eblake@redhat.com>
14048
14049         gethostname: further tweaks
14050         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14051         are overriding gethostname.
14052         Suggested by Bruno Haible.
14053
14054 2010-03-21  Bruno Haible  <bruno@clisp.org>
14055
14056         Fix comments.
14057         * lib/forkpty.c (rpl_forkpty): Fix comment.
14058         * lib/openpty.c (rpl_openpty): Likewise.
14059         Reported by Eric Blake.
14060
14061 2010-03-22  Eric Blake  <eblake@redhat.com>
14062
14063         gethostname: fix build on mingw
14064         * lib/unistd.in.h (includes): Work around fact that mingw
14065         <winsock2.h> re-includes <unistd.h>, by avoiding any
14066         redeclarations if we are being included by <winsock2.h>.
14067         Reported by Matthias Bolte.
14068
14069 2010-03-21  Bruno Haible  <bruno@clisp.org>
14070
14071         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14072         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14073         modifications.
14074         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14075         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14076         provide the replacement.
14077         * modules/forkpty (Depends-on): Add openpty, login_tty.
14078         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14079         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14080         * doc/glibc-functions/forkpty.texi: More supported platforms.
14081         * config/srclist.txt: Add forkpty.c (commented).
14082
14083 2010-03-21  Bruno Haible  <bruno@clisp.org>
14084
14085         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14086         (Makefile.am): Verify that PTY_LIB is defined.
14087
14088         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14089
14090 2010-03-21  Bruno Haible  <bruno@clisp.org>
14091
14092         Tests for module 'login_tty'.
14093         * modules/login_tty-tests: New file.
14094         * tests/test-login_tty.c: New file.
14095
14096         New module 'login_tty'.
14097         * lib/login_tty.c: New file.
14098         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14099         * modules/login_tty: New file.
14100         * doc/glibc-functions/login_tty.texi: Mention the new module.
14101
14102 2010-03-21  Bruno Haible  <bruno@clisp.org>
14103
14104         login_tty: Documentation.
14105         * doc/glibc-functions/login_tty.texi: New file.
14106         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14107
14108 2010-03-21  Bruno Haible  <bruno@clisp.org>
14109
14110         pty: Consistent macro naming.
14111         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14112         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14113         * modules/pty (configure.ac): Update.
14114
14115 2010-03-21  Bruno Haible  <bruno@clisp.org>
14116
14117         Tests for openpty: Make stricter.
14118         * tests/test-openpty.c (main): Add test of canonical processing and
14119         erase.
14120         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14121
14122         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14123         * lib/openpty.c (openpty): New replacement function.
14124         * lib/pty.in.h: Include <termios.h>.
14125         (openpty): Update declaration. Add comments.
14126         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14127         is not declared, arrange to provide the replacement. Check for _getpty
14128         and posix_openpt.
14129         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14130         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14131         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14132         * modules/pty-tests (test_pty_c___LDADD): New variable.
14133         * doc/glibc-functions/openpty.texi: More supported platforms.
14134
14135 2010-03-21  Bruno Haible  <bruno@clisp.org>
14136
14137         setenv: Tweaks.
14138         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14139         the test program.
14140         * doc/posix-functions/setenv.texi: Update platforms list.
14141
14142 2010-03-21  Bruno Haible  <bruno@clisp.org>
14143
14144         New module 'unlockpt'.
14145         * lib/unlockpt.c: New file, from glibc with modifications.
14146         * m4/unlockpt.m4: New file.
14147         * modules/unlockpt: New file.
14148         * lib/stdlib.in.h (unlockpt): New declaration.
14149         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14150         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14151         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14152         HAVE_UNLOCKPT.
14153         * doc/posix-functions/unlockpt.texi: Mention the new module.
14154         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14155         * config/srclist.txt: Add unlockpt.c (commented).
14156
14157 2010-03-21  Jim Meyering  <meyering@redhat.com>
14158
14159         maint.mk: prohibit inclusion of "intprops.h" without use
14160         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14161
14162 2010-03-21  Bruno Haible  <bruno@clisp.org>
14163
14164         New module 'grantpt'.
14165         * lib/grantpt.c: New file, from glibc with modifications.
14166         * m4/grantpt.m4: New file.
14167         * modules/grantpt: New file.
14168         * lib/stdlib.in.h (grantpt): New declaration.
14169         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14170         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14171         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14172         HAVE_GRANTPT.
14173         * doc/posix-functions/grantpt.texi: Mention the new module.
14174         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14175         * config/srclist.txt: Add grantpt.c (commented).
14176
14177 2010-03-21  Bruno Haible  <bruno@clisp.org>
14178
14179         New module 'pt_chown'.
14180         * lib/pt_chown.c: New file, from glibc with modifications.
14181         * lib/pty-private.h: New file, from glibc with modifications.
14182         * modules/pt_chown: New file.
14183         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14184
14185 2010-03-21  Bruno Haible  <bruno@clisp.org>
14186
14187         Tests for module 'ptsname'.
14188         * modules/ptsname-tests: New file.
14189         * tests/test-ptsname.c: New file.
14190
14191         New module 'ptsname'.
14192         * lib/ptsname.c: New file, from glibc with modifications.
14193         * m4/ptsname.m4: New file.
14194         * modules/ptsname: New file.
14195         * lib/stdlib.in.h (ptsname): New declaration.
14196         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14197         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14198         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14199         HAVE_PTSNAME.
14200         * doc/posix-functions/ptsname.texi: Mention the new module.
14201         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14202         * config/srclist.txt: Add ptsname.c (commented).
14203
14204 2010-03-21  Bruno Haible  <bruno@clisp.org>
14205
14206         Tests for module 'ttyname_r'.
14207         * modules/ttyname_r-tests: New file.
14208         * tests/test-ttyname_r.c: New file.
14209
14210         New module 'ttyname_r'.
14211         * lib/ttyname_r.c: New file.
14212         * m4/ttyname_r.m4: New file.
14213         * modules/ttyname_r: New file.
14214         * lib/unistd.in.h (ttyname_r): New declaration.
14215         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14216         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14217         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14218         HAVE_TTYNAME_R.
14219         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14220         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14221
14222 2010-03-20  Bruno Haible  <bruno@clisp.org>
14223
14224         signal: Undefine macro definitions in C++ mode.
14225         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14226         sigfillset): Undefine macro definitions from the system header in C++
14227         mode.
14228         Reported by John W. Eaton <jwe@gnu.org>.
14229
14230 2010-03-20  Bruno Haible  <bruno@clisp.org>
14231
14232         Ensure no #include statements inside extern "C" { ... }.
14233         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14234         contain #include statements.
14235         * lib/time.in.h: Likewise.
14236
14237 2010-03-20  Bruno Haible  <bruno@clisp.org>
14238
14239         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14240         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14241         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14242         Reported by John W. Eaton <jwe@gnu.org>.
14243
14244 2010-03-20  Bruno Haible  <bruno@clisp.org>
14245
14246         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14247         Reported by Jim Meyering.
14248
14249 2010-03-20  Bruno Haible  <bruno@clisp.org>
14250
14251         pipe: Set errno upon failure.
14252         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14253         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14254         errno value in error message.
14255
14256 2010-03-20  Bruno Haible  <bruno@clisp.org>
14257             Jim Meyering  <meyering@redhat.com>
14258
14259         lchown: Avoid "unused variable" warning.
14260         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14261
14262 2010-03-20  Bruno Haible  <bruno@clisp.org>
14263
14264         Work around unlink() bug on MacOS X 10.5.6.
14265         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14266         attempting to unlink a parent directory.
14267         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14268         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14269         activate for the replacement function.
14270         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14271
14272 2010-03-20  Bruno Haible  <bruno@clisp.org>
14273
14274         Fix link errors on Solaris 8.
14275         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14276         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14277
14278 2010-03-19  Jim Meyering  <meyering@redhat.com>
14279
14280         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14281         The _LIBC implementation of build_range_exp correctly honors the
14282         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14283         However, the non-_LIBC implementation would ignore that syntax-bit
14284         flag and return REG_ERANGE unconditionally.
14285         This change makes it honor that flag.
14286         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14287         Make two pointer parameters "const".
14288         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14289         (parse_bracket_exp): Update caller.
14290
14291         regex.m4: correct the reversed range endpoint ([b-a]) test
14292         * m4/regex.m4: When requiring that [b-a] evoke failure,
14293         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14294         test pass once again for x86-based systems.
14295
14296 2010-03-19  Bruno Haible  <bruno@clisp.org>
14297
14298         scandir: Fix link error on Solaris 8.
14299         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14300         macros.
14301
14302 2010-03-19  Bruno Haible  <bruno@clisp.org>
14303
14304         getusershell: Fix documentation.
14305         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14306         module.
14307         * doc/glibc-functions/setusershell.texi: Likewise.
14308
14309         getusershell: Provide declaration, missing on Solaris 9.
14310         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14311         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14312         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14313         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14315         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14316         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14317         HAVE_GETUSERSHELL.
14318         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14319
14320 2010-03-19  Bruno Haible  <bruno@clisp.org>
14321
14322         wctype: Provide iswblank function.
14323         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14324         exists and is fine.
14325         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14326         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14327         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14328         * doc/posix-functions/iswblank.texi: Update.
14329
14330 2010-03-19  Bruno Haible  <bruno@clisp.org>
14331
14332         Tests of module 'pty' in C++ mode.
14333         * modules/pty-tests: New file.
14334         * tests/test-pty-c++.cc: New file.
14335         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14336
14337 2010-03-19  Eric Blake  <eblake@redhat.com>
14338
14339         logb: fix documentation
14340         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14341         1.5 declaration bug.
14342
14343         forkpty, openpty: prefer glibc's const-safe prototype
14344         * lib/forkpty.c (rpl_forkpty): New file.
14345         * lib/openpty.c (rpl_openpty): Likewise.
14346         * modules/forkpty (Files): Distribute it.
14347         * modules/openpty (Files): Likewise.
14348         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14349         check...
14350         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14351         replacement for for non-const BSD signature.
14352         * modules/pty (Makefile.am): Substitute witnesses.
14353         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14354         * tests/test-forkpty.c: Update signature check.
14355         * tests/test-openpty.c: Likewise.
14356         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14357         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14358
14359         forkpty, openpty: split functions into new modules
14360         * modules/pty (Makefile.am): Substitute new witnesses.
14361         (Libraries): Move library detection...
14362         * modules/forkpty: ...into new module.
14363         * modules/openpty: Another new module.
14364         * modules/pty-tests: Rename and split...
14365         * modules/forkpty-tests: ...to this...
14366         * modules/openpty-tests: ...and this.
14367         * tests/test-pty.c: Rename and split...
14368         * tests/test-forkpty.c: ...to this...
14369         * tests/test-openpty.c: ...and this.
14370         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14371         (gl_PTY): Split library searching...
14372         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14373         (gl_FORKPTY, gl_OPENPTY): New macros.
14374         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14375         * NEWS: Mention the split.
14376         * MODULES.html.sh (Misc): Document the modules.
14377         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14378         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14379
14380         pty: improve replacement header
14381         * lib/pty.in.h: New file.
14382         * modules/pty (Files): Ship it.
14383         (Makefile.am): Always build replacement.
14384         * m4/pty.m4: Rename...
14385         * m4/pty_h.m4: ...to this.
14386         (gl_PTY): Modernize setting of witness macros; update check of
14387         forkpty to take proper advantage of cache.
14388         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14389
14390         getopt: avoid compiler warning
14391         * lib/getopt.c (attribute_hidden): Remove unused macro.
14392
14393 2010-03-18  Bruno Haible  <bruno@clisp.org>
14394
14395         Fix link errors on Solaris 8.
14396         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14397         * modules/search-tests (test_search_c___LDADD): Likewise.
14398         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14399         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14400         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14401         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14402         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14403         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14404         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14405
14406 2010-03-18  Bruno Haible  <bruno@clisp.org>
14407
14408         Fix bug introduced on 2010-03-14.
14409         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14410         (gl_SPAWN_H): Require it.
14411         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14412         Reported by Simon Josefsson.
14413
14414 2010-03-18  Bruno Haible  <bruno@clisp.org>
14415
14416         Fix typo introduced on 2009-12-31.
14417         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14418         posix_spawn_file_actions_adddup2.
14419
14420 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14421         and Eric Blake  <eblake@redhat.com>
14422
14423         test-vc-list-files-git: make more robust
14424         * tests/test-vc-list-files-git.sh: Unset problematic environment
14425         variables.  Chain commands together.
14426
14427 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14428
14429         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14430         `AC_CHECK_DECL' invocation.
14431
14432 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14433
14434         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14435         appears before executable statements. Suggested by Petr Sumbera
14436         <Petr.Sumbera@Sun.COM>.
14437
14438 2010-03-14  Bruno Haible  <bruno@clisp.org>
14439
14440         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14441         portability problems. Instead use a simpler test.
14442         (main): Check that invalid arguments are rejected only on Linux.
14443
14444 2010-03-14  Bruno Haible  <bruno@clisp.org>
14445
14446         Fix bug introduced on 2009-12-31.
14447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14448         gl_PREREQ_SYS_H_WINSOCK2 always.
14449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14450         SYS_SOCKET_H variable.
14451         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14452         Update comments.
14453         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14454         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14455         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14456         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14457         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14458
14459 2010-03-14  Bruno Haible  <bruno@clisp.org>
14460
14461         Fix values returned by sinl, cosl.
14462         * lib/trigl.h: Add specification comments.
14463         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14464         that combines the values from the precomputed table with the values of
14465         the Chebyshev polynomials.
14466
14467 2010-03-14  Bruno Haible  <bruno@clisp.org>
14468
14469         Fix compilation error when modules 'posix_spawn[p]' are not used.
14470         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14471         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14472
14473 2010-03-14  Bruno Haible  <bruno@clisp.org>
14474
14475         Fix compilation error on mingw when module 'time_r' is not used.
14476         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14477         is 1.
14478         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14479         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14480         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14481         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14482
14483 2010-03-14  Bruno Haible  <bruno@clisp.org>
14484
14485         Fix compilation error with Sun C.
14486         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14487         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14488         instead of GCC specific ULONG_LONG_MAX.
14489         * lib/xstrtoll.c: Likewise.
14490         * lib/xstrtoull.c: Likewise.
14491
14492 2010-03-13  Bruno Haible  <bruno@clisp.org>
14493
14494         Allow the user to disable C++ code and tests.
14495         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14496         (gl_PROG_ANSI_CXX): Require it.
14497
14498 2010-03-13  Bruno Haible  <bruno@clisp.org>
14499
14500         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14501         cases.
14502
14503 2010-03-13  Bruno Haible  <bruno@clisp.org>
14504
14505         Test that gnulib does not break the standard C++ headers.
14506         * tests/test-locale-c++2.cc: New file.
14507         * modules/locale-tests (Files): Add it.
14508         (Makefile.am): Compile it for test-locale-c++.
14509         * tests/test-math-c++2.cc: New file.
14510         * modules/math-tests (Files): Add it.
14511         (Makefile.am): Compile it for test-math-c++.
14512         * tests/test-signal-c++2.cc: New file.
14513         * modules/signal-tests (Files): Add it.
14514         (Makefile.am): Compile it for test-signal-c++.
14515         * tests/test-stdio-c++2.cc: New file.
14516         * modules/stdio-tests (Files): Add it.
14517         (Makefile.am): Compile it for test-stdio-c++.
14518         * tests/test-stdlib-c++2.cc: New file.
14519         * modules/stdlib-tests (Files): Add it.
14520         (Makefile.am): Compile it for test-stdlib-c++.
14521         * tests/test-string-c++2.cc: New file.
14522         * modules/string-tests (Files): Add it.
14523         (Makefile.am): Compile it for test-string-c++.
14524         * tests/test-time-c++2.cc: New file.
14525         * modules/time-tests (Files): Add it.
14526         (Makefile.am): Compile it for test-time-c++.
14527         Reported by John W. Eaton <jwe@gnu.org>.
14528
14529 2010-03-13  Bruno Haible  <bruno@clisp.org>
14530
14531         * gnulib-tool (func_usage): Clarify which options are available for
14532         --create-testdir and --create-megatestdir.
14533
14534 2010-03-13  Bruno Haible  <bruno@clisp.org>
14535
14536         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14537         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14538         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14539         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14540         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14541         when appropriate.
14542         Reported by Jim Meyering.
14543
14544 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14545
14546         * gnulib-tool (func_import): Explain origin of code.
14547
14548 2010-03-12  Bruno Haible  <bruno@clisp.org>
14549
14550         Fix problem with automake's definition of CXXLINK.
14551         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14552         Reported by Simon Josefsson and Ludovic Courtès.
14553
14554 2010-03-12  Bruno Haible  <bruno@clisp.org>
14555
14556         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14557         stable releases.
14558
14559 2010-03-11  Bruno Haible  <bruno@clisp.org>
14560
14561         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14562         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14563         whether the system provides one variant or multiple variants of the
14564         function.
14565         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14566         C++ compilers.
14567         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14568         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14569         Reported by Jim Meyering.
14570
14571 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14572
14573         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14574
14575 2010-03-08  Bruno Haible  <bruno@clisp.org>
14576
14577         gnulib-tool: Add support for --libtool in --create-testdir.
14578         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14579         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14580
14581 2010-03-08  Eric Blake  <eblake@redhat.com>
14582
14583         gnulib-tool.texi: mention possibility of git submodule
14584         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14585         submodules.
14586         * doc/.gitignore: Ignore another generated file.
14587
14588 2010-03-08  Karl Berry  <karl@gnu.org>
14589
14590         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14591         of committing gnulib files while skipping others.
14592
14593 2010-03-07  Bruno Haible  <bruno@clisp.org>
14594
14595         Tests of module 'wctype' in C++ mode.
14596         * tests/test-wctype-c++.cc: New file.
14597         * modules/wctype-tests (Files): Add it and tests/signature.h.
14598         (Depends-on): Add ansi-c++-opt.
14599         (Makefile.am): Arrange to compile and run test-wctype-c++.
14600
14601         Tests of module 'wchar' in C++ mode.
14602         * tests/test-wchar-c++.cc: New file.
14603         * modules/wchar-tests (Files): Add it and tests/signature.h.
14604         (Depends-on): Add ansi-c++-opt.
14605         (Makefile.am): Arrange to compile and run test-wchar-c++.
14606         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14607         gl_MODULE_INDICATOR.
14608
14609         Tests of module 'unistd' in C++ mode.
14610         * tests/test-unistd-c++.cc: New file.
14611         * modules/unistd-tests (Files): Add it and tests/signature.h.
14612         (Depends-on): Add ansi-c++-opt.
14613         (Makefile.am): Arrange to compile and run test-unistd-c++.
14614         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14615         gl_MODULE_INDICATOR.
14616
14617         Tests of module 'time' in C++ mode.
14618         * tests/test-time-c++.cc: New file.
14619         * modules/time-tests (Files): Add it and tests/signature.h.
14620         (Depends-on): Add ansi-c++-opt.
14621         (Makefile.am): Arrange to compile and run test-time-c++.
14622         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14623
14624         Tests of module 'sys_time' in C++ mode.
14625         * tests/test-sys_time-c++.cc: New file.
14626         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14627         (Depends-on): Add ansi-c++-opt.
14628         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14629         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14630         gl_MODULE_INDICATOR.
14631
14632         Tests of module 'sys_stat' in C++ mode.
14633         * tests/test-sys_stat-c++.cc: New file.
14634         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14635         (Depends-on): Add ansi-c++-opt.
14636         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14637         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14638         gl_MODULE_INDICATOR.
14639
14640         Tests of module 'sys_socket' in C++ mode.
14641         * tests/test-sys_socket-c++.cc: New file.
14642         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14643         (Depends-on): Add ansi-c++-opt.
14644         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14645         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14646         gl_MODULE_INDICATOR.
14647
14648         Tests of module 'sys_select' in C++ mode.
14649         * tests/test-sys_select-c++.cc: New file.
14650         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14651         (Depends-on): Add ansi-c++-opt.
14652         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14653         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14654         gl_MODULE_INDICATOR.
14655
14656         Tests of module 'sys_ioctl' in C++ mode.
14657         * tests/test-sys_ioctl-c++.cc: New file.
14658         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14659         (Depends-on): Add ansi-c++-opt.
14660         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14661         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14662         gl_MODULE_INDICATOR.
14663
14664         Tests of module 'string' in C++ mode.
14665         * tests/test-string-c++.cc: New file.
14666         * modules/string-tests (Files): Add it and tests/signature.h.
14667         (Depends-on): Add ansi-c++-opt.
14668         (Makefile.am): Arrange to compile and run test-string-c++.
14669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14670         gl_MODULE_INDICATOR.
14671
14672         Tests of module 'stdlib' in C++ mode.
14673         * tests/test-stdlib-c++.cc: New file.
14674         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14675         (Depends-on): Add ansi-c++-opt.
14676         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14677         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14678         gl_MODULE_INDICATOR.
14679
14680         Tests of module 'stdio' in C++ mode.
14681         * tests/test-stdio-c++.cc: New file.
14682         * modules/stdio-tests (Files): Add it and tests/signature.h.
14683         (Depends-on): Add ansi-c++-opt.
14684         (Makefile.am): Arrange to compile and run test-stdio-c++.
14685         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14686         gl_MODULE_INDICATOR.
14687
14688         Tests of module 'spawn' in C++ mode.
14689         * tests/test-spawn-c++.cc: New file.
14690         * modules/spawn-tests (Files): Add it and tests/signature.h.
14691         (Depends-on): Add ansi-c++-opt.
14692         (Makefile.am): Arrange to compile and run test-spawn-c++.
14693         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14694         gl_MODULE_INDICATOR.
14695
14696         Tests of module 'signal' in C++ mode.
14697         * tests/test-signal-c++.cc: New file.
14698         * modules/signal-tests (Files): Add it and tests/signature.h.
14699         (Depends-on): Add ansi-c++-opt.
14700         (Makefile.am): Arrange to compile and run test-signal-c++.
14701         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14702         gl_MODULE_INDICATOR.
14703
14704         Tests of module 'search' in C++ mode.
14705         * tests/test-search-c++.cc: New file.
14706         * modules/search-tests (Files): Add it and tests/signature.h.
14707         (Depends-on): Add ansi-c++-opt.
14708         (Makefile.am): Arrange to compile and run test-search-c++.
14709         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14710         gl_MODULE_INDICATOR.
14711
14712         Tests of module 'math' in C++ mode.
14713         * tests/test-math-c++.cc: New file.
14714         * modules/math-tests (Files): Add it and tests/signature.h.
14715         (Depends-on): Add ansi-c++-opt.
14716         (Makefile.am): Arrange to compile and run test-math-c++.
14717         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14718
14719         Tests of module 'locale' in C++ mode.
14720         * tests/test-locale-c++.cc: New file.
14721         * modules/locale-tests (Files): Add it and tests/signature.h.
14722         (Depends-on): Add ansi-c++-opt.
14723         (Makefile.am): Arrange to compile and run test-locale-c++.
14724         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14725         gl_MODULE_INDICATOR.
14726
14727         Tests of module 'langinfo' in C++ mode.
14728         * tests/test-langinfo-c++.cc: New file.
14729         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14730         (Depends-on): Add ansi-c++-opt.
14731         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14732         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14733         gl_MODULE_INDICATOR.
14734
14735         Tests of module 'iconv-h' in C++ mode.
14736         * tests/test-iconv-h-c++.cc: New file.
14737         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14738         (Depends-on): Add ansi-c++-opt.
14739         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14740
14741         Tests of module 'glob' in C++ mode.
14742         * tests/test-glob-c++.cc: New file.
14743         * modules/glob-tests (Files): Add it.
14744         (Depends-on): Add ansi-c++-opt.
14745         (Makefile.am): Arrange to compile and run test-glob-c++.
14746
14747         Tests of module 'fcntl-h' in C++ mode.
14748         * tests/test-fcntl-h-c++.cc: New file.
14749         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14750         (Depends-on): Add ansi-c++-opt.
14751         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14752         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14753         gl_MODULE_INDICATOR.
14754
14755         Tests of module 'dirent' in C++ mode.
14756         * tests/test-dirent-c++.cc: New file.
14757         * modules/dirent-tests (Files): Add it and tests/signature.h.
14758         (Depends-on): Add ansi-c++-opt.
14759         (Makefile.am): Arrange to compile and run test-dirent-c++.
14760         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14761         gl_MODULE_INDICATOR.
14762
14763         New module 'ansi-c++-opt'.
14764         * modules/ansi-c++-opt: New file.
14765         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14766
14767         Document C++ namespace mode.
14768         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14769
14770         wctype: Avoid #define replacements in C++ mode.
14771         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14772         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14773         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14774         In C++, define a namespaced alias symbol.
14775         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14776         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14777         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14778         rule.
14779
14780         wchar: Avoid #define replacements in C++ mode.
14781         * lib/wchar.in.h: Include c++defs.h.
14782         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14783         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14784         symbol.
14785         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14786         * modules/wchar (Depends-on): Add c++defs.
14787         (Makefile.am): Update wchar.h rule.
14788
14789         unistd: Avoid #define replacements in C++ mode.
14790         * lib/unistd.in.h: Include c++defs.h.
14791         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14792         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14793         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14794         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14795         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14796         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14797         symbol.
14798         (environ): Update.
14799         * modules/unistd (Depends-on): Add c++defs.
14800         (Makefile.am): Update unistd.h rule.
14801
14802         time: Avoid #define replacements in C++ mode.
14803         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14804         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14805         define a namespaced alias symbol.
14806         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14807         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14808         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14809         * modules/time (Depends-on): Add c++defs, warn-on-use.
14810         (Makefile.am): Update time.h rule.
14811         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14812         * modules/nanosleep (configure.ac): Likewise.
14813         * modules/strptime (configure.ac): Likewise.
14814         * modules/timegm (configure.ac): Likewise.
14815
14816         sys_time: Avoid #define replacements in C++ mode.
14817         * lib/sys_time.in.h: Include c++defs.h.
14818         (gettimeofday): In C++, define a namespaced alias symbol.
14819         * modules/sys_time (Depends-on): Add c++defs.
14820         (Makefile.am): Update sys/time.h rule.
14821
14822         sys_stat: Avoid #define replacements in C++ mode.
14823         * lib/sys_stat.in.h: Include c++defs.h.
14824         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14825         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14826         namespaced alias symbol.
14827         In C++, define a namespaced alias symbol.
14828         * modules/sys_stat (Depends-on): Add c++defs.
14829         (Makefile.am): Update sys/stat.h rule.
14830
14831         sys_socket: Avoid #define replacements in C++ mode.
14832         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14833         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14834         definitions also when the system has a <sys/socket.h>.
14835         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14836         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14837         In C++, define a namespaced alias symbol.
14838         * modules/sys_socket (Depends-on): Add c++defs.
14839         (Makefile.am): Update sys/socket.h rule.
14840
14841         sys_select: Avoid #define replacements in C++ mode.
14842         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14843         definitions also when the system has a <sys/select.h>.
14844         (select): In C++, define a namespaced alias symbol.
14845         * modules/sys_select (Depends-on): Add c++defs.
14846         (Makefile.am): Update sys/select.h rule.
14847
14848         sys_ioctl: Avoid #define replacements in C++ mode.
14849         * lib/sys_ioctl.in.h: Include c++defs.h.
14850         (ioctl): In C++, define a namespaced alias symbol.
14851         * modules/sys_ioctl (Depends-on): Add c++defs.
14852         (Makefile.am): Update sys/ioctl.h rule.
14853
14854         string: Avoid #define replacements in C++ mode.
14855         * lib/string.in.h: Include c++defs.h.
14856         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14857         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14858         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14859         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14860         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14861         * modules/string (Depends-on): Add c++defs.
14862         (Makefile.am): Update string.h rule.
14863
14864         stdlib: Avoid #define replacements in C++ mode.
14865         * lib/stdlib.in.h: Include c++defs.h.
14866         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14867         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14868         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14869         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14870         symbol.
14871         * modules/stdlib (Depends-on): Add c++defs.
14872         (Makefile.am): Update stdlib.h rule.
14873
14874         stdio: Avoid #define replacements in C++ mode.
14875         * lib/stdio.in.h: Include c++defs.h.
14876         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14877         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14878         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14879         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14880         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14881         namespaced alias symbol.
14882         * modules/stdio (Depends-on): Add c++defs.
14883         (Makefile.am): Update stdio.h rule.
14884
14885         spawn: Avoid #define replacements in C++ mode.
14886         * lib/spawn.in.h: Include c++defs.h.
14887         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14888         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14889         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14890         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14891         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14892         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14893         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14894         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14895         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14896         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14897         In C++, define a namespaced alias symbol.
14898         * modules/spawn (Depends-on): Add c++defs.
14899         (Makefile.am): Update spawn.h rule.
14900
14901         signal: Avoid #define replacements in C++ mode.
14902         * lib/signal.in.h: Include c++defs.h.
14903         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14904         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14905         namespaced alias symbol.
14906         * modules/signal (Depends-on): Add c++defs.
14907         (Makefile.am): Update signal.h rule.
14908
14909         search: Avoid #define replacements in C++ mode.
14910         * lib/search.in.h: Include c++defs.h.
14911         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14912         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14913         symbol.
14914         * modules/search (Depends-on): Add c++defs.
14915         (Makefile.am): Update search.h rule.
14916
14917         math: Avoid #define replacements in C++ mode.
14918         * lib/math.in.h: Include c++defs.h.
14919         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14920         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14921         trunc, truncl): In C++, define a namespaced alias symbol.
14922         * modules/math (Depends-on): Add c++defs.
14923         (Makefile.am): Update math.h rule.
14924
14925         locale: Avoid #define replacements in C++ mode.
14926         * lib/locale.in.h: Include c++defs.h.
14927         (duplocale): In C++, define a namespaced alias symbol.
14928         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14929         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14930         * modules/locale (Depends-on): Add c++defs.
14931         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14932
14933         langinfo: Avoid #define replacements in C++ mode.
14934         * lib/langinfo.in.h: Include c++defs.h.
14935         (nl_langinfo): In C++, define a namespaced alias symbol.
14936         * modules/langinfo (Depends-on): Add c++defs.
14937         (Makefile.am): Update langinfo.h rule.
14938
14939         iconv-h: Avoid #define replacements in C++ mode.
14940         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14941         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14942         symbol.
14943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14944         whenever iconv is present.
14945         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14946         (Makefile.am): Update iconv.h rule.
14947
14948         glob: Avoid #define replacements in C++ mode.
14949         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14950         (_gl_glob_errfunc_fn): New type.
14951         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14952         symbol.
14953         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14954         (Makefile.am): Update glob.h rule.
14955
14956         fcntl-h: Avoid #define replacements in C++ mode.
14957         * lib/fcntl.in.h: Include c++defs.h.
14958         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14959         * modules/fcntl-h (Depends-on): Add c++defs.
14960         (Makefile.am): Update fcntl.h rule.
14961
14962         dirent: Avoid #define replacements in C++ mode.
14963         * lib/dirent.in.h: Include c++defs.h.
14964         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14965         namespaced alias symbol.
14966         (dirfd): Update declaration.
14967         * modules/dirent (Depends-on): Add c++defs.
14968         (Makefile.am): Update dirent.h rule.
14969
14970         ctype: Make it usable in C++ code.
14971         * lib/ctype.in.h: Include c++defs.h.
14972         (isblank): Declare as extern "C".
14973         * modules/ctype (Depends-on): Add c++defs.
14974         (Makefile.am): Update ctype.h rule.
14975
14976         New module 'c++defs'.
14977         * modules/c++defs: New file.
14978         * build-aux/c++defs.h: New file.
14979         Reported by John W. Eaton <jwe@gnu.org>.
14980
14981 2010-03-07  Bruno Haible  <bruno@clisp.org>
14982
14983         logb: Provide missing declaration for Cygwin.
14984         * lib/math.in.h (logb): New declaration.
14985         * m4/logb.m4: New file.
14986         * modules/logb (Files): Add m4/logb.m4.
14987         (Depends-on): Add math.
14988         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14989         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14991         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14992         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14993
14994 2010-03-07  Bruno Haible  <bruno@clisp.org>
14995
14996         Fix test-cond link error.
14997         * tests/test-cond.c: Include <stdio.h>.
14998
14999 2010-03-07  Bruno Haible  <bruno@clisp.org>
15000
15001         Fix test-dirent-safer link error.
15002         * modules/dirent-safer-tests (Makefile.am): Define
15003         test_dirent_safer_LDADD.
15004
15005 2010-03-07  Bruno Haible  <bruno@clisp.org>
15006
15007         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15008         among default module list.
15009
15010 2010-03-07  Bruno Haible  <bruno@clisp.org>
15011
15012         Fix link error on platforms with GNU libiconv.
15013         * modules/unistr/u8-strcoll-tests (Makefile): Define
15014         test_u8_strcoll_LDADD.
15015         * modules/unistr/u16-strcoll-tests (Makefile): Define
15016         test_u16_strcoll_LDADD.
15017         * modules/unistr/u32-strcoll-tests (Makefile): Define
15018         test_u32_strcoll_LDADD.
15019
15020 2010-03-07  Bruno Haible  <bruno@clisp.org>
15021
15022         Use POSIX declarations for socket functions.
15023         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15024         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15025         rpl_sendto): Change declaration to match POSIX.
15026         * lib/connect.c (rpl_connect): Likewise.
15027         * lib/accept.c (rpl_accept): Likewise.
15028         * lib/bind.c (rpl_bind): Likewise.
15029         * lib/getpeername.c (rpl_getpeername): Likewise.
15030         * lib/getsockname.c (rpl_getsockname): Likewise.
15031         * lib/recv.c (rpl_recv): Likewise.
15032         * lib/send.c (rpl_send): Likewise.
15033         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15034         * lib/sendto.c (rpl_sendto): Likewise.
15035
15036 2010-03-06  Bruno Haible  <bruno@clisp.org>
15037
15038         Clarify access, euidaccess, faccessat.
15039         * doc/posix-functions/faccessat.texi: Mention security problem under
15040         "Other problems", not "Portability problems".
15041         * doc/posix-functions/access.texi: Likewise. Mention a related security
15042         problem.
15043         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15044         * lib/euidaccess.c: Add comments about platforms.
15045         * lib/unistd.in.h (access, euidaccess): Add warnings.
15046
15047 2010-03-07  Bruno Haible  <bruno@clisp.org>
15048
15049         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15050         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15051         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15052         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15053         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15054         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15055         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15056         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15057         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15059         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15060         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15061         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15062         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15063         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15064         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15065         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15066         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15067         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15068         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15069         Likewise.
15070         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15071         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15072         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15073         Likewise.
15074         * tests/test-spawn.c (main): Make it work when
15075         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15076
15077 2010-03-07  Bruno Haible  <bruno@clisp.org>
15078
15079         Fix incorrect Makefile.am generation in German locale.
15080         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15081         Execute sed command with character range in C locale.
15082
15083 2010-03-06  Bruno Haible  <bruno@clisp.org>
15084
15085         Tests for module 'iconv-h'.
15086         * modules/iconv-h-tests: New file.
15087         * tests/test-iconv-h.c: New file.
15088
15089         New module 'iconv-h'.
15090         * modules/iconv-h: New file.
15091         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15092         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15093         (configure.ac): Remove gl_ICONV_H.
15094         (Makefile.am): Remove rule for iconv.h.
15095
15096 2010-03-06  Bruno Haible  <bruno@clisp.org>
15097
15098         More consistent naming of *.m4 files.
15099         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15100         * modules/wctype (Files): Update.
15101
15102         More consistent naming of *.m4 files.
15103         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15104         * modules/wchar (Files): Update.
15105
15106 2010-03-06  Jim Meyering  <meyering@redhat.com>
15107
15108         euidaccess: relax license to LGPLv2+
15109         * modules/euidaccess (License): Relax to LGPLv2+.
15110
15111 2010-03-06  Bruno Haible  <bruno@clisp.org>
15112
15113         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15114         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15115         (Makefile.am): Augment lib_SOURCES instead.
15116
15117 2010-03-04  Jim Meyering  <meyering@redhat.com>
15118
15119         utime: remove obsolete module
15120         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15121         unnecessary for years, and has been marked as obsolete for 10 months.
15122         * modules/utime: Remove file.
15123         * lib/utime.c: Remove file.
15124         * m4/utime.m4: Remove file.
15125         * m4/utimes-null.m4: Remove file.
15126         * doc/posix-functions/utime.texi (utime): Remove reference to
15127         the module.  Move the sole "fixed by gnulib" item into the
15128         "problems not fixed by Gnulib" list.
15129         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15130
15131 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15132
15133         * modules/exit (License): Relax license to LGPLv2+.
15134         (Status): Mark as obsolete.
15135         * NEWS: Mention deprecated 'exit' module.
15136         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15137         of now obsolete 'exit'.
15138
15139 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15140
15141         fts-lgpl: remove unused module
15142         * modules/fts-lgpl: Remove.
15143         * MODULES.html.sh (func_all_modules): Adjust.
15144         * check-module (find_included_lib_files): Adjust.
15145         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15146
15147 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15148
15149         copy-acl: enhance Solaris ACL error handling
15150         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15151         * lib/set-mode-acl.c (qset_acl): Likewise.
15152
15153 2010-03-02  Bruno Haible  <bruno@clisp.org>
15154
15155         spawn: Don't override the system defined values on FreeBSD 8.
15156         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15157         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15158         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15159         if HAVE_POSIX_SPAWN is 1.
15160         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15161
15162 2010-03-01  Bruno Haible  <bruno@clisp.org>
15163
15164         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15165         regarding Automake.
15166
15167 2010-02-25  Bruno Haible  <bruno@clisp.org>
15168
15169         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15170         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15171         setting, not afterwards.
15172         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15173
15174 2010-02-24  Eric Blake  <eblake@redhat.com>
15175
15176         bootstrap, git-version-gen: use timestamp
15177         * build-aux/git-version-gen (scriptversion): Force UTC.
15178         * build-aux/bootstrap (scriptversion): New variable.
15179
15180         bootstrap: allow older git
15181         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15182         older than 1.6.4.  Requested by the libvirt project.
15183
15184 2010-02-23  Eric Blake  <eblake@redhat.com>
15185
15186         warn-on-use: work with old autoconf
15187         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15188         AS_VAR semantics of autoconf 2.60.
15189         Reported by Bruno Haible.
15190
15191         bootstrap: improve some comments
15192         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15193         clarification comments.
15194
15195         gettimeofday: provide correct function
15196         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15197         when replacement is declared, otherwise provide gettimeofday.
15198         Reported by Michael Goffioul.
15199
15200 2010-02-23  Jim Meyering  <meyering@redhat.com>
15201
15202         lib-ignore: relax license to "unlimited", not LGPLv2+
15203         * modules/lib-ignore (License): Relax to "unlimited".
15204
15205 2010-02-23  Jim Meyering  <meyering@redhat.com>
15206
15207         lib-ignore: relax license to LGPLv2+
15208         * modules/lib-ignore (License): Relax to LGPLv2+.
15209
15210 2010-02-22  Eric Blake  <eblake@redhat.com>
15211
15212         lseek: avoid bash 3.2 broken pipe bug
15213         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15214         warning from bash 3.2.
15215         Reported by Ben Pfaff, with analysis from Bruno Haible.
15216
15217         bootstrap: support non-FSF copyright holder
15218         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15219         bootstrap.conf override of COPYRIGHT_HOLDER.
15220         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15221
15222         bootstrap: interoperate with gettext 0.14.1
15223         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15224
15225         bootstrap: allow for alternate submodule location
15226         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15227         hardcoding submodule location.
15228         (gnulib_mk): Allow direct use of Makefile.am.
15229
15230         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15231         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15232         rather than reconfiguring where the submodule points.
15233
15234         gettimeofday: restore support for platforms that lack function
15235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15236         replacement if function is missing.
15237         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15238         * modules/sys_time (Makefile.am): Substitute it.
15239         * lib/sys_time.in.h (gettimeofday): Check it.
15240         Reported by Michael Goffioul.
15241
15242 2010-02-21  Bruno Haible  <bruno@clisp.org>
15243
15244         * lib/stdio.in.h (obstack_printf): Fix typo.
15245
15246 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15247
15248         vc-list-files: use bzr ls's -R option
15249         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15250         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15251
15252 2010-02-21  Jim Meyering  <meyering@redhat.com>
15253
15254         init.sh: fix EXEEXT shims to work also for names like test-prog
15255         * tests/init.sh: Re-exec a better shell, when needed.
15256         If the current shell lacks support for posix $(...), an init.sh-using
15257         test will now try to find a shell that supports that.  If EXEEXT is
15258         nonempty, we also require support for hyphen-in-alias-name and shell
15259         substitutions like ${var#glob}.  Failure to find such a shell results
15260         in a skipped test.
15261
15262 2010-02-21  Bruno Haible  <bruno@clisp.org>
15263
15264         Really work around around "broken pipe" error message from bash 3.2.
15265         * gnulib-tool (func_reset_sigpipe): Remove function.
15266         (echo): In bash 3.2, define to a function that uses printf.
15267         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15268
15269 2010-02-20  Bruno Haible  <bruno@clisp.org>
15270
15271         Restore support for automake 1.9.6 with autoconf 2.61.
15272         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15273         Reported by James Youngman <jay@gnu.org>.
15274
15275 2010-02-20  Bruno Haible  <bruno@clisp.org>
15276
15277         Improve *printf warning condition.
15278         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15279         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15280         and the function is overridden due to SIGPIPE emulation.
15281
15282 2010-02-20  Bruno Haible  <bruno@clisp.org>
15283
15284         * lib/stdio.in.h: Tweak comments.
15285
15286 2010-02-19  Bruno Haible  <bruno@clisp.org>
15287
15288         Make it easier to find modules. New gnulib-tool option '--find'.
15289         * gnulib-tool: New option --find.
15290         (func_usage): Document it.
15291         (func_sanitize_modulelist): New function, extracted from
15292         func_all_modules.
15293         (func_all_modules): Invoke it.
15294         * doc/gnulib-tool.texi (Which modules?): New node.
15295
15296 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15297
15298         * lib/sys_select.in.h: Provide select replacement even if
15299         sys/select.h exists on a system, for Interix.
15300
15301 2010-02-18  Jim Meyering  <meyering@redhat.com>
15302
15303         init.sh: don't use $(...) just yet
15304         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15305         to accommodate e.g., Solaris' /bin/sh.
15306
15307 2010-02-17  Bruno Haible  <bruno@clisp.org>
15308
15309         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15310         Reported by Ludovic Courtès <ludo@gnu.org>.
15311
15312 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15313
15314         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15315         linking with -lintl.
15316
15317 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15318
15319         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15320         if not provided by the system's netdb.h.  Reported by
15321         ludo@gnu.org (Ludovic Courtès).
15322
15323 2010-02-15  Jim Meyering  <meyering@redhat.com>
15324
15325         init.sh: improve portability and efficiency
15326         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15327         "dummy" in a for loop.
15328         Use '!', not '^' to select the complement of a character set used
15329         in a "case" statement.
15330         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15331         Suggestions from Eric Blake.
15332
15333         init.sh: automatically accommodate programs with the .exe suffix
15334         Automatically arrange for an invocation of "prog" to execute the
15335         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15336         may use the simpler "prog", yet still work when built on a system
15337         that requires specifying the added suffix.
15338         Do this by constructing a function named "prog" that invokes
15339         "prog.exe" for each .exe file in selected directories.
15340         * tests/init.sh (find_exe_basenames_): New function.
15341         (create_exe_shim_functions_): New function.
15342         (path_prepend_): Use it.
15343
15344         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15345         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15346         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15347
15348 2010-02-14  Jim Meyering  <meyering@redhat.com>
15349
15350         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15351         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15352         (sc_prohibit_hash_pjw_without_use): New rule.
15353
15354         maint.mk: allow the default upload destination dir to be overridden
15355         * top/maint.mk (upload_dest_dir_): Define with a default that
15356         preserves the status quo.
15357         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15358         Reported by Peter Simons.
15359
15360         maint.mk: prohibit inclusion of "hash.h" without_use
15361         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15362
15363 2010-02-10  Jim Meyering  <meyering@redhat.com>
15364
15365         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15366         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15367
15368 2010-02-09  Eric Blake  <ebb9@byu.net>
15369         and Bruno Haible  <bruno@clisp.org>
15370
15371         obstack-printf-posix: ensure declaration
15372         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15373         extracted from gl_FUNC_OBSTACK_PRINTF.
15374         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15375         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15376         Likewise.
15377         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15378         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15379         0.
15380
15381 2010-02-08  Bruno Haible  <bruno@clisp.org>
15382
15383         gnulib-tool: Fix typo in 2010-02-07 commit.
15384         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15385         Reported by Eric Blake.
15386
15387 2010-02-07  Bruno Haible  <bruno@clisp.org>
15388
15389         gnulib-tool: Fix up caching patches.
15390         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15391         option --no-cache. Use associative arrays when supported by the shell.
15392         (sed_comments): New variable.
15393         (modcache): Renamed from do_cache.
15394         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15395         abbreviate unnecessarily.
15396         (have_associative): New variable.
15397         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15398         way also for ksh and zsh.
15399         (func_init_sed_convert_to_cache_statements): New function, extracted
15400         from func_cache_lookup_module. Add support for associative arrays.
15401         Don't set the c_MODULE_cached variable here. Ignore all lines before
15402         the first field header. Remove only the final newline, not all trailing
15403         newlines. Support empty fields correctly. Limit the use of 'eval' to
15404         assignments.
15405         (func_get_description, func_get_status, func_get_notice,
15406         func_get_applicability, func_get_filelist, func_get_dependencies,
15407         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15408         func_get_automake_snippet, func_get_include_directive,
15409         func_get_link_directive, func_get_license, func_get_maintainer):
15410         Update documentation. List the unoptimized code first. Add support for
15411         associative arrays. Limit the use of 'eval' to assignments.
15412         (func_get_applicability): Undo stylistic pessimisations.
15413         (func_get_automake_snippet, func_get_include_directive): Reduce code
15414         duplication.
15415         (func_modules_transitive_closure, func_modules_add_dummy,
15416         func_modules_notice, func_modules_to_filelist, func_add_file,
15417         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15418         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15419         func_create_testdir, func_create_megatestdir): Update documentation.
15420
15421 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15422
15423         * gnulib-tool (func_cache_lookup_module): Store the module name
15424         belonging to the cache variable; error out if two different
15425         module names map to the same cache variable name.
15426
15427 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15428
15429         gnulib-tool: Make caching optional.
15430         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15431         Update matching short versions of --no-changelog.
15432         (func_usage): Update.
15433         (sed_extract_cache_prog): Renamed from ...
15434         (sed_extract_prog): ... this; revert to old extraction script.
15435         (func_get_description, func_get_status)
15436         (func_get_notice, func_get_applicability, func_get_filelist)
15437         (func_get_dependencies, func_get_autoconf_early_snippet)
15438         (func_get_autoconf_snippet, func_get_automake_snippet)
15439         (func_get_include_directive, func_get_link_directive)
15440         (func_get_license, func_get_maintainer): If $do_cache is false,
15441         use old, non-caching extraction scripts.
15442         Suggestion by Bruno Haible.
15443
15444 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15445
15446         gnulib-tool: cache module metainformation.
15447         * gnulib-tool (sed_extract_prog): Match newline before each
15448         header, and rewrite header to a shell variable suffix.
15449         (func_cache_var, func_cache_lookup_module): New functions,
15450         to turn a module name into a cache variable prefix, and to
15451         look up and cache module metainformation.
15452         (func_get_description, func_get_status)
15453         (func_get_notice, func_get_applicability, func_get_filelist)
15454         (func_get_dependencies, func_get_autoconf_early_snippet)
15455         (func_get_autoconf_snippet, func_get_automake_snippet)
15456         (func_get_include_directive, func_get_link_directive)
15457         (func_get_license, func_get_maintainer): Use
15458         func_cache_lookup_module.
15459
15460 2010-02-07  Bruno Haible  <bruno@clisp.org>
15461
15462         fnctl: Fix missing dependency.
15463         * modules/fcntl (Depends-on): Add getdtablesize.
15464         Reported by John W. Eaton <jwe@gnu.org>.
15465
15466 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15467
15468         Argp: fix recognition of short alias options.
15469
15470         * lib/argp-parse.c (convert_options): Fix improper use of
15471         `|' between character values.
15472         * tests/test-argp.c (group1_option): New alias option
15473         --read (-r).
15474         (group1_parser): Special handling for 'r'.
15475         (test15): New test case.
15476         (test_fun): Add test15.
15477         * tests/test-argp-2.sh: Update expected --help and --usage
15478         outputs.
15479
15480 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15481
15482         * tests/test-argp.c: Fix indentation.
15483
15484 2010-02-04  Eric Blake  <ebb9@byu.net>
15485
15486         gettimeofday: expose type of second argument
15487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15488         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15489         * tests/test-gettimeofday.c: Use it to silence warning.
15490         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15491         the issue.
15492
15493 2010-02-03  Jim Meyering  <meyering@redhat.com>
15494
15495         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15496         * lib/regcomp.c (TYPE_SIGNED): Define.
15497         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15498
15499         regcomp.c: avoid a new -Wshadow warning
15500         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15501
15502 2010-02-01  Jim Meyering  <meyering@redhat.com>
15503
15504         removing useless parentheses in cpp #define directives
15505         For motivation, see commit c0221df4, "define STREQ(a,b)
15506         consistently, removing useless parentheses"
15507         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15508         * lib/mountlist.c (MNT_IGNORE): Likewise.
15509         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15510
15511 2010-02-01  Eric Blake  <ebb9@byu.net>
15512
15513         sys_time: use link-warning
15514         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15515         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15516         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15517         * modules/sys_time (Depends-on): Add warn-on-use.
15518         (Makefile.am): Always build replacement.
15519         (configure.ac): Update substitutions.
15520         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15521         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15522         bother with SYS_TIME_H.
15523         * modules/gettimeofday (configure.ac): Declare indicator.
15524         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15525         in use.
15526
15527         closein-tests: silence compiler warning
15528         * tests/test-closein.c (main): Ignore fread result.
15529         * modules/closein-tests (Depends-on): Add ignore-value.
15530
15531         tests: silence warning about system return
15532         * tests/test-areadlink-with-size.c (main): Ignore system result.
15533         * tests/test-areadlink.c (main): Likewise.
15534         * tests/test-areadlinkat-with-size.c (main): Likewise.
15535         * tests/test-areadlinkat.c (main): Likewise.
15536         * tests/test-canonicalize-lgpl.c (main): Likewise.
15537         * tests/test-canonicalize.c (main): Likewise.
15538         * tests/test-chown.c (main): Likewise.
15539         * tests/test-fchownat.c (main): Likewise.
15540         * tests/test-fdutimensat.c (main): Likewise.
15541         * tests/test-fstatat.c (main): Likewise.
15542         * tests/test-futimens.c (main): Likewise.
15543         * tests/test-lchown.c (main): Likewise.
15544         * tests/test-link.c (main): Likewise.
15545         * tests/test-linkat.c (main): Likewise.
15546         * tests/test-lstat.c (main): Likewise.
15547         * tests/test-mkdir.c (main): Likewise.
15548         * tests/test-mkdirat.c (main): Likewise.
15549         * tests/test-mkfifo.c (main): Likewise.
15550         * tests/test-mkfifoat.c (main): Likewise.
15551         * tests/test-mknod.c (main): Likewise.
15552         * tests/test-readlink.c (main): Likewise.
15553         * tests/test-remove.c (main): Likewise.
15554         * tests/test-rename.c (main): Likewise.
15555         * tests/test-renameat.c (main): Likewise.
15556         * tests/test-rmdir.c (main): Likewise.
15557         * tests/test-symlink.c (main): Likewise.
15558         * tests/test-symlinkat.c (main): Likewise.
15559         * tests/test-unlink.c (main): Likewise.
15560         * tests/test-unlinkat.c (main): Likewise.
15561         * tests/test-utimens.c (main): Likewise.
15562         * tests/test-utimensat.c (main): Likewise.
15563         * modules/areadlink-tests (Depends-on): Add ignore-value.
15564         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15565         * modules/areadlinkat-tests (Depends-on): Likewise.
15566         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15567         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15568         * modules/canonicalize-tests (Depends-on): Likewise.
15569         * modules/chown-tests (Depends-on): Likewise.
15570         * modules/fdutimensat-tests (Depends-on): Likewise.
15571         * modules/futimens-tests (Depends-on): Likewise.
15572         * modules/lchown-tests (Depends-on): Likewise.
15573         * modules/link-tests (Depends-on): Likewise.
15574         * modules/linkat-tests (Depends-on): Likewise.
15575         * modules/lstat-tests (Depends-on): Likewise.
15576         * modules/mkdir-tests (Depends-on): Likewise.
15577         * modules/mkfifo-tests (Depends-on): Likewise.
15578         * modules/mkfifoat-tests (Depends-on): Likewise.
15579         * modules/mknod-tests (Depends-on): Likewise.
15580         * modules/openat-tests (Depends-on): Likewise.
15581         * modules/readlink-tests (Depends-on): Likewise.
15582         * modules/remove-tests (Depends-on): Likewise.
15583         * modules/rename-tests (Depends-on): Likewise.
15584         * modules/renameat-tests (Depends-on): Likewise.
15585         * modules/rmdir-tests (Depends-on): Likewise.
15586         * modules/symlink-tests (Depends-on): Likewise.
15587         * modules/symlinkat-tests (Depends-on): Likewise.
15588         * modules/unlink-tests (Depends-on): Likewise.
15589         * modules/utimens-tests (Depends-on): Likewise.
15590         * modules/utimensat-tests (Depends-on): Likewise.
15591
15592 2010-01-31  Bruno Haible  <bruno@clisp.org>
15593
15594         Perform the same test for many <math.h> functions.
15595         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15596         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15597         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15598         of gl_MATHFUNC.
15599         * modules/acos (configure.ac): Likewise.
15600         * modules/asin (configure.ac): Likewise.
15601         * modules/atan (configure.ac): Likewise.
15602         * modules/atan2 (configure.ac): Likewise.
15603         * modules/cbrt (configure.ac): Likewise.
15604         * modules/copysign (configure.ac): Likewise.
15605         * modules/cos (configure.ac): Likewise.
15606         * modules/cosh (configure.ac): Likewise.
15607         * modules/erf (configure.ac): Likewise.
15608         * modules/erfc (configure.ac): Likewise.
15609         * modules/exp (configure.ac): Likewise.
15610         * modules/fmod (configure.ac): Likewise.
15611         * modules/hypot (configure.ac): Likewise.
15612         * modules/j0 (configure.ac): Likewise.
15613         * modules/j1 (configure.ac): Likewise.
15614         * modules/jn (configure.ac): Likewise.
15615         * modules/lgamma (configure.ac): Likewise.
15616         * modules/log (configure.ac): Likewise.
15617         * modules/log10 (configure.ac): Likewise.
15618         * modules/log1p (configure.ac): Likewise.
15619         * modules/pow (configure.ac): Likewise.
15620         * modules/remainder (configure.ac): Likewise.
15621         * modules/sin (configure.ac): Likewise.
15622         * modules/sinh (configure.ac): Likewise.
15623         * modules/tan (configure.ac): Likewise.
15624         * modules/tanh (configure.ac): Likewise.
15625         * modules/y0 (configure.ac): Likewise.
15626         * modules/y1 (configure.ac): Likewise.
15627         * modules/yn (configure.ac): Likewise.
15628         Suggested by Paolo Bonzini.
15629
15630 2010-01-31  Bruno Haible  <bruno@clisp.org>
15631
15632         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15633
15634 2010-01-31  Bruno Haible  <bruno@clisp.org>
15635
15636         Work around getdelim() bug on FreeBSD 8.0.
15637         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15638         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15639         not work.
15640         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15641         is 1.
15642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15643         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15644         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15645         a non-zero size.
15646         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15647
15648 2010-01-31  Bruno Haible  <bruno@clisp.org>
15649
15650         Work around getline() bug on FreeBSD 8.0.
15651         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15652         and a non-zero size.
15653         * tests/test-getline.c (main): Likewise.
15654         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15655         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15656
15657 2010-01-28  Eric Blake  <ebb9@byu.net>
15658
15659         regex: fix build failure
15660         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15661         platforms.
15662
15663 2010-01-28  Jim Meyering  <meyering@redhat.com>
15664
15665         regex: do not ignore memory allocation failure
15666         * lib/regex_internal.c (create_cd_newstate): Detect
15667         re_node_set_init_copy failure.   Extracted from glibc commit
15668         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15669
15670         regex: sync more white-space changes from libc
15671         * lib/regex_internal.c: White-space only changes.
15672         * lib/regexec.c: Likewise.
15673
15674         regex: add many uses of __attribute_warn_unused_result__
15675         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15676         * lib/regexec.c: Likewise.
15677         Extracted from a messy glibc commit.
15678
15679         regcomp.c: spelling and merge-artifact from glibc
15680         * lib/regcomp.c: Merge remainder of glibc's
15681         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15682
15683         regcomp.c: sync white-space changes from glibc
15684         * lib/regcomp.c: Merge to accommodate white space
15685         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15686
15687         regcomp.c: do not ignore internal return values
15688         * lib/regcomp.c: Do not ignore internal return values.
15689         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15690         but without its white-space changes and spelling fixes.
15691
15692         regex_internal.h: define __attribute_warn_unused_result__
15693         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15694
15695         maint: add a syntax-check rule to check for vulnerable Makefile.in
15696         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15697
15698 2010-01-27  Jim Meyering  <meyering@redhat.com>
15699
15700         ncftpput-ftp: clean up spaces
15701         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15702         Remove trailing blanks.
15703
15704 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15705
15706         * build-aux/git-version-gen: Fix copyright statement.
15707         * build-aux/gnupload: Likewise.
15708         * tests/test-arcfour.c: Likewise.
15709         * tests/test-arctwo.c: Likewise.
15710         * tests/test-count-one-bits.c: Likewise.
15711         * tests/test-crc.c: Likewise.
15712         * tests/test-des.c: Likewise.
15713         * tests/test-gc-arcfour.c: Likewise.
15714         * tests/test-gc-arctwo.c: Likewise.
15715         * tests/test-gc-des.c: Likewise.
15716         * tests/test-gc-hmac-md5.c: Likewise.
15717         * tests/test-gc-hmac-sha1.c: Likewise.
15718         * tests/test-gc-md2.c: Likewise.
15719         * tests/test-gc-md4.c: Likewise.
15720         * tests/test-gc-md5.c: Likewise.
15721         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15722         * tests/test-gc-rijndael.c: Likewise.
15723         * tests/test-gc-sha1.c: Likewise.
15724         * tests/test-gc.c: Likewise.
15725         * tests/test-gethostname.c: Likewise.
15726         * tests/test-gettimeofday.c: Likewise.
15727         * tests/test-hash.c: Likewise.
15728         * tests/test-hmac-md5.c: Likewise.
15729         * tests/test-hmac-sha1.c: Likewise.
15730         * tests/test-md2.c: Likewise.
15731         * tests/test-md4.c: Likewise.
15732         * tests/test-md5.c: Likewise.
15733         * tests/test-memchr.c: Likewise.
15734         * tests/test-memchr2.c: Likewise.
15735         * tests/test-memcmp.c: Likewise.
15736         * tests/test-memmem.c: Likewise.
15737         * tests/test-memrchr.c: Likewise.
15738         * tests/test-rawmemchr.c: Likewise.
15739         * tests/test-read-file.c: Likewise.
15740         * tests/test-rijndael.c: Likewise.
15741         * tests/test-sockets.c: Likewise.
15742         * tests/test-strchrnul.c: Likewise.
15743         * tests/test-strstr.c: Likewise.
15744         * tests/test-strtod.c: Likewise.
15745         * build-aux/ncftpput-ftp: Likewise.
15746
15747 2010-01-26  Eric Blake  <ebb9@byu.net>
15748
15749         ignore-value: update recommended header name
15750         * modules/ignore-value (Include): Only use <> for headers that
15751         exist in glibc.
15752
15753 2010-01-26  Jim Meyering  <meyering@redhat.com>
15754
15755         test-userspec.c: avoid compiler warnings
15756         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15757         and "initialization discards qualifiers..." warnings.
15758         Put the first "uid" in its own scope, and make char* members "const".
15759
15760 2010-01-25  Bruno Haible  <bruno@clisp.org>
15761
15762         gnulib-tool: Make warning diagnostics consistent.
15763         * gnulib-tool (func_warning): New function.
15764         Use it everywhere where gnulib-tool produces output to stderr and it is
15765         not a fatal error.
15766
15767 2010-01-25  Bruno Haible  <bruno@clisp.org>
15768
15769         Fix test dependencies.
15770         * modules/xstrtol-tests (Depends-on): Add inttypes.
15771         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15772
15773 2010-01-25 Pádraig Brady <P@draigBrady.com>
15774
15775         syntax-check: detect incorrect boolean macro values in config.h
15776         * modules/maintainer-makefile (configure.ac): Parameterize the location
15777         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15778         The logic is from Eric Blake and the location indicated by Jim Meyering.
15779         Note the more natural CONFIG_HEADER name is prohibited by automake
15780         for backwards compatibility reasons.
15781         * top/maint.mk (sc_Wundef_boolean): New rule.
15782
15783 2010-01-25  Jim Meyering  <meyering@redhat.com>
15784
15785         bootstrap: detect MacOS 10.6's shasum, too
15786         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15787         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15788
15789 2010-01-23  Jim Meyering  <meyering@redhat.com>
15790
15791         xstrtoll: new module
15792         * modules/xstrtoll: New file.
15793         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15794         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15795         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15796         ./configure fails if you use this module and lack "long long".
15797         * modules/xstrtoll-tests: New module.
15798         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15799         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15800         new init.sh-based test framework.
15801
15802 2010-01-24  Bruno Haible  <bruno@clisp.org>
15803
15804         Tests for module 'yn'.
15805         * modules/yn-tests: New file.
15806         * tests/test-yn.c: New file.
15807
15808         Tests for module 'y1'.
15809         * modules/y1-tests: New file.
15810         * tests/test-y1.c: New file.
15811
15812         Tests for module 'y0'.
15813         * modules/y0-tests: New file.
15814         * tests/test-y0.c: New file.
15815
15816         Tests for module 'tanh'.
15817         * modules/tanh-tests: New file.
15818         * tests/test-tanh.c: New file.
15819
15820         Tests for module 'tan'.
15821         * modules/tan-tests: New file.
15822         * tests/test-tan.c: New file.
15823
15824         Tests for module 'sqrt'.
15825         * modules/sqrt-tests: New file.
15826         * tests/test-sqrt.c: New file.
15827
15828         Tests for module 'sinh'.
15829         * modules/sinh-tests: New file.
15830         * tests/test-sinh.c: New file.
15831
15832         Tests for module 'sin'.
15833         * modules/sin-tests: New file.
15834         * tests/test-sin.c: New file.
15835
15836         Tests for module 'rint'.
15837         * modules/rint-tests: New file.
15838         * tests/test-rint.c: New file.
15839
15840         Tests for module 'remainder'.
15841         * modules/remainder-tests: New file.
15842         * tests/test-remainder.c: New file.
15843
15844         Tests for module 'pow'.
15845         * modules/pow-tests: New file.
15846         * tests/test-pow.c: New file.
15847
15848         Tests for module 'nextafter'.
15849         * modules/nextafter-tests: New file.
15850         * tests/test-nextafter.c: New file.
15851
15852         Tests for module 'modf'.
15853         * modules/modf-tests: New file.
15854         * tests/test-modf.c: New file.
15855
15856         Tests for module 'logb'.
15857         * modules/logb-tests: New file.
15858         * tests/test-logb.c: New file.
15859
15860         Tests for module 'log1p'.
15861         * modules/log1p-tests: New file.
15862         * tests/test-log1p.c: New file.
15863
15864         Tests for module 'log10'.
15865         * modules/log10-tests: New file.
15866         * tests/test-log10.c: New file.
15867
15868         Tests for module 'log'.
15869         * modules/log-tests: New file.
15870         * tests/test-log.c: New file.
15871
15872         Tests for module 'lgamma'.
15873         * modules/lgamma-tests: New file.
15874         * tests/test-lgamma.c: New file.
15875
15876         Tests for module 'ldexp'.
15877         * modules/ldexp-tests: New file.
15878         * tests/test-ldexp.c: New file.
15879
15880         Tests for module 'jn'.
15881         * modules/jn-tests: New file.
15882         * tests/test-jn.c: New file.
15883
15884         Tests for module 'j1'.
15885         * modules/j1-tests: New file.
15886         * tests/test-j1.c: New file.
15887
15888         Tests for module 'j0'.
15889         * modules/j0-tests: New file.
15890         * tests/test-j0.c: New file.
15891
15892         Tests for module 'hypot'.
15893         * modules/hypot-tests: New file.
15894         * tests/test-hypot.c: New file.
15895
15896         Tests for module 'fmod'.
15897         * modules/fmod-tests: New file.
15898         * tests/test-fmod.c: New file.
15899
15900         Tests for module 'fabs'.
15901         * modules/fabs-tests: New file.
15902         * tests/test-fabs.c: New file.
15903
15904         Tests for module 'exp'.
15905         * modules/exp-tests: New file.
15906         * tests/test-exp.c: New file.
15907
15908         Tests for module 'erfc'.
15909         * modules/erfc-tests: New file.
15910         * tests/test-erfc.c: New file.
15911
15912         Tests for module 'erf'.
15913         * modules/erf-tests: New file.
15914         * tests/test-erf.c: New file.
15915
15916         Tests for module 'cosh'.
15917         * modules/cosh-tests: New file.
15918         * tests/test-cosh.c: New file.
15919
15920         Tests for module 'cos'.
15921         * modules/cos-tests: New file.
15922         * tests/test-cos.c: New file.
15923
15924         Tests for module 'copysign'.
15925         * modules/copysign-tests: New file.
15926         * tests/test-copysign.c: New file.
15927
15928         Tests for module 'cbrt'.
15929         * modules/cbrt-tests: New file.
15930         * tests/test-cbrt.c: New file.
15931
15932         Tests for module 'atan2'.
15933         * modules/atan2-tests: New file.
15934         * tests/test-atan2.c: New file.
15935
15936         Tests for module 'atan'.
15937         * modules/atan-tests: New file.
15938         * tests/test-atan.c: New file.
15939
15940         Tests for module 'asin'.
15941         * modules/asin-tests: New file.
15942         * tests/test-asin.c: New file.
15943
15944         Tests for module 'acos'.
15945         * modules/acos-tests: New file.
15946         * tests/test-acos.c: New file.
15947
15948 2010-01-24  Bruno Haible  <bruno@clisp.org>
15949
15950         Fix tests for common <math.h> functions.
15951         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15952         code snippet that references the function pointer, rather than merely
15953         calling the function. Substitute the FUNC_LIBM variable.
15954         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15955         * modules/acos (configure.ac): Likewise.
15956         * modules/asin (configure.ac): Likewise.
15957         * modules/atan (configure.ac): Likewise.
15958         * modules/atan2 (configure.ac): Likewise.
15959         * modules/cbrt (configure.ac): Likewise.
15960         * modules/copysign (configure.ac): Likewise.
15961         * modules/cos (configure.ac): Likewise.
15962         * modules/cosh (configure.ac): Likewise.
15963         * modules/erf (configure.ac): Likewise.
15964         * modules/erfc (configure.ac): Likewise.
15965         * modules/exp (configure.ac): Likewise.
15966         * modules/fabs (configure.ac): Likewise.
15967         * modules/fmod (configure.ac): Likewise.
15968         * modules/hypot (configure.ac): Likewise.
15969         * modules/j0 (configure.ac): Likewise.
15970         * modules/j1 (configure.ac): Likewise.
15971         * modules/jn (configure.ac): Likewise.
15972         * modules/ldexp (configure.ac): Likewise.
15973         * modules/lgamma (configure.ac): Likewise.
15974         * modules/log (configure.ac): Likewise.
15975         * modules/log10 (configure.ac): Likewise.
15976         * modules/log1p (configure.ac): Likewise.
15977         * modules/logb (configure.ac): Likewise.
15978         * modules/modf (configure.ac): Likewise.
15979         * modules/nextafter (configure.ac): Likewise.
15980         * modules/pow (configure.ac): Likewise.
15981         * modules/remainder (configure.ac): Likewise.
15982         * modules/rint (configure.ac): Likewise.
15983         * modules/sin (configure.ac): Likewise.
15984         * modules/sinh (configure.ac): Likewise.
15985         * modules/tan (configure.ac): Likewise.
15986         * modules/tanh (configure.ac): Likewise.
15987         * modules/y0 (configure.ac): Likewise.
15988         * modules/y1 (configure.ac): Likewise.
15989         * modules/yn (configure.ac): Likewise.
15990
15991 2010-01-24  Bruno Haible  <bruno@clisp.org>
15992
15993         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15994         * tests/test-acosl.c (x): New variable.
15995         (main): Store argument in x and fetch it from x.
15996         * tests/test-asinl.c (x): New variable.
15997         (main): Store argument in x and fetch it from x.
15998         * tests/test-atanl.c (x): New variable.
15999         (main): Store argument in x and fetch it from x.
16000         * tests/test-cosl.c (x): New variable.
16001         (main): Store argument in x and fetch it from x.
16002         * tests/test-expl.c (x): New variable.
16003         (main): Store argument in x and fetch it from x.
16004         * tests/test-logl.c (x): New variable.
16005         (main): Store argument in x and fetch it from x.
16006         * tests/test-sinl.c (x): New variable.
16007         (main): Store argument in x and fetch it from x.
16008         * tests/test-sqrtl.c (x): New variable.
16009         (main): Store argument in x and fetch it from x.
16010         * tests/test-tanl.c (x): New variable.
16011         (main): Store argument in x and fetch it from x.
16012
16013 2010-01-24  Bruno Haible  <bruno@clisp.org>
16014
16015         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16016         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16017         assignments to the initial TESTS_ENVIRONMENT.
16018         * doc/gnulib.texi (Unit test modules): Document it.
16019         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16020         TESTS_ENVIRONMENT.
16021         * modules/btowc-tests (Makefile.am): Likewise.
16022         * modules/c-stack-tests (Makefile.am): Likewise.
16023         * modules/c-strcase-tests (Makefile.am): Likewise.
16024         * modules/copy-file-tests (Makefile.am): Likewise.
16025         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16026         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16027         * modules/mbrtowc-tests (Makefile.am): Likewise.
16028         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16029         * modules/mbscasestr-tests (Makefile.am): Likewise.
16030         * modules/mbschr-tests (Makefile.am): Likewise.
16031         * modules/mbscspn-tests (Makefile.am): Likewise.
16032         * modules/mbsinit-tests (Makefile.am): Likewise.
16033         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16034         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16035         * modules/mbspbrk-tests (Makefile.am): Likewise.
16036         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16037         * modules/mbsrchr-tests (Makefile.am): Likewise.
16038         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16039         * modules/mbsspn-tests (Makefile.am): Likewise.
16040         * modules/mbsstr-tests (Makefile.am): Likewise.
16041         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16042         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16043         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16044         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16045         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16046         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16047         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16048         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16049         * modules/wcrtomb-tests (Makefile.am): Likewise.
16050         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16051         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16052         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16053         assignments from TESTS_ENVIRONMENT.
16054         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16055         augmentation.
16056         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16057         * modules/atexit-tests (Makefile.am): Likewise.
16058         * modules/binary-io-tests (Makefile.am): Likewise.
16059         * modules/closein-tests (Makefile.am): Likewise.
16060         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16061         * modules/exclude-tests (Makefile.am): Likewise.
16062         * modules/fflush-tests (Makefile.am): Likewise.
16063         * modules/fpending-tests (Makefile.am): Likewise.
16064         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16065         * modules/freadahead-tests (Makefile.am): Likewise.
16066         * modules/freadptr-tests (Makefile.am): Likewise.
16067         * modules/freadseek-tests (Makefile.am): Likewise.
16068         * modules/fseek-tests (Makefile.am): Likewise.
16069         * modules/fseeko-tests (Makefile.am): Likewise.
16070         * modules/ftell-tests (Makefile.am): Likewise.
16071         * modules/ftello-tests (Makefile.am): Likewise.
16072         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16073         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16074         * modules/lseek-tests (Makefile.am): Likewise.
16075         * modules/parse-duration-tests (Makefile.am): Likewise.
16076         * modules/perror-tests (Makefile.am): Likewise.
16077         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16078         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16079         * modules/pipe-tests (Makefile.am): Likewise.
16080         * modules/pread-tests (Makefile.am): Likewise.
16081         * modules/printf-posix-tests (Makefile.am): Likewise.
16082         * modules/select-tests (Makefile.am): Likewise.
16083         * modules/sigpipe-tests (Makefile.am): Likewise.
16084         * modules/tsearch-tests (Makefile.am): Likewise.
16085         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16086         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16087         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16088         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16089         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16090         * modules/version-etc-tests (Makefile.am): Likewise.
16091         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16092         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16093         * modules/xalloc-die-tests (Makefile.am): Likewise.
16094         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16095         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16096         * modules/xstrtol-tests (Makefile.am): Likewise.
16097         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16098         * modules/yesno-tests (Makefile.am): Likewise.
16099         Suggested by Jim Meyering.
16100
16101 2010-01-24  Bruno Haible  <bruno@clisp.org>
16102
16103         More documentation.
16104         * doc/gnulib.texi (Writing modules): New chapter.
16105         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16106         the new chapter.
16107
16108 2010-01-24  Jim Meyering  <meyering@redhat.com>
16109
16110         maint.mk: do not prepend "./" after filtering
16111         * top/maint.mk (_prepend_srcdir_prefix): New variable
16112         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16113         "./" when $(srcdir) is ".".
16114
16115         define STREQ(a,b) consistently, removing useless parentheses
16116         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16117         since the only risk is that "a" or "b" contains an unparenthesized
16118         comma, but if either did that, STREQ would have 3 or more arguments.
16119         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16120         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16121         * lib/hash-triple.c (STREQ): Likewise.
16122         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16123         * lib/getugroups.c (STREQ): Likewise.
16124
16125 2010-01-23  Jim Meyering  <meyering@redhat.com>
16126
16127         maint.mk: fix syntax-check in a non-srcdir build directory
16128         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16129         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16130
16131 2010-01-22  Jim Meyering  <meyering@redhat.com>
16132
16133         userspec: add unit tests
16134         * tests/test-userspec.c: New file.
16135         * modules/userspec-tests: Likewise.
16136
16137 2010-01-21  Jim Meyering  <meyering@redhat.com>
16138
16139         maint.mk: handle source file names containing "." robustly
16140         * top/maint.mk (_dot_escaped_srcdir): Define.
16141         (VC_LIST): Use it in LHS of sed substitution.
16142
16143 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16144
16145         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16146         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16147         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16148         from a non-srcdir build.
16149
16150 2010-01-20  Eric Blake  <ebb9@byu.net>
16151
16152         warn-on-use: use instead of link-warning
16153         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16154         * modules/unistd (Depends-on, Makefile.am): Likewise.
16155         * modules/arpa_inet (Depends-on): Replace link-warning with
16156         warn-on-use.
16157         (Makefile.am): Update rules accordingly.
16158         * modules/ctype (Depends-on, Makefile.am): Likewise.
16159         * modules/dirent (Depends-on, Makefile.am): Likewise.
16160         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16161         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16162         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16163         * modules/locale (Depends-on, Makefile.am): Likewise.
16164         * modules/math (Depends-on, Makefile.am): Likewise.
16165         * modules/search (Depends-on, Makefile.am): Likewise.
16166         * modules/signal (Depends-on, Makefile.am): Likewise.
16167         * modules/spawn (Depends-on, Makefile.am): Likewise.
16168         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16169         * modules/string (Depends-on, Makefile.am): Likewise.
16170         * modules/strings (Depends-on, Makefile.am): Likewise.
16171         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16172         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16173         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16174         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16175         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16176         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16177         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16178         * modules/wchar (Depends-on, Makefile.am): Likewise.
16179         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16180         should be poisoned.
16181         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16182         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16183         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16184         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16185         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16186         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16187         * m4/math_h.m4 (gl_MATH_H): Likewise.
16188         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16189         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16190         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16191         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16192         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16193         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16194         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16195         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16196         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16197         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16198         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16200         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16201         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16202         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16203         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16204         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16205         GL_LINK_WARNING.
16206         * lib/ctype.in.h: Likewise.
16207         * lib/dirent.in.h: Likewise.
16208         * lib/fcntl.in.h: Likewise.
16209         * lib/inttypes.in.h: Likewise.
16210         * lib/langinfo.in.h: Likewise.
16211         * lib/locale.in.h: Likewise.
16212         * lib/math.in.h: Likewise.
16213         * lib/search.in.h: Likewise.
16214         * lib/signal.in.h: Likewise.
16215         * lib/spawn.in.h: Likewise.
16216         * lib/stdio.in.h: Likewise.
16217         * lib/stdlib.in.h: Likewise.
16218         * lib/string.in.h: Likewise.
16219         * lib/strings.in.h: Likewise.
16220         * lib/sys_file.in.h: Likewise.
16221         * lib/sys_ioctl.in.h: Likewise.
16222         * lib/sys_select.in.h: Likewise.
16223         * lib/sys_socket.in.h: Likewise.
16224         * lib/sys_stat.in.h: Likewise.
16225         * lib/sys_times.in.h: Likewise.
16226         * lib/sys_utsname.in.h: Likewise.
16227         * lib/unistd.in.h: Likewise.
16228         * lib/wchar.in.h: Likewise.
16229
16230 2010-01-20  Bruno Haible  <bruno@clisp.org>
16231
16232         Avoid duplicate -lm.
16233         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16234         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16235         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16236         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16237         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16238         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16239         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16240         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16241         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16242         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16243         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16244         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16245         Reported by Paolo Bonzini.
16246
16247 2010-01-19  Bruno Haible  <bruno@clisp.org>
16248
16249         langinfo, nl_langinfo: Relicense under LGPLv2+.
16250         * modules/langinfo (License): Change to LGPLv2+.
16251         * modules/nl_langinfo (License): Likewise.
16252         Patch by David Lutterkort <lutter@redhat.com>.
16253
16254 2010-01-19  Bruno Haible  <bruno@clisp.org>
16255
16256         Avoid compilation error with cc on OSF/1 5.1.
16257         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16258         statement, not before.
16259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16260
16261 2010-01-18  Bruno Haible  <bruno@clisp.org>
16262
16263         Avoid a link error due to the __printf__ symbol.
16264         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16265         and 2.6.x.
16266         (__format__, __printf__): Remove definitions.
16267         * lib/argp-fmtstream.h: Likewise.
16268         * lib/argp.h: Likewise.
16269         * lib/error.h: Likewise.
16270         * lib/vasnprintf.h: Likewise.
16271         * lib/xprintf.h: Likewise.
16272         * lib/xvasprintf.h: Likewise.
16273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16274
16275 2010-01-18  Bruno Haible  <bruno@clisp.org>
16276
16277         Tests for module 'tanl'.
16278         * modules/tanl-tests: New file.
16279         * tests/test-tanl.c: New file.
16280
16281         Tests for module 'sqrtl'.
16282         * modules/sqrtl-tests: New file.
16283         * tests/test-sqrtl.c: New file.
16284
16285         Tests for module 'sinl'.
16286         * modules/sinl-tests: New file.
16287         * tests/test-sinl.c: New file.
16288
16289         Tests for module 'logl'.
16290         * modules/logl-tests: New file.
16291         * tests/test-logl.c: New file.
16292
16293         Tests for module 'expl'.
16294         * modules/expl-tests: New file.
16295         * tests/test-expl.c: New file.
16296
16297         Tests for module 'cosl'.
16298         * modules/cosl-tests: New file.
16299         * tests/test-cosl.c: New file.
16300
16301         Tests for module 'atanl'.
16302         * modules/atanl-tests: New file.
16303         * tests/test-atanl.c: New file.
16304
16305         Tests for module 'asinl'.
16306         * modules/asinl-tests: New file.
16307         * tests/test-asinl.c: New file.
16308
16309         Tests for module 'acosl'.
16310         * modules/acosl-tests: New file.
16311         * tests/test-acosl.c: New file.
16312
16313         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16314         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16315         tanl): Use the standard gnulib idiom.
16316         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16317         * lib/sinl.c: Likewise.
16318         * lib/tanl.c: Don't include trigl.c.
16319         (kernel_tanl): Make static.
16320         * lib/sincosl.c: Include trigl.h first.
16321         * lib/trigl.c: Likewise.
16322         * m4/acosl.m4: New file.
16323         * m4/asinl.m4: New file.
16324         * m4/atanl.m4: New file.
16325         * m4/cosl.m4: New file.
16326         * m4/expl.m4: New file.
16327         * m4/logl.m4: New file.
16328         * m4/sinl.m4: New file.
16329         * m4/sqrtl.m4: New file.
16330         * m4/tanl.m4: New file.
16331         * m4/mathl.m4: Remove file.
16332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16333         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16334         Don't initialize GNULIB_MATHL.
16335         * modules/acosl: New file.
16336         * modules/asinl: New file.
16337         * modules/atanl: New file.
16338         * modules/cosl: New file.
16339         * modules/expl: New file.
16340         * modules/logl: New file.
16341         * modules/sinl: New file.
16342         * modules/sqrtl: New file.
16343         * modules/tanl: New file.
16344         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16345         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16346         substitute GNULIB_MATHL.
16347         * modules/mathl: Rewritten.
16348         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16349         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16350         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16351         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16352         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16353         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16354         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16355         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16356         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16357
16358 2010-01-18  Bruno Haible  <bruno@clisp.org>
16359
16360         sqrt: Make gl_FUNC_SQRT requirable.
16361         * m4/sqrt.m4: New file.
16362         * modules/sqrt (Files): Add it.
16363         (configure.ac): Invoke gl_FUNC_SQRT.
16364
16365 2010-01-18  Bruno Haible  <bruno@clisp.org>
16366
16367         New modules for common <math.h> functions.
16368         * m4/mathfunc.m4: New file.
16369         * modules/acos: New file.
16370         * modules/asin: New file.
16371         * modules/atan: New file.
16372         * modules/atan2: New file.
16373         * modules/cbrt: New file.
16374         * modules/copysign: New file.
16375         * modules/cos: New file.
16376         * modules/cosh: New file.
16377         * modules/erf: New file.
16378         * modules/erfc: New file.
16379         * modules/exp: New file.
16380         * modules/fabs: New file.
16381         * modules/fmod: New file.
16382         * modules/hypot: New file.
16383         * modules/j0: New file.
16384         * modules/j1: New file.
16385         * modules/jn: New file.
16386         * modules/ldexp: New file.
16387         * modules/lgamma: New file.
16388         * modules/log: New file.
16389         * modules/log10: New file.
16390         * modules/log1p: New file.
16391         * modules/logb: New file.
16392         * modules/modf: New file.
16393         * modules/nextafter: New file.
16394         * modules/pow: New file.
16395         * modules/remainder: New file.
16396         * modules/rint: New file.
16397         * modules/sin: New file.
16398         * modules/sinh: New file.
16399         * modules/sqrt: New file.
16400         * modules/tan: New file.
16401         * modules/tanh: New file.
16402         * modules/y0: New file.
16403         * modules/y1: New file.
16404         * modules/yn: New file.
16405         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16406         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16407         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16408         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16409         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16410         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16411         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16412         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16413         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16414         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16415         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16416         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16417         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16418         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16419         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16420         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16421         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16422         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16423         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16424         * doc/posix-functions/log.texi: Mention the 'log' module.
16425         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16426         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16427         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16428         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16429         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16430         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16431         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16432         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16433         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16434         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16435         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16436         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16437         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16438         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16439         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16440         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16441
16442 2010-01-18  Jim Meyering  <meyering@redhat.com>
16443
16444         ignore-value: relax license to LGPLv2+
16445         * modules/ignore-value (License): Relax to LGPLv2+.
16446
16447         getdate: don't leak when TZ contains two or more '"'s
16448         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16449         double quote in TZ after the first one.
16450
16451         readtokens: do not leak internal token_lengths buffer
16452         * lib/readtokens.c (readtokens): Free the local, lengths,
16453         when the supplied "token_lengths" parameter is NULL.
16454
16455 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16456
16457         Fix a couple of missing LIBTHREAD link failures on AIX.
16458         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16459         $(LIBTHREAD).
16460         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16461
16462         Link test-poll against INET_PTON_LIB.
16463         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16464         for inet_pton on Solaris 10.
16465
16466 2010-01-17  Bruno Haible  <bruno@clisp.org>
16467
16468         unistdio/*-sprintf: Fix typo in module description.
16469         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16470         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16471         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16472         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16473         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16474         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16475         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16477
16478 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16479
16480         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16481         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16482         variables in shell case patterns, for AIX and HP-UX ksh.
16483
16484         Split large sed scripts, for HP-UX sed.
16485         * modules/stdio: Split sed scripts around 50 sed commands,
16486         to avoid HP-UX limit of 99 commands, in the near future.
16487         * modules/string: Likewise.
16488         * modules/unistd: Likewise.
16489
16490         gnulib-tool: avoid writing in the current directory.
16491         * gnulib-tool (func_emit_lib_Makefile_am)
16492         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16493         not in the current directory, so concurrent gnulib-tool
16494         instances do not interfere.
16495
16496 2010-01-16  Jim Meyering  <meyering@redhat.com>
16497
16498         doc: update users.txt
16499         * users.txt: Add grep.
16500         (diffutils, gzip): Update URLs.
16501
16502 2010-01-12  Bruno Haible  <bruno@clisp.org>
16503
16504         posix_spawn: Avoid test failure on Cygwin.
16505         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16506         characters.
16507         Reported by Simon Josefsson.
16508
16509 2010-01-12  Bruno Haible  <bruno@clisp.org>
16510
16511         * tests/test-cond.c (main): When skipping the test, show the reason.
16512
16513 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16514
16515         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16516
16517 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16518
16519         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16520         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16521
16522 2010-01-12  Eric Blake  <ebb9@byu.net>
16523
16524         build: guarantee AS_VAR_IF
16525         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16526         (gl_AS_VAR_IF): Move...
16527         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16528         Reported by Simon Josefsson.
16529
16530 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16531
16532         * lib/stdio.in.h: Fix typo.
16533
16534 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16535
16536         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16537         libgpg-error.
16538
16539 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16540
16541         * tests/test-xalloc-die.sh: Use $EXEEXT.
16542
16543 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16544             Bruno Haible  <bruno@clisp.org>
16545
16546         getlogin, getlogin_r: Avoid test failure.
16547         * tests/test-getlogin.c: Include <stdio.h>.
16548         (main): Skip the test when the function fails because stdin is not a
16549         tty.
16550         * tests/test-getlogin_r.c: Include <stdio.h>.
16551         (main): Skip the test when the function fails because stdin is not a
16552         tty.
16553
16554 2010-01-11  Eric Blake  <ebb9@byu.net>
16555
16556         tests: avoid more large file warnings
16557         * tests/test-fflush.c: Avoid warning about ftell use.
16558         * tests/test-fseek.c: Avoid warning about fseek use.
16559
16560 2010-01-10  Bruno Haible  <bruno@clisp.org>
16561
16562         nproc: Work better on Linux when /proc and /sys are not mounted.
16563         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16564         as lower bound when, on glibc/Linux systems,
16565         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16566         Suggested by Pádraig Brady <P@draigbrady.com>.
16567         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16568
16569         nproc: Refactor.
16570         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16571         extracted from num_processors.
16572         (num_processors): Call it.
16573
16574 2010-01-11  Jim Meyering  <meyering@redhat.com>
16575
16576         utimecmp: avoid new warning from upcoming gcc-4.5.0
16577         * lib/utimecmp.c (BILLION): Define using #define rather than an
16578         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16579
16580 2010-01-11  Eric Blake  <ebb9@byu.net>
16581
16582         math: add portability warnings for classification macros
16583         * modules/math (Depends-on): Add warn-on-use.
16584         (Makefile.am): Provide new substitutions.
16585         * m4/math_h.m4 (gl_MATH_H): Require inline.
16586         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16587         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16588         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16589         implement warnings.
16590
16591         unistd: warn on use of environ without module
16592         * modules/unistd (Depends-on): Add warn-on-use.
16593         (Makefile.am): Provide new substitutions.
16594         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16595         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16596
16597         stdio: warn on suspicious uses
16598         * modules/stdio (Depends-on): Add warn-on-use.
16599         (Makefile.am): Provide new substitutions.
16600         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16601         fseeko.
16602         * lib/stdio.in.h (gets): Always warn on use.
16603         (fseek, ftell): Adjust when warnings are issued, and honor
16604         _GL_NO_LARGE_FILES as a way to silence the warning.
16605         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16606         any warning about large file offsets.
16607         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16608         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16609         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16610         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16611         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16612         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16613         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16614         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16615
16616         warn-on-use: new module
16617         * modules/warn-on-use: New file.
16618         * build-aux/warn-on-use.h: Likewise.
16619         * m4/warn-on-use.m4: Likewise.
16620         * MODULES.html.sh (Support for building): Mention it.
16621
16622 2010-01-10  Bruno Haible  <bruno@clisp.org>
16623
16624         Tests for module 'unistr/u32-strdup'.
16625         * modules/unistr/u32-strdup-tests: New file.
16626         * tests/unistr/test-u32-strdup.c: New file.
16627
16628         Tests for module 'unistr/u16-strdup'.
16629         * modules/unistr/u16-strdup-tests: New file.
16630         * tests/unistr/test-u16-strdup.c: New file.
16631
16632         Tests for module 'unistr/u8-strdup'.
16633         * modules/unistr/u8-strdup-tests: New file.
16634         * tests/unistr/test-u8-strdup.c: New file.
16635         * tests/unistr/test-strdup.h: New file.
16636
16637         Tests for module 'unistr/u32-strncmp'.
16638         * modules/unistr/u32-strncmp-tests: New file.
16639         * tests/unistr/test-u32-strncmp.c: New file.
16640
16641         Tests for module 'unistr/u16-strncmp'.
16642         * modules/unistr/u16-strncmp-tests: New file.
16643         * tests/unistr/test-u16-strncmp.c: New file.
16644
16645         Tests for module 'unistr/u8-strncmp'.
16646         * modules/unistr/u8-strncmp-tests: New file.
16647         * tests/unistr/test-u8-strncmp.c: New file.
16648         * tests/unistr/test-strncmp.h: New file.
16649
16650         Tests for module 'unistr/u32-strcoll'.
16651         * modules/unistr/u32-strcoll-tests: New file.
16652         * tests/unistr/test-u32-strcoll.c: New file.
16653
16654         Tests for module 'unistr/u16-strcoll'.
16655         * modules/unistr/u16-strcoll-tests: New file.
16656         * tests/unistr/test-u16-strcoll.c: New file.
16657
16658         Tests for module 'unistr/u8-strcoll'.
16659         * modules/unistr/u8-strcoll-tests: New file.
16660         * tests/unistr/test-u8-strcoll.c: New file.
16661
16662         Tests for module 'unistr/u32-strcmp'.
16663         * modules/unistr/u32-strcmp-tests: New file.
16664         * tests/unistr/test-u32-strcmp.c: New file.
16665         * tests/unistr/test-u32-strcmp.h: New file.
16666
16667         Tests for module 'unistr/u16-strcmp'.
16668         * modules/unistr/u16-strcmp-tests: New file.
16669         * tests/unistr/test-u16-strcmp.c: New file.
16670         * tests/unistr/test-u16-strcmp.h: New file.
16671
16672         Tests for module 'unistr/u8-strcmp'.
16673         * modules/unistr/u8-strcmp-tests: New file.
16674         * tests/unistr/test-u8-strcmp.c: New file.
16675         * tests/unistr/test-u8-strcmp.h: New file.
16676         * tests/unistr/test-strcmp.h: New file.
16677
16678         Tests for module 'unistr/u32-strncat'.
16679         * modules/unistr/u32-strncat-tests: New file.
16680         * tests/unistr/test-u32-strncat.c: New file.
16681
16682         Tests for module 'unistr/u16-strncat'.
16683         * modules/unistr/u16-strncat-tests: New file.
16684         * tests/unistr/test-u16-strncat.c: New file.
16685
16686         Tests for module 'unistr/u8-strncat'.
16687         * modules/unistr/u8-strncat-tests: New file.
16688         * tests/unistr/test-u8-strncat.c: New file.
16689         * tests/unistr/test-strncat.h: New file.
16690
16691         Tests for module 'unistr/u32-strcat'.
16692         * modules/unistr/u32-strcat-tests: New file.
16693         * tests/unistr/test-u32-strcat.c: New file.
16694
16695         Tests for module 'unistr/u16-strcat'.
16696         * modules/unistr/u16-strcat-tests: New file.
16697         * tests/unistr/test-u16-strcat.c: New file.
16698
16699         Tests for module 'unistr/u8-strcat'.
16700         * modules/unistr/u8-strcat-tests: New file.
16701         * tests/unistr/test-u8-strcat.c: New file.
16702         * tests/unistr/test-strcat.h: New file.
16703
16704         Tests for module 'unistr/u32-stpncpy'.
16705         * modules/unistr/u32-stpncpy-tests: New file.
16706         * tests/unistr/test-u32-stpncpy.c: New file.
16707
16708         Tests for module 'unistr/u16-stpncpy'.
16709         * modules/unistr/u16-stpncpy-tests: New file.
16710         * tests/unistr/test-u16-stpncpy.c: New file.
16711
16712         Tests for module 'unistr/u8-stpncpy'.
16713         * modules/unistr/u8-stpncpy-tests: New file.
16714         * tests/unistr/test-u8-stpncpy.c: New file.
16715         * tests/unistr/test-stpncpy.h: New file.
16716
16717         Tests for module 'unistr/u32-strncpy'.
16718         * modules/unistr/u32-strncpy-tests: New file.
16719         * tests/unistr/test-u32-strncpy.c: New file.
16720
16721         Tests for module 'unistr/u16-strncpy'.
16722         * modules/unistr/u16-strncpy-tests: New file.
16723         * tests/unistr/test-u16-strncpy.c: New file.
16724
16725         Tests for module 'unistr/u8-strncpy'.
16726         * modules/unistr/u8-strncpy-tests: New file.
16727         * tests/unistr/test-u8-strncpy.c: New file.
16728         * tests/unistr/test-strncpy.h: New file.
16729
16730         Tests for module 'unistr/u32-stpcpy'.
16731         * modules/unistr/u32-stpcpy-tests: New file.
16732         * tests/unistr/test-u32-stpcpy.c: New file.
16733
16734         Tests for module 'unistr/u16-stpcpy'.
16735         * modules/unistr/u16-stpcpy-tests: New file.
16736         * tests/unistr/test-u16-stpcpy.c: New file.
16737
16738         Tests for module 'unistr/u8-stpcpy'.
16739         * modules/unistr/u8-stpcpy-tests: New file.
16740         * tests/unistr/test-u8-stpcpy.c: New file.
16741         * tests/unistr/test-stpcpy.h: New file.
16742
16743         Tests for module 'unistr/u32-strcpy'.
16744         * modules/unistr/u32-strcpy-tests: New file.
16745         * tests/unistr/test-u32-strcpy.c: New file.
16746
16747         Tests for module 'unistr/u16-strcpy'.
16748         * modules/unistr/u16-strcpy-tests: New file.
16749         * tests/unistr/test-u16-strcpy.c: New file.
16750
16751         Tests for module 'unistr/u8-strcpy'.
16752         * modules/unistr/u8-strcpy-tests: New file.
16753         * tests/unistr/test-u8-strcpy.c: New file.
16754         * tests/unistr/test-strcpy.h: New file.
16755
16756         Tests for module 'unistr/u32-strnlen'.
16757         * modules/unistr/u32-strnlen-tests: New file.
16758         * tests/unistr/test-u32-strnlen.c: New file.
16759
16760         Tests for module 'unistr/u16-strnlen'.
16761         * modules/unistr/u16-strnlen-tests: New file.
16762         * tests/unistr/test-u16-strnlen.c: New file.
16763
16764         Tests for module 'unistr/u8-strnlen'.
16765         * modules/unistr/u8-strnlen-tests: New file.
16766         * tests/unistr/test-u8-strnlen.c: New file.
16767         * tests/unistr/test-strnlen.h: New file.
16768
16769         Tests for module 'unistr/u32-strlen'.
16770         * modules/unistr/u32-strlen-tests: New file.
16771         * tests/unistr/test-u32-strlen.c: New file.
16772
16773         Tests for module 'unistr/u16-strlen'.
16774         * modules/unistr/u16-strlen-tests: New file.
16775         * tests/unistr/test-u16-strlen.c: New file.
16776
16777         Tests for module 'unistr/u8-strlen'.
16778         * modules/unistr/u8-strlen-tests: New file.
16779         * tests/unistr/test-u8-strlen.c: New file.
16780
16781         Tests for module 'unistr/u32-prev'.
16782         * modules/unistr/u32-prev-tests: New file.
16783         * tests/unistr/test-u32-prev.c: New file.
16784
16785         Tests for module 'unistr/u16-prev'.
16786         * modules/unistr/u16-prev-tests: New file.
16787         * tests/unistr/test-u16-prev.c: New file.
16788
16789         Tests for module 'unistr/u8-prev'.
16790         * modules/unistr/u8-prev-tests: New file.
16791         * tests/unistr/test-u8-prev.c: New file.
16792
16793         Tests for module 'unistr/u32-next'.
16794         * modules/unistr/u32-next-tests: New file.
16795         * tests/unistr/test-u32-next.c: New file.
16796
16797         Tests for module 'unistr/u16-next'.
16798         * modules/unistr/u16-next-tests: New file.
16799         * tests/unistr/test-u16-next.c: New file.
16800
16801         Tests for module 'unistr/u8-next'.
16802         * modules/unistr/u8-next-tests: New file.
16803         * tests/unistr/test-u8-next.c: New file.
16804
16805         Tests for module 'unistr/u32-strmbtouc'.
16806         * modules/unistr/u32-strmbtouc-tests: New file.
16807         * tests/unistr/test-u32-strmbtouc.c: New file.
16808
16809         Tests for module 'unistr/u16-strmbtouc'.
16810         * modules/unistr/u16-strmbtouc-tests: New file.
16811         * tests/unistr/test-u16-strmbtouc.c: New file.
16812
16813         Tests for module 'unistr/u8-strmbtouc'.
16814         * modules/unistr/u8-strmbtouc-tests: New file.
16815         * tests/unistr/test-u8-strmbtouc.c: New file.
16816
16817         Tests for module 'unistr/u32-strmblen'.
16818         * modules/unistr/u32-strmblen-tests: New file.
16819         * tests/unistr/test-u32-strmblen.c: New file.
16820
16821         Tests for module 'unistr/u16-strmblen'.
16822         * modules/unistr/u16-strmblen-tests: New file.
16823         * tests/unistr/test-u16-strmblen.c: New file.
16824
16825         Tests for module 'unistr/u8-strmblen'.
16826         * modules/unistr/u8-strmblen-tests: New file.
16827         * tests/unistr/test-u8-strmblen.c: New file.
16828
16829         Tests for module 'unistr/u32-cpy-alloc'.
16830         * modules/unistr/u32-cpy-alloc-tests: New file.
16831         * tests/unistr/test-u32-cpy-alloc.c: New file.
16832
16833         Tests for module 'unistr/u16-cpy-alloc'.
16834         * modules/unistr/u16-cpy-alloc-tests: New file.
16835         * tests/unistr/test-u16-cpy-alloc.c: New file.
16836
16837         Tests for module 'unistr/u8-cpy-alloc'.
16838         * modules/unistr/u8-cpy-alloc-tests: New file.
16839         * tests/unistr/test-u8-cpy-alloc.c: New file.
16840         * tests/unistr/test-cpy-alloc.h: New file.
16841
16842         Tests for module 'unistr/u32-mbsnlen'.
16843         * modules/unistr/u32-mbsnlen-tests: New file.
16844         * tests/unistr/test-u32-mbsnlen.c: New file.
16845
16846         Tests for module 'unistr/u16-mbsnlen'.
16847         * modules/unistr/u16-mbsnlen-tests: New file.
16848         * tests/unistr/test-u16-mbsnlen.c: New file.
16849
16850         Tests for module 'unistr/u8-mbsnlen'.
16851         * modules/unistr/u8-mbsnlen-tests: New file.
16852         * tests/unistr/test-u8-mbsnlen.c: New file.
16853
16854         Tests for module 'unistr/u32-chr'.
16855         * modules/unistr/u32-chr-tests: New file.
16856         * tests/unistr/test-u32-chr.c: New file.
16857
16858         Tests for module 'unistr/u16-chr'.
16859         * modules/unistr/u16-chr-tests: New file.
16860         * tests/unistr/test-u16-chr.c: New file.
16861
16862         Tests for module 'unistr/u8-chr'.
16863         * modules/unistr/u8-chr-tests: New file.
16864         * tests/unistr/test-u8-chr.c: New file.
16865         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16866
16867         Tests for module 'unistr/u32-cmp2'.
16868         * modules/unistr/u32-cmp2-tests: New file.
16869         * tests/unistr/test-u32-cmp2.c: New file.
16870
16871         Tests for module 'unistr/u16-cmp2'.
16872         * modules/unistr/u16-cmp2-tests: New file.
16873         * tests/unistr/test-u16-cmp2.c: New file.
16874
16875         Tests for module 'unistr/u8-cmp2'.
16876         * modules/unistr/u8-cmp2-tests: New file.
16877         * tests/unistr/test-u8-cmp2.c: New file.
16878         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16879
16880         Tests for module 'unistr/u32-cmp'.
16881         * modules/unistr/u32-cmp-tests: New file.
16882         * tests/unistr/test-u32-cmp.c: New file.
16883
16884         Tests for module 'unistr/u16-cmp'.
16885         * modules/unistr/u16-cmp-tests: New file.
16886         * tests/unistr/test-u16-cmp.c: New file.
16887
16888         Tests for module 'unistr/u8-cmp'.
16889         * modules/unistr/u8-cmp-tests: New file.
16890         * tests/unistr/test-u8-cmp.c: New file.
16891         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16892
16893         Tests for module 'unistr/u32-set'.
16894         * modules/unistr/u32-set-tests: New file.
16895         * tests/unistr/test-u32-set.c: New file.
16896
16897         Tests for module 'unistr/u16-set'.
16898         * modules/unistr/u16-set-tests: New file.
16899         * tests/unistr/test-u16-set.c: New file.
16900
16901         Tests for module 'unistr/u8-set'.
16902         * modules/unistr/u8-set-tests: New file.
16903         * tests/unistr/test-u8-set.c: New file.
16904         * tests/unistr/test-set.h: New file.
16905
16906         Tests for module 'unistr/u32-move'.
16907         * modules/unistr/u32-move-tests: New file.
16908         * tests/unistr/test-u32-move.c: New file.
16909
16910         Tests for module 'unistr/u16-move'.
16911         * modules/unistr/u16-move-tests: New file.
16912         * tests/unistr/test-u16-move.c: New file.
16913
16914         Tests for module 'unistr/u8-move'.
16915         * modules/unistr/u8-move-tests: New file.
16916         * tests/unistr/test-u8-move.c: New file.
16917         * tests/unistr/test-move.h: New file.
16918
16919         Tests for module 'unistr/u32-cpy'.
16920         * modules/unistr/u32-cpy-tests: New file.
16921         * tests/unistr/test-u32-cpy.c: New file.
16922
16923         Tests for module 'unistr/u16-cpy'.
16924         * modules/unistr/u16-cpy-tests: New file.
16925         * tests/unistr/test-u16-cpy.c: New file.
16926
16927         Tests for module 'unistr/u8-cpy'.
16928         * modules/unistr/u8-cpy-tests: New file.
16929         * tests/unistr/test-u8-cpy.c: New file.
16930         * tests/unistr/test-cpy.h: New file.
16931
16932 2010-01-09  Bruno Haible  <bruno@clisp.org>
16933
16934         Tests for module 'unistr/u32-uctomb'.
16935         * modules/unistr/u32-uctomb-tests: New file.
16936         * tests/unistr/test-u32-uctomb.c: New file.
16937
16938         Tests for module 'unistr/u16-uctomb'.
16939         * modules/unistr/u16-uctomb-tests: New file.
16940         * tests/unistr/test-u16-uctomb.c: New file.
16941
16942         Tests for module 'unistr/u8-uctomb'.
16943         * modules/unistr/u8-uctomb-tests: New file.
16944         * tests/unistr/test-u8-uctomb.c: New file.
16945
16946         Tests for module 'unistr/u32-mbtoucr'.
16947         * modules/unistr/u32-mbtoucr-tests: New file.
16948         * tests/unistr/test-u32-mbtoucr.c: New file.
16949
16950         Tests for module 'unistr/u16-mbtoucr'.
16951         * modules/unistr/u16-mbtoucr-tests: New file.
16952         * tests/unistr/test-u16-mbtoucr.c: New file.
16953
16954         Tests for module 'unistr/u8-mbtoucr'.
16955         * modules/unistr/u8-mbtoucr-tests: New file.
16956         * tests/unistr/test-u8-mbtoucr.c: New file.
16957
16958         Tests for module 'unistr/u32-mbtouc'.
16959         * modules/unistr/u32-mbtouc-tests: New file.
16960         * tests/unistr/test-u32-mbtouc.c: New file.
16961
16962         Tests for module 'unistr/u16-mbtouc'.
16963         * modules/unistr/u16-mbtouc-tests: New file.
16964         * tests/unistr/test-u16-mbtouc.c: New file.
16965
16966         Tests for module 'unistr/u8-mbtouc'.
16967         * modules/unistr/u8-mbtouc-tests: New file.
16968         * tests/unistr/test-u8-mbtouc.c: New file.
16969
16970         Tests for module 'unistr/u32-mbtouc-unsafe'.
16971         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16972         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16973         * tests/unistr/test-u32-mbtouc.h: New file.
16974
16975         Tests for module 'unistr/u16-mbtouc-unsafe'.
16976         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16977         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16978         * tests/unistr/test-u16-mbtouc.h: New file.
16979
16980         Tests for module 'unistr/u8-mbtouc-unsafe'.
16981         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16982         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16983         * tests/unistr/test-u8-mbtouc.h: New file.
16984
16985         Tests for module 'unistr/u32-mblen'.
16986         * modules/unistr/u32-mblen-tests: New file.
16987         * tests/unistr/test-u32-mblen.c: New file.
16988
16989         Tests for module 'unistr/u16-mblen'.
16990         * modules/unistr/u16-mblen-tests: New file.
16991         * tests/unistr/test-u16-mblen.c: New file.
16992
16993         Tests for module 'unistr/u8-mblen'.
16994         * modules/unistr/u8-mblen-tests: New file.
16995         * tests/unistr/test-u8-mblen.c: New file.
16996
16997         Tests for module 'unistr/u32-to-u16'.
16998         * modules/unistr/u32-to-u16-tests: New file.
16999         * tests/unistr/test-u32-to-u16.c: New file.
17000
17001         Tests for module 'unistr/u32-to-u8'.
17002         * modules/unistr/u32-to-u8-tests: New file.
17003         * tests/unistr/test-u32-to-u8.c: New file.
17004
17005         Tests for module 'unistr/u16-to-u32'.
17006         * modules/unistr/u16-to-u32-tests: New file.
17007         * tests/unistr/test-u16-to-u32.c: New file.
17008
17009         Tests for module 'unistr/u16-to-u8'.
17010         * modules/unistr/u16-to-u8-tests: New file.
17011         * tests/unistr/test-u16-to-u8.c: New file.
17012
17013         Tests for module 'unistr/u8-to-u32'.
17014         * modules/unistr/u8-to-u32-tests: New file.
17015         * tests/unistr/test-u8-to-u32.c: New file.
17016
17017         Tests for module 'unistr/u8-to-u16'.
17018         * modules/unistr/u8-to-u16-tests: New file.
17019         * tests/unistr/test-u8-to-u16.c: New file.
17020
17021         Tests for module 'unistr/u32-check'.
17022         * modules/unistr/u32-check-tests: New file.
17023         * tests/unistr/test-u32-check.c: New file.
17024
17025         Tests for module 'unistr/u16-check'.
17026         * modules/unistr/u16-check-tests: New file.
17027         * tests/unistr/test-u16-check.c: New file.
17028
17029         Tests for module 'unistr/u8-check'.
17030         * modules/unistr/u8-check-tests: New file.
17031         * tests/unistr/test-u8-check.c: New file.
17032
17033         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17034         (category_equals): New function.
17035         (main): Add more tests.
17036         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17037
17038         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17039
17040 2010-01-10  Bruno Haible  <bruno@clisp.org>
17041
17042         unistr/u*-strcoll: Try harder to distinguish different strings.
17043         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17044         compare s1 and s2 to see if they are different.
17045
17046 2010-01-10  Bruno Haible  <bruno@clisp.org>
17047
17048         unistr/u*-stpncpy: Fix the return value.
17049         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17050         description of the return value consistent with stpncpy in glibc.
17051         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17052         written non-NUL unit.
17053
17054 2010-01-10  Bruno Haible  <bruno@clisp.org>
17055
17056         unistr/u*-next: Add missing dependencies.
17057         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17058         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17059         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17060
17061 2010-01-10  Bruno Haible  <bruno@clisp.org>
17062
17063         unistr/u8-mbsnlen: Fix return value for incomplete character.
17064         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17065         u8_mblen.
17066         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17067         Remove unistr/u8-mblen.
17068         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17069         u16_mblen.
17070         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17071         Remove unistr/u16-mblen.
17072
17073 2010-01-10  Bruno Haible  <bruno@clisp.org>
17074
17075         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17076         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17077         Reported by Brian Gough <bjg@gnu.org> and
17078         Chris Clayton <chris2553@googlemail.com> via
17079         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17080
17081 2010-01-09  Bruno Haible  <bruno@clisp.org>
17082
17083         unistr/u16-to-u32: Reject invalid input.
17084         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17085         u16_mbtouc.
17086         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17087         Remove unistr/u16-mbtouc.
17088
17089         unistr/u16-to-u8: Reject invalid input.
17090         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17091         u16_mbtouc.
17092         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17093         Remove unistr/u16-mbtouc.
17094
17095         unistr/u8-to-u32: Reject invalid input.
17096         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17097         u8_mbtouc.
17098         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17099         Remove unistr/u8-mbtouc.
17100
17101         unistr/u8-to-u16: Reject invalid input.
17102         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17103         u8_mbtouc.
17104         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17105         Remove unistr/u8-mbtouc.
17106
17107 2010-01-09  Bruno Haible  <bruno@clisp.org>
17108
17109         Tests for module 'getlogin'.
17110         * modules/getlogin-tests: New file.
17111         * tests/test-getlogin.c: New file.
17112
17113         New module 'getlogin'.
17114         * lib/unistd.in.h (getlogin): New declaration.
17115         * lib/getlogin.c: New file.
17116         * m4/getlogin.m4: New file.
17117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17118         HAVE_GETLOGIN.
17119         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17120         HAVE_GETLOGIN.
17121         * modules/getlogin: New file.
17122         * doc/posix-functions/getlogin.texi: Mention the new module.
17123         Reported by John W. Eaton <jwe@gnu.org>.
17124
17125 2010-01-09  Bruno Haible  <bruno@clisp.org>
17126
17127         getlogin_r: Support for native Windows.
17128         * lib/getlogin_r.c: Include <windows.h>
17129         (getlogin_r): Implement for native Windows.
17130         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17131         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17132         via John W. Eaton <jwe@gnu.org>.
17133
17134 2010-01-09  Bruno Haible  <bruno@clisp.org>
17135
17136         getlogin_r: Small fixes.
17137         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17138         succeeds.
17139         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17140         before testing whether getlogin_r is declared. No need to set
17141         HAVE_DECL_GETLOGIN_R to 1.
17142         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17143
17144 2010-01-09  Bruno Haible  <bruno@clisp.org>
17145
17146         * lib/unistd.in.h (getlogin_r): Add comment.
17147
17148 2010-01-09  Bruno Haible  <bruno@clisp.org>
17149
17150         Tests for module 'getlogin_r'.
17151         * modules/getlogin_r-tests: New file.
17152         * tests/test-getlogin_r.c: New file.
17153
17154 2010-01-09  Jim Meyering  <meyering@redhat.com>
17155
17156         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17157         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17158         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17159
17160 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17161
17162         * lib/dup2.c (rpl_dup2): Improve comment.
17163
17164 2010-01-08  Eric Blake  <ebb9@byu.net>
17165
17166         maint.mk: allow packages to add makefile @@ exceptions
17167         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17168         (sc_makefile_check): Rename...
17169         (sc_makefile_at_at_check): ...to this, and use hook.
17170
17171         dup2: work around mingw bug
17172         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17173         Reported by Simon Josefsson.
17174
17175 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17176
17177         glob: Fix C++ compilation.
17178         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17179         C++.
17180
17181 2010-01-07  Bruno Haible  <bruno@clisp.org>
17182
17183         Fix indentation of wctype.in.h, broken since 2007-01-06.
17184         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17185
17186 2010-01-07  Bruno Haible  <bruno@clisp.org>
17187
17188         mbslen: Avoid collision with system function.
17189         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17190         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17191         * m4/mbslen.m4: New file.
17192         * modules/mbslen (Files): Add it.
17193         (configure.ac): Invoke gl_MBSLEN.
17194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17195         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17196         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17197         via Ian Beckwith <ianb@erislabs.net>.
17198
17199 2010-01-07  Bruno Haible  <bruno@clisp.org>
17200
17201         dirent: Document the last fix.
17202         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17203
17204 2010-01-07  Bruno Haible  <bruno@clisp.org>
17205
17206         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17207         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17208         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17209         va_list are defined.
17210         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17211         Reported by Eric Blake.
17212
17213 2010-01-07  Bruno Haible  <bruno@clisp.org>
17214
17215         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17216         * modules/xlist (Depends-on): Add 'list',
17217         * modules/xoset (Depends-on): Add 'oset'.
17218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17219
17220 2010-01-07  Bruno Haible  <bruno@clisp.org>
17221
17222         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17223         * doc/posix-functions/strncasecmp.texi: Likewise.
17224
17225 2010-01-07  Bruno Haible  <bruno@clisp.org>
17226
17227         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17228
17229 2010-01-07  John W. Eaton  <jwe@octave.org>
17230
17231         wctype: allow C++ use
17232         * lib/wctype.in.h: Add extern "C" block for C++.
17233
17234 2010-01-06  Eric Blake  <ebb9@byu.net>
17235
17236         maint.mk: detect incorrect GFDL usage
17237         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17238
17239 2010-01-06  Jim Meyering  <meyering@redhat.com>
17240         and Eric Blake  <ebb9@byu.net>
17241
17242         maint.mk: ignore multi-line copyright in NEWS
17243         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17244
17245 2010-01-06  Eric Blake  <ebb9@byu.net>
17246
17247         select: add missing dependency
17248         * modules/select-tests (Depends-on): Move sockets dependency...
17249         * modules/select (Depends-on): ...here.
17250         Reported by Ian Beckwith.
17251
17252         doc: regenerate INSTALL
17253         * doc/INSTALL: Reflect recent autoconf update.
17254         * doc/INSTALL.ISO: Likewise.
17255         * doc/INSTALL.UTF-8: Likewise.
17256
17257         pread: fix compilation on glibc
17258         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17259         Reported by Ralf Wildenhues.
17260
17261         dirent: fix test failure
17262         * lib/dirent.in.h (includes): Guarantee ino_t.
17263         Reported by Ralf Wildenhues.
17264
17265 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17266
17267         linkat, renameat: avoid bad free
17268         * lib/at-func2.c (at_func2): Fix typo.
17269         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17270
17271 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17272
17273         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17274         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17275         to avoid failure of symlink test later.
17276
17277 2010-01-06  Eric Blake  <ebb9@byu.net>
17278
17279         stdio, unistd: guarantee ssize_t
17280         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17281         2008 are exposed when needed.
17282         * lib/stdio.in.h (includes): Likewise.
17283         Reported by Ralf Wildenhues.
17284
17285 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17286
17287         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17288         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17289         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17290
17291 2010-01-06  Jim Meyering  <meyering@redhat.com>
17292
17293         readtokens: this module *does* require xalloc.h
17294         It uses only functions that were omitted by the old syntax-check rule.
17295         * lib/readtokens.c: Include "xalloc.h" once again.
17296         * modules/readtokens (Depends-on): Add xalloc.
17297         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17298
17299 2010-01-05  Eric Blake  <ebb9@byu.net>
17300
17301         maint: support 'make announcement' from a VPATH build
17302         * top/maint.mk (announcement): Look for correct NEWS file.
17303
17304 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17305
17306         utimens (fdutimens): ignore a negative FD, per contract
17307         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17308         when we have a valid file descriptor.  Otherwise, using a brand
17309         new glibc (with just-patched futimens that now fails with EBADF)
17310         would cause this function to fail with ENOSYS.
17311         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17312         See also http://bugzilla.redhat.com/552320.
17313
17314 2010-01-05  Eric Blake  <ebb9@byu.net>
17315
17316         strcase: document what it provides
17317         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17318         gnulib module.
17319         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17320         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17321
17322 2010-01-05  Jim Meyering  <meyering@redhat.com>
17323
17324         maint: remove useless inclusions of "xalloc.h"
17325         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17326         * lib/readtokens.c: Likewise.
17327         * lib/same.c: Likewise.
17328         * modules/getloadavg (Depends-on): Remove xalloc.
17329         * modules/readtokens: Likewise.
17330         * modules/same: Likewise.
17331
17332         maint.mk: include 4 more function names in alloca.h-checking regexp
17333         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17334         regexp.  Before, we would give a false-positive (saying alloca.h
17335         is included unnecessarily) when the only uses involved omitted symbols.
17336
17337         xalloc.h: use consistent formatting
17338         * lib/xalloc.h: Move declarations to start in the first column.
17339
17340 2010-01-05  Eric Blake  <ebb9@byu.net>
17341
17342         mkdir: avoid xalloc
17343         * lib/mkdir.c (includes): Drop unused header.
17344         Reported by John W. Eaton.
17345
17346 2010-01-04  Jim Meyering  <meyering@redhat.com>
17347
17348         nl_langinfo: avoid configure-time syntax error
17349         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17350         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17351         the empty string.  Don't let that provoke a shell syntax error.
17352
17353         regcomp, regexec, fnmatch: avoid array bounds read error
17354         * lib/regcomp.c (build_equiv_class): From glibc:
17355         Use only the low 24 bits of a findidx return value as an index
17356         into the weights array.  Patch by Ulrich Drepper:
17357         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17358         * lib/regexec.c (check_node_accept_bytes): Likewise.
17359         * lib/fnmatch_loop.c (FCT): Likewise.
17360
17361         regcomp: skip collseq lookup when there are no rules
17362         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17363         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17364
17365         regcomp: recognize ill-formed { } expressions
17366         * lib/regcomp.c (parse_dup_op): From glibc:
17367         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17368
17369         regcomp: fix typo in comment
17370         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17371         s/satisfy/satisfies/.
17372
17373         regcomp: sync from glibc: remove dead store
17374         * lib/regcomp.c (duplicate_node_closure): Remove useless
17375         search_duplicated_node call and dead store.
17376
17377         regcomp: sync from glibc; always use nl_langinfo
17378         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17379         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17380         * modules/regex (Depends-on): Add nl_langinfo.
17381
17382 2010-01-04  Eric Blake  <ebb9@byu.net>
17383
17384         fdopendir: fix configure test
17385         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17386
17387 2010-01-01  Bruno Haible  <bruno@clisp.org>
17388
17389         wchar: Remove unused configure check.
17390         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17391
17392 2010-01-01  Eric Blake  <ebb9@byu.net>
17393
17394         headers: make check of system header explicit
17395         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17396         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17397         ourselves.
17398         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17400         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17401         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17402         internals.
17403         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17404         missing.
17405         Suggested by Bruno Haible.
17406
17407 2010-01-01  Jim Meyering  <meyering@redhat.com>
17408
17409         ChangeLog: tweak to eliminate unnecessary copyright line
17410         * ChangeLog: Remove a copyright line that was mistakenly updated
17411         by today's update-copyright run.  Reported by Eric Blake.
17412
17413         test-update-copyright: don't let envvar setting cause test failure
17414         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17415
17416 2010-01-01  Bruno Haible  <bruno@clisp.org>
17417
17418         localename: Avoid gcc warning.
17419         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17420         function if it is not used.
17421
17422 2010-01-01  Jim Meyering  <meyering@redhat.com>
17423
17424         update nearly all FSF copyright year lists to include 2010
17425         Use the same procedure as for 2009, outlined in
17426         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17427
17428         version-etc: set COPYRIGHT_YEAR to 2010
17429         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17430
17431 2009-12-31  Eric Blake  <ebb9@byu.net>
17432
17433         doc: correct availability of cygwin 1.5.x getopt
17434         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17435         variables.
17436         * doc/posix-functions/opterr.texi (opterr): Likewise.
17437         * doc/posix-functions/optind.texi (optind): Likewise.
17438         * doc/posix-functions/optopt.texi (optopt): Likewise.
17439         * doc/posix-functions/tzname.texi (tzname): Likewise.
17440
17441         openat: update maintainer
17442         * modules/openat (Maintainer): Add myself.
17443
17444         utimens: avoid shadowing warning
17445         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17446         buffers into one, to avoid shadowing, as well as avoiding a
17447         redundant stat.
17448         Reported by Jim Meyering.
17449
17450         test-dup2: avoid compiler warning
17451         * tests/test-dup2.c (is_inheritable): Only define if used.
17452
17453 2010-01-01  Bruno Haible  <bruno@clisp.org>
17454
17455         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17456         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17457         defined, use wctomb instead of wcrtomb.
17458
17459 2010-01-01  Bruno Haible  <bruno@clisp.org>
17460
17461         iconv: Reject native Solaris iconv.
17462         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17463         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17464
17465 2009-12-31  Bruno Haible  <bruno@clisp.org>
17466
17467         * tests/test-signal.c (main): Remove test of 'SIG'.
17468
17469 2009-12-31  Bruno Haible  <bruno@clisp.org>
17470
17471         spawn: Fix incomplete fix.
17472         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17473         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17474         warnings for GNULIB_POSIXCHECK again.
17475         Reported by Eric Blake.
17476
17477 2009-12-31  Bruno Haible  <bruno@clisp.org>
17478
17479         Avoid namespace pollution on glibc systems.
17480         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17481         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17482         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17483         glibc systems.
17484
17485 2009-12-31  Bruno Haible  <bruno@clisp.org>
17486
17487         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17488         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17489         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17490         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17491         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17492         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17493         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17494
17495 2009-12-31  Bruno Haible  <bruno@clisp.org>
17496
17497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17498         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17499         afterwards.
17500
17501 2009-12-31  Bruno Haible  <bruno@clisp.org>
17502
17503         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17504         SYS_UTSNAME_H.
17505
17506 2009-12-31  Bruno Haible  <bruno@clisp.org>
17507
17508         spawn: Fix misapplied patch.
17509         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17510         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17511         warnings for GNULIB_POSIXCHECK.
17512
17513 2009-12-31  Bruno Haible  <bruno@clisp.org>
17514
17515         times: Update after sys_times changed.
17516         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17517         * modules/times (Files): Add it.
17518         (configure.ac): Invoke gl_FUNC_TIMES.
17519
17520 2009-12-31  Bruno Haible  <bruno@clisp.org>
17521
17522         Use AC_C_INLINE where necessary.
17523         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17524         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17526         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17527         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17528         * m4/mbiter.m4 (gl_MBITER): Likewise.
17529         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17530         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17531         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17532         * modules/u64 (configure.ac): Likewise.
17533
17534 2009-12-31  Bruno Haible  <bruno@clisp.org>
17535
17536         Use AC_C_INLINE instead of module 'inline' where possible.
17537         * modules/inline (Description): Clarify purpose.
17538         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17539         * modules/count-one-bits (Depends-on): Remove inline.
17540         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17541         * modules/openat (Depends-on): Remove inline.
17542         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17543         instead of depending on module 'inline'.
17544         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17545         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17546         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17547         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17548         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17549         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17550         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17551         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17552         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17553         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17554         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17555         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17556         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17557         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17558         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17559         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17560         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17561         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17562         Likewise.
17563         * modules/unictype/property-ascii-hex-digit (Depends-on,
17564         configure.ac): Likewise.
17565         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17566         configure.ac): Likewise.
17567         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17568         configure.ac): Likewise.
17569         * modules/unictype/property-bidi-block-separator (Depends-on,
17570         configure.ac): Likewise.
17571         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17572         configure.ac): Likewise.
17573         * modules/unictype/property-bidi-common-separator (Depends-on,
17574         configure.ac): Likewise.
17575         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17576         Likewise.
17577         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17578         configure.ac): Likewise.
17579         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17580         configure.ac): Likewise.
17581         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17582         configure.ac): Likewise.
17583         * modules/unictype/property-bidi-european-digit (Depends-on,
17584         configure.ac): Likewise.
17585         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17586         configure.ac): Likewise.
17587         * modules/unictype/property-bidi-left-to-right (Depends-on,
17588         configure.ac): Likewise.
17589         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17590         configure.ac): Likewise.
17591         * modules/unictype/property-bidi-other-neutral (Depends-on,
17592         configure.ac): Likewise.
17593         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17594         Likewise.
17595         * modules/unictype/property-bidi-segment-separator (Depends-on,
17596         configure.ac): Likewise.
17597         * modules/unictype/property-bidi-whitespace (Depends-on,
17598         configure.ac): Likewise.
17599         * modules/unictype/property-combining (Depends-on, configure.ac):
17600         Likewise.
17601         * modules/unictype/property-composite (Depends-on, configure.ac):
17602         Likewise.
17603         * modules/unictype/property-currency-symbol (Depends-on,
17604         configure.ac): Likewise.
17605         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17606         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17607         Likewise.
17608         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17609         configure.ac): Likewise.
17610         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17611         Likewise.
17612         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17613         Likewise.
17614         * modules/unictype/property-extender (Depends-on, configure.ac):
17615         Likewise.
17616         * modules/unictype/property-format-control (Depends-on, configure.ac):
17617         Likewise.
17618         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17619         Likewise.
17620         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17621         Likewise.
17622         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17623         Likewise.
17624         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17625         Likewise.
17626         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17627         Likewise.
17628         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17629         Likewise.
17630         * modules/unictype/property-id-start (Depends-on, configure.ac):
17631         Likewise.
17632         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17633         Likewise.
17634         * modules/unictype/property-ids-binary-operator (Depends-on,
17635         configure.ac): Likewise.
17636         * modules/unictype/property-ids-trinary-operator (Depends-on,
17637         configure.ac): Likewise.
17638         * modules/unictype/property-ignorable-control (Depends-on,
17639         configure.ac): Likewise.
17640         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17641         Likewise.
17642         * modules/unictype/property-join-control (Depends-on, configure.ac):
17643         Likewise.
17644         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17645         Likewise.
17646         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17647         Likewise.
17648         * modules/unictype/property-logical-order-exception (Depends-on,
17649         configure.ac): Likewise.
17650         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17651         Likewise.
17652         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17653         * modules/unictype/property-non-break (Depends-on, configure.ac):
17654         Likewise.
17655         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17656         Likewise.
17657         * modules/unictype/property-numeric (Depends-on, configure.ac):
17658         Likewise.
17659         * modules/unictype/property-other-alphabetic (Depends-on,
17660         configure.ac): Likewise.
17661         * modules/unictype/property-other-default-ignorable-code-point
17662         (Depends-on, configure.ac): Likewise.
17663         * modules/unictype/property-other-grapheme-extend (Depends-on,
17664         configure.ac): Likewise.
17665         * modules/unictype/property-other-id-continue (Depends-on,
17666         configure.ac): Likewise.
17667         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17668         Likewise.
17669         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17670         Likewise.
17671         * modules/unictype/property-other-math (Depends-on, configure.ac):
17672         Likewise.
17673         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17674         Likewise.
17675         * modules/unictype/property-paired-punctuation (Depends-on,
17676         configure.ac): Likewise.
17677         * modules/unictype/property-paragraph-separator (Depends-on,
17678         configure.ac): Likewise.
17679         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17680         Likewise.
17681         * modules/unictype/property-pattern-white-space (Depends-on,
17682         configure.ac): Likewise.
17683         * modules/unictype/property-private-use (Depends-on, configure.ac):
17684         Likewise.
17685         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17686         Likewise.
17687         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17688         Likewise.
17689         * modules/unictype/property-radical (Depends-on, configure.ac):
17690         Likewise.
17691         * modules/unictype/property-sentence-terminal (Depends-on,
17692         configure.ac): Likewise.
17693         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17694         Likewise.
17695         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17696         * modules/unictype/property-terminal-punctuation (Depends-on,
17697         configure.ac): Likewise.
17698         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17699         Likewise.
17700         * modules/unictype/property-unassigned-code-value (Depends-on,
17701         configure.ac): Likewise.
17702         * modules/unictype/property-unified-ideograph (Depends-on,
17703         configure.ac): Likewise.
17704         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17705         Likewise.
17706         * modules/unictype/property-variation-selector (Depends-on,
17707         configure.ac): Likewise.
17708         * modules/unictype/property-white-space (Depends-on, configure.ac):
17709         Likewise.
17710         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17711         Likewise.
17712         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17713         Likewise.
17714         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17715         Likewise.
17716         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17717         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17718         Likewise.
17719
17720 2009-12-31  Bruno Haible  <bruno@clisp.org>
17721
17722         Remove unnecessary AC_C_INLINE invocation.
17723         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17724         since 2009-08-21.
17725
17726 2009-12-31  Jim Meyering  <meyering@redhat.com>
17727
17728         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17729         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17730         With this change, we can all remove the gpg_key_ID = ... definition
17731         from our respective cfg.mk files.
17732
17733         maint.mk: create announcement template in ~/, not in /tmp
17734         * top/maint.mk (emit_upload_commands): Adjust.
17735         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17736         Remove temporary file, .ci-msg.
17737
17738 2009-12-31  Eric Blake  <ebb9@byu.net>
17739
17740         link-warning: always build headers with link warnings
17741         * modules/arpa_inet (Makefile.am): Always build replacement
17742         header.
17743         * modules/ctype (Makefile.am): Likewise.
17744         * modules/dirent (Makefile.am): Likewise.
17745         * modules/inttypes (Makefile.am): Likewise.
17746         * modules/langinfo (Makefile.am): Likewise.
17747         * modules/locale (Makefile.am): Likewise.
17748         * modules/spawn (Makefile.am): Likewise.
17749         * modules/sys_file (Makefile.am): Likewise.
17750         * modules/sys_ioctl (Makefile.am): Likewise.
17751         * modules/sys_select (Makefile.am): Likewise.
17752         * modules/sys_socket (Makefile.am): Likewise.
17753         * modules/sys_times (Makefile.am): Likewise.
17754         * modules/sys_utsname (Makefile.am): Likewise.
17755         * modules/sys_wait (Makefile.am): Likewise.
17756         * modules/wchar (Makefile.am): Likewise.
17757         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17758         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17759         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17760         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17761         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17762         Likewise.
17763         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17764         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17765         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17766         Likewise.
17767         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17768         Likewise.
17769         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17771         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17773         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17774         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17775         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17776         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17777         (gl_WCHAR_H_DEFAULTS): Likewise.
17778
17779 2009-12-31  Eric Blake  <ebb9@byu.net>
17780
17781         signal, spawn: use link warnings
17782         * lib/signal.in.h (sigset_t): Make unconditional.
17783         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17784         (sigpending, sigprocmask, sigaction): Add link warnings.
17785         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17786         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17787         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17788         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17789         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17790         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17791         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17792         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17793         (posix_spawn_file_actions_destroy)
17794         (posix_spawn_file_actions_addopen)
17795         (posix_spawn_file_actions_addclose)
17796         (posix_spawn_file_actions_adddup2): Likewise.
17797         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17798         * tests/test-signal.c (main): Enhance test.
17799
17800         spawn: improve wrapper support
17801         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17802         (gl_SPAWN_H_DEFAULTS): New defaults.
17803         * modules/spawn (Makefile.am): Substitute them.
17804         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17805         Only declare if missing or broken.
17806
17807         sys_times, sys_utsname: use include_next
17808         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17809         header.
17810         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17811         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17812         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17813         * modules/sys_times (Depends-on): Add include_next.
17814         (Makefile.am): Substitute additional values.
17815         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17816         * lib/sys_times.in.h (includes): Include native header, if
17817         available.
17818         * lib/sys_utsname.in.h (includes): Likewise.
17819         * tests/test-sys_times.c (main): Enhance test.
17820
17821         fdutimensat: revert prior patch
17822         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17823         utimens.h.
17824         Reported by Bruno Haible.
17825
17826 2009-12-30  Eric Blake  <ebb9@byu.net>
17827
17828         sys_wait: drop link-warning dependency
17829         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17830         link-warning efforts.
17831         * lib/sys_wait.in.h: Likewise.
17832
17833         fdutimensat: remove bogus dependency
17834         * modules/fdutimensat (Depends-on): Drop inline.
17835
17836         unistd: fix typo
17837         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17838
17839 2009-12-30  Bruno Haible  <bruno@clisp.org>
17840
17841         Fix compilation error with Solaris cc.
17842         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17843         * lib/unicase/u16-is-invariant.c: Likewise.
17844         * lib/unicase/u32-is-invariant.c: Likewise.
17845         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17846
17847 2009-12-30  Bruno Haible  <bruno@clisp.org>
17848
17849         Fix test crash.
17850         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17851         locales.
17852         Reported by Simon Josefsson <simon@josefsson.org>.
17853
17854 2009-12-30  Bruno Haible  <bruno@clisp.org>
17855
17856         Fix compilation error on most platforms.
17857         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17858         Reported by Simon Josefsson <simon@josefsson.org>
17859         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17860
17861 2009-12-30  Eric Blake  <ebb9@byu.net>
17862
17863         futimens, utimensat: work around ntfs-3g bug
17864         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17865         a ctime bug is present, and expand workaround to cover ntfs-3g.
17866         * lib/utimens.c (fdutimens, lutimens): Likewise.
17867         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17868         (validate_timespec): Adjust return value.
17869         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17870         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17871         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17872
17873 2009-12-29  Eric Blake  <ebb9@byu.net>
17874
17875         link-warning: make usage consistent
17876         * modules/ctype (Depends-on): Add link-warning.
17877         (Makefile.am): Update rules accordingly.
17878         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17879         * modules/locale (Depends-on, Makefile.am): Likewise.
17880         * modules/sys_file (Makefile.am): Likewise.
17881         * modules/getopt-posix (Makefile.am): Delete unused link warning
17882         efforts.
17883         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17884         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17885         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17886         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17887
17888         stdio: remove unused variables
17889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17890         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17891         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17892
17893         tests: test more substitute headers
17894         * modules/ctype-tests: New file.
17895         * modules/dirent-tests: Likewise.
17896         * modules/spawn-tests: Likewise.
17897         * modules/sys_file-tests: Likewise.
17898         * modules/sys_ioctl-tests: Likewise.
17899         * modules/sys_wait-tests: Likewise.
17900         * tests/test-ctype.c: Likewise.
17901         * tests/test-dirent.c: Likewise.
17902         * tests/test-spawn.c: Likewise.
17903         * tests/test-sys_file.c: Likewise.
17904         * tests/test-sys_ioctl.c: Likewise.
17905         * tests/test-sys_wait.c: Likewise.
17906         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17907         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17908         whether or not flock is in use.
17909
17910         tests: remove License section from module
17911         * modules/arpa_inet-tests: Remove unneeded section.
17912         * modules/byteswap-tests: Likewise.
17913         * modules/ceilf-tests: Likewise.
17914         * modules/ceill-tests: Likewise.
17915         * modules/crypto/des-tests: Likewise.
17916         * modules/crypto/gc-arcfour-tests: Likewise.
17917         * modules/crypto/gc-arctwo-tests: Likewise.
17918         * modules/crypto/gc-des-tests: Likewise.
17919         * modules/crypto/gc-hmac-md5-tests: Likewise.
17920         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17921         * modules/crypto/gc-md2-tests: Likewise.
17922         * modules/crypto/gc-md4-tests: Likewise.
17923         * modules/crypto/gc-md5-tests: Likewise.
17924         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17925         * modules/crypto/gc-rijndael-tests: Likewise.
17926         * modules/crypto/gc-sha1-tests: Likewise.
17927         * modules/crypto/gc-tests: Likewise.
17928         * modules/crypto/md2-tests: Likewise.
17929         * modules/crypto/md4-tests: Likewise.
17930         * modules/fcntl-h-tests: Likewise.
17931         * modules/floorf-tests: Likewise.
17932         * modules/floorl-tests: Likewise.
17933         * modules/frexp-nolibm-tests: Likewise.
17934         * modules/frexp-tests: Likewise.
17935         * modules/frexpl-nolibm-tests: Likewise.
17936         * modules/frexpl-tests: Likewise.
17937         * modules/getaddrinfo-tests: Likewise.
17938         * modules/inttypes-tests: Likewise.
17939         * modules/isfinite-tests: Likewise.
17940         * modules/isinf-tests: Likewise.
17941         * modules/ldexpl-tests: Likewise.
17942         * modules/locale-tests: Likewise.
17943         * modules/math-tests: Likewise.
17944         * modules/netdb-tests: Likewise.
17945         * modules/netinet_in-tests: Likewise.
17946         * modules/printf-frexp-tests: Likewise.
17947         * modules/printf-frexpl-tests: Likewise.
17948         * modules/priv-set-tests: Likewise.
17949         * modules/random_r-tests: Likewise.
17950         * modules/round-tests: Likewise.
17951         * modules/roundf-tests: Likewise.
17952         * modules/roundl-tests: Likewise.
17953         * modules/search-tests: Likewise.
17954         * modules/select-tests: Likewise.
17955         * modules/signal-tests: Likewise.
17956         * modules/stdbool-tests: Likewise.
17957         * modules/stddef-tests: Likewise.
17958         * modules/stdint-tests: Likewise.
17959         * modules/stdio-tests: Likewise.
17960         * modules/stdlib-tests: Likewise.
17961         * modules/string-tests: Likewise.
17962         * modules/strings-tests: Likewise.
17963         * modules/sys_select-tests: Likewise.
17964         * modules/sys_socket-tests: Likewise.
17965         * modules/sys_stat-tests: Likewise.
17966         * modules/sys_time-tests: Likewise.
17967         * modules/sys_utsname-tests: Likewise.
17968         * modules/sysexits-tests: Likewise.
17969         * modules/time-tests: Likewise.
17970         * modules/trunc-tests: Likewise.
17971         * modules/truncf-tests: Likewise.
17972         * modules/truncl-tests: Likewise.
17973         * modules/tsearch-tests: Likewise.
17974         * modules/unistd-tests: Likewise.
17975         * modules/wchar-tests: Likewise.
17976         * modules/wctype-tests: Likewise.
17977
17978         tests: fix license on several tests
17979         * tests/test-des.c: Update to GPLv3+.
17980         * tests/test-flock.c: Likewise.
17981         * tests/test-fsync.c: Likewise.
17982         * tests/test-futimens.h: Likewise.
17983         * tests/test-gc-arcfour.c: Likewise.
17984         * tests/test-gc-arctwo.c: Likewise.
17985         * tests/test-gc-des.c: Likewise.
17986         * tests/test-gc-hmac-md5.c: Likewise.
17987         * tests/test-gc-hmac-sha1.c: Likewise.
17988         * tests/test-gc-md2.c: Likewise.
17989         * tests/test-gc-md4.c: Likewise.
17990         * tests/test-gc-md5.c: Likewise.
17991         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17992         * tests/test-gc-rijndael.c: Likewise.
17993         * tests/test-gc-sha1.c: Likewise.
17994         * tests/test-gc.c: Likewise.
17995         * tests/test-getcwd.c: Likewise.
17996         * tests/test-link.c: Likewise.
17997         * tests/test-link.h: Likewise.
17998         * tests/test-lutimens.h: Likewise.
17999         * tests/test-md2.c: Likewise.
18000         * tests/test-md4.c: Likewise.
18001         * tests/test-mkdir.h: Likewise.
18002         * tests/test-rename.c: Likewise.
18003         * tests/test-rename.h: Likewise.
18004         * tests/test-safe-alloc.c: Likewise.
18005         * tests/test-utimens-common.h: Likewise.
18006         * tests/test-utimens.h: Likewise.
18007
18008         maint: sync license texts
18009         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18010         * doc/gpl-3.0.texi: Revert copyright year update.
18011         * doc/lgpl-3.0.texi: Likewise.
18012
18013 2009-12-29  Jim Meyering  <meyering@redhat.com>
18014
18015         update nearly all FSF copyright year lists to include 2009
18016         The files named by the following are exempted:
18017             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18018               test -f "$dst" && { echo "$dst"; continue; }
18019               test -d "$dst" || continue
18020               echo "$dst"/$(basename "$src")
18021             done > exempt
18022             git ls-files tests/unictype >> exempt
18023         In the remaining files, convert to all-interval notation if
18024         - there is already at least one year interval like 2000-2003
18025         - the file is maintained by me
18026         - the file is in lib/uni*/, where that style already prevails
18027         Otherwise, use update-copyright's default.
18028
18029 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18030         and Eric Blake  <ebb9@byu.net>
18031
18032         tests: don't require debug system() to pass
18033         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18034         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18035         * tests/test-unlink.h (test_unlink_func): Likewise.
18036         * tests/test-fstatat.c (main): ...into callers.
18037         * tests/test-lstat.c (main): Likewise.
18038         * tests/test-rmdir.c (main): Likewise.
18039         * tests/test-unlink.c (main): Likewise.
18040         * tests/test-unlinkat.c (main): Likewise.
18041         * tests/test-areadlink-with-size.c (main): Don't require a
18042         debug-only system call to pass, aiding cross-testing to mingw.
18043         * tests/test-areadlink.c (main): Likewise.
18044         * tests/test-areadlinkat-with-size.c (main): Likewise.
18045         * tests/test-areadlinkat.c (main): Likewise.
18046         * tests/test-canonicalize-lgpl.c (main): Likewise.
18047         * tests/test-canonicalize.c (main): Likewise.
18048         * tests/test-chown.c (main): Likewise.
18049         * tests/test-fchownat.c (main): Likewise.
18050         * tests/test-lchown.c (main): Likewise.
18051         * tests/test-fdutimensat.c (main): Likewise.
18052         * tests/test-futimens.c (main): Likewise.
18053         * tests/test-link.c (main): Likewise.
18054         * tests/test-linkat.c (main): Likewise.
18055         * tests/test-mkdir.c (main): Likewise.
18056         * tests/test-mkdirat.c (main): Likewise.
18057         * tests/test-mkfifo.c (main): Likewise.
18058         * tests/test-mkfifoat.c (main): Likewise.
18059         * tests/test-mknod.c (main): Likewise.
18060         * tests/test-readlink.c (main): Likewise.
18061         * tests/test-remove.c (main): Likewise.
18062         * tests/test-rename.c (main): Likewise.
18063         * tests/test-renameat.c (main): Likewise.
18064         * tests/test-symlink.c (main): Likewise.
18065         * tests/test-symlinkat.c (main): Likewise.
18066         * tests/test-utimens.c (main): Likewise.
18067         * tests/test-utimensat.c (main): Likewise.
18068
18069 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18070
18071         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18072         on $(UNUSED_PARAMETER_H) to avoid build failure.
18073
18074 2009-12-28  Jim Meyering  <meyering@redhat.com>
18075
18076         update-copyright: you may specify a max. line length other than 72
18077         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18078
18079         maint: use consistent FSF copyright line syntax
18080         * lib/posixtm.c: Add missing comma in FSF copyright line.
18081         * lib/posixtm.h: Likewise.
18082         * lib/getugroups.c: Add missing ", Inc.".
18083
18084         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18085         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18086         FSF copyright line.  Remove trailing blanks.
18087
18088 2009-12-28  Eric Blake  <ebb9@byu.net>
18089
18090         test-dup2: reduce dependencies
18091         * modules/cloexec (Configure.ac): Set witness.
18092         * modules/dup2-tests (Depends-on): Drop cloexec.
18093         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18094         not present.
18095         Suggested by Bruno Haible.
18096
18097 2009-12-26  Bruno Haible  <bruno@clisp.org>
18098
18099         Remove an unneeded dependency.
18100         * modules/fseterr (Depends-on): Remove dup2.
18101
18102 2009-12-26  Eric Blake  <ebb9@byu.net>
18103
18104         tests: use macros.h in more places
18105         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18106         (ASSERT_STREAM): Provide default of stderr.
18107         * tests/test-dirent-safer.c: Include macros.h, using alternate
18108         stream for assertions.
18109         * tests/test-dup-safer.c: Likewise.
18110         * tests/test-freopen-safer.c: Likewise.
18111         * tests/test-getopt.c: Likewise.
18112         * tests/test-openat-safer.c: Likewise.
18113         * tests/test-pipe.c: Likewise.
18114         * tests/test-popen-safer.c: Likewise.
18115         * modules/dirent-safer-tests (Files): Include macros.h.
18116         * modules/unistd-safer-tests (Files): Likewise.
18117         * modules/freopen-safer-tests (Files): Likewise.
18118         * modules/getopt-posix-tests (Files): Likewise.
18119         * modules/openat-safer-tests (Files): Likewise.
18120         * modules/pipe-tests (Files): Likewise.
18121
18122 2009-12-26  Bruno Haible  <bruno@clisp.org>
18123
18124         javacomp: Portability fix.
18125         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18126         that it also works on Solaris.
18127
18128 2009-12-26  Bruno Haible  <bruno@clisp.org>
18129
18130         localename: Fix storage allocation of gl_locale_name_thread's result.
18131         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18132         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18133         all platforms that have 'uselocale'.
18134         (gl_locale_name_thread_unsafe): New function, extracted from
18135         gl_locale_name_thread.
18136         (gl_locale_name_thread): Call struniq on all platforms that have
18137         'uselocale'.
18138         * tests/test-localename.c (test_locale_name_thread): Check that the
18139         resulting strings are permanently allocated.
18140         * modules/localename-tests (Depends-on): Add strdup.
18141
18142 2009-12-26  Bruno Haible  <bruno@clisp.org>
18143
18144         * tests/test-localename.c (categories): Fill in the strings.
18145
18146 2009-12-26  Jim Meyering  <meyering@redhat.com>
18147
18148         isdir: complete the removal of m4/isdir.m4
18149         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18150
18151         isdir: clean up, since at least grep still uses it
18152         * lib/isdir.c: Include "isdir.h".
18153         (S_ISDIR): Remove now-unneeded definition.
18154         * modules/isdir (Files): Add lib/isdir.h.
18155         * lib/isdir.h: New file, with declaration.
18156         * m4/isdir.m4: Remove file -- unneeded.
18157
18158 2009-12-25  Bruno Haible  <bruno@clisp.org>
18159
18160         selinux-h: Make generated .h files standalone.
18161         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18162         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18163         * lib/se-selinux.in.h: Likewise.
18164         * modules/selinux-h (Depends-on): Add unused-parameter.
18165         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18166         selinux/selinux.h and selinux/context.h.
18167         Suggested by Eric Blake.
18168
18169 2009-12-25  Bruno Haible  <bruno@clisp.org>
18170
18171         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18172         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18173         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18174         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18175         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18176
18177 2009-12-24  Bruno Haible  <bruno@clisp.org>
18178
18179         openat: Fix warning.
18180         * lib/openat-proc.c: Include <unistd.h>.
18181
18182 2009-12-24  Bruno Haible  <bruno@clisp.org>
18183
18184         New module 'unused-parameter'.
18185         * build-aux/unused-parameter.h: New file, extracted from earlier
18186         gnulib-common.m4.
18187         * modules/unused-parameter: New file.
18188         * lib/unistr.h: Include unused-parameter.h.
18189         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18190         _GL_UNUSED.
18191         * modules/unistr/base (Depends-on): Add unused-parameter.
18192
18193 2009-12-24  Bruno Haible  <bruno@clisp.org>
18194
18195         Add missing dependencies to 'extensions' module.
18196         * m4/extensions.m4: Add comment.
18197         * modules/accept4 (Depends-on): Add extensions.
18198         * modules/dup3 (Depends-on): Likewise.
18199         * modules/fcntl (Depends-on): Likewise.
18200         * modules/futimens (Depends-on): Likewise.
18201         * modules/mknod (Depends-on): Likewise.
18202         * modules/pipe2 (Depends-on): Likewise.
18203         * modules/stat-time (Depends-on): Likewise.
18204         * modules/strcasestr-simple (Depends-on): Likewise.
18205         * modules/strsignal (Depends-on): Likewise.
18206         * modules/utimensat (Depends-on): Likewise.
18207         * modules/localcharset (Depends-on): Likewise. Needed because of
18208         gl_FCNTL_O_FLAGS.
18209         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18210         AC_TYPE_MBSTATE_T.
18211         * modules/wcsnrtombs (Depends-on): Likewise.
18212         * modules/wcsrtombs (Depends-on): Likewise.
18213
18214 2009-12-24  Bruno Haible  <bruno@clisp.org>
18215
18216         binary-io: Avoid gcc warning due to SET_BINARY.
18217         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18218         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18219
18220 2009-12-24  Bruno Haible  <bruno@clisp.org>
18221
18222         Avoid future namespace pollution on glibc systems.
18223         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18224         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18225         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18226         glibc systems.
18227
18228 2009-12-24  Bruno Haible  <bruno@clisp.org>
18229
18230         Refactor common macros used in tests.
18231         * tests/macros.h: New file.
18232         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18233         and/or <stdlib.h>, if appropriate.
18234         (ASSERT, SIZEOF): Remove macros.
18235         * tests/test-areadlink-with-size.c: Likewise.
18236         * tests/test-areadlinkat.c: Likewise.
18237         * tests/test-areadlinkat-with-size.c: Likewise.
18238         * tests/test-argmatch.c: Likewise.
18239         * tests/test-argv-iter.c: Likewise.
18240         * tests/test-array-mergesort.c: Likewise.
18241         * tests/test-array_list.c: Likewise.
18242         * tests/test-array_oset.c: Likewise.
18243         * tests/test-avltree_list.c: Likewise.
18244         * tests/test-avltree_oset.c: Likewise.
18245         * tests/test-avltreehash_list.c: Likewise.
18246         * tests/test-base64.c: Likewise.
18247         * tests/test-binary-io.c: Likewise.
18248         * tests/test-bitrotate.c: Likewise.
18249         * tests/test-btowc.c: Likewise.
18250         * tests/test-byteswap.c: Likewise.
18251         * tests/test-c-ctype.c: Likewise.
18252         * tests/test-c-stack.c: Likewise.
18253         * tests/test-c-strcasecmp.c: Likewise.
18254         * tests/test-c-strcasestr.c: Likewise.
18255         * tests/test-c-strncasecmp.c: Likewise.
18256         * tests/test-c-strstr.c: Likewise.
18257         * tests/test-canonicalize-lgpl.c: Likewise.
18258         * tests/test-canonicalize.c: Likewise.
18259         * tests/test-carray_list.c: Likewise.
18260         * tests/test-ceilf1.c: Likewise.
18261         * tests/test-ceilf2.c: Likewise.
18262         * tests/test-ceill.c: Likewise.
18263         * tests/test-chown.c: Likewise.
18264         * tests/test-cloexec.c: Likewise.
18265         * tests/test-copy-acl.c: Likewise.
18266         * tests/test-copy-file.c: Likewise.
18267         * tests/test-count-one-bits.c: Likewise.
18268         * tests/test-dprintf-posix.c: Likewise.
18269         * tests/test-dup2.c: Likewise.
18270         * tests/test-dup3.c: Likewise.
18271         * tests/test-duplocale.c: Likewise.
18272         * tests/test-fbufmode.c: Likewise.
18273         * tests/test-fchdir.c: Likewise.
18274         * tests/test-fchownat.c: Likewise.
18275         * tests/test-fcntl-safer.c: Likewise.
18276         * tests/test-fcntl.c: Likewise.
18277         * tests/test-fdopendir.c: Likewise.
18278         * tests/test-fdutimensat.c: Likewise.
18279         * tests/test-fflush2.c: Likewise.
18280         * tests/test-file-has-acl.c: Likewise.
18281         * tests/test-filevercmp.c: Likewise.
18282         * tests/test-flock.c: Likewise.
18283         * tests/test-floorf1.c: Likewise.
18284         * tests/test-floorf2.c: Likewise.
18285         * tests/test-floorl.c: Likewise.
18286         * tests/test-fnmatch.c: Likewise.
18287         * tests/test-fopen.h: Likewise.
18288         * tests/test-fpending.c: Likewise.
18289         * tests/test-fprintf-posix.c: Likewise.
18290         * tests/test-fpurge.c: Likewise.
18291         * tests/test-freadable.c: Likewise.
18292         * tests/test-freadahead.c: Likewise.
18293         * tests/test-freading.c: Likewise.
18294         * tests/test-freadptr.c: Likewise.
18295         * tests/test-freadptr2.c: Likewise.
18296         * tests/test-freadseek.c: Likewise.
18297         * tests/test-freopen.c: Likewise.
18298         * tests/test-frexp.c: Likewise.
18299         * tests/test-frexpl.c: Likewise.
18300         * tests/test-fseek.c: Likewise.
18301         * tests/test-fseeko.c: Likewise.
18302         * tests/test-fstatat.c: Likewise.
18303         * tests/test-fstrcmp.c: Likewise.
18304         * tests/test-fsync.c: Likewise.
18305         * tests/test-ftell.c: Likewise.
18306         * tests/test-ftello.c: Likewise.
18307         * tests/test-func.c: Likewise.
18308         * tests/test-futimens.c: Likewise.
18309         * tests/test-fwritable.c: Likewise.
18310         * tests/test-fwriting.c: Likewise.
18311         * tests/test-getcwd.c: Likewise.
18312         * tests/test-getdate.c: Likewise.
18313         * tests/test-getdelim.c: Likewise.
18314         * tests/test-getdtablesize.c: Likewise.
18315         * tests/test-getgroups.c: Likewise.
18316         * tests/test-getline.c: Likewise.
18317         * tests/test-getndelim2.c: Likewise.
18318         * tests/test-glob.c: Likewise.
18319         * tests/test-hash.c: Likewise.
18320         * tests/test-i-ring.c: Likewise.
18321         * tests/test-iconv-utf.c: Likewise.
18322         * tests/test-iconv.c: Likewise.
18323         * tests/test-idpriv-drop.c: Likewise.
18324         * tests/test-idpriv-droptemp.c: Likewise.
18325         * tests/test-inet_ntop.c: Likewise.
18326         * tests/test-inet_pton.c: Likewise.
18327         * tests/test-isblank.c: Likewise.
18328         * tests/test-isfinite.c: Likewise.
18329         * tests/test-isinf.c: Likewise.
18330         * tests/test-isnan.c: Likewise.
18331         * tests/test-isnand.h: Likewise.
18332         * tests/test-isnanf.h: Likewise.
18333         * tests/test-isnanl.h: Likewise.
18334         * tests/test-lchown.c: Likewise.
18335         * tests/test-ldexpl.c: Likewise.
18336         * tests/test-link.c: Likewise.
18337         * tests/test-linkat.c: Likewise.
18338         * tests/test-linked_list.c: Likewise.
18339         * tests/test-linkedhash_list.c: Likewise.
18340         * tests/test-localename.c: Likewise.
18341         * tests/test-lseek.c: Likewise.
18342         * tests/test-lstat.c: Likewise.
18343         * tests/test-mbmemcasecmp.c: Likewise.
18344         * tests/test-mbmemcasecoll.c: Likewise.
18345         * tests/test-mbrtowc.c: Likewise.
18346         * tests/test-mbscasecmp.c: Likewise.
18347         * tests/test-mbscasestr1.c: Likewise.
18348         * tests/test-mbscasestr2.c: Likewise.
18349         * tests/test-mbscasestr3.c: Likewise.
18350         * tests/test-mbscasestr4.c: Likewise.
18351         * tests/test-mbschr.c: Likewise.
18352         * tests/test-mbscspn.c: Likewise.
18353         * tests/test-mbsinit.c: Likewise.
18354         * tests/test-mbsncasecmp.c: Likewise.
18355         * tests/test-mbsnrtowcs.c: Likewise.
18356         * tests/test-mbspbrk.c: Likewise.
18357         * tests/test-mbspcasecmp.c: Likewise.
18358         * tests/test-mbsrchr.c: Likewise.
18359         * tests/test-mbsrtowcs.c: Likewise.
18360         * tests/test-mbsspn.c: Likewise.
18361         * tests/test-mbsstr1.c: Likewise.
18362         * tests/test-mbsstr2.c: Likewise.
18363         * tests/test-mbsstr3.c: Likewise.
18364         * tests/test-memchr.c: Likewise.
18365         * tests/test-memchr2.c: Likewise.
18366         * tests/test-memcmp.c: Likewise.
18367         * tests/test-memmem.c: Likewise.
18368         * tests/test-memrchr.c: Likewise.
18369         * tests/test-mkdir.c: Likewise.
18370         * tests/test-mkdirat.c: Likewise.
18371         * tests/test-mkfifo.c: Likewise.
18372         * tests/test-mkfifoat.c: Likewise.
18373         * tests/test-mknod.c: Likewise.
18374         * tests/test-nanosleep.c: Likewise.
18375         * tests/test-nl_langinfo.c: Likewise.
18376         * tests/test-obstack-printf.c: Likewise.
18377         * tests/test-open.c: Likewise.
18378         * tests/test-openat.c: Likewise.
18379         * tests/test-pipe-filter-gi1.c: Likewise.
18380         * tests/test-pipe-filter-gi2-main.c: Likewise.
18381         * tests/test-pipe-filter-ii1.c: Likewise.
18382         * tests/test-pipe-filter-ii2-main.c: Likewise.
18383         * tests/test-pipe2.c: Likewise.
18384         * tests/test-popen.h: Likewise.
18385         * tests/test-posixtm.c: Likewise.
18386         * tests/test-pread.c: Likewise.
18387         * tests/test-printf-frexp.c: Likewise.
18388         * tests/test-printf-frexpl.c: Likewise.
18389         * tests/test-printf-posix.c: Likewise.
18390         * tests/test-priv-set.c: Likewise.
18391         * tests/test-quotearg.c: Likewise.
18392         * tests/test-random_r.c: Likewise.
18393         * tests/test-rawmemchr.c: Likewise.
18394         * tests/test-rbtree_list.c: Likewise.
18395         * tests/test-rbtree_oset.c: Likewise.
18396         * tests/test-rbtreehash_list.c: Likewise.
18397         * tests/test-readlink.c: Likewise.
18398         * tests/test-remove.c: Likewise.
18399         * tests/test-rename.c: Likewise.
18400         * tests/test-renameat.c: Likewise.
18401         * tests/test-rmdir.c: Likewise.
18402         * tests/test-round1.c: Likewise.
18403         * tests/test-roundf1.c: Likewise.
18404         * tests/test-roundl.c: Likewise.
18405         * tests/test-safe-alloc.c: Likewise.
18406         * tests/test-sameacls.c: Likewise.
18407         * tests/test-set-mode-acl.c: Likewise.
18408         * tests/test-setenv.c: Likewise.
18409         * tests/test-sigaction.c: Likewise.
18410         * tests/test-signbit.c: Likewise.
18411         * tests/test-sleep.c: Likewise.
18412         * tests/test-snprintf-posix.c: Likewise.
18413         * tests/test-snprintf.c: Likewise.
18414         * tests/test-sprintf-posix.c: Likewise.
18415         * tests/test-stat-time.c: Likewise.
18416         * tests/test-stat.c: Likewise.
18417         * tests/test-strcasestr.c: Likewise.
18418         * tests/test-strchrnul.c: Likewise.
18419         * tests/test-strerror.c: Likewise.
18420         * tests/test-striconv.c: Likewise.
18421         * tests/test-striconveh.c: Likewise.
18422         * tests/test-striconveha.c: Likewise.
18423         * tests/test-strsignal.c: Likewise.
18424         * tests/test-strstr.c: Likewise.
18425         * tests/test-strtod.c: Likewise.
18426         * tests/test-strverscmp.c: Likewise.
18427         * tests/test-symlink.c: Likewise.
18428         * tests/test-symlinkat.c: Likewise.
18429         * tests/test-trunc1.c: Likewise.
18430         * tests/test-trunc2.c: Likewise.
18431         * tests/test-truncf1.c: Likewise.
18432         * tests/test-truncf2.c: Likewise.
18433         * tests/test-truncl.c: Likewise.
18434         * tests/test-uname.c: Likewise.
18435         * tests/test-unlink.c: Likewise.
18436         * tests/test-unlinkat.c: Likewise.
18437         * tests/test-unsetenv.c: Likewise.
18438         * tests/test-usleep.c: Likewise.
18439         * tests/test-utimens.c: Likewise.
18440         * tests/test-utimensat.c: Likewise.
18441         * tests/test-vasnprintf-posix.c: Likewise.
18442         * tests/test-vasnprintf-posix2.c: Likewise.
18443         * tests/test-vasnprintf.c: Likewise.
18444         * tests/test-vasprintf-posix.c: Likewise.
18445         * tests/test-vasprintf.c: Likewise.
18446         * tests/test-vdprintf-posix.c: Likewise.
18447         * tests/test-vfprintf-posix.c: Likewise.
18448         * tests/test-vprintf-posix.c: Likewise.
18449         * tests/test-vsnprintf-posix.c: Likewise.
18450         * tests/test-vsnprintf.c: Likewise.
18451         * tests/test-vsprintf-posix.c: Likewise.
18452         * tests/test-wcrtomb.c: Likewise.
18453         * tests/test-wcsnrtombs.c: Likewise.
18454         * tests/test-wcsrtombs.c: Likewise.
18455         * tests/test-wctype.c: Likewise.
18456         * tests/test-wcwidth.c: Likewise.
18457         * tests/test-xfprintf-posix.c: Likewise.
18458         * tests/test-xmemdup0.c: Likewise.
18459         * tests/test-xprintf-posix.c: Likewise.
18460         * tests/test-xvasprintf.c: Likewise.
18461         * tests/unicase/test-locale-language.c: Likewise.
18462         * tests/unicase/test-mapping-part1.h: Likewise.
18463         * tests/unicase/test-predicate-part1.h: Likewise.
18464         * tests/unicase/test-u8-casecmp.c: Likewise.
18465         * tests/unicase/test-u8-casecoll.c: Likewise.
18466         * tests/unicase/test-u8-casefold.c: Likewise.
18467         * tests/unicase/test-u8-is-cased.c: Likewise.
18468         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18469         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18470         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18471         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18472         * tests/unicase/test-u8-tolower.c: Likewise.
18473         * tests/unicase/test-u8-totitle.c: Likewise.
18474         * tests/unicase/test-u8-toupper.c: Likewise.
18475         * tests/unicase/test-u16-casecmp.c: Likewise.
18476         * tests/unicase/test-u16-casecoll.c: Likewise.
18477         * tests/unicase/test-u16-casefold.c: Likewise.
18478         * tests/unicase/test-u16-is-cased.c: Likewise.
18479         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18480         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18481         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18482         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18483         * tests/unicase/test-u16-tolower.c: Likewise.
18484         * tests/unicase/test-u16-totitle.c: Likewise.
18485         * tests/unicase/test-u16-toupper.c: Likewise.
18486         * tests/unicase/test-u32-casecmp.c: Likewise.
18487         * tests/unicase/test-u32-casecoll.c: Likewise.
18488         * tests/unicase/test-u32-casefold.c: Likewise.
18489         * tests/unicase/test-u32-is-cased.c: Likewise.
18490         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18491         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18492         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18493         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18494         * tests/unicase/test-u32-tolower.c: Likewise.
18495         * tests/unicase/test-u32-totitle.c: Likewise.
18496         * tests/unicase/test-u32-toupper.c: Likewise.
18497         * tests/unicase/test-ulc-casecmp.c: Likewise.
18498         * tests/unicase/test-ulc-casecoll.c: Likewise.
18499         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18500         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18501         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18502         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18503         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18504         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18505         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18506         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18507         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18508         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18509         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18510         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18511         * tests/unictype/test-bidi_byname.c: Likewise.
18512         * tests/unictype/test-bidi_name.c: Likewise.
18513         * tests/unictype/test-bidi_of.c: Likewise.
18514         * tests/unictype/test-bidi_test.c: Likewise.
18515         * tests/unictype/test-block_list.c: Likewise.
18516         * tests/unictype/test-block_of.c: Likewise.
18517         * tests/unictype/test-block_test.c: Likewise.
18518         * tests/unictype/test-categ_and.c: Likewise.
18519         * tests/unictype/test-categ_and_not.c: Likewise.
18520         * tests/unictype/test-categ_byname.c: Likewise.
18521         * tests/unictype/test-categ_name.c: Likewise.
18522         * tests/unictype/test-categ_none.c: Likewise.
18523         * tests/unictype/test-categ_of.c: Likewise.
18524         * tests/unictype/test-categ_or.c: Likewise.
18525         * tests/unictype/test-categ_test_withtable.c: Likewise.
18526         * tests/unictype/test-combining.c: Likewise.
18527         * tests/unictype/test-decdigit.c: Likewise.
18528         * tests/unictype/test-digit.c: Likewise.
18529         * tests/unictype/test-mirror.c: Likewise.
18530         * tests/unictype/test-numeric.c: Likewise.
18531         * tests/unictype/test-pr_byname.c: Likewise.
18532         * tests/unictype/test-pr_test.c: Likewise.
18533         * tests/unictype/test-predicate-part1.h: Likewise.
18534         * tests/unictype/test-scripts.c: Likewise.
18535         * tests/unictype/test-sy_c_ident.c: Likewise.
18536         * tests/unictype/test-sy_java_ident.c: Likewise.
18537         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18538         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18539         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18540         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18541         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18542         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18543         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18544         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18545         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18546         * tests/uninorm/test-compat-decomposition.c: Likewise.
18547         * tests/uninorm/test-composition.c: Likewise.
18548         * tests/uninorm/test-decomposing-form.c: Likewise.
18549         * tests/uninorm/test-decomposition.c: Likewise.
18550         * tests/uninorm/test-u8-nfc.c: Likewise.
18551         * tests/uninorm/test-u8-nfd.c: Likewise.
18552         * tests/uninorm/test-u8-nfkc.c: Likewise.
18553         * tests/uninorm/test-u8-nfkd.c: Likewise.
18554         * tests/uninorm/test-u8-normcmp.c: Likewise.
18555         * tests/uninorm/test-u8-normcoll.c: Likewise.
18556         * tests/uninorm/test-u16-nfc.c: Likewise.
18557         * tests/uninorm/test-u16-nfd.c: Likewise.
18558         * tests/uninorm/test-u16-nfkc.c: Likewise.
18559         * tests/uninorm/test-u16-nfkd.c: Likewise.
18560         * tests/uninorm/test-u16-normcmp.c: Likewise.
18561         * tests/uninorm/test-u16-normcoll.c: Likewise.
18562         * tests/uninorm/test-u32-nfc.c: Likewise.
18563         * tests/uninorm/test-u32-nfd.c: Likewise.
18564         * tests/uninorm/test-u32-nfkc.c: Likewise.
18565         * tests/uninorm/test-u32-nfkd.c: Likewise.
18566         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18567         * tests/uninorm/test-u32-normcmp.c: Likewise.
18568         * tests/uninorm/test-u32-normcoll.c: Likewise.
18569         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18570         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18571         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18572         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18573         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18574         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18575         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18576         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18577         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18578         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18579         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18580         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18581         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18582         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18583         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18584         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18585         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18586         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18587         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18588         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18589         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18590         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18591         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18592         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18593         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18594         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18595         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18596         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18597         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18598         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18599         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18600         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18601         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18602         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18603         * tests/uniwidth/test-u8-width.c: Likewise.
18604         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18605         * tests/uniwidth/test-u16-width.c: Likewise.
18606         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18607         * tests/uniwidth/test-u32-width.c: Likewise.
18608         * tests/uniwidth/test-uc_width.c: Likewise.
18609         * tests/uniwidth/test-uc_width2.c: Likewise.
18610         * modules/acl-tests (Files): Add tests/macros.h.
18611         * modules/areadlink-tests (Files): Likewise.
18612         * modules/areadlink-with-size-tests (Files): Likewise.
18613         * modules/areadlinkat-tests (Files): Likewise.
18614         * modules/areadlinkat-with-size-tests (Files): Likewise.
18615         * modules/argmatch-tests (Files): Likewise.
18616         * modules/argv-iter-tests (Files): Likewise.
18617         * modules/array-list-tests (Files): Likewise.
18618         * modules/array-mergesort-tests (Files): Likewise.
18619         * modules/array-oset-tests (Files): Likewise.
18620         * modules/avltree-list-tests (Files): Likewise.
18621         * modules/avltree-oset-tests (Files): Likewise.
18622         * modules/avltreehash-list-tests (Files): Likewise.
18623         * modules/base64-tests (Files): Likewise.
18624         * modules/binary-io-tests (Files): Likewise.
18625         * modules/bitrotate-tests (Files): Likewise.
18626         * modules/btowc-tests (Files): Likewise.
18627         * modules/byteswap-tests (Files): Likewise.
18628         * modules/c-ctype-tests (Files): Likewise.
18629         * modules/c-stack-tests (Files): Likewise.
18630         * modules/c-strcase-tests (Files): Likewise.
18631         * modules/c-strcasestr-tests (Files): Likewise.
18632         * modules/c-strstr-tests (Files): Likewise.
18633         * modules/canonicalize-lgpl-tests (Files): Likewise.
18634         * modules/canonicalize-tests (Files): Likewise.
18635         * modules/carray-list-tests (Files): Likewise.
18636         * modules/ceilf-tests (Files): Likewise.
18637         * modules/ceill-tests (Files): Likewise.
18638         * modules/chown-tests (Files): Likewise.
18639         * modules/cloexec-tests (Files): Likewise.
18640         * modules/copy-file-tests (Files): Likewise.
18641         * modules/count-one-bits-tests (Files): Likewise.
18642         * modules/dprintf-posix-tests (Files): Likewise.
18643         * modules/dup2-tests (Files): Likewise.
18644         * modules/dup3-tests (Files): Likewise.
18645         * modules/duplocale-tests (Files): Likewise.
18646         * modules/fbufmode-tests (Files): Likewise.
18647         * modules/fchdir-tests (Files): Likewise.
18648         * modules/fcntl-safer-tests (Files): Likewise.
18649         * modules/fcntl-tests (Files): Likewise.
18650         * modules/fdopendir-tests (Files): Likewise.
18651         * modules/fdutimensat-tests (Files): Likewise.
18652         * modules/fflush-tests (Files): Likewise.
18653         * modules/filevercmp-tests (Files): Likewise.
18654         * modules/flock-tests (Files): Likewise.
18655         * modules/floorf-tests (Files): Likewise.
18656         * modules/floorl-tests (Files): Likewise.
18657         * modules/fnmatch-tests (Files): Likewise.
18658         * modules/fopen-safer-tests (Files): Likewise.
18659         * modules/fopen-tests (Files): Likewise.
18660         * modules/fpending-tests (Files): Likewise.
18661         * modules/fprintf-posix-tests (Files): Likewise.
18662         * modules/fpurge-tests (Files): Likewise.
18663         * modules/freadable-tests (Files): Likewise.
18664         * modules/freadahead-tests (Files): Likewise.
18665         * modules/freading-tests (Files): Likewise.
18666         * modules/freadptr-tests (Files): Likewise.
18667         * modules/freadseek-tests (Files): Likewise.
18668         * modules/freopen-tests (Files): Likewise.
18669         * modules/frexp-nolibm-tests (Files): Likewise.
18670         * modules/frexp-tests (Files): Likewise.
18671         * modules/frexpl-nolibm-tests (Files): Likewise.
18672         * modules/frexpl-tests (Files): Likewise.
18673         * modules/fseek-tests (Files): Likewise.
18674         * modules/fseeko-tests (Files): Likewise.
18675         * modules/fstrcmp-tests (Files): Likewise.
18676         * modules/fsync-tests (Files): Likewise.
18677         * modules/ftell-tests (Files): Likewise.
18678         * modules/ftello-tests (Files): Likewise.
18679         * modules/func-tests (Files): Likewise.
18680         * modules/futimens-tests (Files): Likewise.
18681         * modules/fwritable-tests (Files): Likewise.
18682         * modules/fwriting-tests (Files): Likewise.
18683         * modules/getcwd-tests (Files): Likewise.
18684         * modules/getdate-tests (Files): Likewise.
18685         * modules/getdelim-tests (Files): Likewise.
18686         * modules/getdtablesize-tests (Files): Likewise.
18687         * modules/getgroups-tests (Files): Likewise.
18688         * modules/getline-tests (Files): Likewise.
18689         * modules/getndelim2-tests (Files): Likewise.
18690         * modules/glob-tests (Files): Likewise.
18691         * modules/hash-tests (Files): Likewise.
18692         * modules/i-ring-tests (Files): Likewise.
18693         * modules/iconv-tests (Files): Likewise.
18694         * modules/iconv_open-utf-tests (Files): Likewise.
18695         * modules/idpriv-drop-tests (Files): Likewise.
18696         * modules/idpriv-droptemp-tests (Files): Likewise.
18697         * modules/inet_ntop-tests (Files): Likewise.
18698         * modules/inet_pton-tests (Files): Likewise.
18699         * modules/isblank-tests (Files): Likewise.
18700         * modules/isfinite-tests (Files): Likewise.
18701         * modules/isinf-tests (Files): Likewise.
18702         * modules/isnan-tests (Files): Likewise.
18703         * modules/isnand-nolibm-tests (Files): Likewise.
18704         * modules/isnand-tests (Files): Likewise.
18705         * modules/isnanf-nolibm-tests (Files): Likewise.
18706         * modules/isnanf-tests (Files): Likewise.
18707         * modules/isnanl-nolibm-tests (Files): Likewise.
18708         * modules/isnanl-tests (Files): Likewise.
18709         * modules/lchown-tests (Files): Likewise.
18710         * modules/ldexpl-tests (Files): Likewise.
18711         * modules/link-tests (Files): Likewise.
18712         * modules/linkat-tests (Files): Likewise.
18713         * modules/linked-list-tests (Files): Likewise.
18714         * modules/linkedhash-list-tests (Files): Likewise.
18715         * modules/localename-tests (Files): Likewise.
18716         * modules/lseek-tests (Files): Likewise.
18717         * modules/lstat-tests (Files): Likewise.
18718         * modules/mbmemcasecmp-tests (Files): Likewise.
18719         * modules/mbmemcasecoll-tests (Files): Likewise.
18720         * modules/mbrtowc-tests (Files): Likewise.
18721         * modules/mbscasecmp-tests (Files): Likewise.
18722         * modules/mbscasestr-tests (Files): Likewise.
18723         * modules/mbschr-tests (Files): Likewise.
18724         * modules/mbscspn-tests (Files): Likewise.
18725         * modules/mbsinit-tests (Files): Likewise.
18726         * modules/mbsncasecmp-tests (Files): Likewise.
18727         * modules/mbsnrtowcs-tests (Files): Likewise.
18728         * modules/mbspbrk-tests (Files): Likewise.
18729         * modules/mbspcasecmp-tests (Files): Likewise.
18730         * modules/mbsrchr-tests (Files): Likewise.
18731         * modules/mbsrtowcs-tests (Files): Likewise.
18732         * modules/mbsspn-tests (Files): Likewise.
18733         * modules/mbsstr-tests (Files): Likewise.
18734         * modules/memchr-tests (Files): Likewise.
18735         * modules/memchr2-tests (Files): Likewise.
18736         * modules/memcmp-tests (Files): Likewise.
18737         * modules/memmem-tests (Files): Likewise.
18738         * modules/memrchr-tests (Files): Likewise.
18739         * modules/mkdir-tests (Files): Likewise.
18740         * modules/mkfifo-tests (Files): Likewise.
18741         * modules/mkfifoat-tests (Files): Likewise.
18742         * modules/mknod-tests (Files): Likewise.
18743         * modules/nanosleep-tests (Files): Likewise.
18744         * modules/nl_langinfo-tests (Files): Likewise.
18745         * modules/obstack-printf-tests (Files): Likewise.
18746         * modules/open-tests (Files): Likewise.
18747         * modules/openat-tests (Files): Likewise.
18748         * modules/pipe-filter-gi-tests (Files): Likewise.
18749         * modules/pipe-filter-ii-tests (Files): Likewise.
18750         * modules/pipe2-tests (Files): Likewise.
18751         * modules/popen-safer-tests (Files): Likewise.
18752         * modules/popen-tests (Files): Likewise.
18753         * modules/posixtm-tests (Files): Likewise.
18754         * modules/pread-tests (Files): Likewise.
18755         * modules/printf-frexp-tests (Files): Likewise.
18756         * modules/printf-frexpl-tests (Files): Likewise.
18757         * modules/printf-posix-tests (Files): Likewise.
18758         * modules/priv-set-tests (Files): Likewise.
18759         * modules/quotearg-tests (Files): Likewise.
18760         * modules/random_r-tests (Files): Likewise.
18761         * modules/rawmemchr-tests (Files): Likewise.
18762         * modules/rbtree-list-tests (Files): Likewise.
18763         * modules/rbtree-oset-tests (Files): Likewise.
18764         * modules/rbtreehash-list-tests (Files): Likewise.
18765         * modules/readlink-tests (Files): Likewise.
18766         * modules/remove-tests (Files): Likewise.
18767         * modules/rename-tests (Files): Likewise.
18768         * modules/renameat-tests (Files): Likewise.
18769         * modules/rmdir-tests (Files): Likewise.
18770         * modules/round-tests (Files): Likewise.
18771         * modules/roundf-tests (Files): Likewise.
18772         * modules/roundl-tests (Files): Likewise.
18773         * modules/safe-alloc-tests (Files): Likewise.
18774         * modules/setenv-tests (Files): Likewise.
18775         * modules/sigaction-tests (Files): Likewise.
18776         * modules/signbit-tests (Files): Likewise.
18777         * modules/sleep-tests (Files): Likewise.
18778         * modules/snprintf-posix-tests (Files): Likewise.
18779         * modules/snprintf-tests (Files): Likewise.
18780         * modules/sprintf-posix-tests (Files): Likewise.
18781         * modules/stat-tests (Files): Likewise.
18782         * modules/stat-time-tests (Files): Likewise.
18783         * modules/strcasestr-tests (Files): Likewise.
18784         * modules/strchrnul-tests (Files): Likewise.
18785         * modules/strerror-tests (Files): Likewise.
18786         * modules/striconv-tests (Files): Likewise.
18787         * modules/striconveh-tests (Files): Likewise.
18788         * modules/striconveha-tests (Files): Likewise.
18789         * modules/strsignal-tests (Files): Likewise.
18790         * modules/strstr-tests (Files): Likewise.
18791         * modules/strtod-tests (Files): Likewise.
18792         * modules/strverscmp-tests (Files): Likewise.
18793         * modules/symlink-tests (Files): Likewise.
18794         * modules/symlinkat-tests (Files): Likewise.
18795         * modules/trunc-tests (Files): Likewise.
18796         * modules/truncf-tests (Files): Likewise.
18797         * modules/truncl-tests (Files): Likewise.
18798         * modules/uname-tests (Files): Likewise.
18799         * modules/unicase/cased-tests (Files): Likewise.
18800         * modules/unicase/ignorable-tests (Files): Likewise.
18801         * modules/unicase/locale-language-tests (Files): Likewise.
18802         * modules/unicase/tolower-tests (Files): Likewise.
18803         * modules/unicase/totitle-tests (Files): Likewise.
18804         * modules/unicase/toupper-tests (Files): Likewise.
18805         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18806         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18807         * modules/unicase/u8-casefold-tests (Files): Likewise.
18808         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18809         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18810         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18811         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18812         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18813         * modules/unicase/u8-tolower-tests (Files): Likewise.
18814         * modules/unicase/u8-totitle-tests (Files): Likewise.
18815         * modules/unicase/u8-toupper-tests (Files): Likewise.
18816         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18817         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18818         * modules/unicase/u16-casefold-tests (Files): Likewise.
18819         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18820         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18821         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18822         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18823         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18824         * modules/unicase/u16-tolower-tests (Files): Likewise.
18825         * modules/unicase/u16-totitle-tests (Files): Likewise.
18826         * modules/unicase/u16-toupper-tests (Files): Likewise.
18827         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18828         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18829         * modules/unicase/u32-casefold-tests (Files): Likewise.
18830         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18831         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18832         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18833         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18834         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18835         * modules/unicase/u32-tolower-tests (Files): Likewise.
18836         * modules/unicase/u32-totitle-tests (Files): Likewise.
18837         * modules/unicase/u32-toupper-tests (Files): Likewise.
18838         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18839         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18840         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18841         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18842         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18843         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18844         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18845         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18846         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18847         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18848         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18849         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18850         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18851         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18852         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18853         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18854         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18855         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18856         * modules/unictype/block-list-tests (Files): Likewise.
18857         * modules/unictype/block-of-tests (Files): Likewise.
18858         * modules/unictype/block-test-tests (Files): Likewise.
18859         * modules/unictype/category-C-tests (Files): Likewise.
18860         * modules/unictype/category-Cc-tests (Files): Likewise.
18861         * modules/unictype/category-Cf-tests (Files): Likewise.
18862         * modules/unictype/category-Cn-tests (Files): Likewise.
18863         * modules/unictype/category-Co-tests (Files): Likewise.
18864         * modules/unictype/category-Cs-tests (Files): Likewise.
18865         * modules/unictype/category-L-tests (Files): Likewise.
18866         * modules/unictype/category-Ll-tests (Files): Likewise.
18867         * modules/unictype/category-Lm-tests (Files): Likewise.
18868         * modules/unictype/category-Lo-tests (Files): Likewise.
18869         * modules/unictype/category-Lt-tests (Files): Likewise.
18870         * modules/unictype/category-Lu-tests (Files): Likewise.
18871         * modules/unictype/category-M-tests (Files): Likewise.
18872         * modules/unictype/category-Mc-tests (Files): Likewise.
18873         * modules/unictype/category-Me-tests (Files): Likewise.
18874         * modules/unictype/category-Mn-tests (Files): Likewise.
18875         * modules/unictype/category-N-tests (Files): Likewise.
18876         * modules/unictype/category-Nd-tests (Files): Likewise.
18877         * modules/unictype/category-Nl-tests (Files): Likewise.
18878         * modules/unictype/category-No-tests (Files): Likewise.
18879         * modules/unictype/category-P-tests (Files): Likewise.
18880         * modules/unictype/category-Pc-tests (Files): Likewise.
18881         * modules/unictype/category-Pd-tests (Files): Likewise.
18882         * modules/unictype/category-Pe-tests (Files): Likewise.
18883         * modules/unictype/category-Pf-tests (Files): Likewise.
18884         * modules/unictype/category-Pi-tests (Files): Likewise.
18885         * modules/unictype/category-Po-tests (Files): Likewise.
18886         * modules/unictype/category-Ps-tests (Files): Likewise.
18887         * modules/unictype/category-S-tests (Files): Likewise.
18888         * modules/unictype/category-Sc-tests (Files): Likewise.
18889         * modules/unictype/category-Sk-tests (Files): Likewise.
18890         * modules/unictype/category-Sm-tests (Files): Likewise.
18891         * modules/unictype/category-So-tests (Files): Likewise.
18892         * modules/unictype/category-Z-tests (Files): Likewise.
18893         * modules/unictype/category-Zl-tests (Files): Likewise.
18894         * modules/unictype/category-Zp-tests (Files): Likewise.
18895         * modules/unictype/category-Zs-tests (Files): Likewise.
18896         * modules/unictype/category-and-not-tests (Files): Likewise.
18897         * modules/unictype/category-and-tests (Files): Likewise.
18898         * modules/unictype/category-byname-tests (Files): Likewise.
18899         * modules/unictype/category-name-tests (Files): Likewise.
18900         * modules/unictype/category-none-tests (Files): Likewise.
18901         * modules/unictype/category-of-tests (Files): Likewise.
18902         * modules/unictype/category-or-tests (Files): Likewise.
18903         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18904         * modules/unictype/combining-class-tests (Files): Likewise.
18905         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18906         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18907         * modules/unictype/ctype-blank-tests (Files): Likewise.
18908         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18909         * modules/unictype/ctype-digit-tests (Files): Likewise.
18910         * modules/unictype/ctype-graph-tests (Files): Likewise.
18911         * modules/unictype/ctype-lower-tests (Files): Likewise.
18912         * modules/unictype/ctype-print-tests (Files): Likewise.
18913         * modules/unictype/ctype-punct-tests (Files): Likewise.
18914         * modules/unictype/ctype-space-tests (Files): Likewise.
18915         * modules/unictype/ctype-upper-tests (Files): Likewise.
18916         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18917         * modules/unictype/decimal-digit-tests (Files): Likewise.
18918         * modules/unictype/digit-tests (Files): Likewise.
18919         * modules/unictype/mirror-tests (Files): Likewise.
18920         * modules/unictype/numeric-tests (Files): Likewise.
18921         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18922         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18923         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18924         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18925         Likewise.
18926         * modules/unictype/property-bidi-block-separator-tests (Files):
18927         Likewise.
18928         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18929         Likewise.
18930         * modules/unictype/property-bidi-common-separator-tests (Files):
18931         Likewise.
18932         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18933         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18934         Likewise.
18935         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18936         Likewise.
18937         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18938         Likewise.
18939         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18940         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18941         Likewise.
18942         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18943         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18944         Likewise.
18945         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18946         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18947         * modules/unictype/property-bidi-segment-separator-tests (Files):
18948         Likewise.
18949         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18950         * modules/unictype/property-byname-tests (Files): Likewise.
18951         * modules/unictype/property-combining-tests (Files): Likewise.
18952         * modules/unictype/property-composite-tests (Files): Likewise.
18953         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18954         * modules/unictype/property-dash-tests (Files): Likewise.
18955         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18956         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18957         Likewise.
18958         * modules/unictype/property-deprecated-tests (Files): Likewise.
18959         * modules/unictype/property-diacritic-tests (Files): Likewise.
18960         * modules/unictype/property-extender-tests (Files): Likewise.
18961         * modules/unictype/property-format-control-tests (Files): Likewise.
18962         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18963         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18964         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18965         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18966         * modules/unictype/property-hyphen-tests (Files): Likewise.
18967         * modules/unictype/property-id-continue-tests (Files): Likewise.
18968         * modules/unictype/property-id-start-tests (Files): Likewise.
18969         * modules/unictype/property-ideographic-tests (Files): Likewise.
18970         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18971         * modules/unictype/property-ids-trinary-operator-tests (Files):
18972         Likewise.
18973         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18974         * modules/unictype/property-iso-control-tests (Files): Likewise.
18975         * modules/unictype/property-join-control-tests (Files): Likewise.
18976         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18977         * modules/unictype/property-line-separator-tests (Files): Likewise.
18978         * modules/unictype/property-logical-order-exception-tests (Files):
18979         Likewise.
18980         * modules/unictype/property-lowercase-tests (Files): Likewise.
18981         * modules/unictype/property-math-tests (Files): Likewise.
18982         * modules/unictype/property-non-break-tests (Files): Likewise.
18983         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18984         * modules/unictype/property-numeric-tests (Files): Likewise.
18985         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18986         * modules/unictype/property-other-default-ignorable-code-point-tests
18987         (Files): Likewise.
18988         * modules/unictype/property-other-grapheme-extend-tests (Files):
18989         Likewise.
18990         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18991         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18992         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18993         * modules/unictype/property-other-math-tests (Files): Likewise.
18994         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18995         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18996         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18997         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18998         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18999         * modules/unictype/property-private-use-tests (Files): Likewise.
19000         * modules/unictype/property-punctuation-tests (Files): Likewise.
19001         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19002         * modules/unictype/property-radical-tests (Files): Likewise.
19003         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19004         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19005         * modules/unictype/property-space-tests (Files): Likewise.
19006         * modules/unictype/property-terminal-punctuation-tests (Files):
19007         Likewise.
19008         * modules/unictype/property-test-tests (Files): Likewise.
19009         * modules/unictype/property-titlecase-tests (Files): Likewise.
19010         * modules/unictype/property-unassigned-code-value-tests (Files):
19011         Likewise.
19012         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19013         * modules/unictype/property-uppercase-tests (Files): Likewise.
19014         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19015         * modules/unictype/property-white-space-tests (Files): Likewise.
19016         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19017         * modules/unictype/property-xid-start-tests (Files): Likewise.
19018         * modules/unictype/property-zero-width-tests (Files): Likewise.
19019         * modules/unictype/scripts-tests (Files): Likewise.
19020         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19021         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19022         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19023         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19024         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19025         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19026         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19027         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19028         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19029         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19030         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19031         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19032         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19033         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19034         * modules/uninorm/composition-tests (Files): Likewise.
19035         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19036         * modules/uninorm/decomposition-tests (Files): Likewise.
19037         * modules/uninorm/filter-tests (Files): Likewise.
19038         * modules/uninorm/nfc-tests (Files): Likewise.
19039         * modules/uninorm/nfd-tests (Files): Likewise.
19040         * modules/uninorm/nfkc-tests (Files): Likewise.
19041         * modules/uninorm/nfkd-tests (Files): Likewise.
19042         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19043         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19044         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19045         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19046         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19047         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19048         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19049         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19050         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19051         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19052         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19053         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19054         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19055         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19056         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19057         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19058         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19059         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19060         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19061         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19062         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19063         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19064         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19065         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19066         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19067         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19068         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19069         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19070         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19071         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19072         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19073         * modules/uniwidth/u8-width-tests (Files): Likewise.
19074         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19075         * modules/uniwidth/u16-width-tests (Files): Likewise.
19076         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19077         * modules/uniwidth/u32-width-tests (Files): Likewise.
19078         * modules/uniwidth/width-tests (Files): Likewise.
19079         * modules/unlink-tests (Files): Likewise.
19080         * modules/unsetenv-tests (Files): Likewise.
19081         * modules/usleep-tests (Files): Likewise.
19082         * modules/utimens-tests (Files): Likewise.
19083         * modules/utimensat-tests (Files): Likewise.
19084         * modules/vasnprintf-posix-tests (Files): Likewise.
19085         * modules/vasnprintf-tests (Files): Likewise.
19086         * modules/vasprintf-posix-tests (Files): Likewise.
19087         * modules/vasprintf-tests (Files): Likewise.
19088         * modules/vdprintf-posix-tests (Files): Likewise.
19089         * modules/vfprintf-posix-tests (Files): Likewise.
19090         * modules/vprintf-posix-tests (Files): Likewise.
19091         * modules/vsnprintf-posix-tests (Files): Likewise.
19092         * modules/vsnprintf-tests (Files): Likewise.
19093         * modules/vsprintf-posix-tests (Files): Likewise.
19094         * modules/wcrtomb-tests (Files): Likewise.
19095         * modules/wcsnrtombs-tests (Files): Likewise.
19096         * modules/wcsrtombs-tests (Files): Likewise.
19097         * modules/wctype-tests (Files): Likewise.
19098         * modules/wcwidth-tests (Files): Likewise.
19099         * modules/xmemdup0-tests (Files): Likewise.
19100         * modules/xprintf-posix-tests (Files): Likewise.
19101         * modules/xvasprintf-tests (Files): Likewise.
19102
19103 2009-12-24  Eric Blake  <ebb9@byu.net>
19104
19105         test-nanosleep: fix typo
19106         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19107         patch.
19108         Reported by Bruno Haible.
19109
19110 2009-12-24  Bruno Haible  <bruno@clisp.org>
19111
19112         Reduce namespace pollution on glibc systems.
19113         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19114         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19115         systems.
19116         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19117         <getopt.h> on glibc systems.
19118         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19119         systems.
19120         * lib/fcntl.c: Include <unistd.h> here instead.
19121
19122 2009-12-24  Bruno Haible  <bruno@clisp.org>
19123
19124         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19125
19126 2009-12-24  Eric Blake  <ebb9@byu.net>
19127
19128         tests: add signature checks
19129         * tests/signature.h (SIGNATURE_CHECK): New file.
19130         * modules/atexit-tests (Files): Use it.
19131         * modules/btowc-tests (Files): Likewise.
19132         * modules/canonicalize-lgpl-tests (Files): Likewise.
19133         * modules/ceilf-tests (Files): Likewise.
19134         * modules/ceill-tests (Files): Likewise.
19135         * modules/chown-tests (Files): Likewise.
19136         * modules/dprintf-posix-tests (Files): Likewise.
19137         * modules/dup2-tests (Files): Likewise.
19138         * modules/dup3-tests (Files): Likewise.
19139         * modules/duplocale-tests (Files): Likewise.
19140         * modules/fchdir-tests (Files): Likewise.
19141         * modules/fcntl-tests (Files): Likewise.
19142         * modules/fdopendir-tests (Files): Likewise.
19143         * modules/fflush-tests (Files): Likewise.
19144         * modules/flock-tests (Files): Likewise.
19145         * modules/floorf-tests (Files): Likewise.
19146         * modules/floorl-tests (Files): Likewise.
19147         * modules/fnmatch-tests (Files): Likewise.
19148         * modules/fopen-tests (Files): Likewise.
19149         * modules/fprintf-posix-tests (Files): Likewise.
19150         * modules/freopen-tests (Files): Likewise.
19151         * modules/frexp-nolibm-tests (Files): Likewise.
19152         * modules/frexp-tests (Files): Likewise.
19153         * modules/frexpl-nolibm-tests (Files): Likewise.
19154         * modules/frexpl-tests (Files): Likewise.
19155         * modules/fseek-tests (Files): Likewise.
19156         * modules/fseeko-tests (Files): Likewise.
19157         * modules/fsync-tests (Files): Likewise.
19158         * modules/ftell-tests (Files): Likewise.
19159         * modules/ftello-tests (Files): Likewise.
19160         * modules/futimens-tests (Files): Likewise.
19161         * modules/getaddrinfo-tests (Files): Likewise.
19162         * modules/getcwd-tests (Files): Likewise.
19163         * modules/getdelim-tests (Files): Likewise.
19164         * modules/getdtablesize-tests (Files): Likewise.
19165         * modules/getgroups-tests (Files): Likewise.
19166         * modules/gethostname-tests (Files): Likewise.
19167         * modules/getline-tests (Files): Likewise.
19168         * modules/getopt-posix-tests (Files): Likewise.
19169         * modules/gettimeofday-tests (Files): Likewise.
19170         * modules/glob-tests (Files): Likewise.
19171         * modules/iconv-tests (Files): Likewise.
19172         * modules/inet_ntop-tests (Files): Likewise.
19173         * modules/inet_pton-tests (Files): Likewise.
19174         * modules/isblank-tests (Files): Likewise.
19175         * modules/lchown-tests (Files): Likewise.
19176         * modules/ldexpl-tests (Files): Likewise.
19177         * modules/link-tests (Files): Likewise.
19178         * modules/linkat-tests (Files): Likewise.
19179         * modules/lseek-tests (Files): Likewise.
19180         * modules/lstat-tests (Files): Likewise.
19181         * modules/mbrtowc-tests (Files): Likewise.
19182         * modules/mbsinit-tests (Files): Likewise.
19183         * modules/mbsnrtowcs-tests (Files): Likewise.
19184         * modules/mbsrtowcs-tests (Files): Likewise.
19185         * modules/memchr-tests (Files): Likewise.
19186         * modules/memcmp-tests (Files): Likewise.
19187         * modules/memmem-tests (Files): Likewise.
19188         * modules/memrchr-tests (Files): Likewise.
19189         * modules/mkdir-tests (Files): Likewise.
19190         * modules/mkfifo-tests (Files): Likewise.
19191         * modules/mkfifoat-tests (Files): Likewise.
19192         * modules/mknod-tests (Files): Likewise.
19193         * modules/nanosleep-tests (Files): Likewise.
19194         * modules/nl_langinfo-tests (Files): Likewise.
19195         * modules/obstack-printf-tests (Files): Likewise.
19196         * modules/open-tests (Files): Likewise.
19197         * modules/openat-tests (Files): Likewise.
19198         * modules/perror-tests (Files): Likewise.
19199         * modules/pipe2-tests (Files): Likewise.
19200         * modules/poll-tests (Files): Likewise.
19201         * modules/popen-tests (Files): Likewise.
19202         * modules/posix_spawn-tests (Files): Likewise.
19203         * modules/posix_spawnp-tests (Files): Likewise.
19204         * modules/pread-tests (Files): Likewise.
19205         * modules/printf-posix-tests (Files): Likewise.
19206         * modules/pty-tests (Files): Likewise.
19207         * modules/random_r-tests (Files): Likewise.
19208         * modules/rawmemchr-tests (Files): Likewise.
19209         * modules/readlink-tests (Files): Likewise.
19210         * modules/remove-tests (Files): Likewise.
19211         * modules/rename-tests (Files): Likewise.
19212         * modules/renameat-tests (Files): Likewise.
19213         * modules/rmdir-tests (Files): Likewise.
19214         * modules/round-tests (Files): Likewise.
19215         * modules/roundf-tests (Files): Likewise.
19216         * modules/roundl-tests (Files): Likewise.
19217         * modules/select-tests (Files): Likewise.
19218         * modules/setenv-tests (Files): Likewise.
19219         * modules/sigaction-tests (Files): Likewise.
19220         * modules/sleep-tests (Files): Likewise.
19221         * modules/snprintf-posix-tests (Files): Likewise.
19222         * modules/snprintf-tests (Files): Likewise.
19223         * modules/sprintf-posix-tests (Files): Likewise.
19224         * modules/stat-tests (Files): Likewise.
19225         * modules/strcasestr-tests (Files): Likewise.
19226         * modules/strchrnul-tests (Files): Likewise.
19227         * modules/strerror-tests (Files): Likewise.
19228         * modules/strsignal-tests (Files): Likewise.
19229         * modules/strstr-tests (Files): Likewise.
19230         * modules/strtod-tests (Files): Likewise.
19231         * modules/strverscmp-tests (Files): Likewise.
19232         * modules/symlink-tests (Files): Likewise.
19233         * modules/symlinkat-tests (Files): Likewise.
19234         * modules/times-tests (Files): Likewise.
19235         * modules/trunc-tests (Files): Likewise.
19236         * modules/truncf-tests (Files): Likewise.
19237         * modules/truncl-tests (Files): Likewise.
19238         * modules/tsearch-tests (Files): Likewise.
19239         * modules/uname-tests (Files): Likewise.
19240         * modules/unlink-tests (Files): Likewise.
19241         * modules/unsetenv-tests (Files): Likewise.
19242         * modules/usleep-tests (Files): Likewise.
19243         * modules/utimensat-tests (Files): Likewise.
19244         * modules/vasprintf-tests (Files): Likewise.
19245         * modules/vdprintf-posix-tests (Files): Likewise.
19246         * modules/vfprintf-posix-tests (Files): Likewise.
19247         * modules/vprintf-posix-tests (Files): Likewise.
19248         * modules/vsnprintf-posix-tests (Files): Likewise.
19249         * modules/vsnprintf-tests (Files): Likewise.
19250         * modules/vsprintf-posix-tests (Files): Likewise.
19251         * modules/wcrtomb-tests (Files): Likewise.
19252         * modules/wcsnrtombs-tests (Files): Likewise.
19253         * modules/wcsrtombs-tests (Files): Likewise.
19254         * modules/wcwidth-tests (Files): Likewise.
19255         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19256         * tests/test-isinf.c (isinf): Likewise.
19257         * tests/test-isnan.c (isnan): Likewise.
19258         * tests/test-signbit.c (signbit): Likewise.
19259         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19260         declaration, either as macro or with correct signature.
19261         (select): Ensure function under test is declared with correct
19262         signature in correct header.
19263         * tests/test-atexit.c (atexit): Likewise.
19264         * tests/test-btowc.c (btowc): Likewise.
19265         * tests/test-canonicalize-lgpl.c (realpath)
19266         (canonicalize_file_name): Likewise.
19267         * tests/test-ceilf1.c (ceilf): Likewise.
19268         * tests/test-ceill.c (ceill): Likewise.
19269         * tests/test-chown.c (chown): Likewise.
19270         * tests/test-dprintf-posix.c (dprintf): Likewise.
19271         * tests/test-dup2.c (dup2): Likewise.
19272         * tests/test-dup3.c (dup3): Likewise.
19273         * tests/test-duplocale.c (duplocale): Likewise.
19274         * tests/test-fchdir.c (fchdir): Likewise.
19275         * tests/test-fchownat.c (fchownat): Likewise.
19276         * tests/test-fcntl.c (fcntl): Likewise.
19277         * tests/test-fdopendir.c (fdopendir): Likewise.
19278         * tests/test-fflush.c (fflush): Likewise.
19279         * tests/test-flock.c (flock): Likewise.
19280         * tests/test-floorf1.c (floorf): Likewise.
19281         * tests/test-floorl.c (floorl): Likewise.
19282         * tests/test-fnmatch.c (fnmatch): Likewise.
19283         * tests/test-fopen.c (fopen): Likewise.
19284         * tests/test-fprintf-posix.c (fprintf): Likewise.
19285         * tests/test-freopen.c (freopen): Likewise.
19286         * tests/test-frexp.c (frexp): Likewise.
19287         * tests/test-frexpl.c (frexpl): Likewise.
19288         * tests/test-fseek.c (fseek): Likewise.
19289         * tests/test-fseeko.c (fseeko): Likewise.
19290         * tests/test-fstatat.c (fstatat): Likewise.
19291         * tests/test-fsync.c (fsync): Likewise.
19292         * tests/test-ftell.c (ftell): Likewise.
19293         * tests/test-ftello.c (ftello): Likewise.
19294         * tests/test-futimens.c (futimens): Likewise.
19295         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19296         (gai_strerror): Likewise.
19297         * tests/test-getcwd.c (getcwd): Likewise.
19298         * tests/test-getdelim.c (getdelim): Likewise.
19299         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19300         * tests/test-getgroups.c (getgroups): Likewise.
19301         * tests/test-gethostname.c (gethostname): Likewise.
19302         * tests/test-getline.c (getline): Likewise.
19303         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19304         Likewise.
19305         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19306         * tests/test-glob.c (glob, globfree): Likewise.
19307         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19308         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19309         * tests/test-inet_pton.c (inet_pton): Likewise.
19310         * tests/test-isblank.c (isblank): Likewise.
19311         * tests/test-lchown.c (lchown): Likewise.
19312         * tests/test-ldexpl.c (ldexpl): Likewise.
19313         * tests/test-link.c (link): Likewise.
19314         * tests/test-linkat.c (linkat): Likewise.
19315         * tests/test-lseek.c (lseek): Likewise.
19316         * tests/test-lstat.c (lstat): Likewise.
19317         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19318         * tests/test-mbsinit.c (mbsinit): Likewise.
19319         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19320         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19321         * tests/test-memchr.c (memchr): Likewise.
19322         * tests/test-memcmp.c (memcmp): Likewise.
19323         * tests/test-memmem.c (memmem): Likewise.
19324         * tests/test-memrchr.c (memrchr): Likewise.
19325         * tests/test-mkdir.c (mkdir): Likewise.
19326         * tests/test-mkdirat.c (mkdirat): Likewise.
19327         * tests/test-mkfifo.c (mkfifo): Likewise.
19328         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19329         * tests/test-mknod.c (mknod): Likewise.
19330         * tests/test-nanosleep.c (nanosleep): Likewise.
19331         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19332         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19333         Likewise.
19334         * tests/test-open.c (open): Likewise.
19335         * tests/test-openat.c (openat): Likewise.
19336         * tests/test-perror.c (perror): Likewise.
19337         * tests/test-pipe2.c (pipe2): Likewise.
19338         * tests/test-poll.c (poll): Likewise.
19339         * tests/test-popen.c (popen, pclose): Likewise.
19340         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19341         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19342         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19343         (posix_spawn_file_actions_destroy)
19344         (posix_spawn_file_actions_addclose)
19345         (posix_spawn_file_actions_addopen)
19346         (posix_spawn_file_actions_adddup2): Likewise.
19347         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19348         * tests/test-pread.c (pread): Likewise.
19349         * tests/test-printf-posix.c (printf): Likewise.
19350         * tests/test-pty.c (openpty, forkpty): Likewise.
19351         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19352         (random_r): Likewise.
19353         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19354         * tests/test-readlink.c (readlink): Likewise.
19355         * tests/test-remove.c (remove): Likewise.
19356         * tests/test-rename.c (rename): Likewise.
19357         * tests/test-renameat.c (renameat): Likewise.
19358         * tests/test-rmdir.c (rmdir): Likewise.
19359         * tests/test-round1.c (round): Likewise.
19360         * tests/test-roundf1.c (roundf): Likewise.
19361         * tests/test-roundl.c (roundl): Likewise.
19362         * tests/test-setenv.c (setenv): Likewise.
19363         * tests/test-sigaction.c (sigaction): Likewise.
19364         * tests/test-sleep.c (sleep): Likewise.
19365         * tests/test-snprintf.c (snprintf): Likewise.
19366         * tests/test-sprintf-posix.c (sprintf): Likewise.
19367         * tests/test-stat.c (stat): Likewise.
19368         * tests/test-stpncpy.c (stpncpy): Likewise.
19369         * tests/test-strcasestr.c (strcasestr): Likewise.
19370         * tests/test-strchrnul.c (strchrnul): Likewise.
19371         * tests/test-strerror.c (strerror): Likewise.
19372         * tests/test-strsignal.c (strsignal): Likewise.
19373         * tests/test-strstr.c (strstr): Likewise.
19374         * tests/test-strtod.c (strtod): Likewise.
19375         * tests/test-strverscmp.c (strverscmp): Likewise.
19376         * tests/test-symlink.c (symlink): Likewise.
19377         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19378         * tests/test-times.c (times): Likewise.
19379         * tests/test-trunc1.c (trunc): Likewise.
19380         * tests/test-truncf1.c (truncf): Likewise.
19381         * tests/test-truncl.c (truncl): Likewise.
19382         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19383         Likewise.
19384         * tests/test-uname.c (uname): Likewise.
19385         * tests/test-unlink.c (unlink): Likewise.
19386         * tests/test-unlinkat.c (unlinkat): Likewise.
19387         * tests/test-unsetenv.c (unsetenv): Likewise.
19388         * tests/test-usleep.c (usleep): Likewise.
19389         * tests/test-utimensat.c (utimensat): Likewise.
19390         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19391         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19392         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19393         * tests/test-vprintf-posix.c (vprintf): Likewise.
19394         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19395         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19396         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19397         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19398         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19399         * tests/test-wcwidth.c (wcwidth): Likewise.
19400
19401         build: pull in conditional headers during GNULIB_POSIXCHECK
19402         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19403         definitions from any conditionally-included headers.
19404         * lib/stdlib.in.h (includes): Likewise.
19405         * lib/unistd.in.h (includes): Likewise.
19406
19407 2009-12-24  Bruno Haible  <bruno@clisp.org>
19408
19409         * tests/test-argv-iter.c: Include header file being tested immediately
19410         after config.h.
19411         * tests/test-base64.c: Likewise.
19412         * tests/test-flock.c: Likewise.
19413         * tests/test-fsync.c: Likewise.
19414         * tests/test-getdate.c: Likewise.
19415         * tests/test-getndelim2.c: Likewise.
19416         * tests/test-isfinite.c: Likewise.
19417         * tests/test-isinf.c: Likewise.
19418         * tests/test-strerror.c: Likewise.
19419         * tests/test-strsignal.c: Likewise.
19420
19421 2009-12-23  Eric Blake  <ebb9@byu.net>
19422
19423         unistd: work around cygwin bug
19424         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19425         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19426         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19427
19428 2009-12-23  Bruno Haible  <bruno@clisp.org>
19429
19430         localename: More tests.
19431         * tests/test-localename.c (SIZEOF): New macro.
19432         (categories): New variable.
19433         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19434         test_locale_name_default): Add test w.r.t. thread locale.
19435         (test_locale_name_thread): New function.
19436         (main): Invoke it.
19437
19438         localename: Make aware of thread locale.
19439         * lib/localename.h (gl_locale_name_thread): New declaration.
19440         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19441         behaviour with respect to thread locale.
19442         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19443         <langinfo.h>, glthread/lock.h.
19444         (SIZE_BITS): New macro.
19445         (string_hash): New function.
19446         (struct hash_node): New type.
19447         (HASH_TABLE_SIZE): New macro.
19448         (struniq_hash_table, struniq_lock): New variables.
19449         (struniq): New function.
19450         (gl_locale_name_thread): New function.
19451         (gl_locale_name): Invoke it.
19452         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19453         * modules/localename (Depends-on): Add lock.
19454         Reported by Mike Gran <spk121@yahoo.com>.
19455
19456 2009-12-23  Eric Blake  <ebb9@byu.net>
19457
19458         va-args: new module
19459         * modules/va-args: New file.
19460         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19461         * MODULES.html.sh (Core language properties): Mention it.
19462
19463         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19464         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19465         named alias for __attribute__((__unused__)).
19466         * lib/chown.c: Update client.
19467         * lib/fchmodat.c: Likewise.
19468         * lib/fts.c: Likewise.
19469         * lib/getdate.y: Likewise.
19470         * lib/getgroups.c: Likewise.
19471         * lib/getopt.c: Likewise.
19472         * lib/getugroups.c: Likewise.
19473         * lib/mkdir.c: Likewise.
19474         * lib/mkfifo.c: Likewise.
19475         * lib/mkfifoat.c: Likewise.
19476         * lib/mknod.c: Likewise.
19477         * lib/mknodat.c: Likewise.
19478         * lib/readlink.c: Likewise.
19479         * lib/se-context.in.h: Likewise.
19480         * lib/se-selinux.in.h: Likewise.
19481         * lib/sockets.c: Likewise.
19482         * lib/symlink.c: Likewise.
19483         * lib/symlinkat.c: Likewise.
19484         * lib/unicodeio.c: Likewise.
19485         * lib/unistr.h: Likewise.
19486         * tests/test-areadlink.c: Likewise.
19487         * tests/test-areadlinkat.c: Likewise.
19488         * tests/test-filenamecat.c: Likewise.
19489         * tests/test-fseeko.c: Likewise.
19490         * tests/test-ftello.c: Likewise.
19491         * tests/test-getdate.c: Likewise.
19492         * tests/test-getgroups.c: Likewise.
19493         * tests/test-gethostname.c: Likewise.
19494         * tests/test-quotearg.c: Likewise.
19495         * tests/test-version-etc.c: Likewise.
19496         * tests/test-xalloc-die.c: Likewise.
19497         * tests/test-xfprintf-posix.c: Likewise.
19498         * tests/test-xprintf-posix.c: Likewise.
19499         * tests/test-xvasprintf.c: Likewise.
19500
19501         tests: avoid compiler warnings
19502         * tests/test-fcntl.c (main): Delete unused parameters.
19503         * tests/test-freopen-safer.c (main): Likewise.
19504         * tests/test-xalloc-die.c (main): Mark unused parameters.
19505         * tests/test-fseeko.c (main): Likewise.
19506         * tests/test-ftello.c (main): Likewise.
19507         * tests/test-nanosleep.c (main): Avoid declaration warning.
19508         * tests/test-sleep.c (main): Likewise.
19509         * tests/test-unsetenv.c (main): Silence warning about string
19510         literal.
19511         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19512
19513 2009-12-23  Bruno Haible  <bruno@clisp.org>
19514
19515         * tests/test-localename.c (test_locale_name): New function, extracted
19516         from main. Also test mixed situations.
19517         (test_locale_name_posix, test_locale_name_environ,
19518         test_locale_name_default): New functions.
19519         (main): Invoke them all.
19520         * modules/localename-tests (configure.ac): Test for newlocale.
19521
19522 2009-12-23  Bruno Haible  <bruno@clisp.org>
19523
19524         unistd: Ensure getcwd gets declared before being overridden.
19525         * lib/unistd.in.h: Conditionally include <io.h>.
19526
19527 2009-12-22  Bruno Haible  <bruno@clisp.org>
19528
19529         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19530         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19531         (gl_WCHAR_H): Invoke it.
19532         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19533         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19534         Reported by Karl Berry <karl@freefriends.org>.
19535
19536 2009-12-22  Eric Blake  <ebb9@byu.net>
19537
19538         math, unistd: avoid redundant includes
19539         * lib/math.in.h (isnan): No need to re-include <math.h>.
19540         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19541
19542         getsubopt: work around cygwin bug
19543         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19544         avoid conflicting with system getsubopt.
19545         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19546         bug.
19547
19548         getopt: synchronize from glibc
19549         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19550         parameter order.  Adjust all callers.
19551         (_getopt_internal_r, main): Adjust quoting in error messages.
19552         Drop considerations for outdated POSIX 1003.2 error message.
19553         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19554         callers.
19555         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19556
19557         test-getopt: test stderr behavior
19558         * modules/getopt-posix-tests (Depends-on): Add dup2.
19559         * tests/test-getopt.c (ASSERT): Avoid stderr.
19560         (main): Move stderr to a temporary file.
19561         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19562         Instead, add parameter to inform caller if output occurred.
19563         (test_getopt): Adjust all existing tests to expect silence, and
19564         add new tests of leading ":".
19565         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19566         glibc shortcomings with leading "-:" or "+:" in optstring.
19567         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19568         Likewise.
19569         * doc/posix-functions/getopt.texi (getopt): Likewise.
19570
19571         test-getopt: enhance test
19572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19573         supports optind=0.
19574         * tests/test-getopt.c (OPTIND_MIN): Move...
19575         * tests/test-getopt.h (OPTIND_MIN): ...here.
19576         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19577         Require that optind=0 works, since modern BSD supports it in
19578         addition to optreset, and since coreutils expects it.
19579         (test_getopt_long_only): New test.
19580         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19581         glibc shortcomings with 'W;', and enforcement of optind=0.
19582         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19583         Likewise.
19584
19585 2009-12-21  Bruno Haible  <bruno@clisp.org>
19586
19587         localename: Improvements for MacOS X and Cygwin.
19588         * lib/localename.h (gl_locale_name_environ): New declaration.
19589         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19590         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19591         (gl_locale_name_posix): Invoke it.
19592         (gl_locale_name_default): Add comments. Use Windows native API also on
19593         Cygwin.
19594
19595 2009-12-21  Bruno Haible  <bruno@clisp.org>
19596
19597         Update list of Win32 locale ids.
19598         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19599         (LANG_SAMI): Renamed from LANG_SAAMI.
19600         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19601         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19602         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19603         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19604         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19605         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19606         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19607         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19608         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19609         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19610         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19611         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19612         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19613         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19614         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19615         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19616         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19617         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19618         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19619         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19620         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19621         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19622         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19623         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19624         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19625         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19626         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19627         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19628         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19629         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19630         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19631         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19632         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19633         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19634         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19635         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19636         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19637         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19638         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19639         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19640         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19641         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19642         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19643         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19644         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19645         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19646         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19647         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19648         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19649         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19650         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19651         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19652         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19653         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19654         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19655         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19656         Add more languages and countries for Sami, Sorbian. Add more countries
19657         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19658         for Pashto. Change country for Syriac, Tswana.
19659
19660 2009-12-21  Eric Blake  <ebb9@byu.net>
19661
19662         test-utimens: avoid spurious failure
19663         * tests/test-chown.h (nap): Factor...
19664         * tests/nap.h: ...into new file.
19665         * tests/test-lchown.h (nap): Avoid duplication.
19666         * tests/test-utimens-common.h (nap): Use shared implementation,
19667         necessary on file systems with 1-second resolution.
19668         * modules/chown-tests (Files): Include new file.
19669         * modules/fdutimensat-tests (Files): Likewise.
19670         * modules/futimens-tests (Files): Likewise.
19671         * modules/lchown-tests (Files): Likewise.
19672         * modules/openat-tests (Files): Likewise.
19673         * modules/utimens-tests (Files): Likewise.
19674         * modules/utimensat-tests (Files): Likewise.
19675
19676 2009-12-19  Eric Blake  <ebb9@byu.net>
19677
19678         futimens, utimensat: work around Linux bug
19679         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19680         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19681         * lib/utimensat.c (rpl_utimensat): Work around it.
19682         * lib/futimens.c (rpl_futimens): Adjust comment.
19683
19684         utimens: work around Linux ctime bug
19685         * lib/utimens.c (detect_ctime_bug): New helper function.
19686         (update_timespec): Differentiate between workaround needed for
19687         this bug vs. what is needed for systems that lack utimensat.
19688         (fdutimens, lutimens): Work around bug.
19689
19690         utimens: check for ctime update
19691         * tests/test-utimens-common.h (check_ctime): Define.
19692         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19693         * tests/test-futimens.h (test_futimens): Likewise.
19694         * tests/test-lutimens.h (test_lutimens): Likewise.
19695         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19696         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19697
19698 2009-12-19  Bruno Haible  <bruno@clisp.org>
19699
19700         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19701         * tests/test-dprintf-posix2.sh: New file.
19702         * tests/test-dprintf-posix2.c: New file.
19703         * modules/dprintf-posix-tests (Files): Add them.
19704         (configure.ac): Check for getrlimit and setrlimit.
19705         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19706
19707 2009-12-19  Bruno Haible  <bruno@clisp.org>
19708
19709         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19710         * tests/test-fprintf-posix3.sh: New file.
19711         * tests/test-fprintf-posix3.c: New file.
19712         * modules/fprintf-posix-tests (Files): Add them.
19713         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19714
19715 2009-12-19  Eric Blake  <ebb9@byu.net>
19716
19717         dirfd: fix prototype
19718         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19719         * lib/dirfd.c (dirfd): Likewise.
19720
19721         canonicalize: reduce memory usage
19722         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19723         allocation to size.
19724         Reported by Solar Designer <solar@openwall.com>.
19725
19726 2009-12-19  Bruno Haible  <bruno@clisp.org>
19727
19728         New module attribute 'Applicability'.
19729         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19730         * gnulib-tool: New option --extract-applicability.
19731         (func_usage): Document it.
19732         (sed_extract_prog): Recognize it.
19733         (func_get_applicability): New function.
19734         (func_import): Generalize handling of 'link-warning' module.
19735         * modules/link-warning (Applicability): New section.
19736         * modules/arg-nonnull (Applicability): New section.
19737         Repoted by Simon Josefsson <simon@josefsson.org>.
19738
19739 2009-12-19  Bruno Haible  <bruno@clisp.org>
19740
19741         fflush: tweak
19742         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19743         * lib/fseeko.c (rpl_fseeko): Likewise.
19744
19745 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19746
19747         * lib/gl_list.h: Fix typo in comment.
19748
19749 2009-12-16  Eric Blake  <ebb9@byu.net>
19750
19751         fcntl: use to simplify other modules
19752         * modules/cloexec (Depends-on): Add fcntl.
19753         * modules/fchdir (Depends-on): Likewise.
19754         * modules/fd-safer-flag (Depends-on): Likewise.
19755         * modules/unistd-safer (Depends-on): Likewise.
19756         * modules/dup3 (configure.ac): Set module indicator.
19757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19758         missing.
19759         * lib/fchdir.c (_gl_register_dup): Fix comment.
19760         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19761         * lib/dup-safer.c (dup_safer): Likewise.
19762         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19763         * lib/dup3.c (dup3): Likewise.
19764         * tests/test-fchdir.c (main): Enhance test.
19765         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19766
19767         fcntl: port portions of fcntl to mingw
19768         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19769         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19770         replacement for mingw.
19771         * modules/fcntl (Description): Update.
19772         (Depends-on): Add dup2.
19773         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19774         * modules/fcntl-h (Makefile.am): Substitute it.
19775         * lib/fcntl.in.h (fcntl): Update declaration.
19776         (F_DUPFD, F_GETFD): New macros, when needed.
19777         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19778         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19779         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19780         we now guarantee.
19781
19782         fcntl: work around cygwin bug in F_DUPFD
19783         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19784         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19785         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19786         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19787         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19788
19789         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19790         * modules/fcntl (Files): List new files.
19791         (configure.ac): Run a test.
19792         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19793         * lib/fcntl.c (rpl_fcntl): Likewise.
19794         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19795         (gl_FCNTL_H): Always replace fcntl.h.
19796         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19797         * lib/fcntl.in.h (fcntl): Declare replacement.
19798         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19799         needed, plus a witness.
19800         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19801         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19802         * tests/test-fcntl.c: New file.
19803         * modules/fcntl-tests: Likewise.
19804
19805         binary-io: avoid potential compilation warning
19806         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19807         directives.
19808
19809         fflush: avoid compilation error on NetBSD
19810         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19811         between off_t and fpos_t, since the latter is sometimes a struct.
19812         * lib/fseeko.c (rpl_fseeko): Likewise.
19813         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19814
19815 2009-12-15  Eric Blake  <ebb9@byu.net>
19816
19817         fcntl-h, stdio, sys_ioctl: fix declarations
19818         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19819         function must not take arguments.
19820         * lib/sys_ioctl.in.h (ioctl): Likewise.
19821         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19822         (open): Add a link warning.
19823
19824 2009-12-15  Jim Meyering  <meyering@redhat.com>
19825
19826         areadlink, areadlink-with-size: relax license to LGPLv2+
19827         * modules/areadlink (License): Relax to LGPLv2+.
19828         * modules/areadlink-with-size (License): Likewise.
19829
19830 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19831             Bruno Haible  <bruno@clisp.org>
19832
19833         *printf: Fix memory leak.
19834         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19835         * lib/vfprintf.c (vfprintf): Likewise.
19836         * lib/dprintf.c (dprintf): Likewise.
19837         * lib/vdprintf.c (vdprintf): Likewise.
19838
19839 2009-12-14  Eric Blake  <ebb9@byu.net>
19840
19841         accept4: adjust module dependencies
19842         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19843
19844         utimens: one more try at avoiding compiler warning
19845         * lib/utimens.c (lutimens): Lower scope of result.
19846
19847 2009-12-13  Bruno Haible  <bruno@clisp.org>
19848
19849         Move the malloc checking from module 'list' to new module 'xlist'.
19850         * modules/xlist: New file.
19851         * lib/gl_xlist.h: New file.
19852         * lib/gl_xlist.c: New file.
19853         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19854         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19855         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19856         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19857         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19858         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19859         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19860         gl_sortedlist_nx_add): New declarations.
19861         (struct gl_list_implementation): Rename and change methods accordingly.
19862         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19863         (gl_list_nx_create): Renamed from gl_list_create.
19864         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19865         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19866         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19867         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19868         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19869         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19870         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19871         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19872         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19873         gl_list_create_empty.
19874         (gl_list_nx_create): Renamed from gl_list_create.
19875         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19876         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19877         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19878         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19879         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19880         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19881         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19882         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19883         * lib/gl_array_list.c: Don't include xalloc.h.
19884         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19885         NULL upon out-of-memory.
19886         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19887         out-of-memory.
19888         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19889         Change return type to 'int'.
19890         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19891         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19892         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19893         upon out-of-memory.
19894         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19895         upon out-of-memory.
19896         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19897         upon out-of-memory.
19898         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19899         upon out-of-memory.
19900         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19901         out-of-memory.
19902         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19903         Update.
19904         (gl_array_list_implementation): Update.
19905         * lib/gl_carray_list.c: Don't include xalloc.h.
19906         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19907         Return NULL upon out-of-memory.
19908         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19909         out-of-memory.
19910         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19911         Change return type to 'int'.
19912         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19913         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19914         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19915         upon out-of-memory.
19916         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19917         upon out-of-memory.
19918         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19919         out-of-memory.
19920         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19921         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19922         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19923         Update.
19924         (gl_carray_list_implementation): Update.
19925         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19926         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19927         gl_linked_create_empty. Return NULL upon out-of-memory.
19928         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19929         out-of-memory.
19930         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19931         Change return type to 'int'. Return -1 upon out-of-memory.
19932         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19933         out-of-memory.
19934         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19935         upon out-of-memory.
19936         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19937         upon out-of-memory.
19938         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19939         NULL upon out-of-memory.
19940         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19941         upon out-of-memory.
19942         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19943         out-of-memory.
19944         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19945         Update.
19946         * lib/gl_linked_list.c: Don't include xalloc.h.
19947         (gl_linked_list_implementation): Update.
19948         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19949         (add_to_bucket): Change return type to 'int'.
19950         (gl_linkedhash_list_implementation): Update.
19951         * lib/gl_anytree_list1.h (free_subtree): New function.
19952         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19953         gl_tree_create_empty. Return NULL upon out-of-memory.
19954         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19955         Change return type to 'int'. Return -1 upon out-of-memory.
19956         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19957         out-of-memory.
19958         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19959         (gl_tree_remove_node): New function, moved here from
19960         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19961         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19962         Update.
19963         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19964         malloc, not xmalloc. Return NULL upon out-of-memory.
19965         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19966         out-of-memory.
19967         (gl_tree_remove_node_from_tree): New function, extracted from
19968         gl_tree_remove_node.
19969         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19970         upon out-of-memory.
19971         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19972         out-of-memory.
19973         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19974         upon out-of-memory.
19975         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19976         upon out-of-memory.
19977         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19978         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19979         not xmalloc. Return NULL upon out-of-memory.
19980         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19981         out-of-memory.
19982         (gl_tree_remove_node_from_tree): New function, extracted from
19983         gl_tree_remove_node.
19984         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19985         upon out-of-memory.
19986         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19987         out-of-memory.
19988         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19989         upon out-of-memory.
19990         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19991         upon out-of-memory.
19992         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19993         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19994         gl_anytree_list1.h before gl_anyavltree_list2.h.
19995         (gl_avltree_list_implementation): Update.
19996         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19997         gl_anytree_list1.h before gl_anyavltree_list2.h.
19998         (gl_rbtree_list_implementation): Update.
19999         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20000         Change return type to 'int'. Return -1 upon out-of-memory. Use
20001         __builtin_expect.
20002         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20003         (gl_avltreehash_list_implementation): Update.
20004         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20005         (gl_rbtreehash_list_implementation): Update.
20006         * modules/array-list (Depends-on): Remove xalloc.
20007         * modules/carray-list (Depends-on): Likewise.
20008         * modules/linked-list (Depends-on): Likewise.
20009         * modules/linkedhash-list (Depends-on): Likewise.
20010         * modules/avltree-list (Depends-on): Likewise.
20011         * modules/rbtree-list (Depends-on): Likewise.
20012         * modules/avltreehash-list (Depends-on): Likewise.
20013         * modules/rbtreehash-list (Depends-on): Likewise.
20014
20015         * modules/xsublist: New file.
20016         * lib/gl_xsublist.h: New file.
20017         * lib/gl_xsublist.c: New file.
20018         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20019         (gl_sublist_nx_create): New declaration.
20020         * lib/gl_sublist.c: Don't include xalloc.h.
20021         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20022         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20023         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20024         Change return type to 'int'. Return -1 upon out-of-memory.
20025         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20026         upon out-of-memory.
20027         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20028         NULL upon out-of-memory.
20029         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20030         upon out-of-memory.
20031         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20032         NULL upon out-of-memory.
20033         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20034         NULL upon out-of-memory.
20035         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20036         upon out-of-memory.
20037         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20038         (gl_sublist_list_implementation): Update.
20039         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20040         upon out-of-memory.
20041         * modules/sublist (Depends-on): Remove xalloc.
20042
20043         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20044         * tests/test-carray_list.c: Likewise.
20045         * tests/test-linked_list.c: Likewise.
20046         * tests/test-linkedhash_list.c: Likewise.
20047         * tests/test-avltree_list.c: Likewise.
20048         * tests/test-rbtree_list.c: Likewise.
20049         * tests/test-avltreehash_list.c: Likewise.
20050         * tests/test-rbtreehash_list.c: Likewise.
20051         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20052         * modules/carray-list-tests (Makefile.am): Likewise.
20053         * modules/linked-list-tests (Makefile.am): Likewise.
20054         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20055         * modules/avltree-list-tests (Makefile.am): Likewise.
20056         * modules/rbtree-list-tests (Makefile.am): Likewise.
20057         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20058         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20059
20060         * NEWS: Mention the changes.
20061
20062         * lib/clean-temp.c: Include gl_xlist.h.
20063         * modules/clean-temp (Depends-on): Add xlist.
20064
20065         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20066         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20067
20068         * tests/test-array_oset.c: Include gl_xlist.h.
20069         * modules/array-oset-tests (Depends-on): Add xlist.
20070
20071         Reported by José E. Marchesi <jemarch@gnu.org>.
20072
20073 2009-12-13  Bruno Haible  <bruno@clisp.org>
20074
20075         Move the malloc checking from module 'oset' to new module 'xoset'.
20076         * modules/xoset: New file.
20077         * lib/gl_xoset.h: New file.
20078         * lib/gl_xoset.c: New file.
20079         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20080         declarations.
20081         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20082         (struct gl_oset_implementation): Rename and change methods accordingly.
20083         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20084         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20085         'int'. Mark as __warn_unused_result__.
20086         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20087         gl_oset_create_empty.
20088         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20089         'int'.
20090         * lib/gl_array_oset.c: Don't include xalloc.h.
20091         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20092         malloc, not xmalloc.
20093         (grow): Change return type to 'int'. Don't call xalloc_die.
20094         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20095         to 'int'.
20096         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20097         'int'.
20098         (gl_array_oset_implementation): Update.
20099         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20100         gl_tree_create_empty.
20101         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20102         'int'.
20103         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20104         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20105         xmalloc.
20106         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20107         not xmalloc.
20108         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20109         xmalloc.
20110         (gl_avltree_oset_implementation): Update.
20111         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20112         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20113         xmalloc.
20114         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20115         not xmalloc.
20116         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20117         xmalloc.
20118         (gl_rbtree_oset_implementation): Update.
20119         * modules/array-oset (Depends-on): Remove xalloc.
20120         * modules/avltree-oset (Depends-on): Likewise.
20121         * modules/rbtree-oset (Depends-on): Likewise.
20122         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20123         * tests/test-avltree_oset.c: Likewise.
20124         * tests/test-rbtree_oset.c: Likewise.
20125         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20126         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20127         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20128         * NEWS: Mention the change.
20129
20130 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20131
20132         maint.mk: allow a project to override release-prep commands
20133         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20134         commands into a new rule.
20135         (release-prep): New rule.
20136         (release-prep-hook): New overridable variable.
20137
20138 2009-12-13  Bruno Haible  <bruno@clisp.org>
20139
20140         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20141
20142 2009-12-13  Jim Meyering  <meyering@redhat.com>
20143
20144         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20145         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20146
20147 2009-12-12  Bruno Haible  <bruno@clisp.org>
20148
20149         duplocale: Tweak.
20150         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20151
20152 2009-12-12  Karl Berry  <karl@gnu.org>
20153
20154         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20155
20156 2009-12-12  Bruno Haible  <bruno@clisp.org>
20157
20158         * m4/po.m4: Undo incorrect untabification.
20159
20160 2009-12-12  Bruno Haible  <bruno@clisp.org>
20161
20162         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20163         * modules/c-strtod (Depends-on): Add locale.
20164         * modules/c-strtold (Depends-on): Likewise.
20165
20166 2009-12-12  Bruno Haible  <bruno@clisp.org>
20167
20168         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20169
20170 2009-12-11  Eric Blake  <ebb9@byu.net>
20171
20172         setenv: relax requirement in light of POSIX ruling
20173         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20174         not NULL.
20175         * tests/test-setenv.c (main): Relax test.
20176         * tests/test-unsetenv.c (main): Likewise.
20177         * doc/posix-functions/setenv.texi (setenv): Document this.
20178         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20179
20180 2009-12-11  Bruno Haible  <bruno@clisp.org>
20181
20182         New module 'fd-safer-flag'.
20183         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20184         * lib/dup-safer.c (dup_safer_flag): Remove function.
20185         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20186         * lib/fd-safer.c (fd_safer_flag): Remove function.
20187         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20188         * modules/cloexec (configure.ac): Drop indicator macro.
20189         * modules/fd-safer-flag: New file.
20190         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20191         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20192         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20193
20194 2009-12-11  Bruno Haible  <bruno@clisp.org>
20195
20196         Tests for module 'nl_langinfo'.
20197         * modules/nl_langinfo-tests: New file.
20198         * tests/test-nl_langinfo.sh: New file.
20199         * tests/test-nl_langinfo.c: New file.
20200
20201         New module 'nl_langinfo'.
20202         * lib/nl_langinfo.c: New file.
20203         * m4/nl_langinfo.m4: New file.
20204         * modules/nl_langinfo: New file.
20205         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20206
20207 2009-12-11  Bruno Haible  <bruno@clisp.org>
20208
20209         Tests for module 'langinfo'.
20210         * modules/langinfo-tests: New file.
20211         * tests/test-langinfo.c: New file.
20212
20213         New module 'langinfo'.
20214         * lib/langinfo.in.h: New file.
20215         * m4/langinfo_h.m4: New file.
20216         * modules/langinfo: New file.
20217         * doc/posix-headers/langinfo.texi: Mention the new module.
20218
20219 2009-12-11  Bruno Haible  <bruno@clisp.org>
20220
20221         * lib/config.charset: Untabify.
20222
20223 2009-12-11  Bruno Haible  <bruno@clisp.org>
20224
20225         * modules/unistd-safer (configure.ac): Drop indicator macro.
20226
20227 2009-12-11  Bruno Haible  <bruno@clisp.org>
20228
20229         Move pipe2-safer code to its own file.
20230         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20231         * lib/pipe-safer.c (pipe2_safer): Remove function.
20232         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20233         (Makefile.am): Add it to lib_SOURCES.
20234
20235 2009-12-10  Bruno Haible  <bruno@clisp.org>
20236
20237         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20238
20239 2009-12-10  Bruno Haible  <bruno@clisp.org>
20240
20241         Declare which arguments expect non-NULL values, for GCC and clang.
20242         * build-aux/arg-nonnull.h: New file.
20243         * modules/arg-nonnull: New file.
20244         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20245         (inet_ntop, inet_pton): Use it.
20246         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20247         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20248         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20249         (open, openat): Use it.
20250         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20251         (fnmatch): Use it.
20252         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20253         (getopt, getopt_long, getopt_long_only): Use it.
20254         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20255         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20256         Use it.
20257         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20258         (iconv_open): Use it.
20259         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20260         (strtoimax, strtoumax): Use it.
20261         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20262         (duplocale): Use it.
20263         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20264         (frexp, frexpl): Use it.
20265         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20266         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20267         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20268         (tsearch, tfind, tdelete, twalk): Use it.
20269         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20270         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20271         sigpending): Use it.
20272         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20273         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20274         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20275         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20276         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20277         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20278         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20279         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20280         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20281         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20282         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20283         Use it.
20284         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20285         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20286         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20287         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20288         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20289         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20290         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20291         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20292         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20293         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20294         strtoull, unsetenv): Use it.
20295         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20296         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20297         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20298         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20299         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20300         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20301         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20302         (strcasecmp, strncasecmp): Use it.
20303         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20304         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20305         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20306         rpl_setsockopt): Use it.
20307         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20308         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20309         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20310         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20311         (gettimeofday): Use it.
20312         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20313         (times): Use it.
20314         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20315         (uname): Use it.
20316         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20317         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20318         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20319         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20320         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20321         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20322         unlinkat, write): Use it.
20323         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20324         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20325         * lib/argv-iter.h: Include arg-nonnull.h.
20326         (_ATTRIBUTE_NONNULL_): Remove macro.
20327         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20328         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20329         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20330         optimization.
20331         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20332         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20333         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20334         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20335         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20336         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20337         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20338         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20339         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20340         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20341         * modules/dirent (Depends-on): Add arg-nonnull.
20342         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20343         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20344         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20345         * modules/fnmatch (Depends-on): Add arg-nonnull.
20346         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20347         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20348         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20349         * modules/glob (Depends-on): Add arg-nonnull.
20350         (Makefile.am): Insert arg-nonnull.h into glob.h.
20351         * modules/iconv_open (Depends-on): Add arg-nonnull.
20352         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20353         * modules/inttypes (Depends-on): Add arg-nonnull.
20354         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20355         * modules/locale (Depends-on): Add arg-nonnull.
20356         (Makefile.am): Insert arg-nonnull.h into locale.h.
20357         * modules/math (Depends-on): Add arg-nonnull.
20358         (Makefile.am): Insert arg-nonnull.h into math.h.
20359         * modules/netdb (Depends-on): Add arg-nonnull.
20360         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20361         * modules/search (Depends-on): Add arg-nonnull.
20362         (Makefile.am): Insert arg-nonnull.h into search.h.
20363         * modules/signal (Depends-on): Add arg-nonnull.
20364         (Makefile.am): Insert arg-nonnull.h into signal.h.
20365         * modules/spawn (Depends-on): Add arg-nonnull.
20366         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20367         * modules/stdio (Depends-on): Add arg-nonnull.
20368         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20369         * modules/stdlib (Depends-on): Add arg-nonnull.
20370         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20371         * modules/string (Depends-on): Add arg-nonnull.
20372         (Makefile.am): Insert arg-nonnull.h into string.h.
20373         * modules/strings (Depends-on): Add arg-nonnull.
20374         (Makefile.am): Insert arg-nonnull.h into strings.h.
20375         * modules/sys_socket (Depends-on): Add arg-nonnull.
20376         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20377         * modules/sys_stat (Depends-on): Add arg-nonnull.
20378         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20379         * modules/sys_time (Depends-on): Add arg-nonnull.
20380         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20381         * modules/sys_times (Depends-on): Add arg-nonnull.
20382         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20383         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20384         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20385         * modules/time (Depends-on): Add arg-nonnull.
20386         (Makefile.am): Insert arg-nonnull.h into time.h.
20387         * modules/unistd (Depends-on): Add arg-nonnull.
20388         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20389         * modules/wchar (Depends-on): Add arg-nonnull.
20390         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20391         * modules/argv-iter (Depends-on): Add arg-nonnull.
20392         * tests/test-canonicalize.c (null_ptr): New function.
20393         (main): Use it.
20394         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20395         (main): Use it.
20396         * tests/test-memmem.c (null_ptr): New function.
20397         (main): Use it.
20398         Reported by Jim Meyering.
20399
20400 2009-12-10  Bruno Haible  <bruno@clisp.org>
20401
20402         Use spaces for indentation, not tabs.
20403         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20404         * m4/*.m4: Untabify.
20405         * build-aux/*.h: Untabify.
20406         * tests/**/*.[hc]: Untabify.
20407         * README: New section "Indent with spaces, not TABs", based on
20408         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20409         * NEWS: Mention the change.
20410
20411 2009-12-10  Bruno Haible  <bruno@clisp.org>
20412
20413         pty test: Fix link error.
20414         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20415         test_pty_LDADD.
20416
20417 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20418
20419         * modules/pty: New file.
20420         * modules/pty-tests: New file.
20421         * m4/pty.m4: New file.
20422         * tests/test-pty.c: New file.
20423         * doc/glibc-headers/pty.texi: Modified.
20424         * doc/glibc-functions/forkpty.texi: Modified.
20425         * doc/glibc-functions/openpty.texi: Modified.
20426
20427 2009-12-10  Bruno Haible  <bruno@clisp.org>
20428
20429         Avoid syntax error in C++ mode.
20430         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20431
20432 2009-12-10  Bruno Haible  <bruno@clisp.org>
20433
20434         Use sed with option -e.
20435         * gnulib-tool (func_version, func_emit_copyright_notice,
20436         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20437         option -e to sed.
20438         * modules/link-warning (Makefile.am): Likewise.
20439
20440 2009-12-10  Jim Meyering  <meyering@redhat.com>
20441
20442         mgetgroups: do not write bytes beyond end of malloc'd buffer
20443         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20444         username, we call getgroups with a one-element-shorter buffer,
20445         but still told it the length was original, max_n_groups.
20446
20447 2009-12-09  Eric Blake  <ebb9@byu.net>
20448
20449         cloexec: relax license
20450         * modules/cloexec (Maintainer): Add myself.
20451         (License): Use LGPL, not GPL.
20452
20453         link-warning: optimize generation
20454         * modules/link-warning (Makefile.am): Reduce process usage.
20455
20456 2009-12-09  Bruno Haible  <bruno@clisp.org>
20457
20458         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20459         workaround was added on 2009-11-17.
20460
20461 2009-12-09  Jim Meyering  <meyering@redhat.com>
20462             Bruno Haible  <bruno@clisp.org>
20463
20464         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20465         * modules/link-warning (Makefile.am): Make the comment-removing sed
20466         command more robust in the face of bootstrap-prepended comment lines.
20467
20468 2009-12-09  Bruno Haible  <bruno@clisp.org>
20469
20470         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20471         most one group.
20472
20473 2009-12-09  Simon Josefsson <simon@josefsson.org>
20474             Bruno Haible  <bruno@clisp.org>
20475
20476         * build-aux/link-warning.h: Add copyright notice.
20477         * modules/link-warning (Makefile.am): Generate link-warning.h from
20478         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20479         * NEWS: Mention change in link-warning module.
20480         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20481         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20482         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20483         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20484         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20485         * modules/math (Makefile.am): Add dependency to math.h.
20486         * modules/search (Makefile.am): Add dependency to search.h.
20487         * modules/signal (Makefile.am): Add dependency to signal.h.
20488         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20489         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20490         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20491         * modules/string (Makefile.am): Add dependency to string.h.
20492         * modules/strings (Makefile.am): Add dependency to strings.h.
20493         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20494         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20495         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20496         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20497         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20498         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20499         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20500         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20501         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20502
20503 2009-12-09  Bruno Haible  <bruno@clisp.org>
20504
20505         fchdir: Optimize away rpl_fstat when possible.
20506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20507         REPLACE_OPEN_DIRECTORY.
20508         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20509
20510 2009-12-09  Bruno Haible  <bruno@clisp.org>
20511
20512         * lib/fchdir.c: Update comment.
20513
20514 2009-12-09  Bruno Haible  <bruno@clisp.org>
20515
20516         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20517
20518 2009-12-08  Eric Blake  <ebb9@byu.net>
20519
20520         fchdir: avoid memory leak on re-registration.
20521         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20522
20523 2009-12-08  Jim Meyering  <meyering@redhat.com>
20524
20525         init.sh: avoid Solaris 10 /bin/sh portability problem
20526         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20527         sourced script:
20528           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20529           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20530           bar
20531         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20532         and two tests used that idiom.
20533         * tests/init.sh: Update suggested usage comments.
20534         (path_prepend_): New function, to be used in place
20535         of the --src-path=DIR option.
20536         (setup_): Move PATH-prepending code into path_prepend_.
20537         * tests/test-pread.sh: Adapt to new usage.
20538         * tests/test-xalloc-die.sh: Likewise.
20539
20540 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20541
20542         * doc/gnulib.texi (Glibc pty.h): Add.
20543         * doc/glibc-functions/forkpty.texi: Add.
20544         * doc/glibc-functions/openpty.texi: Add.
20545         Suggested by Bruno Haible.
20546
20547 2009-12-08  Eric Blake  <ebb9@byu.net>
20548
20549         fchdir: fix logic bugs
20550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20551         * tests/test-fchdir.c (main): Enhance test.
20552         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20553         is in use.
20554
20555         dup2: fix logic bugs
20556         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20557         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20558         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20559         exists.
20560         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20561
20562 2009-12-07  Eric Blake  <ebb9@byu.net>
20563
20564         unlink: fix m4 detection
20565         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20566
20567         unistd-safer: add unit test
20568         * modules/unistd-safer-tests: New file.
20569         * tests/test-dup-safer.c: Likewise.
20570         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20571         * tests/test-dup2.c (setmode): Likewise.
20572         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20573
20574         cloexec: preserve text vs. binary across dup_cloexec
20575         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20576         mode.
20577         * modules/dup2-tests (Depends-on): Add binary-io.
20578         * modules/cloexec-tests (Depends-on): Likewise.
20579         * tests/test-dup2.c (setmode, is_mode): New helpers.
20580         (main): Add tests that translation mode is preserved.
20581         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20582         Reported by Bruno Haible.
20583
20584         mgetgroups: reduce duplicate listings
20585         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20586         resulting array.
20587         * tests/test-chown.h (test_chown): Simplify client.
20588         * tests/test-lchown.h (test_lchown): Likewise.
20589
20590 2009-12-06  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20593         value.
20594
20595 2009-12-06  Bruno Haible  <bruno@clisp.org>
20596
20597         * lib/progname.c: Include stdio.h, stdlib.h.
20598         (set_program_name): Reject a NULL argument.
20599
20600 2009-12-05  Eric Blake  <ebb9@byu.net>
20601
20602         pipe2-safer: new module
20603         * modules/pipe2-safer: New file.
20604         * lib/unistd-safer.h (pipe2_safer): New prototype.
20605         * lib/unistd--.h (pipe2): New wrapper.
20606         * lib/pipe-safer.c (pipe2_safer): New function.
20607         * modules/pipe (Depends-on): Add pipe2-safer.
20608         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20609
20610         stdlib-safer: preserve cloexec flag for mkostemp[s]
20611         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20612         fd_safer_flag.
20613
20614         unistd-safer: allow preservation of cloexec status via flag
20615         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20616         prototypes.
20617         * lib/dup-safer.c (dup_safer_flag): New function.
20618         * lib/fd-safer.c (fd_safer_flag): Likewise.
20619         * modules/cloexec (configure.ac): Set witness.
20620
20621         test-dup2: enhance test
20622         * modules/dup2-tests (Depends-on): Add cloexec.
20623         * tests/test-dup2.c (main): Enhance test.
20624
20625         cloexec: add dup_cloexec
20626         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20627         header and comments.
20628         * lib/cloexec.c (set_cloexec_flag): Add comments.
20629         (dup_cloexec): New function, with mingw implementation borrowed
20630         from...
20631         * lib/w32spawn.h (dup_noinherit): ...here.
20632         * modules/execute (Depends-on): Add cloexec.
20633         * modules/pipe (Depends-on): Likewise.
20634         * modules/cloexec (Depends-on): Add dup2.
20635         * modules/cloexec-tests (Files): New file.
20636         * tests/test-cloexec.c: Likewise.
20637
20638         test-xalloc-die: fix test for mingw
20639         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20640         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20641         directory and .exe suffix off argv[0] output.
20642
20643         test-fseeko: fix test for mingw
20644         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20645         than undefining fseek, so test will pass on mingw.
20646
20647 2009-12-05  Bruno Haible  <bruno@clisp.org>
20648
20649         * lib/progname.h (set_program_name): Clarify specification.
20650         * lib/progname.c (set_program_name): Likewise.
20651         Reported by Jim Meyering.
20652
20653 2009-12-05  Jim Meyering  <meyering@redhat.com>
20654
20655         maint.mk: backslash-escape parens in default regexp
20656         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20657         backslash-escape the literal parentheses.
20658
20659         maint.mk: news-date-check: use grep -E
20660         * top/maint.mk (today): Define a Make variable, not a...
20661         (news-date-check): ...shell variable.
20662         (news-date-regexp): Use the Make variable.
20663         Use grep's -E option.  Change the failing diagnostic to mention
20664         the variable, $(news-date-regexp).
20665
20666 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20667
20668         maintainer-makefile: allow customization of NEWS entry format
20669         * top/maint.mk (news-date-regexp): New overridable variable.
20670         (news-date-check): Use it.
20671
20672 2009-12-04  Eric Blake  <ebb9@byu.net>
20673
20674         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20675         * lib/mgetgroups.h (xgetgroups): New prototype.
20676         * lib/mgetgroups.c (xgetgroups): New wrapper.
20677         (mgetgroups): Handle ENOSYS.
20678         * modules/mgetgroups (Depends-on): Add realloc.
20679         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20680
20681         mgetgroups: avoid argument promotion issues with -1
20682         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20683         for invalid gid_t.
20684         * tests/test-chown.h (getegid, test_chown): Likewise.
20685         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20686
20687 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20688
20689         exclude: Fix header file problems.
20690         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20691
20692 2009-12-01  Jim Meyering  <meyering@redhat.com>
20693
20694         fts: fts_open: do not let an empty string cause immediate failure
20695         This is required in support of GNU rm, for which the command
20696         "rm A '' B" must process and remove both A and B, in spite of
20697         the empty string argument.
20698         * lib/fts.c (fts_open): Do not let the presence of an empty string
20699         cause fts_open to fail immediately.  Most fts-using tools must be
20700         able to process all arguments, in order, and can be expected to
20701         diagnose such arguments themselves.
20702
20703 2009-11-30  Eric Blake  <ebb9@byu.net>
20704
20705         utimens: fix compilation error
20706         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20707         Declare variable at right scope.
20708
20709 2009-11-29  Jim Meyering  <meyering@redhat.com>
20710
20711         bootstrap: handle perl-5.11's changed --version output
20712         * build-aux/bootstrap (get_version): Handle perl separately,
20713         since perl-5.11's --version output is different.
20714
20715 2009-11-28  Jim Meyering  <meyering@redhat.com>
20716
20717         userspec: depend on the inttostr module, too
20718         * modules/userspec (Depends-on): Add inttostr.
20719
20720         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20721         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20722         number of MAXUID when it evaluates to (uid_t) -1.
20723         Likewise for group ID.  Reported by Matt McCutchen in
20724         <http://savannah.gnu.org/bugs/?28113>
20725
20726         userspec: reformat to use spaces, not TABs
20727         * lib/userspec.c: Expand TABs to spaces.
20728         Add Emacs' "indent-tabs-mode: nil" hint.
20729
20730 2009-11-27  Eric Blake  <ebb9@byu.net>
20731
20732         getopt-gnu: flush out another BSD bug
20733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20734         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20735         flush out BSD bug.
20736         * tests/test-getopt.h (test_getopt): End lists with NULL.
20737         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20738         (test_getopt_long_posix): Enhance test.
20739         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20740         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20741         getopt-gnu.
20742         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20743         Likewise.
20744
20745 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20746
20747         * modules/idpriv-droptemp-tests (Notice): Fix text.
20748
20749 2009-11-27  Jim Meyering  <meyering@redhat.com>
20750
20751         test-xalloc-die: avoid spurious failure due to libtool argv difference
20752         In a libtool-enabled project, this test would fail due to a difference
20753         in the emitted program name, e.g.,
20754         -test-xalloc-die: memory exhausted
20755         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20756         Use program to avoid that.
20757         * modules/xalloc-die-tests (Depends-on): Add progname.
20758         * tests/test-xalloc-die.c: Include progname.h".
20759         (program_name): Remove decl.
20760         (main): Call set_program_name.
20761         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20762
20763 2009-11-26  Richard Jones  <rjones@redhat.com>
20764
20765         w32sock: leave win32 error in place.
20766         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20767
20768 2009-11-26  Eric Blake  <ebb9@byu.net>
20769
20770         init.sh: suggest to use skip_ and fail_ functions in comments
20771         * tests/init.sh: Add a sentence.
20772
20773 2009-11-25  Bruno Haible  <bruno@clisp.org>
20774
20775         init.sh: add documentation in comments
20776         * tests/init.sh: Add some developer and user documentation.
20777
20778 2009-11-26  Jim Meyering  <meyering@redhat.com>
20779
20780         init.sh: accommodate even those who specify bogus srcdir manually
20781         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20782         configure-time tests to be sanitized, so that there is no need to
20783         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20784         (with no double quotes) suffices.  However, since tests may be
20785         invoked manually, and since you may explicitly set srcdir to the
20786         name of a directory containing spaces, do quote its uses here.
20787         * tests/test-pread.sh: Likewise.
20788         Suggested by Bruno Haible.
20789
20790         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20791         * tests/test-pread.sh: Write no data into the pipe, because
20792         test-pread actually reads none.  This avoids a diagnostic,
20793         "bash: echo: write error: Broken pipe", that arises in the unusual
20794         event something is ignoring SIGPIPE, and might be interpreted
20795         as some sort of failure.  Reported by Bruno Haible.
20796
20797 2009-11-25  Jim Meyering  <meyering@redhat.com>
20798
20799         test-pread: cover failure with ESPIPE and EINVAL
20800         * tests/test-pread.c (main): Test for failure, too.
20801         * tests/test-pread.sh: Invoke with stdin on a pipe.
20802         Suggested by Eric Blake.
20803
20804         pread: improvement and fix
20805         * modules/pread (Depends-on): Depend on lseek, for portability to
20806         e.g., mingw.  Suggested by Eric Blake.
20807         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20808
20809         unistd.in.h: correct declaration of pread
20810         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20811         Reported by Richard W.M. Jones.
20812
20813         test-pread.sh: distribute the test script
20814         * modules/pread-tests (Files): Include test-pread.sh.
20815
20816         test-pread.sh: clean up
20817         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20818         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20819         That is unnecessary, since it's always ".".
20820         Suggestion from Eric Blake.
20821
20822         test-pread.sh: make executable
20823         * tests/test-pread.sh: Set executable bit.
20824         Reported by Eric Blake.
20825
20826         correct typo in test-pread.sh
20827         * tests/test-pread.sh: Add #! line.
20828
20829         test pread
20830         * tests/test-pread.c: New file.
20831         * tests/test-pread.sh: Likewise.
20832         * modules/pread-tests: Likewise.
20833
20834         pread: new module
20835         * modules/pread: New file.
20836         * lib/unistd.in.h (pread): Define/declare.
20837         * lib/pread.c (pread): New file.
20838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20839         * modules/unistd (Makefile.am): Substitute witnesses.
20840         * doc/posix-functions/pread.texi (pread): Update.
20841         * MODULES.html.sh: Add pread.
20842
20843 2009-11-25  Jim Meyering  <meyering@redhat.com>
20844
20845         tests/init.sh: new file to be used via most *.sh tests
20846         * tests/init.sh: New file.
20847
20848 2009-11-25  Eric Blake  <ebb9@byu.net>
20849
20850         utimens: work around older Linux failure with symlinks
20851         * lib/utimens.c (lutimensat_works_really): New variable.
20852         (fdutimens, lutimens): Use it to manage kernels that support
20853         nanosecond times on files, but not on symlinks.
20854         Reported by OndÅ™ej Vašík.
20855
20856         utimes: fix configure grammar
20857         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20858
20859 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20860
20861         regex: Fix fastmap for multibyte character ranges.
20862         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20863         characters when a multibyte character range is included.
20864
20865 2009-11-22  Andy Wingo  <wingo@pobox.com>
20866
20867         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20868         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20869
20870 2009-11-24  Bruno Haible  <bruno@clisp.org>
20871
20872         doc: Most *_l functions exist in MacOS X 10.5.
20873         * doc/posix-functions/duplocale.texi: Update platforms list.
20874         * doc/posix-functions/freelocale.texi: Likewise.
20875         * doc/posix-functions/newlocale.texi: Likewise.
20876         * doc/posix-functions/uselocale.texi: Likewise.
20877         * doc/posix-functions/isalnum_l.texi: Likewise.
20878         * doc/posix-functions/isalpha_l.texi: Likewise.
20879         * doc/posix-functions/isblank_l.texi: Likewise.
20880         * doc/posix-functions/iscntrl_l.texi: Likewise.
20881         * doc/posix-functions/isdigit_l.texi: Likewise.
20882         * doc/posix-functions/isgraph_l.texi: Likewise.
20883         * doc/posix-functions/islower_l.texi: Likewise.
20884         * doc/posix-functions/isprint_l.texi: Likewise.
20885         * doc/posix-functions/ispunct_l.texi: Likewise.
20886         * doc/posix-functions/isspace_l.texi: Likewise.
20887         * doc/posix-functions/isupper_l.texi: Likewise.
20888         * doc/posix-functions/iswalnum_l.texi: Likewise.
20889         * doc/posix-functions/iswalpha_l.texi: Likewise.
20890         * doc/posix-functions/iswblank_l.texi: Likewise.
20891         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20892         * doc/posix-functions/iswctype_l.texi: Likewise.
20893         * doc/posix-functions/iswdigit_l.texi: Likewise.
20894         * doc/posix-functions/iswgraph_l.texi: Likewise.
20895         * doc/posix-functions/iswlower_l.texi: Likewise.
20896         * doc/posix-functions/iswprint_l.texi: Likewise.
20897         * doc/posix-functions/iswpunct_l.texi: Likewise.
20898         * doc/posix-functions/iswspace_l.texi: Likewise.
20899         * doc/posix-functions/iswupper_l.texi: Likewise.
20900         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20901         * doc/posix-functions/isxdigit_l.texi: Likewise.
20902         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20903         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20904         * doc/posix-functions/strcoll_l.texi: Likewise.
20905         * doc/posix-functions/strfmon_l.texi: Likewise.
20906         * doc/posix-functions/strftime_l.texi: Likewise.
20907         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20908         * doc/posix-functions/strxfrm_l.texi: Likewise.
20909         * doc/posix-functions/tolower_l.texi: Likewise.
20910         * doc/posix-functions/toupper_l.texi: Likewise.
20911         * doc/posix-functions/towctrans_l.texi: Likewise.
20912         * doc/posix-functions/towlower_l.texi: Likewise.
20913         * doc/posix-functions/towupper_l.texi: Likewise.
20914         * doc/posix-functions/wcscoll_l.texi: Likewise.
20915         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20916         * doc/posix-functions/wctrans_l.texi: Likewise.
20917         * doc/posix-functions/wctype_l.texi: Likewise.
20918         * doc/glibc-functions/strptime_l.texi: Likewise.
20919         * doc/glibc-functions/strtod_l.texi: Likewise.
20920         * doc/glibc-functions/strtof_l.texi: Likewise.
20921         * doc/glibc-functions/strtol_l.texi: Likewise.
20922         * doc/glibc-functions/strtold_l.texi: Likewise.
20923         * doc/glibc-functions/strtoll_l.texi: Likewise.
20924         * doc/glibc-functions/strtoul_l.texi: Likewise.
20925         * doc/glibc-functions/strtoull_l.texi: Likewise.
20926         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20927         * doc/glibc-functions/wcstod_l.texi: Likewise.
20928         * doc/glibc-functions/wcstof_l.texi: Likewise.
20929         * doc/glibc-functions/wcstol_l.texi: Likewise.
20930         * doc/glibc-functions/wcstold_l.texi: Likewise.
20931         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20932         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20933         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20934
20935 2009-11-24  Bruno Haible  <bruno@clisp.org>
20936
20937         duplocale: Fix logic bug.
20938         * lib/duplocale.c: Don't include <langinfo.h>.
20939         (_NL_LOCALE_NAME): Remove macro.
20940         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20941         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20942
20943 2009-11-23  Jim Meyering  <meyering@redhat.com>
20944
20945         test-update-copyright: don't hard-code /usr/bin/perl
20946         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20947         perl to print the current year.  Gilles Espinasse reported that
20948         the replaced use of perl was hard-coded as /usr/bin/perl.
20949
20950 2009-11-23  Bruno Haible  <bruno@clisp.org>
20951
20952         duplocale: Add support for glibc 2.3.x.
20953         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20954
20955 2009-11-22  Bruno Haible  <bruno@clisp.org>
20956
20957         vasnprintf: Tiny optimization.
20958         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20959         MacOS X.
20960
20961 2009-11-22  Bruno Haible  <bruno@clisp.org>
20962
20963         Tests for module 'duplocale'.
20964         * modules/duplocale-tests: New file.
20965         * tests/test-duplocale.c: New file.
20966
20967         New module 'duplocale'.
20968         * m4/duplocale.m4: New file.
20969         * lib/locale.in.h (duplocale): New declaration.
20970         * lib/duplocale.c: New file.
20971         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20972         gl_LOCALE_H_DEFAULTS): New macros.
20973         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20974         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20975         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20976         REPLACE_DUPLOCALE.
20977         * modules/duplocale: New file.
20978         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20979
20980 2009-11-22  Bruno Haible  <bruno@clisp.org>
20981
20982         * modules/locale-tests (configure.ac): Test for newlocale function.
20983         * tests/test-locale.c: When the system has extended locale functions,
20984         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20985
20986         locale: Make locale_t available when possible.
20987         * lib/locale.in.h: Include <xlocale.h> when it exists.
20988         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20989         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20990         * modules/locale (Depends-on): Add extensions.
20991         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20992         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20993
20994 2009-11-22  Bruno Haible  <bruno@clisp.org>
20995
20996         Add comments.
20997         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20998         invocation.
20999         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21000         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21001         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21002
21003 2009-11-22  Bruno Haible  <bruno@clisp.org>
21004
21005         error: account for the possibility of freopen (stdout).
21006         * lib/error.c: Include <unistd.h>.
21007         (flush_stdout): New function, extracted from error and error_at_line.
21008         Determine stdout's fd dynamically.
21009         (error, error_at_line): Invoke flush_stdout.
21010         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21011         * modules/error (Depends-on): Add unistd.
21012
21013 2009-11-22  Bruno Haible  <bruno@clisp.org>
21014
21015         diffseq: Add comment.
21016         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21017
21018 2009-11-22  Jim Meyering  <meyering@redhat.com>
21019
21020         c-stack: avoid defining an unused static function
21021         * lib/c-stack.c (find_stack_direction): Do not define this function
21022         when it will not be used.
21023
21024         diffseq: avoid spurious gcc warnings
21025         * lib/diffseq.h (IF_LINT2): Define.
21026         (compareseq): Use it to initialize two members of "part".
21027         This avoids two used-uninitialized warnings.
21028
21029 2009-11-21  Jim Meyering  <meyering@redhat.com>
21030
21031         c-stack: avoid "ignoring return value of `write'" warning
21032         * lib/c-stack.c: Include "ignore-value.h".
21033         (die): Explicitly ignore each write return value.
21034         * modules/c-stack (Depends-on): Add ignore-value.
21035
21036 2009-11-21  Bruno Haible  <bruno@clisp.org>
21037
21038         diffseq: reduce scope of variable 'best'.
21039         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21040         variable, earlier used for two different purposes.
21041
21042 2009-11-21  Jim Meyering  <meyering@redhat.com>
21043
21044         diffseq: remove useless assignment to "best"
21045         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21046         assignment.  At that point "best" is already guaranteed to be zero.
21047
21048 2009-11-20  Eric Blake  <ebb9@byu.net>
21049
21050         build: mention ftp redirector in release announcements
21051         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21052         values that used to come from cfg.mk; mention FTP redirect URL.
21053         * build-aux/announce-gen: Mention the mirror list.
21054         Suggested by Karl Berry.
21055
21056         nanosleep: improve port to mingw
21057         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21059         LIB_NANOSLEEP, but only when needed.
21060         * modules/select (Link): Document LIBSOCKET.
21061         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21062         enough.
21063
21064         nanosleep: work around cygwin bug
21065         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21066         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21067         bug.
21068         (getnow): Delete, not needed.
21069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21070         LIB_CLOCK_GETTIME.
21071         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21072         clock-time, gettime.
21073         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21074         bug.
21075         * modules/nanosleep-tests: New test.
21076         * tests/test-nanosleep.c: New file.
21077
21078         sleep: work around cygwin bug
21079         * lib/sleep.c (rpl_sleep): Work around the bug.
21080         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21081         (gl_PREREQ_SLEEP): Delete unused macro.
21082         * modules/sleep (Depends-on): Add verify.
21083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21084         * modules/unistd (Makefile.am): Substitute witness.
21085         * lib/unistd.in.h (sleep): Update prototype.
21086         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21087         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21088         * modules/sleep-tests (Depends-on): Check for alarm.
21089
21090 2009-11-20  Jim Meyering  <meyering@redhat.com>
21091
21092         maint.mk: improve sc_prohibit_magic_number_exit
21093         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21094         so it does not match uses like System.exit(1).
21095         Add comments showing how to correct all offenders.
21096
21097 2009-11-19  Eric Blake  <ebb9@byu.net>
21098
21099         xalloc-die-tests: add missing library
21100         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21101
21102         test-xvasprintf: silence compiler warnings
21103         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21104         empty string from gcc.
21105
21106 2009-11-19  Jim Meyering  <meyering@redhat.com>
21107
21108         xfreopen: new module, from coreutils
21109         * modules/xfreopen: New module.
21110         * lib/xfreopen.c: New file.
21111         * lib/xfreopen.h: New file.
21112         * MODULES.html.sh (File stream based Input/Output"): Add it.
21113
21114 2009-11-19  Eric Blake  <ebb9@byu.net>
21115
21116         manywarnings: depend on warnings
21117         * modules/manywarnings (Depends-on): Add warnings.
21118
21119         build: avoid compiler warnings
21120         * lib/select.c (rpl_select): Delete unused variable.
21121         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21122
21123 2009-11-18  Eric Blake  <ebb9@byu.net>
21124
21125         tests: avoid false negative with --with-packager
21126         * tests/test-version-etc.sh: Discard packager information.
21127         * tests/test-argp-version-etc-1.sh: Likewise.
21128         Reported by Mike Frysinger.
21129
21130         utimens: fix regression on Solaris
21131         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21132         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21133         can only change fd timestamps via futimesat.  Instead, use an
21134         additional witness macro to avoid BSD bug.
21135         Reported by Jim Meyering.
21136
21137 2009-11-17  Eric Blake  <ebb9@byu.net>
21138
21139         usleep: use it to simplify tests
21140         * modules/stat-time-tests (Depends-on): Add usleep.
21141         (configure.ac): Drop usleep check.
21142         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21143         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21144         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21145         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21146         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21147         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21148         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21149         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21150         Likewise.
21151         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21152         * tests/test-lchown.h (nap): Likewise.
21153         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21154         * tests/test-stat-time.c (nap): Likewise.
21155         * tests/test-utimens-common.h (nap): Update comments.
21156
21157         usleep: new module
21158         * modules/usleep: New file.
21159         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21160         * lib/usleep.c (usleep): Likewise.
21161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21162         * modules/unistd (Makefile.am): Substitute witnesses.
21163         * lib/unistd.in.h (usleep): Add declaration.
21164         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21165         * MODULES.html.sh (Date and time): Likewise.
21166         * modules/usleep-tests (Depends-on): New test.
21167         * tests/test-usleep.c: New file.
21168
21169         chown: work around OpenBSD bug
21170         * lib/chown.c (rpl_chown): Work around the bug.
21171         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21172         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21173         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21174         * modules/chown (Depends-on): Add stdbool.
21175         * modules/lchown (Depends-on): Likewise.
21176         * doc/posix-functions/chown.texi (chown): Document the bug.
21177         * doc/posix-functions/lchown.texi (lchown): Likewise.
21178         * tests/test-lchown.h (test_chown): Relax test.
21179
21180         mkstemp: avoid conflict with C++ keyword template
21181         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21182         * lib/mkostemp.c (mkostemp): Likewise.
21183         * lib/mkostemps.c (mkostemps): Likewise.
21184         * lib/mkstemp.c (mkstemp): Likewise.
21185         * lib/mkstemps.c (mkstemps): Likewise.
21186
21187         xalloc-die-tests: optimize
21188         * tests/test-xalloc-die.sh: Reduce number of processes.
21189
21190 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21191
21192         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21193         patch from ludo@gnu.org (Ludovic Courtès).
21194
21195 2009-11-17  Jim Meyering  <meyering@redhat.com>
21196
21197         version-etc: use proper license string
21198         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21199         * modules/version-etc-fsf: Likewise.
21200
21201 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21202
21203         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21204         printed to stdout.  Deal with EOL differences.
21205
21206 2009-11-17  Eric Blake  <ebb9@byu.net>
21207
21208         unsetenv: work around Solaris bug
21209         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21210         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21211         Reported by Jim Meyering.
21212
21213         vasnprintf: avoid compiler warnings
21214         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21215         variables.
21216         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21217
21218 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21219
21220         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21221         settings since xalloc-die is no longer the self test,
21222         xalloc-die.sh is.
21223
21224 2009-11-17  Jim Meyering  <meyering@redhat.com>
21225
21226         test-xalloc-die.sh: make the code agree with the commit log
21227         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21228         at the end, just in case you happen to have a test-xalloc-die
21229         program in some other PATH directory.
21230
21231         test-xalloc-die.sh: fix a portability bug
21232         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21233         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21234         Otherwise, argv[0] (as often seen in diagnostics) would be too
21235         system-dependent, sometimes with, and sometimes without the leading "./".
21236
21237         version-etc-fsf: relax license to LGPLv3+
21238         * modules/version-etc-fsf (License): Relax license.
21239
21240 2009-11-16  Eric Blake  <ebb9@byu.net>
21241
21242         xalloc-die-tests: avoid printing null pointer
21243         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21244         shell script.
21245         * tests/test-xalloc-die.c (program_name): Declare.
21246         * tests/test-xalloc-die.sh (tmpfiles): New file.
21247
21248         setenv, unsetenv: work around various bugs
21249         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21250         (setenv) [HAVE_SETENV]: Work around bugs.
21251         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21252         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21253         for bugs.
21254         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21255         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21257         * modules/stdlib (Makefile.am): Update substitutions.
21258         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21259         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21260         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21261         * modules/setenv-tests: New test.
21262         * modules/unsetenv-tests: Likewise.
21263         * tests/test-setenv.c: New file.
21264         * tests/test-unsetenv.c: Likewise.
21265
21266 2009-11-16  Jim Meyering  <meyering@redhat.com>
21267
21268         version-etc: relax license to LGPLv3+
21269         * modules/version-etc (License): Relax license.
21270
21271         better AC_REQUIRE expanded-before-required-warning avoidance
21272         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21273         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21274         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21275         which is no longer needed.
21276
21277 2009-11-16  Eric Blake  <ebb9@byu.net>
21278
21279         test-freading: clean up temporary file
21280         * tests/test-freading.c (main): Remove file on success, and use
21281         ASSERT more liberally.
21282         Reported by Jim Meyering.
21283
21284 2009-11-16  Jim Meyering  <meyering@redhat.com>
21285
21286         avoid new AC_REQUIRE expanded-before-required warnings
21287         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21288         merely using it.
21289         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21290         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21291
21292 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21293
21294         * tests/test-xalloc-die.c: New file.
21295         * modules/xalloc-die-tests: New file.
21296         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21297         XFAIL_TESTS so it can be appended by modules.
21298
21299 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21300
21301         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21302         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21303
21304 2009-11-14  Eric Blake  <ebb9@byu.net>
21305
21306         fnmatch: avoid compiler warning
21307         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21308         to silence compiler warning about mismatch signedness in ?:.
21309         Reported by Robert Millan.
21310
21311         intprops: add double-inclusion guard
21312         * lib/intprops.h: Allow idempotent includes.
21313         Suggested by Bruce Korb.
21314
21315         openat: detect Solaris fchownat bug
21316         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21317         penalizing glibc chownat when only lchownat is broken.
21318         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21319         trailing slash bugs.
21320         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21321         * modules/openat-tests (Files): Include more files.
21322         (Depends-on): Add mgetgroups, sleep, stat-time.
21323         (configure.ac): Add additional checks.
21324         (Makefile.am): Build new test.
21325         * tests/test-fchownat.c: New file.
21326
21327         lchown: detect Solaris and FreeBSD bug
21328         * lib/lchown.c (rpl_lchown): Work around bug.
21329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21331         * modules/unistd (Makefile.am): Populate it.
21332         * lib/unistd.in.h (lchown): Update declaration.
21333         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21334         * modules/lchown-tests: New file.
21335         * tests/test-lchown.h (test_lchown): Likewise.
21336         * tests/test-lchown.c (main): Likewise.
21337
21338         chown: detect Solaris and FreeBSD bug
21339         * lib/chown.c (rpl_chown): Work around bug.
21340         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21341         (gl_PREREQ_CHOWN): Delete.
21342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21343         * modules/unistd (Makefile.am): Populate it.
21344         * lib/unistd.in.h (chown): Update declaration.
21345         * lib/lchown.c (chown): Update client.
21346         * modules/lchown (Depends-on): Add lstat.
21347         * doc/posix-functions/chown.texi (chown): Document the bug.
21348         * doc/posix-functions/getgroups.texi (getgroups): Document
21349         getgroups pitfall.
21350         * modules/chown-tests: New file.
21351         * tests/test-chown.h (test_chown): Likewise.
21352         * tests/test-chown.c (main): Likewise.
21353
21354 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21355
21356         gnulib-tool: correctly detect absence of m4 directories
21357         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21358
21359 2009-11-14  Jim Meyering  <meyering@redhat.com>
21360
21361         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21362         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21363
21364 2009-11-14  John W. Eaton  <jwe@gnu.org>
21365
21366         strftime.h: wrap funtion declaration in extern "C" block
21367         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21368
21369 2009-11-13  Eric Blake  <ebb9@byu.net>
21370
21371         getgroups: avoid compiler warning
21372         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21373
21374         getgroups: work around FreeBSD bug
21375         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21376         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21377         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21378         * tests/test-getgroups.c (main): Fix buffer overrun.
21379
21380         getgroups: avoid compilation failure
21381         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21382         * modules/getgroups (Depends-on): Add stdint.
21383
21384 2009-11-13  Jim Meyering  <meyering@redhat.com>
21385
21386         test-getgroups: avoid compilation failure
21387         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21388
21389 2009-11-13  Eric Blake  <ebb9@byu.net>
21390
21391         mgetgroups: new module, taken from coreutils
21392         * modules/mgetgroups: New file.
21393         * lib/mgetgroups.h: Likewise.
21394         * lib/mgetgroups.c (mgetgroups): Likewise.
21395         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21396         * MODULES.html.sh (Users and groups): Mention it.
21397
21398         getgroups: don't expose GETGROUPS_T to user
21399         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21400         an element at a time if GETGROUPS_T is wrong size.
21401         * lib/getugroups.h (getugroups): Change signature.
21402         * lib/unistd.in.h (getgroups): Likewise.
21403         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21404         signature needs fixing.
21405         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21406         AC_TYPE_GETGROUPS.
21407         * modules/group-member (Depends-on): Add getgroups.
21408         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21409         (group_member): Rely on getgroups replacement.
21410         * lib/getugroups.c (getugroups): Use gid_t.
21411         * tests/test-getgroups.c (main): Likewise.
21412         * NEWS: Mention the signature change.
21413         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21414         problem with signature.
21415         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21416         GETGROUPS_T is still useful for setgroups.
21417
21418         getgroups, getugroups: provide stubs for mingw
21419         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21420         * lib/getugroups.c (getugroups): Likewise.
21421         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21422         function.  Modernize replacement scheme.
21423         (gl_PREREQ_GETGROUPS): Delete.
21424         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21425         * modules/getgroups (configure.ac): Declare witness.
21426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21427         * modules/unistd (Depends-on): Substitute witness.
21428         * lib/unistd.in.h (getgroups): Declare replacement.
21429
21430         getgroups: avoid calling exit
21431         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21432         drop xalloc.
21433         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21434         dependencies.
21435         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21436         exiting, in the rare case of malloc failure.
21437
21438         getgroups: fix logic error
21439         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21440         has more than 20 groups.
21441         * modules/getgroups-tests: New test.
21442         * tests/test-getgroups.c: New file.
21443
21444 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21445
21446         * tests/test-base64.c: Improve.
21447
21448 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21449
21450         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21451         Blake <ebb9@byu.net>.
21452
21453 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21454
21455         * tests/test-xvasprintf.c: Add %s%s related checks.
21456
21457 2009-11-12  Eric Blake  <ebb9@byu.net>
21458
21459         version-etc: match standards.texi style
21460         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21461         and use <> only for URLs.
21462
21463 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21464
21465         fts: do not fail on a submount during traversal
21466         * lib/fts.c (fts_build): Read the stat info again after opening
21467         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21468         Original report at http://bugzilla.redhat.com/501848.
21469
21470 2009-11-12  Jim Meyering  <meyering@redhat.com>
21471
21472         bootstrap: sync from coreutils
21473         * build-aux/bootstrap (bootstrap_epilogue): New function.
21474         Use git_modules_config in one more place.  This make bootstrap's
21475         --gnulib-srcdir option more useful for testing.
21476
21477         bootstrap: generalize autoheader check
21478         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21479         AC_CONFIG_HEADERS.
21480
21481 2009-11-11  Eric Blake  <ebb9@byu.net>
21482
21483         mkfifoat: use new modules for Solaris and BSD bugs
21484         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21485         * lib/mkfifoat.c (mknodat): Split...
21486         * lib/mknodat.c (mknodat): ...into new file.
21487         * modules/mkfifoat (Files): Ship new file.
21488         (Depends-on): Add mkfifo, mknod.
21489         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21490         (Depends-on): Add symlink.
21491         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21492         redundant with test_mkfifo.h.
21493         (do_mkfifoat, do_mknodat): New helpers.
21494
21495         mknod: new module
21496         * modules/mknod: New file.
21497         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21498         * lib/mknod.c (mknod): Likewise.
21499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21500         defaults.
21501         * modules/sys_stat (Makefile.am): Substitute them.
21502         * lib/sys_stat.in.h (mknod): Declare replacement.
21503         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21504         Document it.
21505         * doc/posix-functions/mknod.texi (mknod): Likewise.
21506         * modules/mknod-tests: New test.
21507         * tests/test-mknod.c: Likewise.
21508
21509         mkfifo: new module
21510         * modules/mkfifo: New file.
21511         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21512         * lib/mkfifo.c (mkfifo): Likewise.
21513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21514         defaults.
21515         * modules/sys_stat (Makefile.am): Substitute them.
21516         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21517         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21518         Document it.
21519         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21520         * modules/mkfifo-tests: New test.
21521         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21522         from test-mkfifoat.c.
21523         * tests/test-mkfifo.c: New file.
21524
21525         readlink: detect FreeBSD bug
21526         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21527         slash on symlink.
21528         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21529         * tests/test-readlink.h (test_readlink): Enhance test.
21530
21531         symlink: detect FreeBSD bug
21532         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21533         slash on symlink.
21534         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21535         * tests/test-symlink.h (test_symlink): Enhance test.
21536
21537 2009-11-10  Eric Blake  <ebb9@byu.net>
21538
21539         link: detect FreeBSD bug
21540         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21541         symlink.
21542         * doc/posix-functions/link.texi (link): Document the bug.
21543         * tests/test-link.h (test_link): Enhance test.
21544         * tests/test-linkat.c (main): Update caller.
21545
21546         unlink, remove: detect FreeBSD bug
21547         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21548         slash on symlink.
21549         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21550         * doc/posix-functions/remove.texi (remove): Likewise.
21551         * tests/test-unlink.h (test_unlink): Enhance test.
21552         * tests/test-remove.c (main): Likewise.
21553
21554 2009-11-09  Eric Blake  <ebb9@byu.net>
21555
21556         rename: detect FreeBSD bug
21557         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21558         slash on symlink.
21559         * modules/renameat-tests (Depends-on): Add filenamecat.
21560         * tests/test-rename.h (test_rename): Allow one more errno.
21561         * tests/test-renameat.c (main): Likewise.
21562         * doc/posix-functions/rename.texi (rename): Document the bug.
21563
21564         open: detect FreeBSD bug
21565         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21566         symlink.
21567         * doc/posix-functions/open.texi (open): Document the bug.
21568         * doc/posix-functions/utimes.texi (utimes): Likewise.
21569         * tests/test-open.h (test_open): Add parameters, and test symlink
21570         handling.
21571         * tests/test-open.c (main): Adjust caller.
21572         * tests/test-fcntl-safer.c (main): Likewise.
21573         * modules/open-tests (Depends-on): Add stdbool, symlink.
21574         * modules/fcntl-safer-tests (Depends-on): Likewise.
21575         * tests/test-openat.c (main): Add test-open tests.
21576
21577         stat: detect FreeBSD bug
21578         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21579         symlink.
21580         * doc/posix-functions/stat.texi (stat): Document the bug.
21581         * tests/test-stat.h (test_stat_func): Add argument.
21582         * tests/test-stat.c (main): Adjust caller.
21583         * tests/test-fstatat.c (main): Likewise.
21584         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21585         Reported by Jim Meyering.
21586
21587 2009-11-09  James Youngman  <jay@gnu.org>
21588
21589         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21590         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21591
21592 2009-11-08  Jim Meyering  <meyering@redhat.com>
21593
21594         utimens: remove invalid futimesat call
21595         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21596         It used the file descriptor of the target file as the DIR_FD
21597         parameter and NULL as the file name.  That caused failure with
21598         errno == EFAULT on FreeBSD-8.0-rc2
21599
21600 2009-11-07  Eric Blake  <ebb9@byu.net>
21601
21602         fflush, freadseek: use fseeko, not fseek
21603         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21604         (clear_ungetc_buffer): Avoid potential problems on large files.
21605         * lib/freadseek.c (freadseek): Likewise.
21606         * modules/freadseek (Depends-on): Add fseeko.
21607         * modules/fseek (configure.ac): Set a witness.
21608         * tests/test-fflush.c (main): Use fseeko.
21609         * tests/test-fpurge.c (fseek): Disable link warning.
21610         * tests/test-freadable.c (fseek): Likewise.
21611         * tests/test-freading.c (fseek): Likewise.
21612         * tests/test-fseeko.c (fseek): Likewise.
21613         * tests/test-ftell.c (fseek): Likewise.
21614         * tests/test-ftello.c (fseek): Likewise.
21615         * tests/test-fwritable.c (fseek): Likewise.
21616         * tests/test-fwriting.c (fseek): Likewise.
21617
21618 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21619
21620         * modules/memchr (Depends-on): Drop getpagesize dependency.
21621
21622 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21623
21624         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21625         Reported by Ludovic Courtès.
21626         * build-aux/pmccabe2html: Improve example usage.
21627         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21628
21629 2009-11-06  Jim Meyering  <meyering@redhat.com>
21630
21631         do-release-commit-and-tag: New module.
21632         Automate the release-commit and tag process.
21633         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21634         * modules/do-release-commit-and-tag: New file.
21635         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21636
21637 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21638
21639         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21640         because test-select.c uses inet_pton.
21641
21642 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21643
21644         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21645         GETADDRINFO_LIB.  Bump serial number.
21646         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21647         Suggested by Eric Blake <ebb9@byu.net>.
21648
21649 2009-11-05  Eric Blake  <ebb9@byu.net>
21650
21651         strtod: detect darwin bug
21652         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21653         Reported by Leo Davis.
21654
21655         freopen-safer: new module
21656         * modules/freopen-safer: New module.
21657         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21658         * lib/freopen-safer.c (freopen_safer): New file.
21659         * lib/stdio-safer.h (freopen_safer): New declaration.
21660         * lib/stdio--.h (freopen): New override.
21661         * MODULES.html.sh (File stream based Input/Output): Mention it.
21662         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21663         freopen-safer module.
21664         * doc/posix-functions/stderr.texi (stderr): Likewise.
21665         * doc/posix-functions/stdin.texi (stdin): Likewise.
21666         * doc/posix-functions/stdout.texi (stdout): Likewise.
21667         * modules/freopen-safer-tests: New test.
21668         * tests/test-reopen-safer.c: New file.
21669
21670 2009-11-05  Jim Meyering  <meyering@redhat.com>
21671
21672         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21673         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21674
21675 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21676
21677         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21678
21679 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21680
21681         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21682
21683 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21684
21685         Fix link error.
21686         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21687         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21688
21689 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21690
21691         * tests/test-func.c: Also test value of __func__.
21692
21693 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21694
21695         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21696         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21697
21698 2009-11-05  Bruno Haible  <bruno@clisp.org>
21699
21700         Fix link error.
21701         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21702         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21703         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21704
21705 2009-11-05  Bruno Haible  <bruno@clisp.org>
21706
21707         Tests for module 'inet_pton'.
21708         * modules/inet_pton-tests: New file.
21709         * tests/test-inet_pton.c: New file.
21710
21711 2009-11-05  Bruno Haible  <bruno@clisp.org>
21712
21713         Tests for module 'inet_ntop'.
21714         * modules/inet_ntop-tests: New file.
21715         * tests/test-inet_ntop.c: New file.
21716
21717 2009-11-04  Eric Blake  <ebb9@byu.net>
21718
21719         stdlib-safer: wrap all mkstemp variants
21720         * modules/mkostemp (configure.ac): Set witness.
21721         * modules/mkostemps (configure.ac): Likewise.
21722         * modules/mkstemps (configure.ac): Likewise.
21723         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21724         (mkstemps_safer): Wrap more functions.
21725         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21726         wrapping.
21727         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21728         (mkstemps_safer): Implement the wrappers.
21729
21730         mkstemps, mkostemps: new modules
21731         * modules/mkostemps: New module.
21732         * modules/mkstemps: Likewise.
21733         * lib/mkostemps.c (mkostemps): New file.
21734         * lib/mkstemps.c (mkstemps): Likewise.
21735         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21736         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21738         * modules/stdlib (Makefile.am): Substitute them.
21739         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21740         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21741         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21742         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21743         * MODULES.html.sh (File system functions): Mention them.
21744
21745         tempname: resync from glibc
21746         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21747         same values for __GT_FILE as glibc.  Abort even when assertions
21748         are disabled.
21749         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21750         match its value otherwise.  Allow idempotent inclusion.
21751         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21752         * lib/mkostemp.c (mkostemp): Likewise.
21753         * lib/mkstemp.c (mkstemp): Likewise.
21754         * lib/tmpfile.c (tmpfile): Likewise.
21755         * NEWS: Document this.
21756
21757         utimens: fix use of futimens on older Linux
21758         * lib/utimens.c (fdutimens): Use updated, rather than original,
21759         timespec to avoid bug in older Linux kernel.
21760         Reported by Simon Josefsson.
21761
21762 2009-11-04  Bruno Haible  <bruno@clisp.org>
21763
21764         Make num_processors more flexible and consistent.
21765         * lib/nproc.h (enum nproc_query): New type.
21766         (num_processors): Add a 'query' argument.
21767         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21768         (num_processors): Add a 'query' argument. Test the value of the
21769         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21770         mingw, count the number of CPUs available for the current process.
21771         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21772         Check for sched_getaffinity and sched_getaffinity_np.
21773         * modules/nproc (Depends-on): Add c-ctype, extensions.
21774         * NEWS: Mention the change.
21775
21776 2009-11-03  Bruno Haible  <bruno@clisp.org>
21777
21778         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21779
21780 2009-11-03  Jim Meyering  <meyering@redhat.com>
21781
21782         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21783         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21784         if it is defined.
21785
21786 2009-11-02  Eric Blake  <ebb9@byu.net>
21787
21788         mktime, timegm: share common declaration
21789         * lib/mktime-internal.h: New file.
21790         * lib/mktime.c: Use it rather than open-coding a declaration.
21791         * lib/timegm.c: Likewise.
21792         * modules/mktime (Files): Ship it.
21793         * modules/timegm (Files): Likewise.
21794         Suggested by Bruno Haible.
21795
21796         test-update-copyright: update test to match script changes
21797         * tests/test-update-copyright.sh: Avoid hard-coding perl
21798         location.  Don't update *.bak created by earlier runs.
21799
21800 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21801             Simon Josefsson  <simon@josefsson.org>
21802             Bruno Haible  <bruno@clisp.org>
21803
21804         Fix link error on Solaris 8.
21805         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21806         also in libnsl. Define also INET_PTON_LIB.
21807         * modules/inet_pton (Link): New section.
21808
21809 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21810             Bruno Haible  <bruno@clisp.org>
21811
21812         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21813         * modules/inet_ntop (Link): New section.
21814         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21815
21816 2009-11-02  Eric Blake  <ebb9@byu.net>
21817
21818         maint: avoid compiler warnings in m4 macros
21819         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21820         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21821
21822 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21823
21824         * m4/pmccabe2html.m4: Remove file.
21825         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21826         function.  Change maintainer.
21827         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21828         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21829         Courtès).
21830
21831 2009-10-31  Eric Blake  <ebb9@byu.net>
21832
21833         fseeko: fix m4 regression
21834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21835         regression from 2009-10-27.
21836         Reported by Ralf Wildenhues.
21837
21838 2009-10-31  Jim Meyering  <meyering@redhat.com>
21839
21840         inttostr: aesthetics and improved (compile-time) safety
21841         Define inttype_is_signed rather than inttype_is_unsigned,
21842         since the sole use is via "#if inttype_is_signed".
21843         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21844         inttype_is_unsigned.
21845         * lib/offtostr.c (inttype_is_signed): Likewise.
21846         * lib/uinttostr.c (inttype_is_signed): Likewise.
21847         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21848         * lib/inttostr.c (inttostr): Use verify to cross-check the
21849         inttype_is_signed value and the signedness of the actual type.
21850         * modules/inttostr (Depends-on): Add verify.
21851
21852 2009-10-30  Eric Blake  <ebb9@byu.net>
21853
21854         build: avoid compiler warnings
21855         * lib/fchmodat.c (lchmod): Mark unused variables.
21856         * lib/getopt.c (_getopt_initialize): Likewise.
21857         * lib/mktime.c (__mktime_internal): Provide prototype.
21858         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21859         older gcc that do not understand #pragma GCC diagnostic.
21860         * lib/uinttostr.c (inttype_is_unsigned): Define.
21861         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21862
21863 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21864
21865         stat: fix compilation on AIX
21866         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21867         only see struct stat64.
21868
21869 2009-10-30  Eric Blake  <ebb9@byu.net>
21870
21871         exclude: make more robust
21872         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21873         rather than masking a coding bug.
21874         Suggested by Bruno Haible.
21875
21876 2009-10-30  Jim Meyering  <meyering@redhat.com>
21877
21878         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21879         Rather than putting #!/usr/bin/perl on the first line,
21880         start with a variant of what's recommended by "man perlrun" that
21881         invokes the first "perl" program from your shell's search path.
21882         * build-aux/gitlog-to-changelog: Replace #!... as above.
21883         Add a "Local Variables" perl mode setting.
21884         Prompted by a patch from Ludovic Courtès.
21885         Improved by Eric Blake.
21886         * build-aux/useless-if-before-free: Likewise.
21887         * build-aux/announce-gen: Likewise.
21888         * build-aux/update-copyright: Likewise.
21889
21890 2009-10-29  Eric Blake  <ebb9@byu.net>
21891
21892         filenamecat-lgpl: adjust clients
21893         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21894         filenamecat.
21895         * modules/renameat (Depends-on): Likewise.
21896
21897         filenamecat: split into filenamecat-lgpl
21898         * modules/filenamecat-lgpl: New module.
21899         * modules/filenamecat (Files): Move library-safe files into
21900         filenamecat-lgpl.
21901         (Depends-on): Add filenamecat-lgpl.
21902         (configure.ac): Declare witness.
21903         * lib/filenamecat.h (file_name_concat): Only declare when using
21904         GPL module.
21905         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21906         Move...
21907         * lib/filenamecat-lgpl.c: ...into new file.
21908         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21909         (gl_FILE_NAME_CONCAT): Use it.
21910         * MODULES.html.sh (File system functions): Mention new module.
21911
21912         argp: avoid memory leak
21913         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21914         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21915         base_name, since the latter malloc()s and can call exit().
21916         Leak introduced 2006-07-03.
21917
21918         dirname-lgpl: adjust clients that don't need full dirname
21919         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21920         * modules/filenamecat (Depends-on): Likewise.
21921         * modules/linkat (Depends-on): Likewise.
21922         * modules/mkancesdirs (Depends-on): Likewise.
21923         * modules/mkdir (Depends-on): Likewise.
21924         * modules/openat (Depends-on): Likewise.
21925         * modules/savewd (Depends-on): Likewise.
21926         * modules/rename (Depends-on): Likewise.
21927         (License): Relax license.
21928         * modules/mkdir-tests (Depends-on): Drop progname.
21929         (Makefile.am): Delete unneeded LDADD.
21930         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21931
21932         dirname: split into dirname-lgpl
21933         * modules/dirname-lgpl: New module.
21934         * modules/dirname (Files): Move library-safe files into
21935         dirname-lgpl.
21936         (Depends-on): Add dirname-lgpl.
21937         (configure.ac): Declare witness.
21938         * modules/double-slash-root (License): Relax license.
21939         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21940         module.
21941         * lib/dirname.c (dir_len, mdir_name): Move...
21942         * lib/dirname-lgpl.c: ...into new file.
21943         * lib/basename.c (last_component, base_len): Move...
21944         * lib/basename-lgpl.c: ...into new file.
21945         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21946         (gl_DIRNAME): Use it.
21947         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21948         Mention new module.
21949         * modules/dirname-tests (Depends-on): Add progname.
21950         * tests/test-dirname.c (program_name): Delete.
21951
21952         mkdir: make safe for libraries
21953         * modules/mkdir (Depends-on): Drop xalloc.
21954         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21955         exit.
21956
21957         tests: avoid some compiler warnings
21958         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21959         literals.
21960         * tests/test-memchr.c (main): Avoid type mismatch.
21961         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21962         * tests/test-base64.c (main): Likewise.
21963         * tests/test-getdelim.c (main): Likewise.
21964         * tests/test-gethostname.c (main): Likewise.
21965         * tests/test-getline.c (main): Likewise.
21966         * tests/test-netinet_in.c (main): Likewise.
21967         * tests/test-select.c (open_server_socket, main): Likewise.
21968         * tests/test-select-stdin.c (main): Likewise.
21969         * tests/test-sockets.c (main): Likewise.
21970         * tests/test-strsignal.c (main): Likewise.
21971         * tests/test-sys_select.c (main): Likewise.
21972         * tests/test-sys_socket.c (main): Likewise.
21973         * tests/test-u64.c (main): Likewise.
21974         * tests/test-xfprintf-posix.c (main): Likewise.
21975         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21976
21977         sockets: avoid compiler warning
21978         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21979
21980         maint: detect usage(1) and other suspicious exits
21981         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21982
21983 2009-10-29  Jim Meyering  <meyering@redhat.com>
21984
21985         timespec: long-to-int truncation could make timespec_cmp malfunction
21986         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21987         a multiple of 2^32 nanoseconds as no difference.
21988
21989 2009-10-28  Jim Meyering  <meyering@redhat.com>
21990
21991         fprintftime: wrap macro code argument in "do {...} while(0)"
21992         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21993         cpy macro must be a statement that can be followed by a semicolon.
21994         Now that the else clause contains a comment and is hence longer
21995         than one line, I require curly braces.  That in turn requires
21996         that we wrap this code block in the standard do...while(0).
21997
21998         fprintftime: remove stray semicolon from previous change
21999         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22000
22001         fprintftime: avoid a warning about ignored fwrite return value
22002         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22003         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22004         that is unsafe.
22005         * modules/fprintftime (Depends-on): Add ignore-value.
22006
22007         exclude: avoid an unwarranted warning
22008         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22009
22010 2009-10-27  Eric Blake  <ebb9@byu.net>
22011
22012         fseek: avoid compilation failure when fflush is replaced
22013         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22014         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22015         module is in use.
22016         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22017         module is not in use; since REPLACE_FSEEK worked otherwise.
22018         (GNULIB_FTELLO): Likewise for ftell.
22019         Reported by Ian Beckwith and others.
22020
22021 2009-10-27  Bruno Haible  <bruno@clisp.org>
22022
22023         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22024         Reported by Jim Meyering.
22025
22026 2009-10-27  Jim Meyering  <jim@meyering.net>
22027             Bruno Haible  <bruno@clisp.org>
22028
22029         Avoid warning despite dropping the return value of fwrite.
22030         * lib/unicodeio.c: Include ignore-value.h.
22031         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22032         * modules/unicodeio (Depends-on): Add ignore-value.
22033
22034 2009-10-26  Eric Blake  <ebb9@byu.net>
22035
22036         areadlinkat: fix fallback path
22037         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22038         pointer and zero.
22039
22040 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22041
22042         Use a better IO block size for modern systems
22043         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22044         * lib/md2.c: Likewise.
22045         * lib/md4.c: Likewise.
22046         * lib/md5.c: Likewise.
22047         * lib/sha1.c: Likewise.
22048         * lib/sha256.c: Likewise.
22049         * lib/sha512.c: Likewise.
22050
22051 2009-10-22  Eric Blake  <ebb9@byu.net>
22052
22053         tests: avoid several compiler warnings
22054         * tests/test-getcwd.c (main): Avoid buffer underflow.
22055         * tests/test-getdate.c (main): String literals are not safe with
22056         putenv, so use setenv.  Declare unused argument.
22057         * modules/getdate-tests (Depends-on): Add setenv.
22058         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22059         problems with string literals in char *.
22060         * tests/test-hash.c (main): Avoid shadowing declaration.
22061         (insert_new): Treat string literals as char const *.
22062         * tests/test-getopt.h (test_getopt): Likewise.
22063         (getopt_loop): Alter types to minimize casting elsewhere.
22064         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22065         (test_getopt_long_posix): Likewise.
22066         (do_getopt_long): Add wrapper to minimize casting.
22067         * tests/test-atexit.c (clear_temp_file): Use void.
22068         * tests/test-areadlink-with-size.c (main): Declare unused
22069         arguments.
22070         * tests/test-areadlink.c (main): Likewise.
22071         * tests/test-areadlinkat-with-size.c (main): Likewise.
22072         * tests/test-areadlinkat.c (main): Likewise.
22073         * tests/test-canonicalize-lgpl.c (main): Likewise.
22074         * tests/test-canonicalize.c (main): Likewise.
22075         * tests/test-dirent-safer.c (main): Likewise.
22076         * tests/test-dirname.c (main): Likewise.
22077         * tests/test-dup2.c (main): Likewise.
22078         * tests/test-fchdir.c (main): Likewise.
22079         * tests/test-fcntl-h.c (main): Likewise.
22080         * tests/test-fcntl-safer.c (main): Likewise.
22081         * tests/test-fdopendir.c (main): Likewise.
22082         * tests/test-fdutimensat.c (main): Likewise.
22083         * tests/test-fflush.c (main): Likewise.
22084         * tests/test-filenamecat.c (main): Likewise.
22085         * tests/test-filevercmp.c (main): Likewise.
22086         * tests/test-fopen-safer.c (main): Likewise.
22087         * tests/test-fopen.c (main): Likewise.
22088         * tests/test-fpending.c (main): Likewise.
22089         * tests/test-fpurge.c (main): Likewise.
22090         * tests/test-freading.c (main): Likewise.
22091         * tests/test-fstatat.c (main): Likewise.
22092         * tests/test-fsync.c (main): Likewise.
22093         * tests/test-futimens.c (main): Likewise.
22094         * tests/test-getndelim2.c (main): Likewise.
22095         * tests/test-gettimeofday.c (main): Likewise.
22096         * tests/test-getopt.c (main): Likewise.
22097         * tests/test-i-ring.c (main): Likewise.
22098         * tests/test-inttypes.c (main): Likewise.
22099         * tests/test-link.c (main): Likewise.
22100         * tests/test-lstat.c (main): Likewise.
22101         * tests/test-math.c (main): Likewise.
22102         * tests/test-md5.c (main): Likewise.
22103         * tests/test-memchr2.c (main): Likewise.
22104         * tests/test-memrchr.c (main): Likewise.
22105         * tests/test-mkdir.c (main): Likewise.
22106         * tests/test-mkdirat.c (main): Likewise.
22107         * tests/test-mkfifoat.c (main): Likewise.
22108         * tests/test-open.c (main): Likewise.
22109         * tests/test-openat-safer.c (main): Likewise.
22110         * tests/test-openat.c (main): Likewise.
22111         * tests/test-quotearg.c (main): Likewise.
22112         * tests/test-rawmemchr.c (main): Likewise.
22113         * tests/test-readlink.c (main): Likewise.
22114         * tests/test-remove.c (main): Likewise.
22115         * tests/test-rename.c (main): Likewise.
22116         * tests/test-renameat.c (main): Likewise.
22117         * tests/test-rmdir.c (main): Likewise.
22118         * tests/test-sha1.c (main): Likewise.
22119         * tests/test-signal.c (main): Likewise.
22120         * tests/test-sigaction.c (main): Likewise.
22121         * tests/test-stat.c (main): Likewise.
22122         * tests/test-stat-time.c (main): Likewise.
22123         * tests/test-stddef.c (main): Likewise.
22124         * tests/test-stdint.c (main): Likewise.
22125         * tests/test-stdio.c (main): Likewise.
22126         * tests/test-stdlib.c (main): Likewise.
22127         * tests/test-strchrnul.c (main): Likewise.
22128         * tests/test-strerror.c (main): Likewise.
22129         * tests/test-string.c (main): Likewise.
22130         * tests/test-strtod.c (main): Likewise.
22131         * tests/test-strverscmp.c (main): Likewise.
22132         * tests/test-symlink.c (main): Likewise.
22133         * tests/test-symlinkat.c (main): Likewise.
22134         * tests/test-sys_stat.c (main): Likewise.
22135         * tests/test-sys_time.c (main): Likewise.
22136         * tests/test-time.c (main): Likewise.
22137         * tests/test-unistd.c (main): Likewise.
22138         * tests/test-unlink.c (main): Likewise.
22139         * tests/test-unlinkat.c (main): Likewise.
22140         * tests/test-utimens.c (main): Likewise.
22141         * tests/test-utimensat.c (main): Likewise.
22142         * tests/test-version-etc.c (main): Likewise.
22143         * tests/test-wchar.c (main): Likewise.
22144         * tests/test-wctype.c (main): Likewise.
22145         * tests/test-xprintf-posix.c (main): Likewise.
22146         * tests/test-posixtm.c (main): Likewise.
22147         (STREQ): Delete unused macro.
22148         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22149         shadowed variables.
22150         * tests/test-memchr.c (main): Likewise.
22151
22152 2009-10-21  Eric Blake  <ebb9@byu.net>
22153
22154         areadlinkat: avoid failure on older glibc
22155         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22156         rather than mis-comparing 0 against FUNC_RESULT of char*.
22157
22158 2009-10-21  Bruno Haible  <bruno@clisp.org>
22159
22160         * modules/stpncpy (License): Relicense under LGPLv2+.
22161         Reported by David Lutterkort <lutter@redhat.com>.
22162
22163 2009-10-20  Eric Blake  <ebb9@byu.net>
22164
22165         utimensat: work around Solaris 9 bug
22166         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22167         has trailing slash bugs.
22168         * tests/test-lutimens.h (test_lutimens): Enhance test.
22169         * tests/test-utimens.h (test_utimens): Likewise.
22170         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22171         * doc/posix-functions/utimes.texi (utimes): Likewise.
22172         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22173         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22174         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22175         * doc/posix-functions/futimens.texi (futimens): Likewise.
22176
22177         fdutimensat: new module
22178         * modules/fdutimensat: New file.
22179         * lib/fdutimensat.c (fdutimensat): Likewise.
22180         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22181         * MODULES.html.sh (File system functions): Mention module.
22182         * modules/fdutimensat-tests: New test.
22183         * tests/test-fdutimensat.c: Likewise.
22184
22185         doc: regenerate INSTALL
22186         * doc/INSTALL: Reflect recent autoconf update.
22187         * doc/INSTALL.ISO: Likewise.
22188         * doc/INSTALL.UTF-8: Likewise.
22189
22190 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22191
22192         acl: warn if ACL support is not detected
22193         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22194
22195 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22196
22197         * lib/nproc.h: Add extern "C" block for C++.
22198
22199 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22200             Bruno Haible  <bruno@clisp.org>
22201
22202         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22203         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22204         * doc/posix-functions/isalpha.texi: Likewise.
22205         * doc/posix-functions/isblank.texi: Likewise.
22206         * doc/posix-functions/iscntrl.texi: Likewise.
22207         * doc/posix-functions/isdigit.texi: Likewise.
22208         * doc/posix-functions/isgraph.texi: Likewise.
22209         * doc/posix-functions/islower.texi: Likewise.
22210         * doc/posix-functions/isprint.texi: Likewise.
22211         * doc/posix-functions/ispunct.texi: Likewise.
22212         * doc/posix-functions/isspace.texi: Likewise.
22213         * doc/posix-functions/isupper.texi: Likewise.
22214         * doc/posix-functions/isxdigit.texi: Likewise.
22215
22216 2009-10-18  Bruno Haible  <bruno@clisp.org>
22217
22218         Tests for module 'isblank'.
22219         * modules/isblank-tests: New file.
22220         * tests/test-isblank.c: New file.
22221
22222         New module 'isblank'.
22223         * lib/isblank.c: New file.
22224         * m4/isblank.m4: New file.
22225         * modules/isblank: New file.
22226         * doc/posix-functions/isblank.texi: Mention the new module.
22227
22228 2009-10-18  Bruno Haible  <bruno@clisp.org>
22229
22230         New module 'ctype'.
22231         * lib/ctype.in.h: New file.
22232         * m4/ctype.m4: New file.
22233         * modules/ctype: New file.
22234         * doc/posix-headers/ctype.texi: Mention the new module.
22235
22236 2009-10-18  Jim Meyering  <meyering@redhat.com>
22237
22238         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22239         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22240         right after its initialization, rather than farther down.
22241         Keeping these in close proximity makes it easier to ensure
22242         that each such variable is initialized.  E.g.,
22243
22244             LIB_CLOCK_GETTIME=
22245             AC_SUBST([LIB_CLOCK_GETTIME])
22246
22247         This change also increments these serial numbers.
22248         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22249         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22251
22252 2009-10-18  Bruno Haible  <bruno@clisp.org>
22253
22254         Don't let environment variables perturb build.
22255         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22256         (gl_PREREQ_GETHRXTIME): ... not here.
22257
22258 2009-10-18  Bruno Haible  <bruno@clisp.org>
22259
22260         Avoid symlink attack in localcharset module.
22261         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22262         (O_NOFOLLOW): Define fallback.
22263         (get_charset_aliases): Don't open the file if it is a symbolic link.
22264         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22265         gl_FCNTL_H.
22266         (gl_FCNTL_H): Require it.
22267         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22268         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22269         Reported by Fergal Glynn <fglynn@veracode.com>.
22270
22271 2009-10-18  Bruno Haible  <bruno@clisp.org>
22272
22273         Implement nproc for mingw.
22274         * lib/nproc.c: Include <windows.h>
22275         (num_processors): On native Windows platforms, try GetSystemInfo.
22276
22277 2009-10-18  Bruno Haible  <bruno@clisp.org>
22278
22279         Implement nproc for IRIX.
22280         * lib/nproc.c: Include <sys/sysmp.h>.
22281         (num_processors): On IRIX systems, try sysmp.
22282         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22283
22284 2009-10-18  Bruno Haible  <bruno@clisp.org>
22285
22286         Implement nproc for HP-UX.
22287         * lib/nproc.c: Include <sys/pstat.h>
22288         (num_processors): On HP-UX systems, try pstat_getdynamic.
22289         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22290         pstat_getdynamic.
22291
22292 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22293             Bruno Haible  <bruno@clisp.org>
22294
22295         Implement nproc for NetBSD, OpenBSD.
22296         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22297         (ARRAY_SIZE): New macro.
22298         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22299         * m4/nproc.m4: New file.
22300         * modules/nproc (Files): Add m4/nproc.m4.
22301         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22302         (Makefile.am): Instead, augment lib_SOURCES.
22303
22304 2009-10-18  Bruno Haible  <bruno@clisp.org>
22305
22306         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22307         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22308         sys/param.h.
22309
22310 2009-10-16  Eric Blake  <ebb9@byu.net>
22311
22312         utimensat: new module
22313         * modules/utimensat: New file.
22314         * lib/utimensat.c (utimensat): Likewise.
22315         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22316         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22317         so we can work around Linux bugs.
22318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22319         * modules/sys_stat (Makefile.am): Substitute them.
22320         * lib/sys_stat.in.h (utimensat): Declare it.
22321         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22322         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22323         * modules/utimensat-tests: New test.
22324         * tests/test-utimensat.c: Likewise.
22325
22326         utimens: let lutimens work on non-symlinks
22327         * lib/utimens.c (lutimens): Fall back to utimens rather than
22328         failing with ENOSYS, when file is not a symlink.
22329         (utimens): Reduce redirection.
22330         * tests/test-lutimens.h (test_lutimens): Update test to cover
22331         non-symlinks.
22332         * tests/test-utimens.h (test_utimens): Update test to cover
22333         symlinks.
22334         * tests/test-utimens.c (main): Update caller.
22335
22336         utimens: cache whether utimensat syscall works
22337         * lib/utimens.c (utimensat_works_really): New cache variable.
22338         (fdutimens, lutimens): Use it to avoid failing syscall.
22339
22340         test-stat-time, test-utimens: improve portability
22341         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22342         ext4 on alpha, and for cygwin.
22343         * tests/test-utimens-common.h: New file.
22344         (nap): Factor delays into single function.
22345         * tests/test-lutimens.h (test_lutimens): Use new header.
22346         * tests/test-futimens.h (test_futimens): Likewise.
22347         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22348         timestamps to occur from same machine, as was done previously for
22349         test_utimens.
22350         * modules/utimens-tests (Files): Ship new file.
22351         * modules/futimens-tests (Files): Likewise.
22352         Reported in part by Jim Meyering.
22353
22354         sys_stat: sort replacement declarations
22355         * lib/sys_stat.in.h: Sort declarations.
22356         * lib/futimens.c (futimens): Fix typo.
22357
22358 2009-10-15  Jim Meyering  <meyering@redhat.com>
22359
22360         don't let environment settings perturb build
22361         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22362         could cause a configure-time and/or build-time malfunction.
22363         Typically, a configure-time function-in-library test is performed
22364         via code like this:
22365
22366           LIB_VAR=
22367           AC_SUBST([LIB_VAR])
22368           prefix_saved_LIBS=$LIBS
22369             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22370                        [test "$ac_cv_search_FUNC" = "none required" ||
22371                         LIB_VAR=$ac_cv_search_FUNC])
22372           LIBS=$prefix_saved_LIBS
22373
22374         However, in each of the files affected by this change, the LIB_VAR=
22375         initialization was omitted.  Thus, when set in the environment, its
22376         value would propagate into generated Makefiles when FUNC is not found
22377         in LIB_NAME.
22378         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22379         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22381
22382 2009-10-14  Eric Blake  <ebb9@byu.net>
22383
22384         fchdir: avoid infinite recursion in mingw
22385         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22386         recursing.
22387
22388         test-stat-time: port to mingw
22389         * tests/test-stat-time.c (force_unlink): Return a value.
22390         (test_ctime) [W32]: Fix compilation error.
22391         (nap): Don't call usleep with too large an argument.  Use
22392         force_unlink.
22393         * doc/pastposix-functions/usleep.texi (usleep): Document the
22394         portability issue.
22395
22396 2009-10-13  Jim Meyering  <meyering@redhat.com>
22397
22398         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22399         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22400         * modules/pipe-filter-ii: Likewise.
22401         * modules/sys_socket-tests: Likewise.
22402         * modules/tsearch-tests: Likewise.
22403         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22404         (check): Depend on it.
22405
22406 2009-10-12  Eric Blake  <ebb9@byu.net>
22407
22408         utimens-tests: port to NFS file systems
22409         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22410         comparisons to avoid spurious failures from timestamp drift
22411         between NFS machines.
22412
22413 2009-10-12  Eric Blake  <ebb9@byu.net>
22414
22415         stat-time-tests: minor cleanups
22416         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22417         * tests/test-stat-time.c (nap): Separate assignment from call.
22418         Suggested by Paolo Bonzini and Bruno Haible.
22419
22420         sys_stat: guarantee struct timespec
22421         * lib/sys_stat.in.h (includes): Always include <time.h>
22422         * modules/sys_stat (Depends-on): Add time.
22423         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22424         mode_t permission values.
22425         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22426         get at subsecond timestamps.
22427
22428 2009-10-10  Eric Blake  <ebb9@byu.net>
22429
22430         futimens: new module
22431         * modules/futimens: New file.
22432         * lib/futimens.c (futimens): Likewise.
22433         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22434         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22435         we can work around Linux bugs.
22436         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22437         * modules/sys_stat (Makefile.am): Substitute them.
22438         * lib/sys_stat.in.h (futimens): Declare it.
22439         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22440         * doc/posix-functions/futimens.texi (futimens): Likewise.
22441         * modules/futimens-tests: New test.
22442         * tests/test-futimens.c: Likewise.
22443
22444         utimens: introduce fdutimens
22445         * lib/utimens.h (fdutimens): New prototype.
22446         * lib/utimens.c (gl_futimens): Move guts...
22447         (fdutimens): ...to new interface.
22448         * tests/test-utimens.c (do_fdutimens): Use it.
22449
22450         utimens: add UTIME_NOW and UTIME_OMIT support
22451         * lib/utimens.c (validate_timespec, update_timespec): New helper
22452         functions.
22453         (gl_futimens, lutimens): Use them.
22454         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22455         stdbool, sys_stat.
22456         (Link): Mention resulting library dependency.
22457         * modules/utimecmp (Link): Likewise.
22458         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22459         (Makefile.am): Pick up library dependency.
22460         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22461         definition.
22462         * tests/test-sys_stat.c: Test the definitions.
22463         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22464         * NEWS: Document library dependency.
22465
22466         utimecmp: support symlink timestamps
22467         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22468         hashing when possible.  Use pathconf when available.
22469         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22470         * modules/utimecmp (Depends-on): Add lstat.
22471
22472         utimens: add lutimens interface
22473         * lib/utimens.c (lutimens): New function.
22474         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22475         * lib/utimens.h (lutimens): Declare new interface.
22476         * tests/test-utimens.c (main): Enhance test.
22477         * tests/test-lutimens.h (test_lutimens): New file.
22478         * modules/utimens-tests (Files): Distribute it.
22479         (Depends-on): Add symlink.
22480         (configure.ac): Check for usleep.
22481
22482         utimens: validate futimens usage
22483         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22484         fewer syscalls on failure later on.  Avoid compiler warning on
22485         mingw.
22486         * modules/utimens (Depends-on): Add dup2.
22487
22488         utimens: add test
22489         * modules/utimens-tests: New test.
22490         * tests/test-utimens.h: New file.
22491         * tests/test-futimens.h: Likewise.
22492         * tests/test-utimens.c: Likewise.
22493
22494         doc: mention timestamp portability issues
22495         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22496         instead.
22497         * doc/posix-functions/utime.texi (utime): Likewise.
22498         * doc/posix-functions/utimes.texi (utimes): Likewise.
22499         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22500         instead.
22501         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22502         module.
22503         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22504         Mention weakness with symlink timestamps.
22505         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22506         to utimensat/futimens instead.
22507         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22508
22509         test-dup2: enhance test
22510         * tests/test-dup2.c (main): Also check AT_FDCWD.
22511
22512         test-stat-time: avoid more spurious failures
22513         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22514         xfs; and avoid race if the two timestamps cross quantization edge.
22515
22516         relocatable: prefer 'file system' over 'filesystem'
22517         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22518         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22519         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22520         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22521         * lib/relocatable.c (compute_curr_prefix): Likewise.
22522
22523 2009-10-10  Jim Meyering  <meyering@redhat.com>
22524
22525         stat-time-tests: check for the usleep function
22526         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22527
22528 2009-10-10  Bruno Haible  <bruno@clisp.org>
22529
22530         * modules/xnanosleep: Put the Link section after the Include section.
22531
22532 2009-10-09  Eric Blake  <ebb9@byu.net>
22533
22534         dup2: work around FreeBSD 6.1 bug
22535         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22536         * doc/posix-functions/dup2.texi (dup2): Document it.
22537         Reported by Nelson H. F. Beebe and Jim Meyering.
22538
22539         test-stat-time: port to buggy NFS clients
22540         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22541         (test_ctime): Also skip test if mtime and ctime are skewed.
22542
22543         maint: prefer 'file system' over 'filesystem'
22544         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22545         * doc/posix-functions/lstat.texi (lstat): Likewise.
22546         * lib/file-has-acl.c (file_has_acl): Likewise.
22547         * lib/fwriteerror.c [TEST]: Likewise.
22548         * tests/test-areadlink.h (test_areadlink): Likewise.
22549         * tests/test-areadlinkat-with-size.c (main): Likewise.
22550         * tests/test-areadlinkat.c (main): Likewise.
22551         * tests/test-canonicalize-lgpl.c (main): Likewise.
22552         * tests/test-canonicalize.c (main): Likewise.
22553         * tests/test-fstatat.c (main): Likewise.
22554         * tests/test-linkat.c (main): Likewise.
22555         * tests/test-lstat.h (test_lstat_func): Likewise.
22556         * tests/test-mkdir.h (test_mkdir): Likewise.
22557         * tests/test-readlink.h (test_readlink): Likewise.
22558         * tests/test-remove.c (main): Likewise.
22559         * tests/test-rename.h (test_rename): Likewise.
22560         * tests/test-renameat.c (main): Likewise.
22561         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22562         * tests/test-symlink.h (test_symlink): Likewise.
22563         * tests/test-symlinkat.c (main): Likewise.
22564         * tests/test-unlink.h (test_unlink_func): Likewise.
22565         * tests/test-unlinkat.c (main): Likewise.
22566
22567         maint: make realtime library usage explicit
22568         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22569         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22570         * modules/settime (Link): Likewise.
22571         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22572
22573         test-stat-time: speed up execution
22574         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22575         warning on mingw.
22576         (nap): New helper function.
22577         (prepare_test): Use it to reduce sleep time.
22578         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22579         execution.
22580         * modules/stat-time-tests (configure.ac): Check for usleep.
22581
22582 2009-10-09  Jim Meyering  <meyering@redhat.com>
22583
22584         selinux-h: always use getfilecon wrappers
22585         * lib/getfilecon.c: New file.
22586         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22587         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22588         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22589         (fgetfilecon): Provide a stub.
22590         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22591         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22592         file unconditionally.
22593         When <selinux/selinux.h> is found, arrange to use wrappers.
22594         * modules/selinux-h (Files): Add getfilecon.c.
22595         (Makefile.am): Substitute include-next-related bits
22596         into the now-always-generated selinux/selinux.h file.
22597         * doc/glibc-functions/lgetfilecon.texi: New file.
22598         * doc/glibc-functions/fgetfilecon.texi: New file.
22599         * doc/glibc-functions/getfilecon.texi: New file.
22600         * doc/glibc-functions/getfilecon-desc.texi: New file.
22601         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22602         which to pull in the new files.
22603         * MODULES.html.sh (Misc): Add selinux-h.
22604
22605 2009-10-08  Jim Meyering  <meyering@redhat.com>
22606
22607         unistd: fix comment typo
22608         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22609
22610 2009-10-08  Eric Blake  <ebb9@byu.net>
22611
22612         areadlink: use SIZE_MAX consistently
22613         * modules/areadlink (Depends-on): Add stdint.
22614         * modules/areadlink-with-size (Depends-on): Likewise.
22615         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22616         gives NULL; drop sys/types, since unistd gives size_t; and add
22617         stdint for SIZE_MAX.
22618         (SIZE_MAX): Rely on headers.
22619         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22620         and add stdint.
22621         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22622         (SIZE_MAX): Likewise.
22623         (INITIAL_BUF_SIZE): Turn into enum.
22624         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22625
22626 2009-10-08  Jim Meyering  <meyering@redhat.com>
22627
22628         areadlinkat: avoid compilation failure
22629         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22630         Fix typo in comment.
22631
22632 2009-10-07  Eric Blake  <ebb9@byu.net>
22633
22634         areadlinkat-with-size: new module
22635         * modules/areadlinkat-with-size: New module.
22636         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22637         * lib/areadlink.h (areadlinkat): Declare it.
22638         * MODULES.html.sh (File system functions): Mention it.
22639         * modules/areadlinkat-with-size-tests: New test.
22640         * tests/test-areadlinkat-with-size.c: New file.
22641
22642         xreadlinkat: new module
22643         * modules/xreadlinkat: New module.
22644         * lib/xreadlinkat.c (xreadlinkat): New file.
22645         * lib/xreadlink.h (xreadlinkat): Declare it.
22646         * MODULES.html.sh (File system functions): Mention it.
22647
22648         areadlinkat: new module
22649         * lib/at-func.c (FUNC_FAIL): New define.
22650         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22651         * modules/areadlinkat: New module.
22652         * lib/linkat.c (areadlinkat): Move...
22653         * lib/areadlinkat.c (areadlinkat): ...to new file.
22654         * lib/areadlink.h (areadlinkat): Declare it.
22655         * modules/linkat (Depends-on): Add areadlinkat.
22656         * MODULES.html.sh (File system functions): Mention it.
22657         * modules/areadlinkat-tests: New test.
22658         * tests/test-areadlinkat.c: New file.
22659
22660         areadlink, areadlink-with-size: add tests
22661         * modules/areadlink-tests: New test.
22662         * modules/areadlink-with-size-tests: Likewise.
22663         * tests/test-areadlink.h: New file.
22664         * tests/test-areadlink.c: Likewise.
22665         * tests/test-areadlink-with-size.c: Likewise.
22666
22667         maint: minor cleanups
22668         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22669         _UNUSED_PARAMETER_ instead.
22670         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22671         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22672         * modules/linkat-tests (Files): Distribute test-link.h.
22673
22674         openat, utimens: whitespace cleanup
22675         * lib/openat.c: Prefer space throughout, rather than mix of 8
22676         spaces vs. tabs.
22677         * lib/at-func.c: Likewise.
22678         * lib/utimens.c: Likewise.
22679
22680         openat: avoid using wrong fd
22681         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22682         working directory chooses same fd.
22683         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22684
22685         mkdir, mkdirat: fix cygwin 1.5.x bug
22686         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22687         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22688         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22689         bug.
22690         (gl_PREREQ_MKDIR): Delete unused macro.
22691         * modules/mkdir (Files): Track file rename.
22692         (configure.ac): Update macro name.
22693         * modules/openat (Depends-on): Add mkdir.
22694         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22695
22696         mkdir, mkdirat: add tests
22697         * modules/mkdir-tests: New test.
22698         * tests/test-mkdir.h: New file.
22699         * tests/test-mkdir.c: Likewise.
22700         * tests/test-mkdirat.c: Likewise.
22701         * modules/openat-tests (Files): Add new files.
22702         (Makefile.am): Run new test.
22703
22704 2009-10-06  Eric Blake  <ebb9@byu.net>
22705
22706         doc: tweak *at function documentation
22707         * doc/posix-functions/faccessat.texi (faccessat): Mention
22708         known issue with replacement.
22709         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22710         * doc/posix-functions/linkat.texi (linkat): Likewise.
22711         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22712         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22713         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22714         * doc/posix-functions/renameat.texi (renameat): Likewise.
22715         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22716
22717         openat: fix GNU/Hurd bug in unlinkat
22718         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22719         broken.
22720         * doc/posix-functions/unlink.texi (unlink): Document this.
22721         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22722
22723         fdopendir: fix GNU/Hurd bug
22724         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22725         allowing non-directory fds.
22726         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22727         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22728         * modules/dirent (Makefile.am): Substitute it.
22729         * lib/dirent.in.h (fdopendir): Declare replacement.
22730         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22731         * tests/test-fdopendir.c (main): Test something other than
22732         /dev/null, since on Hurd that behaves like a directory.
22733
22734         test-symlink: port to GNU/Hurd
22735         * tests/test-symlink.h (test_symlink): Relax expected errno.
22736
22737         doc: tweak more cygwin information
22738         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22739         now compatible with glibc.
22740         * doc/posix-functions/getopt.texi (getopt): Likewise.
22741
22742         getopt-gnu: add another test
22743         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22744         guarantee behavior relied on by m4.
22745         * tests/test-getopt.c (main): Use it.
22746         * modules/getopt-posix-tests (Depends-on): Add setenv.
22747         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22748
22749         getopt: fix compilation on darwin
22750         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22751         include.
22752         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22753         Reported by Ludovic Courtès.
22754
22755 2009-10-06  Bruno Haible  <bruno@clisp.org>
22756
22757         * modules/size_max (Description): Discourage its use.
22758         Reported by Simon Josefsson.
22759
22760 2009-10-06  Jim Meyering  <meyering@redhat.com>
22761
22762         linkat: avoid compilation failure
22763         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22764
22765 2009-10-05  Eric Blake  <ebb9@byu.net>
22766
22767         linkat: support Linux 2.6.17
22768         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22769         linkat on Linux, but allow cache variable override.
22770         * lib/linkat.c (rpl_linkat): Define override.
22771         * modules/linkat (Depends-on): Add symlinkat.
22772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22773         * modules/unistd (Makefile.am): Substitute it.
22774         * lib/unistd.in.h (linkat): Declare replacement.
22775         Reported by Pádraig Brady.
22776
22777         quotearg: port test to systems with C.UTF-8 locale
22778         * tests/test-quotearg.c (struct result_strings): Add another
22779         member, differentiating between C.ASCII and C.UTF-8 handling.
22780         (compare_strings): Add parameter.
22781         (main): Adjust all callers.
22782
22783         getopt: avoid clash with FreeBSD _getopt_internal
22784         * lib/getopt.in.h (_getopt_internal): Override the name.
22785         * lib/getopt_int.h (includes): Pick up any overrides.
22786         Reported by Reuben Thomas.
22787
22788         hash: allow C89 compilation
22789         * lib/hash.c (check_tuning): Move declaration before statement.
22790         Reported by Reuben Thomas.
22791
22792 2009-10-05  Karl Berry  <karl@gnu.org>
22793
22794         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22795
22796 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22797             Bruno Haible  <bruno@clisp.org>
22798
22799         * lib/uname.c (uname): Use a table-driven algorithm to compute
22800         Windows NT versions.
22801
22802 2009-10-04  Bruno Haible  <bruno@clisp.org>
22803
22804         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22805         program_invocation_short_name.
22806         * modules/progname (configure.ac): Test for presence of
22807         program_invocation_short_name.
22808         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22809
22810 2009-10-04  Bruno Haible  <bruno@clisp.org>
22811
22812         * lib/progname.c (set_program_name): Fix comment.
22813         Reported by Jim Meyering.
22814
22815 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22816             Bruno Haible  <bruno@clisp.org>
22817
22818         * lib/uname.c: Include <string.h>.
22819         (uname): Do only one call to GetVersionEx in the common case.
22820
22821 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22822             Bruno Haible  <bruno@clisp.org>
22823
22824         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22825         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22826         (uname): Add support for Windows CE and various non-x86 CPU types.
22827
22828 2009-10-03  Bruno Haible  <bruno@clisp.org>
22829
22830         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22831         invocation to tests/configure.ac.
22832         Reported by Ian Beckwith <ianb@erislabs.net>.
22833
22834 2009-10-02  Eric Blake  <ebb9@byu.net>
22835
22836         fchdir: avoid compiler warning
22837         * lib/fchdir.c (canonicalize_file_name)
22838         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22839
22840         test-open: support mingw errno values
22841         * tests/test-open.h (test_open): Relax test.
22842         * tests/test-fopen.h (test_fopen): Likewise.
22843         * tests/test-openat-safer.c (main): Likewise.
22844
22845         open: fix opening directory on mingw
22846         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22847
22848         test-open: on GNU/Hurd, /dev/null is a directory
22849         * tests/test-fopen.h (main): Rename...
22850         (test_fopen): ...to this.  Use a guaranteed non-directory when
22851         confirming open behavior on trailing slash.
22852         * tests/test-openat-safer.c (main): Likewise.
22853         * tests/test-open.h (main): Likewise....
22854         (test_open): ...to this.
22855         * tests/test-fopen.c (main): Adjust caller.
22856         * tests/test-fopen-safer.c (main): Likewise.
22857         * tests/test-open.c (main): Likewise.
22858         * tests/test-fcntl-safer.c (main): Likewise.
22859         Reported by Samuel Thibault.
22860
22861         rename, fchdir: don't ignore chdir failure
22862         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22863         * lib/rename.c (rpl_rename) [W32]: Likewise.
22864         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22865         an empty destination directory if source cannot be renamed,
22866         although there is still possibility for failure.
22867         * doc/posix-functions/rename.texi (rename): Document the race.
22868         Reported by Jim Meyering.
22869
22870         maint: cleanup whitespace in recent commits
22871         * lib/rename.c (rpl_rename): Remove tabs.
22872         * tests/test-link.h (test_link): Likewise.
22873         * lib/fchdir.c (get_name): Likewise.
22874         Reported by Jim Meyering.
22875
22876 2009-10-02  Ben Pfaff  <blp@gnu.org>
22877
22878         relocatable-prog-wrapper: Add missing dependency on
22879         double-slash-root.
22880         * modules/relocatable-prog-wrapper: Add dependency.
22881         Reported by Ian Beckwith <ianb@erislabs.net>.
22882
22883 2009-10-02  Eric Blake  <ebb9@byu.net>
22884
22885         renameat: fix Solaris bugs
22886         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22887         needed fixing.
22888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22889         * modules/stdio (Makefile.am): Substitute it.
22890         * lib/stdio.in.h (renameat): Declare replacement.
22891         * lib/renameat.c (rpl_renameat): Implement fix.
22892
22893         renameat: new module
22894         * modules/renameat: New file.
22895         * lib/renameat.c (renameat): Likewise.
22896         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22898         * modules/stdio (Makefile.am): Substitute them.
22899         * lib/stdio.in.h (renameat): Declare it.
22900         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22901         * doc/posix-functions/renameat.texi (renameat): Likewise.
22902         * modules/renameat-tests: New test.
22903         * tests/test-renameat.c: Likewise.
22904
22905         rename: fix mingw bugs
22906         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22907         directory overwrite bugs.
22908
22909         rename: fix another cygwin 1.5 bug
22910         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22911         checks.
22912         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22913         unnecessary cygwin workarounds.  Also work around bug with moving
22914         full directory onto an empty one.
22915         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22916
22917         rename-dest-slash: merge into rename module
22918         * modules/rename-dest-slash (Status): Mark obsolete.
22919         (Depends-on): Add rename.
22920         (Files): Let rename do it all.
22921         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22922         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22923         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22924         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22925         * lib/rename.c (rpl_rename): Update comments.
22926
22927         rename: fix cygwin 1.5.x bugs
22928         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22929         * lib/rename.c (rpl_rename): Work around them.
22930         * modules/rename (Depends-on): Add same-inode.
22931
22932         rename: fix Solaris 10 bug
22933         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22934         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22935         was the only bug.
22936
22937         rename: fix Solaris 9 bug
22938         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22939         on non-directory.  Avoid calling exit.
22940         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22941         strdup.
22942         * modules/rename-tests (Depends-on): Drop lstat.
22943         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22944         (gl_PREREQ_RENAME): Delete unused macro.
22945
22946         rename-dest-slash: fix NetBSD bug
22947         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22948         links.
22949         * modules/rename-dest-slash (Depends-on): Add same-inode.
22950
22951         rename-tests: new test, exposes several platform bugs
22952         * modules/rename-tests: New file.
22953         * tests/test-rename.h: Likewise.
22954         * tests/test-rename.c: Likewise.
22955         * doc/posix-functions/rename.texi (rename): Improve documentation,
22956         including bugs that will eventually be fixed in gnulib.
22957
22958 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22959
22960         * lib/uname.c: Include <stdlib.h>
22961         (uname): Assume version info is available.
22962
22963 2009-10-02  Jim Meyering  <meyering@redhat.com>
22964
22965         gnu-web-doc-update: correct --help output
22966         * build-aux/gnu-web-doc-update: Make --help output relevant.
22967
22968         gnu-web-doc-update: add standard options
22969         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22970
22971         gnu-web-doc-update: New module.
22972         Use this script to automatically update the on-line web documentation
22973         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22974         * modules/gnu-web-doc-update: New file, from coreutils.
22975         * build-aux/gnu-web-doc-update: New script.
22976
22977 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22978
22979         link: LoadLibrary is not needed.
22980         * lib/link.c: Use GetModuleHandle.
22981
22982 2009-10-01  Eric Blake  <ebb9@byu.net>
22983
22984         getopt: bump serial number
22985         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22986         change.
22987
22988         tests: tighten link, rmdir, and remove tests
22989         * tests/test-link.h (includes): No need to use <config.h> here.
22990         Clean up if directory hard link was created, otherwise test for
22991         trailing '.'.
22992         * tests/test-linkat.c (main): Simplify.
22993         * tests/test-remove.c (main): Enhance test for trailing '.'.
22994         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22995
22996 2009-10-01  Jim Meyering  <meyering@redhat.com>
22997
22998         maint.mk: requiring "make major" was annoying, for a "minor" release.
22999         What is intended is "stable", to contrast with alpha and beta,
23000         so require "make stable", not "make major".
23001         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23002         (get_tool_versions): Likewise.
23003         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23004
23005 2009-09-30  Ben Pfaff  <blp@gnu.org>
23006
23007         Fix broken build of replacement for Windows tmpfile().
23008         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23009         flags argument added along with the 'mkostemp' module.
23010
23011 2009-09-28  Bruno Haible  <bruno@clisp.org>
23012
23013         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23014         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23015         to 'remove_elt'.
23016         (gl_list_remove): Update.
23017         * lib/gl_list.c (gl_list_remove): Update.
23018         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23019         to 'remove_elt'.
23020         (gl_oset_remove): Update.
23021         * lib/gl_list.c (gl_oset_remove): Update.
23022         Reported by Eric Blake.
23023
23024 2009-09-28  Eric Blake  <ebb9@byu.net>
23025
23026         doc: mention yet more cygwin 1.7 status
23027         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23028         cygwin.
23029         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23030         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23031
23032         argp: fix test failure
23033         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23034         that are not upper-case.  Pass correct range to tolower.
23035
23036 2009-09-27  Jim Meyering  <meyering@redhat.com>
23037
23038         test-yesno: work around sparc-dash here-document infelicity
23039         Without this change, the literal \177 byte in a here document
23040         would make dash 0.5.5.1-3 access uninitialized memory.
23041         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23042         Instead, use a marker, "@", and filter through tr to create the desired
23043         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23044
23045 2009-09-27  Bruno Haible  <bruno@clisp.org>
23046
23047         Disable untested support for new flavours of ACLs on AIX.
23048         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23049         progress.
23050         * lib/set-mode-acl.c (qset_acl): Likewise.
23051
23052 2008-12-07  Bruno Haible  <bruno@clisp.org>
23053
23054         Add support for new flavours of ACLs on AIX. (Untested.)
23055         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23056         (file_has_acl): Add support for newer AIX.
23057         * lib/set-mode-acl.c (qset_acl): Likewise.
23058         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23059         Rainer Tammer <tammer@tammer.net>.
23060
23061 2009-09-26  Eric Blake  <ebb9@byu.net>
23062
23063         argp: fix compilation of getopt
23064         * lib/getopt.in.h (includes): Use different guard than glibc.
23065         Reported by Sergey Poznyakoff.
23066
23067         doc: mention more cygwin 1.7 status
23068         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23069         bug.
23070         * doc/posix-functions/execl.texi (execl): Likewise.
23071         * doc/posix-functions/execle.texi (execle): Likewise.
23072         * doc/posix-functions/execlp.texi (execlp): Likewise.
23073         * doc/posix-functions/execv.texi (execv): Likewise.
23074         * doc/posix-functions/execve.texi (execve): Likewise.
23075         * doc/posix-functions/execvp.texi (execvp): Likewise.
23076         * doc/glibc-functions/canonicalize_file_name.texi
23077         (canonicalize_file_name): Cygwin 1.7 now provides this.
23078         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23079         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23080         on AT_SYMLINK_NOFOLLOW.
23081
23082 2009-09-24  Eric Blake  <ebb9@byu.net>
23083
23084         test-linkat: make test more robust
23085         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23086
23087         getopt: fix inclusion guards for cygwin
23088         * modules/getopt-posix (Depends-on): Add include-next.
23089         (Makefile.am): Substitute more items in replacement header.
23090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23091         <getopt.h>.
23092         * lib/getopt.in.h (includes): Use split inclusion guard, and
23093         prefer <getopt.h> over include <unistd.h> when one is present.
23094         (option): Also override name of 'struct option'.
23095
23096         same-inode: revert prior change; it is not yet ready
23097         * NEWS: Undo mention of this change.
23098         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23099         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23100         * lib/cycle-check.c (cycle_check): Likewise.
23101         * lib/same.c (same_name): Likewise.
23102         * lib/at-func2.c (at_func2): Likewise.
23103
23104 2009-09-23  Eric Blake  <ebb9@byu.net>
23105
23106         linkat: new module
23107         * modules/linkat: New file.
23108         * lib/at-func2.c (at_func2): Likewise.
23109         * lib/linkat.c (linkat): Likewise.
23110         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23111         * lib/openat-priv.h (at_func2): Add declaration.
23112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23113         * modules/unistd (Makefile.am): Substitute them.
23114         * lib/unistd.in.h (linkat): Declare it.
23115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23116         * doc/posix-functions/linkat.texi (linkat): Likewise.
23117         * doc/posix-functions/link.texi (link): Tweak wording.
23118         * tests/test-link.c (main): Move guts...
23119         * tests/test-link.h (test_link): ...into new file.
23120         * modules/linkat-tests: New test.
23121         * tests/test-linkat.c: Likewise.
23122         * modules/link-tests (Files): Ship new file.
23123         (Depends-on): Add stdbool.
23124
23125         dirname: add library-safe mdir_name
23126         * lib/dirname.h (mdir_name): New prototype.
23127         * lib/dirname.c (dir_name): Move guts...
23128         (mdir_name): ...to new function that avoids xalloc_die.
23129
23130         fchdir: another mingw fix
23131         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23132         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23133         on mingw (where it has not yet been ported), and make it optional
23134         elsewhere.
23135         (_gl_register_fd): Use it.
23136
23137         same-inode: make SAME_INODE tri-state, to port to mingw
23138         * NEWS: Mention this change.
23139         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23140         st_ino always being 0.
23141         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23142         * lib/cycle-check.c (cycle_check): Likewise.
23143         * lib/same.c (same_name): Likewise.
23144
23145         lstat: avoid mingw compilation error
23146         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23147         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23148         lstat ourselves.
23149         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23150         was adequate.
23151         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23152         the checks for lstat.
23153         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23154
23155         link: fix test failure on Solaris 9
23156         * lib/link.c (rpl_link): Don't assume link will catch bogus
23157         trailing slash on source.
23158
23159         test-symlinkat: enhance test
23160         * tests/test-readlink.c (main): Move guts...
23161         * tests/test-readlink.h (test_readlink): ...into new file.
23162         * tests/test-symlink.c (main): Move guts...
23163         * tests/test-symlink.h (test_symlink): ...into new file.
23164         * tests/test-symlinkat.c (main): Use new files for further
23165         coverage.
23166         (do_symlink, do_readlink): New helper functions.
23167         * modules/symlink-tests (Files): Ship new file.
23168         (Depends-on): Add stdbool.
23169         * modules/readlink-tests (Files): Ship new file.
23170         (Depends-on): Add stdbool.
23171         * modules/symlinkat-tests (Files): Use new files.
23172
23173 2009-09-23  Eric Blake  <ebb9@byu.net>
23174
23175         readlink: document portability issue with symlink length
23176         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23177         systems have bogus st_size on symlinks, and mention the
23178         areadlink-with-size module.
23179         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23180         * doc/posix-functions/readlink.texi (readlink): Mention the
23181         areadlink module, and ERANGE failure.
23182         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23183         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23184
23185         readlink: fix Solaris 9 bug with trailing slash
23186         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23187         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23188         * doc/posix-functions/readlink.texi (readlink): Document this.
23189         * modules/readlink-tests: New test.
23190         * tests/test-readlink.c: Likewise.
23191
23192         readlink: fix cygwin 1.5.x bug with return type
23193         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23194         * lib/unistd.in.h (readlink): Use ssize_t.
23195         * lib/readlink.c (readlink): Likewise.
23196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23197         * modules/unistd (Makefile.am): Substitute it.
23198         * lib/unistd.in.h (readlink): Declare replacement.
23199         * doc/posix-functions/readlink.texi (readlink): Document this.
23200
23201         symlink: use throughout gnulib
23202         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23203         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23204         symlink is not used.
23205         * modules/symlinkat (Depends-on): Add symlink.
23206         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23207         * modules/canonicalize-tests (Depends-on): Likewise.
23208         * modules/lstat-tests (Depends-on): Likewise.
23209         * modules/openat-tests (Depends-on): Likewise.
23210         * modules/remove-tests (Depends-on): Likewise.
23211         * modules/rmdir-tests (Depends-on): Likewise.
23212         * modules/unlink-tests (Depends-on): Likewise.
23213         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23214         * tests/test-canonicalize.c (symlink): Likewise.
23215         * tests/test-fstatat.c (symlink): Likewise.
23216         * tests/test-lstat.c (symlink): Likewise.
23217         * tests/test-remove.c (symlink): Likewise.
23218         * tests/test-rmdir.c (symlink): Likewise.
23219         * tests/test-unlink.c (symlink): Likewise.
23220         * tests/test-unlinkat.c (symlink): Likewise.
23221
23222         symlink: new module, for Solaris 9 bug
23223         * modules/symlink: New file.
23224         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23225         * lib/symlink.c: Likewise.
23226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23227         * modules/unistd (Makefile.am): Substitute them.
23228         * lib/unistd.in.h (symlink): Declare replacement.
23229         * MODULES.html.sh (File system functions): Mention it.
23230         * doc/posix-functions/symlink.texi (symlink): Likewise.
23231         * modules/symlink-tests: New test.
23232         * tests/test-symlink.c: Likewise.
23233
23234 2009-09-23  Bruno Haible  <bruno@clisp.org>
23235
23236         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23237         when needed.
23238         Test case: gnulib-tool --import --with-tests atexit inttypes.
23239         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23240
23241 2009-09-23  Bruno Haible  <bruno@clisp.org>
23242
23243         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23244         subcommand, not in a subshell.
23245
23246 2009-09-22  Eric Blake  <ebb9@byu.net>
23247
23248         unistd: sort replacement declarations
23249         * lib/unistd.in.h: Sort declarations.
23250
23251         open, openat: minor optimization
23252         * lib/open.c (open): If open succeeded, len is non-zero.
23253         * lib/openat.c (rpl_openat): Likewise.
23254
23255         link-follow: ensure correct result
23256         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23257         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23258         distinguish between possible failures.
23259
23260 2009-09-21  Eric Blake  <ebb9@byu.net>
23261
23262         fts: avoid compiler warning
23263         * lib/fts.c (dirent_inode_sort_may_be_useful)
23264         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23265
23266 2009-09-19  Bruno Haible  <bruno@clisp.org>
23267
23268         * lib/progreloc.c (canonicalize_file_name): New declaration.
23269
23270 2009-09-19  Eric Blake  <ebb9@byu.net>
23271
23272         link: fix quoting
23273         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23274
23275         openat: fix openat bugs on Solaris 9
23276         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23277         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23278         * modules/openat (Depends-on): Add open.
23279         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23280         * modules/fcntl-h (Makefile.am): Substitute it.
23281         * lib/fcntl.in.h (openat): Declare replacement.
23282         * doc/posix-functions/openat.texi (openat): Document this.
23283
23284         openat: move fstatat and unlinkat into correct files
23285         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23286         compiled.
23287         * lib/openat.c (fstatat, unlinkat): Move...
23288         * lib/fstatat.c (fstatat): ...into correct files.
23289         * lib/unlinkat.c (unlinkat): Likewise.
23290
23291         openat: fix unlinkat bugs on Solaris 9
23292         * lib/unlinkat.c (unlinkat): New file.
23293         * modules/openat (Depends-on): Add unlink.
23294         (Files): Distribute it.
23295         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23296         trailing slash behavior is broken.
23297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23298         * modules/unistd (Makefile.am): Substitute it.
23299         * lib/unistd.in.h (unlinkat): Declare replacement.
23300         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23301
23302         openat: fix fstatat bugs on Solaris 9
23303         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23304         stat.
23305         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23306
23307         test-unlinkat: enhance test, to expose Solaris 9 bug
23308         * tests/test-unlink.c (main): Factor guts...
23309         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23310         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23311         * tests/test-rmdir.c (main): Adjust caller.
23312         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23313         (unlinker): New helper function.
23314         (rmdirat): Enhance check.
23315         * modules/rmdir-tests (Depends-on): Add stdbool.
23316         * modules/unlink-tests (Depends-on): Likewise.
23317         (Files): Add test-unlink.h.
23318         * modules/openat-tests (Files): Likewise.
23319         (Depends-on): Add unlinkdir.
23320
23321         test-fstatat: new test, to expose Solaris 9 bugs
23322         * tests/test-stat.c (main): Factor guts...
23323         * tests/test-stat.h (test_stat_func): ...into new file.
23324         * tests/test-lstat.c (main): Factor guts...
23325         * tests/test-lstat.h (test_lstat_func): ...into new file.
23326         * tests/test-fstatat.c: New file.
23327         * modules/stat-tests (Files): Add test-stat.h.
23328         * modules/lstat-tests (Files): Add test-lstat.h.
23329         (Depends-on): Add stdbool.
23330         * modules/openat-tests (Depends-on): Add pathmax.
23331         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23332         (Makefile.am): Run new test.
23333
23334         remove: new module, for mingw and Solaris 9 bugs
23335         * modules/remove: New file.
23336         * lib/remove.c: Likewise.
23337         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23339         * modules/stdio (Makefile.am): Use them.
23340         * lib/stdio.in.h (remove): Declare replacement.
23341         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23342         * doc/posix-functions/remove.texi (remove): Likewise.
23343         * modules/remove-tests: New test.
23344         * tests/test-remove.c: Likewise.
23345
23346         unlink: new module, for Solaris 9 bug
23347         * modules/unlink: New file.
23348         * lib/unlink.c: Likewise.
23349         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23351         * modules/unistd (Makefile.am): Use them.
23352         * lib/unistd.in.h (stat): Declare replacement.
23353         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23354         * doc/posix-functions/unlink.texi (unlink): Likewise.
23355         * modules/unlink-tests: New test.
23356         * tests/test-unlink.c: Likewise.
23357
23358         lstat: fix Solaris 9 bug
23359         * lib/lstat.c (lstat): Also check for trailing slash on
23360         non-symlink, non-directories.  Use stat module to simplify logic.
23361         * doc/posix-functions/lstat.texi (lstat): Document it.
23362         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23363         (configure.ac): Check for symlink.
23364         * tests/test-lstat.c (main): Add more tests.
23365
23366         stat: add as dependency to other modules
23367         * modules/chown (Depends-on): Add stat.
23368         * modules/euidaccess (Depends-on): Likewise.
23369         * modules/fchdir (Depends-on): Likewise.
23370         * modules/isdir (Depends-on): Likewise.
23371         * modules/link (Depends-on): Likewise.
23372         * modules/lstat (Depends-on): Likewise.
23373         * modules/mkdir-p (Depends-on): Likewise.
23374         * modules/modechange (Depends-on): Likewise.
23375         * modules/open (Depends-on): Likewise.
23376         * modules/readlink (Depends-on): Likewise.
23377         * modules/same (Depends-on): Likewise.
23378
23379         stat: fix Solaris 9 bug
23380         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23381         slash.
23382         * lib/stat.c (rpl_stat): Work around it.
23383         * doc/posix-functions/stat.texi (stat): Update documentation.
23384
23385         stat: new module, for mingw bug
23386         * modules/stat: New file.
23387         * lib/stat.c: Likewise.
23388         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23389         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23390         * modules/sys_stat (Makefile.am): Use them.
23391         * lib/sys_stat.in.h (stat): Declare replacement.
23392         * lib/openat.c (fstatat): Deal with lstat and stat being function
23393         macros.
23394         * modules/openat (Depends-on): Add inline.
23395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23396         * doc/posix-functions/stat.texi (stat): Likewise.
23397         * modules/stat-tests: New test.
23398         * tests/test-stat.c: Likewise.
23399
23400 2009-09-19  Jim Meyering  <meyering@redhat.com>
23401
23402         syntax-check: detect unnecessary inclusion of canonicalize.h
23403         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23404
23405 2009-09-19  Eric Blake  <ebb9@byu.net>
23406
23407         canonicalize-lgpl: adjust clients to use correct header
23408         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23409         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23410         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23411         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23412         * lib/progreloc.c (includes): Likewise.
23413
23414 2009-09-19  Jim Meyering  <meyering@redhat.com>
23415
23416         test-posixtm.c: correct a comment
23417         * tests/test-posixtm.c: Correct first-line comment.
23418         Spotted by Eric Blake.
23419
23420 2009-09-16  Jim Meyering  <meyering@redhat.com>
23421
23422         posixtm-tests: make T const-correct; add a test case
23423         * tests/test-posixtm.c (T): Declare const.
23424         Add a test for -(2^31+1).
23425         Remove useless can-succeed-only-in-2002 test.
23426
23427         posixtm-tests: adjust the sole failing test
23428         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23429         expected output matches what mktime now produces.  Cross-checked via
23430         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23431
23432         posixtm: move #ifdef'd tests into a new module
23433         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23434         * tests/test-posixtm.c: ... this new file.
23435         * modules/posixtm-tests: New module.
23436
23437 2009-09-19  Eric Blake  <ebb9@byu.net>
23438
23439         openat: simplify use of at-func.c
23440         * lib/at-func.c (includes): Include prerequisites here, to
23441         simplify requirements on client files.
23442         * lib/openat-priv.h: Add double-inclusion guard.
23443         * lib/faccessat.c (includes): Simplify.
23444         * lib/fchmodat.c (includes): Likewise.
23445         * lib/fchownat.c (includes): Likewise.
23446         * lib/mkdirat.c (includes): Likewise.
23447         * lib/mkfifoat.c (includes): Likewise.
23448         * lib/symlinkat.c (includes): Likewise.
23449
23450         openat: allow return of fd 0
23451         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23452         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23453         unistd-safer.
23454         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23455         <fcntl.h>; this module does not leak fds.
23456         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23457         must be allowed to return 0, leaving openat_safer to add the
23458         safety.
23459         (openat_permissive): Avoid writing to just-opened fd 2 if
23460         restoring the current directory fails.
23461         * lib/openat-die.c (openat_restore_fail): Add comment.
23462         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23463         (save_cwd): Guarantee safe fd, but without use of open_safer.
23464         * tests/test-openat.c: New test.
23465         * modules/openat-tests (Files, Makefile.am): Distribute and build
23466         new file.
23467
23468         relocatable-prog-wrapper: fix build
23469         * modules/relocatable-prog-wrapper (Files): Update name of
23470         canonicalize m4 file, broken on 2009-09-17.
23471         Reported by emad hajjar <aleppos@hotmail.com>.
23472
23473 2009-09-19  Bruno Haible  <bruno@clisp.org>
23474
23475         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23476         * lib/safe-alloc.c: Likewise.
23477         Reported by Ian Beckwith <ianb@erislabs.net>.
23478
23479 2009-09-18  Bruno Haible  <bruno@clisp.org>
23480
23481         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23482         Reported by <erobles@sensacd.com.mx>.
23483
23484 2009-09-17  Eric Blake  <ebb9@byu.net>
23485
23486         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23487         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23488         slashes when checking if last component is missing.
23489         * tests/test-canonicalize.c (main): Test this.
23490
23491         canonicalize, canonicalize-lgpl: honor // if distinct from /
23492         * modules/canonicalize (Files): Add double-slash-root.m4.
23493         * modules/canonicalize-lgpl (Files): Likewise.
23494         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23495         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23496         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23497         fallback definition.
23498         (canonicalize_filename_mode): Use it to protect //.
23499         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23500         (__realpath): Likewise.
23501         * tests/test-canonicalize.c (main): Test this.
23502         * tests/test-canonicalize-lgpl.c (main): Likewise.
23503         * modules/canonicalize-tests (Depends-on): Add same-inode.
23504         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23505
23506         canonicalize-lgpl: fix glibc bug with trailing slash
23507         * m4/canonicalize-lgpl.m4: Move contents...
23508         * m4/canonicalize.m4: ...here.
23509         (gl_CANONICALIZE_LGPL): Factor realpath check...
23510         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23511         glibc 2.3.5 bug, fixed 2005-04-27.
23512         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23513         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23514         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23515         * modules/canonicalize-lgpl (Files): Manage file rename.
23516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23517         * modules/stdlib (Makefile.am): Substitute witness.
23518         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23519         is needed.
23520         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23521         replacement is required.
23522         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23523         * doc/glibc-functions/canonicalize_file_name.texi
23524         (canonicalize_file_name): Document this.
23525         * doc/posix-functions/realpath.texi (realpath): Likewise.
23526
23527         canonicalize-lgpl: reject non-directory with trailing slash
23528         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23529         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23530         catches failures in glibc 2.3.5.
23531         * tests/test-canonicalize.c (main): Likewise.
23532
23533         canonicalize-lgpl: use native realpath if it works
23534         * lib/canonicalize-lgpl.c (realpath): Guard with
23535         FUNC_REALPATH_WORKS.
23536         * lib/stdlib.in.h (realpath): Make declaration optional based on
23537         HAVE_REALPATH.
23538         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23539         native realpath works.
23540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23541         * modules/stdlib (Makefile.am): Substitute witness.
23542
23543         canonicalize, canonicalize-lgpl: use <stdlib.h>
23544         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23545         (Include): Mention <stdlib.h>.
23546         (configure.ac): Mention functions we provide.
23547         * modules/canonicalize (configure.ac): Likewise.
23548         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23549         realpath if canonicalize_file_name is missing.
23550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23551         * modules/stdlib (Makefile.am): Substitute witnesses.
23552         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23553         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23554         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23555         * NEWS: Document this.
23556         * doc/glibc-functions/canonicalize_file_name.texi
23557         (canonicalize_file_name): Likewise.
23558         * doc/posix-functions/realpath.texi (realpath): Likewise.
23559         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23560
23561         test-canonicalize: consolidate into single C program
23562         * tests/test-canonicalize.sh: Delete; move setup into...
23563         * tests/test-canonicalize.c (main): ...the program, making it
23564         easier to run in debugger.  Add some tests.
23565         * modules/canonicalize-tests (Files): Remove unused file.
23566         (Depends-on): Add progname.
23567         (configure.ac, Makefile.am): Simplify.
23568
23569         test-canonicalize-lgpl: consolidate into single C program
23570         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23571         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23572         easier to run in debugger.  Add some tests.
23573         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23574         (configure.ac, Makefile.am): Simplify.
23575
23576         canonicalize: avoid resolvepath
23577         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23578         unnecessary checks.
23579         * lib/canonicalize.c (includes): Simplify.
23580         (canonicalize_file_name): Drop resolvepath implementation.
23581         * modules/canonicalize (Depends-on): Drop filenamecat.
23582
23583         canonicalize: don't lose errno
23584         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23585         over calls to free.
23586
23587         canonicalize: simplify errno handling
23588         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23589         assignment.
23590
23591         canonicalize, canonicalize-lgpl: update module dependencies
23592         * modules/canonicalize (Depends-on): Add extensions, lstat,
23593         pathmax, stdlib.
23594         (Files): Drop pathmax.h.
23595         (configure.ac): Adjust macro name.
23596         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23597         lstat, stdlib, sys_stat.
23598         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23599         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23600         extensions.
23601         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23602         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23603         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23604         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23605         declaration, if available.
23606         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23607         we can rely on the readlink module.
23608         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23609         (includes): Use <unistd.h> unconditionally.
23610
23611 2009-09-17  Eric Blake  <ebb9@byu.net>
23612
23613         maint: make Include sections of modules consistent
23614         * modules/alloca: Use only header name; no need to list #include.
23615         * modules/alloca-opt: Likewise.
23616         * modules/arpa_inet: Likewise.
23617         * modules/canon-host: Likewise.
23618         * modules/configmake: Likewise.
23619         * modules/dirent: Likewise.
23620         * modules/eealloc: Likewise.
23621         * modules/environ: Likewise.
23622         * modules/fchdir: Likewise.
23623         * modules/fcntl: Likewise.
23624         * modules/fcntl-h: Likewise.
23625         * modules/gethrxtime: Likewise.
23626         * modules/gettime: Likewise.
23627         * modules/ignore-value: Likewise.
23628         * modules/inet_ntop: Likewise.
23629         * modules/inet_pton: Likewise.
23630         * modules/inttypes: Likewise.
23631         * modules/isnand-nolibm: Likewise.
23632         * modules/isnanf-nolibm: Likewise.
23633         * modules/mbchar: Likewise.
23634         * modules/mbfile: Likewise.
23635         * modules/mbiter: Likewise.
23636         * modules/mbuiter: Likewise.
23637         * modules/netdb: Likewise.
23638         * modules/netinet_in: Likewise.
23639         * modules/nproc: Likewise.
23640         * modules/pagealign_alloc: Likewise.
23641         * modules/poll: Likewise.
23642         * modules/printf-frexp: Likewise.
23643         * modules/pthread: Likewise.
23644         * modules/putenv: Likewise.
23645         * modules/random_r: Likewise.
23646         * modules/relocatable-prog: Likewise.
23647         * modules/search: Likewise.
23648         * modules/select: Likewise.
23649         * modules/selinux-h: Likewise.
23650         * modules/settime: Likewise.
23651         * modules/signal: Likewise.
23652         * modules/size_max: Likewise.
23653         * modules/socklen: Likewise.
23654         * modules/ssize_t: Likewise.
23655         * modules/stdarg: Likewise.
23656         * modules/stdbool: Likewise.
23657         * modules/stddef: Likewise.
23658         * modules/stdint: Likewise.
23659         * modules/stdio: Likewise.
23660         * modules/stdlib: Likewise.
23661         * modules/string: Likewise.
23662         * modules/strings: Likewise.
23663         * modules/sys_file: Likewise.
23664         * modules/sys_ioctl: Likewise.
23665         * modules/sys_select: Likewise.
23666         * modules/sys_socket: Likewise.
23667         * modules/sys_stat: Likewise.
23668         * modules/sys_time: Likewise.
23669         * modules/sys_times: Likewise.
23670         * modules/sys_utsname: Likewise.
23671         * modules/sys_wait: Likewise.
23672         * modules/sysexits: Likewise.
23673         * modules/time: Likewise.
23674         * modules/times: Likewise.
23675         * modules/tmpfile: Likewise.
23676         * modules/trim: Likewise.
23677         * modules/unistd: Likewise.
23678         * modules/wchar: Likewise.
23679         * modules/wctype: Likewise.
23680
23681 2009-09-17  Bruno Haible  <bruno@clisp.org>
23682
23683         Make getdate.y compile on QNX and NetBSD 5 / i386.
23684         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23685         TIME_T_FITS_IN_LONG_INT.
23686         * lib/getdate.y (long_time_t): New type.
23687         (relative_time): Change type of 'seconds' field to long_time_t.
23688         (get_date): Update types of local variables. Check against overflow
23689         during conversion from long_time_t to time_t.
23690         Reported by Matt Kraai <kraai@ftbfs.org>
23691         and Hasso Tepper <hasso@netbsd.org>.
23692
23693 2009-09-17  Bruno Haible  <bruno@clisp.org>
23694
23695         * modules/COPYING: Update copyright years.
23696         * modules/README: Likeiwse.
23697         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23698         Reported by Ian Beckwith <ianb@erislabs.net>.
23699
23700 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23701
23702         * users.txt: Update references for gnuit package.
23703
23704 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23705
23706         * m4/getdelim.m4: Fix typo in copyright line.
23707
23708 2009-09-17  Bruno Haible  <bruno@clisp.org>
23709
23710         * lib/atoll.c: Use the standard header with GPL copyright.
23711         * lib/argz.in.h: Likewise.
23712         * lib/glob.c: Likewise.
23713         * lib/glob-libc.h: Likewise.
23714         * lib/random_r.c: Likewise.
23715         * lib/siglist.h: Likewise.
23716         * lib/strsignal.c: Likewise.
23717         Reported by Ian Beckwith <ianb@erislabs.net>.
23718
23719 2009-09-17  Eric Blake  <ebb9@byu.net>
23720
23721         rmdir: ensure correct dependency order
23722         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23723
23724 2009-09-17  Bruno Haible  <bruno@clisp.org>
23725
23726         Disable assertion that fails on NetBSD 5 / i386.
23727         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23728         Reported by Sam Steingold <sds@gnu.org>
23729         and Hasso Tepper <hasso@netbsd.org>.
23730
23731 2009-09-16  Eric Blake  <ebb9@byu.net>
23732
23733         unlinkdir: port to mingw
23734         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23735         on which no one can unlink a directory.
23736
23737         stdlib: sort witness names
23738         * modules/stdlib (Makefile.am): Sort replacements.
23739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23740         * lib/stdlib.in.h: Likewise.
23741
23742         parse-duration-tests: avoid link failure
23743         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23744         LIBINTL.
23745         Reported by Tom G. Christensen.
23746
23747         openat-tests: ensure unlinkat behaves like rmdir
23748         * tests/test-rmdir.c (main): Factor guts...
23749         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23750         * modules/rmdir-tests (Files): Ship new file.
23751         * modules/openat-tests: New test.
23752         * tests/test-unlinkat.c: Likewise.
23753
23754         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23755         * modules/rmdir-errno (Status, Notice): Now obsolete.
23756
23757         rmdir: work around cygwin 1.5.x and mingw bugs
23758         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23759         * lib/rmdir.c (rmdir): Work around it.
23760         * modules/rmdir (Status, Notice): No longer obsolete.
23761         (Files): Add dos.m4.
23762         (Depends-on): Add unistd.
23763         (configure.ac): Set witnesses.
23764         (License): Relax to LGPLv2+.
23765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23766         * modules/unistd (Makefile.am): Substitute witnesses.
23767         * lib/unistd.in.h (rmdir): Declare replacement.
23768         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23769         * modules/rmdir-tests: New tests.
23770         * tests/test-rmdir.c: Likewise.
23771
23772 2009-09-15  Eric Blake  <ebb9@byu.net>
23773
23774         fchdir: improve use of replacement functions
23775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23777         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23778         REPLACE_CLOSEDIR.
23779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23780         * modules/sys_stat (Makefile.am): Substitute correct witness.
23781         * modules/dirent (Makefile.am): Likewise.
23782         * modules/unistd (Makefile.am): Likewise.
23783         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23784         * lib/unistd.in.h (dup): Likewise.
23785         * lib/sys_stat.in.h (fstat): Likewise.
23786
23787         maint: ignore gnulib-tool temp files
23788         * .gitignore: Ignore files created during gnulib-tool --test.
23789
23790 2009-09-13  Jim Meyering  <meyering@redhat.com>
23791
23792         posixtm: don't reject a time that specify "60" as the number of seconds
23793         * lib/posixtm.c (posixtime): The code to reject invalid dates
23794         would also reject a time specified with the .60 suffix.
23795         But POSIX allows that, in order to accommodate leap seconds.
23796         So don't reject it.
23797         (main): Adjust tests accordingly.
23798         * modules/posixtm (Depends-on): Add stpcpy.
23799
23800 2009-09-11  Jim Meyering  <meyering@redhat.com>
23801
23802         announce-gen: include [$release_type] in emitted Subject:
23803         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23804         e.g., [stable] in the emitted Subject: line.
23805
23806 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23807
23808         Remove obsolete macros from several modules.
23809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23810         obsolete Autoconf macros with their modern counterparts.
23811         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23812         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23813         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23814         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23815         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23816         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23818         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23819         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23820         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23821         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23822         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23823         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23824         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23825         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23826         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23827         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23828         * m4/time_r.m4 (gl_TIME_R): Likewise.
23829         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23830         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23831         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23832
23833         Fix copyright header in build-aux scripts.
23834         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23835         recommendation.
23836         * build-aux/ncftpput-ftp: Likewise.
23837         * build-aux/update-copyright: Likewise.
23838
23839 2009-09-09  Eric Blake  <ebb9@byu.net>
23840
23841         test-link: allow Linux choice of errno
23842         * tests/test-link.c (main): Relax test for alternate error.
23843
23844         strndup: fix improper m4 caching
23845         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23846         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23847         (gl_PREREQ_STRNDUP): Delete.
23848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23849         * modules/string (Makefile.am): Substitute it.
23850         * lib/string.in.h (strndup): Modernize prototype.
23851
23852         getcwd: port to mingw
23853         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23854         different from the POSIX assumptions made throughout the getcwd
23855         module; fortunately, the mingw getcwd does not need replacement.
23856         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23857         * modules/getcwd-tests: New test.
23858         * tests/test-getcwd.c: Likewise.
23859
23860         link: fix platform bugs
23861         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23862         * lib/link.c (link): Work around them.  Fix related mingw bug.
23863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23864         * modules/unistd (Makefile.am): Substitute it.
23865         * lib/unistd.in.h (link): Declare replacement.
23866         * doc/posix-functions/link.texi (link): Document this.
23867         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23868
23869         test-link: consolidate into single C program, test more cases
23870         * tests/test-link.sh: Delete.
23871         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23872         at least Cygwin and Solaris.
23873         * modules/link-tests (Files): Remove unused file.
23874         (Depends-on): Add errno, sys_stat.
23875         (Makefile.am): Simplify.
23876
23877 2009-09-08  Bruno Haible  <bruno@clisp.org>
23878
23879         Work around towlower, towupper bug on mingw.
23880         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23881         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23882         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23883         * doc/posix-functions/towupper.texi: Likewise.
23884         Reported by Eric Blake.
23885
23886 2009-09-08  Jim Meyering  <meyering@redhat.com>
23887
23888         build: don't try to run autoheader if we don't use it
23889         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23890         is not used in configure.ac.
23891
23892 2009-09-08  Eric Blake  <ebb9@byu.net>
23893
23894         euidaccess: fix compilation error
23895         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23896
23897         rawmemchr: relax license
23898         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23899         okay.
23900         Reported by Jim Meyering.
23901
23902         mkfifoat: new module
23903         * modules/mkfifoat: New file.
23904         * lib/mkfifoat.c: Likewise.
23905         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23906         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23907         * modules/sys_stat (Makefile.am): Use them.
23908         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23909         * MODULES.html.sh (File system functions): Mention module.
23910         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23911         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23912         * modules/mkfifoat-tests: New test.
23913         * tests/test-mkfifoat.c: Likewise.
23914
23915         strchrnul: relax license
23916         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23917         okay.
23918         Reported by Jim Meyering.
23919
23920 2009-09-08  Eric Blake  <ebb9@byu.net>
23921
23922         fstatat: fix compilation on Solaris
23923         * lib/fstatat.c (includes): Add fcntl.h.
23924         Reported by Pádraig Brady.
23925
23926 2009-09-07  Eric Blake  <ebb9@byu.net>
23927
23928         rename: modernize replacement
23929         * modules/rename (Depends-on): Add stdio.
23930         (configure.ac): Declare witness.
23931         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23932         stdio take care of replacement.
23933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23934         * modules/stdio (Makefile.am): Substitute them.
23935         * lib/stdio.in.h (rename): Declare replacement.
23936         * lib/rename.c (includes): Allow cross-compilation to non-windows
23937         machines.
23938         * doc/posix-functions/rename.texi (rename): Improve
23939         documentation.
23940
23941         stdio: sort witness names
23942         * modules/stdio (Makefile.am): Sort replacements.
23943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23944         * lib/stdio.in.h: Likewise.
23945
23946         getcwd: minor cleanups
23947         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23948         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23949
23950         openat: provide more convenience names
23951         * modules/faccessat (configure.ac): Add C witness.
23952         * lib/unistd.in.h (readlinkat): Fix typo.
23953         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23954         convenience wrappers.
23955         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23956         wrappers in syntax checks.
23957
23958 2009-09-06  Eric Blake  <ebb9@byu.net>
23959
23960         doc: fix comments in recent patches
23961         * lib/faccessat.c: Mention correct function.
23962         * lib/fchmodat.c: Likewise.
23963         * lib/fchownat.c: Likewise.
23964         * lib/symlinkat.c: Likewise.
23965         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23966         constants.
23967
23968         faccessat, symlinkat: continue cleanup of previous patch
23969         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23970         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23971         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23973         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23974         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23975         set.
23976
23977 2009-09-06  Bruno Haible  <bruno@clisp.org>
23978
23979         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23980         (fstatat): Declare if GNULIB_FSTATAT is set.
23981         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23982         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23983         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23984         * modules/fcntl-h (Files): Remove m4/openat.m4.
23985         * modules/sys_stat (Files): Remove m4/openat.m4.
23986         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23987         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23988         * modules/unistd (Files): Remove m4/openat.m4.
23989         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23990         GNULIB_OPENAT.
23991         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23992         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23994         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23995         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23996         gl_OPENAT_DEFAULTS.
23997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23998         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23999         Don't require gl_OPENAT_DEFAULTS.
24000         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24001         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24002         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24003         (gl_OPENAT_DEFAULTS): Remove macro.
24004
24005 2009-09-06  Bruno Haible  <bruno@clisp.org>
24006
24007         * modules/openat (configure.ac): Remove unneeded witness.
24008
24009 2009-09-06  Bruno Haible  <bruno@clisp.org>
24010
24011         Set errno to ENOSYS when a function is entirely unsupported.
24012         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24013         EOPNOTSUPP.
24014         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24015         * modules/chown (Depends-on): Remove errno.
24016
24017 2009-09-06  Bruno Haible  <bruno@clisp.org>
24018
24019         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24020
24021 2009-09-06  Bruno Haible  <bruno@clisp.org>
24022
24023         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24024
24025 2009-09-06  Ben Pfaff  <blp@gnu.org>
24026             Bruno Haible  <bruno@clisp.org>
24027
24028         Work around a glibc bug in strtok_r.
24029         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24030         Undefine if UNDEFINE_STRTOK_R is set.
24031         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24033         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24034         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24035         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24036         UNDEFINE_STRTOK_R.
24037         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24038
24039 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24040
24041         exclude: minor fix
24042         * lib/exclude.c: Include wctype.h
24043
24044 2009-09-06  Akim Demaille  <demaille@gostai.com>
24045
24046         bootstrap: improve error message
24047         * build-aux/bootstrap (find_tool): Upon failure, report the list
24048         of candidates.
24049         Honor the initial value of the envvar.
24050
24051 2009-09-05  Eric Blake  <ebb9@byu.net>
24052
24053         symlinkat: new module
24054         * modules/symlinkat: New file.
24055         * lib/symlinkat.c: Likewise.
24056         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24058         * modules/unistd (Makefile.am): Use them.
24059         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24060         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24061         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24062         * MODULES.html.sh (File system functions): Mention module.
24063         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24064         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24065         * modules/symlinkat-tests: New test.
24066         * tests/test-symlinkat.c: Likewise.
24067
24068         test-openat-safer: add more checks
24069         * tests/test-openat-safer.c (main): Check more code paths.
24070
24071 2009-09-05  Jim Meyering  <meyering@redhat.com>
24072
24073         syntax-check: detect unnecessary inclusion of openat.h
24074         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24075
24076 2009-09-05  Bruno Haible  <bruno@clisp.org>
24077
24078         Support towlower, towupper.
24079         * doc/posix-functions/towlower.texi: Mention module wctype.
24080         * doc/posix-functions/towupper.texi: Likewise.
24081         * lib/wctype.in.h (towlower, towupper): New functions.
24082         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24083         (ASSERT): New macro.
24084         (e): New variable.
24085         (main): Test also towlower, towupper. Test WEOF argument.
24086         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24087
24088 2009-09-05  Bruno Haible  <bruno@clisp.org>
24089
24090         Fix conversion behaviour when the input is invalid.
24091         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24092         mark occurring in first pass of indirect conversion.
24093         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24094         input.
24095         Found by clang's static analyzer.
24096
24097 2009-09-05  Bruno Haible  <bruno@clisp.org>
24098
24099         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24100         where direct conversion is possible.
24101
24102 2009-09-04  Eric Blake  <ebb9@byu.net>
24103
24104         openat: fail with ENOENT on empty name
24105         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24106         buffer.
24107
24108         link-follow: fix logic bug in prior patch
24109         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24110         reversed sense of yes and no in prior patch.  Avoid confusing
24111         compilation failure with desired semantics.
24112
24113         link-follow: accomodate mingw and cross-compilation
24114         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24115         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24116         cross-compilation results to -1, to make linkat easier to
24117         implement when cross-compiling.  Trivially support mingw.
24118         * modules/link-follow (configure.ac): Call new name.
24119         * NEWS: Mention this.
24120
24121 2009-09-03  Eric Blake  <ebb9@byu.net>
24122
24123         faccessat: compile replacement
24124         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24125         needed.
24126
24127         fts: fix compilation error
24128         * lib/fts.c (includes): Re-add "openat.h", for
24129         openat_needs_fchdir.
24130
24131         faccessat: new module
24132         * modules/faccessat: New file.
24133         * lib/faccessat.c: Likewise.
24134         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24136         * modules/unistd (Makefile.am): Use it.
24137         * lib/unistd.in.h (faccessat): Declare it.
24138         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24139         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24140         * MODULES.html.sh (File system functions): Mention it.
24141         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24142         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24143
24144         euidaccess: prefer POSIX over non-standard implementation
24145         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24146         * lib/euidaccess.c (euidaccess): Use it if available.
24147
24148         openat: make template easier to use
24149         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24150         AT_FUNC_F2 to be undefined.
24151         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24152         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24153         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24154         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24155         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24156         Likewise.
24157         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24158         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24159         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24160         Likewise.
24161
24162         openat: declare in POSIX headers
24163         * NEWS: Mention this.
24164         * modules/openat (configure.ac): Declare witnesses.
24165         (Depends-on): Add fcntl-h, sys_stat, unistd.
24166         (Include): Mention correct headers.
24167         * modules/fcntl-h (Depends-on): Add link-warning.
24168         (Files): Add openat.m4.
24169         (Makefile.am): Substitute witnesses.
24170         * modules/sys_stat (Files, Makefile.am): Likewise.
24171         * modules/unistd (Files, Makefile.am): Likewise.
24172         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24173         (gl_OPENAT_DEFAULTS): New macro.
24174         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24177         (SYS_STAT_H): Remove unused variable.
24178         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24179         * lib/fcntl--.h (includes): Remove unneeded header.
24180         * lib/openat-safer.c (includes): Likewise.
24181         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24182         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24183         appropriate headers.
24184         (__OPENAT_PREFIX): Delete.
24185         * lib/fcntl.in.h (openat): Provide declaration.
24186         (AT_FDCWD): Fix Solaris bug.
24187         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24188         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24189         * lib/fchmodat.c (includes):  Adjust to find declaration.
24190         * lib/fchownat.c (includes): Likewise.
24191         * lib/mkdirat.c (includes): Likewise.
24192         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24193         still visible.
24194
24195 2009-09-02  Eric Blake  <ebb9@byu.net>
24196
24197         errno: use consistently
24198         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24199         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24200         * lib/canonicalize.c (ELOOP): Likewise.
24201         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24202         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24203         * lib/lchown.c (EOPNOTSUPP): Likewise.
24204         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24205         * lib/savewd.c (ESTALE): Likewise.
24206         * lib/settime.c (ENOSYS): Likewise.
24207         * lib/utimens.c (ENOSYS): Likewise.
24208         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24209         * lib/chdir-safer.c (ELOOP): Likewise.
24210         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24211         * modules/c-stack (Depends-on): Add errno.
24212         * modules/canonicalize (Depends-on): Likewise.
24213         * modules/chdir-safer (Depends-on): Likewise.
24214         * modules/fdopendir (Depends-on): Likewise.
24215         * modules/inet_ntop (Depends-on): Likewise.
24216         * modules/inet_pton (Depends-on): Likewise.
24217         * modules/lchown (Depends-on): Likewise.
24218         * modules/openat (Depends-on): Likewise.
24219         * modules/savewd (Depends-on): Likewise.
24220         * modules/settime (Depends-on): Likewise.
24221         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24222
24223         fts: avoid leaking fds
24224         * modules/fts (Depends-on): Add cloexec.
24225         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24226         flag.
24227
24228         fts: make directory fds more robust
24229         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24230         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24231
24232         backupfile, chdir-long, fts, savedir: make safer
24233         * lib/backupfile.c (includes): Use "dirent--.h", since
24234         numbered_backup can write to stderr during readdir.
24235         * lib/savedir.c (includes): Likewise.
24236         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24237         emulation can write to stderr on failure.
24238         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24239         * lib/getcwd.c: Document why opendir_safer is unused.
24240         * lib/glob.c: Likewise.
24241         * lib/scandir.c: Likewise.
24242         * lib/openat-proc.c: Likewise, for open_safer.
24243         * modules/backupfile (Depends-on): Add dirent-safer.
24244         * modules/savedir (Depends-on): Likewise.
24245         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24246         * modules/chdir-long (Depends-on): Add openat-safer.
24247
24248         openat-safer: new module
24249         * modules/openat-safer: New file.
24250         * lib/openat-safer.c: Likewise.
24251         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24252         * lib/fcntl-safer.h (openat_safer): Declare.
24253         * lib/fcntl--.h (openat): Override.
24254         * MODULES.html.sh (File descriptor based I/O): Mention it.
24255         * lib/openat.h: Add double-inclusion guards.
24256         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24257         "fcntl--.h", so we can implement openat.
24258         * modules/openat-safer-tests: New test.
24259         * tests/test-openat-safer.c: New file.
24260
24261         dirent-safer: new module
24262         * modules/dirent-safer: New file.
24263         * lib/dirent--.h: Likewise.
24264         * lib/dirent-safer.h: Likewise.
24265         * lib/opendir-safer.c: Likewise.
24266         * m4/dirent-safer.m4: Likewise.
24267         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24268         * modules/dirent-safer-tests: New test.
24269         * tests/test-dirent-safer.c: New file.
24270         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24271
24272         fdopendir: optimize on mingw
24273         * lib/unistd.in.h (_gl_directory_name): New prototype.
24274         * lib/fchdir.c (_gl_directory_name): Implement it.
24275         (fchdir): Use it to simplify implementation.
24276         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24277         fchdir, when available, to avoid calling [f]chdir().
24278
24279         fdopendir: split into its own module
24280         * lib/openat.c (fdopendir): Move...
24281         * lib/fdopendir.c: ...into new file.
24282         * modules/fdopendir: New module.
24283         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24284         * modules/openat (Depends-on): Add fdopendir.
24285         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24286         fdopendir here.
24287         * modules/savedir (Depends-on): Only need fdopendir, not full
24288         openat.
24289         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24290         * lib/openat.h (fdopendir): Drop prototype.
24291         * lib/dirent.in.h (fdopendir): Provide prototype.
24292         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24293         * modules/dirent (Makefile.am): Substitute them.
24294         * MODULES.html.sh (File system functions): Mention it.
24295         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24296         * modules/fdopendir-tests: New file.
24297         * tests/test-fdopendir.c: Likewise.
24298
24299         fchdir: use more consistent macro convention
24300         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24301         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24302         REPLACE_FCHDIR, rather than relying on config.h macros.
24303         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24304         inside a single make-time REPLACE_FCHDIR block, rather than using
24305         the config.h FCHDIR_REPLACEMENT.
24306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24307         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24308         Manage fstat replacement.
24309         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24310         REPLACE_FCHDIR.
24311         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24312         (Makefile.am): Substitute REPLACE_FCHDIR.
24313         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24314         FCHDIR_REPLACEMENT.
24315         * lib/dup-safer.c (dup_safer): Likewise.
24316         * lib/dup2.c (rpl_dup2): Likewise.
24317         * lib/dup3.c (rpl_dup3): Likewise.
24318         * lib/open.c (rpl_open): Likewise.
24319
24320         fchdir: simplify error handling, and support dup3
24321         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24322         stdbool, malloc-posix, realloc-posix.
24323         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24324         (ensure_dirs_slot): Return false on allocation failure.
24325         (rpl_dup2): Delete.
24326         (_gl_register_dup): New function.
24327         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24328         (_gl_register_fd): Close fd on allocation failure.
24329         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24330         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24331         prototype.
24332         (rpl_dup2_fchdir): Delete prototype.
24333         * lib/open.c (open): Update caller.
24334         * lib/dup2.c (dup2): Track fchdir metadata.
24335         * lib/dup3.c (dup3): Likewise.
24336         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24338
24339 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24340
24341         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24342         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24343         don't pass arguments to AC_OUTPUT.
24344
24345 2009-09-02  Bruno Haible  <bruno@clisp.org>
24346
24347         * modules/mkdtemp (License): Relicense under LGPLv2+.
24348         Reported by Paolo Bonzini.
24349
24350 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24351
24352         Replace uses of obsolete autoconf macros in Jim's modules.
24353         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24354         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24355         can evoke a warning from autoconf when run with -Wobsolete
24356         enabled.  They were declared obsolete for good reasons (see
24357         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24358         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24359         should not continue using the deprecated macros.
24360         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24361         obsolete Autoconf macros with modern counterparts.
24362         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24363         * m4/dos.m4 (gl_AC_DOS): Likewise.
24364         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24366         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24367         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24368         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24369         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24370         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24371         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24372         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24373         Likewise.
24374         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24375         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24376         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24377         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24378         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24379         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24380
24381 2009-09-01  Eric Blake  <ebb9@byu.net>
24382
24383         fchdir: fix off-by-one bug in previous patch
24384         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24385         (_gl_unregister_fd): Delete useless if.
24386
24387 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24388
24389         maint.mk: sort the list of syntax-check rules
24390         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24391         easier to get a sense of progress when the rules are run sequentially
24392         and take a long time.
24393
24394 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24395
24396         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24397         * modules/netinet_in: Likewise.
24398         * modules/sys_file: Likewise.
24399         * modules/sys_ioctl: Likewise.
24400         * modules/sys_select: Likewise.
24401         * modules/sys_socket: Likewise.
24402         * modules/sys_stat: Likewise.
24403         * modules/sys_time: Likewise.
24404         * modules/sys_times: Likewise.
24405         * modules/sys_utsname: Likewise.
24406         * modules/sys_wait: Likewise.
24407
24408 2009-09-01  Jim Meyering  <meyering@redhat.com>
24409
24410         fts: help ensure that return values are not ignored
24411         * lib/fts_.h (__GNUC_PREREQ): Define.
24412         (__attribute_warn_unused_result__): Define.
24413         (fts_children, fts_close, fts_open, fts_read): Declare with
24414         __attribute_warn_unused_result__.
24415
24416         fts: fts_close now fails also when closing a dir file descriptor fails
24417         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24418         and propagate to caller, along with errno.
24419
24420         announce-gen: correct formatting in --help output
24421         * build-aux/announce-gen (usage): Move the one-line description in
24422         --help output "up", to where it belongs, just after Usage:.
24423
24424 2009-08-31  Eric Blake  <ebb9@byu.net>
24425
24426         fchdir: port to mingw
24427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24428         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24429         opened, then use a substitute.
24430         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24431         replacement.
24432         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24433         (_gl_register_fd): No need to check stat if open already filters
24434         all directories.
24435         (fchdir): Fix error condition to match POSIX.
24436         * modules/fchdir (Depends-on): Add sys_stat.
24437         * doc/posix-functions/open.texi (open): Document the limitation.
24438         * modules/fchdir-tests: New file.
24439         * tests/test-fchdir.c: Likewise.
24440
24441         canonicalize: allow cross-testing from cygwin to mingw
24442         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24443         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24444         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24445         Likewise.
24446         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24447         target does not support symlinks.
24448         * tests/test-canonicalize-lgpl.sh: Likewise.
24449
24450         chown: avoid compilation warning on mingw
24451         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24452         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24453         mingw.
24454         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24455         * modules/chown (Depends-on): Add errno.
24456
24457 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24458
24459         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24460         command.
24461
24462 2009-08-31  Jim Meyering  <meyering@redhat.com>
24463
24464         canonicalize: remove useless initialization
24465         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24466         initialization of local, "end".
24467
24468 2009-08-30  Bruno Haible  <bruno@clisp.org>
24469
24470         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24471         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24472         ENOSYS.
24473
24474 2009-08-30  Bruno Haible  <bruno@clisp.org>
24475
24476         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24477         /usr/xpg4/bin/tr when it exists.
24478         * tests/test-pipe-filter-gi1.sh: Likewise.
24479
24480 2009-08-30  Bruno Haible  <bruno@clisp.org>
24481
24482         Work around deficient /usr/bin/id program on Solaris.
24483         * tests/test-file-has-acl.sh (ID): New variable.
24484         * tests/test-set-mode-acl.sh (ID): Likewise.
24485         * tests/test-copy-acl.sh (ID): Likewise.
24486         * tests/test-copy-file.sh (ID): Likewise.
24487
24488 2009-08-30  Bruno Haible  <bruno@clisp.org>
24489
24490         New module 'xstriconveh'.
24491         * lib/xstriconveh.h: New file.
24492         * lib/xstriconveh.c: New file.
24493         * modules/xstriconveh: New file.
24494
24495 2009-08-30  Bruno Haible  <bruno@clisp.org>
24496
24497         Make it easier to use mem_cd_iconveh.
24498         * lib/striconveh.h (iconveh_t): New type.
24499         (iconveh_open, iconveh_close): New declarations.
24500         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24501         with a single 'const iconveh_t *' argument.
24502         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24503         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24504         with a single 'const iconveh_t *' argument.
24505         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24506         * tests/test-striconveh.c (main): Update.
24507         * NEWS: Mention the change.
24508
24509 2009-08-30  Bruno Haible  <bruno@clisp.org>
24510
24511         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24512         problem.
24513
24514 2009-08-30  Bruno Haible  <bruno@clisp.org>
24515
24516         Work around iconv_open problem on Solaris.
24517         * lib/iconv_open-solaris.gperf: New file.
24518         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24519         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24520         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24521         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24522         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24523         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24524
24525 2009-08-29  Jim Meyering  <meyering@redhat.com>
24526
24527         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24528         * top/maint.mk (cvs-check): Remove target; it was just an alias
24529         to the better-named vc-diff-check.
24530         (maintainer-distcheck): Remove rule.  It was used only from
24531         the (alpha/beta/major) target, and all of its commands but one
24532         were coreutils-specific.
24533         (vc-dist): Remove rule.
24534         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24535         Run vc-diff-check, not vc-dist.
24536         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24537
24538 2009-08-27  Bruno Haible  <bruno@clisp.org>
24539
24540         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24541         of 0.
24542
24543 2009-08-27  Bruno Haible  <bruno@clisp.org>
24544
24545         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24546         compilers.
24547         * doc/func.texi: Document the SunPRO C bug.
24548
24549 2009-08-27  Bruno Haible  <bruno@clisp.org>
24550
24551         Fix link error on Solaris.
24552         * tests/test-parse-duration.c (xstrdup): Remove function.
24553
24554 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24555
24556         ignore-value: handle pointer types, too
24557         * lib/ignore-value.h (__attribute__): Remove definition.
24558         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24559         of a more concise and more-often effective "(void) i" statement.
24560         (ignore_ptr): New function to suppress warnings from functions that
24561         return pointers, and to make it explicit that one function doesn't
24562         handle all cases.
24563
24564 2009-08-25  Bruno Haible  <bruno@clisp.org>
24565
24566         dup2: work around a Linux bug.
24567         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24568         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24569         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24570         Reported by Simon Josefsson.
24571
24572 2009-08-25  Jim Meyering  <meyering@redhat.com>
24573
24574         libguestfs uses gnulib
24575         * users.txt: Add libguestfs.
24576
24577 2009-08-24  Eric Blake  <ebb9@byu.net>
24578
24579         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24580         * lib/pipe2.c (includes): Add binary-io.h.
24581         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24582
24583 2009-08-24  Bruno Haible  <bruno@clisp.org>
24584
24585         Tolerate declared but missing accept4 syscall.
24586         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24587         available.
24588         * lib/sys_socket.in.h (accept4): If the function is already present,
24589         override it.
24590         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24591         * modules/accept4 (Makefile.am): Compile accept4.c always.
24592         Reported by Paolo Bonzini and Eric Blake.
24593
24594 2009-08-23  Bruno Haible  <bruno@clisp.org>
24595
24596         New module 'accept4'.
24597         * lib/sys_socket.in.h (accept4): New declaration.
24598         * lib/accept4.c: New file.
24599         * m4/accept4.m4: New file.
24600         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24601         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24602         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24603         HAVE_ACCEPT4.
24604         * modules/accept4: New file.
24605         * doc/glibc-functions/accept4.texi: Mention the new module.
24606
24607 2009-08-24  Jim Meyering  <meyering@redhat.com>
24608
24609         progname: also set global program_invocation_name, when possible
24610         Before this change, a libtool-enabled program that calls glibc's
24611         error function would report the program name as
24612         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24613         * modules/progname (configure.ac): Check for a declaration of
24614         program_invocation_name.
24615         * lib/progname.c:  Include <errno.h>.
24616         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24617         Set program_invocation_name.
24618
24619 2009-08-23  Bruno Haible  <bruno@clisp.org>
24620
24621         * lib/dup3.c: Include <string.h>.
24622
24623 2009-08-23  Bruno Haible  <bruno@clisp.org>
24624
24625         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24626         * lib/pipe2.c (pipe2): Likewise.
24627         Suggested by Eric Blake.
24628
24629 2009-08-23  Bruno Haible  <bruno@clisp.org>
24630
24631         Tolerate declared but missing dup3 syscall.
24632         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24633         * lib/unistd.in.h (dup3): If the function is already present,
24634         override it.
24635         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24636         * modules/dup3 (Makefile.am): Compile dup3.c always.
24637         Reported by Paolo Bonzini.
24638
24639 2009-08-23  Bruno Haible  <bruno@clisp.org>
24640
24641         Tolerate declared but missing pipe2 syscall.
24642         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24643         available.
24644         * lib/unistd.in.h (pipe2): If the function is already present,
24645         override it.
24646         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24647         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24648         Reported by Paolo Bonzini.
24649
24650 2009-08-23  Bruno Haible  <bruno@clisp.org>
24651
24652         * lib/pipe2.c (pipe2): Move #ifs inside function.
24653
24654 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24655
24656         quotearg: document limitations of quote_these_too
24657         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24658         those limitations are created.
24659         * lib/quotearg.h (set_char_quoting): Document that digits and
24660         letters that are special after backslash are not permitted.
24661         (quotearg_char): Cross-reference set_char_quoting documentation.
24662
24663 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24664
24665         quotearg: implement custom_quoting_style
24666         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24667         right_quote fields.
24668         (set_custom_quoting): New public function.
24669         (quotearg_buffer_restyled): Add left_quote and right_quote
24670         arguments, handle them very much like locale quoting, and update
24671         all uses.
24672         (quotearg_n_custom): New public function.
24673         (quotearg_n_custom_mem): New public function.
24674         (quotearg_custom): New public function.
24675         (quotearg_custom_mem): New public function.
24676         * lib/quotearg.h: Prototype and document new public functions.
24677         (enum quoting_style): For escape_quoting_style and
24678         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24679         ignored even though they're otherwise like c_quoting_style.
24680         Add custom_quoting_style member and document with comparison to
24681         clocale_quoting_style.
24682         * tests/test-quotearg.c (custom_quotes): New array.
24683         (custom_results): New array.
24684         (main): Extend to test custom quoting.
24685
24686 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24687
24688         quotearg: fix right quote escaping when it's in quote_these_too
24689         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24690         quote, be sure to prepend only one backslash.
24691         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24692         (main): Test it.
24693
24694 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24695
24696         quotearg-tests: test escaping of embedded locale quotes
24697         * tests/test-quotearg.c (struct result_strings): Add member for
24698         new input.
24699         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24700         (inputs): Add new input.
24701         (results_g): Add expected results.
24702         (flag_results): Likewise.
24703         (locale_results): Likewise.
24704         (compare_strings): Check those.
24705
24706 2009-08-23  Bruno Haible  <bruno@clisp.org>
24707
24708         Tests for module 'dup3'.
24709         * modules/dup3-tests: New file.
24710         * tests/test-dup3.c: New file.
24711
24712         New module 'dup3'.
24713         * lib/unistd.in.h (dup3): New declaration.
24714         * lib/dup3.c: New file.
24715         * m4/dup3.m4: New file.
24716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24717         HAVE_DUP3.
24718         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24719         * modules/dup3: New file.
24720         * doc/glibc-functions/dup3.texi: Mention the new module.
24721
24722 2009-08-23  Bruno Haible  <bruno@clisp.org>
24723
24724         Tweak the dup2 test.
24725         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24726         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24727         the test file is still empty. Fix argument order of lseek.
24728
24729 2009-08-23  Bruno Haible  <bruno@clisp.org>
24730
24731         Avoid test link errors when the modules getopt-gnu, gettext are used.
24732         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24734
24735 2009-08-23  Bruno Haible  <bruno@clisp.org>
24736
24737         Fix getdtablesize() on mingw.
24738         * lib/getdtablesize.c (getdtablesize): Implement differently.
24739         * lib/unistd.in.h (getdtablesize): Improve comment.
24740
24741 2009-08-23  Bruno Haible  <bruno@clisp.org>
24742
24743         New module 'mkostemp'.
24744         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24745         * lib/stdlib.in.h (mksotemp): New declaration.
24746         * lib/mkostemp.c: New file, from glibc with modifications.
24747         * lib/tempname.h (GT_FILE): Remove outdated comment.
24748         (gen_tempname): Add flags argument.
24749         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24750         (__GT_FILE): Map to 1.
24751         (small_open, large_open): Remove macros.
24752         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24753         * lib/mkstemp.c (mkstemp): Update.
24754         * lib/mkdtemp.c (mkdtemp): Likewise.
24755         * m4/mkostemp.m4: New file.
24756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24757         HAVE_MKOSTEMP.
24758         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24759         HAVE_MKOSTEMP.
24760         * modules/mkostemp: New file, based on modules/mkstemp.
24761         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24762         * NEWS: Mention the change.
24763
24764 2009-08-23  Bruno Haible  <bruno@clisp.org>
24765
24766         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24767         Reported by Eric Blake.
24768
24769 2009-08-23  Bruno Haible  <bruno@clisp.org>
24770
24771         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24772         Reported by Eric Blake.
24773
24774 2009-08-23  Bruno Haible  <bruno@clisp.org>
24775
24776         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24777         * modules/pipe2 (Depends-on): Likewise.
24778
24779 2009-08-23  Eric Blake  <ebb9@byu.net>
24780
24781         fcntl-h: add O_TTY_INIT support
24782         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24783         * tests/test-fcntl-h.c (o): Test it.
24784         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24785
24786         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24787         * modules/fcntl: Move <fcntl.h> header replacement...
24788         * modules/fcntl-h: ...to new name, so as not to collide with
24789         like-named function.
24790         * tests/test-fcntl.c: Rename...
24791         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24792         * modules/fcntl-tests: Rename...
24793         * modules/fcntl-h-tests: ...to this.  Update test file name.
24794         * modules/chdir-long (Depends-on): Update clients.
24795         * modules/chdir-safer (Depends-on): Likewise.
24796         * modules/fcntl-safer (Depends-on): Likewise.
24797         * modules/fts (Depends-on): Likewise.
24798         * modules/mkancesdirs (Depends-on): Likewise.
24799         * modules/mkdir-p (Depends-on): Likewise.
24800         * modules/open (Depends-on): Likewise.
24801         * modules/savewd (Depends-on): Likewise.
24802         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24803         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24804
24805 2009-08-22  Bruno Haible  <bruno@clisp.org>
24806
24807         * modules/binary-io (License): Relicense under LGPL.
24808         * modules/pipe2 (License): Likewise.
24809
24810 2009-08-22  Bruno Haible  <bruno@clisp.org>
24811
24812         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24813         return value.
24814         * lib/pipe-filter-gi.c (filter_init): Likewise.
24815         Reported by Eric Blake.
24816
24817 2009-08-22  Bruno Haible  <bruno@clisp.org>
24818
24819         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24820         * modules/pipe (Depends-on): Add pipe2.
24821
24822 2009-08-22  Bruno Haible  <bruno@clisp.org>
24823
24824         Tests for module 'pipe2'.
24825         * modules/pipe2-tests: New file.
24826         * tests/test-pipe2.c: New file.
24827
24828         New module 'pipe2'.
24829         * lib/unistd.in.h (pipe2): New declaration.
24830         * lib/pipe2.c: New file.
24831         * m4/pipe2.m4: New file.
24832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24833         HAVE_PIPE2.
24834         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24835         * modules/pipe2: New file.
24836         * doc/glibc-functions/pipe2.texi: Mention the new module.
24837
24838 2009-08-22  Bruno Haible  <bruno@clisp.org>
24839
24840         Reference some new glibc functions.
24841         * doc/glibc-functions/accept4.texi: New file.
24842         * doc/glibc-functions/dup3.texi: New file.
24843         * doc/glibc-functions/mkostemp.texi: New file.
24844         * doc/glibc-functions/pipe2.texi: New file.
24845         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24846         (Glibc sys/socket.h): Refer to accept4.
24847         (Glibc unistd.h): Refer to dup3, pipe2.
24848         Reported by Eric Blake.
24849
24850 2009-08-22  Jim Meyering  <meyering@redhat.com>
24851             Bruno Haible  <bruno@clisp.org>
24852
24853         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24854         This makes it so packages using automake-1.11's silent-rules option
24855         can print e.g., a single "GEN    configmake.h" line, rather than
24856         the 30+ statements that perform the job.  If you want to see the
24857         actual commands, you can still run "make V=1".
24858         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24859         so that make output is abbreviated when those variables are defined
24860         appropriately.
24861         * modules/argz: Likewise.
24862         * modules/arpa_inet: Likewise.
24863         * modules/byteswap: Likewise.
24864         * modules/configmake: Likewise.
24865         * modules/dirent: Likewise.
24866         * modules/errno: Likewise.
24867         * modules/fcntl: Likewise.
24868         * modules/float: Likewise.
24869         * modules/fnmatch: Likewise.
24870         * modules/getopt-posix: Likewise.
24871         * modules/glob: Likewise.
24872         * modules/iconv_open: Likewise.
24873         * modules/inttypes: Likewise.
24874         * modules/localcharset: Likewise.
24875         * modules/locale: Likewise.
24876         * modules/math: Likewise.
24877         * modules/netdb: Likewise.
24878         * modules/netinet_in: Likewise.
24879         * modules/poll: Likewise.
24880         * modules/posix_spawnp-tests: Likewise.
24881         * modules/sched: Likewise.
24882         * modules/search: Likewise.
24883         * modules/selinux-h: Likewise.
24884         * modules/signal: Likewise.
24885         * modules/spawn: Likewise.
24886         * modules/stdarg: Likewise.
24887         * modules/stdbool: Likewise.
24888         * modules/stddef: Likewise.
24889         * modules/stdint: Likewise.
24890         * modules/stdio: Likewise.
24891         * modules/stdlib: Likewise.
24892         * modules/string: Likewise.
24893         * modules/strings: Likewise.
24894         * modules/sys_file: Likewise.
24895         * modules/sys_ioctl: Likewise.
24896         * modules/sys_select: Likewise.
24897         * modules/sys_socket: Likewise.
24898         * modules/sys_stat: Likewise.
24899         * modules/sys_time: Likewise.
24900         * modules/sys_times: Likewise.
24901         * modules/sys_utsname: Likewise.
24902         * modules/sys_wait: Likewise.
24903         * modules/sysexits: Likewise.
24904         * modules/time: Likewise.
24905         * modules/unistd: Likewise.
24906         * modules/wchar: Likewise.
24907         * modules/wctype: Likewise.
24908
24909 2009-08-22  Jim Meyering  <meyering@redhat.com>
24910
24911         announce-gen: detect write failure
24912         * build-aux/announce-gen: Add Coda at end.
24913         Remove equivalent-but-more-verbose block at top.
24914
24915 2009-08-19  Akim Demaille  <demaille@gostai.com>
24916
24917         bootstrap: --help to stdout.
24918         * bootstrap (usage): Don't send --help to stderr.
24919         Use a here doc instead of a long string.
24920
24921 2009-08-21  Eric Blake  <ebb9@byu.net>
24922
24923         test-popen-safer: split from test-popen
24924         * tests/test-popen.c (main): Move...
24925         * tests/test-popen.h: ...into new file.
24926         * tests/test-popen-safer2.c: New file.
24927         * modules/popen-tests (Files): Add test-popen.h.
24928         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24929         Suggested by Bruno Haible.
24930
24931         test-fcntl-safer: split from test-open
24932         * tests/test-open.c (main): Move...
24933         * tests/test-open.h: ...into new file.
24934         * tests/test-fcntl-safer.c: New file.
24935         * modules/open-tests (Files): Add test-open.h.
24936         * modules/fcntl-safer-tests: New file.
24937         Suggested by Bruno Haible.
24938
24939         test-fopen-safer: split from test-fopen
24940         * tests/test-fopen.c (main): Move...
24941         * tests/test-fopen.h: ...into new file.
24942         * tests/test-fopen-safer.c: New file.
24943         * modules/fopen-tests (Files): Add test-fopen.h.
24944         * modules/fopen-safer-tests: New file.
24945         Suggested by Bruno Haible.
24946
24947 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24948
24949         popen-safer: test O_CLOEXEC at run-time.
24950         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24951
24952 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24953
24954         fcntl: move more flags to the header
24955         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24956         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24957         * lib/fcntl.in.h: Do both things here.
24958
24959 2009-08-21  Jim Meyering  <meyering@redhat.com>
24960
24961         consistently remove $@-t before redirecting to it
24962         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24963         * modules/alloca-opt: Likewise.
24964         * modules/byteswap: Likewise.
24965         * modules/fnmatch: Likewise.
24966         * modules/getopt-posix: Likewise.
24967         * modules/glob: Likewise.
24968         * modules/poll: Likewise.
24969         * modules/posix_spawnp-tests: Likewise.
24970         * modules/sys_socket: Likewise.
24971         * modules/sysexits: Likewise.
24972
24973 2009-08-21  Eric Blake  <ebb9@byu.net>
24974
24975         popen: simplify access to original popen
24976         * lib/popen.c (rpl_popen): No need to worry about popen being a
24977         macro.
24978         Reported by Bruno Haible.
24979
24980 2009-08-20  Eric Blake  <ebb9@byu.net>
24981
24982         build: avoid some compiler warnings
24983         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24984         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24985         type.
24986         (new_exclude_segment, excluded_file_pattern_p)
24987         (excluded_file_name_p): Reduce scope.
24988         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24989         old-style declaration.
24990
24991 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24992
24993         * tests/test-exclude1.sh: Handle Windows EOL.
24994         * tests/test-exclude2.sh: Likewise.
24995         * tests/test-exclude3.sh: Likewise.
24996         * tests/test-exclude4.sh: Likewise.
24997         * tests/test-exclude5.sh: Likewise.
24998         * tests/test-exclude6.sh: Likewise.
24999         * tests/test-exclude7.sh: Likewise.
25000
25001 2009-08-19  Akim Demaille  <demaille@gostai.com>
25002
25003         bootstrap: find sha1sum when named gsha1sum.
25004         * bootstrap (find_tool): New.
25005         ($SHA1SUM): New.
25006         Use it.
25007
25008 2009-08-20  Jim Meyering  <meyering@redhat.com>
25009
25010         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25011         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25012         expression that converts "." in a file name to "\." in the resulting
25013         regexp.  Start with a dummy statement, so that prior shell variable
25014         definitions are expanded portably.  Reported by Simon Josefsson.
25015
25016 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25017
25018         Fix polling for writeability of a screen buffer.
25019         * lib/poll.c: Distinguish input and screen buffers for the
25020         Win32 implementation.
25021         * lib/select.c: Likewise.
25022
25023 2009-08-19  Eric Blake  <ebb9@byu.net>
25024
25025         popen-safer: prevent popen from clobbering std descriptors
25026         * modules/popen-safer: New file.
25027         * lib/popen-safer.c: Likewise.
25028         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25029         * lib/stdio--.h (popen): Provide override.
25030         * lib/stdio-safer.h (popen_safer): Provide declaration.
25031         * tests/test-popen.c (includes): Partially test this.
25032         * modules/popen-safer-tests: New file, for more tests.
25033         * tests/test-popen-safer.c: Likewise.
25034         * MODULES.html.sh (file stream based Input/Output): Mention it.
25035
25036         tests: test some of the *-safer modules
25037         * modules/fopen-safer (Depends-on): Add fopen.
25038         * modules/fcntl-safer (Depends-on): Add fcntl.
25039         * modules/stdlib-safer (Depends-on): Add stdlib.
25040         (configure.ac): Set indicator.
25041         * modules/unistd-safer (configure.ac): Likewise.
25042         * modules/tmpfile-safer (configure.ac): Likewise.
25043         (Depends-on): Add tmpfile.
25044         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25045         active.
25046         * tests/test-fopen.c (includes): Test safer versions when they are
25047         in use.
25048         * tests/test-open.c (includes): Likewise.
25049
25050         popen: fix cygwin 1.5 bug when stdin closed
25051         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25052         * modules/popen: New file.
25053         * modules/popen-tests: Likewise.
25054         * tests/test-popen.c: Likewise.
25055         * m4/popen.m4: Likewise.
25056         * lib/popen.c: Likewise.
25057         * lib/stdio.in.h (popen): New declaration.
25058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25059         * modules/stdio (Makefile.am): Likewise.
25060         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25061
25062 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25063
25064         maint.mk: give full control over update-copyright exclusions
25065         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25066         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25067         (update-copyright): Don't force inclusion of top-level
25068         ChangeLog.  Don't force exclusion of all COPYING files, but make
25069         them the default exclusion instead.
25070
25071 2009-08-16  Bruno Haible  <bruno@clisp.org>
25072
25073         Fix test failures on Solaris 10.
25074         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25075         tests when Solaris iconv() is used.
25076         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25077         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25078         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25079         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25080         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25081
25082 2009-08-16  Bruno Haible  <bruno@clisp.org>
25083
25084         Fix test failures on Solaris 10.
25085         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25086         'tr' program and pass it as first argument.
25087         * tests/test-pipe-filter-gi1.sh: Likewise.
25088         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25089         program as first argument.
25090         * tests/test-pipe-filter-gi1.c (main): Likewise.
25091
25092 2009-08-16  Eric Blake  <ebb9@byu.net>
25093
25094         fpurge: fix previous commits
25095         * modules/fpurge (Makefile.am): Make replacement conditional,
25096         partially reverting 2007-04-29 change; missed in previous
25097         attempt.
25098         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25099         is missing.
25100
25101 2009-08-16  Bruno Haible  <bruno@clisp.org>
25102
25103         Clarify fpurge's effect on the file position.
25104         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25105         * tests/test-fpurge.c (main): Make a second pass for checking the file
25106         position.
25107
25108 2009-08-16  Bruno Haible  <bruno@clisp.org>
25109
25110         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25111         declaration of fpurge is missing.
25112         * tests/test-fpurge.c (main): Check that the file has not more contents
25113         than expected. Close the file before removing it.
25114
25115 2009-08-15  Eric Blake  <ebb9@byu.net>
25116
25117         fpurge: don't wrap working cygwin implementation
25118         * lib/fpurge.c (fpurge): Fix comment typo.
25119         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25120         1.7 to avoid replacement.
25121         * tests/test-fpurge.c (main): Enhance test.
25122
25123 2009-08-15  Eric Blake  <ebb9@byu.net>
25124         and Jim Meyering  <meyering@redhat.com>
25125
25126         test-update-copyright: skip if perl is insufficient
25127         * tests/test-update-copyright.sh: Failure to run maintainer tool
25128         should not cause testsuite failure on cygwin 1.5.
25129
25130 2009-08-14  Eric Blake  <ebb9@byu.net>
25131
25132         doc: mention more functions added in cygwin 1.7.0
25133         * doc/posix-headers/limits.texi (limits.h): Update for recent
25134         cygwin additions.
25135         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25136         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25137         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25138         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25139         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25140
25141 2009-08-14  Eric Blake  <ebb9@byu.net>
25142
25143         maint.mk: simplify update-copyright rule
25144         * top/maint.mk (update-copyright-local): Delete, and document how
25145         to do it in cfg.mk instead.
25146         (update-copyright-exclude-regexp): Delete, and document how to do
25147         it in .x-update-copyright instead.
25148         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25149         exclude ChangeLog.
25150
25151 2009-08-14  Bruno Haible  <bruno@clisp.org>
25152
25153         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25154
25155 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25156
25157         maint.mk: support update-copyright-env
25158         * top/maint.mk (update-copyright-env): Define place-holder.
25159         (update-copyright): Expand $(update-copyright-env) before
25160         invoking update-copyright.
25161
25162 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25163
25164         update-copyright: implement forced reformatting
25165         * build-aux/update-copyright: Implement and document
25166         UPDATE_COPYRIGHT_FORCE.
25167         * tests/test-update-copyright.sh: Test it.
25168
25169 2009-08-14  Eric Blake  <ebb9@byu.net>
25170         and Bruno Haible  <bruno@clisp.org>
25171
25172         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25173         * tests/test-locale.c: Revert previous patch related to NULL.
25174         * tests/test-stdio.c: Likewise.
25175         * tests/test-stdlib.c: Likewise.
25176         * tests/test-string.c: Likewise.
25177         * tests/test-unistd.c: Likewise.
25178         * modules/time-tests (Depends-on): Add verify.
25179         * modules/wchar-tests (Depends-on): Likewise.
25180         * tests/test-time.c: Test for NULL compliance.
25181         * tests/test-wchar.c: Likewise.
25182         * modules/locale (Depends-on): Add stddef.
25183         * modules/stdio (Depends-on): Likewise.
25184         * modules/stdlib (Depends-on): Likewise.
25185         * modules/string (Depends-on): Likewise.
25186         * modules/time (Depends-on): Likewise.
25187         * modules/unistd (Depends-on): Likewise.
25188         * modules/wchar (Depends-on): Likewise.
25189         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25190         * lib/stdlib.in.h (includes): Likewise.
25191         * lib/string.in.h (includes): Likewise.
25192         * lib/time.in.h (includes): Likewise.
25193         * lib/unistd.in.h (includes): Likewise.
25194         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25195         replaced.
25196         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25197         * m4/stddef_h.m4: New file.
25198         * modules/stddef: Likewise.
25199         * lib/stddef.in.h: Likewise.
25200         * modules/stddef-tests: Likewise.
25201         * tests/test-stddef.c: Likewise.
25202         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25203         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25204         * doc/posix-headers/locale.texi (locale.h): Likewise.
25205         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25206         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25207         * doc/posix-headers/string.texi (string.h): Likewise.
25208         * doc/posix-headers/time.texi (time.h): Likewise.
25209         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25210         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25211
25212 2009-08-14  Eric Blake  <ebb9@byu.net>
25213
25214         doc: improve git diff of texinfo files
25215         * .gitattributes: Add rule for *.texi files, with hint on how to
25216         use it.
25217         Copied from m4, and based on a report by Bruno Haible.
25218
25219 2009-08-14  Bruno Haible  <bruno@clisp.org>
25220
25221         Disable multithread support by default on Cygwin 1.5.x for real.
25222         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25223
25224 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25225
25226         update-copyright: much ado about intervals
25227         * build-aux/update-copyright: Implement and document
25228         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25229         of copyright year intervals.
25230         Also, document UPDATE_COPYRIGHT_YEAR.
25231         * tests/test-update-copyright.sh: Test it.
25232
25233         update-copyright: convert 2-digit to 4-digit years
25234         * build-aux/update-copyright: Implement and document.
25235         * tests/test-update-copyright.sh: Update.
25236
25237 2009-08-14  Jim Meyering  <meyering@redhat.com>
25238
25239         test-exclude: avoid coreutils "make check" failure
25240         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25241         just as in test-argmatch.c.
25242
25243 2009-08-13  Eric Blake  <ebb9@byu.net>
25244
25245         test-dup2: fix bad assumption
25246         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25247         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25248
25249         test-version-etc: fix CRLF portability issue
25250         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25251         recognize \r.
25252         * tests/test-argp-version-etc-1.sh: Likewise.
25253
25254         getopt: update client modules
25255         * modules/argp (Depends-on): Use getopt-gnu.
25256         * modules/git-merge-changelog (Depends-on): Likewise.
25257         * modules/long-options (Depends-on): Likewise.
25258         * modules/xstrtol (Depends-on): Likewise.
25259
25260 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25261
25262         * tests/test-version-etc.sh: Don't fail on different
25263         project/version.  Don't fail on CRLF differences.  Rewrite to use
25264         multiple -e instead of multiple sed forks, suggested by Eric Blake
25265         <ebb9@byu.net>.
25266         * tests/test-argp-version-etc-1.sh: Likewise.
25267
25268 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25269
25270         * tests/test-version-etc.sh: Don't fail on different
25271         project/version.
25272
25273 2009-08-12  Bruno Haible  <bruno@clisp.org>
25274
25275         Tests for modules 'getopt-posix', 'getopt-gnu'.
25276         * modules/getopt-posix-tests: New file.
25277         * tests/test-getopt.c: New file.
25278         * tests/test-getopt.h: New file.
25279         * tests/test-getopt_long.h: New file.
25280
25281         New modules 'getopt-posix', 'getopt-gnu'.
25282         * modules/getopt-gnu: New file, renamed from modules/getopt.
25283         * modules/getopt-posix: New file.
25284         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25285         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25286         (gl_GETOPT): Remove macro.
25287         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25288         Disable the test against BSD systems that declare optreset. Test
25289         against mingw bug. Test against lack of support of optional arguments
25290         on many platforms.
25291         * doc/glibc-headers/getopt.texi: Update module name and list of
25292         relevant platforms.
25293         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25294         'getopt-gnu' and more portability problems.
25295         * NEWS: Mention the changes.
25296
25297 2009-08-12  Bruno Haible  <bruno@clisp.org>
25298
25299         Ensure that optarg etc. get declared by <unistd.h>.
25300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25301         AC_USE_SYSTEM_EXTENSIONS.
25302         * modules/getopt (Depends-on): Add 'extensions'.
25303
25304 2009-08-12  Bruno Haible  <bruno@clisp.org>
25305
25306         Avoid test link errors.
25307         * modules/pipe-filter-ii-tests (Makefile.am): Define
25308         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25309         * modules/pipe-filter-gi-tests (Makefile.am): Define
25310         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25312
25313 2009-08-12  Bruno Haible  <bruno@clisp.org>
25314
25315         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25316         gl_GETOPT_SUBSTITUTE before.
25317         (gl_GETOPT): Use it.
25318         * m4/argp.m4 (gl_ARGP): Update.
25319         Reported by Sergey Poznyakoff.
25320
25321         * m4/getopt.m4: Reorder macros.
25322         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25323         (gl_GETOPT_SUBSTITUTE): Remove macro.
25324
25325 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25326
25327         Minor improvement in gitlog-to-changelog
25328
25329         * build-aux/gitlog-to-changelog: New option `--format' makes
25330         output format string configurable.
25331
25332 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25333
25334         Optimize exclude: use hash tables for non-wildcard patterns.
25335
25336         * lib/exclude.c: Include hash.h and mbuiter.h
25337         (struct exclude_pattern, exclude_segment): New data types.
25338         (struct exclude): Rewrite.
25339         (fnmatch_pattern_has_wildcards): New function.
25340         (new_exclude_segment, free_exclude_segment): New functions.
25341         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25342         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25343         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25344         * modules/exclude: Depend on hash and mbuiter.
25345
25346         * modules/exclude-tests: New file.
25347         * tests/test-exclude.c: New file.
25348         * tests/test-exclude1.sh: New file.
25349         * tests/test-exclude2.sh: New file.
25350         * tests/test-exclude3.sh: New file.
25351         * tests/test-exclude4.sh: New file.
25352         * tests/test-exclude5.sh: New file.
25353         * tests/test-exclude6.sh: New file.
25354         * tests/test-exclude7.sh: New file.
25355
25356 2009-08-12  Bruno Haible  <bruno@clisp.org>
25357
25358         Ensure that getopt() gets declared by <unistd.h>.
25359         * lib/unistd.in.h: Conditionally include getopt.h.
25360         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25361         Set GNULIB_UNISTD_H_GETOPT.
25362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25363         GNULIB_UNISTD_H_GETOPT.
25364         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25365
25366 2009-08-12  Bruno Haible  <bruno@clisp.org>
25367
25368         Clarify logic.
25369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25370         gl_replace_getopt instead of GETOPT_H.
25371
25372 2009-08-12  Bruno Haible  <bruno@clisp.org>
25373
25374         * m4/getopt.m4: Add comments.
25375
25376 2009-08-12  Bruno Haible  <bruno@clisp.org>
25377
25378         Disable multithread support by default on Cygwin 1.5.x.
25379         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25380         set gl_use_threads=no if not specified otherwise.
25381
25382 2009-08-11  Bruno Haible  <bruno@clisp.org>
25383
25384         Avoid compilation error on NetBSD 5.0.
25385         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25386         * tests/test-stdio.c: Likewise.
25387         * tests/test-stdlib.c: Likewise.
25388         * tests/test-string.c: Likewise.
25389         * tests/test-unistd.c: Likewise.
25390         Reported by Greg Troxel <gdt@ir.bbn.com>
25391         at <https://savannah.gnu.org/support/?106973>.
25392
25393 2009-08-11  Bruno Haible  <bruno@clisp.org>
25394
25395         * modules/dup2-tests (Depends-on): Remove close.
25396
25397         Undo 2009-07-19 commit.
25398         * modules/acl-tests (Depends-on): Remove close.
25399         * modules/binary-io-tests (Depends-on): Likewise.
25400         * modules/closein-tests (Depends-on): Likewise.
25401         * modules/flock-tests (Depends-on): Likewise.
25402         * modules/fsync-tests (Depends-on): Likewise.
25403         * modules/lseek-tests (Depends-on): Likewise.
25404         * modules/pipe-tests (Depends-on): Likewise.
25405         * modules/posix_spawn-tests (Depends-on): Likewise.
25406         * modules/posix_spawnp-tests (Depends-on): Likewise.
25407         * modules/stat-time-tests (Depends-on): Likewise.
25408         * modules/yesno-tests (Depends-on): Likewise.
25409
25410 2009-08-10  Bruno Haible  <bruno@clisp.org>
25411
25412         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25413
25414 2009-08-10  Bruno Haible  <bruno@clisp.org>
25415
25416         Fix a gcc warning.
25417         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25418
25419 2009-08-10  Bruno Haible  <bruno@clisp.org>
25420
25421         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25422         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25423         not only the first time.
25424         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25425         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25426         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25427         is 1, not only the the first time.
25428
25429 2009-08-10  Bruno Haible  <bruno@clisp.org>
25430
25431         Make it possible to use module 'gethostname' without module 'close'.
25432         * lib/unistd.in.h (close): Evoke a link error only if
25433         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25435         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25436         * modules/unistd (Makefile.am): Substitute
25437         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25438         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25439         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25440         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25441         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25442         * modules/sys_ioctl (Makefile.am): Substitute
25443         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25444         * modules/socket (configure.ac): On native Windows, set
25445         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25446         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25447         Reported by Sam Steingold <sds@gnu.org>.
25448
25449 2009-08-10  Bruno Haible  <bruno@clisp.org>
25450
25451         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25452         * modules/ioctl (configure.ac): Likewise.
25453
25454 2009-08-10  Bruno Haible  <bruno@clisp.org>
25455
25456         Avoid collision between gnulib wrapper and libintl wrapper.
25457         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25458         already defined in intl/printf.c.
25459         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25460         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25461
25462 2009-08-09  Bruno Haible  <bruno@clisp.org>
25463
25464         Make <sys/select.h> really self-contained, also on Solaris 10.
25465         * lib/sys_select.in.h: Include <string.h>.
25466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25467         Solaris 10 problem.
25468         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25469         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25470         Reported by Jim Meyering.
25471
25472 2009-08-09  Bruno Haible  <bruno@clisp.org>
25473
25474         Avoid warnings from 'aclocal' that are due to a use of macro name
25475         AM_XGETTEXT_OPTION that is not defined in automake.
25476         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25477         automake.
25478         * modules/error (configure.ac): Likewise.
25479         * modules/propername (configure.ac): Likewise.
25480         * modules/vasprintf (configure.ac): Likewise.
25481         * modules/verror (configure.ac): Likewise.
25482         * modules/xprintf (configure.ac): Likewise.
25483         * modules/xvasprintf (configure.ac): Likewise.
25484
25485 2009-08-08  Bruno Haible  <bruno@clisp.org>
25486
25487         Avoid compilation error in C++ mode.
25488         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25489         Reported by Sam Steingold <sds@gnu.org>.
25490
25491 2009-08-08  Bruno Haible  <bruno@clisp.org>
25492
25493         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25494         for the various Unix platforms.
25495         * doc/posix-headers/limits.texi: Update platforms list regarding
25496         HOST_NAME_MAX.
25497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25498
25499 2009-08-07  Jim Meyering  <meyering@redhat.com>
25500
25501         selinux-at: fix typo in a comment
25502         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25503         Spotted by Paolo Bonzini.
25504
25505         selinux-at: remove redundant m4 code, add documentation
25506         * modules/selinux-at (configure.ac): Remove redundant code.
25507         LIB_SELINUX is already set via the dependent module, selinux-h.
25508         (Include): Add quotes around selinux-at.h.
25509         * lib/selinux-at.h: Add documentation.
25510         Reported by Bruno Haible in
25511         http://marc.info/?l=gnulib-bug&m=124958988300749
25512
25513 2009-08-07  Bruno Haible  <bruno@clisp.org>
25514
25515         Avoid link error on MacOS X 10.3 and 10.4.
25516         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25517         on non-ELF systems.
25518         * lib/argp-pv.c (argp_program_version): Likewise.
25519         Reported by Simon Josefsson.
25520
25521 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25522
25523         * tests/test-version-etc.sh: Use $EXEEXT.
25524
25525 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25526
25527         update-copyright: update documentation to point to maint.mk
25528         * build-aux/update-copyright: Here.
25529
25530 2009-08-06  Jim Meyering  <meyering@redhat.com>
25531
25532         maint.mk: support update-copyright-local
25533         * top/maint.mk (update-copyright-local): Define place-holder.
25534         (update-copyright): Depend on $(update-copyright-local).
25535
25536 2009-08-06  Jim Meyering  <meyering@redhat.com>
25537
25538         selinux-at: new module
25539         Initially written for coreutils, this module will soon be
25540         used by findutils, too.
25541         * MODULES.html.sh [Misc]: Add selinux-at.
25542         * lib/selinux-at.h: New file, from coreutils.
25543         * lib/selinux-at.c: Likewise.
25544         * modules/selinux-at: Likewise.
25545         (License): Change from LGPL to GPL, since it depends
25546         on the GPL'd openat module.
25547
25548         doc: update README
25549         * README: Remove references to cogito.
25550         Remove cvs-repo-updating instructions from 2007.
25551         Don't imply that CVS is better if you have limited disk space.
25552
25553 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25554
25555         update-copyright: support C-style comments
25556         * build-aux/update-copyright: Implement and document.
25557         * tests/test-update-copyright.sh: Test.
25558
25559 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25560
25561         update-copyright: support omitted "(C)"
25562         * build-aux/update-copyright: Implement and document.  Also,
25563         allow variable whitespace before "(C)".
25564         * tests/test-update-copyright.sh: Test.
25565
25566 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25567
25568         update-copyright: don't trip on non-FSF copyright statements
25569         * build-aux/update-copyright: Fix so that the first correctly
25570         formatted FSF copyright statement is recognized no matter what
25571         appears before it.  Update documentation.
25572         * tests/test-update-copyright.sh: Test that.
25573
25574 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25575
25576         update-copyright: clean up code a little
25577         * build-aux/update-copyright: Append "_re" to the name of any
25578         variable holding a regular expression.
25579         Replace "old" and "new" with "stmt" in variable names.
25580         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25581         handled correctly.
25582         Format code more consistently.
25583
25584 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25585
25586         update-copyright-tests: improve portability
25587         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25588         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25589
25590 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25591
25592         update-copyright: support @copyright{} and &copy;
25593         * build-aux/update-copyright: Implement and document.
25594         * tests/test-update-copyright.sh: Test.
25595
25596 2009-08-04  Jim Meyering  <meyering@redhat.com>
25597
25598         update-copyright-tests: correctly test EOL=\r\n handling
25599         * tests/test-update-copyright.sh: Put \r at the end of some lines
25600         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25601
25602         maint.mk: make update-copyright exclusion list more configurable
25603         * top/maint.mk (update-copyright): Default to excluding COPYING,
25604         but allow an override, in case someone does want to update that file.
25605
25606         maint.mk: don't update copyright date in COPYING
25607         * top/maint.mk (update-copyright): Exclude COPYING.
25608
25609         maint.mk: add a copyright-updating rule
25610         * top/maint.mk (update-copyright): New rule.
25611         Derived from coreutils/Makefile.am.
25612
25613         update-copyright: rename some variables
25614         * build-aux/update-copyright: Rename a few variables for clarity.
25615         Tweak syntax.  List Joel E. Denny as coauthor.
25616
25617 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25618
25619         update-copyright: fix bug for 2-digit last year and add tests
25620         * build-aux/update-copyright: Fix bug.
25621         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25622         specified.
25623         * modules/update-copyright-tests: New
25624         * tests/test-update-copyright.sh: New.
25625
25626 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25627
25628         update-copyright: handle leading tabs in line prefix
25629         * build-aux/update-copyright: Count leading tabs as 8 spaces
25630         when computing margin.  This helps with the formatting of
25631         ChangeLogs, for example.
25632         Fix documentation a little.
25633
25634 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25635
25636         update-copyright: support EOL=\r\n
25637         * build-aux/update-copyright: Implement that.
25638
25639 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25640
25641         update-copyright: automatically format copyright statements
25642         * build-aux/update-copyright: Implement that.
25643         Also, be a little more predictable and safer by always failing
25644         when the full copyright format is not perfectly recognized as an
25645         unbroken whole.  Discussed at
25646         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25647         Rewrite documentation.
25648
25649 2009-08-03  Bruno Haible  <bruno@clisp.org>
25650
25651         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25652
25653 2009-08-02  Bruno Haible  <bruno@clisp.org>
25654
25655         Tests for module 'uname'.
25656         * modules/uname-tests: New file.
25657         * tests/test-uname.c: New file.
25658
25659         New module 'uname'.
25660         * lib/uname.c: New file.
25661         * m4/uname.m4: New file.
25662         * modules/uname: New file.
25663         * doc/posix-functions/uname.texi: Mention the new module.
25664
25665 2009-08-02  Bruno Haible  <bruno@clisp.org>
25666
25667         Tests for module 'sys_utsname'.
25668         * modules/sys_utsname-tests: New file.
25669         * tests/test-sys_utsname.c: New file.
25670
25671         New module 'sys_utsname'.
25672         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25673         * m4/sys_utsname_h.m4: New file.
25674         * modules/sys_utsname: New file.
25675         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25676
25677 2009-08-02  Bruno Haible  <bruno@clisp.org>
25678
25679         Implicitly initialize the sockets library.
25680         * lib/gethostname.c: Include sockets.h.
25681         (rpl_gethostname): Invoke gl_sockets_startup.
25682         * lib/socket.c: Include sockets.h.
25683         (rpl_socket): Invoke gl_sockets_startup.
25684         * modules/gethostname (Depends-on): Add sockets.
25685         * modules/socket (Depends-on): Likewise.
25686         * tests/test-poll.c: Don't include sockets.h.
25687         (main): Don't invoke gl_sockets_startup.
25688         * tests/test-select.c: Don't include sockets.h.
25689         (main): Don't invoke gl_sockets_startup.
25690
25691 2009-08-02  Bruno Haible  <bruno@clisp.org>
25692
25693         Allow multiple calls to gl_sockets_startup.
25694         * lib/sockets.c (initialized_sockets_version): New variable.
25695         (gl_sockets_startup): Do nothing if already called for this or a higher
25696         version.
25697         (gl_sockets_cleanup): Reset initialized_sockets_version.
25698
25699 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25700
25701         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25702         different project/version.
25703
25704 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25705             Bruno Haible  <bruno@clisp.org>
25706
25707         Tests for module 'pipe-filter-gi'.
25708         * modules/pipe-filter-gi-tests: New file.
25709         * tests/test-pipe-filter-gi1.sh: New file.
25710         * tests/test-pipe-filter-gi1.c: New file.
25711         * tests/test-pipe-filter-gi2.sh: New file.
25712         * tests/test-pipe-filter-gi2-main.c: New file.
25713         * tests/test-pipe-filter-gi2-child.c: New file.
25714
25715         New module 'pipe-filter-gi'.
25716         * lib/pipe-filter-gi.c: New file.
25717         * modules/pipe-filter-gi: New file.
25718
25719 2009-08-02  Bruno Haible  <bruno@clisp.org>
25720             Paolo Bonzini  <bonzini@gnu.org>
25721
25722         Tests for module 'pipe-filter-ii'.
25723         * modules/pipe-filter-ii-tests: New file.
25724         * tests/test-pipe-filter-ii1.sh: New file.
25725         * tests/test-pipe-filter-ii1.c: New file.
25726         * tests/test-pipe-filter-ii2.sh: New file.
25727         * tests/test-pipe-filter-ii2-main.c: New file.
25728         * tests/test-pipe-filter-ii2-child.c: New file.
25729
25730         New module 'pipe-filter-ii'.
25731         * lib/pipe-filter.h: New file.
25732         * lib/pipe-filter-ii.c: New file.
25733         * lib/pipe-filter-aux.h: New file.
25734         * modules/pipe-filter-ii: New file.
25735
25736 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25737
25738         * lib/gc-libgcrypt.c: Change copyright to FSF.
25739         * lib/gc-gnulib.c: Likewise.
25740
25741 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25742
25743         * lib/gethostname.c: Include limits.h.
25744
25745 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25746             Bruno Haible  <bruno@clisp.org>
25747
25748         Ensure HOST_NAME_MAX as part of the gethostname module.
25749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25750         define also HOST_NAME_MAX.
25751         * tests/test-gethostname.c: Include <limits.h>.
25752         (main): Check also HOST_NAME_MAX.
25753         * doc/posix-headers/limits.texi: Document the mingw problem.
25754
25755 2009-08-02  Bruno Haible  <bruno@clisp.org>
25756
25757         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25758         Add comments.
25759
25760 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25761
25762         * lib/gethostname.c: Add Windows wrapper.
25763         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25764         * modules/gethostname: Depend on sys_socket & errno, for also
25765         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25766         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25767
25768 2009-07-31  Jim Meyering  <meyering@redhat.com>
25769
25770         getloadavg: fix symbol name in comment
25771         * lib/getloadavg.c: Correct a typo I introduced when adding
25772         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25773         Matt Kraai spotted the problem.
25774
25775 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25776
25777         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25778         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25779         code also if ! defined N_NAME_POINTER.
25780         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25781         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25782         but the n_name member is a 12-byte array.
25783
25784 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25785
25786         update-copyright: generalize comment handling
25787         * build-aux/update-copyright: Handle copyright statements
25788         within more comment styles.
25789         Document usage.
25790         Report any file with an external copyright holder or parse failure.
25791
25792 2009-07-29  Jim Meyering  <meyering@redhat.com>
25793
25794         mktime: correct setting of REPLACE_MKTIME
25795         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25796
25797         update-copyright: new module
25798         * modules/update-copyright: New file.
25799         * build-aux/update-copyright: New file.
25800         * MODULES.html.sh (maint+release support): Add update-copyright.
25801
25802 2009-07-27  Bruno Haible  <bruno@clisp.org>
25803
25804         Fix compilation error when <ctime> is used and mktime is replaced.
25805         * lib/time.in.h (mktime): New declaration.
25806         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25807         REPLACE_MKTIME instead of defining mktime in config.h.
25808         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25809         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25810         Reported by Ross McFarland <rwmcfa1@neces.com>.
25811
25812 2009-07-27  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25815         Reported by Matt Kraai <mkraai@beckman.com>.
25816
25817 2009-07-25  Jim Meyering  <meyering@redhat.com>
25818
25819         maint.mk: avoid warnings about missing files
25820         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25821         diagnostic when .prev-version does not exist.
25822         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25823         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25824         nonexistent cfg.mk.
25825         Suggestions from Simon Josefsson.
25826
25827 2009-07-25  Bruno Haible  <bruno@clisp.org>
25828
25829         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25830         defined as macros. Needed on QNX 6.4.1.
25831         Reported by Matt Kraai <mkraai@beckman.com>.
25832
25833 2009-07-23  Jim Meyering  <meyering@redhat.com>
25834
25835         maint.mk: invoke "make dist" with a working value of XZ_OPT
25836         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25837
25838 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25839
25840         Make fseeko.c compile on QNX.
25841         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25842
25843 2009-07-22  Peter Simons  <simons@cryp.to>
25844
25845         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25846         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25847         * lib/md4.h: Likewise.
25848         * lib/md5.h: Likewise.
25849         * lib/sha1.h: Likewise.
25850         * lib/sha256.h: Likewise.
25851         * lib/sha512.h: Likewise.
25852
25853         tests-sha1: don't assign literal string to 'char *' variable
25854         * tests/test-sha1.c (main): Declare locals with "const" to match
25855         attributes of the right hand side.
25856
25857 2009-07-21  Eric Blake  <ebb9@byu.net>
25858
25859         dup2: fix more mingw problems
25860         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25861         fd to itself.
25862         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25863         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25864         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25865         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25866         care of mingw bugs.
25867
25868 2009-07-21  Jim Meyering  <meyering@redhat.com>
25869
25870         vc-list-files: avoid failure when /bin/sh is dash
25871         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25872         On some Debian based systems, /bin/sh is a symlink to dash, and running
25873         this command would omit the "/" following each 'tests' prefix:
25874           dash -x build-aux/vc-list-files -C . tests
25875         That is because bash and dash work differently:
25876           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25877           bash ok
25878           dash odd
25879
25880 2009-07-21  Eric Blake  <ebb9@byu.net>
25881
25882         dup2-tests: test previous patch
25883         * modules/dup2-tests: New file.
25884         * tests/test-dup2.c: Likewise.
25885         * tests/test-open.c (main): Avoid unspecified behavior.
25886         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25887         test.
25888
25889         dup2: work around mingw and cygwin 1.5 bug
25890         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25892         * modules/unistd (Makefile.am): Substitute it.
25893         * lib/unistd.in.h (dup2): Declare the replacement.
25894         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25895         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25896         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25897         * modules/execute (Depends-on): Add dup2.
25898         * modules/fseterr (Depends-on): Likewise.
25899         * modules/pipe (Depends-on): Likewise.
25900         * modules/posix_spawn-internal (Depends-on): Likewise.
25901
25902 2009-07-21  Bruno Haible  <bruno@clisp.org>
25903
25904         * modules/.gitattributes: New file.
25905
25906 2009-07-20  Bruno Haible  <bruno@clisp.org>
25907
25908         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25909         (main): Use it.
25910
25911 2009-07-20  Eric Blake  <ebb9@byu.net>
25912
25913         test-pipe: make a bit more robust.
25914         * tests/test-pipe.c (myerr): Allow error messages regardless of
25915         what we do to stderr.
25916         (test_pipe): Rearrange to avoid deadlock.
25917         (child_main): Try a larger read, to ensure we avoided deadlock.
25918         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25919         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25920         if misused.
25921
25922 2009-07-19  Jim Meyering  <meyering@redhat.com>
25923
25924         fts: avoid false-positive cycle-detection
25925         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25926         for each new command line argument.
25927
25928 2009-07-19  Bruno Haible  <bruno@clisp.org>
25929
25930         Fix build error on mingw with the modules sys_select and unistd.
25931         * modules/acl-tests (Depends-on): Add close.
25932         * modules/binary-io-tests (Depends-on): Likewise.
25933         * modules/closein-tests (Depends-on): Likewise.
25934         * modules/flock-tests (Depends-on): Likewise.
25935         * modules/fsync-tests (Depends-on): Likewise.
25936         * modules/lseek-tests (Depends-on): Likewise.
25937         * modules/pipe-tests (Depends-on): Likewise.
25938         * modules/posix_spawn-tests (Depends-on): Likewise.
25939         * modules/posix_spawnp-tests (Depends-on): Likewise.
25940         * modules/stat-time-tests (Depends-on): Likewise.
25941         * modules/yesno-tests (Depends-on): Likewise.
25942
25943 2009-07-19  Bruno Haible  <bruno@clisp.org>
25944
25945         Unify conditionals.
25946         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25947         macros, not at the compiler macros.
25948         * lib/pipe.c: Likewise.
25949         * lib/execute.c: Likewise.
25950         * lib/spawni.c: Likewise.
25951
25952 2009-07-19  Bruno Haible  <bruno@clisp.org>
25953
25954         Fix handling of closed stdin/stdout/stderr on mingw.
25955         * lib/w32spawn.h: Include unistd.h.
25956         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25957         file descriptor with O_NOINHERIT flag.
25958         (fd_safer_noinherit): New function, based on fd-safer.c.
25959         (dup_safer_noinherit): New function, based on dup-safer.c.
25960         (undup_safer_noinherit): New function.
25961         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25962         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25963         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25964         instead of fd_safer.
25965         * tests/test-pipe.c: Include <windows.h>.
25966         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25967
25968         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25969         from main.
25970         (test_pipe): Pass an extra argument for disambiguation.
25971         (main): Invoke parent_main or child_main.
25972
25973         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25974         consistently.
25975
25976 2009-07-18  Eric Blake  <ebb9@byu.net>
25977
25978         test-pipe: fix mingw build
25979         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25980
25981 2009-07-18  Bruno Haible  <bruno@clisp.org>
25982
25983         * modules/pipe-tests (Makefile.am): Fix typo.
25984
25985 2009-07-18  Eric Blake  <ebb9@byu.net>
25986
25987         error: fix mingw build
25988         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25989         Reported by Bruno Haible.
25990
25991         error: avoid undefined use of stdout
25992         * lib/error.c (error, error_at_line): Check that fd 1 is open
25993         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25994         is handling faults and the close_stdout module wants to report the
25995         detection of closed stdout as an error.
25996
25997 2009-07-17  Eric Blake  <ebb9@byu.net>
25998
25999         pipe: be robust in face of closed fds
26000         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26001         should cause child to misbehave.
26002         * modules/pipe-tests: New module.
26003         * tests/test-pipe.c: New file.
26004         * tests/test-pipe.sh: New file.
26005         Reported by Akim Demaille.
26006
26007 2009-07-14  Bruno Haible  <bruno@clisp.org>
26008
26009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26010         Reported by anonymous kc.
26011
26012 2009-07-07  Jim Meyering  <meyering@redhat.com>
26013
26014         maint.mk: don't look for translatable strings in *.m4 or *.mk
26015         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26016         when searching for translatable strings.
26017
26018 2009-07-05  Jim Meyering  <meyering@redhat.com>
26019
26020         remove superfluous parentheses in STREQ definition
26021         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26022         * lib/getugroups.c (STREQ): Likewise.
26023         * lib/fnmatch.c (STREQ): Likewise.
26024         Spotted by Bruno Haible.
26025
26026 2009-07-04  Jim Meyering  <meyering@redhat.com>
26027
26028         argv-iter: new module
26029         * MODULES.html.sh: Add argv-iter.
26030         * lib/argv-iter.c, lib/argv-iter.h: New files.
26031         * modules/argv-iter: New file.
26032         * modules/argv-iter-tests: New file.
26033         * tests/test-argv-iter.c: Test it.
26034
26035 2009-07-04  Bruno Haible  <bruno@clisp.org>
26036
26037         Fix assertion.
26038         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26039         contains more exact copies of a given entry than file2, leave the extra
26040         copies unpaired rather than aborting.
26041         Reported by Eric Blake.
26042
26043 2009-07-02  Bruno Haible  <bruno@clisp.org>
26044
26045         Speedup git-merge-changelog for git cherry-pick.
26046         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26047         (entries_mapping_get): New function, extracted from compute_mapping.
26048         (entries_mapping_reverse_get): New function.
26049         (compute_mapping): Add a 'full' argument. Return the result in a
26050         'struct entries_mapping'.
26051         (main): Update. Access the mappings through entries_mapping_get.
26052         Reported by Eric Blake.
26053
26054 2009-07-02  Bruno Haible  <bruno@clisp.org>
26055
26056         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26057         best_i.
26058
26059 2009-07-02  Bruno Haible  <bruno@clisp.org>
26060
26061         Speed up approximate search for matching ChangeLog entries.
26062         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26063         argument. Call fstrcmp_bounded instead of fstrcmp.
26064         (compute_mapping, try_split_merged_entry, main): Update callers.
26065
26066 2009-07-02  Bruno Haible  <bruno@clisp.org>
26067
26068         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26069
26070 2009-06-30  Bruno Haible  <bruno@clisp.org>
26071
26072         Reduce the number of uc_is_cased calls.
26073         * lib/unicase.h (casing_suffix_context_t): Add
26074         'first_char_except_ignorable' field.
26075         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26076         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26077         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26078         Update initializer.
26079         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26080         case-ignorable characters.
26081         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26082         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26083         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26084         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26085         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26086
26087 2009-06-30  Bruno Haible  <bruno@clisp.org>
26088
26089         Tests for module 'unicase/ignorable'.
26090         * modules/unicase/ignorable-tests: New file.
26091         * tests/unicase/test-ignorable.c: New file, generated by
26092         gen-uni-tables.
26093
26094         Tests for module 'unicase/cased'.
26095         * modules/unicase/cased-tests: New file.
26096         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26097         * tests/unicase/test-predicate-part1.h: New file, derived from
26098         tests/unictype/test-predicate-part1.h.
26099         * tests/unicase/test-predicate-part2.h: New file, same as
26100         tests/unictype/test-predicate-part2.h.
26101
26102         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26103         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26104         (output_casing_properties): New function.
26105         (main): Call it.
26106         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26107         * lib/unicase/cased.c: Include unictype/bitmap.h.
26108         (uc_is_cased): Define through a bitmap lookup.
26109         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26110         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26111         (uc_is_case_ignorable): Define through a bitmap lookup.
26112         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26113         lib/unictype/bitmap.h.
26114         (Depends-on): Add inline. Clean up.
26115         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26116         lib/unictype/bitmap.h.
26117         (Depends-on): Add inline. Clean up.
26118         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26119         recognition.
26120         * tests/unicase/test-u16-tolower.c (main): Likewise.
26121         * tests/unicase/test-u32-tolower.c (main): Likewise.
26122
26123 2009-06-30  Bruno Haible  <bruno@clisp.org>
26124
26125         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26126         * lib/unicase/u16-casemap.c: Likewise.
26127         * lib/unicase/u32-casemap.c: Likewise.
26128
26129 2009-06-29  Bruno Haible  <bruno@clisp.org>
26130
26131         Define u32_casefold as a wrapper around u32_ct_casefold.
26132         * lib/unicase/u32-casefold.c: Update.
26133         * modules/unicase/u32-casefold (Depends-on): Add
26134         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26135         unicase/empty-suffix-context. Clean up.
26136
26137         Define u16_casefold as a wrapper around u16_ct_casefold.
26138         * lib/unicase/u16-casefold.c: Update.
26139         * modules/unicase/u16-casefold (Depends-on): Add
26140         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26141         unicase/empty-suffix-context. Clean up.
26142
26143         Define u8_casefold as a wrapper around u8_ct_casefold.
26144         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26145         * lib/unicase/u8-casefold.c: Update.
26146         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26147         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26148
26149         Define u32_totitle as a wrapper around u32_ct_totitle.
26150         * lib/unicase/u32-totitle.c: Update.
26151         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26152         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26153
26154         Define u16_totitle as a wrapper around u16_ct_totitle.
26155         * lib/unicase/u16-totitle.c: Update.
26156         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26157         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26158
26159         Define u8_totitle as a wrapper around u8_ct_totitle.
26160         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26161         functions.
26162         (FUNC): Delegate to U_CT_TOTITLE.
26163         * lib/unicase/u8-totitle.c: Update.
26164         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26165         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26166
26167         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26168         invocation.
26169         * modules/unicase/u32-tolower (Depends-on): Add
26170         unicase/empty-prefix-context, unicase/empty-suffix-context.
26171
26172         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26173         invocation.
26174         * modules/unicase/u16-tolower (Depends-on): Add
26175         unicase/empty-prefix-context, unicase/empty-suffix-context.
26176
26177         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26178         * modules/unicase/u8-tolower (Depends-on): Add
26179         unicase/empty-prefix-context, unicase/empty-suffix-context.
26180
26181         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26182         invocation.
26183         * modules/unicase/u32-toupper (Depends-on): Add
26184         unicase/empty-prefix-context, unicase/empty-suffix-context.
26185
26186         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26187         invocation.
26188         * modules/unicase/u16-toupper (Depends-on): Add
26189         unicase/empty-prefix-context, unicase/empty-suffix-context.
26190
26191         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26192         * modules/unicase/u8-toupper (Depends-on): Add
26193         unicase/empty-prefix-context, unicase/empty-suffix-context.
26194
26195         New module 'unicase/u32-ct-casefold'.
26196         * lib/unicase/u32-ct-casefold.c: New file.
26197         * modules/unicase/u32-ct-casefold: New file.
26198
26199         New module 'unicase/u16-ct-casefold'.
26200         * lib/unicase/u16-ct-casefold.c: New file.
26201         * modules/unicase/u16-ct-casefold: New file.
26202
26203         New module 'unicase/u8-ct-casefold'.
26204         * lib/unicase/u8-ct-casefold.c: New file.
26205         * lib/unicase/u-ct-casefold.h: New file, derived from
26206         lib/unicase/u-casefold.h.
26207         * modules/unicase/u8-ct-casefold: New file.
26208
26209         New module 'unicase/u32-ct-totitle'.
26210         * lib/unicase/u32-ct-totitle.c: New file.
26211         * modules/unicase/u32-ct-totitle: New file.
26212
26213         New module 'unicase/u16-ct-totitle'.
26214         * lib/unicase/u16-ct-totitle.c: New file.
26215         * modules/unicase/u16-ct-totitle: New file.
26216
26217         New module 'unicase/u8-ct-totitle'.
26218         * lib/unicase/u8-ct-totitle.c: New file.
26219         * lib/unicase/u-ct-totitle.h: New file, derived from
26220         lib/unicase/u-totitle.h.
26221         * modules/unicase/u8-ct-totitle: New file.
26222
26223         New module 'unicase/u32-ct-tolower'.
26224         * lib/unicase/u32-ct-tolower.c: New file.
26225         * modules/unicase/u32-ct-tolower: New file.
26226
26227         New module 'unicase/u16-ct-tolower'.
26228         * lib/unicase/u16-ct-tolower.c: New file.
26229         * modules/unicase/u16-ct-tolower: New file.
26230
26231         New module 'unicase/u8-ct-tolower'.
26232         * lib/unicase/u8-ct-tolower.c: New file.
26233         * modules/unicase/u8-ct-tolower: New file.
26234
26235         New module 'unicase/u32-ct-toupper'.
26236         * lib/unicase/u32-ct-toupper.c: New file.
26237         * modules/unicase/u32-ct-toupper: New file.
26238
26239         New module 'unicase/u16-ct-toupper'.
26240         * lib/unicase/u16-ct-toupper.c: New file.
26241         * modules/unicase/u16-ct-toupper: New file.
26242
26243         New module 'unicase/u8-ct-toupper'.
26244         * lib/unicase/u8-ct-toupper.c: New file.
26245         * modules/unicase/u8-ct-toupper: New file.
26246
26247         Add context arguments to u*_casemap functions.
26248         * lib/unicase/unicasemap.h: Include unicase.h.
26249         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26250         suffix_context arguments.
26251         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26252         functions.
26253         (FUNC): Add prefix_context and suffix_context arguments. Use
26254         uc_is_cased and uc_is_case_ignorable.
26255         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26256         * lib/unicase/u16-casemap.c: Likewise.
26257         * lib/unicase/u32-casemap.c: Likewise.
26258         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26259         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26260         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26261         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26262         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26263         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26264
26265         New module 'unicase/u32-suffix-context'.
26266         * lib/unicase/u32-suffix-context.c: New file.
26267         * modules/unicase/u32-suffix-context: New file.
26268
26269         New module 'unicase/u16-suffix-context'.
26270         * lib/unicase/u16-suffix-context.c: New file.
26271         * modules/unicase/u16-suffix-context: New file.
26272
26273         New module 'unicase/u8-suffix-context'.
26274         * lib/unicase/u8-suffix-context.c: New file.
26275         * lib/unicase/u-suffix-context.h: New file.
26276         * modules/unicase/u8-suffix-context: New file.
26277
26278         New module 'unicase/empty-suffix-context'.
26279         * lib/unicase/empty-suffix-context.c: New file.
26280         * modules/unicase/empty-suffix-context: New file.
26281
26282         New module 'unicase/u32-prefix-context'.
26283         * lib/unicase/u32-prefix-context.c: New file.
26284         * modules/unicase/u32-prefix-context: New file.
26285
26286         New module 'unicase/u16-prefix-context'.
26287         * lib/unicase/u16-prefix-context.c: New file.
26288         * modules/unicase/u16-prefix-context: New file.
26289
26290         New module 'unicase/u8-prefix-context'.
26291         * lib/unicase/u8-prefix-context.c: New file.
26292         * lib/unicase/u-prefix-context.h: New file.
26293         * lib/unicase/context.h: New file.
26294         * modules/unicase/u8-prefix-context: New file.
26295
26296         New module 'unicase/empty-prefix-context'.
26297         * lib/unicase/empty-prefix-context.c: New file.
26298         * modules/unicase/empty-prefix-context: New file.
26299
26300         New module 'unicase/ignorable'.
26301         * lib/unicase/ignorable.c: New file.
26302         * modules/unicase/ignorable: New file.
26303
26304         New module 'unicase/cased'.
26305         * lib/unicase/caseprop.h: New file.
26306         * lib/unicase/cased.c: New file.
26307         * modules/unicase/cased: New file.
26308
26309         New functions for case mapping of substrings.
26310         * lib/unicase.h (casing_prefix_context_t): New type.
26311         (unicase_empty_prefix_context): New variable.
26312         (u8_casing_prefix_context, u16_casing_prefix_context,
26313         u32_casing_prefix_context, u8_casing_prefixes_context,
26314         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26315         declarations.
26316         (casing_suffix_context_t): New type.
26317         (unicase_empty_suffix_context): New variable.
26318         (u8_casing_suffix_context, u16_casing_suffix_context,
26319         u32_casing_suffix_context, u8_casing_suffixes_context,
26320         u16_casing_suffixes_context, u32_casing_suffixes_context,
26321         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26322         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26323         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26324         declarations.
26325
26326 2009-06-28  Jim Meyering  <meyering@redhat.com>
26327
26328         boostrap: indent only with spaces
26329         * build-aux/bootstrap: Indent only with spaces, never TABs.
26330
26331         bootstrap: split long lines
26332         * build-aux/bootstrap: Keep line length < 80.
26333
26334         bootstrap: sync from coreutils
26335         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26336         just as autoreconf does.  Verify a list of prerequisite
26337         package-name,version-number pairs if defined in bootstrap.conf.
26338         Refer to README-prereq, if prerequisites are not satisfied.
26339
26340 2009-06-27  Eric Blake  <ebb9@byu.net>
26341
26342         tests: add test for bogus NULL definition
26343         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26344         * tests/test-stdlib.c: Likewise.
26345         * tests/test-string.c: Likewise.
26346         * tests/test-locale.c: Likewise.
26347         * tests/test-unistd.c: Likewise.
26348         * modules/stdio-tests (Depends-on): Add verify.
26349         * modules/stdlib-tests (Depends-on): Likewise.
26350         * modules/string-tests (Depends-on): Likewise.
26351         * modules/locale-tests (Depends-on): Likewise.
26352         * modules/unistd-tests (Depends-on): Likewise.
26353
26354 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26355
26356         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26357         self-explaining comment.
26358         * m4/selinux-selinux-h: Update serial.
26359         (gl_LIBSELINUX): New macro, adding a warning for missing development
26360         packages to code extracted from...
26361         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26362         Add warning for missing development packages here, too.
26363
26364 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26365
26366         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26367
26368 2009-06-25  Eric Blake  <ebb9@byu.net>
26369
26370         version-etc: fix regression
26371         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26372         gcc.
26373         (version_etc): Use it, to catch bugs with trailing NULL.
26374         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26375         (version_etc_va): Fix logic bug.
26376         * modules/version-etc-tests: Add test.
26377         * tests/test-version-etc.c: New file.
26378         * tests/test-version-etc.sh: Likewise.
26379
26380 2009-06-25  Sam Steingold  <sds@gnu.org>
26381
26382         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26383         mbtowc declaration.
26384
26385 2009-06-25  Eric Blake  <ebb9@byu.net>
26386
26387         fpurge: migrate into <stdio.h>
26388         * lib/fpurge.h: Delete...
26389         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26390         * lib/fpurge.c (fpurge): Change declaring header.
26391         * modules/fpurge (Files): Drop deleted file.
26392         (Depends-on): Add stdio.
26393         (configure.ac): Set witness.
26394         * modules/stdio (Makefile.am): Support fpurge macros.
26395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26396         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26397         * lib/fflush.c: Update client.
26398         * tests/test-fpurge.c: Likewise.
26399         * NEWS: Mention the change.
26400
26401 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26402
26403         * lib/argp-version-etc.c (program_authors): Add const
26404         qualifier.
26405         * lib/version-etc.c: Fix typos in the comments.
26406         * modules/argp-version-etc: Depends on version-etc.
26407
26408 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26409
26410         argp-version-etc: new module.
26411
26412         * lib/argp-version-etc.c: New file.
26413         * lib/argp-version-etc.h: New file.
26414         * modules/argp-version-etc: New file.
26415         * modules/argp-version-etc-tests: New file.
26416         * tests/test-argp-version-etc.c: New test.
26417         * tests/test-argp-version-etc-1.sh: New test.
26418
26419 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26420
26421         Provide additional interfaces and documentation for version-etc
26422         module.
26423
26424         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26425         interfaces.
26426         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26427         prototypes.
26428
26429 2009-06-24  Bruno Haible  <bruno@clisp.org>
26430
26431         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26432         HAVE_LIB${NAME} macro.
26433         Reported by Sam Steingold <sds@gnu.org>.
26434
26435 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26436
26437         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26438         needed.
26439
26440 2009-06-21  Bruno Haible  <bruno@clisp.org>
26441
26442         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26443         work.
26444         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26445         together with LIB${NAME}, LTLIB${NAME}.
26446         Reported by Sam Steingold <sds@gnu.org>.
26447
26448 2009-06-20  Jim Meyering  <meyering@redhat.com>
26449
26450         tests: make sc_require_test_exit_idiom more generic
26451         * top/maint.mk (Exit_witness_file): New overridable variable.
26452         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26453         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26454
26455 2009-06-19  Jim Meyering  <meyering@redhat.com>
26456
26457         hash: reverse order of src/dst parameters in an internal interface
26458         * lib/hash.c (transfer_entries): Reverse order of parameters to
26459         put DST before SRC.  Adjust callers.
26460
26461         tests: test-hash: avoid wholesale duplication
26462         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26463         Instead, use a loop and add a single conditional.
26464
26465         tests: test-hash: allow seed selection via a command line argument
26466         * tests/test-hash.c (get_seed): New function.
26467         (main): Use it.
26468
26469 2009-06-19  Eric Blake  <ebb9@byu.net>
26470
26471         hash: avoid memory leak on allocation failure
26472         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26473         failure.  Factor repeated algorithm...
26474         (transfer_entries): ...into new helper routine.
26475         (hash_delete): React to hash_rehash return value.
26476
26477         hash: reduce memory pressure in hash_rehash no-op case
26478         * lib/hash.c (next_prime): Avoid overflow.
26479         (hash_initialize): Factor bucket size computation...
26480         (compute_bucket_size): ...into new helper function.
26481         (hash_rehash): Use new function and open coding to reduce memory
26482         pressure, and avoid a memory leak in USE_OBSTACK code.
26483         Reported by Jim Meyering.
26484
26485 2009-06-18  Eric Blake  <ebb9@byu.net>
26486
26487         hash: make rotation more obvious
26488         * modules/hash (Depends-on): Add bitrotate and stdint.
26489         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26490         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26491         (SIZE_MAX): Rely on headers for definition.
26492         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26493         (raw_hasher): Use rotr_sz.
26494         Suggested by Jim Meyering.
26495
26496         hash: fix memory leak in last patch
26497         * lib/hash.c (hash_rehash): Avoid memory leak.
26498
26499         hash: avoid no-op rehashing
26500         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26501
26502         hash: provide default callback functions
26503         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26504         (hash_initialize): Use them as defaults.
26505         * tests/test-hash.c (main): Test this.
26506
26507         hash: minor optimization
26508         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26509         when possible.
26510         (hash_initialize): Document this promise.
26511         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26512         * tests/test-hash.c (hash_compare_strings): Test this.
26513
26514 2009-06-18  Bruno Haible  <bruno@clisp.org>
26515
26516         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26517         going to be replaced anyway.
26518
26519 2009-06-18  Bruno Haible  <bruno@clisp.org>
26520
26521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26522         in one place.
26523         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26524         be replaced anyway.
26525
26526 2009-06-18  Eric Blake  <ebb9@byu.net>
26527
26528         hash: check for resize before insertion
26529         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26530         threshold before insertion, so that a pathological hash_rehash
26531         that fills every bucket can still trigger another rehash.
26532
26533 2009-06-18  Jim Meyering  <meyering@redhat.com>
26534
26535         hash-tests: add a loop around the small tests
26536         * tests/test-hash.c (main): Repeat small tests with selected
26537         small initial table sizes.
26538
26539 2009-06-17  Eric Blake  <ebb9@byu.net>
26540
26541         hash: minor cleanups
26542         * lib/hash.h (hash_entry): Make opaque, by moving...
26543         * lib/hash.c (hash_entry): ...here.
26544         (hash_insert): Clarify restrictions on what can be inserted.
26545         (hash_get_next): Clarify when it is safe to remove an element
26546         during traversal.
26547         (check_tuning): Skip verification when tuning is known safe.
26548         (hash_initialize): Clarify restrictions on tuning.
26549
26550 2009-06-17  Jim Meyering  <jim@meyering.net>
26551         and Eric Blake  <ebb9@byu.net>
26552
26553         hash-tests: new module
26554         * modules/hash-tests: New file.
26555         * tests/test-hash.c: New file.
26556
26557 2009-06-17  Eric Blake  <ebb9@byu.net>
26558
26559         strstr-simple: document new module
26560         * MODULES.html.sh: Document new module.
26561
26562         strstr, strcasestr: replace on platforms with broken memchr
26563         * modules/strstr: Split into...
26564         * modules/strstr-simple: ...new module that does not care about
26565         performance, but does care about glibc bug.
26566         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26567         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26568         if platform memchr is broken, per Debian bug 521737.
26569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26570         memchr.
26571         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26572         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26573         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26574         * modules/mountlist (Depends-on): Add strstr-simple.
26575         * modules/gen-uni-tables (Depends-on): Likewise.
26576         * modules/argz (Depends-on): Add strstr.
26577
26578 2009-06-17  Bruno Haible  <bruno@clisp.org>
26579
26580         * modules/posix_spawn-internal (Depends-on): Add errno.
26581
26582 2009-06-17  Bruno Haible  <bruno@clisp.org>
26583
26584         Define missing ESTALE on Interix 3.5.
26585         * lib/errno.in.h (ESTALE): Assign a value if missing.
26586         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26587         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26588         missing.
26589         * doc/posix-headers/errno.texi: Mention the Interix bug.
26590         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26591
26592 2009-06-15  Eric Blake  <ebb9@byu.net>
26593
26594         memchr, memchr2: add valgrind exception
26595         * lib/memchr.valgrind: New file.
26596         * lib/memchr2.valgrind: New file.
26597         * modules/memchr (Files): Distribute valgrind file.
26598         * modules/memchr2 (Files): Likewise.
26599
26600         docs: memchr is no longer obsolete
26601         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26602         * lib/string.in.h (memchr): Simplify logic.
26603
26604 2009-06-14  Jim Meyering  <meyering@redhat.com>
26605
26606         link-follow: fix the "checking..." message to not mention trailing slash
26607         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26608         never considered trailing slashes.
26609
26610 2009-06-14  Bruno Haible  <bruno@clisp.org>
26611
26612         * m4/memchr.m4: Mention also the bug on IA-64.
26613         * doc/posix-functions/memchr.texi: Likewise.
26614
26615 2009-06-12  Eric Blake  <ebb9@byu.net>
26616
26617         memchr: detect broken x86_64 and alpha implementations
26618         * modules/memchr-tests (Depends-on): Move mmap detection...
26619         * modules/memchr (Depends-on): ...here.
26620         (configure.ac): Set indicator.
26621         * lib/string.in.h (memchr): Declare replacement.
26622         * modules/string (Makefile.am): Trigger replacement.
26623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26624         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26625         bugs.
26626         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26627         * modules/getpagesize (License): Relax license.
26628
26629 2009-06-11  Bruno Haible  <bruno@clisp.org>
26630
26631         * lib/idpriv.h: Add more references.
26632
26633 2009-06-08  Bruno Haible  <bruno@clisp.org>
26634
26635         Tests for module 'idpriv-droptemp'.
26636         * modules/idpriv-droptemp-tests: New file.
26637         * tests/test-idpriv-droptemp.sh: New file.
26638         * tests/test-idpriv-droptemp.su.sh: New file.
26639         * tests/test-idpriv-droptemp.c: New file.
26640
26641         New module 'idpriv-droptemp'.
26642         * lib/idpriv-droptemp.c: New file.
26643         * modules/idpriv-droptemp: New file.
26644
26645 2009-06-08  Bruno Haible  <bruno@clisp.org>
26646
26647         Tests for module 'idpriv-drop'.
26648         * modules/idpriv-drop-tests: New file.
26649         * tests/test-idpriv-drop.sh: New file.
26650         * tests/test-idpriv-drop.su.sh: New file.
26651         * tests/test-idpriv-drop.c: New file.
26652
26653         New module 'idpriv-drop'.
26654         * lib/idpriv.h: New file.
26655         * lib-idpriv-drop.c: New file.
26656         * m4/idpriv.m4: New file.
26657         * modules/idpriv-drop: New file.
26658
26659 2009-06-08  Bruno Haible  <bruno@clisp.org>
26660
26661         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26662         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26663         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26664         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26665         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26666         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26667         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26668
26669 2009-06-08  Eric Blake  <ebb9@byu.net>
26670
26671         test-strstr: use memory fence, when possible
26672         * tests/test-strstr.c (main): Use memory fence, in order to be
26673         more likely to trigger Debian bug 521737.
26674         * modules/strstr-tests (Files): Pull in additional files.
26675
26676         memchr: no longer obsolete, for wider field testing
26677         * modules/memchr (Status, Notice): Delete, this module is no
26678         longer obsolete.
26679         * modules/vasnprintf (Depends-on): Add memchr.
26680
26681 2009-06-07  Jim Meyering  <meyering@redhat.com>
26682
26683         hash: declare some functions with the warn_unused_result attribute
26684         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26685
26686 2009-06-07  Bruno Haible  <bruno@clisp.org>
26687
26688         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26689         Reported by Eric Blake.
26690
26691 2009-06-06  Eric Blake  <ebb9@byu.net>
26692
26693         test-alignof: fix typo with long double
26694         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26695         compiler error.
26696
26697 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26698
26699         Escape non-texinfo { and }s.
26700         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26701         markup error.
26702
26703 2009-06-04  Jim Meyering  <meyering@redhat.com>
26704
26705         gitlog-to-changelog: don't infloop on an empty commit log
26706         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26707         Reported by Boris Petersen <transacid@centerim.org>.
26708
26709 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26710
26711         version-etc: extend for packagers
26712         Add three new configure options, intended for packagers:
26713           --with-packager="packager name"
26714           --with-packager-version="packager-specific version"
26715           --with-packager-bug-reports="packager bug reporting"
26716         An example with coreutils:
26717           $ ./configure \
26718             --with-packager=Gentoo \
26719             --with-packager-bug-report=http://bugs.gentoo.org/ \
26720             --with-packager-version="patchset 1.6"
26721           $ ./src/ls --version | head -n2
26722           ls (GNU coreutils) 7.1-dirty
26723           Packaged by Gentoo (patchset 1.6)
26724         Note that the bug reporting info via --help doesn't show up because
26725         coreutils uses its own custom emit_bug_reporting_address() implementation
26726         in src/system.h.  If it didn't, it'd look like:
26727           $ ./src/ls --help | tail -n4
26728           Report bugs to <bug-coreutils@gnu.org>.
26729           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26730           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26731           General help using GNU software: <http://www.gnu.org/gethelp/>.
26732         * lib/version-etc.c: Print new information, if provided.
26733         * m4/version-etc.m4: New file.
26734         * modules/version-etc (Files): Add m4/version-etc.m4.
26735         (configure.ac): Add gl_VERSION_ETC.
26736
26737 2009-05-31  Bruno Haible  <bruno@clisp.org>
26738
26739         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26740         and 'int64_t'.
26741         * modules/alignof-tests (Dependencies): Add stdint.
26742         Reported by Eric Blake.
26743
26744 2009-05-31  Bruno Haible  <bruno@clisp.org>
26745
26746         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26747         restriction due to compiler bugs.
26748         Reported by Eric Blake.
26749
26750 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26751             Bruno Haible  <bruno@clisp.org>
26752
26753         Fix test-alignof failure.
26754         * lib/alignof.h (alignof_slot): New macro.
26755         (alignof_type): New macro, with the same semantics as the previous
26756         'alignof'.
26757         (alignof): Alias to alignof_slot.
26758         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26759         check that the results are usable as constant expressions.
26760
26761 2009-05-31  Bruno Haible  <bruno@clisp.org>
26762
26763         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26764         * tests/test-memchr.c (main): Check that memchr does not read past the
26765         first occurrence of the byte.
26766         * tests/test-strstr.c (main): Update comment.
26767         Suggested by Eric Blake.
26768
26769 2009-05-30  Bruno Haible  <bruno@clisp.org>
26770
26771         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26772         detail how to use dumpbin.
26773         Reported by David Byron <dbyron@dbyron.com>.
26774
26775 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26776
26777         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26778
26779 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26780
26781         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26782
26783 2009-05-28  Bruno Haible  <bruno@clisp.org>
26784
26785         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26786         build-aux/ files.
26787
26788 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26789
26790         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26791
26792 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26793
26794         * gnulib-tool (sed_transform_main_lib_file)
26795         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26796         regexps.
26797
26798 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26799
26800         * tests/test-strstr.c: Add another self-test.
26801         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26802         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26803
26804 2009-05-23  Bruno Haible  <bruno@clisp.org>
26805
26806         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26807         change.
26808
26809 2009-05-21  Bruno Haible  <bruno@clisp.org>
26810
26811         Simplify use of mode_t varargs.
26812         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26813         uses 'mode_t' or 'int'.
26814         * lib/openat.c (openat): Likewise.
26815         * lib/open-safer.c (open_safer): Likewise.
26816         * m4/mode_t.m4: New file.
26817         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26818         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26819         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26820         * modules/open (Files): Add m4/mode_t.m4.
26821         * modules/openat (Files): Likewise.
26822         * modules/fcntl-safer (Files): Likewise.
26823         Suggested by Eric Blake.
26824
26825 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26826
26827         * doc/glibc-functions/fallocate.texi: New file.
26828         * doc/gnulib.texi: Include it.
26829
26830 2009-05-21  Eric Blake  <ebb9@byu.net>
26831             Bruno Haible  <bruno@clisp.org>
26832
26833         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26834         invocations.
26835         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26836
26837 2009-05-21  Eric Blake  <ebb9@byu.net>
26838             Bruno Haible  <bruno@clisp.org>
26839
26840         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26841         include_next. Fix of 2008-11-20 commit.
26842         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26843         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26844         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26845         NEXT_MATH_H.
26846         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26847         instead of NEXT_MATH_H.
26848
26849 2009-05-21  Bruno Haible  <bruno@clisp.org>
26850
26851         Avoid redefinition warnings for SIZE_MAX.
26852         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26853         Reported by Simon Josefsson.
26854
26855 2009-05-21  Bruno Haible  <bruno@clisp.org>
26856
26857         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26858         AC_CACHE_VAL.
26859
26860 2009-05-20  Bruno Haible  <bruno@clisp.org>
26861
26862         Make zeroptr.h work on mingw.
26863         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26864         mprotect.
26865         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26866         * modules/memchr2-tests (configure.ac): Likewise.
26867         * modules/memcmp-tests (configure.ac): Likewise.
26868         * modules/memmem-tests (configure.ac): Likewise.
26869         * modules/memrchr-tests (configure.ac): Likewise.
26870         Reported by Simon Josefsson.
26871
26872 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26873
26874         * tests/test-glob.c: Include string.h for strcmp prototype.
26875
26876 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26877
26878         * modules/getdelim (Depends-on): Add explicit stdint, although it
26879         was implicitly already pulled in via realloc-posix.
26880         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26881
26882 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26883
26884         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26885         G. Christensen" <tgc@jupiterrise.com>.
26886         * m4/sys_socket_h.m4: Check for sa_family_t.
26887         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26888         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26889         * tests/test-sys_socket.c: Check that sa_family_t works.
26890
26891 2009-05-18  Eric Blake  <ebb9@byu.net>
26892
26893         maint.mk: allow gnulib_dir in VPATH build
26894         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26895
26896 2009-05-15  Jim Meyering  <meyering@redhat.com>
26897
26898         maint.mk: Give gnulib_dir a default definition.
26899         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26900         Thus, most packages no longer need to specify this variable in cfg.mk
26901
26902 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26903
26904         rename.m4: fix typos that would make non-mingw cross-configure fail
26905         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26906
26907 2009-05-13  Eric Blake  <ebb9@byu.net>
26908
26909         mmap-anon: avoid out-of-order autoconf expansion
26910         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26911         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26912         * modules/memchr-tests (Depends-on): Add extensions.
26913         * modules/memchr2-tests (Depends-on): Add extensions.
26914         * modules/memcmp-tests (Depends-on): Add extensions.
26915         * modules/memmem-tests (Depends-on): Add extensions.
26916         * modules/memrchr-tests (Depends-on): Add extensions.
26917
26918 2009-05-13  Bruno Haible  <bruno@clisp.org>
26919
26920         Make some tests ISO C 99 compliant.
26921         * tests/zerosize-ptr.h: New file.
26922         * tests/test-memchr.c: Include zerosize-ptr.h.
26923         (main): Use a zero-size object pointer instead of NULL.
26924         * tests/test-memchr2.c: Include zerosize-ptr.h.
26925         (main): Use a zero-size object pointer instead of NULL.
26926         * tests/test-memcmp.c: Include zerosize-ptr.h.
26927         (main): Use a zero-size object pointer instead of NULL.
26928         * tests/test-memmem.c: Include zerosize-ptr.h.
26929         (main): Use a zero-size object pointer instead of NULL.
26930         * tests/test-memrchr.c: Include zerosize-ptr.h.
26931         (main): Use a zero-size object pointer instead of NULL.
26932         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26933         m4/mmap-anon.m4.
26934         (Depends-on): Add getpagesize.
26935         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26936         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26937         m4/mmap-anon.m4.
26938         (Depends-on): Add getpagesize.
26939         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26940         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26941         m4/mmap-anon.m4.
26942         (Depends-on): Add getpagesize.
26943         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26944         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26945         m4/mmap-anon.m4.
26946         (Depends-on): Add getpagesize.
26947         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26948         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26949         m4/mmap-anon.m4.
26950         (Depends-on): Add getpagesize.
26951         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26952
26953 2009-05-12  Bruno Haible  <bruno@clisp.org>
26954
26955         Tests for module 'alignof'.
26956         * modules/alignof-tests: New file.
26957         * tests/test-alignof.c: New file.
26958
26959 2009-05-12  Bruno Haible  <bruno@clisp.org>
26960
26961         Fix alignof macro.
26962         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26963         vendor compilers that are always correct.
26964
26965 2009-05-12  Bruno Haible  <bruno@clisp.org>
26966
26967         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26968         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26969         not whether its fully works.
26970
26971 2009-05-12  Bruno Haible  <bruno@clisp.org>
26972
26973         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26974
26975 2009-05-12  Jim Meyering  <meyering@redhat.com>
26976
26977         * top/maint.mk: Adjust backslash alignment.
26978
26979 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26980
26981         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26982
26983 2009-05-11  Eric Blake  <ebb9@byu.net>
26984
26985         argp: avoid undefined behavior
26986         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26987         macros.
26988
26989 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26990
26991         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26992         user.name to prevent git commit from complaining.
26993
26994 2009-05-10  Bruno Haible  <bruno@clisp.org>
26995
26996         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26997         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26998         it rewrites every file name only once.
26999         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27000
27001 2009-05-08  Bruno Haible  <bruno@clisp.org>
27002
27003         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27004         instead of 'max'.
27005
27006 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27007
27008         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27009         sockaddr_storage test.
27010
27011 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27012
27013         * modules/sys_socket (Makefile.am): Substitute
27014         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27015         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27016         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27017         * tests/test-sys_socket.c: Check sockaddr_storage.
27018
27019 2009-05-08  Bruno Haible  <bruno@clisp.org>
27020
27021         New module 'alignof'.
27022         * lib/alignof.h: New file.
27023         * modules/alignof: New file.
27024
27025 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27026             Bruno Haible  <bruno@clisp.org>
27027
27028         Fix test-file-has-acl on FreeBSD.
27029         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27030         mask is implicitly added.
27031         * tests/test-file-has-acl.c: Include <signal.h>.
27032         (main): Terminate the test after 5 seconds.
27033         * modules/acl-tests (configure.ac): Check for alarm function.
27034
27035 2009-05-04  Bruno Haible  <bruno@clisp.org>
27036
27037         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27038         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27039         * modules/errno (configure.ac): Drop AC_REQUIRE.
27040         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27041         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27042
27043 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27044
27045         * modules/glob-tests: New module.
27046         * tests/test-glob.c: Add.
27047
27048 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27049
27050         * modules/fnmatch-tests: New module.
27051         * tests/test-fnmatch.c: Add.
27052
27053 2009-05-04  Eric Blake  <ebb9@byu.net>
27054
27055         maint: make the new no-submodule-changes rule VPATH-safe
27056         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27057
27058 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27059             Bruno Haible  <bruno@clisp.org>
27060
27061         acl: Fix infinite loop on FreeBSD.
27062         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27063         of return value from acl_get_entry.
27064         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27065         Likewise.
27066
27067 2009-05-03  Bruno Haible  <bruno@clisp.org>
27068
27069         * lib/acl-internal.h (acl_entries): Clarify return value.
27070         * lib/acl_entries.c (acl_entries): Likewise.
27071
27072 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27073
27074         Bug fix in acl module.
27075         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27076
27077 2009-05-03  Bruno Haible  <bruno@clisp.org>
27078
27079         Create gperf-generated file in the source dir, not in the build dir.
27080         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27081         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27082         * modules/unicase/locale-language (unicase/locale-languages.h):
27083         Likewise.
27084         * modules/unicase/special-casing (unicase/special-casing-table.h):
27085         Likewise.
27086         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27087         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27088         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27089         Reported by Ralf Wildenhues.
27090
27091 2009-05-03  Bruno Haible  <bruno@clisp.org>
27092
27093         * modules/fnmatch (Description, configure.ac): Taken from
27094         fnmatch-posix.
27095         * modules/fnmatch-posix: Turn into a symbolic reference to the
27096         'fnmatch' module, and deprecate.
27097         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27098
27099 2009-05-03  Bruno Haible  <bruno@clisp.org>
27100
27101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27102         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27103         Reported by Ralf Wildenhues.
27104
27105 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27106
27107         * m4/fnmatch.m4: Fix fnmatch re-define.
27108
27109 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27110
27111         priv-set: new module and tests; adapt write-any-file
27112         * lib/priv-set.c: New file.
27113         * lib/priv-set.h: New file.
27114         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27115         * lib/write-any-file.c: Simplify by using priv-set module.
27116         * m4/priv-set.m4: New file.
27117         * modules/priv-set: New file.
27118         * modules/unlinkdir: Add dependency on priv-set module.
27119         * modules/write-any-file: Likewise.
27120
27121         Tests for module 'priv-set'.
27122         * modules/priv-set-tests: New file.
27123         * tests/test-priv-set.c: New file.
27124
27125 2009-05-03  Jim Meyering  <meyering@redhat.com>
27126             Bruno Haible  <bruno@clisp.org>
27127
27128         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27129         use the converted UTF-8 variant of the name instead.
27130
27131 2009-05-03  Jim Meyering  <meyering@redhat.com>
27132
27133         tests: tighten some getdate tests
27134         * tests/test-getdate.c (main): Tighten tests: require equality,
27135         not just greater than.  Set TZ envvar to UTC0.
27136
27137 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27138
27139         getdate: correctly interpret "next monday" when run on a Monday
27140         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27141         that e.g., "next tues" (when run on a tuesday) results in a date
27142         that is one week in the future, and not today's date.
27143         I.e., add a week when the wday is the same as the current one.
27144         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27145         and earlier by Martin Bernreuther and Jan Minář.
27146         * tests/test-getdate.c (main): Check that "next DAY" is always in
27147         the future and that "last DAY" is always in the past.
27148
27149 2009-05-02  Jim Meyering  <meyering@redhat.com>
27150
27151         build: ensure that a release build fails when a submodule is unclean
27152         * top/maint.mk (no-submodule-changes): New rule.
27153         (alpha beta major): Depend on it.
27154
27155 2009-05-02  Bruno Haible  <bruno@clisp.org>
27156
27157         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27158         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27159         shell variable gl_fnmatch_required to detect which variant is
27160         requested.
27161         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27162         gl_FUNC_FNMATCH_POSIX.
27163         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27164         exclude fnmatch-posix.
27165
27166 2009-05-02  Bruno Haible  <bruno@clisp.org>
27167
27168         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27169         * modules/mbsrtowcs (License): Change to LGPLv2+.
27170         * modules/strnlen1 (License): Likewise.
27171         Reported by Simon Josefsson.
27172
27173 2009-05-02  Bruno Haible  <bruno@clisp.org>
27174
27175         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27176         "cross".
27177         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27178         gnulib-tool was called with option --source-base=lib.
27179
27180 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27181
27182         Use automake *-local hooks without commands, for extensibility.
27183         * modules/localcharset (Makefile.am): Rename install-exec-local
27184         rule to install-exec-localcharset, and make it a prerequisite of
27185         install-exec-local.  Likewise, rename the uninstall-local rule to
27186         uninstall-localcharset, and make it a prerequisite of the former.
27187
27188 2009-05-01  Bruno Haible  <bruno@clisp.org>
27189
27190         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27191         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27192         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27194         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27195         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27196         m4/locale-zh.m4, m4/codeset.m4.
27197
27198         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27199         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27200         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27201         m4/locale-zh.m4.
27202
27203         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27204         REPLACE_WCRTOMB if mbstate_t must be replaced.
27205         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27206         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27207
27208 2009-05-01  Bruno Haible  <bruno@clisp.org>
27209
27210         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27211         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27212         dngettext, dcngettext, textdomain, bindtextdomain,
27213         bind_textdomain_codeset): Undefine before redefining.
27214
27215 2009-04-30  Bruno Haible  <bruno@clisp.org>
27216
27217         Fix bug introduced on 2009-04-25.
27218         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27219         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27220         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27221         is defined.
27222         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27223         is defined.
27224         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27225         is defined.
27226         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27227
27228 2009-04-28  Bruno Haible  <bruno@clisp.org>
27229
27230         Comment tweaks.
27231         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27232         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27233         * lib/unicase.h (u*_casexfrm): Likewise.
27234         Reported by Paolo Bonzini.
27235
27236 2009-04-28  Bruno Haible  <bruno@clisp.org>
27237
27238         Fix a compilation error.
27239         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27240         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27241         Reported by Jim Meyering.
27242
27243 2009-04-27  Bruno Haible  <bruno@clisp.org>
27244
27245         New module 'libunistring'.
27246         * modules/libunistring: New file.
27247         * m4/libunistring.m4: New file.
27248         * MODULES.html.sh (Unicode string functions): Add it.
27249
27250 2009-04-27  Eric Blake  <ebb9@byu.net>
27251
27252         maint.mk: allow package-specific header to provide <config.h>
27253         * top/maint.mk (sc_require_config_h): New variable.
27254         (sc_require_config_h, sc_require_config_h_first): Use it.
27255
27256 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27257
27258         * top/maint.mk (sc_avoid_if_before_free): Except
27259         useless-if-before-free script.
27260
27261 2009-04-27  Eric Blake  <ebb9@byu.net>
27262
27263         maintainer-makefile: depend on all required helper scripts
27264         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27265         useless-if-before-free.
27266         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27267         version, rather than assuming gnulib checkout is available.
27268         Reported by Simen Josefsson.
27269
27270 2009-04-26  Bruno Haible  <bruno@clisp.org>
27271
27272         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27273         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27274         "../" or "..".
27275
27276 2009-04-26  Bruno Haible  <bruno@clisp.org>
27277
27278         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27279         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27280         AC_LIB_HAVE_LINKFLAGS.
27281
27282 2009-04-26  Bruno Haible  <bruno@clisp.org>
27283
27284         Simplify calling convention of u*_conv_from_encoding.
27285         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27286         u32_conv_from_encoding): Expect a resultbuf argument and return the
27287         result directly as a pointer.
27288         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27289         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27290         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27291         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27292         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27293         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27294         Update.
27295         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27296         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27297         * lib/vasnprintf.c (VASNPRINTF): Update.
27298         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27299         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27300         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27301         * NEWS: Mention the change.
27302
27303 2009-04-26  Bruno Haible  <bruno@clisp.org>
27304
27305         Simplify calling convention of u*_conv_to_encoding.
27306         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27307         u32_conv_to_encoding): Expect a resultbuf argument and return the
27308         result directly as a pointer.
27309         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27310         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27311         freeing scaled_offsets if mem_iconveha failed.
27312         * lib/unicase/u-casexfrm.h (FUNC): Update.
27313         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27314         * lib/vasnprintf.c (VASNPRINTF): Update.
27315         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27316         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27317         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27318         * NEWS: Mention the change.
27319
27320 2009-04-26  Bruno Haible  <bruno@clisp.org>
27321
27322         Avoid test failures on AIX and OSF/1.
27323         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27324         malloc(0).
27325         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27326         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27327         Likewise.
27328         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27329         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27330         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27331         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27332         * doc/posix-functions/malloc.texi: Document the portability problem
27333         related to malloc(0).
27334
27335 2009-04-26  Bruno Haible  <bruno@clisp.org>
27336
27337         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27338         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27339         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27340
27341 2009-04-25  Bruno Haible  <bruno@clisp.org>
27342
27343         Avoid link error when creating a namespace clean library.
27344         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27345         as macro with arguments if already defined as an alias.
27346         * lib/signbitf.c (gl_signbitf): Don't undefine.
27347         * lib/signbitd.c (gl_signbitd): Don't undefine.
27348         * lib/signbitl.c (gl_signbitl): Don't undefine.
27349
27350 2009-04-25  Jim Meyering  <meyering@redhat.com>
27351
27352         vc-list-files: fix another quoting bug
27353         * build-aux/vc-list-files: Avoid sed backslash expansion
27354         of pathological directory names.
27355
27356 2009-04-25  Eric Blake  <ebb9@byu.net>
27357
27358         vc-list-files: fix shell quoting error
27359         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27360         timestamp.
27361
27362 2009-04-25  Jim Meyering  <meyering@redhat.com>
27363
27364         vc-list-files: restore lost functionality with subdir argument
27365         * build-aux/vc-list-files: When given a non-"." sub-directory
27366         argument, substitute the $dir/ prefix back onto each resulting name.
27367         Otherwise, coreutils' root_tests check would fail.
27368
27369 2009-04-24  Eric Blake  <ebb9@byu.net>
27370
27371         vc-list-files: ignore git symlinks
27372         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27373         than ls-files, to ignore git symlinks.
27374
27375         maint.mk: import improvements from m4
27376         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27377         (move_if_change): Delete unused macro.
27378         (news-date-check, vc-diff-check): Support VPATH builds.
27379         (announcement): Likewise.  Split --bootstrap-tools list...
27380         (boostrap-tools): ...into separate list, which can be overridden
27381         in cfg.mk.
27382         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27383         requiring dependency on useless-if-before-free module.
27384         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27385         Support VPATH builds.
27386
27387 2009-04-24  Jim Meyering  <meyering@redhat.com>
27388
27389         maint.mk: remove coreutils-specific rules and variables
27390         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27391         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27392         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27393
27394         maint.mk: remove obsolete rule
27395         * top/maint.mk (rel-check): Remove rule.
27396         (WGET, WGETFLAGS): Remove now-unused variables.
27397
27398 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27399
27400         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27401         consistency.
27402
27403         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27404         '$(PATH_SEPARATOR)' instead of ':'.
27405
27406 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27407
27408         * lib/getopt1.c (main): Use 'const' for static array.
27409
27410 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27411
27412         * top/maint.mk: Sync with coreutils.
27413         * NEWS: Explain incompatibilities.
27414
27415 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27416             Bruno Haible  <bruno@clisp.org>
27417
27418         Fix cross-compilation results.
27419         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27420         statement, as third argument of AC_TRY_RUN.
27421         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27422         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27423         Likewise.
27424         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27425         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27426         Likewise.
27427         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27428         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27429         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27430
27431 2009-04-20  Bruno Haible  <bruno@clisp.org>
27432
27433         Avoid test failure on mingw.
27434         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27435
27436 2009-04-20  Bruno Haible  <bruno@clisp.org>
27437
27438         Avoid compilation error on mingw.
27439         * modules/localename-tests (Depends-on): Add locale.
27440
27441 2009-04-19  Bruno Haible  <bruno@clisp.org>
27442
27443         Support for building a shared library on Windows platforms.
27444         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27445         (main): Test the presence of UNINORM_NFC here.
27446         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27447         (main): Test the presence of UNINORM_NFD here.
27448         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27449         (main): Test the presence of UNINORM_NFKC here.
27450         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27451         (main): Test the presence of UNINORM_NFKD here.
27452
27453 2009-04-19  Bruno Haible  <bruno@clisp.org>
27454
27455         Avoid a compiler warning.
27456         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27457         Change type of variable 'sequence'.
27458
27459 2009-04-19  Bruno Haible  <bruno@clisp.org>
27460
27461         * modules/configmake (Makefile.am): When the contents of configmake.h
27462         does not change, arrange to preserve its modification time.
27463
27464 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27465
27466         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27467         gettext domain.
27468
27469 2009-04-16  Jim Meyering  <meyering@redhat.com>
27470
27471         useless-if-before-free: improve conversion code
27472         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27473         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27474
27475 2009-04-14  Bruno Haible  <bruno@clisp.org>
27476
27477         * modules/fcntl (Depends-on): Add extensions.
27478         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27479
27480 2009-04-12  Ben Pfaff  <blp@gnu.org>
27481
27482         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27483         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27484
27485 2009-03-20  Ben Pfaff  <blp@gnu.org>
27486
27487         Make rename replace existing destinations on Windows.
27488         * m4/rename.m4: Add test for Mingw.
27489         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27490         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27491         * doc/posix-functions/rename.texi: Document.
27492
27493 2009-04-10  Bruno Haible  <bruno@clisp.org>
27494
27495         New include file "iconveh.h".
27496         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27497         * lib/striconveh.h: Include it.
27498         (enum iconv_ilseq_handler): Remove definition.
27499         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27500         striconveh.h.
27501         * lib/striconveha.c: Include striconveh.h.
27502         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27503         * modules/striconveh (Files): Add lib/iconveh.h.
27504         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27505         lib/striconveh.h.
27506
27507 2009-04-10  Bruno Haible  <bruno@clisp.org>
27508
27509         * lib/uniconv.h: Update comment.
27510
27511 2009-04-10  Bruno Haible  <bruno@clisp.org>
27512
27513         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27514         always.
27515         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27516         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27517         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27518         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27519         "unistring-notinline.h", so that the function gets defined always.
27520         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27521         * lib/unistr/u8-uctomb.c: Likewise.
27522         * lib/unistr/u16-mbtouc.c: Likewise.
27523         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27524         * lib/unistr/u16-uctomb.c: Likewise.
27525         * lib/unistr/u32-mbtouc.c: Likewise.
27526         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27527         * lib/unistr/u32-uctomb.c: Likewise.
27528
27529 2009-04-10  Bruno Haible  <bruno@clisp.org>
27530
27531         Mark 'utime' obsolete.
27532         * modules/utime (Status, Notice): New sections.
27533         Suggested by Jim Meyering.
27534
27535         Fix cross-compile guess for utime test.
27536         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27537         autoconf.
27538         * doc/posix-functions/utime.texi: Give more precisions.
27539         Reported by Jan <ipif@ymail.com>.
27540
27541 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27542
27543         filevercmp: correct today's change
27544         * lib/filevercmp.c: Also handle coreutils' test inputs.
27545         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27546
27547         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27548         for reporting it.
27549         * lib/filevercmp.c: Special handle for "", "." and "..".
27550         * tests/test-filevercmp.c: Enlarge the set suite.
27551
27552 2009-04-07  Jim Meyering  <meyering@redhat.com>
27553
27554         useless-if-before-free: show how to remove braced useless free, too
27555         * build-aux/useless-if-before-free: still only in a comment, though.
27556
27557 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27558
27559         maint.mk: import changes to syntax-check macros from coreutils
27560         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27561         Use them in the relevant macros.
27562
27563 2009-04-06  Bruno Haible  <bruno@clisp.org>
27564
27565         Fix unportable use of bit-fields.
27566         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27567         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27568         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27569
27570 2009-04-06  Bruno Haible  <bruno@clisp.org>
27571
27572         Avoid test failures on AIX and OSF/1.
27573         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27574         that malloc(0) = NULL.
27575         * tests/unicase/test-u8-tolower.c (check): Likewise.
27576         * tests/unicase/test-u8-totitle.c (check): Likewise.
27577         * tests/unicase/test-u8-toupper.c (check): Likewise.
27578         * tests/unicase/test-u16-casefold.c (check): Likewise.
27579         * tests/unicase/test-u16-tolower.c (check): Likewise.
27580         * tests/unicase/test-u16-totitle.c (check): Likewise.
27581         * tests/unicase/test-u16-toupper.c (check): Likewise.
27582         * tests/unicase/test-u32-casefold.c (check): Likewise.
27583         * tests/unicase/test-u32-tolower.c (check): Likewise.
27584         * tests/unicase/test-u32-totitle.c (check): Likewise.
27585         * tests/unicase/test-u32-toupper.c (check): Likewise.
27586         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27587         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27588         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27589         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27590         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27591         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27592         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27593         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27594         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27595         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27596         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27597         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27598
27599 2009-04-05  Bruno Haible  <bruno@clisp.org>
27600
27601         Work around an autoconf limitation.
27602         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27603         comment line if it would be longer than 3 KB.
27604
27605 2009-04-05  Bruno Haible  <bruno@clisp.org>
27606
27607         Avoid test failure with libiconv-1.13.
27608         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27609         of the expected test results.
27610
27611 2009-04-05  Bruno Haible  <bruno@clisp.org>
27612
27613         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27614         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27615         that it should be installed.
27616
27617 2009-04-05  Bruno Haible  <bruno@clisp.org>
27618
27619         * gnulib-tool: New option --copy-file.
27620         (func_usage): Document it.
27621         (func_dest_tmpfilename): Moved out of func_import.
27622         (func_add_file, func_update_file): New functions, extracted from
27623         func_import.
27624         (func_import): Update.
27625
27626 2009-04-05  Karl Berry  <karl@gnu.org>
27627
27628         * README: prominently mention gnulib-tool.
27629         Rearrange sections so getting the code is near the top.
27630
27631 2009-04-05  Bruno Haible  <bruno@clisp.org>
27632
27633         * lib/unicase.h: Mention u*_cmp2.
27634         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27635         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27636         * lib/unicase/ulc-casecmp.c: Likewise.
27637         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27638         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27639         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27640         unistr/u8-cmp.
27641         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27642         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27643         unistr/u16-cmp.
27644         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27645         unistr/u32-cmp.
27646
27647         * lib/uninorm.h: Mention u*_cmp2.
27648         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27649         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27650         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27651         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27652         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27653         unistr/u8-cmp.
27654         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27655         unistr/u16-cmp.
27656         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27657         unistr/u32-cmp.
27658
27659         New module 'unistr/u32-cmp2'.
27660         * lib/unistr/u32-cmp2.c: New file.
27661         * modules/unistr/u32-cmp2: New file.
27662
27663         New module 'unistr/u16-cmp2'.
27664         * lib/unistr/u16-cmp2.c: New file.
27665         * modules/unistr/u16-cmp2: New file.
27666
27667         New module 'unistr/u8-cmp2'.
27668         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27669         * lib/unistr/u8-cmp2.c: New file.
27670         * lib/unistr/u-cmp2.h: New file.
27671         * modules/unistr/u8-cmp2: New file.
27672
27673 2009-04-05  Bruno Haible  <bruno@clisp.org>
27674
27675         * lib/unictype.h (uc_property_is_valid): New macro.
27676         * tests/unictype/test-pr_byname.c (main): Use it.
27677
27678         * lib/unistr.h: Doc fixes.
27679         * lib/uniconv.h: Doc fixes.
27680         * lib/unictype.h: Doc fixes.
27681
27682 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27683
27684         Port coreutils 7.2 to Solaris 8.
27685
27686         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27687         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27688         for Solaris 8.  This is a bit of a hack, as it means it's the
27689         caller's responsibility to add -lnsl if needed, but most likely it
27690         won't be needed since only getaddrinfo uses this and getaddrinfo
27691         isn't needed on Solaris 8.
27692
27693         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27694         problem to Solaris 8 encountered with coreutils 7.2, which
27695         resulted in a message "fnmatch.c:292: warning: passing argument 4
27696         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27697         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27698
27699 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27700
27701         * m4/ld-version-script.m4: Add FIXME comment.
27702
27703 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27704
27705         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27706         SOVERSION variable.
27707
27708 2009-04-02  Bruno Haible  <bruno@clisp.org>
27709
27710         * Makefile (info, html, dvi, pdf): Combine the rules.
27711         Suggested by Jim Meyering.
27712
27713 2009-04-01  Bruno Haible  <bruno@clisp.org>
27714
27715         * Makefile (info, html, dvi, pdf): New targets.
27716         Reported by Reuben Thomas <rrt@sc3d.org>.
27717
27718 2009-04-01  Bruno Haible  <bruno@clisp.org>
27719
27720         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27721         can be put into PATH.
27722         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27723
27724 2009-04-01  Bruno Haible  <bruno@clisp.org>
27725
27726         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27727
27728 2009-04-01  Bruno Haible  <bruno@clisp.org>
27729
27730         Rename module 'visibility'.
27731         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27732         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27733         * doc/gnulib.texi: Update.
27734         * MODULES.html.sh (Misc): Update.
27735         * NEWS: Mention the change.
27736
27737 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27738
27739         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27740         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27741         Eric Blake <ebb9@byu.net> for review.
27742         * MODULES.html.sh: Add lib-msvc-compat.
27743         * doc/gnulib.texi: Link to new section.
27744         * m4/ld-output-def.m4: New file.
27745         * doc/ld-output-def.texi: New file.
27746
27747 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27748
27749         Rename ld-version-script to lib-symbol-versions.  Suggested by
27750         Bruno Haible <bruno@clisp.org>.
27751         * modules/ld-version-script: Renamed to lib-symbol-versions.
27752         * doc/ld-version-script.texi: Fix module name.
27753         * MODULES.html.sh: Add lib-symbol-versions.
27754
27755 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27756
27757         * modules/u64-tests: New file.
27758         * tests/test-u64.c: New file.
27759
27760 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27761
27762         * MODULES.html.sh: Mention u64.
27763         * modules/u64: New module.
27764         * modules/crypto/sha512: Depend on u64 module instead of providing
27765         u64.h.
27766
27767 2009-03-27  Eric Blake  <ebb9@byu.net>
27768
27769         test-strerror: make debugging EAI_SYSTEM easier
27770         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27771         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27772         failure was EAI_SYSTEM.
27773
27774 2009-03-25  Bruno Haible  <bruno@clisp.org>
27775
27776         Fix a problem with --enable-relocatable on Solaris 7.
27777         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27778         since 2008-02-24.
27779
27780 2009-03-25  Eric Blake  <ebb9@byu.net>
27781
27782         test-sockets: avoid gcc warning
27783         * tests/test-sockets.c (main): Silence compiler warning.
27784
27785 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27786
27787         New modules nproc, pthread, contributed by Glen Lenker.
27788
27789         * MODULES.html.sh: Add pthread, nproc.
27790         * lib/nproc.c: New file.
27791         * lib/nproc.h: New file.
27792         * lib/pthread.in.h: New file.
27793         * m4/pthread.m4: New file.
27794         * modules/nproc: New file.
27795         * modules/pthread: New file.
27796
27797 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27798
27799         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27800         New variable.
27801
27802 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27803
27804         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27805         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27806         * tests/test-filevercmp.c: Add tests for backup suffixes.
27807
27808 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27809
27810         * modules/stdlib (Depends-on): Add stdint, needed when defining
27811         struct random_data on, for example, HP-UX 10.20.  Reported by
27812         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27813
27814 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27815
27816         * lib/readline.c (readline): Call fflush on stdout after printing
27817         prompt.
27818
27819 2009-03-20  Bruno Haible  <bruno@clisp.org>
27820
27821         Remove dependency from 'close' module to -lws2_32 on native Windows.
27822         * lib/close-hook.h: New file.
27823         * lib/close-hook.c: New file.
27824         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27825         w32sock.h.
27826         (_gl_close_fd_maybe_socket): Remove function.
27827         (rpl_close): Invoke execute_all_close_hooks instead of
27828         _gl_close_fd_maybe_socket.
27829         * lib/sockets.c: Include close-hook.h, w32sock.h.
27830         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27831         (close_sockets_hook): New variable.
27832         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27833         (gl_sockets_cleanup): Unregister it.
27834         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27835         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27836         * modules/close-hook: New file.
27837         * modules/close (Files): Remove lib/w32sock.h.
27838         (Depends-on): Add close-hook.
27839         (Link): Remove section.
27840         * modules/sockets (Files): Add lib/w32sock.h.
27841         (Depends-on): Add close-hook.
27842         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27843         invocation.
27844         * NEWS: Mention that LIB_CLOSE is gone.
27845
27846 2009-03-23  Eric Blake  <ebb9@byu.net>
27847
27848         signal-tests: test previous patch
27849         * tests/test-signal.c: New file.
27850         * modules/signal-tests: Likewise.
27851
27852         signal.h: always support 'volatile sig_atomic_t'
27853         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27854         (gl_SIGNAL_H_DEFAULTS): Add a default.
27855         * modules/signal (Makefile.am): Substitute if needed.
27856         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27857         users can blindly add volatile.
27858         * doc/posix-headers/signal.texi (signal.h): Document it.
27859         Reported by Matthew Woehlke.
27860
27861 2009-03-23  Jim Meyering  <meyering@redhat.com>
27862
27863         pathmax: PATH_MAX: use pathconf only when available
27864         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27865         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27866         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27867         This avoids a link failure in a PSP cross-compilation environment
27868         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27869
27870         * lib/vasnprintf.c (divide): Fix typo in comment.
27871
27872 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27873
27874         * gnulib-tool (func_filter_filelist): Fix comment.
27875
27876 2009-03-20  Bruno Haible  <bruno@clisp.org>
27877
27878         Make sockets.h self-contained.
27879         * lib/sockets.c: Include sockets.h first.
27880         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27881
27882 2009-03-19  Eric Blake  <ebb9@byu.net>
27883
27884         doc: mention more functions added in cygwin 1.7.0
27885         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27886         addition.
27887         * doc/posix-functions/log2f.texi: Likewise.
27888
27889 2009-03-19  Jim Meyering  <meyering@redhat.com>
27890
27891         fsusage: avoid syntax error due to statement-before-declaration
27892         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27893         after all declarations.  Reported by Matthew Woehlke in
27894         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27895
27896 2009-03-18  Eric Blake  <ebb9@byu.net>
27897
27898         build-aux/compile: sync from automake
27899         * build-aux/compile: New file, from automake.
27900         * config/srclist.txt: Mention build-aux/compile.
27901
27902 2009-03-17  Bruno Haible  <bruno@clisp.org>
27903
27904         * lib/git-merge-changelog.c: Fix typo in comment.
27905         Reported by Reuben Thomas <rrt@sc3d.org>.
27906
27907 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27908
27909         * m4/regex.m4: update and improve help for
27910         --without-included-regex.
27911
27912 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27913
27914         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27915         failure on missing include files.
27916
27917 2009-03-17  Eric Blake  <ebb9@byu.net>
27918
27919         doc: mention more functions added in cygwin 1.7.0
27920         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27921         addition.
27922         * doc/posix-functions/fwscanf.texi: Likewise.
27923         * doc/posix-functions/swprintf.texi: Likewise.
27924         * doc/posix-functions/swscanf.texi: Likewise.
27925         * doc/posix-functions/vfwprintf.texi: Likewise.
27926         * doc/posix-functions/vfwscanf.texi: Likewise.
27927         * doc/posix-functions/vswprintf.texi: Likewise.
27928         * doc/posix-functions/vswscanf.texi: Likewise.
27929         * doc/posix-functions/vwprintf.texi: Likewise.
27930         * doc/posix-functions/vwscanf.texi: Likewise.
27931         * doc/posix-functions/wcscasecmp.texi: Likewise.
27932         * doc/posix-functions/wcsdup.texi: Likewise.
27933         * doc/posix-functions/wcsftime.texi: Likewise.
27934         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27935         * doc/posix-functions/wprintf.texi: Likewise.
27936         * doc/posix-functions/wscanf.texi: Likewise.
27937         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27938
27939 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27940
27941         maint.mk: really add $(AM_MAKEFLAGS)
27942         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27943         was inadvertently omitted in the last commit.
27944         Spotted by Bruno Haible.
27945
27946         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27947         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27948         $(AM_MAKEFLAGS)' rather than plain `make'.
27949
27950         gnulib-tool: execute $MAKE not make
27951         * gnulib-tool: Default $MAKE to 'make'.
27952         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27953         than make.  Initialize $MAKE in the do-autobuild script.
27954
27955         gnulib-tool: use $MAKE not make in generated files
27956         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27957         make, in generated files.  Initialize $MAKE in the do-autobuild
27958         script.
27959
27960         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27961
27962         GNUmakefile: disable parallelism only for multiple, recursive targets
27963         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27964         additions in the Makefile.
27965         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27966         by Automake.
27967         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27968         are listed on the command line and at least one of them is
27969         listed in $(ALL_RECURSIVE_TARGETS).
27970
27971 2009-03-14  Bruno Haible  <bruno@clisp.org>
27972
27973         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27974         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27975         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27976         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27977         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27978         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27979         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27980         unistr/u8-uctomb.
27981         * modules/unistr/u8-strchr (Depends-on): Likewise.
27982         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27983         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27984         unistr/u16-uctomb.
27985         * modules/unistr/u16-strchr (Depends-on): Likewise.
27986         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27987
27988 2009-03-12  Bruno Haible  <bruno@clisp.org>
27989
27990         Work around select() bug on Interix 3.5.
27991         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27992         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27993         * m4/select.m4: New file.
27994         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27995         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27996         * modules/select (Files): Add m4/select.m4.
27997         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27998         * modules/nanosleep (Depends-on): Add select.
27999         * modules/poll (Depends-on): Likewise.
28000         * doc/posix-functions/select.texi: Mention the Interix bug.
28001         Reported by Markus Duft <mduft@gentoo.org>.
28002
28003         * lib/select.c: Renamed from lib/winsock-select.c.
28004         * modules/select (Files): Add lib/select.c, remove
28005         lib/winsock-select.c.
28006         (configure.ac): Update.
28007
28008 2009-03-12  Jim Meyering  <meyering@redhat.com>
28009
28010         avoid gcc warnings about unused macro definitions
28011         * lib/readtokens.c (STREQ): Remove unused definition.
28012         * lib/xmalloc.c (SIZE_MAX): Likewise.
28013         * lib/openat-die.c (N_): Likewise.
28014         * lib/mountlist.c (SIZE_MAX): Remove definition.
28015         Instead, include <stdint.h>.
28016         * lib/readutmp.c: Likewise.
28017         * modules/readutmp (Depends-on): Add stdint.
28018         * modules/mountlist (Depends-on): Add stdint.
28019         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28020
28021 2009-03-10  Bruno Haible  <bruno@clisp.org>
28022
28023         Tests for module 'mbmemcasecoll'.
28024         * modules/mbmemcasecoll-tests: New file.
28025         * tests/test-mbmemcasecoll1.sh: New file.
28026         * tests/test-mbmemcasecoll2.sh: New file.
28027         * tests/test-mbmemcasecoll3.sh: New file.
28028         * tests/test-mbmemcasecoll.c: New file.
28029
28030         New module 'mbmemcasecoll'.
28031         * lib/mbmemcasecoll.h: New file.
28032         * lib/mbmemcasecoll.c: New file.
28033         * modules/mbmemcasecoll: New file.
28034
28035         * tests/test-mbmemcasecmp.h: New file, extracted from
28036         tests/test-mbmemcasecmp.c.
28037         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28038         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28039         (main): Update.
28040         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28041
28042 2009-03-09  Bruno Haible  <bruno@clisp.org>
28043
28044         Tests for module 'mbmemcasecmp'.
28045         * modules/mbmemcasecmp-tests: New file.
28046         * tests/test-mbmemcasecmp1.sh: New file.
28047         * tests/test-mbmemcasecmp2.sh: New file.
28048         * tests/test-mbmemcasecmp3.sh: New file.
28049         * tests/test-mbmemcasecmp.c: New file.
28050
28051         New module 'mbmemcasecmp'.
28052         * lib/mbmemcasecmp.h: New file.
28053         * lib/mbmemcasecmp.c: New file.
28054         * modules/mbmemcasecmp: New file.
28055
28056 2009-03-09  Bruno Haible  <bruno@clisp.org>
28057
28058         Tests for module 'unicase/ulc-casecoll'.
28059         * modules/unicase/ulc-casecoll-tests: New file.
28060         * tests/unicase/test-ulc-casecoll1.sh: New file.
28061         * tests/unicase/test-ulc-casecoll2.sh: New file.
28062         * tests/unicase/test-ulc-casecoll.c: New file.
28063
28064         New module 'unicase/ulc-casecoll'.
28065         * lib/unicase.h (ulc_casecoll): New declaration.
28066         * lib/unicase/ulc-casecoll.c: New file.
28067         * modules/unicase/ulc-casecoll: New file.
28068
28069         New module 'unicase/ulc-casexfrm'.
28070         * lib/unicase.h (ulc_casexfrm): New declaration.
28071         * lib/unicase/ulc-casexfrm.c: New file.
28072         * modules/unicase/ulc-casexfrm: New file.
28073
28074 2009-03-09  Bruno Haible  <bruno@clisp.org>
28075
28076         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28077         invocations.
28078
28079         * m4/mbscasecmp.m4: Remove file.
28080         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28081         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28082
28083         * m4/mbscasestr.m4: Remove file.
28084         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28085         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28086
28087         * m4/mbschr.m4: Remove file.
28088         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28089         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28090
28091         * m4/mbscspn.m4: Remove file.
28092         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28093         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28094
28095         * m4/mbslen.m4: Remove file.
28096         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28097         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28098
28099         * m4/mbsncasecmp.m4: Remove file.
28100         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28101         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28102
28103         * m4/mbsnlen.m4: Remove file.
28104         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28105         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28106
28107         * m4/mbspbrk.m4: Remove file.
28108         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28109         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28110
28111         * m4/mbspcasecmp.m4: Remove file.
28112         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28113         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28114
28115         * m4/mbsrchr.m4: Remove file.
28116         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28117         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28118
28119         * m4/mbssep.m4: Remove file.
28120         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28121         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28122
28123         * m4/mbsspn.m4: Remove file.
28124         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28125         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28126
28127         * m4/mbsstr.m4: Remove file.
28128         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28129         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28130
28131         * m4/mbstok_r.m4: Remove file.
28132         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28133         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28134
28135         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28136
28137         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28138         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28139
28140         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28141
28142 2009-03-08  Bruno Haible  <bruno@clisp.org>
28143
28144         Tests for module 'unicase/ulc-casecmp'.
28145         * modules/unicase/ulc-casecmp-tests: New file.
28146         * tests/unicase/test-ulc-casecmp1.sh: New file.
28147         * tests/unicase/test-ulc-casecmp2.sh: New file.
28148         * tests/unicase/test-ulc-casecmp.c: New file.
28149
28150         New module 'unicase/ulc-casecmp'.
28151         * lib/unicase.h (ulc_casecmp): New declaration.
28152         * lib/unicase/ulc-casecmp.c: New file.
28153         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28154         'const SRC_UNIT *'.
28155         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28156         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28157         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28158         * modules/unicase/ulc-casecmp: New file.
28159
28160         Tests for module 'unicase/u32-is-cased'.
28161         * modules/unicase/u32-is-cased-tests: New file.
28162         * tests/unicase/test-u32-is-cased.c: New file.
28163
28164         Tests for module 'unicase/u16-is-cased'.
28165         * modules/unicase/u16-is-cased-tests: New file.
28166         * tests/unicase/test-u16-is-cased.c: New file.
28167
28168         Tests for module 'unicase/u8-is-cased'.
28169         * modules/unicase/u8-is-cased-tests: New file.
28170         * tests/unicase/test-u8-is-cased.c: New file.
28171         * tests/unicase/test-is-cased.h: New file.
28172
28173         New module 'unicase/u32-is-cased'.
28174         * lib/unicase/u32-is-cased.c: New file.
28175         * modules/unicase/u32-is-cased: New file.
28176
28177         New module 'unicase/u16-is-cased'.
28178         * lib/unicase/u16-is-cased.c: New file.
28179         * modules/unicase/u16-is-cased: New file.
28180
28181         New module 'unicase/u8-is-cased'.
28182         * lib/unicase/u8-is-cased.c: New file.
28183         * lib/unicase/u-is-cased.h: New file.
28184         * modules/unicase/u8-is-cased: New file.
28185
28186         Tests for module 'unicase/u32-is-casefolded'.
28187         * modules/unicase/u32-is-casefolded-tests: New file.
28188         * tests/unicase/test-u32-is-casefolded.c: New file.
28189
28190         Tests for module 'unicase/u16-is-casefolded'.
28191         * modules/unicase/u16-is-casefolded-tests: New file.
28192         * tests/unicase/test-u16-is-casefolded.c: New file.
28193
28194         Tests for module 'unicase/u8-is-casefolded'.
28195         * modules/unicase/u8-is-casefolded-tests: New file.
28196         * tests/unicase/test-u8-is-casefolded.c: New file.
28197         * tests/unicase/test-is-casefolded.h: New file.
28198
28199         New module 'unicase/u32-is-casefolded'.
28200         * lib/unicase/u32-is-casefolded.c: New file.
28201         * modules/unicase/u32-is-casefolded: New file.
28202
28203         New module 'unicase/u16-is-casefolded'.
28204         * lib/unicase/u16-is-casefolded.c: New file.
28205         * modules/unicase/u16-is-casefolded: New file.
28206
28207         New module 'unicase/u8-is-casefolded'.
28208         * lib/unicase/u8-is-casefolded.c: New file.
28209         * modules/unicase/u8-is-casefolded: New file.
28210
28211         Tests for module 'unicase/u32-is-titlecase'.
28212         * modules/unicase/u32-is-titlecase-tests: New file.
28213         * tests/unicase/test-u32-is-titlecase.c: New file.
28214
28215         Tests for module 'unicase/u16-is-titlecase'.
28216         * modules/unicase/u16-is-titlecase-tests: New file.
28217         * tests/unicase/test-u16-is-titlecase.c: New file.
28218
28219         Tests for module 'unicase/u8-is-titlecase'.
28220         * modules/unicase/u8-is-titlecase-tests: New file.
28221         * tests/unicase/test-u8-is-titlecase.c: New file.
28222         * tests/unicase/test-is-titlecase.h: New file.
28223
28224         New module 'unicase/u32-is-titlecase'.
28225         * lib/unicase/u32-is-titlecase.c: New file.
28226         * modules/unicase/u32-is-titlecase: New file.
28227
28228         New module 'unicase/u16-is-titlecase'.
28229         * lib/unicase/u16-is-titlecase.c: New file.
28230         * modules/unicase/u16-is-titlecase: New file.
28231
28232         New module 'unicase/u8-is-titlecase'.
28233         * lib/unicase/u8-is-titlecase.c: New file.
28234         * modules/unicase/u8-is-titlecase: New file.
28235
28236         Tests for module 'unicase/u32-is-lowercase'.
28237         * modules/unicase/u32-is-lowercase-tests: New file.
28238         * tests/unicase/test-u32-is-lowercase.c: New file.
28239
28240         Tests for module 'unicase/u16-is-lowercase'.
28241         * modules/unicase/u16-is-lowercase-tests: New file.
28242         * tests/unicase/test-u16-is-lowercase.c: New file.
28243
28244         Tests for module 'unicase/u8-is-lowercase'.
28245         * modules/unicase/u8-is-lowercase-tests: New file.
28246         * tests/unicase/test-u8-is-lowercase.c: New file.
28247         * tests/unicase/test-is-lowercase.h: New file.
28248
28249         New module 'unicase/u32-is-lowercase'.
28250         * lib/unicase/u32-is-lowercase.c: New file.
28251         * modules/unicase/u32-is-lowercase: New file.
28252
28253         New module 'unicase/u16-is-lowercase'.
28254         * lib/unicase/u16-is-lowercase.c: New file.
28255         * modules/unicase/u16-is-lowercase: New file.
28256
28257         New module 'unicase/u8-is-lowercase'.
28258         * lib/unicase/u8-is-lowercase.c: New file.
28259         * modules/unicase/u8-is-lowercase: New file.
28260
28261         Tests for module 'unicase/u32-is-uppercase'.
28262         * modules/unicase/u32-is-uppercase-tests: New file.
28263         * tests/unicase/test-u32-is-uppercase.c: New file.
28264
28265         Tests for module 'unicase/u16-is-uppercase'.
28266         * modules/unicase/u16-is-uppercase-tests: New file.
28267         * tests/unicase/test-u16-is-uppercase.c: New file.
28268
28269         Tests for module 'unicase/u8-is-uppercase'.
28270         * modules/unicase/u8-is-uppercase-tests: New file.
28271         * tests/unicase/test-u8-is-uppercase.c: New file.
28272         * tests/unicase/test-is-uppercase.h: New file.
28273
28274         New module 'unicase/u32-is-uppercase'.
28275         * lib/unicase/u32-is-uppercase.c: New file.
28276         * modules/unicase/u32-is-uppercase: New file.
28277
28278         New module 'unicase/u16-is-uppercase'.
28279         * lib/unicase/u16-is-uppercase.c: New file.
28280         * modules/unicase/u16-is-uppercase: New file.
28281
28282         New module 'unicase/u8-is-uppercase'.
28283         * lib/unicase/u8-is-uppercase.c: New file.
28284         * modules/unicase/u8-is-uppercase: New file.
28285
28286         New module 'unicase/u32-is-invariant'.
28287         * lib/unicase/u32-is-invariant.c: New file.
28288         * modules/unicase/u32-is-invariant: New file.
28289
28290         New module 'unicase/u16-is-invariant'.
28291         * lib/unicase/u16-is-invariant.c: New file.
28292         * modules/unicase/u16-is-invariant: New file.
28293
28294         New module 'unicase/u8-is-invariant'.
28295         * lib/unicase/u8-is-invariant.c: New file.
28296         * lib/unicase/invariant.h: New file.
28297         * lib/unicase/u-is-invariant.h: New file.
28298         * modules/unicase/u8-is-invariant: New file.
28299
28300         Tests for module 'unicase/u32-casecoll'.
28301         * modules/unicase/u32-casecoll-tests: New file.
28302         * tests/unicase/test-u32-casecoll.c: New file.
28303
28304         Tests for module 'unicase/u16-casecoll'.
28305         * modules/unicase/u16-casecoll-tests: New file.
28306         * tests/unicase/test-u16-casecoll.c: New file.
28307
28308         Tests for module 'unicase/u8-casecoll'.
28309         * modules/unicase/u8-casecoll-tests: New file.
28310         * tests/unicase/test-u8-casecoll.c: New file.
28311
28312         New module 'unicase/u32-casecoll'.
28313         * lib/unicase/u32-casecoll.c: New file.
28314         * modules/unicase/u32-casecoll: New file.
28315
28316         New module 'unicase/u16-casecoll'.
28317         * lib/unicase/u16-casecoll.c: New file.
28318         * modules/unicase/u16-casecoll: New file.
28319
28320         New module 'unicase/u8-casecoll'.
28321         * lib/unicase/u8-casecoll.c: New file.
28322         * lib/unicase/u-casecoll.h: New file.
28323         * modules/unicase/u8-casecoll: New file.
28324
28325         New module 'unicase/u32-casexfrm'.
28326         * lib/unicase/u32-casexfrm.c: New file.
28327         * modules/unicase/u32-casexfrm: New file.
28328
28329         New module 'unicase/u16-casexfrm'.
28330         * lib/unicase/u16-casexfrm.c: New file.
28331         * modules/unicase/u16-casexfrm: New file.
28332
28333         New module 'unicase/u8-casexfrm'.
28334         * lib/unicase/u8-casexfrm.c: New file.
28335         * lib/unicase/u-casexfrm.h: New file.
28336         * modules/unicase/u8-casexfrm: New file.
28337
28338         Tests for module 'unicase/u32-casecmp'.
28339         * modules/unicase/u32-casecmp-tests: New file.
28340         * tests/unicase/test-u32-casecmp.c: New file.
28341
28342         Tests for module 'unicase/u16-casecmp'.
28343         * modules/unicase/u16-casecmp-tests: New file.
28344         * tests/unicase/test-u16-casecmp.c: New file.
28345
28346         Tests for module 'unicase/u8-casecmp'.
28347         * modules/unicase/u8-casecmp-tests: New file.
28348         * tests/unicase/test-u8-casecmp.c: New file.
28349         * tests/unicase/test-casecmp.h: New file.
28350
28351         New module 'unicase/u32-casecmp'.
28352         * lib/unicase/u32-casecmp.c: New file.
28353         * modules/unicase/u32-casecmp: New file.
28354
28355         New module 'unicase/u16-casecmp'.
28356         * lib/unicase/u16-casecmp.c: New file.
28357         * modules/unicase/u16-casecmp: New file.
28358
28359         New module 'unicase/u8-casecmp'.
28360         * lib/unicase/u8-casecmp.c: New file.
28361         * lib/unicase/u-casecmp.h: New file.
28362         * modules/unicase/u8-casecmp: New file.
28363
28364         Tests for module 'unicase/u32-casefold'.
28365         * modules/unicase/u32-casefold-tests: New file.
28366         * tests/unicase/test-u32-casefold.c: New file.
28367
28368         Tests for module 'unicase/u16-casefold'.
28369         * modules/unicase/u16-casefold-tests: New file.
28370         * tests/unicase/test-u16-casefold.c: New file.
28371
28372         Tests for module 'unicase/u8-casefold'.
28373         * modules/unicase/u8-casefold-tests: New file.
28374         * tests/unicase/test-u8-casefold.c: New file.
28375
28376         New module 'unicase/u32-casefold'.
28377         * lib/unicase/u32-casefold.c: New file.
28378         * modules/unicase/u32-casefold: New file.
28379
28380         New module 'unicase/u16-casefold'.
28381         * lib/unicase/u16-casefold.c: New file.
28382         * modules/unicase/u16-casefold: New file.
28383
28384         New module 'unicase/u8-casefold'.
28385         * lib/unicase/u8-casefold.c: New file.
28386         * lib/unicase/u-casefold.h: New file.
28387         * modules/unicase/u8-casefold: New file.
28388
28389         New module 'unicase/tocasefold'.
28390         * lib/unicase/casefold.h: New file.
28391         * lib/unicase/tocasefold.c: New file.
28392         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28393         * modules/unicase/tocasefold: New file.
28394
28395         Tests for module 'unicase/u32-totitle'.
28396         * modules/unicase/u32-totitle-tests: New file.
28397         * tests/unicase/test-u32-totitle.c: New file.
28398
28399         Tests for module 'unicase/u16-totitle'.
28400         * modules/unicase/u16-totitle-tests: New file.
28401         * tests/unicase/test-u16-totitle.c: New file.
28402
28403         Tests for module 'unicase/u8-totitle'.
28404         * modules/unicase/u8-totitle-tests: New file.
28405         * tests/unicase/test-u8-totitle.c: New file.
28406
28407         New module 'unicase/u32-totitle'.
28408         * lib/unicase/u32-totitle.c: New file.
28409         * modules/unicase/u32-totitle: New file.
28410
28411         New module 'unicase/u16-totitle'.
28412         * lib/unicase/u16-totitle.c: New file.
28413         * modules/unicase/u16-totitle: New file.
28414
28415         New module 'unicase/u8-totitle'.
28416         * lib/unicase/u8-totitle.c: New file.
28417         * lib/unicase/u-totitle.h: New file.
28418         * modules/unicase/u8-totitle: New file.
28419
28420         Tests for module 'unicase/u32-tolower'.
28421         * modules/unicase/u32-tolower-tests: New file.
28422         * tests/unicase/test-u32-tolower.c: New file.
28423
28424         Tests for module 'unicase/u16-tolower'.
28425         * modules/unicase/u16-tolower-tests: New file.
28426         * tests/unicase/test-u16-tolower.c: New file.
28427
28428         Tests for module 'unicase/u8-tolower'.
28429         * modules/unicase/u8-tolower-tests: New file.
28430         * tests/unicase/test-u8-tolower.c: New file.
28431
28432         New module 'unicase/u32-tolower'.
28433         * lib/unicase/u32-tolower.c: New file.
28434         * modules/unicase/u32-tolower: New file.
28435
28436         New module 'unicase/u16-tolower'.
28437         * lib/unicase/u16-tolower.c: New file.
28438         * modules/unicase/u16-tolower: New file.
28439
28440         New module 'unicase/u8-tolower'.
28441         * lib/unicase/u8-tolower.c: New file.
28442         * modules/unicase/u8-tolower: New file.
28443
28444         Tests for module 'unicase/u32-toupper'.
28445         * modules/unicase/u32-toupper-tests: New file.
28446         * tests/unicase/test-u32-toupper.c: New file.
28447
28448         Tests for module 'unicase/u16-toupper'.
28449         * modules/unicase/u16-toupper-tests: New file.
28450         * tests/unicase/test-u16-toupper.c: New file.
28451
28452         Tests for module 'unicase/u8-toupper'.
28453         * modules/unicase/u8-toupper-tests: New file.
28454         * tests/unicase/test-u8-toupper.c: New file.
28455
28456         New module 'unicase/u32-toupper'.
28457         * lib/unicase/u32-toupper.c: New file.
28458         * modules/unicase/u32-toupper: New file.
28459
28460         New module 'unicase/u16-toupper'.
28461         * lib/unicase/u16-toupper.c: New file.
28462         * modules/unicase/u16-toupper: New file.
28463
28464         New module 'unicase/u8-toupper'.
28465         * lib/unicase/u8-toupper.c: New file.
28466         * modules/unicase/u8-toupper: New file.
28467
28468         New module 'unicase/u32-casemap'.
28469         * lib/unicase/u32-casemap.c: New file.
28470         * modules/unicase/u32-casemap: New file.
28471
28472         New module 'unicase/u16-casemap'.
28473         * lib/unicase/u16-casemap.c: New file.
28474         * modules/unicase/u16-casemap: New file.
28475
28476         New module 'unicase/u8-casemap'.
28477         * lib/unicase/unicasemap.h: New file.
28478         * lib/unicase/u8-casemap.c: New file.
28479         * lib/unicase/u-casemap.h: New file.
28480         * modules/unicase/u8-casemap: New file.
28481
28482         New module 'unicase/special-casing'.
28483         * lib/unicase/special-casing.h: New file.
28484         * lib/unicase/special-casing.c: New file.
28485         * lib/unicase/special-casing-table.gperf: New file, generated by
28486         gen-uni-tables.c.
28487         * modules/unicase/special-casing: New file.
28488
28489         Tests for module 'unicase/locale-language'.
28490         * modules/unicase/locale-language-tests: New file.
28491         * tests/unicase/test-locale-language.sh: New file.
28492         * tests/unicase/test-locale-language.c: New file.
28493
28494         New module 'unicase/locale-language'.
28495         * lib/unicase/locale-language.c: New file.
28496         * lib/unicase/locale-languages.gperf: New file.
28497         * modules/unicase/locale-language: New file.
28498
28499         Generate more tables for case conversion and case folding.
28500         * lib/gen-uni-tables.c (SCC_*): New enum items.
28501         (struct special_casing_rule): New type.
28502         (casing_rules, num_casing_rules, allocated_casing_rules): New
28503         variables.
28504         (add_casing_rule, fill_casing_rules): New functions.
28505         (struct casefold_rule): New type.
28506         (casefolding_rules, num_casefolding_rules,
28507         allocated_casefolding_rules): New variables.
28508         (fill_casefolding_rules): New function.
28509         (unicode_casefold): New variable.
28510         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28511         sort_casing_rules, output_casing_rules): New functions.
28512         (main): Accept to more arguments: SpecialCasing.txt and
28513         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28514         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28515         Output mapping for casefolding.
28516
28517         * lib/unicase.h: Include stdbool.h, uninorm.h.
28518         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28519         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28520         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28521         arguments.
28522         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28523         resultp arguments.
28524         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28525         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28526         resultp arguments.
28527         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28528         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28529         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28530         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28531         declarations.
28532         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28533
28534 2009-03-08  Bruno Haible  <bruno@clisp.org>
28535
28536         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28537         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28538         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28539         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28540
28541 2009-03-07  Bruno Haible  <bruno@clisp.org>
28542
28543         Adjust u*_normcmp, u*_normcoll API.
28544         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28545         u16_normcoll, u32_normcoll): Change failure conventions.
28546         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28547         errno and return -1.
28548         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28549
28550 2009-03-07  Bruno Haible  <bruno@clisp.org>
28551
28552         Tests for module 'uninorm/u32-normcoll'.
28553         * modules/uninorm/u32-normcoll-tests: New file.
28554         * tests/uninorm/test-u32-normcoll.c: New file.
28555
28556         Tests for module 'uninorm/u16-normcoll'.
28557         * modules/uninorm/u16-normcoll-tests: New file.
28558         * tests/uninorm/test-u16-normcoll.c: New file.
28559
28560         Tests for module 'uninorm/u8-normcoll'.
28561         * modules/uninorm/u8-normcoll-tests: New file.
28562         * tests/uninorm/test-u8-normcoll.c: New file.
28563
28564 2009-03-07  Bruno Haible  <bruno@clisp.org>
28565
28566         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28567         tests/uninorm/test-u32-normcmp.c.
28568         * tests/uninorm/test-u32-normcmp.c: Include it.
28569         (test_nonascii): New function, extracted from main. Add some more
28570         tests.
28571         (main): Invoke test_ascii and test_nonascii.
28572         * modules/uninorm/u32-normcmp-tests (Files): Add
28573         tests/uninorm/test-u32-normcmp.h.
28574         (Depends-on): Remove uninorm/u32-normcmp.
28575
28576         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28577         tests/uninorm/test-u16-normcmp.c.
28578         * tests/uninorm/test-u16-normcmp.c: Include it.
28579         (test_nonascii): New function, extracted from main. Add some more
28580         tests.
28581         (main): Invoke test_ascii and test_nonascii.
28582         * modules/uninorm/u16-normcmp-tests (Files): Add
28583         tests/uninorm/test-u16-normcmp.h.
28584         (Depends-on): Remove uninorm/u16-normcmp.
28585
28586         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28587         tests/uninorm/test-u8-normcmp.c.
28588         * tests/uninorm/test-u8-normcmp.c: Include it.
28589         (test_nonascii): New function, extracted from main. Add some more
28590         tests.
28591         (main): Invoke test_ascii and test_nonascii.
28592         * modules/uninorm/u8-normcmp-tests (Files): Add
28593         tests/uninorm/test-u8-normcmp.h.
28594         (Depends-on): Remove uninorm/u8-normcmp.
28595
28596 2009-03-07  Bruno Haible  <bruno@clisp.org>
28597
28598         New module 'uninorm/u32-normcoll'.
28599         * lib/uninorm/u32-normcoll.c: New file.
28600         * modules/uninorm/u32-normcoll: New file.
28601
28602         New module 'uninorm/u16-normcoll'.
28603         * lib/uninorm/u16-normcoll.c: New file.
28604         * modules/uninorm/u16-normcoll: New file.
28605
28606         New module 'uninorm/u8-normcoll'.
28607         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28608         declarations.
28609         * lib/uninorm/u8-normcoll.c: New file.
28610         * lib/uninorm/u-normcoll.h: New file.
28611         * modules/uninorm/u8-normcoll: New file.
28612
28613         New module 'uninorm/u32-normxfrm'.
28614         * lib/uninorm/u32-normxfrm.c: New file.
28615         * modules/uninorm/u32-normxfrm: New file.
28616
28617         New module 'uninorm/u16-normxfrm'.
28618         * lib/uninorm/u16-normxfrm.c: New file.
28619         * modules/uninorm/u16-normxfrm: New file.
28620
28621         New module 'uninorm/u8-normxfrm'.
28622         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28623         declarations.
28624         * lib/uninorm/u8-normxfrm.c: New file.
28625         * lib/uninorm/u-normxfrm.h: New file.
28626         * modules/uninorm/u8-normxfrm: New file.
28627
28628 2009-03-07  Bruno Haible  <bruno@clisp.org>
28629
28630         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28631         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28632         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28633
28634 2009-03-07  Bruno Haible  <bruno@clisp.org>
28635
28636         New module 'memxfrm'.
28637         * lib/memxfrm.h: New file.
28638         * lib/memxfrm.c: New file.
28639         * modules/memxfrm: New file.
28640
28641 2009-03-07  Bruno Haible  <bruno@clisp.org>
28642
28643         New module 'memcmp2'.
28644         * lib/memcmp2.h: New file.
28645         * lib/memcmp2.c: New file.
28646         * modules/memcmp2: New file.
28647
28648 2009-03-07  Bruno Haible  <bruno@clisp.org>
28649
28650         Tests for module 'uninorm/decomposing-form'.
28651         * modules/uninorm/decomposing-form-tests: New file.
28652         * tests/uninorm/test-decomposing-form.c: New file.
28653
28654         New module 'uninorm/decomposing-form'.
28655         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28656         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28657         Add 'decomposing_variant' field.
28658         * lib/uninorm/decomposing-form.c: New file.
28659         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28660         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28661         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28662         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28663         * modules/uninorm/decomposing-form: New file.
28664         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28665         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28666
28667 2009-03-07  Bruno Haible  <bruno@clisp.org>
28668
28669         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28670         strings.
28671
28672 2009-03-06  Bruno Haible  <bruno@clisp.org>
28673
28674         Tests for module 'uninorm/u32-normcmp'.
28675         * tests/uninorm/test-u32-normcmp.c: New file.
28676         * modules/uninorm/u32-normcmp-tests: New file.
28677
28678         Tests for module 'uninorm/u16-normcmp'.
28679         * tests/uninorm/test-u16-normcmp.c: New file.
28680         * modules/uninorm/u16-normcmp-tests: New file.
28681
28682         Tests for module 'uninorm/u8-normcmp'.
28683         * tests/uninorm/test-u8-normcmp.c: New file.
28684         * modules/uninorm/u8-normcmp-tests: New file.
28685
28686         New module 'uninorm/u32-normcmp'.
28687         * lib/uninorm/u32-normcmp.c: New file.
28688         * modules/uninorm/u32-normcmp: New file.
28689
28690         New module 'uninorm/u16-normcmp'.
28691         * lib/uninorm/u16-normcmp.c: New file.
28692         * modules/uninorm/u16-normcmp: New file.
28693
28694         New module 'uninorm/u8-normcmp'.
28695         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28696         declarations.
28697         * lib/uninorm/u8-normcmp.c: New file.
28698         * lib/uninorm/u-normcmp.h: New file.
28699         * modules/uninorm/u8-normcmp: New file.
28700
28701 2009-03-06  Bruno Haible  <bruno@clisp.org>
28702
28703         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28704         Reported by Eric Blake.
28705
28706 2009-03-06  Eric Blake  <ebb9@byu.net>
28707             Bruno Haible  <bruno@clisp.org>
28708
28709         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28710         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28711         condition.
28712         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28713         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28714         condition.
28715         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28716
28717 2009-03-06  Eric Blake  <ebb9@byu.net>
28718
28719         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28720         to avoid compiler warnings.
28721         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28722
28723 2009-03-05  Bruno Haible  <bruno@clisp.org>
28724
28725         * tests/test-ftell.c (main): Disable test beyond end of file on
28726         FreeMiNT.
28727         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28728
28729 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28730
28731         * lib/filevercmp.c: Move hidden files up in ordering.
28732         * tests/test-filevercmp.c: Add tests for hidden files.
28733
28734 2009-03-04  Bruno Haible  <bruno@clisp.org>
28735
28736         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28737         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28738         AM_CFLAGS.
28739         Reported by Simon Josefsson.
28740
28741 2009-03-03  Bruno Haible  <bruno@clisp.org>
28742
28743         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28744         Reported by Simon Josefsson.
28745
28746         * doc/ld-version-script.texi: Update node reference.
28747
28748 2009-03-03  Bruno Haible  <bruno@clisp.org>
28749
28750         * modules/visibility (License): Change to 'unlimited'.
28751         Suggested by Simon Josefsson.
28752
28753 2009-03-03  Jim Meyering  <meyering@redhat.com>
28754
28755         unlinkdir: cannot_unlink_dir may modify process state
28756         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28757         it's neither thread-safe nor appropriate for use in a library.
28758
28759 2009-03-03  Eric Blake  <ebb9@byu.net>
28760
28761         test-closein: silence test under Darwin
28762         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28763         care if it dies from EPIPE or EBADF.
28764
28765 2009-03-03  Bruno Haible  <bruno@clisp.org>
28766
28767         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28768         earlier.
28769         * doc/visibility.texi: Fix @node and @section.
28770
28771 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28772
28773         * doc/gnulib.texi: Link to sections for ld version script and
28774         visibility.
28775         * doc/visibility.texi: Add @node and @section.
28776         * modules/ld-version-script: New module.
28777         * m4/ld-version-script.m4: New file.
28778         * doc/ld-version-script.texi: New file.
28779
28780 2009-03-02  David Lutterkort  <lutter@redhat.com>
28781
28782         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28784
28785 2009-03-02  Bruno Haible  <bruno@clisp.org>
28786
28787         * doc/visibility.texi: Mention libtool's -export-symbols option.
28788
28789 2009-03-02  Jim Meyering  <meyering@redhat.com>
28790
28791         announce-gen: new option: --no-print-checksums
28792         * build-aux/announce-gen (usage): Describe it.
28793         (print_checksums): Print a newline here, not in the [*] footnote.
28794         (main): Honor it.
28795
28796 2009-03-01  Bruno Haible  <bruno@clisp.org>
28797
28798         Use socklen_t in the native Windows replacements prototypes.
28799         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28800         instead of 'int'.
28801         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28802         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28803         * modules/getsockopt (Depends-on): Add socklen.
28804         * modules/setsockopt (Depends-on): Add socklen.
28805
28806 2009-03-01  Bruno Haible  <bruno@clisp.org>
28807
28808         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28809         least 4.2.
28810
28811 2009-03-01  Eric Blake  <ebb9@byu.net>
28812             Bruno Haible  <bruno@clisp.org>
28813
28814         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28815         error messages.
28816         * lib/wait-process.c (wait_subprocess): Omit error message about
28817         deadly signal sent to the child of termsigp != NULL.
28818
28819 2009-03-01  Eric Blake  <ebb9@byu.net>
28820
28821         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28822
28823 2009-03-01  Bruno Haible  <bruno@clisp.org>
28824
28825         Avoid a gcc warning.
28826         * tests/test-sched.c (b): Make global.
28827         Reported by Eric Blake.
28828
28829 2009-01-19  Martin Lambers  <marlam@marlam.de>
28830
28831         Provide POSIX semantics for socket timeout options on W32.
28832         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28833         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28834         * modules/setsockopt: Depend on sys_time module for struct timeval.
28835         * modules/getsockopt: Depend on sys_time module for struct timeval.
28836
28837 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28838
28839         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28840         __USE_GNU, for consistency with netdb.in.h.
28841         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28842
28843 2009-03-01  Bruno Haible  <bruno@clisp.org>
28844
28845         More support for FreeMiNT.
28846         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28847         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28848
28849 2009-03-01  Bruno Haible  <bruno@clisp.org>
28850
28851         More support for FreeMiNT.
28852         * lib/fpurge.c (fpurge): Correct last commit.
28853         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28854
28855 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28856
28857         Fix unportable awk script in vc-list-files.
28858         * build-aux/vc-list-files: In the replacement awk script, use
28859         substr with a second argument of 1, not zero.
28860         Report by Simon Josefsson.
28861
28862 2009-02-28  Bruno Haible  <bruno@clisp.org>
28863
28864         More support for FreeMiNT.
28865         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28866         to FreeMiNT today.
28867         * lib/fwriting.c (fwriting): Likewise.
28868         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28869
28870 2009-02-28  Bruno Haible  <bruno@clisp.org>
28871
28872         * tests/test-freadseek.c (main): Disable test beyond end of file on
28873         FreeMiNT.
28874         * tests/test-ftello.c (main): Likewise.
28875         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28876
28877 2009-02-28  Bruno Haible  <bruno@clisp.org>
28878
28879         Add tentative support for FreeMiNT.
28880         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28881         * lib/fpurge.c (fpurge): Likewise.
28882         * lib/freadable.c (freadable): Likewise.
28883         * lib/freading.c (freading): Likewise.
28884         * lib/freadptr.c (freadptr): Likewise.
28885         * lib/freadseek.c (freadptrinc): Likewise.
28886         * lib/fseeko.c (rpl_fseeko): Likewise.
28887         * lib/fseterr.c (fseterr): Likewise.
28888         * lib/fwritable.c (fwritable): Likewise.
28889         * lib/fwriting.c (fwriting): Likewise.
28890         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28891         Hourihane.
28892         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28893
28894 2009-02-28  Bruno Haible  <bruno@clisp.org>
28895
28896         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28897         SIGCHLD.
28898         Reported by Jim Meyering.
28899
28900 2009-02-28  Bruno Haible  <bruno@clisp.org>
28901
28902         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28903         Mention the results of these tests on various platforms.
28904         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28905         order.
28906         * doc/posix-functions/printf.texi: Likewise.
28907         * doc/posix-functions/snprintf.texi: Likewise.
28908         * doc/posix-functions/sprintf.texi: Likewise.
28909         * doc/posix-functions/vfprintf.texi: Likewise.
28910         * doc/posix-functions/vprintf.texi: Likewise.
28911         * doc/posix-functions/vsnprintf.texi: Likewise.
28912         * doc/posix-functions/vsprintf.texi: Likewise.
28913         * doc/glibc-functions/obstack_printf.texi: Likewise.
28914         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28915
28916 2009-02-28  Bruno Haible  <bruno@clisp.org>
28917
28918         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28919         Reported by Loïc Minier <lool@dooz.org>.
28920
28921 2009-02-27  Bruno Haible  <bruno@clisp.org>
28922
28923         * gnulib-tool (func_import): Make the sed expression used to create the
28924         sed script for updating the .gitignore file POSIX compliant.
28925         Reported by Eric Blake.
28926
28927 2009-02-27  Bruno Haible  <bruno@clisp.org>
28928
28929         * gnulib-tool (sed): Don't alias as "sed --posix".
28930         Reported by Eric Blake.
28931
28932 2009-02-27  Bruno Haible  <bruno@clisp.org>
28933
28934         Avoid test link errors.
28935         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28936         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28937         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28938         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28940
28941 2009-02-27  Bruno Haible  <bruno@clisp.org>
28942
28943         Avoid spurious "(cached)" in configure output.
28944         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28945         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28946         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28947         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28948         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28949         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28950         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28951         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28952         Reported by Eric Blake.
28953
28954 2009-02-27  Eric Blake  <ebb9@byu.net>
28955
28956         printf: fix regression in previous patch
28957         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28958
28959 2009-02-27  Bruno Haible  <bruno@clisp.org>
28960
28961         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28962         value.
28963         * lib/stdint.in.h: Likewise.
28964         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28965
28966 2009-02-27  Eric Blake  <ebb9@byu.net>
28967
28968         doc: mention more functions added in cygwin 1.7.0
28969         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28970         addition.
28971         * doc/posix-functions/open_wmemstream.texi: Likewise.
28972         * doc/posix-functions/wcsnlen.texi: Likewise.
28973         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28974         * doc/posix-functions/wcstod.texi: Likewise.
28975         * doc/posix-functions/wcstof.texi: Likewise.
28976         * doc/posix-functions/wcstoimax.texi: Likewise.
28977         * doc/posix-functions/wcstok.texi: Likewise.
28978         * doc/posix-functions/wcstoumax.texi: Likewise.
28979
28980         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28981         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28982         * doc/posix-functions/fprintf.texi: Update.
28983         * doc/posix-functions/printf.texi: Update.
28984         * doc/posix-functions/snprintf.texi: Update.
28985         * doc/posix-functions/sprintf.texi: Update.
28986         * doc/posix-functions/vfprintf.texi: Update.
28987         * doc/posix-functions/vprintf.texi: Update.
28988         * doc/posix-functions/vsnprintf.texi: Update.
28989         * doc/posix-functions/vsprintf.texi: Update.
28990         * doc/glibc-functions/obstack_printf.texi: Update.
28991         * doc/glibc-functions/obstack_vprintf.texi: Update.
28992
28993 2009-02-26  Eric Blake  <ebb9@byu.net>
28994
28995         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28996         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28997         compilation bug by using runtime conversion.
28998         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28999         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29000         * modules/ceill-tests (Files): Use nan.h.
29001         * modules/floorl-tests (Files): Likewise.
29002         * modules/frexpl-tests (Files): Likewise.
29003         * modules/isnanl-tests (Files): Likewise.
29004         * modules/ldexpl-tests (Files): Likewise.
29005         * modules/roundl-tests (Files): Likewise.
29006         * modules/truncl-tests (Files): Likewise.
29007         * tests/test-ceill.c (main): Use a working NaN.
29008         * tests/test-floorl.c (main): Likewise.
29009         * tests/test-frexpl.c (main): Likewise.
29010         * tests/test-isnan.c (test_long_double): Likewise.
29011         * tests/test-isnanl.h (main): Likewise.
29012         * tests/test-ldexpl.h (main): Likewise.
29013         * tests/test-roundl.h (main): Likewise.
29014         * tests/test-truncl.h (main): Likewise.
29015         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29016
29017 2009-02-26  Eric Blake  <ebb9@byu.net>
29018             Bruno Haible  <bruno@clisp.org>
29019
29020         Work around a *printf bug with %ls on Solaris.
29021         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29022         precision is specified, sprintf stops converting the wide string
29023         argument when the number of bytes that have been produced by this
29024         conversion equals or exceeds the precision.
29025         * doc/posix-functions/fprintf.texi: Update.
29026         * doc/posix-functions/printf.texi: Update.
29027         * doc/posix-functions/snprintf.texi: Update.
29028         * doc/posix-functions/sprintf.texi: Update.
29029         * doc/posix-functions/vfprintf.texi: Update.
29030         * doc/posix-functions/vprintf.texi: Update.
29031         * doc/posix-functions/vsnprintf.texi: Update.
29032         * doc/posix-functions/vsprintf.texi: Update.
29033         * doc/glibc-functions/obstack_printf.texi: Update.
29034         * doc/glibc-functions/obstack_vprintf.texi: Update.
29035
29036 2009-02-26  Eric Blake  <ebb9@byu.net>
29037
29038         stdlib: favor compiler check of random.h
29039         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29040         to avoid an ObjC random.h installed by Swarm.
29041
29042 2009-02-26  Bruno Haible  <bruno@clisp.org>
29043
29044         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29045         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29046         Reported by Gary V. Vaughan <gary@gnu.org>.
29047
29048 2009-02-26  Bruno Haible  <bruno@clisp.org>
29049
29050         Fix *printf behaviour regarding the %ls directive.
29051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29052         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29053         NEED_PRINTF_DIRECTIVE_LS.
29054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29055         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29056         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29057         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29058         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29059         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29060         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29062         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29063         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29064         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29065         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29069         * doc/posix-functions/fprintf.texi: Update.
29070         * doc/posix-functions/printf.texi: Update.
29071         * doc/posix-functions/snprintf.texi: Update.
29072         * doc/posix-functions/sprintf.texi: Update.
29073         * doc/posix-functions/vfprintf.texi: Update.
29074         * doc/posix-functions/vprintf.texi: Update.
29075         * doc/posix-functions/vsnprintf.texi: Update.
29076         * doc/posix-functions/vsprintf.texi: Update.
29077         * doc/glibc-functions/obstack_printf.texi: Update.
29078         * doc/glibc-functions/obstack_vprintf.texi: Update.
29079         Reported by Eric Blake.
29080
29081 2009-02-25  Bruno Haible  <bruno@clisp.org>
29082
29083         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29084         with known value.
29085         Reported by Gary V. Vaughan <gary@gnu.org>.
29086
29087 2009-02-25  Bruno Haible  <bruno@clisp.org>
29088
29089         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29090         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29091         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29092         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29093         Reported by Gary V. Vaughan <gary@gnu.org>.
29094
29095 2009-02-25  Bruno Haible  <bruno@clisp.org>
29096
29097         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29098         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29099         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29100         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29101         Reported by Gary V. Vaughan <gary@gnu.org>.
29102
29103 2009-02-25  Eric Blake  <ebb9@byu.net>
29104
29105         tests: skip fseek/ftell tests if ungetc is broken
29106         * m4/ungetc.m4: New file.
29107         * modules/fseek-tests: Split test, so ungetc dependency is
29108         separate from rest of test.
29109         * modules/fseeko-tests: Likewise.
29110         * modules/ftell-tests: Likewise.
29111         * modules/ftello-tests: Likewise.
29112         * tests/test-fseek.c (main): Isolate ungetc dependency.
29113         * tests/test-fseeko.c (main): Likewise.
29114         * tests/test-ftell.c (main): Likewise.
29115         * tests/test-ftello.c (main): Likewise.
29116         * tests/test-fseek2.sh: New file.
29117         * tests/test-fseeko2.sh: Likewise.
29118         * tests/test-ftell2.sh: Likewise.
29119         * tests/test-ftello2.sh: Likewise.
29120
29121 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29122
29123         test-getaddrinfo: fix usage of skip return code 77
29124         * tests/test-gettaddrinfo.c: Return skip code 77 only
29125         for first occurance of skip (4x77 is not 77)
29126
29127 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29128
29129         strtod: avoid C99 decl-after-statement
29130         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29131
29132 2009-02-24  Eric Blake  <ebb9@byu.net>
29133
29134         strtod: detect HP-UX 11.31 bug
29135         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29136         Reported by Gary V. Vaughan.
29137
29138 2009-02-23  Bruno Haible  <bruno@clisp.org>
29139
29140         Fix invalid read past end of memory block.
29141         * lib/vasnprintf.c (DCHAR_SET): Define.
29142         (local_wcslen): Define only when needed.
29143         (local_strnlen, local_wcsnlen): New functions.
29144         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29145         directives that involve a conversion ourselves.
29146         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29147         wcsnlen, mbrtowc, wcrtomb.
29148         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29149         * tests/test-vasprintf-posix.c (test_function): Likewise.
29150         * tests/test-snprintf-posix.h (test_function): Likewise.
29151         * tests/test-sprintf-posix.h (test_function): Likewise.
29152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29153
29154 2009-02-22  Bruno Haible  <bruno@clisp.org>
29155
29156         Implement new clarified decomposition of Hangul syllables.
29157         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29158         of type LTV, return only a pairwise decomposition.
29159         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29160         Likewise.
29161         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29162         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29163         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29164
29165 2009-02-22  Bruno Haible  <bruno@clisp.org>
29166
29167         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29168         zero-length results and shrink excess allocated memory.
29169         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29170         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29171         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29172         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29173         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29174         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29175         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29176         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29177         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29178         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29179         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29180         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29181
29182 2009-02-21  Bruno Haible  <bruno@clisp.org>
29183
29184         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29185         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29186         spaces after a period. Put a space between a macro name and its
29187         argument list. Trivial rewordings.
29188         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29189         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29190         (main): Return 0 explicitly.
29191
29192 2009-02-21  Bruno Haible  <bruno@clisp.org>
29193
29194         Tests for module 'uninorm/filter'.
29195         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29196         * modules/uninorm/filter-tests: New file.
29197
29198         New module 'uninorm/filter'.
29199         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29200         uninorm_filter_flush, uninorm_filter_free): New declarations.
29201         * lib/uninorm/uninorm-filter.c: New file.
29202         * modules/uninorm/filter: New file.
29203
29204 2009-02-21  Bruno Haible  <bruno@clisp.org>
29205
29206         Tests for module 'uninorm/nfkc'.
29207         * tests/uninorm/test-nfkc.c: New file.
29208         * tests/uninorm/test-u8-nfkc.c: New file.
29209         * tests/uninorm/test-u16-nfkc.c: New file.
29210         * tests/uninorm/test-u32-nfkc.c: New file.
29211         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29212         * tests/uninorm/test-u32-nfkc-big.c: New file.
29213         * modules/uninorm/nfkc-tests: New file.
29214
29215         New module 'uninorm/nfkc'.
29216         * lib/uninorm/nfkc.c: New file.
29217         * modules/uninorm/nfkc: New file.
29218
29219         Tests for module 'uninorm/nfkd'.
29220         * tests/uninorm/test-nfkd.c: New file.
29221         * tests/uninorm/test-u8-nfkd.c: New file.
29222         * tests/uninorm/test-u16-nfkd.c: New file.
29223         * tests/uninorm/test-u32-nfkd.c: New file.
29224         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29225         * tests/uninorm/test-u32-nfkd-big.c: New file.
29226         * modules/uninorm/nfkd-tests: New file.
29227
29228         New module 'uninorm/nfkd'.
29229         * lib/uninorm/nfkd.c: New file.
29230         * modules/uninorm/nfkd: New file.
29231
29232         Tests for module 'uninorm/nfc'.
29233         * tests/uninorm/test-nfc.c: New file.
29234         * tests/uninorm/test-u8-nfc.c: New file.
29235         * tests/uninorm/test-u16-nfc.c: New file.
29236         * tests/uninorm/test-u32-nfc.c: New file.
29237         * tests/uninorm/test-u32-nfc-big.sh: New file.
29238         * tests/uninorm/test-u32-nfc-big.c: New file.
29239         * modules/uninorm/nfc-tests: New file.
29240
29241         New module 'uninorm/nfc'.
29242         * lib/uninorm/nfc.c: New file.
29243         * modules/uninorm/nfc: New file.
29244
29245         Tests for module 'uninorm/nfd'.
29246         * tests/uninorm/test-nfd.c: New file.
29247         * tests/uninorm/test-u8-nfd.c: New file.
29248         * tests/uninorm/test-u16-nfd.c: New file.
29249         * tests/uninorm/test-u32-nfd.c: New file.
29250         * tests/uninorm/test-u32-nfd-big.sh: New file.
29251         * tests/uninorm/test-u32-nfd-big.c: New file.
29252         * tests/uninorm/test-u32-normalize-big.h: New file.
29253         * tests/uninorm/test-u32-normalize-big.c: New file.
29254         * tests/uninorm/NormalizationTest.txt: New file, created from
29255         Unicode 5.1.0 NormalizationTest.txt.
29256         * modules/uninorm/nfd-tests: New file.
29257
29258         New module 'uninorm/nfd'.
29259         * lib/uninorm/nfd.c: New file.
29260         * modules/uninorm/nfd: New file.
29261
29262         New module 'uninorm/u32-normalize'.
29263         * lib/uninorm/u32-normalize.c: New file.
29264         * modules/uninorm/u32-normalize: New file.
29265
29266         New module 'uninorm/u16-normalize'.
29267         * lib/uninorm/u16-normalize.c: New file.
29268         * modules/uninorm/u16-normalize: New file.
29269
29270         New module 'uninorm/u8-normalize'.
29271         * lib/uninorm/u8-normalize.c: New file.
29272         * lib/uninorm/normalize-internal.h: New file.
29273         * lib/uninorm/u-normalize-internal.h: New file.
29274         * modules/uninorm/u8-normalize: New file.
29275
29276         New module 'uninorm/decompose-internal'.
29277         * lib/uninorm/decompose-internal.c: New file.
29278         * modules/uninorm/decompose-internal: New file.
29279
29280         Tests for module 'uninorm/composition'.
29281         * tests/uninorm/test-composition.c: New file.
29282         * modules/uninorm/composition-tests: New file.
29283
29284         New module 'uninorm/composition'.
29285         * lib/uninorm/composition.c: New file.
29286         * lib/uninorm/composition-table.gperf: New file, generated by
29287         gen-uni-tables.
29288         * modules/uninorm/composition: New file.
29289
29290         Tests for module 'uninorm/compat-decomposition'.
29291         * tests/uninorm/test-compat-decomposition.c: New file.
29292         * modules/uninorm/compat-decomposition-tests: New file.
29293
29294         New module 'uninorm/compat-decomposition'.
29295         * lib/uninorm/decompose-internal.h: New file.
29296         * lib/uninorm/compat-decomposition.c: New file.
29297         * modules/uninorm/compat-decomposition: New file.
29298
29299         Tests for module 'uninorm/canonical-decomposition'.
29300         * tests/uninorm/test-canonical-decomposition.c: New file.
29301         * modules/uninorm/canonical-decomposition-tests: New file.
29302
29303         New module 'uninorm/canonical-decomposition'.
29304         * lib/uninorm/canonical-decomposition.c: New file.
29305         * modules/uninorm/canonical-decomposition: New file.
29306
29307         Tests for module 'uninorm/decomposition'.
29308         * tests/uninorm/test-decomposition.c: New file.
29309         * modules/uninorm/decomposition-tests: New file.
29310
29311         New module 'uninorm/decomposition'.
29312         * lib/uninorm/decomposition.c: New file.
29313         * modules/uninorm/decomposition: New file.
29314
29315         New module 'uninorm/decomposition-table'.
29316         * lib/uninorm/decomposition-table.h: New file.
29317         * lib/uninorm/decomposition-table.c: New file.
29318         * lib/uninorm/decomposition-table1.h: New file, generated by
29319         gen-uni-tables.
29320         * lib/uninorm/decomposition-table2.h: New file, generated by
29321         gen-uni-tables.
29322         * modules/uninorm/decomposition-table: New file.
29323
29324         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29325         (UC_DECOMP_*): New enumeration items.
29326         (get_decomposition): New function.
29327         (struct decomp_table): New type.
29328         (output_decomposition, output_decomposition_tables): New functions.
29329         (unicode_composition_exclusions): New variable.
29330         (fill_composition_exclusions, debug_output_composition_tables): New
29331         functions.
29332         (main): Accept one more argument. Invoke fill_composition_exclusions.
29333         Output decomposition and composition tables.
29334
29335         New module 'uninorm/base'.
29336         * lib/uninorm.h: New file.
29337         * lib/unictype.h: Update comment.
29338         * modules/uninorm/base: New file.
29339
29340 2009-02-21  David Lutterkort  <lutter@redhat.com>
29341
29342         Tests for module 'safe-alloc'.
29343         * tests/test-safe-alloc.c: New file.
29344         * modules/safe-alloc-tests: New file.
29345
29346         New module 'safe-alloc'.
29347         * lib/safe-alloc.h: New file.
29348         * lib/safe-alloc.c: New file.
29349         * m4/safe-alloc.m4: New file.
29350         * modules/safe-alloc: New file.
29351         * doc/safe-alloc.texi: New file.
29352         * doc/gnulib.texi: Include it.
29353         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29354         safe-alloc.
29355
29356 2009-02-18  Bruno Haible  <bruno@clisp.org>
29357
29358         Fix link error on non-glibc systems.
29359         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29360         variable.
29361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29362
29363 2009-02-18  Jim Meyering  <meyering@redhat.com>
29364
29365         fts: avoid used-uninitialized error due to recent change
29366         * lib/fts.c (fts_read): Guard uses of the new member,
29367         parent->fts_n_dirs_remaining, since it's not relevant for
29368         the parent of a directory specified on the command-line.
29369
29370 2009-02-17  James Youngman  <jay@gnu.org>
29371             Bruno Haible  <bruno@clisp.org>
29372
29373         * m4/include_next.m4: Reformulate comment.
29374
29375 2009-02-16  Jim Meyering  <meyering@redhat.com>
29376
29377         fts: add #if guards so that the fts_lgpl module still builds
29378         * lib/fts.c: Guard just-added hash-table-using parts with
29379         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29380         Reported by Simon Josefsson.
29381
29382 2009-02-15  Bruno Haible  <bruno@clisp.org>
29383
29384         * modules/array-mergesort-tests: New file.
29385         * tests/test-array-mergesort.c: New file.
29386
29387         New module 'array-mergesort'.
29388         * modules/array-mergesort: New file.
29389         * lib/array-mergesort.h: New file.
29390
29391 2009-02-15  Bruno Haible  <bruno@clisp.org>
29392
29393         Fix 2009-02-07 commit.
29394         * lib/gen-uni-tables.c (output_predicate, output_category,
29395         output_combclass, output_bidi_category, output_decimal_digit,
29396         output_digit, output_numeric, output_mirror, output_scripts,
29397         output_ident_category, output_simple_mapping): Fix format directives.
29398         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29399
29400 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29401
29402         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29403         fixes are available from IBM.
29404
29405 2009-02-13  Jim Meyering  <meyering@redhat.com>
29406
29407         fts: arrange not to stat non-directories in more cases
29408         This makes GNU find (when it doesn't need to stat each file)
29409         *much* more efficient at traversing reiserfs file systems.
29410         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29411         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29412         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29413         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29414         (leaf_optimization_applies): New function.
29415         (LCO_hash, LCO_compare): New helper functions.
29416         (link_count_optimize_ok): New function.
29417         (fts_stat): Initialize new member (if dir).
29418         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29419         we've just stat'ed a directory.  Skip the stat call when possible.
29420         ---
29421         Note this AFS-related exchange:
29422         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29423         and note find's pioctl call in find/fstype.c.
29424         But that is necessary only if you want to enable the
29425         optimization for AFS, and for now, I don't.
29426
29427         fts: move a function definition "up" (no semantic change)
29428         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29429         "up" to precede upcoming use of a related function.
29430
29431 2009-02-11  Jim Meyering  <meyering@redhat.com>
29432
29433         fts: correct internal computation of nlinks (optimization-related)
29434         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29435         whether the current entry is a directory, so don't test it.
29436
29437 2009-02-10  Bruno Haible  <bruno@clisp.org>
29438
29439         Tests for module 'uniwbrk/ulc-wordbreaks'.
29440         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29441         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29442         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29443
29444         Tests for module 'uniwbrk/u32-wordbreaks'.
29445         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29446         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29447
29448         Tests for module 'uniwbrk/u16-wordbreaks'.
29449         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29450         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29451
29452         Tests for module 'uniwbrk/u8-wordbreaks'.
29453         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29454         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29455
29456 2009-02-10  Bruno Haible  <bruno@clisp.org>
29457
29458         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29459         property.
29460         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29461         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29462         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29463
29464 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29465
29466         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29467         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29468
29469 2009-02-10  Bruno Haible  <bruno@clisp.org>
29470
29471         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29472         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29473         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29474         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29475         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29476         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29477
29478 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29479
29480         * lib/sockets.h (gl_fd_to_handle): New function.
29481
29482         * tests/test-sockets.c: Call gl_fd_to_handle.
29483
29484 2009-02-09  Bruno Haible  <bruno@clisp.org>
29485
29486         * doc/havelib.texi: Document the conventions on bi-arch systems.
29487
29488 2009-02-08  Bruno Haible  <bruno@clisp.org>
29489
29490         Document the AC_LIB_LINKFLAGS macro.
29491         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29492         * doc/gnulib.texi: Include it.
29493
29494 2009-02-08  Bruno Haible  <bruno@clisp.org>
29495
29496         Fix wrong order of sections, compared to TOC.
29497         * doc/gnulib.texi: Include relocatable-maint.texi after the
29498         "Regular expressions" node, not before.
29499
29500 2009-02-08  Bruno Haible  <bruno@clisp.org>
29501
29502         Tests for module 'unicase/totitle'.
29503         * modules/unicase/totitle-tests: New file.
29504
29505         Tests for module 'unicase/tolower'.
29506         * modules/unicase/tolower-tests: New file.
29507
29508         Tests for module 'unicase/toupper'.
29509         * modules/unicase/toupper-tests: New file.
29510         * tests/unicase/test-mapping-part1.h: New file.
29511         * tests/unicase/test-mapping-part2.h: New file.
29512
29513         New module 'unicase/totitle'.
29514         * modules/unicase/totitle: New file.
29515         * lib/unicase/totitle.c: New file.
29516
29517         New module 'unicase/tolower'.
29518         * modules/unicase/tolower: New file.
29519         * lib/unicase/tolower.c: New file.
29520
29521         New module 'unicase/toupper'.
29522         * modules/unicase/toupper: New file.
29523         * lib/unicase/toupper.c: New file.
29524         * lib/unicase/simple-mapping.h: New file.
29525
29526         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29527         (mapping_table): New structure.
29528         (output_simple_mapping): New function.
29529         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29530         * modules/gen-uni-tables (Description): Update.
29531         * lib/unicase/toupper.h: New file, automatically generated by
29532         gen-uni-tables.
29533         * lib/unicase/tolower.h: New file, automatically generated by
29534         gen-uni-tables.
29535         * lib/unicase/totitle.h: New file, automatically generated by
29536         gen-uni-tables.
29537         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29538         gen-uni-tables.
29539         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29540         gen-uni-tables.
29541         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29542         gen-uni-tables.
29543
29544         New module 'unicase/base'.
29545         * modules/unicase/base: New file.
29546         * lib/unicase.h: New file.
29547
29548 2009-02-08  Bruno Haible  <bruno@clisp.org>
29549
29550         New module 'uniwbrk/ulc-wordbreaks'.
29551         * modules/uniwbrk/ulc-wordbreaks: New file.
29552         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29553
29554         New module 'uniwbrk/u32-wordbreaks'.
29555         * modules/uniwbrk/u32-wordbreaks: New file.
29556         * lib/uniwbrk/u32-wordbreaks.c: New file.
29557
29558         New module 'uniwbrk/u16-wordbreaks'.
29559         * modules/uniwbrk/u16-wordbreaks: New file.
29560         * lib/uniwbrk/u16-wordbreaks.c: New file.
29561
29562         New module 'uniwbrk/u8-wordbreaks'.
29563         * modules/uniwbrk/u8-wordbreaks: New file.
29564         * lib/uniwbrk/u8-wordbreaks.c: New file.
29565         * lib/uniwbrk/u-wordbreaks.h: New file.
29566
29567         New module 'uniwbrk/table'.
29568         * modules/uniwbrk/table: New file.
29569         * lib/uniwbrk/wbrktable.h: New file.
29570         * lib/uniwbrk/wbrktable.c: New file.
29571
29572         New module 'uniwbrk/wordbreak-property'.
29573         * modules/uniwbrk/wordbreak-property: New file.
29574         * lib/uniwbrk/wordbreak-property.c: New file.
29575
29576         * lib/gen-uni-tables.c (WBP_*): New enum items.
29577         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29578         (unicode_org_wbp): New variable.
29579         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29580         New functions.
29581         (wbp_table): New structure.
29582         (output_wbp, output_wbrk_tables): New functions.
29583         (main): Accept additional argument. Invoke fill_org_wbp,
29584         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29585         output_wbrk_tables.
29586         * modules/gen-uni-tables (Description): Update.
29587         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29588         gen-uni-tables.
29589
29590         New module 'uniwbrk/base'.
29591         * modules/uniwbrk/base: New file.
29592         * lib/uniwbrk.h: New file.
29593
29594 2009-02-08  Bruno Haible  <bruno@clisp.org>
29595
29596         Update to Unicode 5.1.0.
29597         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29598         U+2185..U+2188.
29599         (is_property_default_ignorable_code_point): Don't include characters
29600         of category Cc or Cs and not-a-characters.
29601         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29602         U+0D79, U+109E, U+109F, U+A60C.
29603         * lib/unictype/bidi_of.h: Regenerated.
29604         * lib/unictype/blocks.h: Regenerated.
29605         * lib/unictype/categ_C.h: Regenerated.
29606         * lib/unictype/categ_Cf.h: Regenerated.
29607         * lib/unictype/categ_Cn.h: Regenerated.
29608         * lib/unictype/categ_L.h: Regenerated.
29609         * lib/unictype/categ_Ll.h: Regenerated.
29610         * lib/unictype/categ_Lm.h: Regenerated.
29611         * lib/unictype/categ_Lo.h: Regenerated.
29612         * lib/unictype/categ_Lu.h: Regenerated.
29613         * lib/unictype/categ_M.h: Regenerated.
29614         * lib/unictype/categ_Mc.h: Regenerated.
29615         * lib/unictype/categ_Me.h: Regenerated.
29616         * lib/unictype/categ_Mn.h: Regenerated.
29617         * lib/unictype/categ_N.h: Regenerated.
29618         * lib/unictype/categ_Nd.h: Regenerated.
29619         * lib/unictype/categ_Nl.h: Regenerated.
29620         * lib/unictype/categ_No.h: Regenerated.
29621         * lib/unictype/categ_P.h: Regenerated.
29622         * lib/unictype/categ_Pd.h: Regenerated.
29623         * lib/unictype/categ_Pe.h: Regenerated.
29624         * lib/unictype/categ_Pf.h: Regenerated.
29625         * lib/unictype/categ_Pi.h: Regenerated.
29626         * lib/unictype/categ_Po.h: Regenerated.
29627         * lib/unictype/categ_Ps.h: Regenerated.
29628         * lib/unictype/categ_S.h: Regenerated.
29629         * lib/unictype/categ_Sk.h: Regenerated.
29630         * lib/unictype/categ_Sm.h: Regenerated.
29631         * lib/unictype/categ_So.h: Regenerated.
29632         * lib/unictype/categ_of.h: Regenerated.
29633         * lib/unictype/combining.h: Regenerated.
29634         * lib/unictype/ctype_alnum.h: Regenerated.
29635         * lib/unictype/ctype_alpha.h: Regenerated.
29636         * lib/unictype/ctype_graph.h: Regenerated.
29637         * lib/unictype/ctype_lower.h: Regenerated.
29638         * lib/unictype/ctype_print.h: Regenerated.
29639         * lib/unictype/ctype_punct.h: Regenerated.
29640         * lib/unictype/ctype_upper.h: Regenerated.
29641         * lib/unictype/decdigit.h: Regenerated.
29642         * lib/unictype/digit.h: Regenerated.
29643         * lib/unictype/mirror.h: Regenerated.
29644         * lib/unictype/numeric.h: Regenerated.
29645         * lib/unictype/pr_alphabetic.h: Regenerated.
29646         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29647         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29648         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29649         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29650         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29651         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29652         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29653         * lib/unictype/pr_combining.h: Regenerated.
29654         * lib/unictype/pr_dash.h: Regenerated.
29655         * lib/unictype/pr_decimal_digit.h: Regenerated.
29656         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29657         * lib/unictype/pr_deprecated.h: Regenerated.
29658         * lib/unictype/pr_diacritic.h: Regenerated.
29659         * lib/unictype/pr_extender.h: Regenerated.
29660         * lib/unictype/pr_format_control.h: Regenerated.
29661         * lib/unictype/pr_grapheme_base.h: Regenerated.
29662         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29663         * lib/unictype/pr_grapheme_link.h: Regenerated.
29664         * lib/unictype/pr_id_continue.h: Regenerated.
29665         * lib/unictype/pr_id_start.h: Regenerated.
29666         * lib/unictype/pr_ideographic.h: Regenerated.
29667         * lib/unictype/pr_ignorable_control.h: Regenerated.
29668         * lib/unictype/pr_lowercase.h: Regenerated.
29669         * lib/unictype/pr_math.h: Regenerated.
29670         * lib/unictype/pr_numeric.h: Regenerated.
29671         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29672         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29673         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29674         * lib/unictype/pr_other_id_continue.h: Regenerated.
29675         * lib/unictype/pr_other_lowercase.h: Regenerated.
29676         * lib/unictype/pr_other_math.h: Regenerated.
29677         * lib/unictype/pr_punctuation.h: Regenerated.
29678         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29679         * lib/unictype/pr_soft_dotted.h: Regenerated.
29680         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29681         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29682         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29683         * lib/unictype/pr_uppercase.h: Regenerated.
29684         * lib/unictype/pr_xid_continue.h: Regenerated.
29685         * lib/unictype/pr_xid_start.h: Regenerated.
29686         * lib/unictype/pr_zero_width.h: Regenerated.
29687         * lib/unictype/scripts.h: Regenerated.
29688         * lib/unictype/scripts_byname.gperf: Regenerated.
29689         * lib/unictype/sy_java_ident.h: Regenerated.
29690         * lib/unilbrk/lbrkprop1.h: Regenerated.
29691         * lib/unilbrk/lbrkprop2.h: Regenerated.
29692         * tests/unictype/test-categ_C.c: Regenerated.
29693         * tests/unictype/test-categ_Cf.c: Regenerated.
29694         * tests/unictype/test-categ_Cn.c: Regenerated.
29695         * tests/unictype/test-categ_L.c: Regenerated.
29696         * tests/unictype/test-categ_Ll.c: Regenerated.
29697         * tests/unictype/test-categ_Lm.c: Regenerated.
29698         * tests/unictype/test-categ_Lo.c: Regenerated.
29699         * tests/unictype/test-categ_Lu.c: Regenerated.
29700         * tests/unictype/test-categ_M.c: Regenerated.
29701         * tests/unictype/test-categ_Mc.c: Regenerated.
29702         * tests/unictype/test-categ_Me.c: Regenerated.
29703         * tests/unictype/test-categ_Mn.c: Regenerated.
29704         * tests/unictype/test-categ_N.c: Regenerated.
29705         * tests/unictype/test-categ_Nd.c: Regenerated.
29706         * tests/unictype/test-categ_Nl.c: Regenerated.
29707         * tests/unictype/test-categ_No.c: Regenerated.
29708         * tests/unictype/test-categ_P.c: Regenerated.
29709         * tests/unictype/test-categ_Pd.c: Regenerated.
29710         * tests/unictype/test-categ_Pe.c: Regenerated.
29711         * tests/unictype/test-categ_Pf.c: Regenerated.
29712         * tests/unictype/test-categ_Pi.c: Regenerated.
29713         * tests/unictype/test-categ_Po.c: Regenerated.
29714         * tests/unictype/test-categ_Ps.c: Regenerated.
29715         * tests/unictype/test-categ_S.c: Regenerated.
29716         * tests/unictype/test-categ_Sk.c: Regenerated.
29717         * tests/unictype/test-categ_Sm.c: Regenerated.
29718         * tests/unictype/test-categ_So.c: Regenerated.
29719         * tests/unictype/test-ctype_alnum.c: Regenerated.
29720         * tests/unictype/test-ctype_alpha.c: Regenerated.
29721         * tests/unictype/test-ctype_graph.c: Regenerated.
29722         * tests/unictype/test-ctype_lower.c: Regenerated.
29723         * tests/unictype/test-ctype_print.c: Regenerated.
29724         * tests/unictype/test-ctype_punct.c: Regenerated.
29725         * tests/unictype/test-ctype_upper.c: Regenerated.
29726         * tests/unictype/test-decdigit.h: Regenerated.
29727         * tests/unictype/test-digit.h: Regenerated.
29728         * tests/unictype/test-numeric.h: Regenerated.
29729         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29730         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29731         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29732         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29733         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29734         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29735         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29736         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29737         * tests/unictype/test-pr_combining.c: Regenerated.
29738         * tests/unictype/test-pr_dash.c: Regenerated.
29739         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29740         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29741         * tests/unictype/test-pr_deprecated.c: Regenerated.
29742         * tests/unictype/test-pr_diacritic.c: Regenerated.
29743         * tests/unictype/test-pr_extender.c: Regenerated.
29744         * tests/unictype/test-pr_format_control.c: Regenerated.
29745         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29746         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29747         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29748         * tests/unictype/test-pr_id_continue.c: Regenerated.
29749         * tests/unictype/test-pr_id_start.c: Regenerated.
29750         * tests/unictype/test-pr_ideographic.c: Regenerated.
29751         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29752         * tests/unictype/test-pr_lowercase.c: Regenerated.
29753         * tests/unictype/test-pr_math.c: Regenerated.
29754         * tests/unictype/test-pr_numeric.c: Regenerated.
29755         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29756         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29757         Regenerated.
29758         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29759         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29760         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29761         * tests/unictype/test-pr_other_math.c: Regenerated.
29762         * tests/unictype/test-pr_punctuation.c: Regenerated.
29763         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29764         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29765         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29766         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29767         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29768         * tests/unictype/test-pr_uppercase.c: Regenerated.
29769         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29770         * tests/unictype/test-pr_xid_start.c: Regenerated.
29771         * tests/unictype/test-pr_zero_width.c: Regenerated.
29772
29773         Update to Unicode 5.1.0.
29774         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29775         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29776         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29777         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29778         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29779         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29780         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29781         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29782         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29783         (nonspacing_table_ind): Update.
29784         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29785
29786         Update to Unicode 5.1.0.
29787         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29788         code transform.
29789         * lib/uniname/uniname.c (unicode_character_name,
29790         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29791         * lib/uniname/uninames.h: Regenerated.
29792         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29793
29794 2009-02-07  Bruno Haible  <bruno@clisp.org>
29795
29796         Merge gen-ctype and gen-lbrk into a single program.
29797         * lib/gen-uni-tables.c: New file, incorporating
29798         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29799         Add directory prefixes to the names of the generated files.
29800         * lib/unictype/gen-ctype.c: Remove file.
29801         * lib/unilbrk/gen-lbrk.c: Remove file.
29802         * modules/gen-uni-tables: New file.
29803         * modules/unictype/gen-ctype: Remove file.
29804         * modules/unilbrk/gen-lbrk: Remove file.
29805
29806 2009-02-07  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29809
29810         New module 'unistr/u32-strcoll'.
29811         * modules/unistr/u32-strcoll: New file.
29812         * lib/unistr/u32-strcoll.c: New file.
29813
29814         New module 'unistr/u16-strcoll'.
29815         * modules/unistr/u16-strcoll: New file.
29816         * lib/unistr/u16-strcoll.c: New file.
29817
29818         New module 'unistr/u8-strcoll'.
29819         * modules/unistr/u8-strcoll: New file.
29820         * lib/unistr/u8-strcoll.c: New file.
29821         * lib/unistr/u-strcoll.h: New file.
29822
29823 2009-02-07  Bruno Haible  <bruno@clisp.org>
29824
29825         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29826         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29827         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29828         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29829         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29830         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29831
29832 2009-02-07  Bruno Haible  <bruno@clisp.org>
29833
29834         Make 64-bit clean.
29835         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29836         output_combclass, output_bidi_category, output_decimal_digit,
29837         output_digit, output_numeric, output_mirror, output_scripts,
29838         output_ident_category): Use proper width specifier in format strings.
29839
29840 2009-02-07  Bruno Haible  <bruno@clisp.org>
29841
29842         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29843         failure behaviour.
29844
29845 2009-02-07  Jim Meyering  <meyering@redhat.com>
29846
29847         regex: avoid compilation failure with upcoming gcc-4.4
29848         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29849         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29850         "... error: integer overflow in preprocessor expression".
29851
29852 2009-02-05  Ben Pfaff  <blp@gnu.org>
29853
29854         Fix link errors on Windows when close module is used.
29855         * modules/close: Add $(LIB_CLOSE) to Link section.
29856         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29857         $(LIB_CLOSE) on Windows.
29858
29859 2009-02-05  Jim Meyering  <meyering@redhat.com>
29860
29861         still avoid unused-parameter warnings, but do it cleanly
29862         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29863         (get_fs_usage): Cast to void instead.
29864         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29865         (dev_from_mount_options, read_file_system_list): Cast to void.
29866         Prompted by Bruno Haible.
29867
29868 2009-02-04  Jim Meyering  <meyering@redhat.com>
29869
29870         fsusage.c: correct copyright year
29871         * lib/fsusage.c: Reflect year in which the change is pushed into
29872
29873         avoid misc. warnings
29874         * lib/fsusage.c (UNUSED_PARAM): Define.
29875         (get_fs_usage): Mark parameter "disk" as unused.
29876         * lib/getugroups.c (getgrent): Use "void" in prototype.
29877         * lib/mountlist.c: Mark unused parameters.
29878         (read_file_system_list): Declare a local with "const".
29879         * lib/nanosleep.c (getnow): Declare static.
29880         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29881
29882         dirfd: set errno upon failure
29883         * lib/dirfd.c: Include <errno.h>.
29884         Set errno to ENOTSUP when returning -1.
29885         * modules/dirfd (Depends-on): Add errno.
29886         Suggested by John Kodis <kodis@comcast.net>.
29887
29888 2009-02-01  Bruno Haible  <bruno@clisp.org>
29889
29890         Don't assume sizeof (long) >= sizeof (void *).
29891         * lib/memcmp.c: Include stdint.h.
29892         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29893         srcp2 to 'const byte *'.
29894         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29895         types to uintptr_t.
29896         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29897         * modules/memcmp (Depends-on): Add stdint.
29898         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29899
29900 2009-01-30  Eric Blake  <ebb9@byu.net>
29901
29902         fix more require-before-expand issues
29903         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29904         expand, AC_PROG_AWK.
29905         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29906
29907 2009-01-28  Eric Blake  <ebb9@byu.net>
29908
29909         version-etc: use consistent URL formatting
29910         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29911         Improve formatting.  Use fputs for string without %.
29912
29913 2009-01-28  Jim Meyering  <meyering@redhat.com>
29914
29915         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29916         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29917         "underquoted definition of NAME" from autoconf-2.59.
29918
29919 2009-01-28  Bruno Haible  <bruno@clisp.org>
29920
29921         * doc/gnulib.texi: Add "Obsolete modules" to index.
29922
29923 2009-01-28  Jim Meyering  <meyering@redhat.com>
29924
29925         useless-if-before-free: recognize more variants
29926         * build-aux/useless-if-before-free: Also recognize e.g.,
29927         if (NULL != p) free (p);
29928
29929 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29930
29931         test-getaddrinfo: skip (don't fail) this test when there's no network
29932         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29933         on the presumption that it means you lack network access.
29934
29935 2009-01-26  Jim Meyering  <meyering@redhat.com>
29936
29937         fflush: avoid warnings on modern systems
29938         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29939         pos and result, into scopes where they're used.
29940
29941 2009-01-26  Eric Blake  <ebb9@byu.net>
29942
29943         Silence warning reintroduced by recent extensions patch.
29944         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29945         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29946         autoconf.
29947
29948         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29949         * m4/00gnulib.m4: New file.
29950         * gnulib-tool (func_get_filelist): Always use it.
29951         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29952         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29953
29954 2009-01-25  Bruno Haible  <bruno@clisp.org>
29955
29956         Make test-quotearg work on MacOS X and AIX.
29957         * tests/test-quotearg.sh: New file.
29958         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29959         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29960         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29961         include <libintl.h>.
29962         (fake_locale): Remove variable.
29963         (gettext, dgettext, dcgettext): Remove functions.
29964         (main): Instead of setting a fake locale, set a real locale. Call
29965         textdomain and bindtextdomain.
29966         * modules/quotearg-tests (Files): Add the new files.
29967         (Depends-on): Add gettext, setenv, unsetenv.
29968         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29969         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29970         Augment TESTS_ENVIRONMENT.
29971
29972 2009-01-25  Bruno Haible  <bruno@clisp.org>
29973
29974         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29975         fr_FR.ISO8859-1 locale on MacOS X.
29976         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29977         ja_JP.eucJP locale on MacOS X.
29978         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29979         zh_CN.GB18030 locale on MacOS X.
29980
29981 2009-01-25  Bruno Haible  <bruno@clisp.org>
29982
29983         Avoid link errors on MacOS X 10.3.
29984         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29985         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29986
29987 2009-01-25  Bruno Haible  <bruno@clisp.org>
29988
29989         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29990         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29991         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29992         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29993         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29994         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29995         posix_spawnattr_init, posix_spawnattr_setsigmask,
29996         posix_spawnattr_setflags, posix_spawnattr_destroy.
29997
29998         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29999         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30000         * modules/execute (Files): Remove m4/posix_spawn.m4.
30001         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30002         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30003         posix_spawnattr_init, posix_spawnattr_setsigmask,
30004         posix_spawnattr_setflags, posix_spawnattr_destroy.
30005
30006 2009-01-25  Bruno Haible  <bruno@clisp.org>
30007
30008         * lib/glthread/threadlib.c: Include <stdlib.h>.
30009
30010 2009-01-25  Bruno Haible  <bruno@clisp.org>
30011
30012         * lib/glthread/threadlib.c (dummy): New declaration.
30013
30014 2009-01-25  Bruno Haible  <bruno@clisp.org>
30015
30016         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30017         multibyte characters also for the GB18030 encoding. Don't crash when
30018         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30019
30020 2009-01-25  Bruno Haible  <bruno@clisp.org>
30021
30022         Avoid redefining 'struct random_data' on OSF/1 5.1.
30023         * lib/stdlib.in.h: Include <random.h> if it exists.
30024         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30025         HAVE_RANDOM_H. Include <random.h> when testing whether
30026         'struct random_data' exists.
30027         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30028
30029 2009-01-25  Bruno Haible  <bruno@clisp.org>
30030
30031         Don't install charset.alias on MacOS X >= 10.3.
30032         * lib/localcharset.c (DARWIN7): New macro.
30033         (get_charset_aliases): Hardcode the result for Darwin7.
30034         * modules/localcharset (install-exec-local): Don't install
30035         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30036
30037 2009-01-25  Bruno Haible  <bruno@clisp.org>
30038
30039         Don't install charset.alias on mingw and Cygwin.
30040         * modules/localcharset (install-exec-local): Don't install
30041         charset.alias on mingw and Cygwin, if the file does not yet exist.
30042         The result for these platforms is hardcoded in localcharset.c.
30043
30044 2009-01-25  Bruno Haible  <bruno@clisp.org>
30045
30046         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30048         before requiring AC_USE_SYSTEM_EXTENSIONS.
30049
30050 2009-01-25  Jim Meyering  <meyering@redhat.com>
30051
30052         c-strtod: avoid warnings
30053         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30054         "assignment discards qualifiers from pointer target type" warnings.
30055
30056 2009-01-24  Bruno Haible  <bruno@clisp.org>
30057
30058         Add support for non-UTF-8 locales on MacOS X.
30059         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30060         canonical encodings. For Darwin 7 and newer, don't map traditional
30061         encodings to UTF-8.
30062         Reported by Vincent Lefevre <vincent@vinc17.org>
30063         at <http://savannah.gnu.org/bugs/?25235>.
30064
30065 2009-01-24  Bruno Haible  <bruno@clisp.org>
30066
30067         * doc/gnulib.texi (Obsolete modules): New section.
30068         Reported by Mike Frysinger <vapier@gentoo.org>.
30069
30070 2009-01-24  Bruno Haible  <bruno@clisp.org>
30071
30072         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30073         (%.dvi): New rule.
30074
30075 2009-01-24  Bruno Haible  <bruno@clisp.org>
30076
30077         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30078         Reported by Eric Blake.
30079
30080 2009-01-24  Bruno Haible  <bruno@clisp.org>
30081
30082         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30083         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30084         Reported by Gary V. Vaughan <gary@gnu.org>.
30085
30086 2009-01-24  Bruno Haible  <bruno@clisp.org>
30087
30088         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30089
30090 2009-01-23  Bruno Haible  <bruno@clisp.org>
30091
30092         Make c-strtod, c-strtold usable in libraries.
30093         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30094         (C_STRTOD): Call strdup instead of xstrdup.
30095         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30096         * modules/c-strtold (Depends-on): Likewise.
30097         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30098         * NEWS: Mention the change.
30099         Reported by Michael Gold <mgold@ncf.ca>.
30100
30101 2009-01-23  Jim Meyering  <meyering@redhat.com>
30102
30103         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30104         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30105         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30106
30107 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30108
30109         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30110         GNU CoreUtils.
30111         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30112         * modules/version-etc (Description): Update.
30113
30114 2009-01-22  Bruno Haible  <bruno@clisp.org>
30115
30116         Cache the C locale object.
30117         * lib/c-strtod.c (c_locale_cache): New variable.
30118         (c_locale): New function.
30119         (C_STRTOD): Use it, and don't call freelocale.
30120         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30121         Suggested by Paolo Bonzini.
30122
30123 2009-01-21  Bruno Haible  <bruno@clisp.org>
30124
30125         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30126         conditions other than overflow.
30127
30128 2009-01-21  Bruno Haible  <bruno@clisp.org>
30129
30130         * lib/c-strtod.c: Include errno.h.
30131         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30132         value from STRTOD_L and STRTOD.
30133
30134 2009-01-21  Bruno Haible  <bruno@clisp.org>
30135         and Jim Meyering  <meyering@redhat.com>
30136
30137         nanosleep: skip configure test (fail it) for apple universal builds
30138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30139         universal builds, assume that nanosleep does not work.
30140         * modules/nanosleep (Depends-on): Add multiarch.
30141
30142         mktime: skip configure test (fail it) for apple universal builds
30143         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30144         universal builds, assume that mktime does not work.
30145         * modules/mktime (Depends-on): Add multiarch.
30146
30147 2009-01-21  Eric Blake  <ebb9@byu.net>
30148
30149         multiarch: avoid expand-before-require warning
30150         * modules/multiarch (configure.ac): Require, rather than expand,
30151         gl_MULTIARCH.
30152         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30153         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30154         enforce that all clients require it.  Partial reversion of
30155         2008-12-29 patch.
30156
30157         error: avoid expand-before-require warning
30158         * modules/errno (configure.ac): Require, rather than expand,
30159         gl_HEADER_ERRNO_H.
30160         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30161         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30162         enforce that all clients require it.
30163
30164         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30165         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30166         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30167         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30168
30169 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30170
30171         Revert:
30172         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30173
30174         regex: do not depend on obsolete modules.
30175         * modules/regex: Remove memcmp and memmove.
30176
30177 2009-01-20  Bruno Haible  <bruno@clisp.org>
30178
30179         Make the 'link' module link on Windows NT 4.
30180         * lib/link.c (_WIN32_WINNT): Don't define.
30181         (CreateHardLinkFuncType): New type.
30182         (CreateHardLinkFunc, initialized): New variables.
30183         (initialize): New function.
30184         (link): Invoke CreateHardLink indirectly through the function pointer.
30185
30186 2009-01-20  Bruno Haible  <bruno@clisp.org>
30187
30188         Fix compilation failure on mingw.
30189         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30190
30191 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30192
30193         * doc/c-strtod.texi: Mention a couple of restrictions.
30194
30195 2009-01-20  Jim Meyering  <meyering@redhat.com>
30196
30197         gettimeofday: move more declarations out of functions
30198         * lib/gettimeofday.c: Move extern declarations of tzset and
30199         gmtime out of containing functions.  Prompted by Bruno Haible.
30200
30201 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30202
30203         regex: do not depend on obsolete modules.
30204         * modules/regex: Remove memcmp and memmove.
30205
30206 2009-01-19  Bruno Haible  <bruno@clisp.org>
30207
30208         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30209         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30210         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30211         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30212         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30213
30214 2009-01-19  Bruno Haible  <bruno@clisp.org>
30215
30216         * tests/test-link.c: Include <errno.h>.
30217         (main): Exit with code 77 when a hard link cannot be created due to
30218         the file system.
30219         * tests/test-link.sh: Skip test when a hard link cannot be created due
30220         to the file system.
30221         Suggested by Eric Blake.
30222
30223 2009-01-19  Martin Lambers  <marlam@marlam.de>
30224
30225         * modules/link-tests: New file.
30226         * tests/test-link.sh: New file.
30227         * tests/test-link.c: New file.
30228
30229 2009-01-19  Eric Blake  <ebb9@byu.net>
30230
30231         doc: mention another function added in cygwin 1.7.0
30232         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30233         Another new function in cygwin 1.7.
30234
30235 2009-01-19  Bruno Haible  <bruno@clisp.org>
30236
30237         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30238         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30239         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30240         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30241         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30242         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30243         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30244         * m4/md4.m4 (gl_MD4): Likewise.
30245         * m4/md5.m4 (gl_MD5): Likewise.
30246         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30247         * m4/sha1.m4 (gl_SHA1): Likewise.
30248         * m4/sha256.m4 (gl_SHA256): Likewise.
30249         * m4/sha512.m4 (gl_SHA512): Likewise.
30250
30251 2009-01-19  Bruno Haible  <bruno@clisp.org>
30252
30253         * modules/uniname/uniname-tests (Depends-on): Add progname.
30254         * tests/uniname/test-uninames.c: Include progname.h.
30255         (main): Call set_program_name.
30256
30257         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30258         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30259         (main): Call set_program_name.
30260
30261         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30262         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30263         (main): Call set_program_name.
30264
30265         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30266         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30267         (main): Call set_program_name.
30268
30269         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30270         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30271         (main): Call set_program_name.
30272
30273         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30274         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30275         (main): Call set_program_name.
30276
30277         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30278         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30279         (main): Call set_program_name.
30280
30281         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30282         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30283         (main): Call set_program_name.
30284
30285         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30286         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30287         (main): Call set_program_name.
30288
30289 2009-01-19  Eric Blake  <ebb9@byu.net>
30290
30291         test-unistd: test previous patch
30292         * tests/test-unistd.c: Test *_FILENO macros.
30293
30294         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30295         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30296         Guarantee a definition.
30297         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30298         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30299         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30300         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30301         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30302         Likewise.
30303         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30304         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30305         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30306         Likewise.
30307         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30308         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30309         (STDERR_FILENO): Likewise.
30310         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30311         (STDERR_FILENO): Likewise.
30312         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30313         (STDERR_FILENO): Likewise.
30314         Reported by Elbert Pol.
30315
30316 2009-01-19  Eric Blake  <ebb9@byu.net>
30317
30318         doc: mention more functions added in cygwin 1.7.0
30319         * doc/posix-functions/abort.texi (abort): Update wording related
30320         to cygwin.
30321         * doc/posix-functions/daylight.texi (daylight): Likewise.
30322         * doc/posix-functions/optarg.texi (optarg): Likewise.
30323         * doc/posix-functions/optarg.texi (opterr): Likewise.
30324         * doc/posix-functions/optarg.texi (optind): Likewise.
30325         * doc/posix-functions/optarg.texi (optopt): Likewise.
30326         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30327         worked in 1.5.x, and was withdrawn in 1.7.
30328         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30329         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30330         cygwin versions.
30331         * doc/posix-functions/perror.texi (perror): Likewise.
30332         * doc/posix-functions/printf.texi (printf): Likewise.
30333         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30334         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30335         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30336         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30337         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30338         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30339         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30340         Likewise.
30341         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30342         Likewise.
30343         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30344         this function.
30345         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30346         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30347         Likewise.
30348         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30349         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30350         * doc/posix-functions/confstr.texi (confstr): Likewise.
30351         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30352         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30353         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30354         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30355         * doc/posix-functions/fputws.texi (fputws): Likewise.
30356         * doc/posix-functions/fwide.texi (fwide): Likewise.
30357         * doc/posix-functions/getwc.texi (getwc): Likewise.
30358         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30359         * doc/posix-functions/putwc.texi (putwc): Likewise.
30360         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30361         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30362         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30363         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30364         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30365         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30366         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30367         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30368         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30369         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30370         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30371
30372 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30373
30374         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30375         * lib/ioctl.c: Include <sys/ioctl.h>.
30376
30377 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30378
30379         * modules/getdate-tests (Depends-on): Add progname.
30380         * tests/test-getdate.c: Use progname module, to avoid link errors
30381         on non-glibc systems.
30382
30383 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30384
30385         * modules/filenamecat-tests (Depends-on): Add progname.
30386         * modules/fstrcmp-tests (Depends-on): Likewise.
30387
30388         * tests/test-filenamecat.c: Use progname module, to avoid link
30389         errors on non-glibc systems.
30390         * tests/test-fstrcmp.c: Likewise.
30391
30392 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30393
30394         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30395         * lib/gettimeofday.c: Move extern declaration out of function.
30396
30397 2009-01-18  Bruno Haible  <bruno@clisp.org>
30398
30399         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30400         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30401         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30402
30403 2009-01-18  Bruno Haible  <bruno@clisp.org>
30404
30405         * lib/strftime.c (MEMPCPY): Remove unused macro.
30406         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30407
30408 2009-01-18  Martin Lambers  <marlam@marlam.de>
30409
30410         New module 'link'.
30411         * lib/unistd.in.h (link): New declaration.
30412         * lib/link.c: New file.
30413         * m4/link.m4: New file.
30414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30415         HAVE_LINK.
30416         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30417         * modules/link: New file.
30418         * doc/posix-functions/link.texi: Mention the new module.
30419
30420 2009-01-18  Bruno Haible  <bruno@clisp.org>
30421
30422         * tests/test-avltree_list.c (main): Call set_program_name.
30423         * tests/test-avltree_oset.c (main): Likewise.
30424         * tests/test-obstack-printf.c: Include progname.h.
30425         (main): Call set_program_name.
30426         * tests/test-quotearg.c: Include progname.h.
30427         (main): Call set_program_name.
30428         * tests/test-xmemdup0.c: Include progname.h.
30429         (main): Call set_program_name.
30430
30431 2009-01-18  Bruno Haible  <bruno@clisp.org>
30432
30433         New module 'alphasort'.
30434         * lib/dirent.in.h (alphasort): New declaration.
30435         * lib/alphasort.c: New file, from glibc with modifications.
30436         * m4/alphasort.m4: New file.
30437         * modules/alphasort: New file.
30438         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30439         HAVE_ALPHASORT.
30440         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30441         HAVE_ALPHASORT.
30442         * doc/posix-functions/alphasort.texi: Mention the new module and the
30443         portability problems.
30444
30445 2009-01-18  Bruno Haible  <bruno@clisp.org>
30446
30447         New module 'scandir'.
30448         * lib/dirent.in.h (scandir): New declaration.
30449         * lib/scandir.c: New file, from glibc with modifications.
30450         * m4/scandir.m4: New file.
30451         * modules/scandir: New file.
30452         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30453         HAVE_SCANDIR.
30454         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30455         HAVE_SCANDIR.
30456         * doc/posix-functions/scandir.texi: Mention the new module and the
30457         portability problems.
30458
30459 2009-01-17  Bruno Haible  <bruno@clisp.org>
30460
30461         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30462         Update documentation.
30463         (func_remove_suffix): Escape all dots in the suffix. Update
30464         documentation.
30465         (func_filter_filelist): Update documentation.
30466         Reported by Ralf Wildenhues.
30467
30468 2009-01-17  Bruno Haible  <bruno@clisp.org>
30469
30470         * modules/dprintf-posix-tests: New file.
30471         * tests/test-dprintf-posix.sh: New file.
30472         * tests/test-dprintf-posix.c: New file.
30473
30474         New modules 'dprintf', 'dprintf-posix'.
30475         * lib/stdio.in.h (dprintf): New declaration.
30476         * lib/dprintf.c: New file.
30477         * m4/dprintf.m4: New file.
30478         * m4/dprintf-posix.m4: New file.
30479         * modules/dprintf: New file.
30480         * modules/dprintf-posix: New file.
30481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30482         HAVE_DPRINTF, REPLACE_DPRINTF.
30483         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30484         HAVE_DPRINTF, REPLACE_DPRINTF.
30485         * doc/posix-functions/dprintf.texi: Mention the new modules.
30486
30487 2009-01-17  Bruno Haible  <bruno@clisp.org>
30488
30489         * modules/vdprintf-posix-tests: New file.
30490         * tests/test-vdprintf-posix.sh: New file.
30491         * tests/test-vdprintf-posix.c: New file.
30492
30493         New modules 'vdprintf', 'vdprintf-posix'.
30494         * lib/stdio.in.h (vdprintf): New declaration.
30495         * lib/vdprintf.c: New file.
30496         * m4/vdprintf.m4: New file.
30497         * m4/vdprintf-posix.m4: New file.
30498         * modules/vdprintf: New file.
30499         * modules/vdprintf-posix: New file.
30500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30501         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30502         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30503         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30504         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30505
30506 2009-01-17  Bruno Haible  <bruno@clisp.org>
30507
30508         Fix replacement of fopen on mingw.
30509         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30510         mingw.
30511
30512 2009-01-17  Bruno Haible  <bruno@clisp.org>
30513
30514         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30515         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30516
30517 2009-01-17  Bruno Haible  <bruno@clisp.org>
30518
30519         Avoid test-fflush2.sh failure on mingw.
30520         * tests/test-fflush2.c: Include binary-io.h.
30521         (main): Put standard input into binary mode.
30522         * modules/fflush-tests (Depends-on): Add binary-io.
30523
30524 2009-01-17  Bruno Haible  <bruno@clisp.org>
30525
30526         * lib/wchar.in.h: In another particular situation, include only the
30527         system's <wchar.h> file.
30528         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30529         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30530         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30531
30532 2009-01-17  Bruno Haible  <bruno@clisp.org>
30533
30534         Support for stripping executables in --enable-relocatable.
30535         * build-aux/install-reloc: Expect one more argument, or an environment
30536         variable RELOC_STRIP_PROG. If set, strip the destination program and
30537         its wrapper.
30538         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30539         RELOC_STRIP_PROG.
30540         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30541         to set RELOCATABLE_STRIP.
30542         * NEWS: Mention the new Makefile requirement.
30543
30544 2009-01-17  Bruno Haible  <bruno@clisp.org>
30545
30546         * build-aux/install-reloc: Remove debugging information left over by
30547         C compiler on MacOS X.
30548
30549 2009-01-17  Bruno Haible  <bruno@clisp.org>
30550
30551         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30552         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30553         _NSGetExecutablePath.
30554
30555 2009-01-16  Jim Meyering  <meyering@redhat.com>
30556
30557         strerror: avoid warnings about discarding "const"
30558         * lib/strerror.c (rpl_strerror): Instead of returning a const
30559         string from each and every "case", use a variable, and add a single
30560         cast after the switch.
30561
30562 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30563
30564         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30565
30566 2009-01-16  Bruno Haible  <bruno@clisp.org>
30567
30568         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30569         array initializer syntax that also works in C++ mode.
30570         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30571
30572 2009-01-16  Jim Meyering  <meyering@redhat.com>
30573
30574         poll: suppress a warning
30575         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30576         to ignore "...unsigned expression < 0 is always false" warnings.
30577
30578 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30579
30580         poll: remove declarations of unused variables
30581         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30582         sockbuf and optlen.
30583
30584 2009-01-15  Bruno Haible  <bruno@clisp.org>
30585
30586         Make fflush-after-ungetc POSIX compliant on BSD systems.
30587         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30588         (clear_ungetc_buffer): Implement also for other systems.
30589         (rpl_fflush): On glibc systems, invoke
30590         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30591         clear_ungetc_buffer after fetching the stream's position, not before.
30592
30593 2009-01-15  Bruno Haible  <bruno@clisp.org>
30594
30595         Make fflush-after-ungetc POSIX compliant on glibc systems.
30596         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30597         after ungetc.
30598         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30599         (rpl_fflush): On glibc systems, simply call the system's fflush
30600         function after clearing the ungetc buffer.
30601         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30602         Instead, lseek only to the end of file, then use the system's fseeko
30603         for the rest. On glibc systems, reset the EOF indicator bit.
30604
30605 2009-01-15  Jim Meyering  <meyering@redhat.com>
30606
30607         openmp.m4: revert quote-adding change, for portability to older autoconf
30608         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30609         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30610         Simon Josefsson noticed the problem when using autoconf-2.61.
30611
30612 2009-01-15  Bruno Haible  <bruno@clisp.org>
30613
30614         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30615         * tests/test-fflush2.c (ASSERT): Always fail.
30616         (main): Add two tests for fflush() after ungetc(), taking into account
30617         the Austin Group's clarification.
30618         Suggested by Eric Blake.
30619
30620 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30621
30622         mktime.m4: remove K&R-style function prototypes
30623         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30624         for the Sun C++ compiler.
30625
30626 2009-01-14  Bruno Haible  <bruno@clisp.org>
30627
30628         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30629         while including <wchar.h>.
30630         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30631         the system's <wchar.h> file.
30632         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30633
30634 2009-01-14  Bruno Haible  <bruno@clisp.org>
30635
30636         * m4/csharp.m4: Don't mention gettext on the serial number line.
30637         * m4/csharpexec.m4: Likewise.
30638         * m4/eaccess.m4: Likewise.
30639         * m4/javaexec.m4: Likewise.
30640         * m4/sig_atomic_t.m4: Likewise.
30641         * m4/tmpdir.m4: Likewise.
30642         * m4/intldir.m4: Bump gettext version.
30643         * m4/lib-ld.m4: Likewise.
30644
30645 2009-01-14  Bruno Haible  <bruno@clisp.org>
30646
30647         * lib/progname.c (set_program_name): Add more comments.
30648         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30649
30650 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30651
30652         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30653         were sys/stat.h does not define it.
30654
30655 2009-01-14  Jim Meyering  <meyering@redhat.com>
30656
30657         many *.m4 files: improve m4 quoting
30658         99% of this change was performed by running the following commands:
30659         git ls-files | grep '\.m4$' | xargs perl -pi \
30660           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30661           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30662           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30663           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30664         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30665         The remainder were to add Copyright dates, increment serial numbers,
30666         undo some changes in comments, exclude m4/intl.m4, and add quotes
30667         around the "1" in ",1" where the unusual spacing prohibited the
30668         above regexps from doing the job.  For more details, see
30669         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30670         * m4/acl.m4: Modified.
30671         * m4/afs.m4: Likewise.
30672         * m4/alloca.m4: Likewise.
30673         * m4/argp.m4: Likewise.
30674         * m4/argz.m4: Likewise.
30675         * m4/atexit.m4: Likewise.
30676         * m4/bison-i18n.m4: Likewise.
30677         * m4/bison.m4: Likewise.
30678         * m4/byteswap.m4: Likewise.
30679         * m4/c-stack.m4: Likewise.
30680         * m4/c-strtod.m4: Likewise.
30681         * m4/calloc.m4: Likewise.
30682         * m4/canonicalize-lgpl.m4: Likewise.
30683         * m4/chown.m4: Likewise.
30684         * m4/clock_time.m4: Likewise.
30685         * m4/codeset.m4: Likewise.
30686         * m4/copy-file.m4: Likewise.
30687         * m4/csharp.m4: Likewise.
30688         * m4/csharpcomp.m4: Likewise.
30689         * m4/csharpexec.m4: Likewise.
30690         * m4/d-ino.m4: Likewise.
30691         * m4/d-type.m4: Likewise.
30692         * m4/dirfd.m4: Likewise.
30693         * m4/double-slash-root.m4: Likewise.
30694         * m4/eaccess.m4: Likewise.
30695         * m4/eealloc.m4: Likewise.
30696         * m4/environ.m4: Likewise.
30697         * m4/errno_h.m4: Likewise.
30698         * m4/euidaccess.m4: Likewise.
30699         * m4/execute.m4: Likewise.
30700         * m4/fatal-signal.m4: Likewise.
30701         * m4/fchdir.m4: Likewise.
30702         * m4/fcntl_h.m4: Likewise.
30703         * m4/fileblocks.m4: Likewise.
30704         * m4/filenamecat.m4: Likewise.
30705         * m4/findprog.m4: Likewise.
30706         * m4/flexmember.m4: Likewise.
30707         * m4/fnmatch.m4: Likewise.
30708         * m4/fopen.m4: Likewise.
30709         * m4/fpending.m4: Likewise.
30710         * m4/fprintf-posix.m4: Likewise.
30711         * m4/free.m4: Likewise.
30712         * m4/frexp.m4: Likewise.
30713         * m4/frexpl.m4: Likewise.
30714         * m4/fsusage.m4: Likewise.
30715         * m4/ftruncate.m4: Likewise.
30716         * m4/gc-camellia.m4: Likewise.
30717         * m4/gc-random.m4: Likewise.
30718         * m4/gc.m4: Likewise.
30719         * m4/getaddrinfo.m4: Likewise.
30720         * m4/getcwd-abort-bug.m4: Likewise.
30721         * m4/getcwd-path-max.m4: Likewise.
30722         * m4/getdate.m4: Likewise.
30723         * m4/getdomainname.m4: Likewise.
30724         * m4/getgroups.m4: Likewise.
30725         * m4/gethostname.m4: Likewise.
30726         * m4/gethrxtime.m4: Likewise.
30727         * m4/getline.m4: Likewise.
30728         * m4/getloadavg.m4: Likewise.
30729         * m4/getndelim2.m4: Likewise.
30730         * m4/getpass.m4: Likewise.
30731         * m4/gettext.m4: Likewise.
30732         * m4/gettime.m4: Likewise.
30733         * m4/gettimeofday.m4: Likewise.
30734         * m4/gnulib-common.m4: Likewise.
30735         * m4/group-member.m4: Likewise.
30736         * m4/host-os.m4: Likewise.
30737         * m4/iconv.m4: Likewise.
30738         * m4/iconv_open.m4: Likewise.
30739         * m4/inet_ntop.m4: Likewise.
30740         * m4/inet_pton.m4: Likewise.
30741         * m4/inline.m4: Likewise.
30742         * m4/intldir.m4: Likewise.
30743         * m4/intlmacosx.m4: Likewise.
30744         * m4/intmax.m4: Likewise.
30745         * m4/intmax_t.m4: Likewise.
30746         * m4/inttypes.m4: Likewise.
30747         * m4/inttypes_h.m4: Likewise.
30748         * m4/inttypes-pri.m4: Likewise.
30749         * m4/isapipe.m4: Likewise.
30750         * m4/isnand.m4: Likewise.
30751         * m4/isnanf.m4: Likewise.
30752         * m4/isnanl.m4: Likewise.
30753         * m4/javacomp.m4: Likewise.
30754         * m4/javaexec.m4: Likewise.
30755         * m4/jm-winsz1.m4: Likewise.
30756         * m4/jm-winsz2.m4: Likewise.
30757         * m4/lchown.m4: Likewise.
30758         * m4/lcmessage.m4: Likewise.
30759         * m4/ldexpl.m4: Likewise.
30760         * m4/lib-ld.m4: Likewise.
30761         * m4/lib-link.m4: Likewise.
30762         * m4/libsigsegv.m4: Likewise.
30763         * m4/link-follow.m4: Likewise.
30764         * m4/localcharset.m4: Likewise.
30765         * m4/locale-fr.m4: Likewise.
30766         * m4/locale-ja.m4: Likewise.
30767         * m4/locale-tr.m4: Likewise.
30768         * m4/locale-zh.m4: Likewise.
30769         * m4/lock.m4: Likewise.
30770         * m4/longlong.m4: Likewise.
30771         * m4/ls-mntd-fs.m4: Likewise.
30772         * m4/lstat.m4: Likewise.
30773         * m4/malloc.m4: Likewise.
30774         * m4/mathl.m4: Likewise.
30775         * m4/mbrtowc.m4: Likewise.
30776         * m4/mbstate_t.m4: Likewise.
30777         * m4/mbswidth.m4: Likewise.
30778         * m4/memchr.m4: Likewise.
30779         * m4/memcmp.m4: Likewise.
30780         * m4/memcpy.m4: Likewise.
30781         * m4/memmem.m4: Likewise.
30782         * m4/memmove.m4: Likewise.
30783         * m4/mempcpy.m4: Likewise.
30784         * m4/memrchr.m4: Likewise.
30785         * m4/memset.m4: Likewise.
30786         * m4/minmax.m4: Likewise.
30787         * m4/mkdir-slash.m4: Likewise.
30788         * m4/mkdtemp.m4: Likewise.
30789         * m4/mktime.m4: Likewise.
30790         * m4/mmap-anon.m4: Likewise.
30791         * m4/mountlist.m4: Likewise.
30792         * m4/nanosleep.m4: Likewise.
30793         * m4/nls.m4: Likewise.
30794         * m4/nocrash.m4: Likewise.
30795         * m4/open.m4: Likewise.
30796         * m4/openat.m4: Likewise.
30797         * m4/openmp.m4: Likewise.
30798         * m4/pathmax.m4: Likewise.
30799         * m4/perl.m4: Likewise.
30800         * m4/physmem.m4: Likewise.
30801         * m4/pipe.m4: Likewise.
30802         * m4/po.m4: Likewise.
30803         * m4/poll.m4: Likewise.
30804         * m4/posixtm.m4: Likewise.
30805         * m4/posixver.m4: Likewise.
30806         * m4/printf-frexp.m4: Likewise.
30807         * m4/printf-frexpl.m4: Likewise.
30808         * m4/printf-posix.m4: Likewise.
30809         * m4/printf-posix-rpl.m4: Likewise.
30810         * m4/printf.m4: Likewise.
30811         * m4/progtest.m4: Likewise.
30812         * m4/putenv.m4: Likewise.
30813         * m4/readline.m4: Likewise.
30814         * m4/readlink.m4: Likewise.
30815         * m4/readutmp.m4: Likewise.
30816         * m4/realloc.m4: Likewise.
30817         * m4/regex.m4: Likewise.
30818         * m4/relocatable.m4: Likewise.
30819         * m4/relocatable-lib.m4: Likewise.
30820         * m4/rename-dest-slash.m4: Likewise.
30821         * m4/rename.m4: Likewise.
30822         * m4/rmdir-errno.m4: Likewise.
30823         * m4/rmdir.m4: Likewise.
30824         * m4/roundf.m4: Likewise.
30825         * m4/roundl.m4: Likewise.
30826         * m4/rpmatch.m4: Likewise.
30827         * m4/save-cwd.m4: Likewise.
30828         * m4/selinux-selinux-h.m4: Likewise.
30829         * m4/setenv.m4: Likewise.
30830         * m4/settime.m4: Likewise.
30831         * m4/sig2str.m4: Likewise.
30832         * m4/sig_atomic_t.m4: Likewise.
30833         * m4/signalblocking.m4: Likewise.
30834         * m4/signbit.m4: Likewise.
30835         * m4/sigpipe.m4: Likewise.
30836         * m4/sockets.m4: Likewise.
30837         * m4/sockpfaf.m4: Likewise.
30838         * m4/st_dm_mode.m4: Likewise.
30839         * m4/stat-time.m4: Likewise.
30840         * m4/stdbool.m4: Likewise.
30841         * m4/stdint.m4: Likewise.
30842         * m4/stdint_h.m4: Likewise.
30843         * m4/stpcpy.m4: Likewise.
30844         * m4/stpncpy.m4: Likewise.
30845         * m4/strcase.m4: Likewise.
30846         * m4/strchrnul.m4: Likewise.
30847         * m4/strcspn.m4: Likewise.
30848         * m4/strdup.m4: Likewise.
30849         * m4/strftime.m4: Likewise.
30850         * m4/strndup.m4: Likewise.
30851         * m4/strnlen.m4: Likewise.
30852         * m4/strpbrk.m4: Likewise.
30853         * m4/strptime.m4: Likewise.
30854         * m4/strsep.m4: Likewise.
30855         * m4/strtod.m4: Likewise.
30856         * m4/strtoimax.m4: Likewise.
30857         * m4/strtok_r.m4: Likewise.
30858         * m4/strtol.m4: Likewise.
30859         * m4/strtoll.m4: Likewise.
30860         * m4/strtoul.m4: Likewise.
30861         * m4/strtoull.m4: Likewise.
30862         * m4/strtoumax.m4: Likewise.
30863         * m4/strverscmp.m4: Likewise.
30864         * m4/threadlib.m4: Likewise.
30865         * m4/timegm.m4: Likewise.
30866         * m4/tm_gmtoff.m4: Likewise.
30867         * m4/tmpdir.m4: Likewise.
30868         * m4/tmpfile.m4: Likewise.
30869         * m4/tzset.m4: Likewise.
30870         * m4/uintmax_t.m4: Likewise.
30871         * m4/unlinkdir.m4: Likewise.
30872         * m4/unlocked-io.m4: Likewise.
30873         * m4/uptime.m4: Likewise.
30874         * m4/userspec.m4: Likewise.
30875         * m4/utimbuf.m4: Likewise.
30876         * m4/utime.m4: Likewise.
30877         * m4/utimes-null.m4: Likewise.
30878         * m4/utimes.m4: Likewise.
30879         * m4/vararrays.m4: Likewise.
30880         * m4/vasnprintf.m4: Likewise.
30881         * m4/vfprintf-posix.m4: Likewise.
30882         * m4/vprintf-posix.m4: Likewise.
30883         * m4/wait-process.m4: Likewise.
30884         * m4/wchar_t.m4: Likewise.
30885         * m4/wint_t.m4: Likewise.
30886         * m4/write-any-file.m4: Likewise.
30887         * m4/yield.m4: Likewise.
30888
30889 2009-01-13  Bruno Haible  <bruno@clisp.org>
30890
30891         Avoid test-copy-file.sh failures when ACL support insufficient.
30892         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30893         TESTS_ENVIRONMENT.
30894         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30895         Reported by Jim Meyering.
30896
30897 2009-01-13  Bruno Haible  <bruno@clisp.org>
30898
30899         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30900         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30901         * modules/unistdio/u8-printf-parse (Files): Likewise.
30902         * modules/unistdio/u32-printf-parse (Files): Likewise.
30903         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30904
30905 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30906
30907         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30908         and m4/inttypes_h.m4 too.
30909
30910 2009-01-12  Eric Blake  <ebb9@byu.net>
30911
30912         tests: IRIX 6.2 cc can't compile -0.0 into .data
30913         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30914         rather than at compile-time.
30915         * tests/test-floorl.c (minus_zero): Likewise.
30916         * tests/test-frexpl.c (minus_zero): Likewise.
30917         * tests/test-isnan.c (minus_zerol): Likewise.
30918         * tests/test-isnanl.h (minus_zero): Likewise.
30919         * tests/test-ldexpl.c (minus_zero): Likewise.
30920         * tests/test-roundl.c (minus_zero): Likewise.
30921         * tests/test-signbit.c (minus_zerol): Likewise.
30922         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30923         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30924         * tests/test-truncl.c (minus_zero): Likewise.
30925         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30926         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30927         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30928
30929 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30930
30931         regex: fix glibc bug 9697
30932         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30933         handling.
30934
30935 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30936
30937         regex: fix glibc bug 697
30938         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30939         being NULL also if there are no backreferences.
30940
30941 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30942
30943         regex: merge glibc changes
30944         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30945         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30946         re_string_skip_chars, re_string_reconstruct): Likewise.
30947         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30948
30949 2009-01-07  Jim Meyering  <meyering@redhat.com>
30950
30951         poll: filter through cppi
30952         * lib/poll.c: Indent cpp directives to reflect nesting.
30953
30954 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30955
30956         poll: don't return uninitialized
30957         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30958
30959 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30960
30961         avoid compile failure on AIX 6.1
30962         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30963         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30964
30965 2009-01-04  Jim Meyering  <meyering@redhat.com>
30966
30967         remove duplicate inclusion of <stdio.h>
30968         * tests/test-fprintf-posix.c: Likewise.
30969         * tests/test-printf-posix.c: Likewise.
30970         * tests/test-snprintf-posix.c: Likewise.
30971         * tests/test-sprintf-posix.c: Likewise.
30972         * tests/test-vasprintf-posix.c: Likewise.
30973         * tests/test-vfprintf-posix.c: Likewise.
30974         * tests/test-vprintf-posix.c: Likewise.
30975         * tests/test-vsnprintf-posix.c: Likewise.
30976         * tests/test-vsprintf-posix.c: Likewise.
30977
30978 2009-01-03  Jim Meyering  <meyering@redhat.com>
30979
30980         gnulib-tool: fix sed-based filtering
30981         * gnulib-tool (func_filter_filelist): Remove extra backslash
30982         in sed_fff_filter definition.
30983
30984 2009-01-02  Jim Meyering  <meyering@redhat.com>
30985
30986         strftime: avoid compilation failure on Solaris 2.6
30987         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30988         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30989         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30990         be available.  Reported by Tom G. Christensen.  Details in
30991         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30992
30993 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30994             Bruno Haible  <bruno@clisp.org>
30995
30996         Speed up gnulib-tool by doing more string processing through shell
30997         built-ins.
30998         * gnulib-tool (fast_func_append): New variable.
30999         (func_remove_prefix, func_remove_suffix): New functions.
31000         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31001         (func_filter_filelist): New function.
31002         (func_get_dependencies): Use func_remove_suffix instead of sed.
31003         (func_get_automake_snippet): Use func_filter_filelist instead of a
31004         subshell and sed invocation.
31005
31006 2009-01-01  Bruno Haible  <bruno@clisp.org>
31007
31008         Fix a security bug.
31009         * gnulib-tool (func_import, import, update): Don't allow the characters
31010         '"', '$', '`', '\' in macro arguments that become part of commands that
31011         are evaluated.
31012
31013 2009-01-01  Bruno Haible  <bruno@clisp.org>
31014
31015         * gnulib-tool (func_reset_sigpipe): Add more comments.
31016
31017 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31018
31019         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31020         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31021         already know the answer.
31022
31023 2009-01-01  Jim Meyering  <meyering@redhat.com>
31024
31025         * lib/version-etc.c (version_etc_va): Update copyright year.
31026
31027 2008-12-30  Bruno Haible  <bruno@clisp.org>
31028
31029         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31030         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31031         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31032
31033 2008-12-29  Eric Blake  <ebb9@byu.net>
31034
31035         multiarch: avoid autoconf AC_REQUIRE bug
31036         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31037         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31038         2.63 and older.
31039         Reported by Bruno Haible, and analyzed in
31040         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31041
31042 2008-12-29  Bruno Haible  <bruno@clisp.org>
31043
31044         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31045         files in subdirectories correctly.
31046         Reported by Ralf Wildenhues.
31047
31048 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31049
31050         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31051         rather than 'join FILE -', for Solaris join.
31052
31053 2008-12-29  Bruno Haible  <bruno@clisp.org>
31054
31055         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31056         quoting.
31057         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31058         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31059         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31060         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31061         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31062         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31063         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31064         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31065         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31066         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31067         * m4/nls.m4 (AM_NLS): Likewise.
31068         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31069         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31070         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31071         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31072         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31073         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31074         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31075         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31076         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31077         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31078         * m4/xsize.m4 (gl_XSIZE): Likewise.
31079         Suggested by Jim Meyering.
31080
31081 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31082
31083         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31084         * lib/parse-duration.c: use a switch instead of cascading if's.
31085
31086 2008-12-29  Eric Blake  <ebb9@byu.net>
31087
31088         wchar.h: supply WEOF on Irix 5.3
31089         * lib/wchar.in.h (wint_t): Also supply WEOF.
31090         * lib/wctype.in.h (wint_t): Likewise.
31091         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31092         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31093         Reported by Tom G. Christensen.
31094
31095 2008-12-26  Bruno Haible  <bruno@clisp.org>
31096
31097         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31098         i486, i586, i686.
31099
31100 2008-12-26  Bruno Haible  <bruno@clisp.org>
31101
31102         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31103
31104 2008-12-26  Bruno Haible  <bruno@clisp.org>
31105
31106         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31107         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31108         not __STDC_CONSTANT_MACROS.
31109         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31110
31111 2008-12-25  Bruno Haible  <bruno@clisp.org>
31112
31113         Add support for universal builds to vasnprintf.
31114         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31115         universal builds, guess no.
31116         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31117         * modules/vasprintf-posix (Depends-on): Likewise.
31118         * modules/fprintf-posix (Depends-on): Likewise.
31119         * modules/vfprintf-posix (Depends-on): Likewise.
31120         * modules/snprintf-posix (Depends-on): Likewise.
31121         * modules/vsnprintf-posix (Depends-on): Likewise.
31122         * modules/sprintf-posix (Depends-on): Likewise.
31123         * modules/vsprintf-posix (Depends-on): Likewise.
31124         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31125         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31126         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31127         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31128         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31129         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31130         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31131
31132         Add support for universal builds to <inttypes.h>.
31133         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31134         _SCNu64_PREFIX): In Apple
31135         universal builds, define directly, using _LP64.
31136         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31137         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31138         * modules/inttypes (Depends-on): Add multiarch.
31139         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31140
31141         Add support for universal builds to <stdint.h>.
31142         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31143         universal builds, define directly, using _LP64.
31144         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31145         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31146         and size_t.
31147         * modules/stdint (Depends-on): Add multiarch.
31148         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31149
31150         New module 'multiarch'.
31151         * modules/multiarch: New file.
31152         * m4/multiarch.m4: New file.
31153
31154 2008-12-25  Bruno Haible  <bruno@clisp.org>
31155
31156         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31157
31158 2008-12-25  Bruno Haible  <bruno@clisp.org>
31159
31160         * modules/btowc (License): Relicense under LGPLv2+.
31161         * modules/mbsinit (License): Likewise.
31162         * modules/mbrtowc (License): Likewise.
31163         * modules/wcrtomb (License): Likewise.
31164         * modules/streq (License): Likewise.
31165         Reported by David Lutterkort <lutter@redhat.com>.
31166
31167 2008-12-23  Bruno Haible  <bruno@clisp.org>
31168
31169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31170
31171 2008-12-23  Bruno Haible  <bruno@clisp.org>
31172
31173         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31175         GETADDRINFO_LIB, not in LIBS.
31176         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31177         * modules/canon-host (Link): Likewise.
31178         * NEWS: Mention the change.
31179         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31180         GETADDRINFO_LIB.
31181
31182 2008-12-22  Bruno Haible  <bruno@clisp.org>
31183
31184         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31185         * doc/posix-functions/iswalpha_l.texi: Likewise.
31186         * doc/posix-functions/iswblank_l.texi: Likewise.
31187         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31188         * doc/posix-functions/iswctype_l.texi: Likewise.
31189         * doc/posix-functions/iswdigit_l.texi: Likewise.
31190         * doc/posix-functions/iswgraph_l.texi: Likewise.
31191         * doc/posix-functions/iswlower_l.texi: Likewise.
31192         * doc/posix-functions/iswprint_l.texi: Likewise.
31193         * doc/posix-functions/iswpunct_l.texi: Likewise.
31194         * doc/posix-functions/iswspace_l.texi: Likewise.
31195         * doc/posix-functions/iswupper_l.texi: Likewise.
31196         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31197         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31198         * doc/posix-functions/open_wmemstream.texi: Likewise.
31199         * doc/posix-functions/swscanf.texi: Likewise.
31200         * doc/posix-functions/towctrans_l.texi: Likewise.
31201         * doc/posix-functions/towlower.texi: Likewise.
31202         * doc/posix-functions/towlower_l.texi: Likewise.
31203         * doc/posix-functions/towupper.texi: Likewise.
31204         * doc/posix-functions/towupper_l.texi: Likewise.
31205         * doc/posix-functions/vfwprintf.texi: Likewise.
31206         * doc/posix-functions/vfwscanf.texi: Likewise.
31207         * doc/posix-functions/vswscanf.texi: Likewise.
31208         * doc/posix-functions/vwprintf.texi: Likewise.
31209         * doc/posix-functions/vwscanf.texi: Likewise.
31210         * doc/posix-functions/wcpcpy.texi: Likewise.
31211         * doc/posix-functions/wcpncpy.texi: Likewise.
31212         * doc/posix-functions/wcscasecmp.texi: Likewise.
31213         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31214         * doc/posix-functions/wcscoll_l.texi: Likewise.
31215         * doc/posix-functions/wcsdup.texi: Likewise.
31216         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31217         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31218         * doc/posix-functions/wcsnlen.texi: Likewise.
31219         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31220         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31221         * doc/posix-functions/wctrans_l.texi: Likewise.
31222         * doc/posix-functions/wctype_l.texi: Likewise.
31223         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31224         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31225         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31226         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31227         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31228         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31229         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31230         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31231         * doc/glibc-functions/wcschrnul.texi: Likewise.
31232         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31233         * doc/glibc-functions/wcstod_l.texi: Likewise.
31234         * doc/glibc-functions/wcstof_l.texi: Likewise.
31235         * doc/glibc-functions/wcstol_l.texi: Likewise.
31236         * doc/glibc-functions/wcstold_l.texi: Likewise.
31237         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31238         * doc/glibc-functions/wcstoq.texi: Likewise.
31239         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31240         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31241         * doc/glibc-functions/wcstouq.texi: Likewise.
31242         * doc/glibc-functions/wmempcpy.texi: Likewise.
31243
31244 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31245             Eric Blake  <ebb9@byu.net>
31246             Paolo Bonzini  <bonzini@gnu.org>
31247             Bruno Haible  <bruno@clisp.org>
31248
31249         Make c-stack work on Haiku.
31250         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31251         (c_stack_action): Use SA_ONSTACK flag.
31252
31253 2008-12-22  Bruno Haible  <bruno@clisp.org>
31254
31255         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31256
31257 2008-12-22  Bruno Haible  <bruno@clisp.org>
31258
31259         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31260         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31261         being overridden.
31262         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31263         New macros.
31264         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31266         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31267         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31268
31269 2008-12-22  Bruno Haible  <bruno@clisp.org>
31270
31271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31272         from test code.
31273
31274 2008-12-22  Eric Blake  <ebb9@byu.net>
31275
31276         Avoid gcc warnings on cygwin.
31277         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31278         Avoid unused variable.
31279         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31280         Likewise.
31281
31282 2008-12-22  Bruno Haible  <bruno@clisp.org>
31283
31284         Remove HAVE_MBRTOWC conditionals.
31285         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31286         (mbscasecmp): Assume mbrtowc function.
31287         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31288         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31289         * lib/mbschr.c: Include mbuiter.h unconditionally.
31290         (mbschr): Assume mbrtowc function.
31291         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31292         (mbscspn): Assume mbrtowc function.
31293         * lib/mbslen.c: Include mbuiter.h unconditionally.
31294         (mbslen): Assume mbrtowc function.
31295         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31296         (mbsncasecmp): Assume mbrtowc function.
31297         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31298         (mbsnlen): Assume mbrtowc function.
31299         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31300         (mbspbrk): Assume mbrtowc function.
31301         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31302         (mbspcasecmp): Assume mbrtowc function.
31303         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31304         (mbsrchr): Assume mbrtowc function.
31305         * lib/mbssep.c: Include mbuiter.h unconditionally.
31306         (mbssep): Assume mbrtowc function.
31307         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31308         (mbsspn): Assume mbrtowc function.
31309         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31310         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31311         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31312         (mbstok_r): Assume mbrtowc function.
31313         * lib/propername.c: Include mbuiter.h unconditionally.
31314         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31315         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31316         (trim2): Assume mbrtowc function.
31317         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31318         (mbsnwidth): Assume mbrtowc function.
31319         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31320         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31321         fallback definitions.
31322         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31323
31324 2008-12-22  Bruno Haible  <bruno@clisp.org>
31325
31326         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31327
31328 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31329
31330         * modules/regex: Request emulations for the mb*/wc* functions we need.
31331         * m4/regex.m4: Don't look for those functions here.
31332         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31333
31334 2008-12-22  Bruno Haible  <bruno@clisp.org>
31335
31336         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31337
31338 2008-12-21  Bruno Haible  <bruno@clisp.org>
31339
31340         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31341         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31342         (Include): Remove conditionalization.
31343         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31344         (Include): Remove conditionalization.
31345         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31346         (Include): Remove conditionalization.
31347         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31348         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31349         * NEWS: Mention the change.
31350         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31351         via Sergey Poznyakoff <gray@gnu.org.ua>.
31352
31353 2008-12-21  Bruno Haible  <bruno@clisp.org>
31354
31355         * MODULES.html.sh (Extended multibyte and wide character utilities
31356         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31357         wcrtomb, wcsrtombs.
31358         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31359         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31360         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31361         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31362
31363 2008-12-21  Bruno Haible  <bruno@clisp.org>
31364
31365         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31366
31367 2008-12-21  Bruno Haible  <bruno@clisp.org>
31368
31369         * modules/wcsnrtombs-tests: New file.
31370         * tests/test-wcsnrtombs1.sh: New file.
31371         * tests/test-wcsnrtombs2.sh: New file.
31372         * tests/test-wcsnrtombs3.sh: New file.
31373         * tests/test-wcsnrtombs4.sh: New file.
31374         * tests/test-wcsnrtombs.c: New file.
31375
31376         New module 'wcsnrtombs'.
31377         * lib/wchar.in.h (wcsnrtombs): New declaration.
31378         * lib/wcsnrtombs.c: New file.
31379         * lib/wcsrtombs-state.c: New file.
31380         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31381         (internal_state): Remove variable.
31382         * m4/wcsnrtombs.m4: New file.
31383         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31384         compilation units.
31385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31386         HAVE_WCSNRTOMBS.
31387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31388         HAVE_WCSNRTOMBS.
31389         * modules/wcsnrtombs: New file.
31390         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31391         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31392
31393 2008-12-21  Bruno Haible  <bruno@clisp.org>
31394
31395         * modules/wcsrtombs-tests: New file.
31396         * tests/test-wcsrtombs1.sh: New file.
31397         * tests/test-wcsrtombs2.sh: New file.
31398         * tests/test-wcsrtombs3.sh: New file.
31399         * tests/test-wcsrtombs4.sh: New file.
31400         * tests/test-wcsrtombs.c: New file.
31401
31402         New module 'wcsrtombs'.
31403         * lib/wchar.in.h (wcsrtombs): New declaration.
31404         * lib/wcsrtombs.c: New file.
31405         * m4/wcsrtombs.m4: New file.
31406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31407         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31409         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31410         * modules/wcsrtombs: New file.
31411         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31412         bugs.
31413
31414 2008-12-21  Bruno Haible  <bruno@clisp.org>
31415
31416         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31417         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31418         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31419         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31420         if not correct.
31421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31422         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31423         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31424         m4/locale-zh.m4, m4/codeset.m4.
31425         * doc/posix-functions/wcrtomb.texi: Document the bug.
31426
31427 2008-12-21  Bruno Haible  <bruno@clisp.org>
31428
31429         Work around a btowc() bug on IRIX 6.5.
31430         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31431         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31432         REPLACE_WTOBC if not.
31433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31434         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31435         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31436
31437 2008-12-21  Bruno Haible  <bruno@clisp.org>
31438
31439         * modules/wcrtomb-tests: New file.
31440         * tests/test-wcrtomb.sh: New file.
31441         * tests/test-wcrtomb.c: New file.
31442
31443         New module 'wcrtomb'.
31444         * lib/wchar.in.h (wcrtomb): New declaration.
31445         * lib/wcrtomb.c: New file.
31446         * m4/wcrtomb.m4: New file.
31447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31448         HAVE_WCRTOMB.
31449         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31450         HAVE_WCRTOMB.
31451         * modules/wcrtomb: New file.
31452         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31453
31454 2008-12-21  Bruno Haible  <bruno@clisp.org>
31455
31456         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31457         * modules/mbsrtowcs (Files): Likewise.
31458         * modules/wctob (Files): Likewise.
31459         * modules/c-strcase-tests (Files): Likewise.
31460         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31461         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31462         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31463         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31464         * modules/vasnprintf-posix-tests (Files): Likewise.
31465
31466 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31467
31468         gitlog-to-changelog: pass all command-line arguments to git-log
31469         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31470         it is sometimes convenient to filter the commits in various ways.
31471         gitlog-to-changelog only allows --since to specify a start date,
31472         but git-log itself supports many other filtering mechanisms.
31473         At the moment, I want to filter by branch name.  Rather than
31474         adding a --branch option to gitlog-to-changelog, it seems more
31475         flexible to simply pass all options directly to git-log and let
31476         git do the work.  Notice that this effectively makes --since a
31477         redundant option for gitlog-to-changelog, but removing it would
31478         require current usage to change since calls would then require
31479         an additional '--'.
31480
31481 2008-12-21  Bruno Haible  <bruno@clisp.org>
31482
31483         * modules/mbsnrtowcs-tests: New file.
31484         * tests/test-mbsnrtowcs1.sh: New file.
31485         * tests/test-mbsnrtowcs2.sh: New file.
31486         * tests/test-mbsnrtowcs3.sh: New file.
31487         * tests/test-mbsnrtowcs4.sh: New file.
31488         * tests/test-mbsnrtowcs.c: New file.
31489
31490         New module 'mbsnrtowcs'.
31491         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31492         * lib/mbsnrtowcs.c: New file.
31493         * lib/mbsrtowcs-state.c: New file.
31494         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31495         (internal_state): Remove variable.
31496         * m4/mbsnrtowcs.m4: New file.
31497         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31498         compilation units.
31499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31500         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31501         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31502         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31503         * modules/mbsnrtowcs: New file.
31504         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31505         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31506         portability problem.
31507
31508 2008-12-21  Bruno Haible  <bruno@clisp.org>
31509
31510         Work around mbsrtowcs bug.
31511         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31512         (gl_FUNC_MBSRTOWCS): Invoke it.
31513         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31514         m4/locale-zh.m4.
31515         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31516
31517 2008-12-21  Bruno Haible  <bruno@clisp.org>
31518
31519         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31520
31521 2008-12-21  Bruno Haible  <bruno@clisp.org>
31522
31523         Update doc for AIX.
31524         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31525         16-bit wchar_t type.
31526         * doc/posix-functions/btowc.texi: Likewise.
31527         * doc/posix-functions/fgetwc.texi: Likewise.
31528         * doc/posix-functions/fgetws.texi: Likewise.
31529         * doc/posix-functions/fputwc.texi: Likewise.
31530         * doc/posix-functions/fputws.texi: Likewise.
31531         * doc/posix-functions/fwide.texi: Likewise.
31532         * doc/posix-functions/fwprintf.texi: Likewise.
31533         * doc/posix-functions/fwscanf.texi: Likewise.
31534         * doc/posix-functions/getwchar.texi: Likewise.
31535         * doc/posix-functions/getwc.texi: Likewise.
31536         * doc/posix-functions/iswalnum.texi: Likewise.
31537         * doc/posix-functions/iswalpha.texi: Likewise.
31538         * doc/posix-functions/iswblank.texi: Likewise.
31539         * doc/posix-functions/iswcntrl.texi: Likewise.
31540         * doc/posix-functions/iswctype.texi: Likewise.
31541         * doc/posix-functions/iswdigit.texi: Likewise.
31542         * doc/posix-functions/iswgraph.texi: Likewise.
31543         * doc/posix-functions/iswlower.texi: Likewise.
31544         * doc/posix-functions/iswprint.texi: Likewise.
31545         * doc/posix-functions/iswpunct.texi: Likewise.
31546         * doc/posix-functions/iswspace.texi: Likewise.
31547         * doc/posix-functions/iswupper.texi: Likewise.
31548         * doc/posix-functions/iswxdigit.texi: Likewise.
31549         * doc/posix-functions/mbrtowc.texi: Likewise.
31550         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31551         * doc/posix-functions/mbstowcs.texi: Likewise.
31552         * doc/posix-functions/mbtowc.texi: Likewise.
31553         * doc/posix-functions/putwchar.texi: Likewise.
31554         * doc/posix-functions/putwc.texi: Likewise.
31555         * doc/posix-functions/swprintf.texi: Likewise.
31556         * doc/posix-functions/tolower.texi: Likewise.
31557         * doc/posix-functions/toupper.texi: Likewise.
31558         * doc/posix-functions/towctrans.texi: Likewise.
31559         * doc/posix-functions/ungetwc.texi: Likewise.
31560         * doc/posix-functions/vswprintf.texi: Likewise.
31561         * doc/posix-functions/wcrtomb.texi: Likewise.
31562         * doc/posix-functions/wcscat.texi: Likewise.
31563         * doc/posix-functions/wcschr.texi: Likewise.
31564         * doc/posix-functions/wcscmp.texi: Likewise.
31565         * doc/posix-functions/wcscoll.texi: Likewise.
31566         * doc/posix-functions/wcscpy.texi: Likewise.
31567         * doc/posix-functions/wcscspn.texi: Likewise.
31568         * doc/posix-functions/wcsftime.texi: Likewise.
31569         * doc/posix-functions/wcslen.texi: Likewise.
31570         * doc/posix-functions/wcsncat.texi: Likewise.
31571         * doc/posix-functions/wcsncmp.texi: Likewise.
31572         * doc/posix-functions/wcsncpy.texi: Likewise.
31573         * doc/posix-functions/wcspbrk.texi: Likewise.
31574         * doc/posix-functions/wcsrchr.texi: Likewise.
31575         * doc/posix-functions/wcsrtombs.texi: Likewise.
31576         * doc/posix-functions/wcsspn.texi: Likewise.
31577         * doc/posix-functions/wcsstr.texi: Likewise.
31578         * doc/posix-functions/wcstod.texi: Likewise.
31579         * doc/posix-functions/wcstof.texi: Likewise.
31580         * doc/posix-functions/wcstoimax.texi: Likewise.
31581         * doc/posix-functions/wcstok.texi: Likewise.
31582         * doc/posix-functions/wcstold.texi: Likewise.
31583         * doc/posix-functions/wcstoll.texi: Likewise.
31584         * doc/posix-functions/wcstol.texi: Likewise.
31585         * doc/posix-functions/wcstombs.texi: Likewise.
31586         * doc/posix-functions/wcstoull.texi: Likewise.
31587         * doc/posix-functions/wcstoul.texi: Likewise.
31588         * doc/posix-functions/wcstoumax.texi: Likewise.
31589         * doc/posix-functions/wcswidth.texi: Likewise.
31590         * doc/posix-functions/wcsxfrm.texi: Likewise.
31591         * doc/posix-functions/wctob.texi: Likewise.
31592         * doc/posix-functions/wctomb.texi: Likewise.
31593         * doc/posix-functions/wctrans.texi: Likewise.
31594         * doc/posix-functions/wctype.texi: Likewise.
31595         * doc/posix-functions/wcwidth.texi: Likewise.
31596         * doc/posix-functions/wmemchr.texi: Likewise.
31597         * doc/posix-functions/wmemcmp.texi: Likewise.
31598         * doc/posix-functions/wmemcpy.texi: Likewise.
31599         * doc/posix-functions/wmemmove.texi: Likewise.
31600         * doc/posix-functions/wmemset.texi: Likewise.
31601         * doc/posix-functions/wprintf.texi: Likewise.
31602         * doc/posix-functions/wscanf.texi: Likewise.
31603
31604 2008-12-21  Bruno Haible  <bruno@clisp.org>
31605
31606         Update doc for HP-UX 11.11.
31607         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31608         in HP-UX version 11.00, not in all versions of HP-UX 11.
31609         * doc/posix-functions/fwide.texi: Likewise.
31610         * doc/posix-functions/fwprintf.texi: Likewise.
31611         * doc/posix-functions/fwscanf.texi: Likewise.
31612         * doc/posix-functions/inet_ntop.texi: Likewise.
31613         * doc/posix-functions/inet_pton.texi: Likewise.
31614         * doc/posix-functions/mbrlen.texi: Likewise.
31615         * doc/posix-functions/mbrtowc.texi: Likewise.
31616         * doc/posix-functions/mbsinit.texi: Likewise.
31617         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31618         * doc/posix-functions/swprintf.texi: Likewise.
31619         * doc/posix-functions/swscanf.texi: Likewise.
31620         * doc/posix-functions/towctrans.texi: Likewise.
31621         * doc/posix-functions/vfwprintf.texi: Likewise.
31622         * doc/posix-functions/vswprintf.texi: Likewise.
31623         * doc/posix-functions/vwprintf.texi: Likewise.
31624         * doc/posix-functions/wcrtomb.texi: Likewise.
31625         * doc/posix-functions/wcsrtombs.texi: Likewise.
31626         * doc/posix-functions/wcsstr.texi: Likewise.
31627         * doc/posix-functions/wctob.texi: Likewise.
31628         * doc/posix-functions/wctrans.texi: Likewise.
31629         * doc/posix-functions/wmemchr.texi: Likewise.
31630         * doc/posix-functions/wmemcmp.texi: Likewise.
31631         * doc/posix-functions/wmemcpy.texi: Likewise.
31632         * doc/posix-functions/wmemmove.texi: Likewise.
31633         * doc/posix-functions/wmemset.texi: Likewise.
31634         * doc/posix-functions/wprintf.texi: Likewise.
31635         * doc/posix-functions/wscanf.texi: Likewise.
31636
31637 2008-12-21  Bruno Haible  <bruno@clisp.org>
31638
31639         Work around a portability problem.
31640         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31641         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31642
31643 2008-12-20  Bruno Haible  <bruno@clisp.org>
31644
31645         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31646         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31647         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31649         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31650
31651         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31652         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31653         set.
31654         (GNULIB_defined_mbstate_t): New macro.
31655         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31656         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31657         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31658         reuses the system's mbrtowc function but works around the bugs.
31659         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31660         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31661         macros.
31662         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31663         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31664         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31665         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31666         REPLACE_MBSINIT if mbsinit needs to be overridden.
31667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31668         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31669         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31670         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31671         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31672         m4/locale-zh.m4.
31673         (Depends): Add mbsinit.
31674         * modules/mbsinit (Depends): Add mbrtowc.
31675         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31676
31677 2008-12-20  Bruno Haible  <bruno@clisp.org>
31678
31679         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31680         so that there are no conversion errors on AIX.
31681         * tests/test-mbsrtowcs.c (main): LIkewise.
31682
31683 2008-12-20  Bruno Haible  <bruno@clisp.org>
31684
31685         Work around wctob bug on Solaris <= 9.
31686         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31687         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31689         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31690         * modules/wctob (Files): Add m4/locale-fr.m4.
31691         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31692
31693 2008-12-20  Bruno Haible  <bruno@clisp.org>
31694
31695         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31696         /dev/null.
31697         * tests/test-select-in.sh: Likewise.
31698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31699
31700 2008-12-20  Bruno Haible  <bruno@clisp.org>
31701
31702         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31703         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31704         Cygwin 1.5.x.
31705
31706 2008-12-20  Bruno Haible  <bruno@clisp.org>
31707
31708         Ensure mbstate_t is defined on HP-UX 11.11.
31709         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31710         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31711         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31712         AC_USE_SYSTEM_EXTENSIONS.
31713         * modules/fnmatch (Depends-on): Add extensions.
31714         * modules/mbrlen (Depends-on): Likewise.
31715         * modules/mbrtowc (Depends-on): Likewise.
31716         * modules/mbsinit (Depends-on): Likewise.
31717         * modules/mbsrtowcs (Depends-on): Likewise.
31718         * modules/mbswidth (Depends-on): Likewise.
31719         * modules/quotearg (Depends-on): Likewise.
31720         * modules/strftime (Depends-on): Likewise.
31721
31722 2008-12-20  Bruno Haible  <bruno@clisp.org>
31723
31724         Ensure wctob is declared on IRIX 6.5.
31725         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31726         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31727         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31729         of HAVE_WCTOB.
31730         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31731         HAVE_WCTOB.
31732         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31733
31734 2008-12-19  Bruno Haible  <bruno@clisp.org>
31735
31736         * modules/mbsrtowcs-tests: New file.
31737         * tests/test-mbsrtowcs1.sh: New file.
31738         * tests/test-mbsrtowcs2.sh: New file.
31739         * tests/test-mbsrtowcs3.sh: New file.
31740         * tests/test-mbsrtowcs4.sh: New file.
31741         * tests/test-mbsrtowcs.c: New file.
31742
31743         New module 'mbsrtowcs'.
31744         * lib/wchar.in.h (mbsrtowcs): New declaration.
31745         * lib/mbsrtowcs.c: New file.
31746         * m4/mbsrtowcs.m4: New file.
31747         * modules/mbsrtowcs: New file.
31748         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31749         HAVE_MBSRTOWCS.
31750         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31751         HAVE_MBSRTOWCS.
31752         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31753
31754 2008-12-19  Bruno Haible  <bruno@clisp.org>
31755
31756         New module 'mbrlen'.
31757         * lib/wchar.in.h (mbrlen): New declaration.
31758         * lib/mbrlen.c: New file.
31759         * m4/mbrlen.m4: New file.
31760         * modules/mbrlen: New file.
31761         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31762         HAVE_MBRLEN.
31763         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31764         HAVE_MBRLEN.
31765         * doc/posix-functions/mbrlen.texi: Document the new module.
31766
31767 2008-12-19  Bruno Haible  <bruno@clisp.org>
31768
31769         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31770         * modules/mbrtowc (Depends-on): Add verify.
31771         Suggested by Paul Eggert.
31772
31773 2008-12-18  Bruno Haible  <bruno@clisp.org>
31774
31775         * modules/mbsinit-tests: New file.
31776         * tests/test-mbsinit.sh: New file.
31777         * tests/test-mbsinit.c: New file.
31778
31779 2008-12-18  Bruno Haible  <bruno@clisp.org>
31780
31781         * modules/mbrtowc-tests: New file.
31782         * tests/test-mbrtowc1.sh: New file.
31783         * tests/test-mbrtowc2.sh: New file.
31784         * tests/test-mbrtowc3.sh: New file.
31785         * tests/test-mbrtowc4.sh: New file.
31786         * tests/test-mbrtowc.c: New file.
31787
31788         New module 'mbrtowc'.
31789         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31790         mbsinit and mbrtowc.
31791         (mbrtowc): New declaration.
31792         * lib/mbrtowc.c: New file.
31793         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31794         * modules/mbrtowc: New file.
31795         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31796         HAVE_MBRTOWC.
31797         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31798         HAVE_MBRTOWC.
31799         * doc/posix-functions/mbrtowc.texi: Document the new module.
31800
31801 2008-12-18  Bruno Haible  <bruno@clisp.org>
31802
31803         New module 'wctob'.
31804         * lib/wchar.in.h (wctob): New declaration.
31805         * lib/wctob.c: New file.
31806         * m4/wctob.m4: New file.
31807         * modules/wctob: New file.
31808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31809         HAVE_WCTOB.
31810         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31811         * doc/posix-functions/wctob.texi: Document the new module.
31812
31813 2008-12-18  Bruno Haible  <bruno@clisp.org>
31814
31815         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31816         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31817
31818 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31819
31820         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31821         G. Christensen" <tgc@jupiterrise.com>.
31822
31823         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31824         G. Christensen" <tgc@jupiterrise.com>.
31825
31826         * lib/flock.c: Need to include string.h.  Reported by "Tom
31827         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31828         <ebb9@byu.net>.
31829
31830 2008-12-18  Bruno Haible  <bruno@clisp.org>
31831
31832         * m4/locale-ja.m4: New file, from GNU gettext.
31833
31834 2008-12-17  Bruno Haible  <bruno@clisp.org>
31835
31836         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31837         Suggested by Eric Blake.
31838
31839 2008-12-17  Bruno Haible  <bruno@clisp.org>
31840
31841         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31842
31843 2008-12-17  Bruno Haible  <bruno@clisp.org>
31844
31845         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31846         * modules/mbsinit (Depends-on): Add verify.
31847         Suggested by Paul Eggert.
31848
31849 2008-12-17  Bruno Haible  <bruno@clisp.org>
31850
31851         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31852         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31853         gl_FUNC_MBRTOWC.
31854         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31855         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31856         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31857         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31858         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31859         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31860         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31861         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31862         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31863         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31864         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31865         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31866         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31867         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31868         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31869         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31870         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31871         * modules/trim (configure.ac): Likewise.
31872
31873 2008-12-17  Bruno Haible  <bruno@clisp.org>
31874
31875         * modules/btowc-tests: New file.
31876         * tests/test-btowc1.sh: New file.
31877         * tests/test-btowc2.sh: New file.
31878         * tests/test-btowc.c: New file.
31879
31880         New module 'btowc'.
31881         * lib/wchar.in.h (btowc): New declaration.
31882         * lib/btowc.c: New file.
31883         * m4/btowc.m4: New file.
31884         * modules/btowc: New file.
31885         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31886         HAVE_BTOWC.
31887         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31888         * doc/posix-functions/btowc.texi: Document the new module.
31889
31890 2008-12-17  Bruno Haible  <bruno@clisp.org>
31891
31892         New module 'mbsinit'.
31893         * lib/wchar.in.h (mbsinit): New declaration.
31894         * lib/mbsinit.c: New file.
31895         * m4/mbsinit.m4: New file.
31896         * modules/mbsinit: New file.
31897         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31898         HAVE_MBSINIT.
31899         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31900         HAVE_MBSINIT.
31901         * doc/posix-functions/mbsinit.texi: Document the new module.
31902
31903 2008-12-16  Bruno Haible  <bruno@clisp.org>
31904
31905         * lib/unistd.in.h: Add comment.
31906         * tests/test-environ.c: Don't include <stdlib.h>.
31907
31908 2008-12-16  Bruno Haible  <bruno@clisp.org>
31909
31910         * lib/parse-duration.h (parse_duration): Document return value
31911         convention.
31912         * lib/parse-duration.c: Include specification header first. Add
31913         comments.
31914         (_): Remove macro.
31915         (parse_year_month_day, parse_hour_minute_second): Move side effects
31916         outside of strchr call.
31917         (parse_non_iso8601): Move side effects outside of isspace call.
31918         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31919         call.
31920
31921 2008-12-16  Bruno Haible  <bruno@clisp.org>
31922
31923         * tests/test-parse-duration.sh: Produce no output when the test
31924         succeeds.
31925
31926 2008-12-16  Bruno Haible  <bruno@clisp.org>
31927
31928         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31929         expressions.
31930
31931 2008-12-15  Bruno Haible  <bruno@clisp.org>
31932
31933         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31934         * doc/glibc-functions/flistxattr.texi: Likewise.
31935         * doc/glibc-functions/fopencookie.texi: Likewise.
31936         * doc/glibc-functions/fremovexattr.texi: Likewise.
31937         * doc/glibc-functions/fsetxattr.texi: Likewise.
31938         * doc/glibc-functions/getxattr.texi: Likewise.
31939         * doc/glibc-functions/lgetxattr.texi: Likewise.
31940         * doc/glibc-functions/listxattr.texi: Likewise.
31941         * doc/glibc-functions/llistxattr.texi: Likewise.
31942         * doc/glibc-functions/lremovexattr.texi: Likewise.
31943         * doc/glibc-functions/lsetxattr.texi: Likewise.
31944         * doc/glibc-functions/removexattr.texi: Likewise.
31945         * doc/glibc-functions/setxattr.texi: Likewise.
31946         * doc/posix-functions/open_memstream.texi: Likewise.
31947
31948 2008-12-15  Eric Blake  <ebb9@byu.net>
31949
31950         Update doc for cygwin 1.7.
31951         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31952         functions.
31953         * doc/posix-functions/fchmodat.texi: Likewise.
31954         * doc/posix-functions/fchownat.texi: Likewise.
31955         * doc/posix-functions/fdopendir.texi: Likewise.
31956         * doc/posix-functions/fmemopen.texi: Likewise.
31957         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31958         * doc/posix-functions/fstatat.texi: Likewise.
31959         * doc/posix-functions/futimens.texi: Likewise.
31960         * doc/posix-functions/gai_strerror.texi: Likewise.
31961         * doc/posix-functions/getaddrinfo.texi: Likewise.
31962         * doc/posix-functions/getnameinfo.texi: Likewise.
31963         * doc/posix-functions/if_freenameindex.texi: Likewise.
31964         * doc/posix-functions/if_indextoname.texi: Likewise.
31965         * doc/posix-functions/if_nameindex.texi: Likewise.
31966         * doc/posix-functions/if_nametoindex.texi: Likewise.
31967         * doc/posix-functions/insque.texi: Likewise.
31968         * doc/posix-functions/linkat.texi: Likewise.
31969         * doc/posix-functions/llrint.texi: Likewise.
31970         * doc/posix-functions/llrintf.texi: Likewise.
31971         * doc/posix-functions/llrintl.texi: Likewise.
31972         * doc/posix-functions/lockf.texi: Likewise.
31973         * doc/posix-functions/lrintl.texi: Likewise.
31974         * doc/posix-functions/mkdirat.texi: Likewise.
31975         * doc/posix-functions/mkfifoat.texi: Likewise.
31976         * doc/posix-functions/mknodat.texi: Likewise.
31977         * doc/posix-functions/mq_close.texi: Likewise.
31978         * doc/posix-functions/mq_getattr.texi: Likewise.
31979         * doc/posix-functions/mq_notify.texi: Likewise.
31980         * doc/posix-functions/mq_open.texi: Likewise.
31981         * doc/posix-functions/mq_receive.texi: Likewise.
31982         * doc/posix-functions/mq_send.texi: Likewise.
31983         * doc/posix-functions/mq_setattr.texi: Likewise.
31984         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31985         * doc/posix-functions/mq_timedsend.texi: Likewise.
31986         * doc/posix-functions/mq_unlink.texi: Likewise.
31987         * doc/posix-functions/open_memstream.texi: Likewise.
31988         * doc/posix-functions/openat.texi: Likewise.
31989         * doc/posix-functions/posix_fadvise.texi: Likewise.
31990         * doc/posix-functions/posix_fallocate.texi: Likewise.
31991         * doc/posix-functions/posix_madvise.texi: Likewise.
31992         * doc/posix-functions/posix_memalign.texi: Likewise.
31993         * doc/posix-functions/posix_openpt.texi: Likewise.
31994         * doc/posix-functions/readlinkat.texi: Likewise.
31995         * doc/posix-functions/remque.texi: Likewise.
31996         * doc/posix-functions/renameat.texi: Likewise.
31997         * doc/posix-functions/rintl.texi: Likewise.
31998         * doc/posix-functions/sem_unlink.texi: Likewise.
31999         * doc/posix-functions/shm_open.texi: Likewise.
32000         * doc/posix-functions/shm_unlink.texi: Likewise.
32001         * doc/posix-functions/signgam.texi: Likewise.
32002         * doc/posix-functions/sigset.texi: Likewise.
32003         * doc/posix-functions/stpcpy.texi: Likewise.
32004         * doc/posix-functions/stpncpy.texi: Likewise.
32005         * doc/posix-functions/strerror.texi: Likewise.
32006         * doc/posix-functions/strtod.texi: Likewise.
32007         * doc/posix-functions/symlinkat.texi: Likewise.
32008         * doc/posix-functions/unlinkat.texi: Likewise.
32009         * doc/posix-functions/utimensat.texi: Likewise.
32010         * doc/glibc-functions/bindresvport.texi: Likewise.
32011         * doc/glibc-functions/dn_expand.texi: Likewise.
32012         * doc/glibc-functions/exp10.texi: Likewise.
32013         * doc/glibc-functions/exp10f.texi: Likewise.
32014         * doc/glibc-functions/fgetxattr.texi: Likewise.
32015         * doc/glibc-functions/flistxattr.texi: Likewise.
32016         * doc/glibc-functions/fopencookie.texi: Likewise.
32017         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32018         * doc/glibc-functions/fremovexattr.texi: Likewise.
32019         * doc/glibc-functions/fsetxattr.texi: Likewise.
32020         * doc/glibc-functions/getifaddrs.texi: Likewise.
32021         * doc/glibc-functions/getxattr.texi: Likewise.
32022         * doc/glibc-functions/lgetxattr.texi: Likewise.
32023         * doc/glibc-functions/listxattr.texi: Likewise.
32024         * doc/glibc-functions/llistxattr.texi: Likewise.
32025         * doc/glibc-functions/lremovexattr.texi: Likewise.
32026         * doc/glibc-functions/lsetxattr.texi: Likewise.
32027         * doc/glibc-functions/pow10.texi: Likewise.
32028         * doc/glibc-functions/pow10f.texi: Likewise.
32029         * doc/glibc-functions/rcmd_af.texi: Likewise.
32030         * doc/glibc-functions/removexattr.texi: Likewise.
32031         * doc/glibc-functions/res_init.texi: Likewise.
32032         * doc/glibc-functions/res_mkquery.texi: Likewise.
32033         * doc/glibc-functions/res_query.texi: Likewise.
32034         * doc/glibc-functions/res_querydomain.texi: Likewise.
32035         * doc/glibc-functions/res_send.texi: Likewise.
32036         * doc/glibc-functions/rresvport_af.texi: Likewise.
32037         * doc/glibc-functions/setxattr.texi: Likewise.
32038         * doc/glibc-functions/strcasestr.texi: Likewise.
32039
32040 2008-12-15  Bruno Haible  <bruno@clisp.org>
32041
32042         Fix compilation error on OSF/1 4.0.
32043         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32044         <sys/time.h>, simply delegate to the system header.
32045         Reported by Daniel Richard G. <oss@teragram.com>.
32046
32047 2008-12-15  Bruno Haible  <bruno@clisp.org>
32048
32049         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32050         * doc/posix-functions/fchmodat.texi: Likewise.
32051         * doc/posix-functions/fchownat.texi: Likewise.
32052         * doc/posix-functions/fdopendir.texi: Likewise.
32053         * doc/posix-functions/fstatat.texi: Likewise.
32054         * doc/posix-functions/mkdirat.texi: Likewise.
32055         * doc/posix-functions/unlinkat.texi: Likewise.
32056
32057 2008-12-14  Bruno Haible  <bruno@clisp.org>
32058
32059         Update doc for POSIX:2008.
32060         * doc/posix-functions/faccessat.texi: New file.
32061         * doc/posix-functions/fchmodat.texi: New file.
32062         * doc/posix-functions/fchownat.texi: New file.
32063         * doc/posix-functions/fdopendir.texi: New file.
32064         * doc/posix-functions/fstatat.texi: New file.
32065         * doc/posix-functions/futimens.texi: New file.
32066         * doc/posix-functions/linkat.texi: New file.
32067         * doc/posix-functions/mkdirat.texi: New file.
32068         * doc/posix-functions/mkfifoat.texi: New file.
32069         * doc/posix-functions/mknodat.texi: New file.
32070         * doc/posix-functions/open_wmemstream.texi: New file.
32071         * doc/posix-functions/openat.texi: New file.
32072         * doc/posix-functions/psiginfo.texi: New file.
32073         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32074         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32075         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32076         * doc/posix-functions/readlinkat.texi: New file.
32077         * doc/posix-functions/renameat.texi: New file.
32078         * doc/posix-functions/strerror_l.texi: New file.
32079         * doc/posix-functions/symlinkat.texi: New file.
32080         * doc/posix-functions/unlinkat.texi: New file.
32081         * doc/posix-functions/utimensat.texi: New file.
32082         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32083
32084 2008-12-14  Bruno Haible  <bruno@clisp.org>
32085
32086         Update doc for POSIX:2008.
32087         * doc/posix-functions/alphasort.texi: Renamed from
32088         doc/glibc-functions/alphasort.texi.
32089         * doc/posix-functions/dirfd.texi: Renamed from
32090         doc/glibc-functions/dirfd.texi.
32091         * doc/posix-functions/dprintf.texi: Renamed from
32092         doc/glibc-functions/dprintf.texi.
32093         * doc/posix-functions/duplocale.texi: Renamed from
32094         doc/glibc-functions/duplocale.texi.
32095         * doc/posix-functions/fexecve.texi: Renamed from
32096         doc/glibc-functions/fexecve.texi.
32097         * doc/posix-functions/fmemopen.texi: Renamed from
32098         doc/glibc-functions/fmemopen.texi.
32099         * doc/posix-functions/freelocale.texi: Renamed from
32100         doc/glibc-functions/freelocale.texi.
32101         * doc/posix-functions/getdate_err.texi: Renamed from
32102         doc/glibc-functions/getdate_err.texi.
32103         * doc/posix-functions/isalnum_l.texi: Renamed from
32104         doc/glibc-functions/isalnum_l.texi.
32105         * doc/posix-functions/isalpha_l.texi: Renamed from
32106         doc/glibc-functions/isalpha_l.texi.
32107         * doc/posix-functions/isblank_l.texi: Renamed from
32108         doc/glibc-functions/isblank_l.texi.
32109         * doc/posix-functions/iscntrl_l.texi: Renamed from
32110         doc/glibc-functions/iscntrl_l.texi.
32111         * doc/posix-functions/isdigit_l.texi: Renamed from
32112         doc/glibc-functions/isdigit_l.texi.
32113         * doc/posix-functions/isgraph_l.texi: Renamed from
32114         doc/glibc-functions/isgraph_l.texi.
32115         * doc/posix-functions/islower_l.texi: Renamed from
32116         doc/glibc-functions/islower_l.texi.
32117         * doc/posix-functions/isprint_l.texi: Renamed from
32118         doc/glibc-functions/isprint_l.texi.
32119         * doc/posix-functions/ispunct_l.texi: Renamed from
32120         doc/glibc-functions/ispunct_l.texi.
32121         * doc/posix-functions/isspace_l.texi: Renamed from
32122         doc/glibc-functions/isspace_l.texi.
32123         * doc/posix-functions/isupper_l.texi: Renamed from
32124         doc/glibc-functions/isupper_l.texi.
32125         * doc/posix-functions/iswalnum_l.texi: Renamed from
32126         doc/glibc-functions/iswalnum_l.texi.
32127         * doc/posix-functions/iswalpha_l.texi: Renamed from
32128         doc/glibc-functions/iswalpha_l.texi.
32129         * doc/posix-functions/iswblank_l.texi: Renamed from
32130         doc/glibc-functions/iswblank_l.texi.
32131         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32132         doc/glibc-functions/iswcntrl_l.texi.
32133         * doc/posix-functions/iswctype_l.texi: Renamed from
32134         doc/glibc-functions/iswctype_l.texi.
32135         * doc/posix-functions/iswdigit_l.texi: Renamed from
32136         doc/glibc-functions/iswdigit_l.texi.
32137         * doc/posix-functions/iswgraph_l.texi: Renamed from
32138         doc/glibc-functions/iswgraph_l.texi.
32139         * doc/posix-functions/iswlower_l.texi: Renamed from
32140         doc/glibc-functions/iswlower_l.texi.
32141         * doc/posix-functions/iswprint_l.texi: Renamed from
32142         doc/glibc-functions/iswprint_l.texi.
32143         * doc/posix-functions/iswpunct_l.texi: Renamed from
32144         doc/glibc-functions/iswpunct_l.texi.
32145         * doc/posix-functions/iswspace_l.texi: Renamed from
32146         doc/glibc-functions/iswspace_l.texi.
32147         * doc/posix-functions/iswupper_l.texi: Renamed from
32148         doc/glibc-functions/iswupper_l.texi.
32149         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32150         doc/glibc-functions/iswxdigit_l.texi.
32151         * doc/posix-functions/isxdigit_l.texi: Renamed from
32152         doc/glibc-functions/isxdigit_l.texi.
32153         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32154         doc/glibc-functions/mbsnrtowcs.texi.
32155         * doc/posix-functions/mkdtemp.texi: Renamed from
32156         doc/glibc-functions/mkdtemp.texi.
32157         * doc/posix-functions/newlocale.texi: Renamed from
32158         doc/glibc-functions/newlocale.texi.
32159         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32160         doc/glibc-functions/nl_langinfo_l.texi.
32161         * doc/posix-functions/open_memstream.texi: Renamed from
32162         doc/glibc-functions/open_memstream.texi.
32163         * doc/posix-functions/opterr.texi: Renamed from
32164         doc/glibc-functions/opterr.texi.
32165         * doc/posix-functions/optind.texi: Renamed from
32166         doc/glibc-functions/optind.texi.
32167         * doc/posix-functions/optopt.texi: Renamed from
32168         doc/glibc-functions/optopt.texi.
32169         * doc/posix-functions/psignal.texi: Renamed from
32170         doc/glibc-functions/psignal.texi.
32171         * doc/posix-functions/scandir.texi: Renamed from
32172         doc/glibc-functions/scandir.texi.
32173         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32174         doc/glibc-functions/sched_get_priority_min.texi.
32175         * doc/posix-functions/signgam.texi: Renamed from
32176         doc/glibc-functions/signgam.texi.
32177         * doc/posix-functions/stpcpy.texi: Renamed from
32178         doc/glibc-functions/stpcpy.texi.
32179         * doc/posix-functions/stpncpy.texi: Renamed from
32180         doc/glibc-functions/stpncpy.texi.
32181         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32182         doc/glibc-functions/strcasecmp_l.texi.
32183         * doc/posix-functions/strcoll_l.texi: Renamed from
32184         doc/glibc-functions/strcoll_l.texi.
32185         * doc/posix-functions/strfmon_l.texi: Renamed from
32186         doc/glibc-functions/strfmon_l.texi.
32187         * doc/posix-functions/strftime_l.texi: Renamed from
32188         doc/glibc-functions/strftime_l.texi.
32189         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32190         doc/glibc-functions/strncasecmp_l.texi.
32191         * doc/posix-functions/strndup.texi: Renamed from
32192         doc/glibc-functions/strndup.texi.
32193         * doc/posix-functions/strnlen.texi: Renamed from
32194         doc/glibc-functions/strnlen.texi.
32195         * doc/posix-functions/strsignal.texi: Renamed from
32196         doc/glibc-functions/strsignal.texi.
32197         * doc/posix-functions/strxfrm_l.texi: Renamed from
32198         doc/glibc-functions/strxfrm_l.texi.
32199         * doc/posix-functions/timer_gettime.texi: Renamed from
32200         doc/glibc-functions/timer_gettime.texi.
32201         * doc/posix-functions/tolower_l.texi: Renamed from
32202         doc/glibc-functions/tolower_l.texi.
32203         * doc/posix-functions/toupper_l.texi: Renamed from
32204         doc/glibc-functions/toupper_l.texi.
32205         * doc/posix-functions/towctrans_l.texi: Renamed from
32206         doc/glibc-functions/towctrans_l.texi.
32207         * doc/posix-functions/towlower_l.texi: Renamed from
32208         doc/glibc-functions/towlower_l.texi.
32209         * doc/posix-functions/towupper_l.texi: Renamed from
32210         doc/glibc-functions/towupper_l.texi.
32211         * doc/posix-functions/uselocale.texi: Renamed from
32212         doc/glibc-functions/uselocale.texi.
32213         * doc/posix-functions/vdprintf.texi: Renamed from
32214         doc/glibc-functions/vdprintf.texi.
32215         * doc/posix-functions/wcpcpy.texi:
32216         Renamed from doc/glibc-functions/wcpcpy.texi.
32217         * doc/posix-functions/wcpncpy.texi: Renamed from
32218         doc/glibc-functions/wcpncpy.texi.
32219         * doc/posix-functions/wcscasecmp.texi: Renamed from
32220         doc/glibc-functions/wcscasecmp.texi.
32221         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32222         doc/glibc-functions/wcscasecmp_l.texi.
32223         * doc/posix-functions/wcscoll_l.texi: Renamed from
32224         doc/glibc-functions/wcscoll_l.texi.
32225         * doc/posix-functions/wcsdup.texi: Renamed from
32226         doc/glibc-functions/wcsdup.texi.
32227         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32228         doc/glibc-functions/wcsncasecmp.texi.
32229         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32230         doc/glibc-functions/wcsncasecmp_l.texi.
32231         * doc/posix-functions/wcsnlen.texi: Renamed from
32232         doc/glibc-functions/wcsnlen.texi.
32233         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32234         doc/glibc-functions/wcsnrtombs.texi.
32235         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32236         doc/glibc-functions/wcsxfrm_l.texi.
32237         * doc/posix-functions/wctrans_l.texi: Renamed from
32238         doc/glibc-functions/wctrans_l.texi.
32239         * doc/posix-functions/wctype_l.texi: Renamed from
32240         doc/glibc-functions/wctype_l.texi.
32241         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32242         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32243         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32244         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32245         these subsections.
32246         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32247         Remove sections.
32248
32249 2008-12-14  Bruno Haible  <bruno@clisp.org>
32250
32251         Update doc for POSIX:2008.
32252         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32253
32254 2008-12-14  Bruno Haible  <bruno@clisp.org>
32255
32256         Update doc for POSIX:2008.
32257         * doc/pastposix-functions/bcmp.texi: Renamed from
32258         doc/posix-functions/bcmp.texi.
32259         * doc/pastposix-functions/bcopy.texi: Renamed from
32260         doc/posix-functions/bcopy.texi.
32261         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32262         doc/posix-functions/bsd_signal.texi.
32263         * doc/pastposix-functions/bzero.texi: Renamed from
32264         doc/posix-functions/bzero.texi.
32265         * doc/pastposix-functions/ecvt.texi: Renamed from
32266         doc/posix-functions/ecvt.texi.
32267         * doc/pastposix-functions/fcvt.texi: Renamed from
32268         doc/posix-functions/fcvt.texi.
32269         * doc/pastposix-functions/ftime.texi: Renamed from
32270         doc/posix-functions/ftime.texi.
32271         * doc/pastposix-functions/gcvt.texi: Renamed from
32272         doc/posix-functions/gcvt.texi.
32273         * doc/pastposix-functions/getcontext.texi: Renamed from
32274         doc/posix-functions/getcontext.texi.
32275         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32276         doc/posix-functions/gethostbyaddr.texi.
32277         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32278         doc/posix-functions/gethostbyname.texi.
32279         * doc/pastposix-functions/getwd.texi: Renamed from
32280         doc/posix-functions/getwd.texi.
32281         * doc/pastposix-functions/h_errno.texi: Renamed from
32282         doc/posix-functions/h_errno.texi.
32283         * doc/pastposix-functions/index.texi: Renamed from
32284         doc/posix-functions/index.texi.
32285         * doc/pastposix-functions/makecontext.texi: Renamed from
32286         doc/posix-functions/makecontext.texi.
32287         * doc/pastposix-functions/mktemp.texi: Renamed from
32288         doc/posix-functions/mktemp.texi.
32289         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32290         doc/posix-functions/pthread_attr_getstackaddr.texi.
32291         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32292         doc/posix-functions/pthread_attr_setstackaddr.texi.
32293         * doc/pastposix-functions/rindex.texi: Renamed from
32294         doc/posix-functions/rindex.texi.
32295         * doc/pastposix-functions/scalb.texi: Renamed from
32296         doc/posix-functions/scalb.texi.
32297         * doc/pastposix-functions/setcontext.texi: Renamed from
32298         doc/posix-functions/setcontext.texi.
32299         * doc/pastposix-functions/swapcontext.texi: Renamed from
32300         doc/posix-functions/swapcontext.texi.
32301         * doc/pastposix-functions/ualarm.texi: Renamed from
32302         doc/posix-functions/ualarm.texi.
32303         * doc/pastposix-functions/usleep.texi: Renamed from
32304         doc/posix-functions/usleep.texi.
32305         * doc/pastposix-functions/vfork.texi: Renamed from
32306         doc/posix-functions/vfork.texi.
32307         * doc/pastposix-functions/wcswcs.texi: Renamed from
32308         doc/posix-functions/wcswcs.texi.
32309         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32310         (Function Substitutes): Update.
32311
32312 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32313
32314         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32315         m4/strerror.m4.
32316
32317 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32318             Bruno Haible  <bruno@clisp.org>
32319
32320         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32321
32322 2008-12-13  Bruno Haible  <bruno@clisp.org>
32323
32324         * modules/strtoull (Depends-on): Remove unistd.
32325
32326 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32327
32328         * modules/strtoull (Depends-on): Add stdlib.
32329
32330 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32331
32332         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32333
32334 2008-12-10  Jim Meyering  <meyering@redhat.com>
32335
32336         gl_ASSERT: don't say assertions are disabled when they're not
32337         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32338         "checking whether to enable assertions... no", when they are in
32339         fact enabled.  This is solely a bug in the output of configure.
32340         In spite of saying "no", NDEBUG was not defined in that case.
32341         Also, as noted by Eric Blake, leave assertions enabled upon
32342         --enable-assert=INVALID.
32343
32344 2008-12-10  Bruno Haible  <bruno@clisp.org>
32345
32346         Change MODULES.html to refer to POSIX:2008 where possible.
32347         * MODULES.html.sh (POSIX2008_URL): New variable.
32348         (posix_headers): Remove sys/timeb, ucontext.
32349         (posix2001_headers): New variable.
32350         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32351         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32352         index, makecontext, mktemp, pthread_attr_getstackaddr,
32353         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32354         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32355         (posix2001_functions): New variable.
32356         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32357         otherwise.
32358
32359 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32360
32361         add missing include to parse-duration.c
32362         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32363         * modules/parse-duration (Depends-on): Add xalloc.
32364
32365         fix sed script reading maint.mk
32366         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32367         (syntax-check-rules): Use it.
32368
32369 2008-12-09  Bruno Haible  <bruno@clisp.org>
32370
32371         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32372         MacOS X 10.4/PowerPC.
32373         Reported by Simon Josefsson.
32374
32375 2008-12-08  Jim Meyering  <meyering@redhat.com>
32376
32377         work around mingw's lack of some S_IF definitions
32378         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32379         Reported by Simon Josefsson.
32380
32381 2008-12-08  Bruno Haible  <bruno@clisp.org>
32382
32383         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32384         applied to variables. Needed on MacOS X 10.4/PowerPC.
32385         Reported by Simon Josefsson.
32386
32387 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32388         and Eric Blake  <ebb9@byu.net>
32389
32390         assert: honor --enable-assert
32391         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32392         order to honor --enable-assert, rather than treating it as a
32393         synonym for --disable-assert.
32394
32395 2008-12-08  Jim Meyering  <meyering@redhat.com>
32396
32397         * lib/posixtm.c: Remove now-useless declaration of mktime.
32398
32399         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32400
32401 2008-12-07  Bruno Haible  <bruno@clisp.org>
32402
32403         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32404         test_once): Mark functions as static.
32405         * tests/test-tls.c (test_tls): Likewise.
32406
32407 2008-12-07  Bruno Haible  <bruno@clisp.org>
32408
32409         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32410         iconv_register_autodetect.
32411
32412 2008-12-07  Jim Meyering  <meyering@redhat.com>
32413
32414         posixtm.c: avoid a warning
32415         * lib/posixtm.c (posixtime): Don't initialize tm0.
32416         It's no longer needed to placate gcc4's -Wuninitialized,
32417         and the attempt to placate would elicit a new warning.
32418
32419         unicodeio.c: mark unused parameters
32420         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32421         (fallback_failure_callback): Likewise.
32422
32423 2008-12-07  Bruno Haible  <bruno@clisp.org>
32424
32425         * gnulib-tool (func_create_testdir): When building the tests
32426         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32427         Reported by Simon Josefsson.
32428
32429 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32430
32431         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32432
32433 2008-12-06  Bruno Haible  <bruno@clisp.org>
32434
32435         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32436         Suggested by Eric Blake.
32437
32438 2008-12-06  Bruno Haible  <bruno@clisp.org>
32439
32440         Fix a c-stack test failure on MacOS X.
32441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32442         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32443         handler for SIGBUS as well.
32444         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32445         install a signal handler for SIGBUS as well.
32446         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32447
32448 2008-12-06  Bruno Haible  <bruno@clisp.org>
32449
32450         Advocacy documentation.
32451         * doc/gnulib-intro.texi (Benefits): New section.
32452         * doc/gnulib.texi: Update.
32453
32454 2008-12-06  Bruno Haible  <bruno@clisp.org>
32455
32456         Document the 'manywarnings' module.
32457         * doc/manywarnings.texi: New file.
32458         * doc/gnulib.texi: Include it.
32459
32460 2008-12-05  Eric Blake  <ebb9@byu.net>
32461
32462         tests: silence some gcc warnings
32463         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32464         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32465         type mismatches.
32466
32467 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32468             Bruno Haible  <bruno@clisp.org>
32469
32470         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32471
32472 2008-11-29  Jim Meyering  <meyering@redhat.com>
32473
32474         unicodeio.c: mark unused parameters
32475         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32476         (fallback_failure_callback): Likewise.
32477
32478         fts: fix a thinko
32479         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32480         (set_stat_type): Return S_IF*-valued "type" directly.
32481         Prompted by James Youngman's spotting a related bug.
32482         Confirmed by further testing through find.
32483
32484         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32485         * lib/fts.c (D_TYPE): Define.
32486         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32487         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32488         (s_ifmt_shift_bits): New function.
32489         (set_stat_type): New function.
32490         (fts_build): When not calling fts_stat, call set_stat_type
32491         to propagate dirent.d_type info to fts_read caller.
32492         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32493         fts_statp->st_mode type information may be valid.
32494
32495 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32496
32497         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32498         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32499         <sds@gnu.org>.
32500
32501 2008-11-20  Bruno Haible  <bruno@clisp.org>
32502
32503         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32504         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32505         INCLUDE_NEXT.
32506         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32507         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32508         * modules/math (Makefile.am): Substitute
32509         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32510         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32511
32512 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32513             Bruno Haible  <bruno@clisp.org>
32514
32515         * lib/stdint.in.h: Define all type macros so that their expansion is
32516         a single typedef'ed token. Fixes a compilation failure in Boost which
32517         does "using ::int8_t;".
32518
32519 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32520
32521         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32522         gl_MANYWARN_ALL_GCC.
32523         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32524         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32525         * modules/manywarnings: New file.
32526         * MODULES.html.sh: Mention manywarnings module.
32527
32528 2008-11-18  Bruno Haible  <bruno@clisp.org>
32529
32530         * doc/gnulib-tool.texi (Unit tests): New section.
32531
32532 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32533
32534         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32535         paths like 'lib/po/foo.po'.
32536
32537 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32538
32539         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32540         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32541
32542 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32543
32544         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32545         parameter works.
32546
32547 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32548
32549         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32550
32551 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32552
32553         * modules/parse-duration-tests: New file.
32554         * tests/test-parse-duration.sh: New file.
32555         * tests/test-parse-duration.c: New file.
32556
32557         New module 'parse-duration'.
32558         * lib/parse-duration.h: New file.
32559         * lib/parse-duration.c: New file.
32560         * modules/parse-duration: New file.
32561
32562 2008-11-17  Bruno Haible  <bruno@clisp.org>
32563
32564         * tests/test-select-out.sh: Comment out the first pipe test.
32565         Reported by Simon Josefsson.
32566
32567 2008-11-17  Bruno Haible  <bruno@clisp.org>
32568
32569         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32571         gl_HOSTENT.
32572
32573 2008-11-17  Bruno Haible  <bruno@clisp.org>
32574
32575         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32576         -lnetwork and -lnet. Needed for Haiku and BeOS.
32577
32578 2008-11-16  Bruno Haible  <bruno@clisp.org>
32579
32580         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32581
32582 2008-11-16  Bruno Haible  <bruno@clisp.org>
32583
32584         Avoid test failure on Haiku.
32585         * tests/test-fsync.c: Include <errno.h>.
32586         (main): Don't require that fsync (0) fails.
32587
32588 2008-11-15  Bruno Haible  <bruno@clisp.org>
32589
32590         New module 'hostent'.
32591         * modules/hostent: New file.
32592         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32593
32594 2008-11-15  Bruno Haible  <bruno@clisp.org>
32595
32596         New module 'servent'.
32597         * modules/servent: New file.
32598         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32599
32600 2008-11-15  Bruno Haible  <bruno@clisp.org>
32601
32602         Avoid generating same test program with two different rules.
32603         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32604         test-frexp to test-frexp-nolibm.
32605         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32606         test-frexpl to test-frexpl-nolibm.
32607
32608 2008-11-15  Bruno Haible  <bruno@clisp.org>
32609
32610         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32611         $(FREXPL_LIBM).
32612
32613 2008-11-15  Bruno Haible  <bruno@clisp.org>
32614
32615         * lib/netdb.in.h: Activate the definitions also when the system's
32616         <netdb.h> has 'struct addrinfo'.
32617         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32618         EAI_OVERFLOW or AI_NUMERICSERV.
32619         * doc/posix-headers/netdb.texi: Document the problem.
32620
32621 2008-11-15  Bruno Haible  <bruno@clisp.org>
32622
32623         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32624
32625         Make the 'sched' module work on platforms where <sched.h> exists but
32626         is incomplete (such as Haiku).
32627         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32628         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32629         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32630         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32631         HAVE_STRUCT_SCHED_PARAM.
32632         * modules/sched (Depends-on): Add include_next.
32633         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32634         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32635         * doc/posix-headers/sched.texi: Document the issue.
32636
32637 2008-11-13  Jim Meyering  <meyering@redhat.com>
32638
32639         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32640         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32641         test would fail due to the difference in the Report bugs to ...
32642         line.  The expected address is empty, "<>", while the actual
32643         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32644
32645 2008-11-12  Bruno Haible  <bruno@clisp.org>
32646
32647         lstat: don't compile lstat.c on systems lacking lstat
32648         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32649         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32650         Reported by Daniel P. Berrange via Jim Meyering.
32651
32652 2008-11-12  Jim Meyering  <meyering@redhat.com>
32653
32654         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32655
32656 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32657
32658         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32659         instead.
32660
32661 2008-11-12  Bruno Haible  <bruno@clisp.org>
32662
32663         * lib/unicodeio.c: Include unistr.h.
32664         (utf8_wctomb): Remove function.
32665         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32666
32667 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32668
32669         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32670         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32671         <bruno@clisp.org>.
32672         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32673
32674 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32675
32676         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32677         * doc/gnulib.texi: Add section for warnings.
32678
32679 2008-11-11  Bruno Haible  <bruno@clisp.org>
32680
32681         * lib/sockets.h: Add a comment.
32682
32683 2008-11-11  Karl Berry  <karl@gnu.org>
32684
32685         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32686
32687 2008-11-11  Eric Blake  <ebb9@byu.net>
32688
32689         fdl.texi: avoid git symlinks
32690         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32691
32692 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32693
32694         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32695
32696 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32697
32698         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32699         (gl_WARN_ADD): Substitute $2 if literal.
32700
32701 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32702
32703         * m4/warning.m4: Remove.
32704
32705 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32706
32707         * m4/warnings.m4: Almost complete rewrite. :-)
32708
32709 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32710
32711         * modules/warnings: New module.
32712         * m4/warnings.m4: New file.
32713         * MODULES.html.sh: Mention warnings module.
32714         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32715         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32716
32717 2008-11-10  Eric Blake  <ebb9@byu.net>
32718
32719         fdl.texi: make a symlink to the latest version
32720         * doc/standards.texi: Revert today's earlier change.
32721         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32722         * doc/fdl.texi: ...and replace this with a symlink to the newer
32723         fdl-1.3.texi.
32724
32725 2008-11-10  Bruno Haible  <bruno@clisp.org>
32726
32727         * tests/test-select-fd.c (main): Accept the result file name as fourth
32728         argument.
32729         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32730         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32731
32732 2008-11-10  Bruno Haible  <bruno@clisp.org>
32733
32734         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32735         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32736         as autoconf-substituted macros.
32737         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32738         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32739         gl_NETDB_H_DEFAULTS. Set these variables.
32740         * modules/netdb (Makefile.am): Substitute these variables.
32741
32742 2008-11-10  Eric Blake  <ebb9@byu.net>
32743
32744         standards.texi: include correct file for FDL 1.3
32745         * doc/standards.texi (GNU Free Documentation License): Change
32746         include file to pull in FDL 1.3, not 1.2.
32747
32748         fdl.texi: revert accidental change to license
32749         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32750
32751 2008-11-10  Bruno Haible  <bruno@clisp.org>
32752
32753         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32754         cross-compiling guesses also when the native compile gives no result.
32755
32756 2008-11-10  Bruno Haible  <bruno@clisp.org>
32757
32758         * lib/spawni.c (__spawni): Force variable into the stack.
32759
32760 2008-11-10  Bruno Haible  <bruno@clisp.org>
32761
32762         Add support for Haiku.
32763         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32764         glibc and BeOS, but also on Haiku.
32765         * lib/fpurge.c (fpurge): Likewise.
32766         * lib/freadable.c (freadable): Likewise.
32767         * lib/freadahead.c (freadahead): Likewise.
32768         * lib/freading.c (freading): Likewise.
32769         * lib/freadptr.c (freadptr): Likewise.
32770         * lib/freadseek.c (freadptrinc): Likewise.
32771         * lib/fseeko.c (rpl_fseeko): Likewise.
32772         * lib/fseterr.c (fseterr): Likewise.
32773         * lib/fwritable.c (fwritable): Likewise.
32774         * lib/fwriting.c (fwriting): Likewise.
32775         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32776
32777 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32778
32779         * lib/config.charset: Treat Haiku like BeOS.
32780
32781 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32782
32783         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32784         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32785
32786 2008-11-08  Bruno Haible  <bruno@clisp.org>
32787
32788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32789         AC_CACHE_CHECK.
32790
32791 2008-11-08  Bruno Haible  <bruno@clisp.org>
32792
32793         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32794
32795 2008-11-08  Bruno Haible  <bruno@clisp.org>
32796
32797         * tests/test-select-fd.c: New file.
32798         * tests/test-select-in.sh: New file.
32799         * tests/test-select-out.sh: New file.
32800         * tests/test-select-stdin.c: New file.
32801         * modules/select-tests (Files): Add the new files.
32802         (Depends-on): Add gettimeofday.
32803         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32804         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32805         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32806
32807 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32808             Bruno Haible  <bruno@clisp.org>
32809
32810         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32811
32812 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32813
32814         * build-aux/pmccabe2html: Added support for C++ source files.
32815
32816 2008-11-05  Ben Pfaff  <blp@gnu.org>
32817
32818         Fix lib/close.c build on Windows.
32819         * modules/close (Files): Add lib/w32sock.h.
32820
32821 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32822
32823         Accept Bison's NEWS format.
32824         * build-aux/announce-gen (print_news_deltas): Tweak
32825         $re_prefix.
32826
32827 2008-11-04  Bruno Haible  <bruno@clisp.org>
32828
32829         * modules/random_r (Maintainer): Add glibc.
32830
32831 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32832
32833         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32834         by karl@freefriends.org (Karl Berry).
32835         * doc/alloca.texi: Likewise.
32836         * doc/c-ctype.texi: Likewise.
32837         * doc/c-strcase.texi: Likewise.
32838         * doc/c-strcaseeq.texi: Likewise.
32839         * doc/c-strcasestr.texi: Likewise.
32840         * doc/c-strstr.texi: Likewise.
32841         * doc/c-strtod.texi: Likewise.
32842         * doc/c-strtold.texi: Likewise.
32843         * doc/ctime.texi: Likewise.
32844         * doc/error.texi: Likewise.
32845         * doc/fdl.texi: Likewise.
32846         * doc/gcd.texi: Likewise.
32847         * doc/getdate.texi: Likewise.
32848         * doc/gnulib-intro.texi: Likewise.
32849         * doc/gnulib-tool.texi: Likewise.
32850         * doc/gnulib.texi: Likewise.
32851         * doc/inet_ntoa.texi: Likewise.
32852         * doc/maintain.texi: Likewise.
32853         * doc/make-stds.texi: Likewise.
32854         * doc/quote.texi: Likewise.
32855         * doc/regexprops-generic.texi: Likewise.
32856         * doc/standards.texi: Likewise.
32857         * doc/verify.texi: Likewise.
32858         * doc/visibility.texi: Likewise.
32859         * doc/gnulib.texi (GNU Free Documentation License): Include
32860         fdl-1.3.texi instead of fdl.texi.
32861
32862 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32863
32864         * doc/fdl-1.3.texi: New file, from
32865         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32866         * modules/fdl-1.3: Add.
32867         * MODULES.html.sh: Add fdl-1.3.
32868
32869 2008-11-03  Bruno Haible  <bruno@clisp.org>
32870
32871         Make determination of absolute name of header file work with AIX xlc.
32872         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32873         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32874         preprocessing.
32875         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32876         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32877
32878 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32879
32880         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32881         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32882         <ludo@gnu.org>.
32883
32884 2008-11-02  Bruno Haible  <bruno@clisp.org>
32885
32886         Mark 'strpbrk' obsolete.
32887         * modules/strpbrk (Status, Notice): New sections.
32888         * modules/strtok_r (Depends-on): Add strpbrk.
32889
32890 2008-11-02  Bruno Haible  <bruno@clisp.org>
32891
32892         Mark 'strdup' obsolete.
32893         * modules/strdup (Status, Notice): New sections.
32894         * modules/findprog (Depends-on): Add strdup.
32895         * modules/getaddrinfo (Depends-on): Likewise.
32896         * modules/localename (Depends-on): Likewise.
32897         * modules/relocatable-lib (Depends-on): Likewise.
32898         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32899         * modules/relocatable-prog (Depends-on): Likewise.
32900         * modules/trim (Depends-on): Likewise.
32901         * modules/unictype/gen-ctype (Depends-on): Likewise.
32902         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32903
32904 2008-11-02  Bruno Haible  <bruno@clisp.org>
32905
32906         Mark 'strcspn' obsolete.
32907         * modules/strcspn (Status, Notice): New sections.
32908
32909 2008-11-02  Bruno Haible  <bruno@clisp.org>
32910
32911         Mark 'rmdir' obsolete.
32912         * modules/rmdir (Status, Notice): New sections.
32913         * modules/clean-temp (Depends-on): Add rmdir.
32914         * modules/openat (Depends-on): Likewise.
32915
32916 2008-11-02  Bruno Haible  <bruno@clisp.org>
32917
32918         Mark 'raise' obsolete.
32919         * modules/raise (Status, Notice): New sections.
32920         (Include): Specify <signal.h>.
32921         * modules/stdio (Depends-on): Add raise.
32922         * modules/write (Depends-on): Likewise.
32923
32924 2008-11-02  Bruno Haible  <bruno@clisp.org>
32925
32926         Mark 'memset' obsolete.
32927         * modules/memset (Status, Notice): New sections.
32928
32929 2008-11-02  Bruno Haible  <bruno@clisp.org>
32930
32931         Mark 'memmove' obsolete.
32932         * modules/memmove (Status, Notice): New sections.
32933         * modules/argp (Depends-on): Add memmove.
32934         * modules/argz (Depends-on): Likewise.
32935         * modules/canonicalize (Depends-on): Likewise.
32936         * modules/canonicalize-lgpl (Depends-on): Likewise.
32937         * modules/fts (Depends-on): Likewise.
32938         * modules/getcwd (Depends-on): Likewise.
32939         * modules/human (Depends-on): Likewise.
32940         * modules/regex (Depends-on): Likewise.
32941         * modules/striconveh (Depends-on): Likewise.
32942         * modules/trim (Depends-on): Likewise.
32943         * modules/unistr/u8-move (Depends-on): Likewise.
32944         * modules/unistr/u16-move (Depends-on): Likewise.
32945         * modules/unistr/u32-move (Depends-on): Likewise.
32946
32947 2008-11-02  Bruno Haible  <bruno@clisp.org>
32948
32949         Mark 'memcpy' obsolete.
32950         * modules/memcpy (Status, Notice): New sections.
32951
32952 2008-11-02  Bruno Haible  <bruno@clisp.org>
32953
32954         Mark 'memcmp' obsolete.
32955         * modules/memcmp (Status, Notice): New sections.
32956         * modules/argmatch (Depends-on): Add memchr.
32957         * modules/backupfile (Depends-on): Likewise.
32958         * modules/c-strcasestr (Depends-on): Likewise.
32959         * modules/crypto/des (Depends-on): Likewise.
32960         * modules/csharpcomp (Depends-on): Likewise.
32961         * modules/fnmatch (Depends-on): Likewise.
32962         * modules/git-merge-changelog (Depends-on): Likewise.
32963         * modules/isnand (Depends-on): Likewise.
32964         * modules/isnand-nolibm (Depends-on): Likewise.
32965         * modules/isnanf (Depends-on): Likewise.
32966         * modules/isnanf-nolibm (Depends-on): Likewise.
32967         * modules/isnanl (Depends-on): Likewise.
32968         * modules/isnanl-nolibm (Depends-on): Likewise.
32969         * modules/mbchar (Depends-on): Likewise.
32970         * modules/memcoll (Depends-on): Likewise.
32971         * modules/quotearg (Depends-on): Likewise.
32972         * modules/regex (Depends-on): Likewise.
32973         * modules/relocatable-prog (Depends-on): Likewise.
32974         * modules/same (Depends-on): Likewise.
32975         * modules/signbit (Depends-on): Likewise.
32976         * modules/strcasestr-simple (Depends-on): Likewise.
32977         * modules/unictype/gen-ctype (Depends-on): Likewise.
32978         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32979         * modules/uniname/uniname (Depends-on): Likewise.
32980         * modules/unistr/u8-cmp (Depends-on): Likewise.
32981
32982 2008-11-02  Bruno Haible  <bruno@clisp.org>
32983
32984         Mark 'memchr' obsolete.
32985         * modules/memchr (Status, Notice): New sections.
32986         * modules/argp (Depends-on): Add memchr.
32987         * modules/base64 (Depends-on): Likewise.
32988         * modules/c-strcasestr (Depends-on): Likewise.
32989         * modules/chdir-long (Depends-on): Likewise.
32990         * modules/fnmatch (Depends-on): Likewise.
32991         * modules/getsubopt (Depends-on): Likewise.
32992         * modules/git-merge-changelog (Depends-on): Likewise.
32993         * modules/glob (Depends-on): Likewise.
32994         * modules/strcasestr-simple (Depends-on): Likewise.
32995         * modules/strnlen (Depends-on): Likewise.
32996
32997 2008-11-02  Bruno Haible  <bruno@clisp.org>
32998
32999         Mark 'atexit' obsolete.
33000         * modules/atexit (Status, Notice): New sections.
33001         * modules/chdir-long (Depends-on): Add atexit.
33002         * modules/wait-process (Depends-on): Likewise.
33003
33004 2008-11-02  Bruno Haible  <bruno@clisp.org>
33005
33006         * gnulib-tool: New option --with-obsolete.
33007         (func_usage): Document it.
33008         (func_modules_transitive_closure): Drop obsolete dependencies if
33009         incobsolete is not true.
33010         (func_import): Read and save the incobsolete variable to the cache.
33011
33012 2008-11-02  Bruno Haible  <bruno@clisp.org>
33013
33014         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33015         * gnulib-tool: New option --extract-status.
33016         (func_usage): Document it.
33017         (sed_extract_prog): Recognize it.
33018         (func_get_status): New function.
33019
33020 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33021
33022         * modules/sockets (License): Change from LGPL to LGPLv2+.
33023
33024 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33025
33026         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33027
33028 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33029
33030         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33031         Mention times and sys_times.
33032         * modules/sys_times, modules/sys_times-tests: New modules.
33033         * modules/times, modules/times-tests: Likewise
33034         * m4/sys_times_h.m4: New file.
33035         * lib/sys_times.in.h: Likewise
33036         * lib/times.c: Likewise.
33037         * tests/test-sys_times.c: Likewise.
33038         * tests/test-times.c: Likewise.
33039         * doc/posix-headers/sys_times.texi: Update.
33040         * doc/posix-functions/times.texi: Update.
33041
33042 2008-10-28  Jim Meyering  <meyering@redhat.com>
33043
33044         * modules/tempname (Depends-on): Add lstat.
33045
33046         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33047
33048 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33049
33050         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33051         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33052         using idiom used elsewhere in gnulib.
33053
33054 2008-10-27  Jim Meyering  <meyering@redhat.com>
33055
33056         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33057
33058 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33059
33060         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33061         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33062         programs.
33063         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33064
33065 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33066
33067         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33068
33069 2008-10-27  Bruno Haible  <bruno@clisp.org>
33070
33071         * tests/test-lstat.c: Include <stdio.h>.
33072
33073 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33074
33075         * modules/lstat-tests: New module.
33076         * tests/test-lstat.c: New file.
33077
33078 2008-10-26  Jim Meyering  <meyering@redhat.com>
33079
33080         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33081
33082 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33083             Bruno Haible  <bruno@clisp.org>
33084
33085         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33086         * modules/configmake (Include): Add a note that the include must come
33087         after all system headers.
33088         * lib/javaversion.c: Include configmake.h after all other includes.
33089
33090 2008-10-26  Bruno Haible  <bruno@clisp.org>
33091
33092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33093         HAVE_STRUCT_RANDOM_DATA to 1.
33094         (gl_STDLIB_H): Simplify.
33095
33096 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33097
33098         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33099         substitute HAVE_STRUCT_RANDOM_DATA.
33100         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33101         random_data.
33102         * modules/stdlib (Makefile.am): Substitute
33103         HAVE_STRUCT_RANDOM_DATA.
33104
33105 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33106
33107         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33108         * doc/gnulib-intro.texi (Copyright): Likewise.
33109
33110 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33111
33112         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33113         findings.
33114
33115 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33116             Bruno Haible  <bruno@clisp.org>
33117
33118         * lib/unistd.in.h: Include <winsock2.h>.
33119         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33120         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33121         Provide dummy declarations.
33122         (gethostname): Override.
33123         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33124         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33125         gl_PREREQ_SYS_H_WINSOCK2.
33126         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33127         * doc/posix-functions/gethostname.texi: More details.
33128
33129 2008-10-25  Bruno Haible  <bruno@clisp.org>
33130
33131         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33132         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33133         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33134
33135         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33136         here ...
33137         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33138         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33139         gl_UNISTD_H_DEFAULTS.
33140
33141 2008-10-25  Eric Blake  <ebb9@byu.net>
33142
33143         signbit: avoid spurious compiler failure
33144         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33145         declarations inside function.
33146
33147 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33148             Bruno Haible  <bruno@clisp.org>
33149
33150         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33151         * modules/random_r (Depends-on): Add stdint.
33152
33153 2008-10-24  Bruno Haible  <bruno@clisp.org>
33154
33155         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33156         Eggert.
33157         * modules/strerror (License): Likewise.
33158
33159 2008-10-24  Jim Meyering  <meyering@redhat.com>
33160
33161         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33162         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33163
33164 2008-10-24  Eric Blake  <ebb9@byu.net>
33165
33166         getgroups: fix compilation when getgroups is available
33167         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33168         but with <config.h> override of getgroups disabled.
33169
33170 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33171
33172         * doc/gnulib.texi (Header files): Add note about C++ problems.
33173         Explained by Bruno Haible <bruno@clisp.org>.
33174
33175 2008-10-23  Bruno Haible  <bruno@clisp.org>
33176
33177         Define a dummy SA_NODEFER macro on Interix.
33178         * lib/signal.in.h (SA_NODEFER): Define fallback.
33179         Reported by Aleksey Cheusov <cheusov@tut.by> via
33180         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33181
33182 2008-10-23  Bruno Haible  <bruno@clisp.org>
33183
33184         * modules/freadahead (License): Change to LGPLv2+.
33185         Suggested by Simon Josefsson.
33186
33187 2008-10-23  Jim Meyering  <meyering@redhat.com>
33188
33189         random_r: new module
33190         * modules/random_r: New file.
33191         * m4/random_r.m4: New file.
33192         * lib/random_r.c: New file, from glibc.
33193         * modules/random_r-tests: New file.
33194         * tests/test-random_r.c: New file.
33195         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33196          Declare.
33197         (RAND_MAX): Define.
33198         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33199         * modules/stdlib: Substitute them, too.
33200         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33201         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33202         * doc/glibc-functions/random_r.texi: Likewise.
33203         * doc/glibc-functions/setstate_r.texi: Likewise.
33204         * doc/glibc-functions/srandom_r.texi: Likewise.
33205         * config/srclist.txt: Mention it.
33206
33207 2008-10-23  David Lutterkort  <lutter@redhat.com>
33208
33209         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33210         link requirement
33211
33212 2008-10-23  Jim Meyering  <meyering@redhat.com>
33213
33214         selinux-h: mark parameters of stub functions as intentionally unused
33215         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33216         * lib/se-context.in.h: Likewise.
33217
33218 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33219
33220         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33221
33222 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33223
33224         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33225
33226 2008-10-22  Eric Blake  <ebb9@byu.net>
33227
33228         glthread/thread: avoid compiler warning
33229         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33230         Add unreachable abort to silence compiler.
33231
33232 2008-10-22  Eric Blake  <ebb9@byu.net>
33233
33234         netdb: also supply struct addrinfo for cygwin 1.5.x
33235         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33236         older cygwin.
33237         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33238         cygwin.
33239         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33240
33241 2008-10-22  Bruno Haible  <bruno@clisp.org>
33242
33243         * users.txt: Update entry about pspp.
33244
33245 2008-10-21  Bruno Haible  <bruno@clisp.org>
33246
33247         Simplification.
33248         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33249         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33250
33251         Simplification.
33252         * lib/ioctl.c (ioctl): Don't undefine.
33253         * lib/socket.c (socket): Don't undefine.
33254
33255         Remove unused module indicator macros.
33256         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33257         GNULIB_$1 as a C macro.
33258
33259         * doc/posix-functions/close.texi: Undo last change.
33260         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33261         Windows platforms.
33262
33263 2008-10-21  Bruno Haible  <bruno@clisp.org>
33264
33265         Add gethostname() declaration to <unistd.h>.
33266         * lib/unistd.in.h (gethostname): New declaration.
33267         * lib/gethostname.c: Include <unistd.h>.
33268         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33269         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33271         and HAVE_GETHOSTNAME.
33272         * modules/gethostname (Depends-on): Add unistd.
33273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33274         (Include): Specify <unistd.h>.
33275         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33276         HAVE_GETHOSTNAME.
33277         * tests/test-gethostname.c: Include <unistd.h> first.
33278
33279 2008-10-21  Bruno Haible  <bruno@clisp.org>
33280
33281         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33282         * modules/select-tests (Depends-on): Likewise.
33283         Reported by Simon Josefsson.
33284
33285 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33286
33287         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33288         * lib/accept.c: New file, based on winsock.c.
33289         * lib/bind.c: New file, based on winsock.c.
33290         * lib/connect.c: New file, based on winsock.c.
33291         * lib/getpeername.c: New file, based on winsock.c.
33292         * lib/getsockname.c: New file, based on winsock.c.
33293         * lib/getsockopt.c: New file, based on winsock.c.
33294         * lib/ioctl.c: New file, based on winsock.c.
33295         * lib/listen.c: New file, based on winsock.c.
33296         * lib/recv.c: New file, based on winsock.c.
33297         * lib/recvfrom.c: New file, based on winsock.c.
33298         * lib/send.c: New file, based on winsock.c.
33299         * lib/sendto.c: New file, based on winsock.c.
33300         * lib/setsockopt.c: New file, based on winsock.c.
33301         * lib/shutdown.c: New file, based on winsock.c.
33302         * lib/socket.c: New file, based on winsock.c.
33303         * lib/w32sock.h: New file, based on winsock.c.
33304         * lib/winsock.c: Remove file.
33305         * modules/accept: Likewise.
33306         * modules/bind: Likewise.
33307         * modules/connect: Likewise.
33308         * modules/getpeername: Likewise.
33309         * modules/getsockname: Likewise.
33310         * modules/getsockopt: Likewise.
33311         * modules/ioctl: Likewise.
33312         * modules/listen: Likewise.
33313         * modules/recv: Likewise.
33314         * modules/recvfrom: Likewise.
33315         * modules/send: Likewise.
33316         * modules/sendto: Likewise.
33317         * modules/setsockopt: Likewise.
33318         * modules/shutdown: Likewise.
33319         * modules/socket: Use socket.c instead of winsock.c.
33320         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33321         * doc/posix-functions/accept.texi: Doc fix.
33322         * doc/posix-functions/bind.texi: Doc fix.
33323         * doc/posix-functions/close.texi: Doc fix.
33324         * doc/posix-functions/connect.texi: Doc fix.
33325         * doc/posix-functions/getpeername.texi: Doc fix.
33326         * doc/posix-functions/getsockname.texi: Doc fix.
33327         * doc/posix-functions/getsockopt.texi: Doc fix.
33328         * doc/posix-functions/ioctl.texi: Doc fix.
33329         * doc/posix-functions/listen.texi: Doc fix.
33330         * doc/posix-functions/recv.texi: Doc fix.
33331         * doc/posix-functions/recvfrom.texi: Doc fix.
33332         * doc/posix-functions/send.texi: Doc fix.
33333         * doc/posix-functions/sendto.texi: Doc fix.
33334         * doc/posix-functions/setsockopt.texi: Doc fix.
33335         * doc/posix-functions/shutdown.texi: Doc fix.
33336         * doc/posix-functions/socket.texi: Doc fix.
33337
33338 2008-10-20  Bruno Haible  <bruno@clisp.org>
33339
33340         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33341         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33342         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33343         as an alias for SIGABRT.
33344         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33345         (sigaction): Map it to SIGABRT.
33346         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33347
33348 2008-10-20  Bruno Haible  <bruno@clisp.org>
33349
33350         * lib/fts.c: Don't include lstat.h.
33351         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33352
33353         Move the lstat() declaration to <sys/stat.h>.
33354         * lib/lstat.h: Remove file.
33355         * lib/sys_stat.in.h: Add special invocation convention.
33356         (lstat): New declaration.
33357         * lib/lstat.c (orig_lstat): New function.
33358         (rpl_lstat): Use orig_lstat instead of lstat.
33359         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33360         AC_C_INLINE. Set REPLACE_LSTAT.
33361         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33362         and REPLACE_LSTAT.
33363         * modules/lstat (Files): Remove lib/lstat.h.
33364         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33365         (Include): Specify <sys/stat.h> instead of lstat.h.
33366         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33367         REPLACE_LSTAT.
33368         * NEWS: Mention the change.
33369
33370 2008-10-20  Bruno Haible  <bruno@clisp.org>
33371
33372         * modules/posix_spawn-tests: New file.
33373         * tests/test-posix_spawn3.c: New file.
33374
33375 2008-10-20  Bruno Haible  <bruno@clisp.org>
33376
33377         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33378         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33379         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33380         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33381         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33382
33383 2008-10-20  Bruno Haible  <bruno@clisp.org>
33384
33385         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33386         of posix_spawn on AIX 5.3.
33387
33388 2008-10-20  Bruno Haible  <bruno@clisp.org>
33389
33390         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33391
33392 2008-10-20  Bruno Haible  <bruno@clisp.org>
33393
33394         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33395         of AC_LANG_PROGRAM.
33396
33397 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33398
33399         * lib/netdb.in.h: Don't define GNU specific constants until they
33400         are supported or needed.  Reported by Bruno Haible
33401         <bruno@clisp.org>.
33402
33403 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33404
33405         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33406
33407 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33408
33409         * lib/getaddrinfo.h: Remove file.
33410         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33411         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33412         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33413         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33414         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33415         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33416         * tests/test-getaddrinfo.c: Likewise.
33417         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33418         * NEWS: Mention change.
33419
33420 2008-10-19  Bruno Haible  <bruno@clisp.org>
33421
33422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33423
33424 2008-10-19  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/wait-process.c: Include simply <sys/wait.h>.
33427         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33428         WIFSTOPPED): Remove fallback definitions.
33429         * modules/wait-process (Depends-on): Add sys_wait.
33430
33431         New module 'sys_wait'.
33432         * modules/sys_wait: New file.
33433         * lib/sys_wait.in.h: New file, partially copied from
33434         lib/wait-process.c.
33435         * m4/sys_wait_h.m4: New file.
33436         * doc/posix-headers/sys_wait.texi: Mention the new module.
33437
33438 2008-10-19  Bruno Haible  <bruno@clisp.org>
33439
33440         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33441
33442 2008-10-19  Bruno Haible  <bruno@clisp.org>
33443
33444         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33445         * lib/wait-process.c (WAIT_T): Remove type.
33446         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33447         (wait_subprocess): Update.
33448
33449 2008-10-19  Bruno Haible  <bruno@clisp.org>
33450
33451         New module 'atoll'.
33452         * modules/atoll: New file.
33453         * lib/stdlib.in.h (atoll): New declaration.
33454         * lib/atoll.c: New file, from glibc with modifications.
33455         * m4/atoll.m4: New file.
33456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33457         HAVE_ATOLL.
33458         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33459         * doc/posix-functions/atoll.texi: Mention the new module.
33460
33461 2008-10-19  Bruno Haible  <bruno@clisp.org>
33462
33463         Add strtoull() declaration to <stdlib.h>.
33464         * lib/stdlib.in.h (strtoull): New declaration.
33465         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33466         Set HAVE_STRTOULL.
33467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33468         HAVE_STRTOULL.
33469         * modules/strtoull (Depends-on): Add stdlib.
33470         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33471         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33472         HAVE_STRTOULL.
33473
33474 2008-10-19  Bruno Haible  <bruno@clisp.org>
33475
33476         Add strtoll() declaration to <stdlib.h>.
33477         * lib/stdlib.in.h (strtoll): New declaration.
33478         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33479         Set HAVE_STRTOLL.
33480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33481         HAVE_STRTOLL.
33482         * modules/strtoll (Depends-on): Add stdlib.
33483         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33484         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33485
33486 2008-10-19  Bruno Haible  <bruno@clisp.org>
33487
33488         * modules/bcopy (Depends-on): Add strings.
33489         (Include): Specify <strings.h>.
33490
33491 2008-10-19  Bruno Haible  <bruno@clisp.org>
33492
33493         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33494
33495 2008-10-19  Bruno Haible  <bruno@clisp.org>
33496
33497         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33498         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33499         mingw.
33500
33501 2008-10-19  Bruno Haible  <bruno@clisp.org>
33502
33503         * lib/atanl.c: Don't include isnanl.h.
33504         * lib/cosl.c: Likewise.
33505         * lib/ldexpl.c: Likewise.
33506         * lib/logl.c: Likewise.
33507         * lib/sinl.c: Likewise.
33508         * lib/sqrtl.c: Likewise.
33509         * lib/tanl.c: Likewise.
33510
33511         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33512         * lib/isnanf.h: Remove file.
33513         * lib/isnand.h: Remove file.
33514         * lib/isnanl.h: Remove file.
33515         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33516         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33517         macros.
33518         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33519         HAVE_ISNANF, don't define it as a C macro.
33520         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33521         HAVE_ISNAND, don't define it as a C macro.
33522         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33523         HAVE_ISNANL, don't define it as a C macro.
33524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33525         HAVE_ISNAN[FDL].
33526         * modules/isnanf (Files): Remove lib/isnanf.h.
33527         (Depends-on): Add math.
33528         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33529         (Include): Specify <math.h> instead of isnanf.h.
33530         * modules/isnand (Files): Remove lib/isnand.h.
33531         (Depends-on): Add math.
33532         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33533         (Include): Specify <math.h> instead of isnand.h.
33534         * modules/isnanl (Files): Remove lib/isnanl.h.
33535         (Depends-on): Add math.
33536         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33537         (Include): Specify <math.h> instead of isnanl.h.
33538         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33539         HAVE_ISNAN[FDL].
33540         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33541         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33542         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33543         * NEWS: Mention the change.
33544
33545 2008-10-18  Bruno Haible  <bruno@clisp.org>
33546
33547         Add getusershell(), setusershell(), endusershell() declarations to
33548         <unistd.h>.
33549         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33550         declarations.
33551         * lib/getusershell.c: Include unistd.h.
33552         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33553         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33554         HAVE_GETUSERSHELL.
33555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33556         and HAVE_GETUSERSHELL.
33557         * modules/getusershell (Depends-on): Add unistd, extensions.
33558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33559         (Include): Specify <unistd.h>.
33560         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33561         HAVE_GETUSERSHELL.
33562
33563 2008-10-18  Bruno Haible  <bruno@clisp.org>
33564
33565         Add a getloadavg() declaration to <stdlib.h>.
33566         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33567         getloadavg declaration.
33568         (getloadavg): New declaration.
33569         * lib/getloadavg.c: Include <stdlib.h> first.
33570         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33571         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33572         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33574         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33575         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33576         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33577         (Include): Specify <stdlib.h>.
33578         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33579         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33580
33581 2008-10-18  Bruno Haible  <bruno@clisp.org>
33582
33583         * lib/dirchownmod.c: Don't include lchmod.h.
33584
33585         Move the lchmod() declaration to <sys/stat.h>.
33586         * lib/lchmod.h: Remove file.
33587         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33588         (lchmod): New declaration, moved here from lib/lchown.h.
33589         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33590         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33592         and HAVE_LCHMOD.
33593         * modules/lchmod (Files): Remove lib/lchmod.h.
33594         (Depends-on): Add sys_stat, extensions.
33595         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33596         (Include): Specify <sys/stat.h> instead of lchmod.h.
33597         * modules/sys_stat (Depends-on): Add link-warning.
33598         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33599         definition of GL_LINK_WARNING.
33600         * NEWS: Mention the change.
33601
33602 2008-10-18  Bruno Haible  <bruno@clisp.org>
33603
33604         * lib/fchdir.c: Don't include dirfd.h.
33605         * lib/fts.c: Likewise.
33606         * lib/getcwd.c: Likewise.
33607         * lib/glob.c: Likewise.
33608
33609         Move the dirfd() declaration to <dirent.h>.
33610         * lib/dirfd.h: Remove file.
33611         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33612         (dirfd): New declaration.
33613         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33614         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33615         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33616         HAVE_DECL_DIRFD.
33617         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33618         HAVE_DECL_DIRFD.
33619         * modules/dirfd (Files): Remove lib/dirfd.h.
33620         (Depends-on): Add dirent, extensions.
33621         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33622         (Include): Specify <dirent.h> instead of dirfd.h.
33623         * modules/dirent (Depends-on): Add link-warning.
33624         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33625         definition of GL_LINK_WARNING.
33626         * NEWS: Mention the change.
33627
33628 2008-10-18  Bruno Haible  <bruno@clisp.org>
33629
33630         Move the euidaccess() declaration to <unistd.h>.
33631         * lib/euidaccess.h: Remove file.
33632         * lib/unistd.in.h (euidaccess): New declaration.
33633         * lib/euidaccess.c: Don't include euidaccess.h.
33634         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33635         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33637         and HAVE_EUIDACCESS.
33638         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33639         (Depends-on): Add unistd.
33640         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33641         (Include): Specify <unistd.h> instead of euidaccess.h.
33642         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33643         HAVE_EUIDACCESS.
33644         * NEWS: Mention the change.
33645
33646 2008-10-18  Bruno Haible  <bruno@clisp.org>
33647
33648         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33649
33650         Move the getdomainname() declaration to <unistd.h>.
33651         * lib/getdomainname.h: Remove file.
33652         * lib/unistd.in.h (getdomainname): New declaration.
33653         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33654         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33655         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33656         HAVE_GETDOMAINNAME.
33657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33658         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33659         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33660         (Depends-on): Add unistd, extensions.
33661         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33662         (Includes): Specify <unistd.h> instead of getdomainname.h.
33663         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33664         HAVE_GETDOMAINNAME.
33665         * NEWS: Mention the change.
33666
33667 2008-10-18  Bruno Haible  <bruno@clisp.org>
33668
33669         * modules/dirent: New file.
33670         * m4/dirent_h.m4: New file.
33671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33672         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33673         * modules/fchdir (Files): Remove lib/dirent.in.h.
33674         (Depends-on): Add dirent.
33675         (Makefile.am): Move rules to modules/dirent.
33676         * doc/posix-headers/dirent.texi: Mention the new module.
33677
33678 2008-10-18  Bruno Haible  <bruno@clisp.org>
33679
33680         Avoid -Wunused-parameter warnings in public gnulib header files.
33681         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33682         macro.
33683         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33684
33685 2008-10-18  Bruno Haible  <bruno@clisp.org>
33686
33687         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33688         * doc/glibc-functions/error.texi: Mention the module 'error'.
33689         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33690         * doc/glibc-functions/getdomainname.texi: Mention the module
33691         'getdomainname'.
33692         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33693         * doc/glibc-functions/getpagesize.texi: Mention the module
33694         'getpagesize'.
33695         * doc/glibc-functions/getusershell.texi: Mention the module
33696         'getusershell'.
33697         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33698         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33699         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33700         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33701         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33702         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33703         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33704         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33705         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33706         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33707         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33708         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33709         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33710         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33711
33712 2008-10-17  Bruno Haible  <bruno@clisp.org>
33713
33714         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33715         HP-UX and IRIX, use -0.0L.
33716         * tests/test-ceill.c (minus_zero): Likewise.
33717         * tests/test-floorl.c (minus_zero): Likewise.
33718         * tests/test-frexpl.c (minus_zero): Likewise.
33719         * tests/test-isnan.c (minus_zerol): Likewise.
33720         * tests/test-isnanl.h (minus_zero): Likewise.
33721         * tests/test-ldexpl.c (minus_zero): Likewise.
33722         * tests/test-roundl.c (minus_zero): Likewise.
33723         * tests/test-signbit.c (minus_zerol): Likewise.
33724         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33725         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33726         * tests/test-truncl.c (minus_zero): Likewise.
33727         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33728         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33729         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33730         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33731
33732 2008-10-17  Bruno Haible  <bruno@clisp.org>
33733
33734         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33735         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33736         that it gets activated only for gcc >= 3.0.
33737         * lib/dirent.in.h: Likewise.
33738         * lib/errno.in.h: Likewise.
33739         * lib/fcntl.in.h: Likewise.
33740         * lib/float.in.h: Likewise.
33741         * lib/iconv.in.h: Likewise.
33742         * lib/inttypes.in.h: Likewise.
33743         * lib/locale.in.h: Likewise.
33744         * lib/math.in.h: Likewise.
33745         * lib/netdb.in.h: Likewise.
33746         * lib/netinet_in.in.h: Likewise.
33747         * lib/search.in.h: Likewise.
33748         * lib/signal.in.h: Likewise.
33749         * lib/spawn.in.h: Likewise.
33750         * lib/stdarg.in.h: Likewise.
33751         * lib/stdint.in.h: Likewise.
33752         * lib/stdio.in.h: Likewise.
33753         * lib/stdlib.in.h: Likewise.
33754         * lib/string.in.h: Likewise.
33755         * lib/strings.in.h: Likewise.
33756         * lib/sys_file.in.h: Likewise.
33757         * lib/sys_ioctl.in.h: Likewise.
33758         * lib/sys_select.in.h: Likewise.
33759         * lib/sys_socket.in.h: Likewise.
33760         * lib/sys_stat.in.h: Likewise.
33761         * lib/sys_time.in.h: Likewise.
33762         * lib/sysexits.in.h: Likewise.
33763         * lib/time.in.h: Likewise.
33764         * lib/unistd.in.h: Likewise.
33765         * lib/wchar.in.h: Likewise.
33766         * lib/wctype.in.h: Likewise.
33767         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33768
33769 2008-10-17  Jim Meyering  <meyering@redhat.com>
33770
33771         ignore-value: don't depend on inline module
33772         * modules/ignore-value (Depends-on): Remove 'inline'.
33773         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33774         Suggestion from Bruno Haible.
33775
33776 2008-10-17  Bruno Haible  <bruno@clisp.org>
33777
33778         New implementation of condition variables for Win32.
33779         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33780         (gl_linked_waitqueue_t): New type.
33781         (gl_cond_t): Use it.
33782         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33783         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33784         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33785         (glthread_cond_init_func, glthread_cond_wait_func,
33786         glthread_cond_timedwait_func, glthread_cond_signal_func,
33787         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33788         Reimplemented on the basis of gl_linked_waitqueue_t.
33789         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33790         gl_waitqueue_t.
33791         (gl_rwlock_t): Update.
33792         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33793
33794 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33795
33796         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33797         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33798
33799 2008-10-17  Jim Meyering  <meyering@redhat.com>
33800
33801         ignore-value: new module
33802         * modules/ignore-value: New file.
33803         * lib/ignore-value.h: New file.
33804         * MODULES.html.sh (Compiler warning management): New section,
33805         just for this module.  More to come.
33806
33807 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33808
33809         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33810         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33811         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33812
33813 2008-10-16  Jim Meyering  <meyering@redhat.com>
33814
33815         openat-die.c: avoid 'no previous prototype' warning
33816         * lib/openat-die.c: Include "openat.h".
33817         Reported by Reuben Thomas <rrt@sc3d.org>.
33818
33819 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33820
33821         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33822         * lib/netdb.in.h: Fix typo.
33823         Reported by Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/netdb.in.h: Include sys/socket.h for platforms without
33826         netdb.h, to get structures like hostent on MinGW.
33827         * modules/netdb (Depends-on): Add sys_socket.
33828
33829 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33830
33831         * modules/netdb, modules/netdb-tests: New file.
33832         * m4/netdb_h.m4: New file.
33833         * lib/netdb.in.h: Add, currently just an empty file pending
33834         definitions.
33835         * tests/test-netdb.c: New file.
33836         * doc/posix-headers/netdb.texi: Mention that we replace it if
33837         needed.
33838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33839         netdb.
33840
33841 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33842
33843         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33844         with code.
33845
33846 2008-10-13  Bruno Haible  <bruno@clisp.org>
33847
33848         * lib/glthread/cond.c (glthread_cond_wait_func,
33849         glthread_cond_timedwait_func): Add a comment.
33850
33851 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33852
33853         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33854         * tests/test-select.c: Likewise,
33855
33856 2008-10-13  Bruno Haible  <bruno@clisp.org>
33857
33858         * lib/glthread/cond.c (glthread_cond_wait_func,
33859         glthread_cond_timedwait_func): Fix variable name.
33860         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33861
33862 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33863
33864         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33865         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33866         struct sockaddr.sa_len.
33867         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33868
33869 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33870
33871         * build-aux/pmccabe2html: Add css and css_url parameters.
33872
33873 2008-10-12  Bruno Haible  <bruno@clisp.org>
33874
33875         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33876         calling aclx_get.
33877         Reported by Rainer Tammer <tammer@tammer.net>.
33878
33879 2008-10-12  Bruno Haible  <bruno@clisp.org>
33880
33881         Use msvcrt aware primitives for creation/termination of Win32 threads.
33882         * lib/glthread/thread.c: Include <process.h>.
33883         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33884         (wrapper_func): Update signature.
33885         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33886
33887 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33888             Bruno Haible  <bruno@clisp.org>
33889
33890         Provide a Win32 implementation of the 'cond' module.
33891         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33892         * lib/glthread/cond.c (glthread_cond_init_func,
33893         glthread_cond_wait_func, glthread_cond_timedwait_func,
33894         glthread_cond_signal_func, glthread_cond_broadcast_func,
33895         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33896         * modules/cond (Dependencies): Add gettimeofday.
33897
33898 2008-10-11  Bruno Haible  <bruno@clisp.org>
33899
33900         Make sleep work on older versions of mingw.
33901         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33902         only whether it exists.
33903         * doc/posix-functions/sleep.texi: Mention the problem with older
33904         versions of mingw.
33905
33906 2008-10-11  Bruno Haible  <bruno@clisp.org>
33907
33908         New module 'shutdown'.
33909         * modules/shutdown: New file.
33910         * lib/sys_socket.in.h (shutdown): New declaration.
33911         * lib/winsock.c (shutdown): New function.
33912         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33913         GNULIB_SHUTDOWN.
33914         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33915         * doc/posix-functions/shutdown.texi: Document the new module.
33916
33917 2008-10-11  Jim Meyering  <meyering@redhat.com>
33918
33919         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33920
33921 2008-10-11  Bruno Haible  <bruno@clisp.org>
33922
33923         New module 'fclose'.
33924         * modules/fclose: New file.
33925         * lib/stdio.in.h (fclose): New declaration.
33926         * lib/fclose.c: New file.
33927         * m4/fclose.m4: New file.
33928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33929         REPLACE_FCLOSE.
33930         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33931         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33932         REPLACE_FCLOSE.
33933         * modules/close (Depends-on): fclose.
33934         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33935
33936 2008-10-11  Bruno Haible  <bruno@clisp.org>
33937
33938         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33939         set errno and don't call _close.
33940
33941 2008-10-10  Bruno Haible  <bruno@clisp.org>
33942
33943         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33944         ACL, not afterwards. Fixes test failure on Cygwin.
33945
33946 2008-10-09  Ben Pfaff  <blp@gnu.org>
33947
33948         * build-aux/announce-gen: Fix gnulib version related part of usage
33949         message.  Die with a useful error message if no tarballs are
33950         found.
33951
33952 2008-10-10  Jim Meyering  <meyering@redhat.com>
33953
33954         bootstrap: use git's --depth=N option only if it's supported
33955         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33956         recognize the --depth option.  Reported by Pádraig Brady.
33957
33958 2008-10-09  Bruno Haible  <bruno@clisp.org>
33959
33960         New module 'ioctl'.
33961         * modules/ioctl: New file.
33962         * lib/sys_socket.in.h (ioctl): Remove declaration.
33963         * lib/winsock.c: Include <sys/ioctl.h>.
33964         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33965         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33966         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33967         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33968         * doc/posix-functions/ioctl.texi: Mention the new module.
33969
33970 2008-10-09  Bruno Haible  <bruno@clisp.org>
33971
33972         New module 'sys_ioctl'.
33973         * lib/sys_ioctl.in.h: New file.
33974         * m4/sys_ioctl_h.m4: New file.
33975         * modules/sys_ioctl: New file.
33976         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33977
33978 2008-10-09  Bruno Haible  <bruno@clisp.org>
33979
33980         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33981         * lib/winsock.c: Include <stdarg.h>.
33982         (rpl_ioctl): Change to second argument 'int' and then varargs.
33983
33984 2008-10-09  Bruno Haible  <bruno@clisp.org>
33985
33986         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33987         when the sys_socket module is present and the system has <winsock2.h>.
33988
33989 2008-10-09  Bruno Haible  <bruno@clisp.org>
33990
33991         * doc/posix-functions/close.texi: Mention module 'close' instead of
33992         module 'sys_socket'.
33993
33994 2008-10-09  Bruno Haible  <bruno@clisp.org>
33995
33996         * doc/glibc-headers/sys_ioctl.texi: New file.
33997         * doc/gnulib.texi: Include it.
33998
33999 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34000             Bruno Haible  <bruno@clisp.org>
34001
34002         Combine the two replacements of 'close'.
34003         * lib/sys_socket.in.h (close): Define to a reminder to include
34004         <unistd.h>.
34005         (_gl_close_fd_maybe_socket): New declaration.
34006         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34007         * lib/winsock.c (close): Remove undefinition.
34008         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34009         needed for the gnulib module 'close'.
34010         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34011         define to an error symbol or to a warning, if suitable.
34012         * lib/close.c: Include <sys/socket.h>.
34013         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34014         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34015         UNISTD_H_HAVE_WINSOCK2_H.
34016         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34018         UNISTD_H_HAVE_WINSOCK2_H.
34019         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34020         (configure.ac): Set a module indicator.
34021         (Makefile.am): Substitute GNULIB_CLOSE.
34022         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34023         * modules/poll-tests (Depends-on): Add close.
34024         * modules/select-tests (Depends-on): Likewise.
34025
34026 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34027             Bruno Haible  <bruno@clisp.org>
34028
34029         New module 'close'.
34030         * modules/close: New file.
34031         * lib/unistd.in.h (close): Move declaration out of the
34032         FCHDIR_REPLACEMENT scope.
34033         (_gl_unregister_fd): New declaration.
34034         * lib/close.c: New file.
34035         * lib/fchdir.c (rpl_close): Remove function.
34036         * m4/close.m4: New file.
34037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34038         close.
34039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34040         REPLACE_CLOSE.
34041         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34042         REPLACE_CLOSE.
34043         * modules/fchdir (Depends-on): Add close.
34044
34045 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34046             Bruno Haible  <bruno@clisp.org>
34047
34048         * lib/fcntl.in.h (open): Simplify conditionals.
34049         (_gl_register_fd): New declaration.
34050         * lib/fchdir.c (rpl_open): Remove function.
34051         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34052         also.
34053         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34055         open.
34056
34057 2008-10-09  Jim Meyering  <meyering@redhat.com>
34058
34059         GNUmakefile: use the more name-space-friendly "_version"
34060         * top/GNUmakefile (_dummy): Update.
34061         (_version): Rename from "version".
34062
34063 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34064             Bruno Haible  <bruno@clisp.org>
34065
34066         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34067         rpl_close.
34068         (_gl_register_fd): New function, extracted from rpl_open.
34069         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34070         (rpl_open, rpl_opendir): Use _gl_register_fd.
34071
34072 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34073
34074         Fix organization of 'open' replacement.
34075         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34076         (gl_FUNC_OPEN): Use it.
34077         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34078
34079 2008-10-08  Bruno Haible  <bruno@clisp.org>
34080
34081         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34082
34083 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34084
34085         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34086         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34087         listen).
34088
34089 2008-10-08  Eric Blake  <ebb9@byu.net>
34090
34091         GNUmakefile: add 'make version' target
34092         * top/GNUmakefile (_curr-ver): Split version update rules...
34093         (version): ...into a target.
34094
34095 2008-10-07  Bruno Haible  <bruno@clisp.org>
34096
34097         Use a more portable replacement expression for -0.0L.
34098         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34099         instead of -0.0L. Fix m4 quotation.
34100
34101         * tests/test-signbit.c: Include <float.h>.
34102         (minus_zero): New variable.
34103         (test_signbitl): Use minus_zero instead of -zero.
34104         * modules/signbit-tests (Depends-on): Add float.
34105
34106         * tests/test-ceill.c: Include <float.h>.
34107         (zero): Remove variable.
34108         (minus_zero): New variable.
34109         (main): Use minus_zero instead of -zero.
34110         * modules/ceill-tests (Depends-on): Add float.
34111
34112         * tests/test-floorl.c: Include <float.h>.
34113         (zero): Remove variable.
34114         (minus_zero): New variable.
34115         (main): Use minus_zero instead of -zero.
34116         * modules/floorl-tests (Depends-on): Add float.
34117
34118         * tests/test-roundl.c: Include <float.h>.
34119         (zero): Remove variable.
34120         (minus_zero): New variable.
34121         (main): Use minus_zero instead of -zero.
34122         * modules/roundl-tests (Depends-on): Add float.
34123
34124         * tests/test-truncl.c: Include <float.h>.
34125         (zero): Remove variable.
34126         (minus_zero): New variable.
34127         (main): Use minus_zero instead of -zero.
34128         * modules/truncl-tests (Depends-on): Add float.
34129
34130         * tests/test-frexpl.c (zero): Remove variable.
34131         (minus_zero): New variable.
34132         (main): Use minus_zero instead of -zero.
34133         * modules/frexpl-tests (Depends-on): Add float.
34134
34135         * tests/test-isnan.c (zerol): Remove variable.
34136         (minus_zerol): New variable.
34137         (test_long_double): Use minus_zerol instead of -zerol.
34138         * modules/isnan-tests (Depends-on): Add float.
34139
34140         * tests/test-isnanl.h (zero): Remove variable.
34141         (minus_zero): New variable.
34142         (main): Use minus_zero instead of -zero.
34143         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34144         * modules/isnanl-tests (Depends-on): Add float.
34145
34146         * tests/test-ldexpl.c (zero): Remove variable.
34147         (minus_zero): New variable.
34148         (main): Use minus_zero instead of -zero.
34149         * modules/ldexpl-tests (Depends-on): Add float.
34150
34151         * tests/test-snprintf-posix.h (zerol): Remove variable.
34152         (minus_zerol): New variable.
34153         (test_function): Use minus_zerol instead of -zerol.
34154         * modules/snprintf-posix-tests (Depends-on): Add float.
34155         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34156
34157         * tests/test-sprintf-posix.h (zerol): Remove variable.
34158         (minus_zerol): New variable.
34159         (test_function): Use minus_zerol instead of -zerol.
34160         * modules/sprintf-posix-tests (Depends-on): Add float.
34161         * modules/vsprintf-posix-tests (Depends-on): Add float.
34162
34163         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34164         (minus_zerol): New variable.
34165         (test_function): Use minus_zerol instead of -zerol.
34166         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34167
34168         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34169         (minus_zerol): New variable.
34170         (test_function): Use minus_zerol instead of -zerol.
34171         * modules/vasprintf-posix-tests (Depends-on): Add float.
34172
34173 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34174
34175         * MODULES.html.sh (Support for building documentation): Mention
34176         pmccabe2html.  Sort entries.
34177
34178         Add pmccabe2html module, from gnupdf.
34179         * build-aux/pmccabe.css: New file.
34180         * build-aux/pmccabe2html: New file.
34181         * m4/pmccabe2html.m4: New file.
34182         * modules/pmccabe2html: New file.
34183
34184 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34185
34186         flock: new module
34187         * MODULES.html.sh: Add to list of modules.
34188         * lib/flock.c: flock implementation for Windows and Unix systems
34189         which have fcntl.
34190         * doc/glibc-functions/flock.texi: Update documentation.
34191         * lib/sys_file.in.h: <sys/file.h> header file.
34192         * m4/flock.m4: M4 macros.
34193         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34194         * modules/flock: flock module.
34195         * modules/flock-tests: flock tests module.
34196         * modules/sys_file: sys/file.h module.
34197         * tests/test-flock.c: test suite for flock.
34198
34199 2008-10-06  Jim Meyering  <meyering@redhat.com>
34200
34201         bootstrap: check for LT_INIT more portably still ;-)
34202         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34203         Spotted by Bruno Haible.
34204
34205 2008-10-06  Eric Blake  <ebb9@byu.net>
34206
34207         test-signbit: avoid tripping Irix cc bug on -0.0L
34208         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34209         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34210         entire testsuite consistent and avoids an Irix 6.2 bug.
34211
34212 2008-10-05  Bruno Haible  <bruno@clisp.org>
34213             Jim Meyering  <jim@meyering.net>
34214
34215         Add an option for ignoring EPIPE during close_stdout.
34216         * lib/closeout.h: Include <stdbool.h>.
34217         (close_stdout_set_ignore_EPIPE): New declaration.
34218         * lib/closeout.c: Include <stdbool.h>.
34219         (ignore_EPIPE): New variable.
34220         (close_stdout_set_ignore_EPIPE): New function.
34221         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34222         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34223         failure.
34224         * modules/closeout (Depends-on): Add stdbool.
34225
34226 2008-10-05  Bruno Haible  <bruno@clisp.org>
34227
34228         * modules/accept: New file.
34229         * modules/bind: New file.
34230         * modules/connect: New file.
34231         * modules/getpeername: New file.
34232         * modules/getsockname: New file.
34233         * modules/getsockopt: New file.
34234         * modules/listen: New file.
34235         * modules/recv: New file.
34236         * modules/recvfrom: New file.
34237         * modules/send: New file.
34238         * modules/sendto: New file.
34239         * modules/setsockopt: New file.
34240         * modules/socket: New file.
34241         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34242         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34243         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34244         the particular module is requested. Add a link warning when the
34245         particular module is not requested.
34246         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34247         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34248         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34249         the particular module is requested.
34250         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34251         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34252         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34253         * modules/sys_socket (Depends-on): Add link-warning.
34254         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34255         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34256         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34257         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34258         GL_LINK_WARNING.
34259         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34260         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34261         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34262         * doc/posix-functions/getpeername.texi: Mention the new module
34263         'getpeername'.
34264         * doc/posix-functions/getsockname.texi: Mention the new module
34265         'getsockname'.
34266         * doc/posix-functions/getsockopt.texi: Mention the new module
34267         'getsockopt'.
34268         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34269         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34270         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34271         * doc/posix-functions/send.texi: Mention the new module 'send'.
34272         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34273         * doc/posix-functions/setsockopt.texi: Mention the new module
34274         'setsockopt'.
34275         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34276         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34277         listen, connect, accept.
34278         * modules/select-tests (Depends-on): Likewise.
34279
34280 2008-10-05  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/winsock.c (strerror): Remove unused #undef.
34283         (rpl_close): Remove unused local variable.
34284
34285         * modules/sys_socket (Depends-on); Add errno.
34286
34287 2008-10-05  Bruno Haible  <bruno@clisp.org>
34288
34289         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34290         (select): Add a link warning when the 'select' module is not used.
34291         * modules/sys_select (Depends-on): Add link-warning.
34292         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34293         Suggested by Paolo Bonzini.
34294
34295 2008-10-05  Jim Meyering  <meyering@redhat.com>
34296
34297         bootstrap: check for LT_INIT more portably
34298         * build-aux/bootstrap: Avoid using grep -E, since it's not
34299         portable enough.  Suggestion from Bruno Haible.
34300
34301 2008-10-05  Bruno Haible  <bruno@clisp.org>
34302
34303         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34304         as being fixed by gnulib.
34305
34306 2008-10-05  Bruno Haible  <bruno@clisp.org>
34307
34308         * modules/select-tests: New file, mostly copied from
34309         modules/sys_select-tests.
34310         * tests/test-select.c: New file, mostly copied from
34311         tests/test-sys_select.c.
34312         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34313         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34314         (Makefile.am): Remove test_sys_select_LDADD.
34315
34316         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34317         to an undefined symbol, for an error message.
34318         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34319         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34320         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34321         winsock-select.c here.
34322         * modules/sys_select (Files): Remove lib/winsock-select.c.
34323         (Depends-on): Remove alloca.
34324         (Makefile.am): Substitute GNULIB_SELECT.
34325         * modules/select: New file.
34326         * doc/posix-functions/select.texi: Update.
34327
34328 2008-10-05  Bruno Haible  <bruno@clisp.org>
34329
34330         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34331         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34332         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34333         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34334         getdtablesize.
34335         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34336         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34337
34338 2008-10-05  Bruno Haible  <bruno@clisp.org>
34339
34340         * modules/getdtablesize-tests: New file.
34341         * tests/test-getdtablesize.c: New file.
34342
34343         New module 'getdtablesize'.
34344         * lib/unistd.in.h (getdtablesize): New declaration.
34345         * lib/getdtablesize.c: New file.
34346         * m4/getdtablesize.m4: New file.
34347         * modules/getdtablesize: New file.
34348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34349         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34350         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34351         HAVE_GETDTABLESIZE.
34352         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34353
34354 2008-10-05  Bruno Haible  <bruno@clisp.org>
34355
34356         * modules/sched (Makefile.am): Fix typo.
34357         Reported by Simon Josefsson.
34358
34359 2008-10-05  Jim Meyering  <meyering@redhat.com>
34360
34361         bootstrap: check for LT_INIT, too
34362         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34363         are deprecated.  Suggestion from Ralf Wildenhues.
34364
34365 2008-10-05  Bruno Haible  <bruno@clisp.org>
34366
34367         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34368         overriding them by ours.
34369         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34370
34371 2008-10-05  Jim Meyering  <meyering@redhat.com>
34372
34373         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34374         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34375         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34376
34377 2008-10-04  Bruno Haible  <bruno@clisp.org>
34378
34379         * modules/dup2 (License): Change to LGPLv2+.
34380         * modules/sleep (License): Likewise.
34381         * modules/perror (License): Likewise.
34382         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34383         Blake.
34384         * modules/signal (License): Likewise.
34385         * modules/sigprocmask (License): Likewise.
34386         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34387         Meyering.
34388
34389 2008-10-04  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34392         Reported by Rainer Tammer <tammer@tammer.net>.
34393
34394 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34395             Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34398         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34399         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34400
34401 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34402
34403         filevercmp: new module
34404         * lib/filevercmp.h: New function filevercmp comparing version strings.
34405         * lib/filevercmp.c: Implementation of filevercmp function.
34406         * modules/filevercmp: Module metadata.
34407         * tests/test-filevercmp.c: Unit test for new module.
34408         * modules/filevercmp-tests: Unit test metadata.
34409         * MODULES.html.sh: Add filevercmp module.
34410
34411 2008-10-03  Bruno Haible  <bruno@clisp.org>
34412
34413         * lib/c-ctype.h: Add comment.
34414         Reported by Jim Meyering.
34415
34416 2008-10-02  Bruno Haible  <bruno@clisp.org>
34417
34418         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34419
34420 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34421
34422         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34423         name of bootstrap.conf accordingly.
34424
34425 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34426
34427         * build-aux/bootstrap: Install git-merge-changelog configuration
34428         items into .gitconfig if needed.
34429
34430 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34431
34432         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34433         git repository, and initialize/update it accordingly.
34434
34435 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34436
34437         * modules/fsync-tests: New file.
34438         * tests/test-fsync.c: New file.
34439
34440         New module 'fsync'.
34441         * lib/fsync.c: New file.
34442         * m4/fsync.m4: New file.
34443         * modules/fsync: New file.
34444         * lib/unistd.in.h (fsync): New declaration.
34445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34446         GNULIB_FSYNC and HAVE_FSYNC.
34447         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34448         * MODULES.html.sh (posix_functions): Add fsync.
34449         * doc/posix-functions/fsync.texi: Mention the new module.
34450
34451 2008-10-02  Jim Meyering  <meyering@redhat.com>
34452
34453         fts.c: sync with similar code from coreutils' remove.c
34454         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34455         Guard also with "#if defined __linux__", since for now at least,
34456         this code is Linux-kernel-specific.
34457
34458 2008-10-02  Jim Meyering  <meyering@redhat.com>
34459
34460         fts: bug fixes
34461         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34462         Include <sys/vfs.h>, not <sys/statfs.h>.
34463
34464         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34465         Include <sys/vfs.h>, not <sys/statfs.h>.
34466
34467 2008-10-01  Bruno Haible  <bruno@clisp.org>
34468
34469         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34470         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34471         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34472         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34473         * doc/posix-functions/posix_spawnp.texi: Likewise.
34474         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34475         whether posix_spawn actually works.
34476         * m4/pipe.m4 (gl_PIPE): Likewise.
34477         * modules/execute (Files): Add m4/posix_spawn.m4.
34478         * modules/pipe (Files): Add m4/posix_spawn.m4.
34479         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34480
34481 2008-10-01  Jim Meyering  <meyering@redhat.com>
34482
34483         remove trailing spaces
34484         * NEWS: Likewise.
34485         * lib/poll.c (poll): Likewise.
34486         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34487         * lib/winsock.c (rpl_close): Likewise.
34488         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34489         * modules/yield: Likewise.
34490         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34491         * tests/test-sys_select.c (connect_to_socket): Likewise.
34492
34493         fts.c: adjust a new interface to be more generally useful
34494         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34495         (fts_build): Adjust caller.
34496
34497 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34498
34499         * modules/cond-tests: New file.
34500         * tests/test-cond.c: New file.
34501
34502 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34503             Bruno Haible  <bruno@clisp.org>
34504
34505         * modules/cond (Dependencies): Add errno, time.
34506         * lib/glthread/cond.h: Include <time.h>.
34507         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34508         across platforms.
34509
34510 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34511             Bruno Haible  <bruno@clisp.org>
34512
34513         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34514
34515 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34516             Bruno Haible  <bruno@clisp.org>
34517
34518         * modules/tls-tests (Depends-on): Add thread, yield.
34519         (configure.ac): Remove all checks.
34520         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34521         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34522         gl_thread_self): Remove definitions. Include glthread/thread.h and
34523         glthread/yield.h instead.
34524         (test_tls): Pass an additional NULL argument to gl_thread_join.
34525
34526 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34527             Bruno Haible  <bruno@clisp.org>
34528
34529         * modules/lock-tests (Depends-on): Add thread, yield.
34530         (configure.ac): Remove all checks.
34531         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34532         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34533         gl_thread_self): Remove definitions. Include glthread/thread.h and
34534         glthread/yield.h instead.
34535         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34536         additional NULL argument to gl_thread_join.
34537
34538 2008-09-30  Bruno Haible  <bruno@clisp.org>
34539
34540         Fix the Win32 implementation of the 'thread' module.
34541         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34542         pointer type.
34543         (gl_thread_self): Invoke gl_thread_self_func.
34544         (gl_thread_self_func): New declaration.
34545         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34546         (do_init_self_key, init_self_key): New functions.
34547         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34548         Remove some fields.
34549         (running_threads, running_lock): Remove variables.
34550         (get_current_thread_handle): New function.
34551         (gl_thread_self_func, wrapper_func, glthread_create_func,
34552         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34553         simplified.
34554
34555 2008-09-30  Bruno Haible  <bruno@clisp.org>
34556
34557         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34558         files.
34559
34560 2008-09-30  Jim Meyering  <meyering@redhat.com>
34561
34562         fts.m4: correct the test for statfs.f_type
34563         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34564         when checking for statfs.f_type.
34565
34566 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34567
34568         tests: avoid some compiler warnings
34569         * tests/test-memchr.c (main): Pass NULL indirectly.
34570         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34571
34572 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34573
34574         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34575         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34576         exactly specified dayshifts.
34577         (dayshift): New rule.
34578         (rel): Add dayshift.
34579         (relative_time_table) [tomorrow, yesterday, today, now]:
34580         Use tDAY_SHIFT in place of tDAY_UNIT.
34581         * tests/test-getdate.c: Add tests for now-disallowed countable
34582         dayshifts, e.g., "4 yesterday ago".
34583
34584 2008-09-29  Bruno Haible  <bruno@clisp.org>
34585
34586         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34587         * tests/test-posix_spawn1.in.sh: Renamed from
34588         tests/test-posix_spawn.in.sh.
34589         * tests/test-posix_spawn2.c: New file.
34590         * tests/test-posix_spawn2.in.sh: New file.
34591         * modules/posix_spawnp-tests (Files): Update.
34592         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34593
34594 2008-09-29  Bruno Haible  <bruno@clisp.org>
34595
34596         Propagate effects of putenv/setenv/unsetenv to child processes.
34597         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34598         * lib/pipe.c (create_pipe): Likewise.
34599
34600 2008-09-29  Bruno Haible  <bruno@clisp.org>
34601
34602         Enable use of shell scripts as executables in mingw.
34603         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34604         run the program as a shell script.
34605         * lib/pipe.c (create_pipe): Likewise.
34606         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34607         resulting array.
34608
34609 2008-09-29  Eric Blake  <ebb9@byu.net>
34610
34611         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34612
34613 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34614
34615         * doc/posix-functions/accept.texi: Update mingw problems.
34616         * doc/posix-functions/bind.texi: Update mingw problems.
34617         * doc/posix-functions/close.texi: Update mingw problems.
34618         * doc/posix-functions/connect.texi: Update mingw problems.
34619         * doc/posix-functions/getpeername.texi: Update mingw problems.
34620         * doc/posix-functions/getsockname.texi: Update mingw problems.
34621         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34622         * doc/posix-functions/ioctl.texi: Update mingw problems.
34623         * doc/posix-functions/listen.texi: Update mingw problems.
34624         * doc/posix-functions/recv.texi: Update mingw problems.
34625         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34626         * doc/posix-functions/select.texi: Update mingw problems.
34627         * doc/posix-functions/send.texi: Update mingw problems.
34628         * doc/posix-functions/sendto.texi: Update mingw problems.
34629         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34630         * doc/posix-functions/socket.texi: Update mingw problems.
34631
34632 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34633             Bruno Haible  <bruno@clisp.org>
34634
34635         * lib/sys_select.in.h: Include sys/time.h.
34636         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34637         * modules/sys_select: Depend on sys_time.
34638         * tests/test-sys_select.c: Test that sys/select.h defines struct
34639         timeval fully.
34640
34641 2008-09-29  Bruno Haible  <bruno@clisp.org>
34642
34643         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34644         * lib/sys_select.in.h: Likewise.
34645
34646 2008-09-29  Bruno Haible  <bruno@clisp.org>
34647
34648         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34649
34650 2008-09-29  Bruno Haible  <bruno@clisp.org>
34651
34652         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34653         Set LIBSOCKET instead of augmenting LIBS.
34654         * modules/sockets (Link): New section.
34655         * modules/sockets-tests (test_sockets_LDADD): New variable.
34656         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34657         * modules/poll-tests (test_poll_LDADD): New variable.
34658         * NEWS: Document the change.
34659
34660 2008-09-29  Bruno Haible  <bruno@clisp.org>
34661
34662         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34663         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34664         ARPA_INET_H directly.
34665         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34666
34667 2008-09-28  Bruno Haible  <bruno@clisp.org>
34668
34669         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34670         from gl_HEADER_SYS_SOCKET.
34671         (gl_HEADER_SYS_SOCKET): Invoke it.
34672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34673
34674 2008-09-28  Bruno Haible  <bruno@clisp.org>
34675
34676         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34677         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34678         Needed on OSF/1 4.0.
34679
34680 2008-09-28  Bruno Haible  <bruno@clisp.org>
34681
34682         Override open more carefully.
34683         * lib/open.c (orig_open): New function.
34684         (rpl_open): Use orig_open instead of open.
34685         * lib/fcntl.in.h: Add special invocation convention.
34686         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34687         (gl_FUNC_OPEN): Invoke it.
34688
34689         Override freopen more carefully.
34690         * lib/freopen.c (orig_freopen): New function.
34691         (rpl_freopen): Use orig_freopen instead of freopen.
34692         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34693         (gl_FUNC_FREOPEN): Invoke it.
34694
34695         Override fopen more carefully.
34696         * lib/fopen.c (orig_fopen): New function.
34697         (rpl_fopen): Use orig_fopen instead of fopen.
34698         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34699         (gl_FUNC_FOPEN): Invoke it.
34700         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34701
34702 2008-09-28  Bruno Haible  <bruno@clisp.org>
34703
34704         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34705         SIGPIPE.
34706
34707 2008-09-28  Bruno Haible  <bruno@clisp.org>
34708
34709         * tests/test-sigaction.c (handler, main): Disable the check whether
34710         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34711         glibc systems with LinuxThreads.
34712
34713 2008-09-28  Bruno Haible  <bruno@clisp.org>
34714
34715         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34716
34717         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34718         with AIX xlc.
34719         * lib/fcntl.in.h (open): Likewise.
34720         Reported by Rainer Tammer <tammer@tammer.net>.
34721
34722 2008-09-28  Bruno Haible  <bruno@clisp.org>
34723
34724         * modules/posix_spawnp-tests: New file.
34725         * tests/test-posix_spawn.c: New file.
34726         * tests/test-posix_spawn.in.sh: New file.
34727
34728         New module 'posix_spawnp'.
34729         * modules/posix_spawnp: New file.
34730         * lib/spawnp.c: New file, from GNU libc with modifications.
34731         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34732
34733         New module 'posix_spawn'.
34734         * modules/posix_spawn: New file.
34735         * lib/spawn.c: New file, from GNU libc with modifications.
34736         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34737
34738         New module 'posix_spawnattr_destroy'.
34739         * modules/posix_spawnattr_destroy: New file.
34740         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34741         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34742         module.
34743
34744         New module 'posix_spawnattr_setsigmask'.
34745         * modules/posix_spawnattr_setsigmask: New file.
34746         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34747         modifications.
34748         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34749         new module.
34750
34751         New module 'posix_spawnattr_getsigmask'.
34752         * modules/posix_spawnattr_getsigmask: New file.
34753         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34754         modifications.
34755         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34756         new module.
34757
34758         New module 'posix_spawnattr_setsigdefault'.
34759         * modules/posix_spawnattr_setsigdefault: New file.
34760         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34761         modifications.
34762         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34763         new module.
34764
34765         New module 'posix_spawnattr_getsigdefault'.
34766         * modules/posix_spawnattr_getsigdefault: New file.
34767         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34768         modifications.
34769         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34770         new module.
34771
34772         New module 'posix_spawnattr_setschedpolicy'.
34773         * modules/posix_spawnattr_setschedpolicy: New file.
34774         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34775         modifications.
34776         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34777         new module.
34778
34779         New module 'posix_spawnattr_getschedpolicy'.
34780         * modules/posix_spawnattr_getschedpolicy: New file.
34781         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34782         modifications.
34783         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34784         new module.
34785
34786         New module 'posix_spawnattr_setschedparam'.
34787         * modules/posix_spawnattr_setschedparam: New file.
34788         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34789         modifications.
34790         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34791         new module.
34792
34793         New module 'posix_spawnattr_getschedparam'.
34794         * modules/posix_spawnattr_getschedparam: New file.
34795         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34796         modifications.
34797         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34798         new module.
34799
34800         New module 'posix_spawnattr_setpgroup'.
34801         * modules/posix_spawnattr_setpgroup: New file.
34802         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34803         modifications.
34804         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34805         module.
34806
34807         New module 'posix_spawnattr_getpgroup'.
34808         * modules/posix_spawnattr_getpgroup: New file.
34809         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34810         modifications.
34811         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34812         module.
34813
34814         New module 'posix_spawnattr_setflags'.
34815         * modules/posix_spawnattr_setflags: New file.
34816         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34817         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34818         module.
34819
34820         New module 'posix_spawnattr_getflags'.
34821         * modules/posix_spawnattr_getflags: New file.
34822         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34823         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34824         module.
34825
34826         New module 'posix_spawnattr_init'.
34827         * modules/posix_spawnattr_init: New file.
34828         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34829         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34830         module.
34831
34832         New module 'posix_spawn_file_actions_destroy'.
34833         * modules/posix_spawn_file_actions_destroy: New file.
34834         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34835         modifications.
34836         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34837         the new module.
34838
34839         New module 'posix_spawn_file_actions_addopen'.
34840         * modules/posix_spawn_file_actions_addopen: New file.
34841         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34842         modifications.
34843         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34844         the new module.
34845
34846         New module 'posix_spawn_file_actions_adddup2'.
34847         * modules/posix_spawn_file_actions_adddup2: New file.
34848         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34849         modifications.
34850         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34851         the new module.
34852
34853         New module 'posix_spawn_file_actions_addclose'.
34854         * modules/posix_spawn_file_actions_addclose: New file.
34855         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34856         modifications.
34857         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34858         the new module.
34859
34860         New module 'posix_spawn_file_actions_init'.
34861         * modules/posix_spawn_file_actions_init: New file.
34862         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34863         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34864         new module.
34865
34866         New module 'posix_spawn-internal'.
34867         * modules/posix_spawn-internal: New file.
34868         * lib/spawn_int.h: New file, from GNU libc with modifications.
34869         * lib/spawni.c: New file, from GNU libc with modifications.
34870         * m4/posix_spawn.m4: New file.
34871
34872         New module 'spawn'.
34873         * modules/spawn: New file.
34874         * lib/spawn.in.h: New file, from GNU libc with modifications.
34875         * m4/spawn_h.m4: New file.
34876         * doc/posix-headers/spawn.texi: Mention the new module.
34877
34878 2008-09-28  Bruno Haible  <bruno@clisp.org>
34879
34880         * modules/sched-tests: New file.
34881         * tests/test-sched.c: New file.
34882
34883         New module 'sched'.
34884         * modules/sched: New file.
34885         * lib/sched.in.h: New file.
34886         * m4/sched_h.m4: New file.
34887         * doc/posix-headers/sched.texi: Mention the new module.
34888
34889 2008-09-27  Eric Blake  <ebb9@byu.net>
34890
34891         Fix previous patch, and tweak references to $0.
34892         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34893         (func_version, func_gnulib_dir): Don't call this program
34894         gnulib-tool.
34895         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34896         with using $0 in function.
34897         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34898         (func_fatal_error): Reuse the name the user invoked us with.
34899
34900 2008-09-27  Bruno Haible  <bruno@clisp.org>
34901
34902         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34903         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34904         (gl_ICONV_H): Not here.
34905         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34906         instead of assigning ICONV_H directly.
34907
34908         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34910         WCHAR_H directly.
34911
34912 2008-09-27  Bruno Haible  <bruno@clisp.org>
34913
34914         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34915         * modules/arpa_inet (Depends-on): Add link-warning.
34916         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34917         * modules/unistd (Makefile.am): Likewise.
34918
34919 2008-09-26  Bruno Haible  <bruno@clisp.org>
34920
34921         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34922         variables.
34923         (func_version): Essentially copied from gnulib-tool.
34924         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34925         func_readlink): Copied from gnulib-tool.
34926
34927 2008-09-26  Bruno Haible  <bruno@clisp.org>
34928
34929         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34930         invoking git-version-gen.
34931
34932 2008-09-26  Bruno Haible  <bruno@clisp.org>
34933
34934         * posix-modules: Update to directory names changed on 2008-01-19.
34935         Remove commas in output before splitting into words. No more need to
34936         avoid 'ftruncate' since 2007-02-19.
34937
34938 2008-09-26  Bruno Haible  <bruno@clisp.org>
34939
34940         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34941
34942 2008-09-26  Bruno Haible  <bruno@clisp.org>
34943
34944         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34945         * modules/fwriteerror (Depends-on): Add errno.
34946
34947 2008-09-26  Bruno Haible  <bruno@clisp.org>
34948
34949         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34950         * tests/test-vc-list-files-cvs.sh: Likewise.
34951
34952 2008-09-26  Bruno Haible  <bruno@clisp.org>
34953
34954         * doc/posix-headers/sys_resource.texi: Reorder items.
34955
34956 2008-09-26  Jim Meyering  <meyering@redhat.com>
34957
34958         fts: tweak inode comparison function
34959         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34960         inode numbers, as documented.
34961
34962         fts: sort dirent entries on inode number before traversing
34963         This avoids a quadratic, seek-related performance penalty when
34964         operating on a directory containing many entries (measurable at 10k;
34965         3.5 hours at 2 million entries with a cold cache) on certain types
34966         of file systems, including ext3 and ext4, but not tmpfs.
34967         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34968         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34969         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34970         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34971         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34972         (fts_build): Set the stat.st_ino member from D_INO.
34973         If it is likely to be useful, sort dirent entries on inode number.
34974
34975         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34976         and the struct statfs.f_type member.
34977         * modules/fts (Depends-on): Add d-ino.
34978
34979 2008-09-26  Bruno Haible  <bruno@clisp.org>
34980
34981         * modules/sigpipe-die (Depends-on): Add sigpipe.
34982
34983         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34984         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34985         and GNULIB_STDIO_H_SIGPIPE are set.
34986         * lib/stdio-write.c: New file.
34987         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34988         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34989         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34990         REPLACE_STDIO_WRITE_FUNCS.
34991         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34992         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34993         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34994         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34995         * modules/stdio (Files): Add lib/stdio-write.c.
34996         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34997         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34998         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34999         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35000         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35001         REPLACE_FPRINTF_POSIX.
35002         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35003         REPLACE_PRINTF_POSIX.
35004         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35005         REPLACE_VFPRINTF_POSIX.
35006         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35007         REPLACE_VPRINTF_POSIX.
35008         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35009         SIGPIPE issue.
35010         * doc/posix-functions/fputc.texi: Likewise.
35011         * doc/posix-functions/fputs.texi: Likewise.
35012         * doc/posix-functions/fwrite.texi: Likewise.
35013         * doc/posix-functions/printf.texi: Likewise.
35014         * doc/posix-functions/putc.texi: Likewise.
35015         * doc/posix-functions/putchar.texi: Likewise.
35016         * doc/posix-functions/puts.texi: Likewise.
35017         * doc/posix-functions/vfprintf.texi: Likewise.
35018         * doc/posix-functions/vprintf.texi: Likewise.
35019
35020         * modules/safe-write (Depends-on): Add write.
35021
35022         * modules/sigpipe-tests: New file.
35023         * tests/test-sigpipe.c: New file.
35024         * tests/test-sigpipe.sh: New file.
35025
35026         * modules/write: New file.
35027         * lib/unistd.in.h: Include <sys/types.h>.
35028         (write): New declaration.
35029         * lib/write.c: New file.
35030         * m4/write.m4: New file.
35031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35032         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35033         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35034         GNULIB_WRITE, REPLACE_WRITE.
35035         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35036         and the SIGPIPE issue.
35037
35038         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35039         (raise): New declaration.
35040         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35041         (ext_signal): New function.
35042         (rpl_raise): New function.
35043         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35044         GNULIB_SIGNAL_H_SIGPIPE.
35045         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35046         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35047
35048         * modules/sigpipe: New file.
35049         * m4/sigpipe.m4: New file.
35050
35051 2008-09-25  Derek Price  <derek@ximbiot.com>
35052             Bruno Haible  <bruno@clisp.org>
35053
35054         * gnulib-tool (func_import): Report all license incompatibilities, not
35055         just the first one.
35056
35057 2008-09-25  Bruno Haible  <bruno@clisp.org>
35058
35059         * gnulib-tool (func_import): When computing the edits, consider not
35060         only the Makefile.ams that exist but also those that will be generated.
35061
35062 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35063
35064         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35065         fixes gnulib-tool --test warning about duplicate dependency.
35066
35067 2008-09-25  Bruno Haible  <bruno@clisp.org>
35068
35069         * gnulib-tool: Don't ask the user to perform edits in the generated
35070         Makefile.ams.
35071         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35072         apply to the Makefile.am being generated.
35073         (func_emit_tests_Makefile_am): Execute edits that apply to the
35074         Makefile.am being generated.
35075         (func_import): Setup list of Makefile.am edits before emitting the
35076         Makefile.ams, not at the end.
35077         (func_create_testdir): Update.
35078         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35079
35080 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35081
35082         * gnulib-tool (func_import): Store the --tests-base option in the
35083         comment in gnulib-cache.m4.
35084
35085 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35086
35087         * NEWS: Document increased portability that sys_select now provides.
35088
35089         * lib/sys_select.in.h: Install select wrapper.
35090         * lib/sys_socket.in.h: Use more descriptive name when there is no
35091         select wrapper.
35092         * lib/winsock-select.c: New.
35093         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35094         Require gl_HEADER_SYS_SOCKET.
35095         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35096         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35097         * tests/test-sys_select.c: Add functional tests.
35098
35099 2008-09-24  Eric Blake  <ebb9@byu.net>
35100
35101         open, fopen: close fd leak in last patch
35102         * lib/open.c (rpl_open): Close fd before returning error.
35103         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35104         * doc/posix-functions/open.texi (open): Document that Irix also
35105         has the bug.
35106         * doc/posix-functions/fopen.texi (fopen): Likewise.
35107         Reported by Paolo Bonzini.
35108
35109 2008-09-24  Bruno Haible  <bruno@clisp.org>
35110
35111         Ensure that a filename ending in a slash cannot be used to access a
35112         non-directory.
35113         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35114         to check whether it's really a directory.
35115         * lib/fopen.c: Include fcntl.h, unistd.h.
35116         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35117         and fdopen().
35118         * modules/fopen (Depends-on): Add unistd.
35119         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35120         * tests/test-fopen.c (main): Likewise.
35121         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35122         * doc/posix-functions/fopen.texi: Likewise.
35123         Reported by Eric Blake.
35124
35125 2008-09-23  Eric Blake  <ebb9@byu.net>
35126
35127         c-stack: avoid compiler optimizations when provoking overflow
35128         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35129         recursion harder to optimize, to ensure a stack overflow occurs.
35130         * tests/test-c-stack.c (recurse): Likewise.
35131         Borrowed from libsigsegv.
35132
35133         c-stack: work around Irix sigaltstack bug
35134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35135         whether sigaltstack uses wrong end of stack_t (copied in part from
35136         libsigsegv).
35137         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35138         Irix bug, without requiring an over-allocation.
35139         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35140         bug.
35141
35142         fopen: document mingw bug on directories
35143         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35144         not allowing a stream visiting a directory, even though reading
35145         from such a stream is not portable.
35146
35147 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35148
35149         * lib/poll.c: Rewrite.
35150         * modules/poll: Depend on alloca.
35151
35152 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35153
35154         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35155         instead define prototypes for a full set of wrappers.  Ensure
35156         that Cygwin does not use the compatibility code, which is only
35157         for MinGW.
35158         * lib/winsock.c: New.
35159         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35160         * modules/sys_socket: Add lib/winsock.c.
35161
35162         * modules/poll-tests: Add errno and perror.
35163         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35164
35165 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35166
35167         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35168
35169 2008-09-23  Bruno Haible  <bruno@clisp.org>
35170
35171         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35172         * doc/glibc-functions/*: Likewise.
35173
35174 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35175
35176         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35177         success.
35178
35179 2008-09-22  Eric Blake  <ebb9@byu.net>
35180             Bruno Haible  <bruno@clisp.org>
35181
35182         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35183         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35184         supply %A but mishandle pseudo-NaN.
35185         Reported by Simon Josefsson.
35186
35187 2008-09-21  Bruno Haible  <bruno@clisp.org>
35188
35189         * tests/test-lock.c (main): Tweak skip message.
35190         * tests/test-tls.c (main): Likewise.
35191
35192 2008-09-21  Bruno Haible  <bruno@clisp.org>
35193
35194         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35195         whether 'struct sigaction' has sa_sigaction here...
35196         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35197         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35198
35199 2008-09-21  Bruno Haible  <bruno@clisp.org>
35200
35201         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35202         section.
35203         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35204         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35205         the new section.
35206         (Support for obsolete systems lacking POSIX:2001): New section.
35207         (String handling <string.h>): Move strdup to the new section.
35208         Suggested by Simon Josefsson and Paolo Bonzini.
35209
35210 2008-09-21  Bruno Haible  <bruno@clisp.org>
35211
35212         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35213         exponents in %e and %g results on 'long double'. Needed for mingw's
35214         improved *printf functions.
35215         * tests/test-vasprintf-posix.c (test_function): Likewise.
35216         * tests/test-snprintf-posix.h (test_function): Likewise.
35217         * tests/test-sprintf-posix.h (test_function): Likewise.
35218         Reported by Eric Blake.
35219
35220 2008-09-21  Bruno Haible  <bruno@clisp.org>
35221
35222         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35223         * tests/test-sprintf-posix.h (test_function): Likewise.
35224
35225 2008-09-21  Bruno Haible  <bruno@clisp.org>
35226
35227         * modules/getpass (Depends-on): Add strdup-posix.
35228
35229         New module 'strdup-posix'.
35230         * modules/strdup-posix: New file.
35231         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35232         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35234         REPLACE_STRDUP.
35235         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35236         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35237         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35238         strdup-posix.
35239
35240         * modules/strdup (Depends-on): Remove malloc-posix.
35241
35242 2008-09-20  Bruno Haible  <bruno@clisp.org>
35243
35244         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35245         Wildenhues.
35246
35247 2008-09-20  Bruno Haible  <bruno@clisp.org>
35248
35249         Ensure that wint_t gets defined on IRIX 5.3.
35250         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35251         * lib/wctype.in.h (wint_t): Likewise.
35252         (__wctype_wint_t): Remove type.
35253         (isw*): Use wint_t instead of __wctype_wint_t.
35254         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35255         * modules/wchar (Files): Add m4/wint_t.m4.
35256         (Makefile.am): Substitute HAVE_WINT_T.
35257         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35258         * tests/test-wctype.c: Check that wint_t is defined.
35259         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35260         * doc/posix-headers/wctype.texi: Likewise.
35261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35262
35263 2008-09-18  Bruno Haible  <bruno@clisp.org>
35264
35265         * gnulib-tool (func_exit): Update comment.
35266
35267 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35268
35269         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35270         assumes strdup exists and does not depend on strdup to return
35271         ENOMEM on out of memory conditions.
35272
35273 2008-09-18  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35276         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35277         digits for the exponent.
35278
35279 2008-09-18  Jim Meyering  <meyering@redhat.com>
35280             Bruno Haible  <bruno@clisp.org>
35281
35282         * lib/vasnprintf.c (decimal_point_char): Define also if
35283         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35284
35285 2008-09-16  Bruno Haible  <bruno@clisp.org>
35286         and Eric Blake  <ebb9@byu.net>
35287
35288         vasnprintf: support Irix 5.3
35289         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35290         that mishandle long double infinity.
35291         Reported by Tom G. Christensen.
35292
35293 2008-09-16  Bruno Haible  <bruno@clisp.org>
35294
35295         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35296         Solaris 9.
35297         * doc/glibc-functions/alphasort.texi: Likewise.
35298         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35299
35300 2008-09-16  Jim Meyering  <meyering@redhat.com>
35301
35302         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35303         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35304         a umask modification leak out of a subshell.  Otherwise, the
35305         opensolaris /bin/sh would be accepted and thus cause unwarranted
35306         failures in the coreutils test suite.
35307
35308 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35309
35310         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35311         to succeed.
35312
35313 2008-09-16  Jim Meyering  <meyering@redhat.com>
35314
35315         avoid spurious test failure when library is built without ACL support
35316         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35317         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35318         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35319         * tests/test-copy-acl.sh: Likewise.
35320
35321 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35322
35323         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35324         based on character occurrence counts.
35325
35326 2008-09-15  Eric Blake  <ebb9@byu.net>
35327
35328         tests: avoid some compiler warnings
35329         * tests/test-memchr.c (main): Pass NULL indirectly.
35330         * tests/test-closein.c (main): Avoid unused variable.
35331
35332 2008-09-15  Bruno Haible  <bruno@clisp.org>
35333
35334         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35335         are missing on OpenBSD 4.0 individually.
35336         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35337
35338 2008-09-15  Bruno Haible  <bruno@clisp.org>
35339
35340         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35341         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35342         * doc/posix-functions/perror.texi: Likewise.
35343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35344         is missing.
35345         Reported by Eric Blake.
35346
35347         * lib/errno.in.h: Use replacement values >= 2000.
35348         Reported by Eric Blake.
35349
35350 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35351
35352         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35353         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35354         limit.
35355         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35356         compareseq was aborted.
35357
35358 2008-09-14  Bruno Haible  <bruno@clisp.org>
35359
35360         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35361         yvec_edit_count.
35362         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35363         (fstrcmp_bounded): Simplify result computation accordingly.
35364
35365 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35366
35367         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35368         (fstrcmp): Define in terms of fstrcmp_bounded.
35369         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35370         lower_bound argument.
35371         Return quickly if the result is certainly < lower_bound.
35372         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35373
35374 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35375
35376         * lib/diffseq.h (EARLY_ABORT): New macro.
35377         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35378         evaluates to true.
35379
35380 2008-09-14  Bruno Haible  <bruno@clisp.org>
35381
35382         * modules/perror-tests: New file.
35383         * tests/test-perror.sh: New file.
35384         * tests/test-perror.c: New file.
35385
35386         New module 'perror'.
35387         * lib/stdio.in.h (perror): New declaration.
35388         * lib/perror.c: New file.
35389         * m4/perror.m4: New file.
35390         * modules/perror: New file.
35391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35392         * doc/posix-functions/perror.texi: Mention the perror module.
35393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35394         REPLACE_PERROR.
35395         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35396         REPLACE_PERROR.
35397
35398 2008-09-14  Bruno Haible  <bruno@clisp.org>
35399
35400         * modules/stdio (Makefile.am): Reorder to match the order in
35401         lib/stdio.in.h.
35402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35403
35404 2008-09-13  Bruno Haible  <bruno@clisp.org>
35405
35406         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35407
35408 2008-09-13  Bruno Haible  <bruno@clisp.org>
35409
35410         Extend strerror to cover the added errno values.
35411         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35412         (rpl_strerror): Provide error messages for the added errno values and
35413         for the WSA* values.
35414         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35415         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35416         strerror.
35417         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35418         * modules/strerror (Depends-on): Add errno.
35419         * doc/posix-functions/strerror.texi: Document the change.
35420         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35421         and EOVERFLOW.
35422
35423 2008-09-13  Bruno Haible  <bruno@clisp.org>
35424
35425         * modules/EOVERFLOW: Remove file.
35426         * m4/eoverflow.m4: Remove file.
35427         * modules/EOVERFLOW-tests: Remove file.
35428         * tests/test-EOVERFLOW.c: Remove file.
35429         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35430         * modules/ftell (Depends-on): Likewise.
35431         * modules/getdelim (Depends-on): Likewise.
35432         * modules/getugroups (Depends-on): Likewise.
35433         * modules/poll (Depends-on): Likewise.
35434         * modules/snprintf (Depends-on): Likewise.
35435         * modules/sprintf-posix (Depends-on): Likewise.
35436         * modules/vasnprintf (Depends-on): Likewise.
35437         * modules/vasprintf (Depends-on): Likewise.
35438         * modules/vfprintf-posix (Depends-on): Likewise.
35439         * modules/vsnprintf (Depends-on): Likewise.
35440         * modules/vsprintf-posix (Depends-on): Likewise.
35441         * modules/xvasprintf (Depends-on): Likewise.
35442         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35443         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35444         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35445         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35446         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35447         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35448         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35449         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35450         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35451         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35452         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35453         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35454         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35455         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35456         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35457         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35458         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35459         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35460         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35461         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35462         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35463         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35464         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35465         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35466         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35467         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35468         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35469         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35470         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35471         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35472         * MODULES.html.sh: Remove EOVERFLOW.
35473         * NEWS: Mention the change.
35474
35475 2008-09-13  Bruno Haible  <bruno@clisp.org>
35476
35477         * modules/errno-tests: New file.
35478         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35479
35480         * lib/errno.in.h: New file.
35481         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35482         * modules/errno: New file.
35483         * doc/posix-headers/errno.texi: Update documentation.
35484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35485
35486 2008-09-13  Bruno Haible  <bruno@clisp.org>
35487
35488         * tests/test-poll.c: Use #if for native Windows, rather than testing
35489         __MSVCRT__.
35490
35491 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35492             Bruno Haible  <bruno@clisp.org>
35493
35494         * lib/glob.c: Don't include <pwd.h> on native Windows.
35495         (WINDOWS32): New macro.
35496         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35497
35498 2008-09-13  Bruno Haible  <bruno@clisp.org>
35499
35500         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35501         (ETIMEDOUT): Remove macro.
35502         (glthread_cond_timedwait_multithreaded): New declaration.
35503         (glthread_cond_timedwait): Use it.
35504         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35505         (glthread_cond_timedwait_multithreaded): New function.
35506
35507 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35508
35509         * modules/poll-tests: Do not check for io.h.
35510         * tests/test-poll.c: Check for __MSVCRT__ instead.
35511
35512 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35513
35514         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35515         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35516         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35517
35518 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35519
35520         * modules/poll-tests: New.
35521         * tests/test-poll.c: New.
35522
35523 2008-09-12  Eric Blake  <ebb9@byu.net>
35524
35525         frexp: test for NetBSD failure on -0.0
35526         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35527         not all, bugs from NetBSD 3.0 have been fixed.
35528         * doc/posix-functions/frexp.texi (frexp): Document bug.
35529         Reported by Thomas Klausner.
35530
35531         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35532         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35533         literal -0.0.
35534         Reported by Jonathan C. Patschke <jp@centtech.com>.
35535
35536 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35537
35538         * lib/glthread/cond.h: Use dummy implementation also if
35539         USE_WIN32_THREADS.
35540
35541 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35542
35543         * modules/fnmatch-posix (License): Change to LGPLv2+.
35544         * modules/fnmatch-gnu (License): Likewise.
35545
35546 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35547
35548         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35549
35550 2008-09-11  Jim Meyering  <meyering@redhat.com>
35551
35552         * users.txt: Add gtk-vnc.
35553
35554 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35555
35556         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35557         rotate amounts.
35558
35559         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35560         required for 16-bit and 8-bit rotates.
35561         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35562         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35563         UINT8_MAX instead of hard-coded constants.
35564         Suggested by Paul Eggert.
35565
35566 2008-09-07  Bruno Haible  <bruno@clisp.org>
35567
35568         * tests/test-striconveh.c (main): Check behaviour when converting from
35569         UTF-7.
35570
35571         Make striconveh work better with stateful encodings.
35572         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35573         that iconv does not increment the inptr when returning -1/EINVAL.
35574
35575 2008-09-07  Bruno Haible  <bruno@clisp.org>
35576
35577         * build-aux/config.rpath: Update according to libtool-2.2.6.
35578         * build-aux/config.libpath: Likewise.
35579
35580 2008-09-06  Bruno Haible  <bruno@clisp.org>
35581
35582         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35583         * lib/freadptr.c (freadptr): Likewise.
35584         * lib/freadseek.c (freadptrinc): Likewise.
35585         Reported by Simon Josefsson.
35586
35587 2008-09-06  Bruno Haible  <bruno@clisp.org>
35588
35589         * modules/freadptr (License): Change to LGPLv2+.
35590         * modules/freadseek (License): Likewise.
35591         Suggested by Eric Blake.
35592
35593         * modules/memchr2 (License): Change to LGPLv2+.
35594         Approved by Eric Blake.
35595
35596 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35597             Bruno Haible  <bruno@clisp.org>
35598
35599         Make gnulib-tool work with native 'sed' on AIX.
35600         * gnulib-tool (sed_noop): New variable.
35601         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35602         func_add_or_update, func_create_testdir): Use it to initialize sed
35603         script variables.
35604         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35605
35606 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35607             Bruno Haible  <bruno@clisp.org>
35608
35609         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35610         also works after #include directives.
35611
35612 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35613
35614         getdate.y: reject an out-of-range timezone value
35615         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35616         the range [-24...+24].  When specified with only one or two digits,
35617         * tests/test-getdate.c: Tests for the fix.
35618         * doc/getdate.texi: Document this change.
35619
35620 2008-09-03  Bruno Haible  <bruno@clisp.org>
35621
35622         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35623
35624 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35625
35626         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35627         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35628         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35629         Blake <ebb9@byu.net>.
35630
35631         * tests/test-bitrotate.c: Add more test vectors.
35632
35633 2008-09-02  Eric Blake  <ebb9@byu.net>
35634
35635         vasnprintf-posix: handle large precision via %.*d
35636         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35637         when handling it ourselves.
35638         * tests/test-vasnprintf-posix.c (test_function): Add test.
35639         * tests/test-snprintf-posix.h (test_function): Likewise.
35640         * tests/test-sprintf-posix.h (test_function): Likewise.
35641         * tests/test-vasprintf-posix.c (test_function): Likewise.
35642         Reported by Alain Guibert.
35643
35644 2008-09-01  Eric Blake  <ebb9@byu.net>
35645
35646         c-stack: make configure-time check more robust
35647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35648         successful sigaction call.
35649         Reported by Tom G. Christensen.
35650
35651 2008-09-01  Bruno Haible  <bruno@clisp.org>
35652
35653         New module 'findprog-lgpl'.
35654         * modules/findprog-lgpl: New file.
35655         * lib/findprog-lgpl.c: New file.
35656         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35657         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35658         to decide whether to use strdup or xstrdup, concatenated_filename or
35659         xconcatenated_filename.
35660
35661 2008-09-01  Bruno Haible  <bruno@clisp.org>
35662
35663         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35664         'xconcat-filename' (GPL).
35665         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35666         (License): Change to LGPLv2+.
35667         * modules/xconcat-filename: New file.
35668         * lib/concat-filename.h (concatenated_filename): Change specification.
35669         (xconcatenated_filename): New declaration.
35670         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35671         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35672         memory situations.
35673         * lib/xconcat-filename.c: New file.
35674         * NEWS: Mention the change.
35675         * lib/findprog.c: Include concat-filename.h, not filename.h.
35676         (find_in_path): Use xconcatenated_filename instead of
35677         concatenated_filename.
35678         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35679         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35680         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35681         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35682         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35683         instead of concatenated_filename.
35684         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35685         (execute_java_class): Use xconcatenated_filename instead of
35686         concatenated_filename.
35687         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35688         * modules/javacomp (Depends-on): Likewise.
35689         * modules/javaexec (Depends-on): Likewise.
35690
35691 2008-09-01  Bruno Haible  <bruno@clisp.org>
35692
35693         Split module 'filename' into 'filename' and 'concat-filename'.
35694         * modules/filename: Keep only lib/filename.h.
35695         (License): Change to LGPLv2+.
35696         * modules/concat-filename: New file, extracted from modules/filename.
35697         * lib/filename.h (concatenated_filename): Remove declaration.
35698         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35699         * lib/concat-filename.c: Include concat-filename.h.
35700         * NEWS: Mention the change.
35701
35702 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35703
35704         * lib/bitrotate.h (rotl8, rotr8): Add.
35705
35706         * modules/bitrotate (configure.ac): Need
35707         AC_REQUIRE([AC_C_INLINE]).
35708         (Description): Mention stdint.h.  Reported by Bruno Haible
35709         <bruno@clisp.org>.
35710
35711         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35712         Paolo Bonzini <bonzini@gnu.org>.
35713
35714 2008-08-31  Bruno Haible  <bruno@clisp.org>
35715
35716         Assume Solaris specific bi-arch conventions on Solaris systems.
35717         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35718         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35719         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35720         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35721         like acl_libdirstem.
35722         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35723         acl_libdirstem.
35724         * NEWS: Mention the change.
35725         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35726
35727 2008-08-31  Jim Meyering  <meyering@redhat.com>
35728
35729         * lib/strftime.h: Add comments describing the two added arguments.
35730
35731         remove duplicate #include directives
35732         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35733         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35734
35735 2008-08-31  Bruno Haible  <bruno@clisp.org>
35736
35737         New module 'sigpipe-die'.
35738         * modules/sigpipe-die: New file.
35739         * lib/sigpipe-die.h: New file.
35740         * lib/sigpipe-die.c: New file.
35741         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35742
35743 2008-08-31  Bruno Haible  <bruno@clisp.org>
35744
35745         Don't override previously installed signal handlers.
35746         * lib/fatal-signal.c (saved_sigactions): New variable.
35747         (uninstall_handlers): Reset the signal to the saved handler, not
35748         to SIG_DFL (except when ignored).
35749         (install_handlers): Save the previous handlers.
35750
35751 2008-08-30  Bruno Haible  <bruno@clisp.org>
35752
35753         * gnulib-tool (func_reset_sigpipe): New function.
35754         (func_get_automake_snippet, func_modules_transitive_closure,
35755         func_import): Invoke it before a join command that reads from stdin,
35756         to avoid "echo: write error: Broken pipe" error messages on stderr.
35757         Reported by Sam Steingold <sds@gnu.org>.
35758
35759 2008-08-30  Bruno Haible  <bruno@clisp.org>
35760
35761         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35762         Code copied from m4/open.m4.
35763         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35764         access and the filename ends in a slash. Code copied from lib/open.c.
35765         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35766         * tests/test-fopen.c (main): Check against bug with trailing slash.
35767
35768 2008-08-29  Bruno Haible  <bruno@clisp.org>
35769
35770         Avoid some "gcc -pedantic" warnings.
35771         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35772         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35773         * lib/dirent.in.h: Likewise.
35774         * lib/fcntl.in.h: Likewise.
35775         * lib/float.in.h: Likewise.
35776         * lib/iconv.in.h: Likewise.
35777         * lib/inttypes.in.h: Likewise.
35778         * lib/locale.in.h: Likewise.
35779         * lib/math.in.h: Likewise.
35780         * lib/netinet_in.in.h: Likewise.
35781         * lib/search.in.h: Likewise.
35782         * lib/signal.in.h: Likewise.
35783         * lib/stdarg.in.h: Likewise.
35784         * lib/stdint.in.h: Likewise.
35785         * lib/stdio.in.h: Likewise.
35786         * lib/stdlib.in.h: Likewise.
35787         * lib/string.in.h: Likewise.
35788         * lib/strings.in.h: Likewise.
35789         * lib/sys_select.in.h: Likewise.
35790         * lib/sys_socket.in.h: Likewise.
35791         * lib/sys_stat.in.h: Likewise.
35792         * lib/sys_time.in.h: Likewise.
35793         * lib/sysexits.in.h: Likewise.
35794         * lib/time.in.h: Likewise.
35795         * lib/unistd.in.h: Likewise.
35796         * lib/wchar.in.h: Likewise.
35797         * lib/wctype.in.h: Likewise.
35798         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35799         * modules/fchdir (Makefile.am): Likewise.
35800         * modules/fcntl (Makefile.am): Likewise.
35801         * modules/float (Makefile.am): Likewise.
35802         * modules/iconv_open (Makefile.am): Likewise.
35803         * modules/inttypes (Makefile.am): Likewise.
35804         * modules/locale (Makefile.am): Likewise.
35805         * modules/math (Makefile.am): Likewise.
35806         * modules/netinet_in (Makefile.am): Likewise.
35807         * modules/search (Makefile.am): Likewise.
35808         * modules/signal (Makefile.am): Likewise.
35809         * modules/stdarg (Makefile.am): Likewise.
35810         * modules/stdint (Makefile.am): Likewise.
35811         * modules/stdio (Makefile.am): Likewise.
35812         * modules/stdlib (Makefile.am): Likewise.
35813         * modules/string (Makefile.am): Likewise.
35814         * modules/strings (Makefile.am): Likewise.
35815         * modules/sys_select (Makefile.am): Likewise.
35816         * modules/sys_socket (Makefile.am): Likewise.
35817         * modules/sys_stat (Makefile.am): Likewise.
35818         * modules/sys_time (Makefile.am): Likewise.
35819         * modules/sysexits (Makefile.am): Likewise.
35820         * modules/time (Makefile.am): Likewise.
35821         * modules/unistd (Makefile.am): Likewise.
35822         * modules/wchar (Makefile.am): Likewise.
35823         * modules/wctype (Makefile.am): Likewise.
35824         Reported by Reuben Thomas <rrt@sc3d.org>.
35825
35826 2008-08-29  Bruno Haible  <bruno@clisp.org>
35827
35828         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35829         any more.
35830
35831 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35832
35833         * MODULES.html.sh (Misc): Add bitrotate.
35834
35835         * modules/bitrotate: New file.
35836
35837         * lib/bitrotate.h: New file.
35838
35839         * modules/bitrotate-tests: New file.
35840
35841         * tests/test-bitrotate.c: New file.
35842
35843         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35844         on the bitrotate module.
35845
35846         * lib/arctwo.c: Use new bitrotate module.
35847
35848 2008-08-29  Jim Meyering  <meyering@redhat.com>
35849
35850         bootstrap: merge changes from coreutils
35851         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35852         of copied files.  Remove a kludge, now that this is fixed.
35853         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35854         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35855         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35856
35857 2008-08-29  Bruno Haible  <bruno@clisp.org>
35858
35859         * MODULES.html.sh: Remove --cvs-urls option.
35860
35861 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35862
35863         maint.mk: adjust to file name change
35864         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35865
35866 2008-08-28  Jim Meyering  <meyering@redhat.com>
35867
35868         * modules/getndelim2 (License): Relicense to LGPLv2+.
35869         Approved by Richard Stallman for the version of 1995, and by
35870         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35871
35872 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35873
35874         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35875         dummy if one is not available.  Do not touch them if
35876         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35877         (getc_maybe_unlocked): New.
35878         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35879
35880 2008-08-26  Eric Blake  <ebb9@byu.net>
35881
35882         doc/INSTALL: resync from autoconf
35883         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35884         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35885         moving...
35886         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35887         * INSTALL: Regenerate.
35888         * INSTALL.ISO: New file.
35889         * INSTALL.UTF-8: Likewise.
35890
35891 2008-08-26  Jim Meyering  <meyering@redhat.com>
35892
35893         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35894         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35895         these definitions conditional, so that they may be overridden, too.
35896
35897 2008-08-26  Bruno Haible  <bruno@clisp.org>
35898
35899         Generate INSTALL file variants with prettier quotes.
35900         * doc/Makefile (INSTALL_PRELUDE): New macro.
35901         (INSTALL): Use it.
35902         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35903
35904 2008-08-26  Bruno Haible  <bruno@clisp.org>
35905
35906         Run makeinfo in an English locale.
35907         * doc/Makefile (MAKEINFO): New variable.
35908
35909 2008-08-26  Bruno Haible  <bruno@clisp.org>
35910
35911         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35912         Suggested by Eric Blake.
35913
35914 2008-08-25  Bruno Haible  <bruno@clisp.org>
35915
35916         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35917
35918 2008-08-25  Eric Blake  <ebb9@byu.net>
35919
35920         c-stack: test that stack overflow can be caught
35921         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35922         that platform allows handling stack overflow; at least OS/2 EMX
35923         has sigaltstack, but crashes before transferring control to
35924         handler on stack overflow.
35925         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35926         check for HAVE_STACK_OVERFLOW_HANDLING.
35927         Reported by Elbert Pol.
35928
35929 2008-08-25  Bruno Haible  <bruno@clisp.org>
35930
35931         * doc/posix-functions/strftime.texi: Fix description of strftime
35932         module.
35933
35934 2008-08-24  Bruno Haible  <bruno@clisp.org>
35935
35936         * tests/uniwidth/test-uc_width2.c: New file.
35937         * tests/uniwidth/test-uc_width2.sh: New file.
35938         * modules/uniwidth/width-tests (Files): Add the new files.
35939         (TESTS): Add uniwidth/test-uc_width2.sh.
35940         (TESTS_ENVIRONMENT): New variable.
35941         (check_PROGRAMS): Add test-uc_width2.
35942         (test_uc_width2_SOURCES): New variable.
35943
35944         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35945         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35946         not 0x00AB.
35947         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35948
35949 2008-08-22  Eric Blake  <ebb9@byu.net>
35950
35951         test-lock, test-tls: mention why a test is skipped
35952         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35953         skipped.
35954         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35955
35956         count-one-bits: relax license
35957         * modules/count-one-bits (License): Relicense to LGPLv2+.
35958         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35959
35960 2008-08-22  Andreas Schwab  <schwab@suse.de>
35961
35962         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35963         Remove spurious space in assignment.
35964
35965 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35966
35967         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35968         Paul Eggert <eggert@CS.UCLA.EDU>.
35969
35970 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35971
35972         * modules/gettext: Add m4/threadlib.m4.
35973
35974 2008-08-19  Eric Blake  <ebb9@byu.net>
35975
35976         test-c-stack: fix compilation failure on FreeBSD 5.0
35977         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35978         headers before <sys/resource.h>.
35979         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35980         the bug.
35981         Reported by Nelson H. F. Beebe.
35982
35983         strverscmp: migrate from "strverscmp.h" to <string.h>
35984         * modules/string (Makefile.am): Add new hooks.
35985         * modules/strverscmp (Files): Remove strverscmp.h.
35986         (Depends-on): Add string.
35987         (configure.ac): Add indicator.
35988         (Include): Mention new header.
35989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35990         defaults.
35991         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35992         results.
35993         * lib/strverscmp.h: Delete.
35994         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35995         * tests/test-strverscmp.c (includes): Adjust client.
35996         * lib/check-version.c (includes): Likewise.
35997         * NEWS: Document the change.
35998
35999         strverscmp: add unit test
36000         * modules/strverscmp-tests: New file.
36001         * tests/test-strverscmp.c: Likewise.
36002
36003 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36004
36005         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36006         regarding Windows crypto stuff, from Mono.
36007
36008 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36009
36010         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36011         if present, for intel RND.  Return error on failures.
36012
36013 2008-08-18  Ben Pfaff  <blp@gnu.org>
36014
36015         gitlog-to-changelog: give better diagnostic for failed pipe-open
36016         * build-aux/gitlog-to-changelog: Improve error message: suggest
36017         that the version of Git may be too old.
36018
36019 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36020
36021         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36022         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36023
36024 2008-08-18  Bruno Haible  <bruno@clisp.org>
36025
36026         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36027         pthread_in_use().
36028
36029 2008-08-18  Bruno Haible  <bruno@clisp.org>
36030
36031         * lib/glthread/threadlib.c: Include <pthread.h>.
36032
36033 2008-08-18  Bruno Haible  <bruno@clisp.org>
36034
36035         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36036         glthread_recursive_lock_* macros.
36037         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36038         Fix syntax error.
36039
36040 2008-08-18  Bruno Haible  <bruno@clisp.org>
36041
36042         * lib/glthread/thread.c: Avoid forcing a context switch right after
36043         thread creation.
36044
36045 2008-08-17  Bruno Haible  <bruno@clisp.org>
36046
36047         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36048         * lib/glthread/thread.h: Provide Win32 specific implementation.
36049         * modules/thread (Files): Add lib/glthread/thread.c.
36050         (Depends-on): Add lock.
36051         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36052
36053 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36054
36055         New module 'yield'.
36056         * modules/yield: New file.
36057         * lib/glthread/yield.h: New file.
36058         * m4/yield.m4: New file.
36059         * MODULES.html.sh (Multithreading): Add yield.
36060
36061 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36062
36063         New module 'thread'.
36064         * modules/thread: New file.
36065         * lib/glthread/thread.h: New file.
36066         * m4/thread.m4: New file.
36067         * MODULES.html.sh (Multithreading): Add thread.
36068
36069 2008-08-17  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/glthread/lock.h: Include <stdlib.h> always.
36072         * lib/glthread/tls.h: Likewise.
36073         * lib/glthread/cond.h: Likewise.
36074
36075 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36076
36077         New module 'cond'.
36078         * modules/cond: New file.
36079         * lib/glthread/cond.h: New file.
36080         * lib/glthread/cond.c: New file.
36081         * m4/cond.m4: New file.
36082         * MODULES.html.sh (Multithreading): Add cond.
36083
36084 2008-08-16  Eric Blake  <ebb9@byu.net>
36085
36086         c-stack: fix regression on Irix 5.3 from 2008-06-21
36087         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36088         sa_sigaction...
36089         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36090         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36091         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36092         * modules/signal (Makefile.am): Use the value.
36093         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36094         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36095         * doc/posix-headers/signal.texi (signal.h): Document this
36096         portability issue.
36097         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36098         Reported by Tom G. Christensen.
36099
36100 2008-08-17  Bruno Haible  <bruno@clisp.org>
36101
36102         New module 'threadlib'.
36103         * modules/threadlib: New file.
36104         * lib/glthread/threadlib.c: New file, extracted from
36105         lib/glthread/lock.c.
36106         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36107         functions.
36108         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36109         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36110         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36111         macros.
36112         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36113         (gl_DISABLE_THREADS): Remove macro.
36114         * modules/lock (Files): Remove build-aux/config.rpath.
36115         (Depends-on): Remove havelib. Add threadlib.
36116         (configure.ac-early): Remove section.
36117         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36118         * modules/tls (Depends-on): Remove lock. Add threadlib.
36119         (Link): New section, copied from threadlib.
36120         * MODULES.html.sh (Multithreading): Add threadlib.
36121
36122 2008-08-14  Bruno Haible  <bruno@clisp.org>
36123
36124         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36125         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36126         glthread_rwlock_unlock, glthread_rwlock_destroy,
36127         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36128         glthread_recursive_lock_destroy): Define as macros always.
36129         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36130         glthread_lock_lock.
36131         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36132         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36133         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36134         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36135         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36136         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36137         (glthread_recursive_lock_lock_func): Renamed from
36138         glthread_recursive_lock_lock.
36139         (glthread_recursive_lock_unlock_func): Renamed from
36140         glthread_recursive_lock_unlock.
36141         (glthread_recursive_lock_destroy_func): Renamed from
36142         glthread_recursive_lock_destroy.
36143
36144 2008-08-14  Bruno Haible  <bruno@clisp.org>
36145
36146         * lib/glthread/lock.h: Renamed from lib/lock.h.
36147         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36148         * lib/glthread/tls.h: Renamed from lib/tls.h.
36149         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36150         * lib/fstrcmp.c: Update includes.
36151         * lib/strsignal.c: Update includes.
36152         * modules/lock (Files, Makefile.am): Update.
36153         (Include): Change to "glthread/lock.h".
36154         * modules/tls (Files, Makefile.am): Update.
36155         (Include): Change to "glthread/tls.h".
36156         * tests/test-lock.c: Update includes.
36157         * tests/test-tls.c: Update includes.
36158         * NEWS: Mention the renamed header files.
36159
36160 2008-08-11  Jim Meyering  <meyering@redhat.com>
36161
36162         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36163
36164 2008-08-11  Eric Blake  <ebb9@byu.net>
36165
36166         test-c-stack: avoid C99-ism
36167         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36168         before statement.
36169         Reported by Alain Guibert.
36170
36171 2008-08-10  Jim Meyering  <meyering@redhat.com>
36172
36173         ensure that return value of uinttostr et al are not ignored
36174         * lib/inttostr.h (__GNUC_PREREQ): Define.
36175         (__attribute_warn_unused_result__): Define.
36176         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36177
36178 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36179
36180         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36181         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36182
36183 2008-08-07  Jim Meyering  <meyering@redhat.com>
36184
36185         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36186
36187         * modules/mkstemp (License): Relicense under LGPLv2+.
36188         * modules/tempname (License): Likewise.
36189
36190 2008-08-06  Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/poll.c (poll): Further micro-optimization.
36193
36194 2008-08-06  Jim Meyering  <meyering@redhat.com>
36195
36196         inet_pton.c: use locale-independent tolower
36197         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36198         (inet_pton6): Use c_tolower rather than tolower.
36199         * modules/inet_pton (Depends-on): Add c-ctype.
36200
36201 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36202
36203         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36204         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36205
36206 2008-08-06  Jim Meyering  <meyering@redhat.com>
36207
36208         * modules/inet_pton (License): Relicense under LGPLv2+.
36209
36210 2008-08-03  Bruno Haible  <bruno@clisp.org>
36211
36212         Additional non-aborting API for lock and tls.
36213         * lib/lock.h: Include <errno.h>.
36214         (glthread_lock_init): New macro/function.
36215         (gl_lock_init): Define as wrapper around glthread_lock_init.
36216         (glthread_lock_lock): New macro/function.
36217         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36218         (glthread_lock_unlock): New macro/function.
36219         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36220         (glthread_lock_destroy): New macro/function.
36221         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36222         (glthread_rwlock_init): New macro/function.
36223         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36224         (glthread_rwlock_rdlock): New macro/function.
36225         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36226         (glthread_rwlock_wrlock): New macro/function.
36227         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36228         (glthread_rwlock_unlock): New macro/function.
36229         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36230         (glthread_rwlock_destroy): New macro/function.
36231         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36232         (glthread_recursive_lock_init): New macro/function.
36233         (gl_recursive_lock_init): Define as wrapper around
36234         glthread_recursive_lock_init.
36235         (glthread_recursive_lock_lock): New macro/function.
36236         (gl_recursive_lock_lock): Define as wrapper around
36237         glthread_recursive_lock_lock.
36238         (glthread_recursive_lock_unlock): New macro/function.
36239         (gl_recursive_lock_unlock): Define as wrapper around
36240         glthread_recursive_lock_unlock.
36241         (glthread_recursive_lock_destroy): New macro/function.
36242         (gl_recursive_lock_destroy): Define as wrapper around
36243         glthread_recursive_lock_destroy.
36244         (glthread_once): New macro/function.
36245         (gl_once): Define as wrapper around glthread_once.
36246         Update function declarations.
36247         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36248         glthread_rwlock_init. Return error code.
36249         (glthread_rwlock_rdlock_multithreaded): Renamed from
36250         glthread_rwlock_rdlock. Return error code.
36251         (glthread_rwlock_wrlock_multithreaded): Renamed from
36252         glthread_rwlock_wrlock. Return error code.
36253         (glthread_rwlock_unlock_multithreaded): Renamed from
36254         glthread_rwlock_unlock. Return error code.
36255         (glthread_rwlock_destroy_multithreaded): Renamed from
36256         glthread_rwlock_destroy. Return error code.
36257         (glthread_recursive_lock_init_multithreaded): Renamed from
36258         glthread_recursive_lock_init. Return error code.
36259         (glthread_recursive_lock_lock_multithreaded): Renamed from
36260         glthread_recursive_lock_lock. Return error code.
36261         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36262         glthread_recursive_lock_unlock. Return error code.
36263         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36264         glthread_recursive_lock_destroy. Return error code.
36265         (glthread_once_call): Make static.
36266         (glthread_once_multithreaded): Renamed from glthread_once.
36267         * lib/tls.h: Include <errno.h>.
36268         (glthread_tls_key_init): New macro/function.
36269         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36270         (glthread_tls_set): New macro/function.
36271         (gl_tls_set): Define as wrapper around glthread_tls_set.
36272         (glthread_tls_key_destroy): New macro/function.
36273         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36274         Update function declarations.
36275         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36276         glthread_tls_get.
36277         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36278
36279 2008-08-04  Eric Blake  <ebb9@byu.net>
36280
36281         gnumakefile: use space, not TAB, outside of targets
36282         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36283
36284 2008-08-02  Jim Meyering  <meyering@redhat.com>
36285
36286         getdate.y: avoid locale-dependent date parsing failure
36287         In Turkish locales, getdate would fail to recognize keywords
36288         containing a lowercase "i".  The solution is not to rely on
36289         locale-sensitive case-conversion.
36290         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36291         (lookup_word): Use c_toupper in place of toupper.
36292         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36293         Reported by Vefa Bicakci <bicave@superonline.com> in
36294         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36295         * modules/getdate (Depends-on): Add c-ctype.
36296
36297 2008-08-02  Bruno Haible  <bruno@clisp.org>
36298
36299         * gnulib-tool (func_import): When updating or creating a .gitignore
36300         file, prepend each added line with a slash, and ignore leading slashes
36301         from the existing lines.
36302         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36303
36304 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36305
36306         Portability fix for GNU make 3.79.1.
36307         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36308         versions do not understand.
36309
36310 2008-08-01  Bruno Haible  <bruno@clisp.org>
36311
36312         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36313         * tests/test-isnanf.h (zero): New variable.
36314         (main): Avoid literal -0.0f.
36315         * tests/test-isnand.h (zero): New variable.
36316         (main): Avoid literal -0.0.
36317         * tests/test-isnanl.h (zero): New variable.
36318         (main): Avoid literal -0.0L.
36319         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36320         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36321         -0.0, -0.0L.
36322         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36323         (test_signbitd): Avoid literal -0.0.
36324         (test_signbitl): Avoid literal -0.0L.
36325         * tests/test-ceilf1.c (zero): New variable.
36326         (main): Avoid literal -0.0f.
36327         * tests/test-ceill.c (zero): New variable.
36328         (main): Avoid literal -0.0L.
36329         * tests/test-floorf1.c (zero): New variable.
36330         (main): Avoid literal -0.0f.
36331         * tests/test-floorl.c (zero): New variable.
36332         (main): Avoid literal -0.0L.
36333         * tests/test-roundf1.c (zero): New variable.
36334         (main): Avoid literal -0.0f.
36335         * tests/test-round1.c (zero): New variable.
36336         (main): Avoid literal -0.0.
36337         * tests/test-roundl.c (zero): New variable.
36338         (main): Avoid literal -0.0L.
36339         * tests/test-truncf1.c (zero): New variable.
36340         (main): Avoid literal -0.0f.
36341         * tests/test-trunc1.c (zero): New variable.
36342         (main): Avoid literal -0.0.
36343         * tests/test-truncl.c (zero): New variable.
36344         (main): Avoid literal -0.0L.
36345         * tests/test-frexp.c (zero): New variable.
36346         (main): Avoid literal -0.0.
36347         * tests/test-frexpl.c (zero): New variable.
36348         (main): Avoid literal -0.0L.
36349         * tests/test-ldexpl.c (zero): New variable.
36350         (main): Avoid literal -0.0L.
36351         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36352         (zerod, zerol): New variables.
36353         (test_function): Avoid literals -0.0, -0.0L.
36354         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36355         (zerod, zerol): New variables.
36356         (test_function): Avoid literals -0.0, -0.0L.
36357         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36358         (zerod, zerol): New variables.
36359         (test_function): Avoid literals -0.0, -0.0L.
36360         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36361         (zerod, zerol): New variables.
36362         (test_function): Avoid literals -0.0, -0.0L.
36363         * tests/test-strtod.c (zero): New variable.
36364         (main): Avoid literal -0.0.
36365         Reported by Jonathan C. Patschke <jp@centtech.com>.
36366
36367 2008-07-31  Jim Meyering  <meyering@redhat.com>
36368
36369         sha256.h: correct definition of SHA224_DIGEST_SIZE
36370         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36371         Reported by Paulie Pena IV <paulie4@gmail.com>.
36372         Define as 224 / 8, rather than as a literal.
36373         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36374         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36375         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36376
36377 2008-07-31  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36380         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36381         Reported by Jonathan Patschke <jp@centtech.com>.
36382
36383 2008-07-31  Bruno Haible  <bruno@clisp.org>
36384
36385         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36386         Reported by Paolo Bonzini <bonzini@gnu.org>.
36387
36388 2008-07-30  Eric Blake  <ebb9@byu.net>
36389
36390         test-strtod: allow compilation without -lm
36391         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36392         Reported by Dennis Clarke <blastwave@gmail.com>.
36393
36394 2008-07-28  Jim Meyering  <meyering@redhat.com>
36395
36396         bootstrap: work also when there are no .po files in po/
36397         * build-aux/bootstrap (update_po_files): Complete the change
36398         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36399
36400 2008-07-27  Jim Meyering  <meyering@redhat.com>
36401
36402         * users.txt: Add zile.
36403
36404 2008-07-26  Ben Pfaff  <blp@gnu.org>
36405
36406         Add missing dependencies on new m4/exponent[fdl].m4 files.
36407         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36408         * modules/isnand-nolibm: Add m4/exponentd.m4.
36409         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36410         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36411         m4/isnan[fdl].m4, because the macros actually used moved.
36412         Reported by Jim Meyering.
36413
36414 2008-07-14  Ben Pfaff  <blp@gnu.org>
36415
36416         Add isinf module.
36417         * lib/isinf.c: New file.
36418         * lib/math.in.h: Define isinf macro if we have decided to replace
36419         it.
36420         * m4/isinf.m4: New file.
36421         * m4/math_h.m4: Initialize and substitute variables for isinf
36422         module.
36423         * modules/isinf: New file.
36424         * modules/isinf-tests: New file.
36425         * modules/math: Add substitutions for new module.
36426         * tests/test-isinf.c: New file.
36427         * doc/posix-functions/isinf.texi: Mention new module.
36428         * MODULES.html.sh: Mention new module.
36429
36430 2008-07-14  Ben Pfaff  <blp@gnu.org>
36431
36432         Factor out some macros for use by additional modules.
36433         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36434         exponentf.m4.
36435         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36436         exponentd.m4.
36437         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36438         file exponentl.m4.
36439         * m4/exponentf.m4: New file.
36440         * m4/exponentd.m4: New file.
36441         * m4/exponentl.m4: New file.
36442         * modules/isnanf: Use new file m4/exponentf.m4.
36443         * modules/isnand: Use new file m4/exponentd.m4.
36444         * modules/isnanl: Use new file m4/exponentl.m4.
36445
36446 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36447
36448         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36449         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36450         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36451         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36452
36453         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36454         readlink on platforms without PATH_MAX.
36455
36456 2008-07-21  Eric Blake  <ebb9@byu.net>
36457
36458         Warn, not fail, on stale version.
36459         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36460
36461         Don't allow installation with stale devel version number.
36462         * top/GNUmakefile (_is-install-target): New macro.
36463         (_curr-ver): Forbid installation with stale version number.
36464
36465 2008-07-20  Bruno Haible  <bruno@clisp.org>
36466
36467         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36468         TESTS_ENVIRONMENT.
36469         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36470
36471 2008-07-20  Bruno Haible  <bruno@clisp.org>
36472
36473         * lib/c-stack.h (c_stack_action): Add documentation.
36474         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36475
36476 2008-07-20  Bruno Haible  <bruno@clisp.org>
36477
36478         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36479         * modules/readlink (License): Likewise.
36480
36481 2008-07-17  Eric Blake  <ebb9@byu.net>
36482
36483         * modules/c-stack (Link): Fix typo.
36484
36485         Make c-stack use libsigsegv, when available.
36486         * modules/c-stack (Depends-on): Add libsigsegv.
36487         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36488         needed.
36489         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36490         (segv_handler, overflow_handler, c_stack_action)
36491         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36492         implementation when libsigsegv is available, but only when using
36493         the library is necessary.
36494         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36495         comment, explaining why XSI check fails on Linux.
36496         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36497         * tests/test-c-stack2.sh: Tweak skip message.
36498         * NEWS: Document new link-time requirements.
36499
36500 2008-07-16  Eric Blake  <ebb9@byu.net>
36501
36502         c-stack: Expose false positives when not using libsigsegv.
36503         * modules/c-stack-tests (Files): Expand test.
36504         * tests/test-c-stack.c (main): Add means to conditionally trigger
36505         non-overflow SIGSEGV.
36506         * tests/test-c-stack2.sh: New file.
36507
36508 2008-07-14  Bruno Haible  <bruno@clisp.org>
36509
36510         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36511         Reported by Eric Blake.
36512
36513 2008-07-14  Sam Steingold  <sds@gnu.org>
36514             Bruno Haible  <bruno@clisp.org>
36515
36516         New module libsigsegv.
36517         * modules/libsigsegv: New file.
36518         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36519         modifications.
36520         * MODULES.html.sh (Signal handling): New section.
36521
36522 2008-07-14  Bruno Haible  <bruno@clisp.org>
36523
36524         * modules/unictype/ctype-* (Description): Add the word "function".
36525         Improves the resulting doc in MODULES.html.
36526
36527 2008-07-12  Ben Pfaff  <blp@gnu.org>
36528
36529         Add longlong module.
36530         * modules/longlong: New file.
36531
36532 2008-07-12  Bruno Haible  <bruno@clisp.org>
36533
36534         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36535         to empty.
36536
36537 2008-07-10  Ben Pfaff  <blp@gnu.org>
36538
36539         Add isnan module.
36540         * doc/posix-functions/isnan.texi: Mention new module.
36541         * lib/math.in.h: Define isnan macro if we have decided to replace
36542         it.
36543         * m4/isnan.m4: New file.
36544         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36545         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36546         also.
36547         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36548         redundancy.
36549         * m4/math_h.m4: Initialize and substitute variables for isnan
36550         module.
36551         * modules/isnan: New file.
36552         * modules/isnan-tests: New file.
36553         * modules/math: Add substitutions for new module.
36554         * tests/test-isnan.c: New file.
36555         * MODULES.html.sh: Mention new module.
36556
36557 2008-07-10  Ben Pfaff  <blp@gnu.org>
36558
36559         Add isnanf module.
36560         * lib/isnanf.m4: New file.
36561         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36562         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36563         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36564         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36565         * modules/isnanf: New file.
36566         * modules/isnanf-tests: New file.
36567         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36568         files.
36569         * tests/test-isnanf-nolibm.c: factored most of its contents into
36570         new file tests/test-isnanf.h.
36571         * tests/test-isnanf.h: New file.
36572         * tests/test-isnanf.c: New file.
36573         * MODULES.html.sh: Mention new module.
36574         * doc/glibc-functions/isnanf.texi: Mention new module.
36575
36576 2008-07-10  Ben Pfaff  <blp@gnu.org>
36577
36578         Add isnand module.
36579         * lib/isnand.h: New file.
36580         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36581         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36582         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36583         functionality also.
36584         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36585         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36586         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36587         * modules/isnand: New file.
36588         * modules/isnand-tests: New file.
36589         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36590         files.
36591         * tests/test-isnand-nolibm.c: factored most of its contents into
36592         new file tests/test-isnand.h.
36593         * tests/test-isnand.h: New file.
36594         * tests/test-isnand.c: New file.
36595         * MODULES.html.sh: Mention new module.
36596
36597 2008-07-10  Ben Pfaff  <blp@gnu.org>
36598
36599         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36600         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36601         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36602         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36603         * modules/isnanf-nolibm: Update references to renamed files.
36604         * modules/isnand-nolibm: Likewise.
36605         * modules/isnanf-nolibm-tests: Likewise.
36606         * modules/isnand-nolibm-tests: Likewise.
36607         * lib/frexp.c: Likewise.
36608         * lib/isfinite.c: Likewise.
36609         * lib/signbitd.c: Likewise.
36610         * lib/signbitf.c: Likewise.
36611         * lib/vasnprintf.c: Likewise.
36612         * tests/test-ceilf1.c: Likewise.
36613         * tests/test-ceilf2.c: Likewise.
36614         * tests/test-floorf1.c: Likewise.
36615         * tests/test-floorf2.c: Likewise.
36616         * tests/test-frexp.c: Likewise.
36617         * tests/test-round1.c: Likewise.
36618         * tests/test-round2.c: Likewise.
36619         * tests/test-roundf1.c: Likewise.
36620         * tests/test-strtod.c: Likewise.
36621         * tests/test-trunc1.c: Likewise.
36622         * tests/test-trunc2.c: Likewise.
36623         * tests/test-truncf1.c: Likewise.
36624         * tests/test-truncf2.c: Likewise.
36625         * NEWS: Mention the renamed header files.
36626
36627 2008-07-11  Jim Meyering  <meyering@redhat.com>
36628
36629         vc-list-files: make the last-resort awk code more portable
36630         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36631         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36632         does not support it.
36633
36634 2008-07-10  Eric Blake  <ebb9@byu.net>
36635
36636         Work with tar's bootstrap.
36637         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36638         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36639         an m4 comment.
36640
36641 2008-07-09  Jim Meyering  <meyering@redhat.com>
36642
36643         posix-shell.m4: fix typo that made this test malfunction
36644         * m4/posix-shell.m4: Remove capitalization in variable name.
36645
36646 2008-07-08  Bruno Haible  <bruno@clisp.org>
36647
36648         * m4/onceonly.m4: Update comments.
36649         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36650
36651 2008-07-04  Jim Meyering  <meyering@redhat.com>
36652
36653         * users.txt: Add vc-dwim.
36654         (bison, coreutils): Use the gitweb URL.
36655
36656 2008-07-03  Jim Meyering  <meyering@redhat.com>
36657
36658         * users.txt: Add libffcall.  From Sam Steingold.
36659
36660 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36661
36662         getdate.y: do not ignore TZ with relative day, month or year offset
36663         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36664         relative-date-handling, since otherwise, the latter would clobber the
36665         sole output (an updated Start value) of the tz-handling block.
36666         * tests/test-getdate.c: Tests for the fix
36667
36668 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36669
36670         Recognize 'foo_LIBRARIES += libgnu.a'.
36671         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36672         makefile snippet has already specified an installation location,
36673         also using '+='.
36674
36675 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36676
36677         getdate.y: factor out common actions
36678         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36679         Use them in place of open-coded actions.
36680
36681 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36682
36683         Add self-test for getdate module.
36684         * modules/getdate-tests: New file.
36685         * tests/test-getdate.c: New file.
36686
36687 2008-06-29  Bruno Haible  <bruno@clisp.org>
36688
36689         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36690         .gitignore.
36691         Reported by Sylvain Beucler <beuc@beuc.net>.
36692
36693 2008-06-29  Bruno Haible  <bruno@clisp.org>
36694
36695         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36696         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36697
36698 2008-06-29  Bruno Haible  <bruno@clisp.org>
36699
36700         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36701         EXTRA_DIST.
36702         Reported by Sylvain Beucler <beuc@beuc.net>.
36703
36704 2008-06-26  Jim Meyering  <meyering@redhat.com>
36705
36706         make several modules depend on the "open" module
36707         This provides slightly increased consistency when opening-for-write
36708         the name of a non-directory spelled with a trailing slash.
36709         * modules/chdir-safer: Likewise.
36710         * modules/chown: Likewise.
36711         * modules/clean-temp: Likewise.
36712         * modules/copy-file: Likewise.
36713         * modules/fchdir: Likewise.
36714         * modules/fcntl-safer: Likewise.
36715         * modules/pipe: Likewise.
36716         * modules/utime: Likewise.
36717         Prompted by Eric Blake and Bruno Haible.
36718
36719 2008-06-24  Andreas Schwab  <schwab@suse.de>
36720
36721         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36722         literals can be used as initializers for global variables.
36723
36724 2008-06-23  Eric Blake  <ebb9@byu.net>
36725
36726         Make gnulib-cache.m4 easier to diff.
36727         * gnulib-tool (func_import): Allow newlines when reading cached
36728         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36729
36730 2008-06-23  Bruno Haible  <bruno@clisp.org>
36731
36732         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36733         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36734         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36735         m4/signalblocking.m4.
36736         (gl_PREREQ_SIGACTION): Don't invoke it.
36737         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36738         gl_PREREQ_SIG_HANDLER_H.
36739         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36740         Don't check for sigaction here.
36741
36742 2008-06-23  Bruno Haible  <bruno@clisp.org>
36743
36744         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36745         (install_handlers): Don't set the SA_RESETHAND flag.
36746
36747 2008-06-23  Bruno Haible  <bruno@clisp.org>
36748
36749         * m4/sigaction.m4: Comment fixes.
36750         * lib/signal.in.h: Likewise.
36751
36752 2008-06-23  Eric Blake  <ebb9@byu.net>
36753
36754         Fix typo.
36755         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36756
36757         Avoid SA_ namespace.
36758         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36759         Reported by Ralf Wildenhues.
36760
36761         Avoid test failure due to SA_RESTORER.
36762         * tests/test-sigaction.c (SA_MASK): New macro.
36763         (main): Avoid failing due to extension flags being set.
36764         Reported by Jim Meyering.
36765
36766         Revert use of sig-handler.h in sigprocmask.c.
36767         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36768         it requires the existence of struct sigaction.
36769         * lib/sigprocmask.c (handler_t): Restore typedef.
36770         (rpl_signal, old_handlers): Use local type.
36771
36772 2008-06-22  Bruno Haible  <bruno@clisp.org>
36773
36774         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36775         conditionally.
36776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36777
36778 2008-06-22  Bruno Haible  <bruno@clisp.org>
36779
36780         * doc/posix-functions/siginterrupt.texi: Move note.
36781
36782         * lib/signal.in.h (SA_RESTART): New macro.
36783         * lib/sigaction.c: Update comment.
36784
36785         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36786
36787         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36788         (gl_PREREQ_SIGPROCMASK): Invoke it.
36789         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36790
36791         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36792
36793         * lib/sigprocmask.c: Update a comment.
36794
36795 2008-06-21  Eric Blake  <ebb9@byu.net>
36796
36797         Use sigaction module rather than signal().
36798         * modules/c-stack (Depends-on): Add sigaction.
36799         * modules/fatal-signal (Depends-on): Likewise.
36800         * modules/nanosleep (Depends-on): Likewise.
36801         * modules/sigprocmask (Files): Add sig-handler.h.
36802         * modules/sigaction (Files): Likewise.
36803         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36804         Eggert.
36805         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36806         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36807         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36808         (init_fatal_signals): Likewise.
36809         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36810         (siginterrupt): Delete fallback.
36811         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36812         instead.
36813         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36814         siginterrupt.
36815
36816         New module sigaction, for mingw.
36817         * modules/sigaction: New module...
36818         * modules/sigaction-tests: ...and its test.
36819         * m4/sigaction.m4: New file.
36820         * lib/sigaction.c: Likewise.
36821         * tests/test-sigaction.c: Likewise.
36822         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36823         * modules/signal (Makefile.am): Likewise.
36824         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36825         needed.
36826         * doc/posix-headers/signal.texi (signal.h): Mention provided
36827         types.
36828         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36829         that sigaction is preferable.
36830         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36831         module.
36832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36833         sigaction.
36834
36835         Improve robustness of sigprocmask by overriding signal.
36836         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36837         is in use.
36838         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36839         (SIGKILL, SIGSTOP): Provide fallbacks.
36840         (rpl_signal): Implement.
36841         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36842         signal can be called inside handlers.
36843
36844         Fix nanosleep module on mingw.
36845         * modules/nanosleep (Depends-on): Add sys_select.
36846         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36847
36848         Fix licensing of sigprocmask.
36849         * modules/raise (License): Relicense as LGPL.
36850
36851 2008-06-21  Bruno Haible  <bruno@clisp.org>
36852
36853         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36854         result if it contains question marks.
36855         Reported by Michael Geng <linux@michaelgeng.de>.
36856
36857 2008-06-19  Bruno Haible  <bruno@clisp.org>
36858
36859         Fix CVS-ism.
36860         * doc/gnulib.texi: Include updated-stamp.texi.
36861         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36862         (updated-stamp.texi): New rule.
36863         (gnulib.info): Depend on it.
36864         * doc/.gitignore: Add updated-stamp.texi.
36865         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36866
36867 2008-06-19  Bruno Haible  <bruno@clisp.org>
36868
36869         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36870         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36871
36872 2008-06-19  Eric Blake  <ebb9@byu.net>
36873
36874         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36875         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36876         Reported by Stepan Kasal.
36877
36878 2008-06-18  Bruno Haible  <bruno@clisp.org>
36879
36880         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36881         Reported by Eric Blake.
36882
36883 2008-06-18  Eric Blake  <ebb9@byu.net>
36884
36885         Work around cygwin 1.5.25 strsignal bug.
36886         * tests/test-strsignal.c: Allow for const char *.
36887         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36888
36889 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36890
36891         * users.txt: Update URL to article and add author/date
36892         information.
36893
36894 2008-06-17  Bruno Haible  <bruno@clisp.org>
36895
36896         New macro gl_DISABLE_THREADS.
36897         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36898         if the user did not pass --enable-threads or --disable-threads option.
36899         (gl_DISABLE_THREADS): New macro.
36900         Reported by Eric Blake <ebb9@byu.net>.
36901
36902 2008-06-17  Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36905         when the macro ignores it.
36906         Based on a patch by Eric Blake <ebb9@byu.net>.
36907
36908 2008-06-17  Bruno Haible  <bruno@clisp.org>
36909
36910         * modules/tls (License): Change to LGPLv2+.
36911         Reported by Eric Blake.
36912
36913 2008-06-17  Eric Blake  <ebb9@byu.net>
36914
36915         Simplify c-stack prerequisites.
36916         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36918         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36919         check.
36920         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36921         <sys/resource.h>.
36922
36923         Move c-stack test into testsuite.
36924         * modules/c-stack-tests: New file.
36925         * lib/c-stack.c [DEBUG]: Move test program...
36926         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36927         fail test if sigaltstack is lacking.
36928         * tests/test-c-stack.sh: New driver file.
36929
36930 2008-06-16  Eric Blake  <ebb9@byu.net>
36931
36932         Use raise module consistently.
36933         * modules/fatal-signal (Depends-on): Add raise.
36934         * modules/sigprocmask (Depends-on): Likewise.
36935         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36936         * lib/sigprocmask.c (sigprocmask): Likewise.
36937         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36938         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36939
36940         Fix compliance bug in sigpending.
36941         * lib/sigprocmask.c (sigpending): Return pending array via
36942         parameter, not return value.
36943
36944 2008-06-14  Eric Blake  <ebb9@byu.net>
36945
36946         Improve obstack-printf test code.
36947         * tests/test-obstack-printf.c (test_function): Fix comment, and
36948         simplify usage of obstack_* in macros.  Add a test for coverage.
36949         Reported by Bruno Haible.
36950
36951 2008-06-14  Bruno Haible  <bruno@clisp.org>
36952
36953         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36954         array size as a constant, not as a const variable.
36955         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36956         AC_USE_SYSTEM_EXTENSIONS.
36957         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36958         Test whether the obstack_printf function actually exists.
36959         * modules/obstack-printf (Depends-on): Add extensions.
36960         (Include): Remove obstack.h.
36961         * modules/obstack-printf-posix (Depends-on): Add extensions.
36962         (Include): Remove obstack.h.
36963
36964 2008-06-13  Eric Blake  <ebb9@byu.net>
36965
36966         Add obstack-printf and obstack-printf-posix modules.
36967         * modules/obstack-printf: New file.
36968         * modules/obstack-printf-posix: Likewise.
36969         * MODULES.html.sh (Misc): Mention them.
36970         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36971         Likewise.
36972         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36973         Likewise.
36974         * modules/stdio (Makefile.am): Accomodate new modules.
36975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36976         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36977         Declare.
36978         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36979         functions.
36980         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36981         (gl_REPLACE_OBSTACK_PRINTF): New macros
36982         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36983         * tests/test-obstack-printf.c: New file.
36984         * modules/obstack-printf-tests: Likewise.
36985         * modules/obstack-printf-posix-tests: Likewise.
36986
36987 2008-06-11  Bruno Haible  <bruno@clisp.org>
36988
36989         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36990         * lib/open.c: Include errno.h.
36991         (open): Fail when attempting to write to a file that has a trailing
36992         slash.
36993         * tests/test-open.c (main): Test against trailing slash bug.
36994         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36995
36996 2008-06-10  Bruno Haible  <bruno@clisp.org>
36997
36998         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36999         for $? to work inside the trap command, with various /bin/sh-s.
37000         * tests/test-vc-list-files-cvs.sh: Likewise.
37001
37002 2008-06-10  Bruno Haible  <bruno@clisp.org>
37003
37004         * lib/acl-internal.h: Don't include gettext.h here.
37005         * lib/set-mode-acl.c: Include gettext.h here.
37006         * lib/copy-acl.c: Likewise.
37007
37008 2008-06-10  Bruno Haible  <bruno@clisp.org>
37009
37010         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37011         * lib/wait-process.c (wait_subprocess): Likewise.
37012         * lib/execute.h (execute): Add termsigp argument.
37013         * lib/execute.c (execute): Likewise.
37014         * lib/csharpcomp.c (compile_csharp_using_pnet,
37015         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37016         * lib/csharpexec.c (execute_csharp_using_pnet,
37017         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37018         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37019         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37020         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37021         is_jikes_present): Update.
37022         * lib/javaexec.c (execute_java_class): Update.
37023         * lib/javaversion.c (execute_and_read_line): Update.
37024         * NEWS: Document the changes.
37025         Reported by Eric Blake.
37026
37027 2008-06-10  Eric Blake  <ebb9@byu.net>
37028
37029         Add missing include.
37030         * tests/test-strstr.c (includes): Add <signal.h>.
37031         * tests/test-strcasestr.c (includes): Likewise.
37032         * tests/test-memmem.c (includes): Likewise.
37033
37034 2008-06-10  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/wait-process.c (wait_subprocess): Add an assertion.
37037
37038 2008-06-10  Bruno Haible  <bruno@clisp.org>
37039
37040         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37041
37042 2008-06-10  Bruno Haible  <bruno@clisp.org>
37043
37044         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37045         using alarm().
37046         * tests/test-strcasestr.c (main): Likewise.
37047         * tests/test-strstr.c (main): Likewise.
37048
37049 2008-06-09  Bruno Haible  <bruno@clisp.org>
37050
37051         Work around the Solaris 10 ACE ACLs ABI change.
37052         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37053         declare if ACL_NO_TRIVIAL is present.
37054         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37055         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37056         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37057         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37058         define if ACL_NO_TRIVIAL is present.
37059         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37060         and use the current ABI.
37061         (file_has_acl): Use same #if condition as elsewhere.
37062         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37063         in use, and use the current ABI.
37064         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37065         Reported by Jim Meyering.
37066
37067 2008-06-09  Eric Blake  <ebb9@byu.net>
37068
37069         Work around environments that (stupidly) ignore SIGALRM.
37070         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37071         before using alarm().
37072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37074         Reported by Ian Beckwith <ianb@erislabs.net>.
37075
37076         Produce autobuild blurb earlier in log.
37077         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37078
37079 2008-06-09  Jim Meyering  <meyering@redhat.com>
37080         and OndÅ™ej Vašík  <ovasik@redhat.com>
37081
37082         utimens.c: correct kernel bug work-around
37083         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37084         failure, not success, and the kernel bug we're trying to work
37085         around affects not just the utimensat call, but also the fallback
37086         futimens call.
37087         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37088         not success.
37089         [HAVE_FUTIMENS]: Use the same work-around, here.
37090
37091 2008-06-09  Jim Meyering  <meyering@redhat.com>
37092
37093         add more guards around definition of ACE_-related code
37094         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37095         ALLOW and ACE_OWNER are also defined.
37096
37097 2008-06-08  Bruno Haible  <bruno@clisp.org>
37098
37099         * lib/acl-internal.h: Add me as co-author.
37100         * lib/file-has-acl.c: Likewise.
37101         * lib/set-mode-acl.c: Likewise.
37102         * lib/copy-acl.c: Likewise.
37103
37104 2008-06-08  Bruno Haible  <bruno@clisp.org>
37105
37106         Add support for AIX ACLs.
37107         * lib/acl-internal.h (acl_nontrivial): New declaration.
37108         * lib/file-has-acl.c (acl_nontrivial): New function.
37109         (file_has_acl): Add implementation using AIX 4 ACL API.
37110         * lib/set-mode-acl.c (qset_acl): Likewise.
37111         * lib/copy-acl.c (qcopy_acl): Likewise.
37112
37113 2008-06-08  Bruno Haible  <bruno@clisp.org>
37114
37115         Add support for HP-UX ACLs.
37116         * lib/acl-internal.h (acl_nontrivial): New declaration.
37117         * lib/file-has-acl.c (acl_nontrivial): New function.
37118         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37119         * lib/set-mode-acl.c (qset_acl): Likewise.
37120         * lib/copy-acl.c (qcopy_acl): Likewise.
37121
37122 2008-06-08  Bruno Haible  <bruno@clisp.org>
37123
37124         Add support for Cygwin ACLs.
37125         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37126         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37127         the chmod_or_fchmod call.
37128         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37129
37130 2008-06-08  Bruno Haible  <bruno@clisp.org>
37131
37132         Fix bug with setuid modes in Solaris 10+ code.
37133         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37134         succeeded, when the mode contains some special bits.
37135
37136 2008-06-08  Bruno Haible  <bruno@clisp.org>
37137
37138         Add support for Solaris 7..10 ACLs.
37139         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37140         declarations.
37141         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37142         functions.
37143         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37144         * lib/set-mode-acl.c (qset_acl): Likewise.
37145         * lib/copy-acl.c (qcopy_acl): Likewise.
37146
37147 2008-06-08  Bruno Haible  <bruno@clisp.org>
37148
37149         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37150         declaration.
37151         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37152         (acl_access_nontrivial): Remove MacOS X case.
37153         (file_has_acl): Use acl_extended_nontrivial.
37154         * lib/copy-acl.c (qcopy_acl): Likewise.
37155
37156 2008-06-08  Bruno Haible  <bruno@clisp.org>
37157
37158         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37159
37160 2008-06-08  Jim Meyering  <meyering@redhat.com>
37161
37162         * modules/acl (Maintainer): Add Bruno Haible.
37163
37164 2008-06-07  Bruno Haible  <bruno@clisp.org>
37165
37166         Improve support for Tru64 ACLs.
37167         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37168         ACL on OSF/1.
37169
37170 2008-06-07  Bruno Haible  <bruno@clisp.org>
37171
37172         Add support for MacOS X ACLs.
37173         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37174         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37175         * lib/set-mode-acl.c (qset_acl): Likewise.
37176         * lib/copy-acl.c (qcopy_acl): Likewise.
37177
37178 2008-06-07  Bruno Haible  <bruno@clisp.org>
37179
37180         Fix memory leak introduced on 2008-05-22.
37181         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37182         use.
37183
37184 2008-06-07  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37187         to construct an empty ACL.
37188
37189 2008-06-07  Bruno Haible  <bruno@clisp.org>
37190
37191         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37192         precisely.
37193         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37194
37195 2008-06-07  Bruno Haible  <bruno@clisp.org>
37196
37197         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37198         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37199
37200 2008-06-07  Bruno Haible  <bruno@clisp.org>
37201
37202         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37203         regardless of POSIX.
37204         * doc/posix-functions/_longjmp.texi: Likewise.
37205         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37206         SystemV platform in this case.
37207
37208 2008-06-06  Eric Blake  <ebb9@byu.net>
37209
37210         Document abort() bugs.
37211         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37212
37213         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37214         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37215         sigsetjmp.
37216         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37217         siglongjmp, but only as a macro.
37218         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37219         is obsolete.
37220         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37221
37222         Tweak documentation to cover cygwin argz bugs.
37223         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37224         argz bug fix; no code change needed since no cygwin releases
37225         occurred between the last fix and the bug being tested.
37226         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37227         module and recently fixed cygwin bugs.
37228         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37229         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37230         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37231         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37232         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37233         Likewise.
37234         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37235         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37236         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37237         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37238         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37239         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37240         Likewise.
37241
37242         Avoid gcc warning on cygwin.
37243         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37244         !ACL_NO_TRIVIAL]: Avoid unused variable.
37245
37246 2008-06-05  Eric Blake  <ebb9@byu.net>
37247
37248         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37249         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37250         git-version-gen fails to come up with a version.
37251         Reported by Simon Josefsson.
37252
37253 2008-06-05  Jim Meyering  <meyering@redhat.com>
37254             Paul Eggert  <eggert@cs.ucla.edu>
37255
37256         utimens.c: work around a probable Linux kernel bug
37257         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37258         appears to be a kernel bug that causes utimensat to return 280
37259         instead of 0, indicating success.
37260
37261 2008-06-04  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37264         2008-06-01 commit.
37265
37266 2008-06-04  Bruno Haible  <bruno@clisp.org>
37267
37268         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37269         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37270         (file_has_acl): Use it. Save errno afterwards.
37271         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37272
37273 2008-06-03  Bruno Haible  <bruno@clisp.org>
37274
37275         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37276         draft code. Simplify #ifs.
37277         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37278         Put Solaris code after POSIX-draft code. Fix comments regarding
37279         Solaris 10, HP-UX. Mention Cygwin.
37280         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37281
37282 2008-06-03  Eric Blake  <ebb9@byu.net>
37283
37284         Provide fallback for older kernels.
37285         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37286         Provide runtime fallback if kernel lacks support.
37287         Reported by Mike Frysinger.
37288
37289 2008-06-02  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37292         it exists.
37293
37294 2008-06-02  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37297         * lib/copy-acl.c (qcopy_acl): Update comment.
37298
37299 2008-06-02  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37302         like ACL APIs.
37303
37304 2008-06-02  Bruno Haible  <bruno@clisp.org>
37305
37306         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37307         * tests/test-set-mode-acl.sh: Likewise.
37308         * tests/test-copy-acl.sh: Likewise.
37309         * tests/test-copy-file.sh: Likewise.
37310
37311 2008-06-02  Bruno Haible  <bruno@clisp.org>
37312
37313         * tests/test-file-has-acl.sh: Remove unused code.
37314
37315 2008-06-01  Bruno Haible  <bruno@clisp.org>
37316
37317         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37318         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37319         messages.
37320         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37321
37322 2008-06-01  Bruno Haible  <bruno@clisp.org>
37323
37324         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37325         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37326         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37327         APIs.
37328         * modules/acl-tests (configure.ac): Remove tests now contained in
37329         m4/acl.m4.
37330
37331 2008-06-02  Jim Meyering  <meyering@redhat.com>
37332
37333         announce-gen: use a better key-server host name
37334         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37335         it may be more consistently reliable.  Suggested by Werner Koch
37336         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37337
37338 2008-06-01  Bruno Haible  <bruno@clisp.org>
37339
37340         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37341         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37342
37343 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37344
37345         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37346
37347 2008-06-01  Bruno Haible  <bruno@clisp.org>
37348
37349         New ACL tests.
37350         * tests/test-file-has-acl.sh: New file.
37351         * tests/test-file-has-acl.c: New file.
37352         * tests/test-set-mode-acl.sh: New file.
37353         * tests/test-set-mode-acl.c: New file.
37354         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37355         * tests/test-copy-acl.c: New file.
37356         * modules/acl-tests: New file, based on modules/copy-file-tests.
37357         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37358         (Depends-on): Add acl-tests.
37359         (configure.ac): Remove checks.
37360         (Makefile.am): Don't create test-sameacls program here any more.
37361
37362 2008-06-01  Bruno Haible  <bruno@clisp.org>
37363
37364         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37365         * tests/test-sameacls.c: Include progname.h.
37366         (main): Invoke set_program_name. Portability fixes for MacOS X,
37367         Solaris, HP-UX.
37368
37369 2008-06-01  Bruno Haible  <bruno@clisp.org>
37370
37371         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37372         function.
37373         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37374
37375 2008-06-01  Bruno Haible  <bruno@clisp.org>
37376
37377         * modules/rpmatch (Depends-on): Add strdup.
37378
37379 2008-06-01  Bruno Haible  <bruno@clisp.org>
37380
37381         * lib/pipe.c: Include unistd-safer.h.
37382         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37383         * modules/pipe (Depends-on): Add unistd-safer.
37384
37385 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37386
37387         * modules/autobuild (configure.ac): Call AB_INIT.
37388
37389 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37390
37391         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37392         Suggested by Bruno Haible <bruno@clisp.org>.
37393
37394 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37395
37396         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37397         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37398         <bruno@clisp.org>.
37399
37400 2008-05-29  Eric Blake  <ebb9@byu.net>
37401
37402         Prefer new POSIX 200x interfaces over futimesat.
37403         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37404         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37405         when available.
37406         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37407
37408 2008-05-28  Bruno Haible  <bruno@clisp.org>
37409
37410         * modules/stpcpy (License): Change to LGPLv2+.
37411         Requested by David Lutterkort <dlutter@redhat.com>.
37412
37413 2008-05-27  Bruno Haible  <bruno@clisp.org>
37414
37415         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37416         current mingw.
37417         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37418
37419 2008-05-27  Bruno Haible  <bruno@clisp.org>
37420
37421         * modules/iconv_open (Link): New section, from module 'iconv'.
37422         * modules/striconv (Link): Likewise.
37423         * modules/striconveh (Link): Likewise.
37424         * modules/xstriconv (Link): Likewise.
37425         * modules/unicodeio (Link): Likewise.
37426         * modules/propername (Link): Likewise.
37427         Reported by Jim Meyering.
37428
37429 2008-05-26  Jim Meyering  <meyering@redhat.com>
37430
37431         sha256: do not artificially restrict buffer length to be < 2^32
37432         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37433         uint32_t to size_t.
37434         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37435         to match.
37436
37437         avoid unaligned access errors, e.g., on sparc
37438         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37439         direct access through a possibly-unaligned uint64* pointer.
37440         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37441         direct access through a possibly-unaligned uint32* pointer.
37442         Prompted by this patch from Tom "spot" Callaway:
37443         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37444
37445         sha512.c: fix typo in comment
37446         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37447
37448 2008-05-25  Bruno Haible  <bruno@clisp.org>
37449
37450         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37451         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37452         (Makefile.am): Update lib_SOURCES.
37453
37454 2008-05-25  Bruno Haible  <bruno@clisp.org>
37455
37456         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37457
37458 2008-05-25  Jim Meyering  <meyering@redhat.com>
37459
37460         useless-if-before-free: freed expr may have white-space differences
37461         * build-aux/useless-if-before-free: Recognize cases in which the
37462         freed expression differs from the tested one in embedded white
37463         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37464         $1 was used, so we can't make any regexp shy.  Improved tests now
37465         detect this.
37466
37467         useless-if-before-free: accept white space in the expression.
37468         * build-aux/useless-if-before-free: For now, any white space
37469         in the expression must be identical in the free argument.
37470
37471         useless-if-before-free: efficiency tweak
37472         * build-aux/useless-if-before-free: Make the expression-matching
37473         regexp "shy".
37474         Make the *outer* regexp shy, not the expr-matching one.
37475
37476         update code-in-comment to accept cast of free arg
37477         * build-aux/useless-if-before-free: Update regexp.
37478
37479 2008-05-25  Bruno Haible  <bruno@clisp.org>
37480
37481         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37482         * modules/copy-file-tests (Files, Makefile.am): Update.
37483         * tests/test-copy-file.c (func_test_copy): Update.
37484
37485 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37486
37487         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37488
37489 2008-05-23  Bruno Haible  <bruno@clisp.org>
37490
37491         Improve support for ACLs on OSF/1.
37492         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37493         Remove fallback for unknown flavors of ACLs.
37494
37495 2008-05-22  Bruno Haible  <bruno@clisp.org>
37496
37497         Add support for ACLs on OSF/1.
37498         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37499         replacements.
37500         (acl_free_text): New macro fallback.
37501         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37502         acl_free.
37503         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37504         acl_free_text function. Require AC_C_INLINE.
37505
37506 2008-05-22  Bruno Haible  <bruno@clisp.org>
37507
37508         Make copy_acl work on MacOS X 10.5.
37509         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37510         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37511         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37512         If MODE_INSIDE_ACL, don't assume that every system has the same text
37513         representation for ACLs as FreeBSD.
37514         * lib/copy-acl.c (copy_acl): Add support for platforms with
37515         !MODE_INSIDE_ACL.
37516         * lib/file-has-acl.c (file_has_acl): Likewise.
37517         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37518         FreeBSD, MacOS X, or IRIX, respectively.
37519
37520 2008-05-22  Bruno Haible  <bruno@clisp.org>
37521
37522         * lib/acl.h: Don't include <sys/acl.h>.
37523         (GETACLCNT): Move fallback to lib/acl-internal.h.
37524         * lib/acl-internal.h: Include <sys/acl.h> here.
37525         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37526
37527 2008-05-22  Bruno Haible  <bruno@clisp.org>
37528
37529         Split off copy_acl function to separate file.
37530         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37531         * lib/acl.c (copy_acl): Moved function to separate file.
37532         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37533         * modules/acl (Files): Add lib/copy-acl.c.
37534         (Makefiles.am): Augment lib_SOURCES.
37535
37536 2008-05-22  Bruno Haible  <bruno@clisp.org>
37537
37538         * modules/copy-file-tests: New file.
37539         * tests/test-copy-file.sh: New file.
37540         * tests/test-copy-file.c: New file.
37541         * tests/test-copy-file-sameacls.c: New file.
37542
37543 2008-05-22  Eric Blake  <ebb9@byu.net>
37544
37545         Avoid gcc warning.
37546         * tests/test-memcmp.c (main): Pass NULL indirectly.
37547
37548 2008-05-21  Bruno Haible  <bruno@clisp.org>
37549
37550         Add reference doc about ACLs.
37551         * doc/acl-resources.txt: New file.
37552         * doc/acl-cygwin.txt: New file.
37553
37554 2008-05-21  Bruno Haible  <bruno@clisp.org>
37555
37556         Avoid one more warning from gcc.
37557         * lib/vasnprintf.c (IF_LINT): Update comments.
37558         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37559
37560 2008-05-21  Jim Meyering  <meyering@redhat.com>
37561
37562         avoid a warning from gcc
37563         * lib/vasnprintf.c (IF_LINT): Define.
37564         (scale10_round_decimal_long_double):
37565         Use it to avoid a "may be used uninitialized" warning.
37566         (scale10_round_decimal_double): Likewise.
37567
37568 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37569
37570         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37571         declared.
37572
37573 2008-05-20  Bruno Haible  <bruno@clisp.org>
37574
37575         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37576         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37577
37578 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37579
37580         * modules/memcmp-tests: New file.
37581         * tests/test-memcmp.c: New file.
37582
37583 2008-05-19  Bruno Haible  <bruno@clisp.org>
37584
37585         * modules/propername (Notice, configure.ac): Put quoted "..." into
37586         --keyword option.
37587         * lib/propername.h: Update comments accordingly.
37588         Reported by Eric Blake.
37589
37590 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37591
37592         * modules/getpass-gnu (Depends-on): Add fseeko.
37593
37594 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37595
37596         * modules/base64-tests: New file.
37597
37598 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37599
37600         * lib/base64.c (base64_decode_ctx): If a decode context structure
37601         was passed in use it to ignore newlines.  If a context structure
37602         was _not_ passed in, continue to treat newlines as garbage (this
37603         is the historical behavior).  Formerly base64_decode.
37604         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37605         takes a decode context structure.
37606         * lib/base64.h (base64_decode): Macro for four-argument calls.
37607         (base64_decode_alloc): Likewise.
37608         * lib/base64.c (base64_decode_ctx): If a decode context structure
37609         was passed in use it to ignore newlines.  If a context structure
37610         was _not_ passed in, continue to treat newlines as garbage (this
37611         is the historical behavior).  Formerly base64_decode.
37612         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37613         takes a decode context structure.
37614         * lib/base64.h (base64_decode): Macro for four-argument calls.
37615         (base64_decode_alloc): Likewise.
37616
37617 2008-05-19  Jim Meyering  <meyering@redhat.com>
37618
37619         avoid a warning from gcc
37620         * lib/trim.c (IF_LINT): Define.
37621         (trim2): Use it to avoid a "may be used uninitialized" warning.
37622
37623         Fix doc typo.
37624         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37625
37626 2008-05-19  Bruno Haible  <bruno@clisp.org>
37627
37628         * doc/glibc-functions/getpass.texi: Document limits of other
37629         implementations.
37630
37631 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37632             Bruno Haible <bruno@clisp.org>
37633
37634         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37635
37636 2008-05-18  Bruno Haible  <bruno@clisp.org>
37637
37638         * modules/propername: New file, from GNU gettext.
37639         * lib/propername.h: New file, from GNU gettext.
37640         * lib/propername.c: New file, from GNU gettext.
37641         * MODULES.html.sh (Internationalization functions): Add propername.
37642
37643 2008-05-16  Jim Meyering  <meyering@redhat.com>
37644             Bruno Haible  <bruno@clisp.org>
37645
37646         Avoid some warnings from "gcc -Wshadow".
37647         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37648
37649 2008-05-15  Eric Blake  <ebb9@byu.net>
37650
37651         Extend previous patch to cygwin 1.7.0.
37652         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37653         fast implementation in cygwin >= 1.7.0.
37654         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37656
37657 2008-05-15  Bruno Haible  <bruno@clisp.org>
37658
37659         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37660         implementation in glibc >= 2.9.
37661         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37663
37664 2008-05-15  Bruno Haible  <bruno@clisp.org>
37665
37666         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37667         (Unicode string functions): Add unilbrk/*.
37668         Reported by Karl Berry.
37669
37670 2008-05-15  Eric Blake  <ebb9@byu.net>
37671
37672         Fix violation of <stdbool.h> replacement in regex.
37673         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37674         * lib/regexec.c (re_search_internal): Likewise.
37675         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37676
37677 2008-05-15  Jim Meyering  <meyering@redhat.com>
37678
37679         avoid distracting test output when git or cvs is not found
37680         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37681         * tests/test-vc-list-files-git.sh: Likewise.
37682
37683 2008-05-15  Eric Blake  <ebb9@byu.net>
37684
37685         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37686         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37687         glibc version.
37688         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37689         * doc/posix-functions/strstr.texi (strstr): Likewise.
37690         * lib/str-two-way.h (MAX): Sychronize with glibc.
37691
37692 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37693
37694         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37695         opr.ctx_type.
37696         (calc_first): Initialize constraint field.
37697         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37698         Fix grammar.
37699         (duplicate_node): Merge constraint field for all node types.
37700         (calc_eclosure_iter): Look at constraint field for all node types.
37701         * lib/regex_internal.c (create_cd_newstate): Don't look at
37702         opr.ctx_type.
37703
37704 2008-05-14  Bruno Haible  <bruno@clisp.org>
37705
37706         Help GCC to do better code generation.
37707         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37708         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37709         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37710         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37711         Declare with attribute 'malloc' if supported.
37712
37713 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37714
37715         use "echo STR|wc -c" rather than unportable "expr length STR"
37716         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37717         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37718
37719 2008-05-14  Jim Meyering  <meyering@redhat.com>
37720
37721         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37722         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37723         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37724         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37725         via Collin Lasse.
37726
37727 2008-05-14  Eric Blake  <ebb9@byu.net>
37728
37729         Avoid quadratic growth in gl_LIBSOURCES.
37730         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37731         Suggested by Bruno Haible.
37732
37733         Test xmemdup0.
37734         * modules/xmemdup0-tests: New file.
37735         * tests/test-xmemdup0.c: Likewise.
37736
37737 2008-05-13  Eric Blake  <ebb9@byu.net>
37738
37739         Split xmemdup0 into its own module.
37740         * modules/xmemdup0: New file.
37741         * lib/xmemdup0.h: Likewise.
37742         * lib/xmemdup0.c: Likewise.
37743         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37744         * lib/xalloc.h (xmemdup0): Remove.
37745         * lib/xmalloc.c (xmemdup0): Likewise.
37746
37747 2008-05-13  Eric Blake  <ebb9@byu.net>
37748             Bruno Haible  <bruno@clisp.org>
37749
37750         Reduce number of forks required during autoconf.
37751         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37752         and gl_LIBSOURCES_DIR.
37753         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37754         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37755         m4_syscmd per file.
37756         <m4_foreach_w>: Move...
37757         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37758
37759 2008-05-13  Eric Blake  <ebb9@byu.net>
37760
37761         * gnulib-tool: Fix various comment typos.
37762
37763 2008-05-12  Bruno Haible  <bruno@clisp.org>
37764
37765         Tailor the linebreaking algorithm.
37766         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37767
37768 2008-05-12  Bruno Haible  <bruno@clisp.org>
37769
37770         Update to Unicode 5.0.0.
37771         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37772         LBP_JV, LBP_JT. Redistribute values.
37773         (unilbrk_table): Change size.
37774         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37775         Unicode TR#14 rev. 22.
37776         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37777         LBP_JV, LBP_JT. Redistribute values.
37778         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37779         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37780         Update.
37781         * lib/unilbrk/lbrkprop1.h: Regenerated.
37782         * lib/unilbrk/lbrkprop2.h: Regenerated.
37783         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37784         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37785         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37786         Likewise.
37787         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37788         Likewise.
37789         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37790         result.
37791         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37792         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37793         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37794         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37795         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37796         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37797
37798 2008-05-11  Bruno Haible  <bruno@clisp.org>
37799
37800         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37801
37802 2008-05-11  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37805         * modules/unilbrk/gen-lbrk: New file.
37806
37807 2008-05-11  Bruno Haible  <bruno@clisp.org>
37808
37809         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37810         * m4/sha512.m4 (gl_SHA512): Likewise.
37811
37812 2008-05-11  Jim Meyering  <meyering@redhat.com>
37813
37814         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37815         * modules/crypto/sha256: New file.
37816         * modules/crypto/sha512: Likewise.
37817         * lib/sha256.c: Likewise.
37818         * lib/sha256.h: Likewise.
37819         * lib/sha512.c: Likewise.
37820         * lib/sha512.h: Likewise.
37821         * lib/u64.h: Likewise.
37822         * m4/sha256.m4: Likewise.
37823         * m4/sha512.m4: Likewise.
37824         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37825
37826 2008-05-10  Bruno Haible  <bruno@clisp.org>
37827
37828         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37829         (Input/Output <stdio.h>): Add xprintf.
37830         (Signal handling <signal.h>): Add strsignal.
37831         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37832         (Core language properties): Add func.
37833         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37834         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37835         strings.
37836         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37837         (Input/output): New section.
37838         (File system functions): Add openat-die, stat-macros.
37839         (Networking functions): Add sockets.
37840         (Unicode string functions): Add unictype/*.
37841         (Support for building libraries and executables): Add gperf.
37842         (Support for building documentation): Add agpl-3.0.
37843         (Misc): Add nocrash.
37844
37845 2008-05-10  Bruno Haible  <bruno@clisp.org>
37846
37847         * modules/unictype/gen-ctype: New file.
37848
37849 2008-05-10  Jim Meyering  <meyering@redhat.com>
37850
37851         Make chdir-safer.c more efficient on a system with no symlinks.
37852         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37853         also if ELOOP is zero.  Suggested by Bruno Haible.
37854
37855         Make chdir-safer.c slightly safer.
37856         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37857         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37858
37859         Avoid compile failure on systems without ELOOP (like mingw).
37860         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37861         Reported by Bruno Haible.
37862
37863 2008-05-10  Bruno Haible  <bruno@clisp.org>
37864
37865         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37866         (is_utf8_encoding): Use a case-insensitive comparison.
37867         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37868         streq.
37869
37870 2008-05-10  Bruno Haible  <bruno@clisp.org>
37871
37872         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37873         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37874         * lib/unilbrk/ulc-common.h (iconv_string_length,
37875         iconv_string_keeping_offsets): Remove declarations.
37876         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37877         Don't include <iconv.h>, streq.h, xsize.h.
37878         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37879         conversion.
37880         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37881         <iconv.h>, streq.h, xsize.h.
37882         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37883         conversion.
37884         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37885         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37886         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37887         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37888
37889 2008-05-10  Bruno Haible  <bruno@clisp.org>
37890
37891         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37892         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37893
37894         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37895         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37896
37897         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37898         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37899
37900         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37901         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37902
37903         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37904         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37905
37906         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37907         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37908
37909         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37910         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37911
37912         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37913         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37914
37915 2008-05-10  Bruno Haible  <bruno@clisp.org>
37916
37917         Split up 'linebreak' module.
37918         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37919         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37920         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37921         modifications.
37922         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37923         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37924         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37925         lib/linebreak.c.
37926         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37927         lib/linebreak.c.
37928         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37929         lib/linebreak.c.
37930         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37931         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37932         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37933         lib/linebreak.c.
37934         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37935         lib/linebreak.c.
37936         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37937         lib/linebreak.c.
37938         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37939         lib/linebreak.c.
37940         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37941         lib/linebreak.c.
37942         * modules/unilbrk/base: New file.
37943         * modules/unilbrk/tables: New file.
37944         * modules/unilbrk/u8-possible-linebreaks: New file.
37945         * modules/unilbrk/u16-possible-linebreaks: New file.
37946         * modules/unilbrk/u32-possible-linebreaks: New file.
37947         * modules/unilbrk/ulc-common: New file.
37948         * modules/unilbrk/ulc-possible-linebreaks: New file.
37949         * modules/unilbrk/u8-width-linebreaks: New file.
37950         * modules/unilbrk/u16-width-linebreaks: New file.
37951         * modules/unilbrk/u32-width-linebreaks: New file.
37952         * modules/unilbrk/ulc-width-linebreaks: New file.
37953         * lib/linebreak.h: Remove file.
37954         * lib/linebreak.c: Remove file.
37955         * m4/linebreak.m4: Remove file.
37956         * modules/linebreak: Remove file.
37957         * NEWS: Mention the changes.
37958
37959 2008-05-09  Eric Blake  <ebb9@byu.net>
37960
37961         Add xmemdup0.
37962         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37963         implementation.
37964         * lib/xmalloc.c (xmemdup0): New C implementation.
37965
37966 2008-05-08  Bruno Haible  <bruno@clisp.org>
37967
37968         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37969
37970 2008-05-07  Eric Blake  <ebb9@byu.net>
37971
37972         Support cross-compilation of <wctype.h>.
37973         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37974         AC_CACHE_CHECK.
37975
37976 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37977
37978         * build-aux/vc-list-files: Add support for bzr.
37979
37980 2008-05-03  Jim Meyering  <meyering@redhat.com>
37981
37982         avoid failed assertion with tight malloc
37983         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37984
37985 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37986
37987         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37988         are needed from arpa/inet.h.
37989         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37990         Reported by Bruno Haible.
37991
37992 2008-05-02  Jim Meyering  <meyering@redhat.com>
37993
37994         avoid compilation error on FreeBSD 6
37995         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37996
37997 2008-05-01  Jim Meyering  <meyering@redhat.com>
37998
37999         useless-if-before-free: correct --help's exit status description
38000         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38001         for one or more matches, etc.  Reported by Bruno Haible.
38002
38003         vc-list-files: make the stand-alone gnulib test work
38004         * modules/vc-list-files-tests (configure.ac):
38005         Define and AC_SUBST abs_aux_dir.
38006         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38007         $(abs_top_srcdir) to each script and having each of them
38008         duplicate the work of setting PATH, set PATH here, using
38009         the new variable, abs_aux_dir instead.
38010         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38011         * tests/test-vc-list-files-git.sh: Likewise.
38012         Reported by Bruno Haible.
38013
38014 2008-05-01  Bruno Haible  <bruno@clisp.org>
38015
38016         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38017         reallocation. Rename 'done' to 'found_delimiter'.
38018
38019 2008-05-01  Jim Meyering  <meyering@redhat.com>
38020
38021         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38022         * build-aux/vc-list-files: Use `...`, not $(...).
38023
38024 2008-04-30  Jim Meyering  <meyering@redhat.com>
38025
38026         add tests for vc-list-files
38027         * modules/vc-list-files-tests: New module.
38028         * tests/test-vc-list-files-cvs.sh: New file.
38029         * tests/test-vc-list-files-git.sh: New file.
38030
38031         avoid a warning from gcc
38032         * lib/getndelim2.c (IF_LINT): Define.
38033         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38034
38035         vc-list-files: work properly with build-aux/cvsu, too
38036         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38037         to all cvs-based clauses.
38038
38039         vc-list-files: work properly in the CVS+awk case, too
38040         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38041
38042         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38043         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38044         take more than one file argument, so .  Add quotes, just in case $dir
38045         ever contains a shell meta-character.  Prompted by Soren Hansen in
38046         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38047
38048 2008-04-29  Eric Blake  <ebb9@byu.net>
38049
38050         Optimize getndelim2 to use block operations when possible.
38051         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38052         freadseek, and memchr2.
38053         * lib/getndelim2.c (getndelim2): Use them for block reads.
38054
38055 2008-04-29  Bruno Haible  <bruno@clisp.org>
38056
38057         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38058         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38059         * modules/inet_ntop (Depends-on): Add extensions.
38060         * modules/inet_pton (Depends-on): Likewise.
38061         Reported by Simon Josefsson.
38062
38063 2008-04-29  Jim Meyering  <meyering@redhat.com>
38064
38065         When the is more than one match in a block, match all of them.
38066         * build-aux/useless-if-before-free: Iterate through each block
38067         until there are no more matches.
38068
38069         Fix broken useless-if-before-free script.
38070         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38071         the expression to match cast of argument to free-like function.
38072
38073 2008-04-29  Eric Blake  <ebb9@byu.net>
38074
38075         Use new header.
38076         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38077
38078 2008-04-29  Jim Meyering  <meyering@redhat.com>
38079
38080         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38081         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38082         by gnulib to exist and to declare e.g., inet_ntop.
38083         Don't include "inet_ntop.h", now removed.
38084
38085         * m4/arpa_inet_h.m4: Remove trailing blanks.
38086
38087 2008-04-29  Eric Blake  <ebb9@byu.net>
38088
38089         Silence valgrind on safe reads beyond potential array bounds.
38090         * lib/rawmemchr.valgrind: New file.
38091         * lib/strchrnul.valgrind: Likewise.
38092         * modules/rawmemchr (Files): Distribute new file.
38093         * modules/strchrnul (Files): Likewise.
38094         Suggested by Bruno Haible.
38095
38096 2008-04-29  Bruno Haible  <bruno@clisp.org>
38097
38098         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38099         (inet_ntop, inet_pton): Change portability warning's wording.
38100         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38101         Invoke gl_CHECK_NEXT_HEADERS.
38102         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38103         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38104         set ARPA_INET_H.
38105         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38106         * modules/arpa_inet (Description): No longer only for systems that
38107         lack it.
38108         (Depends-on): Add include_next.
38109         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38110         HAVE_ARPA_INET_H.
38111
38112 2008-04-29  Jim Meyering  <meyering@redhat.com>
38113
38114         * modules/mkdir (License): Re-license as LGPLv2+.
38115
38116 2008-04-29  Bruno Haible  <bruno@clisp.org>
38117
38118         * modules/rawmemchr (Maintainer): Set to Eric.
38119         * modules/strchrnul (Maintainer): Likewise.
38120
38121 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38122
38123         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38124         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38125
38126         * modules/arpa_inet (arpa/inet.h): Use them.
38127
38128 2008-04-28  Eric Blake  <ebb9@byu.net>
38129
38130         Test getndelim2.
38131         * modules/getndelim2-tests: New file.
38132         * tests/test-getndelim2.c: Likewise.
38133         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38134         stream.
38135         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38136
38137         * MODULES.html.sh: Document new module.
38138
38139 2008-04-20  Bruno Haible  <bruno@clisp.org>
38140
38141         * lib/c-stack.c (die): Use raise.
38142         * modules/c-stack (Depends-on): Add raise.
38143
38144 2008-04-28  Bruno Haible  <bruno@clisp.org>
38145
38146         Expect rpmatch to be declared.
38147         * lib/yesno.c (rpmatch): Remove declaration.
38148
38149         Declare rpmatch.
38150         * lib/stdlib.in.h (rpmatch): New declaration.
38151         * lib/rpmatch.c: Include <stdlib.h> first.
38152         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38153         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38155         HAVE_RPMATCH.
38156         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38157         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38158         (Include): Set to <stdlib.h>.
38159         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38160         HAVE_RPMATCH.
38161         * NEWS: Document the change.
38162
38163 2008-04-28  Bruno Haible  <bruno@clisp.org>
38164
38165         Change rpmatch to use nl_langinfo when appropriate.
38166         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38167         (N_): New macro.
38168         (localized_pattern): New function/macro.
38169         (try): Remove match, nomatch arguments. Copy the pattern into safe
38170         memory before caching it.
38171         (rpmatch): Use localized_pattern. Add translator comments.
38172         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38173         Suggested by Eric Blake.
38174         * modules/rpmatch (Depends-on): Add stdbool.
38175
38176 2008-04-28  Eric Blake  <ebb9@byu.net>
38177
38178         Add rawmemchr module, matching glibc.
38179         * modules/string (Makefile.am): New indicator.
38180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38181         * lib/string.in.h (rawmemchr): Declare when appropriate.
38182         * modules/rawmemchr: New file.
38183         * m4/rawmemchr.m4: Likewise.
38184         * lib/rawmemchr.c: Likewise.
38185         * modules/rawmemchr-tests: Likewise.
38186         * tests/test-rawmemchr.c: Likewise.
38187         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38188         module.
38189         * modules/strchrnul (Depends-on): Add rawmemchr.
38190         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38191
38192         Whitespace cleanup.
38193         * tests/test-strchrnul.c: Reindent.
38194         * lib/strchrnul.c: Likewise.
38195
38196         Optimize and test strchrnul.
38197         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38198         * modules/strchrnul-tests: New file.
38199         * tests/test-strchrnul.c: Likewise.
38200
38201         Remove intprops dependency.
38202         * modules/memchr (Depends-on): Remove intprops.
38203         * modules/memrchr (Depends-on): Likewise.
38204         * modules/memchr2 (Depends-on): Likewise.
38205         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38206         * lib/memrchr.c (__memrchr): Likewise.
38207         * lib/memrchr2.c (memchr2): Likewise.
38208         Reported by Simon Josefsson.
38209
38210 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38211
38212         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38213         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38214
38215 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38216
38217         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38218
38219         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38220
38221         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38222
38223         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38224         declarations.
38225         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38226
38227         * m4/inet_pton.m4: Don't check for header files.
38228
38229         * m4/inet_ntop.m4: Don't check for header files.
38230
38231 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38232
38233         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38234         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38235         trigger for cygwin).
38236         Reported by Bruno Haible  <bruno@clisp.org>.
38237
38238 2008-04-28  Bruno Haible  <bruno@clisp.org>
38239
38240         * doc/posix-functions/strdup.texi: Mention mingw problem.
38241
38242 2008-04-27  Bruno Haible  <bruno@clisp.org>
38243
38244         * modules/stat-time-tests (Depends-on): Add sleep.
38245         * tests/test-stat-time.c (force_unlink): New function.
38246         (cleanup): Use it.
38247         (test_mtime): Remove the ctime related tests.
38248         (test_ctime): New function, containing the ctime related tests.
38249         (main): Call test_ctime, except on native Windows platforms.
38250
38251 2008-04-27  Bruno Haible  <bruno@clisp.org>
38252
38253         * lib/rpmatch.c (rpmatch): Add some comments.
38254         Reported by James Youngman <jay@gnu.org>.
38255
38256 2008-04-27  Bruno Haible  <bruno@clisp.org>
38257
38258         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38259         quiet NaNs.
38260
38261 2008-04-27  Bruno Haible  <bruno@clisp.org>
38262
38263         Make test-yesno.sh work on mingw.
38264         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38265         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38266         (main): Set stdin to binary mode.
38267         * modules/yesno-tests (Depends-on): Add binary-io.
38268
38269 2008-04-27  Bruno Haible  <bruno@clisp.org>
38270
38271         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38272         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38273         argument that lie outside the IEEE 854 domain.
38274         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38275         (gl_ISFINITE): Use it.
38276         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38277
38278 2008-04-27  Bruno Haible  <bruno@clisp.org>
38279
38280         Allow local renaming in config.h.
38281         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38282
38283 2008-04-27  Bruno Haible  <bruno@clisp.org>
38284
38285         * lib/memchr.c (__memchr): Change type of 'i'.
38286         * lib/memchr2.c (memchr2): Likewise.
38287
38288 2008-04-26  Eric Blake  <ebb9@byu.net>
38289         and Bruno Haible  <bruno@clisp.org>
38290
38291         Optimize and test memrchr.
38292         * modules/memrchr (Depends-on): Add intprops.
38293         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38294         * modules/memrchr-tests: New file.
38295         * tests/test-memrchr.c: New file.
38296
38297 2008-04-26  Bruno Haible  <bruno@clisp.org>
38298
38299         Add tentative support for DragonFly BSD.
38300         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38301         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38302         fp.
38303         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38304         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38305         * lib/fpurge.c (fpurge): Likewise.
38306         * lib/freadable.c (freaadable): Likewise.
38307         * lib/freadahead.c (freadahead): Likewise.
38308         * lib/freading.c (freading): Likewise.
38309         * lib/freadptr.c (freadptr): Likewise.
38310         * lib/freadseek.c (freadptrinc): Likewise.
38311         * lib/fseeko.c (fseeko): Likewise.
38312         * lib/fseterr.c (fseterr): Likewise.
38313         * lib/fwritable.c (fwritable): Likewise.
38314         * lib/fwriting.c (fwriting): Likewise.
38315
38316 2008-04-26  Bruno Haible  <bruno@clisp.org>
38317
38318         * lib/stdio-impl.h: New file.
38319         * lib/fbufmode.c: Include stdio-impl.h.
38320         (fbufmode): Use fp_, remove redundant #defines.
38321         * lib/fflush.c: Include stdio-impl.h.
38322         (clear_ungetc_buffer): Remove redundant #defines.
38323         * lib/fpurge.c: Include stdio-impl.h.
38324         (fpurge): Remove redundant #defines.
38325         * lib/freadable.c: Include stdio-impl.h.
38326         (freadable): Remove redundant #defines.
38327         * lib/freadahead.c: Include stdio-impl.h.
38328         (freadahead): Remove redundant #defines.
38329         * lib/freading.c: Include stdio-impl.h.
38330         (freading): Remove redundant #defines.
38331         * lib/freadptr.c: Include stdio-impl.h.
38332         (freadptr): Remove redundant #defines.
38333         * lib/freadseek.c: Include stdio-impl.h.
38334         (freadptrinc): Remove redundant #defines.
38335         * lib/fseeko.c: Include stdio-impl.h.
38336         (rpl_fseeko): Remove redundant #defines.
38337         * lib/fseterr.c: Include stdio-impl.h.
38338         (fseterr): Remove redundant #defines.
38339         * lib/fwritable.c: Include stdio-impl.h.
38340         (fwritable: Remove redundant #defines.
38341         * lib/fwriting.c: Include stdio-impl.h.
38342         (fwriting): Remove redundant #defines.
38343         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38344         * modules/fflush (Files): Likewise.
38345         * modules/fpurge (Files): Likewise.
38346         * modules/freadable (Files): Likewise.
38347         * modules/freadahead (Files): Likewise.
38348         * modules/freading (Files): Likewise.
38349         * modules/freadptr (Files): Likewise.
38350         * modules/freadseek (Files): Likewise.
38351         * modules/fseeko (Files): Likewise.
38352         * modules/fseterr (Files): Likewise.
38353         * modules/fwritable (Files): Likewise.
38354         * modules/fwriting (Files): Likewise.
38355
38356 2008-04-26  Bruno Haible  <bruno@clisp.org>
38357
38358         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38359         restore_seek_optimization, update_fpos_cache): New functions, extracted
38360         from rpl_fflush.
38361         (rpl_fflush): Use them.
38362         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38363         (gl_REPLACE_FFLUSH): Use it.
38364
38365 2008-04-26  Bruno Haible  <bruno@clisp.org>
38366
38367         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38368         on Solaris.
38369         * tests/test-xstrtoimax.sh: Likewise.
38370         * tests/test-xstrtoumax.sh: Likewise.
38371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38372
38373 2008-04-26  Bruno Haible  <bruno@clisp.org>
38374
38375         * modules/memchr-tests: New file.
38376         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38377
38378 2008-04-26  Eric Blake  <ebb9@byu.net>
38379             Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/memchr.c: Include intprops.h.
38382         (__memchr): Optimize parallel detection of matching bytes. Rename local
38383         variables. Add explanatory comments.
38384
38385 2008-04-26  Bruno Haible  <bruno@clisp.org>
38386
38387         Fix module 'memchr', broken since 2000-10-28.
38388         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38389
38390 2008-04-26  Bruno Haible  <bruno@clisp.org>
38391
38392         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38393         comments.
38394
38395 2008-04-25  Eric Blake  <ebb9@byu.net>
38396
38397         Use native fstatat on cygwin 1.7.0.
38398         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38399         first.
38400
38401 2008-04-23  Eric Blake  <ebb9@byu.net>
38402
38403         Improve memchr2 performance.
38404         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38405         NUL bytes.
38406         * modules/memchr2 (Depends-on): Use intprops.h.
38407
38408 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38409
38410         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38411         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38412         <blp@cs.stanford.edu>.
38413
38414 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38415
38416         * lib/arpa_inet.in.h: New file.
38417
38418         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38419         (Makefile.am): Sed in substitute header file.
38420
38421         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38422         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38423
38424         * modules/inet_ntop (configure.ac): Use
38425         gl_ARPA_INET_MODULE_INDICATOR.
38426
38427         * modules/inet_pton (configure.ac): Use
38428         gl_ARPA_INET_MODULE_INDICATOR.
38429
38430 2008-04-22  Jim Meyering  <meyering@redhat.com>
38431
38432         * modules/verify (License): Re-license as LGPLv2+.
38433
38434 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38435
38436         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38437         parameter to void* as per POSIX standard (MinGW uses char*).
38438
38439 2008-04-21  Bruno Haible  <bruno@clisp.org>
38440
38441         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38442         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38443         Define to replacements if REPLACE_ISWCNTRL is 1.
38444         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38445         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38446         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38447         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38448         what it fixes.
38449         * doc/posix-functions/iswalpha.texi: Likewise.
38450         * doc/posix-functions/iswblank.texi: Likewise.
38451         * doc/posix-functions/iswcntrl.texi: Likewise.
38452         * doc/posix-functions/iswdigit.texi: Likewise.
38453         * doc/posix-functions/iswgraph.texi: Likewise.
38454         * doc/posix-functions/iswlower.texi: Likewise.
38455         * doc/posix-functions/iswprint.texi: Likewise.
38456         * doc/posix-functions/iswpunct.texi: Likewise.
38457         * doc/posix-functions/iswspace.texi: Likewise.
38458         * doc/posix-functions/iswupper.texi: Likewise.
38459         * doc/posix-functions/iswxdigit.texi: Likewise.
38460         Reported by Alain Guibert.
38461
38462 2008-04-21  Bruno Haible  <bruno@clisp.org>
38463
38464         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38465         Patch by Alain Guibert.
38466
38467 2008-04-21  Bruno Haible  <bruno@clisp.org>
38468
38469         Fix test failures on mingw.
38470         * tests/test-xstrtol.c (print_no_progname): New function.
38471         (main): Install it in error_print_progname hook.
38472         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38473         * tests/test-xstrtoimax.sh: Likewise.
38474         * tests/test-xstrtoumax.sh: Likewise.
38475
38476 2008-04-21  Bruno Haible  <bruno@clisp.org>
38477
38478         Fix test failure on mingw.
38479         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38480
38481 2008-04-21  Bruno Haible  <bruno@clisp.org>
38482
38483         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38484         Actually assign a value.
38485
38486 2008-04-20  Bruno Haible  <bruno@clisp.org>
38487
38488         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38489         take 2.
38490         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38491         'canonicalize-lgpl' module is also used.
38492         * lib/canonicalize-lgpl.c: Undo last change.
38493         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38494
38495 2008-04-20  Bruno Haible  <bruno@clisp.org>
38496
38497         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38498         config.h. Provide _mkdir based fallback for mingw.
38499         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38500         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38501         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38502         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38503         rather than defining mkdir in config.h.
38504         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38505         (gl_SYS_STAT_H_DEFAULTS): New macro.
38506         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38507         HAVE_IO_H any more.
38508         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38509         HAVE_DECL_MKDIR and HAVE_IO_H.
38510
38511 2008-04-20  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/isapipe.c: Port to native Windows platforms.
38514
38515 2008-04-20  Bruno Haible  <bruno@clisp.org>
38516
38517         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38518
38519 2008-04-21  Eric Blake  <ebb9@byu.net>
38520
38521         Work around preprocessors that don't handle UINTMAX_MAX.
38522         * lib/memchr2.c (memchr2): Avoid embedded #if.
38523         Reported by Alain Guibert, fix suggested by Bruno Haible.
38524
38525 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38526
38527         * doc/posix-functions/strftime.texi (strftime): Explain better
38528         Windows incompatibility.  Suggested by Micah Cowan
38529         <micah@cowan.name>.
38530
38531 2008-04-20  Bruno Haible  <bruno@clisp.org>
38532
38533         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38534         unistr/u8-mblen.
38535
38536 2008-04-20  Bruno Haible  <bruno@clisp.org>
38537
38538         Fix test failure on platforms with non-GNU iconv.
38539         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38540         (U_TO_U8): Use it, rather than u16_to_u8.
38541         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38542         units at the end of the input string.
38543         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38544
38545 2008-04-20  Bruno Haible  <bruno@clisp.org>
38546
38547         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38548         when the resulting length is 0.
38549         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38550
38551 2008-04-20  Bruno Haible  <bruno@clisp.org>
38552
38553         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38554         works.
38555         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38556
38557 2008-04-20  Bruno Haible  <bruno@clisp.org>
38558
38559         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38560         * modules/tsearch-tests (configure.ac): Test for initstate function.
38561
38562 2008-04-20  Bruno Haible  <bruno@clisp.org>
38563
38564         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38565         for nlink_t if missing.
38566         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38567
38568 2008-04-19  Bruno Haible  <bruno@clisp.org>
38569
38570         Work around snprintf bug on Linux libc5.
38571         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38573         gl_SNPRINTF_SIZE1.
38574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38575         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38576         that test failed.
38577         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38578         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38579         * modules/snprintf (Files): Add m4/printf.m4.
38580         * modules/vsnprintf (Files): Likewise.
38581         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38582         * doc/posix-functions/vsnprintf.texi: Likewise.
38583
38584 2008-04-19  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38587         from 0.0058 to less than 10^-7.
38588
38589 2008-04-19  Bruno Haible  <bruno@clisp.org>
38590
38591         Fix rounding when a precision is given.
38592         * lib/vasnprintf.c (is_borderline): New function.
38593         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38594         9...9x.
38595         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38596         %e, %g.
38597         * tests/test-vasprintf-posix.c (test_function): Likewise.
38598         * tests/test-snprintf-posix.h (test_function): Likewise.
38599         * tests/test-sprintf-posix.h (test_function): Likewise.
38600         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38601         * tests/test-printf-posix.h (test_function): Likewise.
38602         * tests/test-printf-posix.output: Update.
38603         Reported by John Darrington <john@darrington.wattle.id.au> via
38604         Ben Pfaff <blp@cs.stanford.edu>.
38605
38606 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38607
38608         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38609         Suggested by Bruno Haible <bruno@clisp.org>.
38610
38611 2008-04-17  Bruno Haible  <bruno@clisp.org>
38612
38613         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38614         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38615         implementation.
38616         Patch by Bruce Merry <bmerry@gmail.com>.
38617
38618 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38619
38620         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38621         doesn't work under Windows.
38622
38623 2008-04-16  Bruno Haible  <bruno@clisp.org>
38624
38625         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38626         New macros.
38627         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38628         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38629         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38630         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38631         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38632         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38633         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38634         macros.
38635         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38636         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38637         Northern Sotho, Uighur.
38638
38639 2008-04-16  Bruno Haible  <bruno@clisp.org>
38640
38641         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38642         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38643         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38644         Reported by Daniel Bergström <daniel@octocode.com>.
38645
38646 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38647             Bruno Haible  <bruno@clisp.org>
38648
38649         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38650         function.
38651         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38652         New functions, mostly extracted from gl_locale_name_default.
38653         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38654
38655 2008-04-16  Eric Blake  <ebb9@byu.net>
38656
38657         Adjust strtod detection to catch glibc 2.7 bug.
38658         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38659         Reported by John Gatewood Ham.
38660
38661 2008-04-16  Bruno Haible  <bruno@clisp.org>
38662
38663         Add tentative support for Linux libc5.
38664         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38665         * lib/fpurge.c (fpurge): Likewise.
38666         * lib/freadable.c (freadable): Likewise.
38667         * lib/freadahead.c (freadahead): Likewise.
38668         * lib/freading.c (freading): Likewise.
38669         * lib/freadptr.c (freadptr): Likewise.
38670         * lib/freadseek.c (freadptrinc): Likewise.
38671         * lib/fseeko.c (rpl_fseeko): Likewise.
38672         * lib/fseterr.c (fseterr): Likewise.
38673         * lib/fwritable.c (fwritable): Likewise.
38674         * lib/fwriting.c (fwriting): Likewise.
38675         Reported by Alain Guibert <alguibert+bts@free.fr>.
38676
38677 2008-04-15  Bruno Haible  <bruno@clisp.org>
38678
38679         * modules/mathl (configure.ac): Define module indicator.
38680
38681 2008-04-15  Bruno Haible  <bruno@clisp.org>
38682
38683         * lib/logl.c (logl): Remove unused variables.
38684
38685 2008-04-15  Bruno Haible  <bruno@clisp.org>
38686
38687         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38688         fails.
38689
38690 2008-04-15  Bruno Haible  <bruno@clisp.org>
38691
38692         * lib/trim.c (trim2): Fix argument of isspace() macro.
38693
38694 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38695
38696         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38697         to 0.
38698         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38699
38700 2008-04-14  Bruno Haible  <bruno@clisp.org>
38701
38702         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38703         AC_LANG_PROGRAM argument.
38704         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38705         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38707         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38708         * m4/math_h.m4 (gl_MATH_H): Likewise.
38709         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38711         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38712         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38713         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38714         * m4/regex.m4 (gl_REGEX): Likewise.
38715         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38716         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38718         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38719         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38720         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38723
38724 2008-04-14  Jim Meyering  <meyering@redhat.com>
38725
38726         test-strtod: fix typos: s/abs/fabs/
38727         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38728
38729 2008-04-13  Bruno Haible  <bruno@clisp.org>
38730
38731         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38732         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38733         module is also used and while not building the reloc-wrapper.
38734
38735 2008-04-13  Bruno Haible  <bruno@clisp.org>
38736
38737         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38738
38739 2008-04-13  Bruno Haible  <bruno@clisp.org>
38740
38741         Fix AIX compilation failure introduced on 2008-04-02.
38742         * tests/test-frexp.c (exp): Undefine before redefining.
38743         * tests/test-frexpl.c (exp): Likewise.
38744
38745 2008-04-13  Bruno Haible  <bruno@clisp.org>
38746
38747         Work around a HP-UX stdio bug.
38748         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38749         * tests/test-ftello.c (main): Likewise.
38750         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38751         * doc/posix-functions/ftello.texi: Likewise.
38752
38753 2008-04-13  Bruno Haible  <bruno@clisp.org>
38754
38755         Make test-signbit pass on HP-UX/hppa.
38756         * tests/test-signbit.c (minus_zerol): New variable.
38757         (test_signbitl): Use it.
38758
38759 2008-04-13  Bruno Haible  <bruno@clisp.org>
38760
38761         Make truncl work on OSF/1 4.0.
38762         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38763         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38764         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38766         HAVE_DECL_TRUNCL.
38767         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38768         HAVE_DECL_TRUNCL.
38769         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38770
38771 2008-04-13  Bruno Haible  <bruno@clisp.org>
38772
38773         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38774
38775 2008-04-13  Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38778         expression, so as to avoid HP-UX 11 cc compiler bug.
38779
38780 2008-04-13  Bruno Haible  <bruno@clisp.org>
38781
38782         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38783
38784 2008-04-13  Bruno Haible  <bruno@clisp.org>
38785
38786         * lib/git-merge-changelog.c: Remove empty declaration outside of
38787         functions.
38788
38789 2008-04-13  Bruno Haible  <bruno@clisp.org>
38790
38791         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38792
38793 2008-04-13  Bruno Haible  <bruno@clisp.org>
38794
38795         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38796         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38798         also if it exists but lacks definitions of the SHUT_* macros.
38799         * modules/sys_socket (Description): Update.
38800         Reported by Elbert Pol <e.pol@chello.nl>.
38801
38802 2008-04-13  Bruno Haible  <bruno@clisp.org>
38803
38804         * lib/localcharset.c (OS2): Don't redefine if already defined.
38805         Reported by Elbert Pol <e.pol@chello.nl>.
38806
38807 2008-04-13  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/binary-io.h [__EMX__]: Include <io.h>.
38810         Reported by Elbert Pol <e.pol@chello.nl>.
38811
38812 2008-04-12  Bruno Haible  <bruno@clisp.org>
38813
38814         * lib/fpucw.h: Enable the definitions also for x86_64.
38815         Needed for NetBSD/x86_64.
38816         Reported by Thomas Klausner <tk@giga.or.at>.
38817
38818 2008-04-12  Bruno Haible  <bruno@clisp.org>
38819
38820         * tests/test-strtod.c: Include isnand.h.
38821         (main): Use isnand instead of isnan.
38822         Reported by Jim Meyering.
38823
38824 2008-04-12  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38827         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38828
38829 2008-04-12  Jim Meyering  <meyering@redhat.com>
38830
38831         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38832
38833 2008-04-12  Bruno Haible  <bruno@clisp.org>
38834
38835         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38836         Reported by Elbert Pol <e.pol@chello.nl>.
38837
38838 2008-04-12  Eric Blake  <ebb9@byu.net>
38839
38840         Work around Solaris 10 math.h bug.
38841         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38842         (gl_MATH_H_DEFAULTS): Set up default.
38843         * modules/math (Makefile.am): Replace new indicators.
38844         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38845         * tests/test-math.c (main): Test this.
38846         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38847         * doc/posix-headers/math.texi (math.h): Mention bug.
38848         Reported by Nelson H. F. Beebe and Jim Meyering.
38849
38850 2008-04-11  Bruno Haible  <bruno@clisp.org>
38851
38852         Adapt to future versions of Apple GCC.
38853         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38854         Reported by Peter O'Gorman <peter@pogma.com>.
38855
38856 2008-04-11  Bruno Haible  <bruno@clisp.org>
38857
38858         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38859
38860 2008-04-11  Bruno Haible  <bruno@clisp.org>
38861
38862         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38863
38864         * modules/getaddrinfo-tests (Makefile.am): Define
38865         test_getaddrinfo_LDADD.
38866
38867 2008-04-11  Bruno Haible  <bruno@clisp.org>
38868
38869         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38870         (init): Fix syntax error.
38871         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38872         is declared.
38873
38874 2008-04-11  Bruno Haible  <bruno@clisp.org>
38875
38876         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38877         * modules/glob (Depends-on): Add stdbool.
38878
38879 2008-04-11  Bruno Haible  <bruno@clisp.org>
38880
38881         * lib/trim.c: Include <string.h>.
38882
38883 2008-04-11  Eric Blake  <ebb9@byu.net>
38884
38885         Avoid compile failure on OS/2.
38886         * lib/regex_internal.h (internal_function): Disable optimization
38887         on OS/2 (__EMX__), where it caused compiler error.
38888         Reported by Elbert Pol.
38889
38890 2008-04-11  Bruno Haible  <bruno@clisp.org>
38891
38892         Flush the standard error stream before aborting. Needed on mingw.
38893         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38894         * tests/test-array_list.c (ASSERT): Likewise.
38895         * tests/test-array_oset.c (ASSERT): Likewise.
38896         * tests/test-avltree_list.c (ASSERT): Likewise.
38897         * tests/test-avltree_oset.c (ASSERT): Likewise.
38898         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38899         * tests/test-binary-io.c (ASSERT): Likewise.
38900         * tests/test-byteswap.c (ASSERT): Likewise.
38901         * tests/test-c-ctype.c (ASSERT): Likewise.
38902         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38903         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38904         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38905         * tests/test-c-strstr.c (ASSERT): Likewise.
38906         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38907         * tests/test-canonicalize.c (ASSERT): Likewise.
38908         * tests/test-carray_list.c (ASSERT): Likewise.
38909         * tests/test-ceilf1.c (ASSERT): Likewise.
38910         * tests/test-ceilf2.c (ASSERT): Likewise.
38911         * tests/test-ceill.c (ASSERT): Likewise.
38912         * tests/test-count-one-bits.c (ASSERT): Likewise.
38913         * tests/test-fbufmode.c (ASSERT): Likewise.
38914         * tests/test-fflush2.c (ASSERT): Likewise.
38915         * tests/test-floorf1.c (ASSERT): Likewise.
38916         * tests/test-floorf2.c (ASSERT): Likewise.
38917         * tests/test-floorl.c (ASSERT): Likewise.
38918         * tests/test-fopen.c (ASSERT): Likewise.
38919         * tests/test-fpending.c (ASSERT): Likewise.
38920         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38921         * tests/test-fpurge.c (ASSERT): Likewise.
38922         * tests/test-freadable.c (ASSERT): Likewise.
38923         * tests/test-freadahead.c (ASSERT): Likewise.
38924         * tests/test-freading.c (ASSERT): Likewise.
38925         * tests/test-freadptr.c (ASSERT): Likewise.
38926         * tests/test-freadptr2.c (ASSERT): Likewise.
38927         * tests/test-freadseek.c (ASSERT): Likewise.
38928         * tests/test-freopen.c (ASSERT): Likewise.
38929         * tests/test-frexp.c (ASSERT): Likewise.
38930         * tests/test-frexpl.c (ASSERT): Likewise.
38931         * tests/test-fseek.c (ASSERT): Likewise.
38932         * tests/test-fseeko.c (ASSERT): Likewise.
38933         * tests/test-fstrcmp.c (ASSERT): Likewise.
38934         * tests/test-ftell.c (ASSERT): Likewise.
38935         * tests/test-ftello.c (ASSERT): Likewise.
38936         * tests/test-func.c (ASSERT): Likewise.
38937         * tests/test-fwritable.c (ASSERT): Likewise.
38938         * tests/test-fwriting.c (ASSERT): Likewise.
38939         * tests/test-getdelim.c (ASSERT): Likewise.
38940         * tests/test-getline.c (ASSERT): Likewise.
38941         * tests/test-i-ring.c (ASSERT): Likewise.
38942         * tests/test-iconv-utf.c (ASSERT): Likewise.
38943         * tests/test-iconv.c (ASSERT): Likewise.
38944         * tests/test-isfinite.c (ASSERT): Likewise.
38945         * tests/test-isnand.c (ASSERT): Likewise.
38946         * tests/test-isnanf.c (ASSERT): Likewise.
38947         * tests/test-isnanl.h (ASSERT): Likewise.
38948         * tests/test-ldexpl.c (ASSERT): Likewise.
38949         * tests/test-linked_list.c (ASSERT): Likewise.
38950         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38951         * tests/test-localename.c (ASSERT): Likewise.
38952         * tests/test-lseek.c (ASSERT): Likewise.
38953         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38954         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38955         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38956         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38957         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38958         * tests/test-mbschr.c (ASSERT): Likewise.
38959         * tests/test-mbscspn.c (ASSERT): Likewise.
38960         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38961         * tests/test-mbspbrk.c (ASSERT): Likewise.
38962         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38963         * tests/test-mbsrchr.c (ASSERT): Likewise.
38964         * tests/test-mbsspn.c (ASSERT): Likewise.
38965         * tests/test-mbsstr1.c (ASSERT): Likewise.
38966         * tests/test-mbsstr2.c (ASSERT): Likewise.
38967         * tests/test-mbsstr3.c (ASSERT): Likewise.
38968         * tests/test-memchr2.c (ASSERT): Likewise.
38969         * tests/test-memmem.c (ASSERT): Likewise.
38970         * tests/test-open.c (ASSERT): Likewise.
38971         * tests/test-printf-frexp.c (ASSERT): Likewise.
38972         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38973         * tests/test-printf-posix.c (ASSERT): Likewise.
38974         * tests/test-quotearg.c (ASSERT): Likewise.
38975         * tests/test-rbtree_list.c (ASSERT): Likewise.
38976         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38977         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38978         * tests/test-round1.c (ASSERT): Likewise.
38979         * tests/test-roundf1.c (ASSERT): Likewise.
38980         * tests/test-roundl.c (ASSERT): Likewise.
38981         * tests/test-signbit.c (ASSERT): Likewise.
38982         * tests/test-sleep.c (ASSERT): Likewise.
38983         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38984         * tests/test-snprintf.c (ASSERT): Likewise.
38985         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38986         * tests/test-stat-time.c (ASSERT): Likewise.
38987         * tests/test-strcasestr.c (ASSERT): Likewise.
38988         * tests/test-strerror.c (ASSERT): Likewise.
38989         * tests/test-striconv.c (ASSERT): Likewise.
38990         * tests/test-striconveh.c (ASSERT): Likewise.
38991         * tests/test-striconveha.c (ASSERT): Likewise.
38992         * tests/test-strsignal.c (ASSERT): Likewise.
38993         * tests/test-strstr.c (ASSERT): Likewise.
38994         * tests/test-strtod.c (ASSERT): Likewise.
38995         * tests/test-trunc1.c (ASSERT): Likewise.
38996         * tests/test-trunc2.c (ASSERT): Likewise.
38997         * tests/test-truncf1.c (ASSERT): Likewise.
38998         * tests/test-truncf2.c (ASSERT): Likewise.
38999         * tests/test-truncl.c (ASSERT): Likewise.
39000         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39001         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39002         * tests/test-vasnprintf.c (ASSERT): Likewise.
39003         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39004         * tests/test-vasprintf.c (ASSERT): Likewise.
39005         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39006         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39007         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39008         * tests/test-vsnprintf.c (ASSERT): Likewise.
39009         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39010         * tests/test-wcwidth.c (ASSERT): Likewise.
39011         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39012         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39013         * tests/test-xvasprintf.c (ASSERT): Likewise.
39014         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39015         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39016         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39017         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39018         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39019         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39020         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39021         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39022         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39023         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39024         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39025         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39026         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39027         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39028         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39029         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39030         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39031         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39032         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39033         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39034         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39035         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39036         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39037         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39038         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39039         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39040         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39041         * tests/unictype/test-combining.c (ASSERT): Likewise.
39042         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39043         * tests/unictype/test-digit.c (ASSERT): Likewise.
39044         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39045         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39046         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39047         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39048         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39049         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39050         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39051         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39052         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39053         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39054         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39055         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39056         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39057         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39058         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39059         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39060         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39061         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39062         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39063         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39064         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39065         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39066         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39067         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39068         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39069         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39070         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39071         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39072         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39073         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39074         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39075         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39076         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39077         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39078         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39079         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39080         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39081         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39082         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39083         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39084         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39085         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39086         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39087         Reported by Eric Blake.
39088
39089 2008-04-11  Bruno Haible  <bruno@clisp.org>
39090
39091         * lib/wchar.in.h: Tweak comment.
39092
39093 2008-04-11  Bruno Haible  <bruno@clisp.org>
39094
39095         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39096         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39097         gl_COMMON.
39098         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39099
39100 2008-04-11  Bruno Haible  <bruno@clisp.org>
39101
39102         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39103
39104 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39105
39106         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39107         of attempting to use non-existing /dev/*random.  Based on patch
39108         from Adam Strzelecki <ono@java.pl> in
39109         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39110
39111 2008-04-08  Bruno Haible  <bruno@clisp.org>
39112
39113         Add tentative support for emx+gcc.
39114         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39115         * lib/fpurge.c (fpurge): Likewise.
39116         * lib/freadable.c (freadable): Likewise.
39117         * lib/freadahead.c (freadahead): Likewise.
39118         * lib/freading.c (freading): Likewise.
39119         * lib/freadptr.c (freadptr): Likewise.
39120         * lib/freadseek.c (freadptrinc): Likewise.
39121         * lib/fseeko.c (rpl_fseeko): Likewise.
39122         * lib/fseterr.c (fseterr): Likewise.
39123         * lib/fwritable.c (fwritable): Likewise.
39124         * lib/fwriting.c (fwriting): Likewise.
39125         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39126
39127 2008-04-09  Eric Blake  <ebb9@byu.net>
39128
39129         Avoid some autoconf warnings.
39130         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39131         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39132         * m4/afs.m4 (gl_AFS): Likewise.
39133         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39134         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39135         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39136         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39137         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39138         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39139         (AC_CHECK_DECLS_ONCE): Likewise.
39140         Rename file...
39141         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39142         gnulib-tool requires autoconf 2.59 or better.
39143         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39144
39145 2008-04-08  Eric Blake  <ebb9@byu.net>
39146
39147         Use 'git describe --match' if present (added in git 1.5.5).
39148         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39149         if possible.
39150
39151 2008-04-08  Bruno Haible  <bruno@clisp.org>
39152
39153         Add tentative support for OpenServer.
39154         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39155         _ptr, _cnt.
39156         * lib/fpurge.c (fpurge): Likewise.
39157         * lib/freadable.c (freadable): Likewise.
39158         * lib/freadahead.c (freadahead): Likewise.
39159         * lib/freading.c (freading): Likewise.
39160         * lib/freadptr.c (freadptr): Likewise.
39161         * lib/freadseek.c (freadptrinc): Likewise.
39162         * lib/fseeko.c (rpl_fseeko): Likewise.
39163         * lib/fseterr.c (fseterr): Likewise.
39164         * lib/fwritable.c (fwritable): Likewise.
39165         * lib/fwriting.c (fwriting): Likewise.
39166         Reported by Roger Cornelius <rac@tenzing.org> and
39167         Brian K. White <brian@aljex.com>.
39168
39169 2008-04-06  Jim Meyering  <meyering@redhat.com>
39170
39171         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39172
39173 2008-04-06  Bruno Haible  <bruno@clisp.org>
39174
39175         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39176         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39177         * tests/test-printf-posix.sh: Likewise.
39178         * tests/test-vfprintf-posix.sh: Likewise.
39179         * tests/test-vprintf-posix.sh: Likewise.
39180         * tests/test-xprintf-posix.sh: Likewise.
39181
39182 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39183
39184         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39185         hide error from 'ls', needed on OS/2.
39186         Report by Elbert Pol <elbert.pol@gmail.com>.
39187
39188 2008-04-04  Eric Blake  <ebb9@byu.net>
39189
39190         Make test-fseeko.c failures meaningful.
39191         * tests/test-fseeko.c: Print line number on failure.
39192         * tests/test-fseek.c: Likewise.
39193         Reported by Nelson H. F. Beebe.
39194
39195         Improve strtod bug detection check.
39196         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39197         required for Solaris 10.
39198         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39199
39200 2008-04-04  Bruno Haible  <bruno@clisp.org>
39201
39202         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39203         by m4/setenv.m4.
39204
39205 2008-04-03  Eric Blake  <ebb9@byu.net>
39206
39207         Ensure sane .version contents.
39208         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39209         version string.
39210         * build-aux/git-version-gen: Improve documentation.
39211
39212         Make GNU make output nicer.
39213         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39214         MAKECMDGOALS to enforce message for all command line targets.  Set
39215         srcdir for use in maint.mk.
39216
39217         Another maintainer tweak.
39218         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39219         a target that regenerates version.
39220
39221 2008-04-03  Jim Meyering  <meyering@redhat.com>
39222
39223         vc-list-files: don't cause coreutils "make po-check" failure
39224         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39225
39226 2008-04-03  Eric Blake  <ebb9@byu.net>
39227
39228         Allow VPATH usage of vc-list-files.
39229         * build-aux/vc-list-files (scriptversion): Add timestamp.
39230         (options): Add --help, --version, -C.
39231         (CVS): Support installed cvsu.
39232
39233 2008-04-02  Bruno Haible  <bruno@clisp.org>
39234
39235         Avoid some "statement with no effect" warnings from gcc.
39236         * tests/test-wctype.c (main): Explicitly ignore unused values.
39237         Reported by Jim Meyering.
39238
39239 2008-04-02  Jim Meyering  <meyering@redhat.com>
39240
39241         Avoid some warnings from "gcc -Wshadow".
39242         * tests/test-frexp.c (exp): Define to a different identifier.
39243         * tests/test-frexpl.c (exp): Likewise.
39244
39245 2008-04-03  Jim Meyering  <meyering@redhat.com>
39246
39247         bootstrap: remove dangling *.[ch] symlinks from lib
39248         * build-aux/bootstrap [dangling symlink removal]: Move find's
39249         -depth option to precede all others, to avoid a warning.
39250         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39251
39252 2008-04-02  Bruno Haible  <bruno@clisp.org>
39253
39254         Avoid some warnings from "gcc -Wshadow".
39255         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39256         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39257         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39258         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39259         Reported by Jim Meyering.
39260
39261 2008-04-01  Bruno Haible  <bruno@clisp.org>
39262
39263         Fix test to work on IRIX 6.5 with cc.
39264         * tests/test-math.c (numeric_equal): New function.
39265         (main): Use it.
39266
39267 2008-04-01  Bruno Haible  <bruno@clisp.org>
39268
39269         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39270
39271 2008-04-01  Bruno Haible  <bruno@clisp.org>
39272
39273         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39274         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39275         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39276         (Depends-on): Remove math.
39277
39278         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39279         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39280         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39281         (Depends-on): Remove math.
39282
39283         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39284         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39285         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39286         (Depends-on): Remove math.
39287         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39288         (Depends-on): Remove math.
39289
39290         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39291         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39292         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39293         (Depends-on): Remove math.
39294         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39295         (Depends-on): Remove math.
39296
39297         * tests/test-round1.c: Include nan.h.
39298         (main): Use NaNd instead of NAN.
39299         * modules/round-tests (Files): Add tests/nan.h.
39300
39301         * tests/test-trunc1.c: Include nan.h.
39302         (main): Use NaNd instead of NAN.
39303         * modules/trunc-tests (Files): Add tests/nan.h.
39304
39305         * tests/test-roundf1.c: Include nan.h.
39306         (main): Use NaNf instead of NAN.
39307         * modules/roundf-tests (Files): Add tests/nan.h.
39308
39309         * tests/test-truncf1.c: Include nan.h.
39310         (main): Use NaNf instead of NAN.
39311         * modules/truncf-tests (Files): Add tests/nan.h.
39312
39313         * tests/test-ceilf1.c: Include nan.h.
39314         (main): Use NaNf instead of NAN.
39315         * modules/ceilf-tests (Files): Add tests/nan.h.
39316
39317         * tests/test-floorf1.c: Include nan.h.
39318         (main): Use NaNf instead of NAN.
39319         * modules/floorf-tests (Files): Add tests/nan.h.
39320
39321         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39322         (main): Use NaNf instead of NAN.
39323         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39324
39325         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39326         (main): Use NaNd instead of NAN.
39327         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39328
39329         * tests/test-frexp.c: Include nan.h.
39330         (main): Use NaNd instead of NAN.
39331         * modules/frexp-tests (Files): Add tests/nan.h.
39332
39333         * lib/isnan.c: Don't include <math.h>.
39334         (FUNC): Don't use NAN macro.
39335         * modules/isnand-nolibm (Depends-on): Remove math.
39336         * modules/isnanf-nolibm (Depends-on): Remove math.
39337         * modules/isnanl (Depends-on): Remove math.
39338         * modules/isnanl-nolibm (Depends-on): Remove math.
39339
39340         * tests/nan.h: New file.
39341
39342 2008-04-01  Eric Blake  <ebb9@byu.net>
39343
39344         Fix typos.
39345         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39346         values to be the right type.
39347
39348         For now, cater to gnulib strtod inaccuracies.
39349         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39350         fractional results.  While not as nice from a QoI perspective, it
39351         is a quicker patch than correctly implementing decimal to binary
39352         rounding.
39353
39354 2008-03-31  Eric Blake  <ebb9@byu.net>
39355
39356         Guarantee a definition of NAN.
39357         * lib/math.in.h (NAN): Define if missing.
39358         * tests/test-math.c (main): Test it.
39359         * doc/posix-headers/math.texi (math.h): Document this.
39360         * lib/isnan.c (rpl_isnand): Use it.
39361         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39362         * tests/test-floorf1.c (NaN): Likewise.
39363         * tests/test-frexp.c (NaN): Likewise.
39364         * tests/test-isnand.c (NaN): Likewise.
39365         * tests/test-isnanf.c (NaN): Likewise.
39366         * tests/test-round1.c (NaN): Likewise.
39367         * tests/test-roundf1.c (NaN): Likewise.
39368         * tests/test-snprintf-posix.h (NaN): Likewise.
39369         * tests/test-sprintf-posix.h (NaN): Likewise.
39370         * tests/test-trunc1.c (NaN): Likewise.
39371         * tests/test-truncf1.c (NaN): Likewise.
39372         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39373         * tests/test-vasprintf-posix.c (NaN): Likewise.
39374         * modules/isnand-nolibm (Depends-on): Add math.
39375         * modules/isnanf-nolibm (Depends-on): Likewise.
39376         * modules/isnanl (Depends-on): Likewise.
39377         * modules/isnanl-nolibm (Depends-on): Likewise.
39378         * modules/snprintf-posix-tests (Depends-on): Likewise.
39379         * modules/sprintf-posix-tests (Depends-on): Likewise.
39380         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39381         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39382         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39383         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39384
39385 2008-03-31  Bruno Haible  <bruno@clisp.org>
39386
39387         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39388         * doc/posix-functions/strtod.texi: Likewise.
39389
39390 2008-03-31  Bruno Haible  <bruno@clisp.org>
39391
39392         * tests/test-strtod.c (main): Don't use C99 syntax.
39393
39394 2008-03-31  Bruno Haible  <bruno@clisp.org>
39395
39396         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39397         Reported by Eric Blake.
39398
39399 2008-03-31  Jim Meyering  <meyering@redhat.com>
39400
39401         Don't compare actual signbit return values.
39402         * tests/test-strtod.c (main): Rather, compare only their
39403         zero/non-zero nature.
39404
39405 2008-03-31  Eric Blake  <ebb9@byu.net>
39406
39407         More strtod documentation.
39408         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39409         failures as distinct bugs.
39410
39411 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39412
39413         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39414         Problem reported by Erik Benada in
39415         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39416
39417 2008-03-30  Bruno Haible  <bruno@clisp.org>
39418
39419         * tests/test-strtod.c: Add comments about which assertion fails on which
39420         platform.
39421         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39422
39423 2008-03-30  Eric Blake  <ebb9@byu.net>
39424
39425         Test signbit behavior on zeros.
39426         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39427         (test_signbitd, test_signbitl): Likewise.
39428
39429         More strtod touchups.
39430         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39431         sign of negative underflow, for now.  Use .5, not .1.
39432         * doc/posix-functions/strtod.texi (strtod): Mention these
39433         limitations.
39434         Reported by Jim Meyering.
39435
39436 2008-03-30  Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39439         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39440
39441 2008-03-30  Bruno Haible  <bruno@clisp.org>
39442
39443         Avoid failure when attempting to return empty iconv results on some
39444         platforms.
39445         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39446         allocation, don't report ENOMEM when the resulting string is empty.
39447
39448 2008-03-30  Bruno Haible  <bruno@clisp.org>
39449
39450         Fix buffer overrun.
39451         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39452         Don't consider the width for tmp_length. Check count against tmp_length
39453         before doing the padding. Ensure enough allocation during padding.
39454
39455 2008-03-30  Eric Blake  <ebb9@byu.net>
39456
39457         strtod touchups.
39458         * lib/strtod.c (strtod): Avoid compiler warnings.
39459         Reported by Jim Meyering.
39460
39461 2008-03-30  Bruno Haible  <bruno@clisp.org>
39462
39463         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39464         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39465         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39466         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39467         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39468         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39469         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39470         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39471
39472         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39473         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39474         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39475         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39476         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39477         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39478         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39479         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39480
39481         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39482         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39483         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39484         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39485         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39486         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39487         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39488         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39489
39490         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39491         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39492
39493         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39494         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39495
39496         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39497         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39498
39499         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39501         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39502
39503         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39505         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39506
39507         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39509         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39510
39511         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39513         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39514
39515         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39516         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39518         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39519         (Depends-on): Add EOVERFLOW.
39520         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39521         (Depends-on): Add EOVERFLOW.
39522         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39523         (Depends-on): Add EOVERFLOW.
39524         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39525         (Depends-on): Add EOVERFLOW.
39526         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39527         (Depends-on): Add EOVERFLOW.
39528         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39529         (Depends-on): Add EOVERFLOW.
39530         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39531         (Depends-on): Add EOVERFLOW.
39532         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39533         (Depends-on): Add EOVERFLOW.
39534
39535         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39537         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39538
39539         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39541         * modules/snprintf (Depends-on): Add EOVERFLOW.
39542
39543         * lib/poll.c (EOVERFLOW): Remove fallback.
39544         * modules/poll (Depends-on): Add EOVERFLOW.
39545
39546         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39547         * modules/getugroups (Depends-on): Add EOVERFLOW.
39548
39549         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39550         * modules/getdelim (Depends-on): Add EOVERFLOW.
39551
39552         * lib/ftell.c (EOVERFLOW): Remove fallback.
39553         * modules/ftell (Depends-on): Add EOVERFLOW.
39554
39555         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39557         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39558
39559         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39560
39561         * modules/EOVERFLOW-tests: New file.
39562         * tests/test-EOVERFLOW.c: New file.
39563
39564         * modules/EOVERFLOW: New file.
39565         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39566
39567 2008-03-30  Bruno Haible  <bruno@clisp.org>
39568
39569         Fix bug introduced on 2007-06-10.
39570         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39571         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39572
39573 2008-03-30  Bruno Haible  <bruno@clisp.org>
39574
39575         Improve freadseek's efficiency after ungetc.
39576         * lib/freadseek.c: Include freadahead.h.
39577         (freadptrinc): New function, extracted from freadseek.
39578         (freadseek): Use it in a loop. Use freadahead to determine the number
39579         of loop iterations.
39580         * modules/freadseek (Depends-on): Add freadahead.
39581         (configure.ac): Require AC_C_INLINE.
39582
39583 2008-03-30  Bruno Haible  <bruno@clisp.org>
39584
39585         * lib/freadseek.c (freadseek): Don't ignore the return value of
39586         freadptr.
39587
39588 2008-03-29  Eric Blake  <ebb9@byu.net>
39589
39590         Add hex float support.
39591         * modules/strtod (Depends-on): Add c-ctype.
39592         (Link): Mention POW_LIB.
39593         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39594         whitespace between 'e' and exponent.
39595         * tests/test-strtod.c (main): Enable hex float tests.
39596         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39597         now provides.
39598
39599         Document various strtod bugs, with some fixes.
39600         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39601         "-0x", "inf", "nan", and hex constants.
39602         * doc/posix-functions/atof.texi (atof): Likewise.
39603         * modules/stdlib (Makefile.am): Support strtod.
39604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39605         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39606         detect additional strtod bugs.
39607         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39608         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39609         bool where appropriate.  Parse 'inf' and 'nan'.
39610         * tests/test-strtod.c: New file.
39611         * modules/strtod (Depends-on): Add stdbool, stdlib.
39612         (configure.ac): Turn on module indicator.
39613         * modules/strtod-tests: New module.
39614
39615 2008-03-29  Eric Blake  <ebb9@byu.net>
39616
39617         Fix ftell on mingw.
39618         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39619         * modules/ftell-tests (Depends-on): Add binary-io.
39620         * modules/ftello-tests (Depends-on): Likewise.
39621         * tests/test-ftell.c (main): Enhance test to cover behavior after
39622         ungetc.  Enforce binary mode.
39623         * tests/test-ftello.c (main): Likewise.
39624
39625         Pass test-freadseek on cygwin.
39626         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39627         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39628         ungetc buffer.
39629
39630         * tests/test-fflush2.c (main): Fix typo.
39631
39632 2008-03-29  Bruno Haible  <bruno@clisp.org>
39633
39634         * tests/test-fflush2.c (main): Temporarily disable the contents of
39635         this test.
39636         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39637         Reported by Eric Blake.
39638
39639 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39640
39641         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39642         (GC_SHA224_DIGEST_SIZE): Add.
39643
39644         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39645         (gc_hash_digest_length): Likewise.
39646         (gc_hash_buffer): Likewise.
39647
39648 2008-03-25  Bruno Haible  <bruno@clisp.org>
39649
39650         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39651         detail which gettext release to use.
39652         Reported by Simon Josefsson.
39653
39654 2008-03-26  Jim Meyering  <meyering@redhat.com>
39655
39656         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39657         * modules/gnumakefile (clean-GNUmakefile): Also, use
39658         test ... && ... || : syntax rather than if-then ... fi.
39659
39660         gnumakefile: Don't double-quote-expand $(VPATH) value.
39661         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39662
39663 2008-03-24  Eric Blake  <ebb9@byu.net>
39664
39665         Alter GNUmakefile to install into top directory.
39666         * modules/maintainer-makefile: Split, and add dependency...
39667         * modules/gnumakefile: to this new module.
39668         * build-aux/GNUmakefile: Move...
39669         * top/GNUmakefile: ...here.
39670         * build-aux/maint.mk: Move...
39671         * top/maint.mk: ...here.
39672         * MODULES.html.sh (Support for maintaining...): Document new
39673         module.
39674
39675 2008-03-23  Bruno Haible  <bruno@clisp.org>
39676
39677         * gnulib-tool: New options --vc-files, --no-vc-files.
39678         (func_usage): Document them.
39679         (vc_files): New variable.
39680         (func_import): Consider vc_files.
39681         (func_create_testdir): Set vc_files to empty.
39682         Suggested by Jim Meyering and Karl Berry.
39683
39684 2008-03-23  Bruno Haible  <bruno@clisp.org>
39685
39686         Fix regex compilation error on HP-UX 11.
39687         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39688         * modules/regex (Files): Add m4/mbstate_t.m4.
39689         Reported by Ton Voon <ton.voon@altinity.com>.
39690
39691 2008-03-23  Bruno Haible  <bruno@clisp.org>
39692
39693         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39694
39695 2008-03-23  Eric Blake  <ebb9@byu.net>
39696             Bruno Haible  <bruno@clisp.org>
39697
39698         Install files from top/ in the destination directory.
39699         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39700         augmentation also for the files from top/.
39701         (func_import, func_create_testdir): Rewrite file names:
39702         top/filename -> filename.
39703
39704 2008-03-23  Bruno Haible  <bruno@clisp.org>
39705
39706         Tweak "gnulib --version" output.
39707         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39708
39709 2008-03-23  Bruno Haible  <bruno@clisp.org>
39710
39711         Tweak "gnulib --version" output.
39712         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39713         rather than contents of ChangeLog, when possible.
39714
39715 2008-03-21  Eric Blake  <ebb9@byu.net>
39716
39717         More --version tweaks.
39718         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39719         date of last ChangeLog entry.
39720
39721 2008-03-21  Jim Meyering  <meyering@redhat.com>
39722
39723         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39724
39725 2008-03-20  Eric Blake  <ebb9@byu.net>
39726
39727         VPATH fix.
39728         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39729
39730 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39731
39732         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39733         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39734
39735 2008-03-20  Eric Blake  <ebb9@byu.net>
39736
39737         Sync GNUmakefile with coreutils.
39738         * build-aux/GNUmakefile (have-Makefile): Rename...
39739         (_have-Makefile): ...to this, for namespace consideration.
39740         (GNUmakefile.cfg): Include, if present.
39741         (_autoreconf): Define a default.
39742         (_is-dist-target): New rule for rebuilds to pick up intra-release
39743         version.
39744         (maint-cfg.mk): Rename...
39745         (cfg.mk): ...to this.
39746
39747 2008-03-18  Jim Meyering  <meyering@redhat.com>
39748
39749         New script and module: mktempd
39750         * MODULES.html.sh (maint+release support): Add mktempd.
39751         * build-aux/mktempd: New file.
39752         * modules/mktempd: New file.
39753
39754 2008-03-15  Jim Meyering  <meyering@redhat.com>
39755
39756         Undo last change.
39757         * lib/sha1.c, lib/md5.c: 63 != ~63.
39758         Reported by Andreas Schwab.
39759
39760         sha1.c, md5.c: Hoist a redundant expression.
39761         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39762         "ctx->buflen" only once, before calling *_process_block.
39763         * lib/md5.c (md5_process_bytes): Likewise.
39764
39765 2008-03-14  Eric Blake  <ebb9@byu.net>
39766
39767         Bump copyright year in files generated by gnulib-tool.
39768         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39769         gnulib-tool, rather than hard-coding it.
39770
39771         Fix 'gnulib-tool --version' output to work with git.
39772         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39773         (startup): ...here.
39774         (func_version): Use it to invoke git-version-gen, rather than
39775         relying on CVS keyword expansion.  Modernize wording.
39776         (cvsdatestamp, last_checkin_date, version): Kill unused
39777         variables.
39778
39779 2008-03-12  Jim Meyering  <meyering@redhat.com>
39780
39781         Recognize optional cast of the argument to free.
39782         * build-aux/useless-if-before-free: Update regexps.
39783
39784         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39785
39786 2008-03-11  Bruno Haible  <bruno@clisp.org>
39787
39788         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39789         by a single package.
39790         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39791         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39792         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39793         Reported by Sam Steingold <sds@gnu.org>.
39794
39795 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39796
39797         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39798         repositories.
39799
39800 2008-03-11  Bruno Haible  <bruno@clisp.org>
39801
39802         Avoid conflicts between local macro definitions.
39803         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39804         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39805
39806 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39807             Bruno Haible  <bruno@clisp.org>
39808
39809         Make va_copy work with some version of xlc on AIX 5.1.
39810         * lib/stdarg.in.h: New file.
39811         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39812         On AIX, use a <stdarg.h> file substitute.
39813         * modules/stdarg (Files): Add lib/stdarg.in.h.
39814         (Depends-on): Add include_next.
39815         (Makefile.am): Build a stdarg.h substitute if requested.
39816         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39817
39818 2008-03-10  Bruno Haible  <bruno@clisp.org>
39819
39820         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39821         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39822         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39823
39824 2008-03-10  Bruno Haible  <bruno@clisp.org>
39825
39826         * modules/stdlib (Depends-on): Add include_next, remove
39827         absolute-header.
39828
39829 2008-03-09  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/freadahead.h (freadahead): Document more precisely.
39832         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39833         the sum of both buffer sizes.
39834         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39835         * NEWS: Document the change.
39836
39837 2008-03-09  Bruno Haible  <bruno@clisp.org>
39838
39839         Extend freadptr to return also the buffer size.
39840         * lib/freadptr.h (freadptr): Add sizep argument.
39841         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39842         (freadptr): Add sizep argument. Determine buffer size like freadahead
39843         does.
39844         * tests/test-freadptr.c: Don't include freadahead.h.
39845         (main): Adapt for new calling convention of freadptr.
39846         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39847         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39848         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39849         tests/test-freadptr2.sh.
39850         (Depends): Remove freadahead.
39851         (TESTS): Add test-freadptr2.sh.
39852         (check_PROGRAMS): Add test-freadptr2.
39853
39854 2008-03-09  Bruno Haible  <bruno@clisp.org>
39855
39856         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39857         Report and solution by Simon Josefsson.
39858
39859 2008-03-06  Bruno Haible  <bruno@clisp.org>
39860
39861         Make fflush after ungetc work on BSD platforms.
39862         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39863         * tests/test-fflush2.c: New file.
39864         * tests/test-fflush2.sh: New file.
39865         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39866         tests/test-fflush2.c.
39867         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39868         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39869
39870 2008-03-06  Eric Blake  <ebb9@byu.net>
39871
39872         Likewise for ftello.
39873         * modules/ftello (Dependencies): Add extensions.
39874         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39875
39876 2008-03-06  Bruno Haible  <bruno@clisp.org>
39877
39878         * modules/fseeko (Dependencies): Add extensions.
39879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39880         Needed on glibc systems.
39881
39882 2008-03-06  Bruno Haible  <bruno@clisp.org>
39883
39884         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39885         email address.
39886         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39887
39888 2008-03-06  Bruno Haible  <bruno@clisp.org>
39889
39890         * users.txt: Add libgnupdf.
39891
39892 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39893
39894         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39895         (Header File Substitutes, Function Substitutes,
39896         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39897         (Build robot for gnulib): Fix typo.
39898
39899 2008-03-06  Bruno Haible  <bruno@clisp.org>
39900
39901         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39902         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39903
39904 2008-03-06  Bruno Haible  <bruno@clisp.org>
39905
39906         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39907         * doc/gnulib.texi: Include it.
39908
39909 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39910
39911         * modules/func (License): Change license to unlimited; there was
39912         no LGPL parts in the module anyway.
39913
39914 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39915
39916         * modules/__func__: Renamed to modules/func.
39917         * modules/__func__-tests: Renamed to modules/func-tests.
39918         * tests/test-__func__.c: Renamed to tests/test-func.c.
39919         * m4/__func__.m4: Renamed to m4/func.m4.
39920         * doc/gnulib.texi (__func__): Section renamed to func.
39921         Suggested by Eric Blake <ebb9@byu.net>.
39922
39923 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39924
39925         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39926         about __func__.  Make example self-contained.  Suggested by Eric
39927         Blake <ebb9@byu.net>.
39928
39929         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39930         Suggested by Eric Blake <ebb9@byu.net>.
39931
39932 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39933
39934         * modules/__func__: New file.
39935         * modules/__func__-tests: New file.
39936         * tests/test-__func__.c: New file.
39937         * m4/__func__.m4: New file.
39938         * doc/gnulib.texi (__func__): Document __func__ module.
39939
39940 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39941
39942         * modules/byteswap (License): Re-license as LGPLv2+.
39943
39944 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39945
39946         * doc/Makefile: Add pdf target.
39947
39948 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39949
39950         * modules/inline (License): Use 'unlimited', since there are only
39951         *.m4 files in this module.
39952
39953 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39954             Bruno Haible  <bruno@clisp.org>
39955
39956         Add support for HP C 7.1 on OpenVMS 8.3.
39957         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39958
39959 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39960
39961         Update VMS specifics.
39962         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39963
39964 2008-03-02  Jim Meyering  <meyering@redhat.com>
39965
39966         Remove the last dependency on the "free" module.
39967         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39968         Reported by Bob Proulx.
39969
39970         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39971
39972         Remove useless "if" tests before free.  Deprecate "free" module.
39973         * doc/posix-functions/free.texi: Mention that this
39974         module is no longer useful.
39975         * modules/free (Notice): Say this module is obsolete.
39976         * modules/readutmp (Depends-on): Remove free.
39977         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39978         * lib/putenv.c (putenv): Likewise.
39979         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39980         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39981         * tests/test-c-strcasestr.c (main): Likewise.
39982         * tests/test-c-strstr.c (main): Likewise.
39983         * tests/test-mbscasestr1.c (main): Likewise.
39984         * tests/test-mbscasestr2.c (main): Likewise.
39985         * tests/test-mbsstr1.c (main): Likewise.
39986         * tests/test-mbsstr2.c (main): Likewise.
39987         * tests/test-memmem.c (main): Likewise.
39988         * tests/test-strcasestr.c (main): Likewise.
39989         * tests/test-striconv.c (main): Likewise.
39990         * tests/test-striconveh.c (main): Likewise.
39991         * tests/test-striconveha.c (main): Likewise.
39992         * tests/test-strstr.c (main): Likewise.
39993
39994         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39995
39996         bootstrap: sync from coreutils again
39997         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39998
39999 2008-03-01  Jim Meyering  <meyering@redhat.com>
40000
40001         bootstrap: sync from coreutils
40002         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40003         also when the target doesn't exist.
40004
40005 2008-03-01  Eric Blake  <ebb9@byu.net>
40006
40007         Fix bugs in last patch.
40008         * lib/memchr2.c (memchr2): Fix typo.
40009         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40010         extension.
40011         Reported by Bruce Korb.
40012
40013         New module 'memchr2'.
40014         * modules/memchr2: New file.
40015         * modules/memchr2-tests: Likewise.
40016         * lib/memchr2.h: Likewise.
40017         * lib/memchr2.c: Likewise, based on memchr.c.
40018         * tests/test-memchr2.c: New test.
40019         * MODULES.html.sh (String handling): Add memchr2.
40020
40021 2008-02-29  Bruno Haible  <bruno@clisp.org>
40022
40023         * modules/freadseek-tests: New file.
40024         * tests/test-freadseek.sh: New file.
40025         * tests/test-freadseek.c: New file.
40026
40027         New module 'freadseek'.
40028         * modules/freadseek: New file.
40029         * lib/freadseek.h: New file.
40030         * lib/freadseek.c: New file.
40031         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40032
40033 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40034
40035         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40036         wydawca.
40037
40038         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40039         program_invocation_name and program_invocation_short_name are
40040         present.
40041
40042 2008-02-28  Bruno Haible  <bruno@clisp.org>
40043
40044         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40045         * tests/test-freadptr.sh: Also test non-seekable stdin.
40046
40047 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40048
40049         * build-aux/bootstrap (source_base, m4_base)
40050         (doc_base, tests_base): New variables.
40051         (gnulib_tool_options): Do not hardcode base directories, use
40052         the above variables instead.
40053
40054 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40055
40056         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40057
40058 2008-02-28  Bruno Haible  <bruno@clisp.org>
40059
40060         * modules/freadptr-tests: New file.
40061         * tests/test-freadptr.sh: New file.
40062         * tests/test-freadptr.c: New file.
40063
40064         New module 'freadptr'.
40065         * modules/freadptr: New file.
40066         * lib/freadptr.h: New file.
40067         * lib/freadptr.c: New file.
40068         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40069
40070 2008-02-26  Karl Berry  <karl@freefriends.org>
40071
40072         Sync from Libtool:
40073         * libltdl/argz.c (argz_add, argz_count): New functions.
40074         * libltdl/argz.in.h: Declare them.
40075         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40076
40077 2008-02-22  Bruno Haible  <bruno@clisp.org>
40078
40079         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40080         is a pointer type.  Needed for HP-UX 10.
40081         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40082         * doc/posix-functions/gmtime_r.texi: Likewise.
40083         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40084
40085 2008-02-24  Bruno Haible  <bruno@clisp.org>
40086
40087         * modules/environ-tests: New file.
40088         * tests/test-environ.c: New file.
40089
40090         New module 'environ'.
40091         * modules/environ: New file.
40092         * lib/unistd.in.h (environ): New declaration.
40093         * m4/environ.m4: New file.
40094         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40095         after use.
40096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40097         HAVE_DECL_ENVIRON.
40098         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40099         HAVE_DECL_ENVIRON.
40100         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40101         wrong claim that 'environ' is missing on some systems.
40102         * modules/execute (Depends-on): Add environ.
40103         * lib/execute.c (environ): Remove fallback declaration.
40104         * modules/pipe (Depends-on): Add environ.
40105         * lib/pipe.c (environ): Remove fallback declaration.
40106         * modules/setenv (Depends-on): Add environ.
40107         * lib/setenv.c (environ): Remove fallback declaration.
40108         * modules/unsetenv (Depends-on): Add environ.
40109         * lib/unsetenv.c (environ): Remove fallback declaration.
40110         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40111         m4/environ.m4.
40112         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40113         (gl_PREREQ_UNSETENV): Likewise.
40114
40115 2008-02-24  Bruno Haible  <bruno@clisp.org>
40116
40117         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40118
40119 2008-02-20  Bob Proulx  <bob@proulx.com>
40120
40121         Enable use of older two part flavor 'git describe'.
40122         * build-aux/git-version-gen: If using the older two part flavor of
40123         git version then recreate the third part now present in the
40124         newer three part flavor of git describe.
40125
40126 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40127
40128         * lib/fts.c (fts_build): Typo correction to comment.
40129
40130 2008-02-17  Bruno Haible  <bruno@clisp.org>
40131
40132         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40133         generating no-op conflicts.
40134
40135 2008-02-17  Bruno Haible  <bruno@clisp.org>
40136
40137         Speed up by 10%.
40138         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40139         result_entries, rather than an index-based loop.
40140
40141 2008-02-17  Bruno Haible  <bruno@clisp.org>
40142
40143         Speed up by 25%.
40144         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40145         'hashcode_cached'.
40146         (entry_create): New function.
40147         (entry_hashcode): Use the cached hashcode if possible.
40148         (read_changelog_file, try_split_merged_entry): Use entry_create.
40149
40150 2008-02-17  Bruno Haible  <bruno@clisp.org>
40151
40152         Speed up from O(n^2) to O(n) for long ChangeLog files.
40153         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40154         (read_changelog_file): Change implementation of entries_reversed list
40155         to rbtreehash.
40156         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40157
40158 2008-02-17  Bruno Haible  <bruno@clisp.org>
40159
40160         New option --split-merged-entry.
40161         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40162         (find_paragraph_end, try_split_merged_entry): New functions.
40163         (long_options): Add option --split-merged-entry.
40164         (usage): Document option --split-merged-entry.
40165         (main): Implement option --split-merged-entry.
40166         Reported by Eric Blake.
40167
40168 2008-02-17  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/git-merge-changelog.c: Include c-strstr.h.
40171         (main): Support the "git pull --rebase" situation.
40172         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40173         Reported by Eric Blake.
40174
40175 2008-02-16  Eric Blake  <ebb9@byu.net>
40176
40177         Avoid doubling \ in common case of "c-maybe" quoting style.
40178         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40179         eliding outer quotes.
40180         * lib/quotearg.h: Document this.
40181         * tests/test-quotearg.c (result_strings, inputs, results_g)
40182         (flag_results, locale_results): Test it by adding a new string to
40183         each test group.
40184         (compare_strings): Test new string.
40185
40186 2008-02-13  Eric Blake  <ebb9@byu.net>
40187
40188         Avoid trigraph quoting in default output.
40189         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40190         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40191         unless explicitly requested.
40192         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40193
40194 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40195
40196         Don't rely on signed integer overflowing to negative value.
40197         * lib/getugroups.c (getugroups): Include <limits.h>.
40198         Instead, compare against INT_MAX, and increment only if the test passes.
40199
40200 2008-02-13  Jim Meyering  <meyering@redhat.com>
40201         and Eric Blake  <ebb9@byu.net>
40202
40203         Avoid shadowing warning and compile errors on Linux.
40204         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40205         forwarding macros on Linux.
40206         (dcgettext): Define a stub, for Linux.
40207         (results_g, main): Avoid warnings.
40208
40209 2008-02-12  Eric Blake  <ebb9@byu.net>
40210
40211         Silence warning in last patch.
40212         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40213
40214         Quotearg part 4: add tests, fix c-maybe colon quoting.
40215         * lib/quotearg.h: Improve documentation.
40216         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40217         escapes when adding outer quotes.  When quoting trigraphs, use
40218         valid C notation.  When quoting NUL, omit extra characters if next
40219         character is not digit.  Alter prototype.
40220         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40221         callers.
40222         * modules/quotearg-tests: New module.
40223         * tests/test-quotearg.c: New test.
40224
40225 2008-02-07  Eric Blake  <ebb9@byu.net>
40226
40227         Quotearg part 3: add flag to control outer quote elision.
40228         * lib/quotearg.h (c_maybe_quoting_style): New style.
40229         (enum quoting_flags): Better documentation of flags.
40230         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40231         c-maybe style.
40232         (quotearg_buffer_restyled): Handle new flag to elide outer
40233         quotes.
40234
40235         Quotearg part 2: add flag that can control NUL elision.
40236         * lib/quotearg.h (set_quoting_flags): New prototype.
40237         * lib/quotearg.c (struct quoting_options): Add flag field.
40238         (set_quoting_flags): New function.
40239         (quotearg_buffer_restyled): Add flags parameter.
40240         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40241         (quotearg_n_options): Set the flag, since length cannot be
40242         returned.
40243         (quoting_options_from_style): Default flags correctly.
40244
40245         Quotearg part 1: more wrappers, restore quotearg_char state.
40246         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40247         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40248         (quotearg_colon_mem): New wrappers.
40249         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40250         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40251         functions.
40252         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40253         (quotearg_colon_mem): New functions.
40254
40255 2008-02-11  Bruno Haible  <bruno@clisp.org>
40256
40257         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40258         library in the current directory: it does not work with parallel make.
40259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40260
40261 2008-02-11  Bruno Haible  <bruno@clisp.org>
40262
40263         * .gitattributes: New file.
40264
40265 2008-02-11  Jim Meyering  <meyering@redhat.com>
40266
40267         useless-if-before-free: Fix reversed exit values.
40268         * build-aux/useless-if-before-free: Use correct values
40269         for EXIT_MATCH and EXIT_NO_MATCH.
40270
40271         * build-aux/useless-if-before-free: Close stdout carefully.
40272
40273 2008-02-10  Bruno Haible  <bruno@clisp.org>
40274
40275         New module 'git-merge-changelog'.
40276         * modules/git-merge-changelog: New file.
40277         * lib/git-merge-changelog.c: New file.
40278
40279 2008-02-10  Jim Meyering  <meyering@redhat.com>
40280
40281         useless-if-before-free: New option: --list (-l).
40282
40283         useless-if-before-free: Don't exit immediately upon open failure.
40284         * build-aux/useless-if-before-free: Exit 2 for errors.
40285         Upon failure to open a file, don't exit immediately.
40286         Rather, just warn and continue with any remaining files.
40287
40288 2008-02-10  Bruno Haible  <bruno@clisp.org>
40289
40290         New abstract list operation 'node_set_value'.
40291         * lib/gl_list.h (gl_list_node_set_value): New function.
40292         (struct gl_list_implementation): New field node_set_value.
40293         * lib/gl_list.c (gl_list_node_set_value): New function.
40294         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40295         (gl_array_list_implementation): Update.
40296         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40297         (gl_carray_list_implementation): Update.
40298         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40299         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40300         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40301         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40302         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40303         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40304         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40305         Update.
40306         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40307         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40308         (gl_sublist_list_implementation): Update.
40309
40310 2008-02-10  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40313         Needed when ELEMENT is #defined to 'some_type *'.
40314
40315 2008-02-10  Jim Meyering  <meyering@redhat.com>
40316
40317         New script and module: useless-if-before-free
40318         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40319         * build-aux/useless-if-before-free: New file.
40320         * modules/useless-if-before-free: New file.
40321
40322         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40323
40324         xstrtol_error: Fix typo.
40325         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40326         s/exit_failure/exit_status/.
40327
40328 2008-02-09  Jim Meyering  <meyering@redhat.com>
40329
40330         New script and module: gitlog-to-changelog
40331         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40332         * modules/gitlog-to-changelog: New file.
40333         * build-aux/gitlog-to-changelog: New file.
40334
40335 2008-02-08  Jim Meyering  <meyering@redhat.com>
40336
40337         Avoid two "parameter unused" warnings.
40338         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40339         Mark "st" as used.
40340
40341         Use "git COMMAND", not "git-COMMAND".
40342         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40343         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40344         * build-aux/git-version-gen: Use "git status", not "git-status".
40345
40346 2008-02-07  Bruno Haible  <bruno@clisp.org>
40347
40348         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40349         Avoids a crash on Windows Vista.
40350         Reported by Adam Strzelecki <ono@java.pl> via
40351         Simon Josefsson <simon@josefsson.org>.
40352
40353 2008-02-06  Bruno Haible  <bruno@clisp.org>
40354
40355         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40356         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40357         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40359         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40361         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40362         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40370         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40371         left-adjust flag.
40372         * tests/test-snprintf-posix.h (test_function): Likewise.
40373         * tests/test-sprintf-posix.h (test_function): Likewise.
40374         * tests/test-vasprintf-posix.c (test_function): Likewise.
40375         * doc/posix-functions/fprintf.texi: Update.
40376         * doc/posix-functions/printf.texi: Update.
40377         * doc/posix-functions/snprintf.texi: Update.
40378         * doc/posix-functions/sprintf.texi: Update.
40379         * doc/posix-functions/vfprintf.texi: Update.
40380         * doc/posix-functions/vprintf.texi: Update.
40381         * doc/posix-functions/vsnprintf.texi: Update.
40382         * doc/posix-functions/vsprintf.texi: Update.
40383         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40384
40385 2008-02-06  Bruno Haible  <bruno@clisp.org>
40386
40387         Fix bug introduced on 2008-01-26.
40388         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40389
40390 2008-02-06  Bruno Haible  <bruno@clisp.org>
40391
40392         Fix bug introduced on 2007-06-10.
40393         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40394         !NEED_PRINTF_FLAG_ZERO.
40395
40396 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40397
40398         getloadavg: use libperfstat on AIX5
40399         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40400
40401 2008-02-03  Bruno Haible  <bruno@clisp.org>
40402
40403         * lib/diffseq.h: Add comments about required #includes.
40404         Reported by Michael Biggs <gnulib@doubleplum.net>.
40405
40406 2008-02-01  Bruno Haible  <bruno@clisp.org>
40407
40408         * users.txt: Add gnuit.
40409
40410 2008-01-31  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/md4.c (set_uint32): Mark as inline.
40413         * lib/md5.c (set_uint32): Likewise.
40414         * lib/sha1.c (set_uint32): Likewise.
40415         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40416         * m4/md5.m4 (gl_MD5): Likewise.
40417         * m4/sha1.m4 (gl_SHA1): Likewise.
40418
40419 2008-01-31  Jim Meyering  <meyering@redhat.com>
40420
40421         Use "sizeof VAR", rather than a literal "4".
40422         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40423         * lib/md4.c (md4_read_ctx): Likewise.
40424         * lib/sha1.c (sha1_read_ctx): Likewise.
40425
40426 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40427
40428         * tests/test-sha1.c: New file, based on test-md5.c.
40429
40430         * modules/crypto/sha1-tests: New file.
40431
40432 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40433
40434         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40435
40436 2008-01-31  Jim Meyering  <meyering@redhat.com>
40437
40438         Prefer "sizeof v" over the equivalent "4".
40439         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40440         * lib/md5.c (set_uint32): Likewise.
40441         * lib/sha1.c (set_uint32): Likewise.
40442
40443 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40444
40445         * lib/sha1.c (set_uint32): Mark function as static.
40446
40447 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40448
40449         md2: clarify comments to say that alignment is not required.
40450         * lib/md2.h: Remove warning about alignment in comment.
40451         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40452         never been required.
40453
40454 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40455
40456         md4: adapt alignment constraint fix from sha1.
40457         * lib/md4.c (set_uint32): New function, from sha1.c
40458         (md4_read_ctx): Use it.
40459         (md4_finish_ctx): Doc fix.
40460         * lib/md4.h: Doc fix.
40461
40462 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40463
40464         md5: adapt alignment constraint fix from sha1.
40465         * lib/md5.c (set_uint32): New function, from sha1.c
40466         (md5_read_ctx): Use it.
40467         (md5_finish_ctx): Doc fix.
40468         * lib/md5.h: Doc fix.
40469
40470 2008-01-30  Peter Palfrader  <weasel@debian.org>
40471
40472         sha1: remove the result buffer alignment constraint
40473         * lib/sha1.c (set_uint32): New function.
40474         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40475         constraint.
40476         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40477         * lib/sha1.h: Likewise.
40478
40479 2008-01-30  Andreas Schwab  <schwab@suse.de>
40480             Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40483         correct definition of LDBL_MIN_EXP.
40484
40485 2008-01-30  Karl Berry  <karl@gnu.org>
40486
40487         * config/srclist-update: try to preserve x bit on updates.
40488         * config/srclistvars.sh: update for karl.
40489
40490 2008-01-29  Jim Meyering  <meyering@redhat.com>
40491
40492         vasnprintf.c: Avoid warning about unused label
40493         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40494         "overflow" label definition and associated code with the
40495         same cpp condition that guards the sole use of that label.
40496
40497 2008-01-26  Bruno Haible  <bruno@clisp.org>
40498
40499         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40500         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40501         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40502         * lib/isnanl-nolibm.h (isnanl): Likewise.
40503         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40504
40505 2008-01-26  Bruno Haible  <bruno@clisp.org>
40506
40507         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40508         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40509
40510 2008-01-26  Bruno Haible  <bruno@clisp.org>
40511
40512         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40513         GCC >= 4.0 built-in.
40514         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40515
40516 2008-01-26  Bruno Haible  <bruno@clisp.org>
40517
40518         Rename isnan, applicable to 'double' only, to isnand.
40519         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40520         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40521         (configure.ac): Update.
40522         (Include): Replace "isnan.h" with "isnand.h".
40523         * m4/isnand.m4: Renamed from m4/isnan.m4.
40524         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40525         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40526         instead of isnan.c.
40527         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40528         instead of HAVE_ISNAN_IN_LIBC.
40529         (isnand): Renamed from isnan.
40530         * lib/isnand.c: New file.
40531         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40532         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40533         (Makefile.am): Update.
40534         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40535         Include isnand.h instead of isnan.h.
40536         (main): Test isnand instead of isnan.
40537         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40538         isnan-nolibm.
40539         * modules/frexp (Depends-on): Likewise.
40540         * modules/frexp-tests (Depends-on): Likewise.
40541         * modules/frexp-nolibm (Depends-on): Likewise.
40542         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40543         * modules/isfinite (Depends-on): Likewise.
40544         * modules/round-tests (Depends-on): Likewise.
40545         * modules/signbit (Depends-on): Likewise.
40546         * modules/signbit-tests (Depends-on): Likewise.
40547         * modules/snprintf-posix (Depends-on): Likewise.
40548         * modules/sprintf-posix (Depends-on): Likewise.
40549         * modules/trunc-tests (Depends-on): Likewise.
40550         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40551         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40552         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40553         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40554         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40555         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40556         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40557         * modules/vasnprintf-posix (Depends-on): Likewise.
40558         * modules/vasprintf-posix (Depends-on): Likewise.
40559         * modules/vfprintf-posix (Depends-on): Likewise.
40560         * modules/vsnprintf-posix (Depends-on): Likewise.
40561         * modules/vsprintf-posix (Depends-on): Likewise.
40562         * lib/frexp.c: Include isnand.h instead of isnan.h.
40563         (ISNAN): Set to isnand instead of isnan.
40564         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40565         (gl_isfinited): Use isnand instead of isnan.
40566         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40567         (gl_signbitd): Use isnand instead of isnan.
40568         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40569         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40570         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40571         (main): Use isnand instead of isnan.
40572         * tests/test-round1.c: Include isnand.h.
40573         (main): Use isnand instead of isnan.
40574         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40575         (ISNAN): Set to isnand instead of isnan.
40576         * tests/test-trunc1.c: Include isnand.h.
40577         (main): Use isnand instead of isnan.
40578         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40579         (equal): Use isnand instead of isnan.
40580         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40581         isnand-nolibm.
40582         * NEWS: Mention the change.
40583
40584 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40585             Bruno Haible  <bruno@clisp.org>
40586
40587         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40588         the GCC builtins for signbits are present and set
40589         REPLACE_SIGNBIT_USING_GCC if so.
40590         * lib/math.in.h (signbit): Define using GCC builtins if
40591         REPLACE_SIGNBIT_USING_GCC is set.
40592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40593         REPLACE_SIGNBIT_USING_GCC.
40594         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40595
40596 2008-01-25  Jim Meyering  <meyering@redhat.com>
40597
40598         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40599         * lib/poll.c: Include <config.h>, not "config.h".
40600         * tests/test-getaddrinfo.c: Likewise.
40601
40602 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40603
40604         * modules/sockets-tests: New file.
40605
40606 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40607
40608         * modules/sockets: New module, can be used to call WSA_Startup and
40609         WSA_Cleanup when needed.
40610
40611         * lib/sockets.h, lib/sockets.c: New files.
40612
40613         * m4/sockets.m4: New file.
40614
40615         * tests/test-sockets.c: New file.
40616
40617 2008-01-19  Bruno Haible  <bruno@clisp.org>
40618
40619         * doc/posix-headers: Renamed from doc/headers.
40620         * doc/posix-functions: Renamed from doc/functions.
40621         * doc/gnulib.texi: Update.
40622
40623 2008-01-19  Bruno Haible  <bruno@clisp.org>
40624
40625         * doc/glibc-functions/strcasestr.texi: Include contents of
40626         doc/functions/strcasestr.texi, fixing the list of platforms.
40627         * doc/functions/strcasestr.texi: Remove file.
40628
40629 2008-01-19  Bruno Haible  <bruno@clisp.org>
40630
40631         * doc/glibc-functions/memmem.texi: Include contents of
40632         doc/functions/memmem.texi.
40633         * doc/functions/memmem.texi: Remove file.
40634
40635 2008-01-18  Bruno Haible  <bruno@clisp.org>
40636
40637         * doc/glibc-functions/*.texi: New files.
40638         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40639         to use the new files.
40640
40641 2008-01-17  Bruno Haible  <bruno@clisp.org>
40642
40643         * tests/test-gethostname.c (main): Fix printf statement.
40644
40645 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40646
40647         * modules/gethostname-tests: New file.
40648
40649         * tests/test-gethostname.c: New file.
40650
40651 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40652
40653         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40654         used by the UNAME case.  Reported by Bruno Haible
40655         <bruno@clisp.org>.
40656
40657 2008-01-17  Eric Blake  <ebb9@byu.net>
40658
40659         Convert c-strcasestr to be more efficient.
40660         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40661         (Depends-on): Add c-strcase, remove malloca, strnlen.
40662         * tests/test-c-strcasestr.c (main): Enhance test.
40663         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40664
40665 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40666
40667         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40668         Use it in creating po/Makevars.
40669
40670 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40671
40672         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40673         Applications that requires it should initialize libgcrypt
40674         manually.
40675
40676 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40677
40678         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40679
40680 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40681
40682         Fix problem with getdate on mingw32 reported by Simon Josefsson
40683         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40684         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40685         tzname", when deciding whether to declare tzname.
40686         * lib/strftime.c (tzname): Likewise.
40687
40688 2008-01-15  Bruno Haible  <bruno@clisp.org>
40689
40690         Work around a MacOS X 10.5 bug in frexpl().
40691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40692         * doc/functions/frexpl.texi: Document the bug.
40693         Reported by Elias Pipping <pipping@gentoo.org>.
40694
40695 2008-01-14  Eric Blake  <ebb9@byu.net>
40696
40697         Touch up previous patch.
40698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40699         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40700
40701         Convert strcasestr module to use Two-Way algorithm.
40702         * modules/strcasestr-simple: New module, based on the old
40703         strcasestr, but with Two-Way rather than KMP.
40704         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40705         * lib/string.in.h (rpl_strcasestr): Declare.
40706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40707         performance.
40708         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40709         * modules/string (Makefile.am): Support strcasestr.
40710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40711         * modules/strcasestr-tests (Depends-on): Check for alarm.
40712         * tests/test-strcasestr.c: Augment test.
40713         * lib/str-two-way.h: Clean up stray macro.
40714         * NEWS: Document new module.
40715         * MODULES.html.sh (string handling): Likewise.
40716         * doc/functions/strcasestr.texi: New file.
40717         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40718         here, since it is not a POSIX function.
40719
40720 2008-01-14  Colin Watson  <cjwatson@debian.org>
40721             Bruno Haible  <bruno@clisp.org>
40722
40723         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40724         works fine; if not, set REPLACE_STRSIGNAL.
40725         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40727         REPLACE_STRSIGNAL.
40728         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40729         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40730         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40731
40732 2008-01-14  Bruno Haible  <bruno@clisp.org>
40733
40734         * modules/strsignal (Include): Change to <string.h>.
40735
40736 2008-01-14  Colin Watson  <cjwatson@debian.org>
40737
40738         * modules/argp (Notice): Add a notice recommending to change
40739         XGETTEXT_OPTIONS.
40740         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40741
40742 2008-01-13  Colin Watson  <cjwatson@debian.org>
40743
40744         * modules/strsignal-tests: New file.
40745         * tests/test-strsignal.c: New file.
40746
40747         * lib/strsignal.c: New file, from glibc with modifications.
40748         * lib/siglist.h: New file, from glibc with modifications.
40749         * lib/string.in.h (strsignal): New declaration.
40750         * m4/strsignal.m4: New file.
40751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40752         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40753         * modules/strsignal: New file.
40754         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40755         HAVE_DECL_STRSIGNAL.
40756
40757 2008-01-13  Bruno Haible  <bruno@clisp.org>
40758
40759         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40760         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40761         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40762         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40763
40764 2008-01-13  Bruno Haible  <bruno@clisp.org>
40765
40766         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40767         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40768         * lib/argp.h (__attribute__): Likewise.
40769         * lib/c-stack.c (__attribute__): Likewise.
40770         * lib/error.h (__attribute__): Likewise.
40771         * lib/fts.c (__attribute__): Likewise.
40772         * lib/openat.h (__attribute__): Likewise.
40773         * lib/stdio.in.h (__attribute__): Likewise.
40774         * lib/string.in.h (__attribute__): Likewise.
40775         * lib/utimens.c (__attribute__): Likewise.
40776         * lib/vasnprintf.h (__attribute__): Likewise.
40777         * lib/xalloc.h (__attribute__): Likewise.
40778         * lib/xprintf.h (__attribute__): Likewise.
40779         * lib/xstrtol.h (__attribute__): Likewise.
40780         * lib/xvasprintf.h (__attribute__): Likewise.
40781
40782 2008-01-12  Bruno Haible  <bruno@clisp.org>
40783
40784         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40785         * doc/glibc-headers/a.out.texi: New file.
40786         * doc/glibc-headers/aliases.texi: New file.
40787         * doc/glibc-headers/alloca.texi: New file.
40788         * doc/glibc-headers/ar.texi: New file.
40789         * doc/glibc-headers/argp.texi: New file.
40790         * doc/glibc-headers/argz.texi: New file.
40791         * doc/glibc-headers/byteswap.texi: New file.
40792         * doc/glibc-headers/crypt.texi: New file.
40793         * doc/glibc-headers/endian.texi: New file.
40794         * doc/glibc-headers/envz.texi: New file.
40795         * doc/glibc-headers/err.texi: New file.
40796         * doc/glibc-headers/error.texi: New file.
40797         * doc/glibc-headers/execinfo.texi: New file.
40798         * doc/glibc-headers/fpu_control.texi: New file.
40799         * doc/glibc-headers/fstab.texi: New file.
40800         * doc/glibc-headers/fts.texi: New file.
40801         * doc/glibc-headers/getopt.texi: New file.
40802         * doc/glibc-headers/ieee754.texi: New file.
40803         * doc/glibc-headers/ifaddrs.texi: New file.
40804         * doc/glibc-headers/libintl.texi: New file.
40805         * doc/glibc-headers/mcheck.texi: New file.
40806         * doc/glibc-headers/mntent.texi: New file.
40807         * doc/glibc-headers/obstack.texi: New file.
40808         * doc/glibc-headers/paths.texi: New file.
40809         * doc/glibc-headers/printf.texi: New file.
40810         * doc/glibc-headers/pty.texi: New file.
40811         * doc/glibc-headers/resolv.texi: New file.
40812         * doc/glibc-headers/shadow.texi: New file.
40813         * doc/glibc-headers/sysexits.texi: New file.
40814         * doc/glibc-headers/ttyent.texi: New file.
40815
40816 2008-01-12  Jim Meyering  <meyering@redhat.com>
40817
40818         announce-gen: emit Gnulib's git-based version string.
40819         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40820         New option --gnulib-version=V, where V is expected to be
40821         the output of running git describe in the gnulib directory.
40822         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40823         not useful, and plan to stop publishing an xdelta file with each
40824         coreutils release.
40825
40826         * build-aux/announce-gen: Also check for lzma-compressed files.
40827
40828 2008-01-11  Bruno Haible  <bruno@clisp.org>
40829
40830         * tests/test-memmem.c (main): Increase maximum allowed time.
40831         * tests/test-strstr.c (main): Likewise.
40832
40833 2008-01-11  Bruno Haible  <bruno@clisp.org>
40834
40835         * doc/functions/memmem.texi: Add more precisions about platforms.
40836         * doc/functions/strstr.texi: Likewise.
40837
40838 2008-01-10  Eric Blake  <ebb9@byu.net>
40839
40840         * m4/strstr.m4: Delete cruft from copy-n-paste.
40841         Reported by Bruno Haible.
40842
40843 2008-01-10  Bruno Haible  <bruno@clisp.org>
40844
40845         Make c-strstr rely on strstr.
40846         * lib/c-strstr.c: Don't include str-kmp.h.
40847         (c_strstr): Define in terms of strstr.
40848         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40849         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40850
40851 2008-01-10  Bruno Haible  <bruno@clisp.org>
40852
40853         * doc/gnulib.texi (String Functions in C Locale): New section.
40854         * doc/c-ctype.texi: New file.
40855         * doc/c-strcase.texi: New file.
40856         * doc/c-strcaseeq.texi: New file.
40857         * doc/c-strcasestr.texi: New file.
40858         * doc/c-strstr.texi: New file.
40859         * doc/c-strtod.texi: New file.
40860         * doc/c-strtold.texi: New file.
40861
40862 2008-01-10  Eric Blake  <ebb9@byu.net>
40863
40864         * lib/relocatable.h: Fix a comment.
40865
40866 2008-01-10  Eric Blake  <ebb9@byu.net>
40867
40868         Share two-way algorithm.
40869         * lib/str-two-way.h: New file, merged from...
40870         * lib/memmem.c: ...here...
40871         * lib/strstr.c: ...and here.
40872         * modules/memmem (Files): Use it.
40873         * modules/strstr (Files): Likewise.
40874
40875         Avoid quadratic strstr implementations.
40876         * lib/strstr.c: New file.
40877         * m4/strstr.m4: Likewise.
40878         * modules/strstr: Likewise.
40879         * modules/strstr-tests: Likewise.
40880         * tests/test-strstr.c: Likewise.
40881         * lib/string.in.h (rpl_strstr): Declare.
40882         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40884         * modules/string (Makefile.am): Likewise.
40885         * MODULES.html.sh (string handling): Mention new module.
40886         * doc/functions/strstr.texi (strstr): Document the bug.
40887
40888 2008-01-10  Bruno Haible  <bruno@clisp.org>
40889
40890         * lib/relocatable.h (relocate): State whether result is freshly
40891         allocated or not.
40892         * lib/relocatable.c (relocate): Return a freshly allocated string
40893         instead of a pointer to a privately held string.
40894         Reported by Sylvain Beucler <beuc@gnu.org>.
40895
40896 2008-01-10  Colin Watson  <cjwatson@debian.org>
40897
40898         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40899         s/S_ISNLK/S_ISLNK/.
40900
40901 2008-01-09  Bruno Haible  <bruno@clisp.org>
40902
40903         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40904         and other files.
40905         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40906         if it's only a guess.
40907         * modules/memmem: Simplify by depending on memmem-simple.
40908
40909 2008-01-09  Bruno Haible  <bruno@clisp.org>
40910
40911         Work around OpenBSD 4.0 tdelete() bug.
40912         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40913         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40914         macros and don't redefine the enum values.
40915         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40916         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40917         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40918
40919 2008-01-09  Bruno Haible  <bruno@clisp.org>
40920
40921         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40922         (main): Don't perform the tests if setlocale did not install a UTF-8
40923         locale. Needed on OpenBSD 4.0.
40924         * modules/wcwidth-tests (Depends-on): Add localcharset.
40925
40926 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40927
40928         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40929         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40930         * NEWS: announce this.
40931         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40932
40933 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40934         and Eric Blake  <ebb9@byu.net>
40935
40936         Add memmem-simple module.
40937         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40938         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40939         * modules/memmem-simple: New file.
40940         * modules/memmem (Description): Tweak.
40941         * MODULES.html.sh (string handling): Mention new module.
40942         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40943         addressed by memmem-simple.
40944         * NEWS: Document the difference.
40945
40946 2008-01-09  Eric Blake  <ebb9@byu.net>
40947
40948         Give gcc some memmem optimization hints.
40949         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40950         (strcasestr): Declare as pure.
40951         * modules/memmem (Maintainer): Claim my implementation.
40952
40953 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40954
40955         Support AIX 6.1 and higher.
40956         * build-aux/config.libpath: Likewise.
40957         * build-aux/config.rpath: Likewise.
40958
40959 2008-01-08  Jim Meyering  <meyering@redhat.com>
40960             Bruno Haible  <bruno@clisp.org>
40961
40962         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40963         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40964         Reported by Peter Fales in
40965         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40966
40967 2008-01-08  Bruno Haible  <bruno@clisp.org>
40968
40969         * modules/unictype/category-of (Depends-on): Add
40970         unictype/category-none.
40971         * modules/unictype/category-and-tests (Depends-on): Add
40972         unictype/category-{L,N,Lu,Nd}.
40973         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40974         * modules/unictype/category-or-tests (Depends-on): Add
40975         unictype/category-{L,N}.
40976         * modules/unictype/category-name-tests (Depends-on): Add
40977         unictype/category-{Z,Nl}.
40978         Reported by Simon Josefsson.
40979
40980 2008-01-08  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40983         convention better.
40984         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40985         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40986         Reported by Peter Miller <millerp@canb.auug.org.au>.
40987
40988 2008-01-08  Eric Blake  <ebb9@byu.net>
40989
40990         Rewrite memmem to guarantee linear complexity without malloc.
40991         * lib/memmem.c (memmem): Use Two-Way rather than
40992         Knuth-Morris-Pratt, to allow O(1) space usage.
40993         (critical_factorization, two_way_short_needle)
40994         (two_way_long_needle): New functions.
40995         (knuth_morris_pratt): Delete.
40996         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40997         Add stdint.
40998         * tests/test-memmem.c (main): Add tests for periodic needle and
40999         sublinear performance.
41000         * doc/functions/memmem.texi (memmem): Document other deficiencies
41001         in cygwin and older glibc.
41002
41003 2008-01-08  Bruno Haible  <bruno@clisp.org>
41004
41005         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41006         augmentation.
41007
41008 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41009
41010         Add a configure time option: --disable-acl.
41011         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41012         AC_ARG_ENABLE(acl).
41013
41014 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41015
41016         * tests/test-localename.c: Don't include obsolete "setenv.h".
41017
41018         * modules/localename-tests (Depends-on): Need unsetenv.
41019
41020 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41021
41022         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41023
41024 2008-01-06  Colin Watson  <cjwatson@debian.org>
41025
41026         * users.txt: Add man-db.
41027
41028 2008-01-07  Bruno Haible  <bruno@clisp.org>
41029
41030         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41031         previous section name.
41032
41033 2008-01-07  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/progname.c (set_program_name): Don't strip off a leading
41036         "lt-" prefix outside a .libs directory.
41037         Suggested by Paul Eggert.
41038
41039 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41040             Bruno Haible  <bruno@clisp.org>
41041
41042         Improve memory cleanup in 'relocatable' module.
41043         * lib/relocatable.h (compute_curr_prefix): Change return type to
41044         'char *'.
41045         * lib/relocatable.c (compute_curr_prefix): Change return type to
41046         'char *'. Free curr_installdir after use.
41047         (relocate): Free curr_prefix_better after use.
41048         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41049
41050 2008-01-01  Bruno Haible  <bruno@clisp.org>
41051
41052         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41053         failure on older glibc systems.
41054         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41055
41056 2008-01-05  Eric Blake  <ebb9@byu.net>
41057
41058         Avoid quadratic system memmem.
41059         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41060         Reported by Ralf Wildenhues.
41061
41062         Fix memmem test for mingw.
41063         * modules/memmem-tests (configure.ac): Check for alarm.
41064         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41065         it.
41066         * doc/functions/memmem.texi: New file.
41067         * doc/gnulib.texi (Function Substitutes): Add memmem.
41068         Reported by Bruno Haible.
41069
41070 2008-01-04  Bruno Haible  <bruno@clisp.org>
41071
41072         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41073         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41074         gl_HEADER_STRING_H_DEFAULTS.
41075
41076 2008-01-04  Eric Blake  <ebb9@byu.net>
41077
41078         Shorten duration of memmem test.
41079         * tests/test-memmem.c (main): Use alarm to declare failure if test
41080         is taking too long.
41081         Reported by Ralf Wildenhues.
41082
41083 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41084
41085         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41086         string, needed by strerror.
41087
41088 2008-01-03  Colin Watson  <cjwatson@debian.org>
41089             Bruno Haible  <bruno@clisp.org>
41090
41091         * doc/gnulib-tool.texi (Localization): New section.
41092
41093 2008-01-02  Bruno Haible  <bruno@clisp.org>
41094
41095         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41096         variables to 'unsigned char *' type.
41097         Reported by Paul Eggert.
41098
41099 2008-01-02  Jim Meyering  <jim@meyering.net>
41100
41101         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41102
41103 2007-12-31  Jim Meyering  <jim@meyering.net>
41104
41105         Avoid use of private FTS type name.
41106         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41107
41108 2007-12-30  Karl Berry  <karl@gnu.org>
41109
41110         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41111         work around defect in Texinfo and/or the standalone Info browser.
41112
41113 2007-12-30  Bruno Haible  <bruno@clisp.org>
41114
41115         Unify 5 copies of the KMP code.
41116         * lib/str-kmp.h: New file.
41117         * lib/c-strcasestr.c: Include str-kmp.h.
41118         (knuth_morris_pratt): Remove function.
41119         (c_strcasestr): Update.
41120         * lib/c-strstr.c: Include str-kmp.h.
41121         (knuth_morris_pratt): Remove function.
41122         (c_strcasestr): Update.
41123         * lib/mbscasestr.c: Include str-kmp.h.
41124         (knuth_morris_pratt_unibyte): Remove function.
41125         * lib/mbsstr.c: Include str-kmp.h.
41126         (knuth_morris_pratt_unibyte): Remove function.
41127         * lib/strcasestr.c: Include str-kmp.h.
41128         (knuth_morris_pratt): Remove function.
41129         (strcasestr): Update.
41130         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41131         * modules/c-strstr (Files): Likewise.
41132         * modules/mbscasestr (Files): Likewise.
41133         * modules/mbsstr (Files): Likewise.
41134         * modules/strcasestr (Files): Likewise.
41135         Suggested by Paul Eggert.
41136
41137 2007-12-30  Bruno Haible  <bruno@clisp.org>
41138
41139         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41140         defined.
41141
41142 2007-12-30  Bruno Haible  <bruno@clisp.org>
41143
41144         * lib/xmalloca.h: Include xalloc.h.
41145         (xnmalloca): New macro.
41146
41147 2007-12-30  Bruno Haible  <bruno@clisp.org>
41148
41149         * lib/malloca.h (nmalloca): New macro.
41150         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41151         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41152         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41153         knuth_morris_pratt_multibyte): Likewise.
41154         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41155         knuth_morris_pratt_multibyte): Likewise.
41156         * lib/memmem.c (knuth_morris_pratt): Likewise.
41157         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41158
41159 2007-12-25  Bruno Haible  <bruno@clisp.org>
41160
41161         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41162         * lib/glob.c: Don't include openat.h.
41163         (link_exists2_p): Add back the code that deals with the
41164         !GLOB_ALTDIRFUNC case.
41165         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41166         let it do the filename concatenation.
41167         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41168         * modules/glob (Depends-on): Remove openat.
41169
41170 2007-12-31  Bruno Haible  <bruno@clisp.org>
41171
41172         * modules/dirfd (License): Change to LGPLv2+.
41173         Approved by Jim Meyering.
41174
41175 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41176
41177         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41178         when multiplying M by sizeof (size_t).
41179
41180 2007-12-10  Martin Lambers  <marlam@marlam.de>
41181
41182         Override getpagesize on mingw.
41183         * lib/getpagesize.c: New file.
41184         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41185         * modules/getpagesize (Files): Add lib/getpagesize.c.
41186         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41188         REPLACE_GETPAGESIZE.
41189         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41190
41191 2007-12-25  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/localcharset (Notice): New field.
41194         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41195         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41196
41197 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41198             Bruno Haible  <bruno@clisp.org>
41199
41200         Avoid using the syntax symbol() in formatted documentation.
41201         * MODULES.html.sh (func_module): When replacing symbol() with a
41202         hyperlink, remove the parentheses. Show an error if some remain.
41203         Recognize and render the '...' syntax.
41204         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41205         Rework. Add paragraph about GCC's inlining.
41206         * doc/alloca.texi: Likewise.
41207         * doc/error.texi: Remove parentheses from symbol reference.
41208         * doc/gnulib-intro.texi: Likewise.
41209         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41210         * modules/fnmatch (Description): Reword to say "the ... function".
41211         * modules/full-read (Description): Likewise.
41212         * modules/full-write (Description): Likewise.
41213         * modules/safe-read (Description): Likewise.
41214         * modules/safe-write (Description): Likewise.
41215         * modules/strchrnul (Description): Likewise.
41216         * modules/trim (Description): Likewise.
41217         * modules/error (Description): Remove parentheses from symbol
41218         references.
41219         * modules/verror (Description): Likewise.
41220         Reported by Karl Berry.
41221
41222 2007-12-25  Bruno Haible  <bruno@clisp.org>
41223
41224         Fixup after 2007-10-16 commit.
41225         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41226
41227 2007-12-24  Bruno Haible  <bruno@clisp.org>
41228
41229         Make --enable-relocatable work with DESTDIR.
41230         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41231         to compute installdir from destprog.
41232         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41233         also set the RELOC_DESTDIR variable.
41234         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41235
41236 2007-12-24  Bruno Haible  <bruno@clisp.org>
41237
41238         Fix link error due to xalloc_die().
41239         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41240         of xreadlink.
41241         * lib/relocwrapper.c: Update comments.
41242         * build-aux/install-reloc: Remove xreadlink.c from file list.
41243         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41244         xreadlink.c.
41245         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41246
41247 2007-12-24  Bruno Haible  <bruno@clisp.org>
41248
41249         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41250         * lib/setenv.h: Remove file.
41251         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41252         lib/setenv.h.
41253         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41254         (Depends-on): Add stdlib.
41255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41256         gl_FUNC_UNSETENV.
41257         (Include): Replace setenv.h with <stdlib.h>.
41258         * modules/unsetenv: New file.
41259         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41260         * lib/unsetenv.c: Include <stdlib.h> first.
41261         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41262         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41263         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41264         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41265         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41266         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41268         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41269         * doc/functions/unsetenv.texi: Update.
41270         * modules/xsetenv (Depends-on): Add unsetenv.
41271         * modules/getdate (Depends-on): Likewise.
41272         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41273         * lib/xsetenv.c: Don't include setenv.h.
41274         * lib/getdate.y: Likewise.
41275         * lib/relocwrapper.c: Likewise.
41276         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41277         (Depends-on): Add stdlib.
41278         * NEWS: Mention the changes.
41279         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41280
41281 2007-12-23  Bruno Haible  <bruno@clisp.org>
41282
41283         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41284         indentation.
41285
41286 2007-12-23  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/c-strcasestr.c: Add more comments.
41289         * lib/c-strstr.c: Likewise.
41290         * lib/mbscasestr.c: Likewise.
41291         * lib/mbsstr.c: Likewise.
41292         * lib/strcasestr.c: Likewise.
41293         * lib/memmem.c: Likewise.
41294
41295 2007-12-23  Bruno Haible  <bruno@clisp.org>
41296
41297         * tests/test-memmem.c: Include <string.h> first.
41298
41299 2007-12-22  Bruno Haible  <bruno@clisp.org>
41300
41301         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41302         the contents of $testsbase.
41303         Reported by Ralf Wildenhues.
41304
41305 2007-12-22  Bruno Haible  <bruno@clisp.org>
41306
41307         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41308         two variables local_ldadd_before, local_ldadd_last.
41309
41310 2007-12-20  Eric Blake  <ebb9@byu.net>
41311
41312         Work around circular library issue when cross-compiling.
41313         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41314         that progname.o does not need to pull in rpl_memcmp.
41315
41316 2007-12-19  Eric Blake  <ebb9@byu.net>
41317
41318         Fix memmem to avoid O(n^2) worst-case complexity.
41319         * lib/memmem.c (knuth_morris_pratt): New function.
41320         (memmem): Use it if first few naive iterations fail.
41321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41322         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41323         * modules/memchr (License): Likewise.
41324         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41325         malloca.
41326         * tests/test-memmem.c: Rewrite, borrowing ideas from
41327         test-mbsstr1.c; the old version wouldn't even compile!
41328         * modules/memmem-tests: New file.
41329         * lib/string.in.h (rpl_memmem): Add declaration.
41330         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41332         REPLACE_MEMMEM.
41333
41334 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41335
41336         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41337         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41338         before any system include files, and undef after them all.  This
41339         should fix a problem on VMS reported by John E. Malmberg in
41340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41341
41342 2007-12-17  Eric Blake  <ebb9@byu.net>
41343
41344         Revert addition of verify, for BSD/OS.
41345         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41346         can't handle large files, for the sake of obsolete platforms.
41347         * modules/fseeko (Depends-on): Remove verify.
41348         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41349         * doc/functions/ftello.texi (ftello): Likewise.
41350         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41351         Reported by Larry Jones.
41352
41353 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41354
41355         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41356         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41357
41358 2007-12-17  Jim Meyering  <meyering@redhat.com>
41359
41360         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41361         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41362         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41363         * modules/getcwd (Depends-on): Add openat.
41364         Reported by Petr Salinger.
41365
41366 2007-12-17  Bruno Haible  <bruno@clisp.org>
41367
41368         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41369         avoid a segmentation fault of the configure test on x86_64 systems.
41370
41371 2007-12-15  Jim Meyering  <meyering@redhat.com>
41372
41373         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41374
41375 2007-12-13  Eric Blake  <ebb9@byu.net>
41376
41377         Another fseek test.
41378         * tests/test-fseek.c (main): Also test ungetc handling.
41379         * tests/test-fseeko.c (main): Likewise.
41380         * modules/fseeko (Depends-on): Add verify.
41381         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41382         large.
41383         Reported by Larry Jones.
41384
41385         Fix fseeko on mingw.
41386         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41387         seek.
41388
41389         Beef up fseek tests.
41390         * tests/test-fseek.c (main): Also test eof handling.
41391         * tests/test-fseeko.c (main): Likewise.
41392         Reported by Larry Jones.
41393
41394 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41395
41396         Fix fseeko on BSD-based platforms.
41397         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41398         successful seek.
41399
41400 2007-12-12  Eric Blake  <ebb9@byu.net>
41401
41402         Allow circular dependency of separate libtests.a
41403         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41404         when use_libtests.
41405
41406 2007-12-11  Eric Blake  <ebb9@byu.net>
41407
41408         Fix bug with -0.0L in previous patch.
41409         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41410         * tests/test-isnan.c (main): Also test on zeroes.
41411         * tests/test-isnanf.c (main): Likewise.
41412         * tests/test-isnanl.h (main): Likewise.
41413
41414         Detect pseudo-denormals on x86 even when cross-compiling.
41415         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41416         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41417         invalid bit patterns that happen to satisfy ==.
41418
41419         Avoid link failures with separate libtests.a.
41420         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41421         last, to satisfy circular dependencies.
41422
41423 2007-12-11  Eric Blake  <ebb9@byu.net>
41424         and Bruno Haible  <bruno@clisp.org>
41425
41426         Fix OpenBSD 4.0 <float.h> handling of long double.
41427         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41428         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41429         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41430
41431 2007-12-11  Jim Meyering  <meyering@redhat.com>
41432
41433         * users.txt: Add libvirt.
41434
41435         Support versions of autoconf prior to 2.59c.
41436         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41437         if it is not already defined.
41438
41439 2007-12-09  Bruno Haible  <bruno@clisp.org>
41440
41441         Let 'gnulib-tool --import' collect sources needed for the tests in
41442         tests/ rather than in lib/.
41443         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41444         argument. If true, add rules to generate libtests.a, and put libtests.a
41445         into $(LDADD). Consider source files in subdirectories and set
41446         uses_subdirs.
41447         (func_emit_initmacro_start, func_emit_initmacro_end,
41448         func_emit_initmacro_done): Pass all arguments explicitly.
41449         (func_import): Determine two module lists main_modules,
41450         testsrelated_modules. Determine use_libtests. Determine two variables
41451         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41452         instead of just sed_transform_lib_file. Determine two variables
41453         main_files and testsrelated_files. Compute 'files' as the union of
41454         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41455         func_add_or_update. In the generated gnulib-comp.m4, collect the
41456         object files for tests/ in different variables than those for lib/.
41457         Substitute LIBTESTS_LIBDEPS.
41458         (func_create_testdir): Combine the uses_subdirs results from
41459         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41460
41461 2007-12-09  Bruno Haible  <bruno@clisp.org>
41462
41463         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41464         the build-aux directory.
41465
41466 2007-12-09  Bruno Haible  <bruno@clisp.org>
41467
41468         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41469         introduced on 2006-09-09.
41470
41471 2007-12-07  Jim Meyering  <meyering@redhat.com>
41472
41473         Let these macros work also with autoconf-2.59.
41474         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41475         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41476         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41477
41478 2007-12-06  Jim Meyering  <meyering@redhat.com>
41479
41480         Avoid a configure-time syntax error in gl_FUNC_ACL.
41481         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41482         function in each branch, before testing the cache variable.
41483
41484 2007-12-04  Eric Blake  <ebb9@byu.net>
41485
41486         Make scripts executable.
41487         * build-aux/config.guess: Add execute permissions.
41488         * build-aux/config.sub: Likewise.
41489         * build-aux/gendocs.sh: Likewise.
41490
41491         Fix frexp on mingw.
41492         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41493         cross-compiling.
41494         * doc/functions/frexp.texi (frexp): Document the bug.
41495
41496         Make cygwin fseeko check more reliable.
41497         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41498         version numbers, rather than unrelated feature check.
41499         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41500         * doc/functions/ftello.texi (ftello): Likewise.
41501         Reported by Bruno Haible.
41502
41503         * m4/strerror.m4: Bump version number.
41504
41505 2007-12-03  Bruno Haible  <bruno@clisp.org>
41506
41507         * doc/functions/mprotect.texi: Mention the mingw problem.
41508
41509 2007-12-03  Eric Blake  <ebb9@byu.net>
41510
41511         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41512         REPLACE_STRERROR is initialized before this macro.
41513
41514 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41515
41516         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41517         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41518         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41519         put -lsec in even for programs other than 'ls'.  This fixes a problem
41520         for gettext reported by Bruno Haible in
41521         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41522         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41523         Add support for Solaris 10.  This isn't efficient, but should get the
41524         job done for now.
41525
41526 2007-12-03  James Youngman  <jay@gnu.org>
41527
41528         * doc/regexprops-generic.texi: change "an close-group" to "a
41529         close-group" and "illegal" to "not allowed".
41530
41531 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41532
41533         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41534         pr_byname.h. Needed for the rare case when the maintainer has done
41535         "make maintainer-clean" in the source directory and then attempts a
41536         build outside the source directory.
41537         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41538         scripts_byname.h.
41539
41540 2007-12-02  Martin Lambers <marlam@marlam.de>
41541             Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/getpagesize.h: Remove file.
41544         * lib/unistd.in.h: Include declaration of getpagesize here.
41545         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41546         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41547         HAVE_SYS_PARAM_H.
41548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41549         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41550         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41551         (Depends-on): Add unistd.
41552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41553         (Include): Use <unistd.h> instead of getpagesize.h.
41554         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41555         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41556         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41557         gl_GETPAGESIZE invocation, already handled by module dependency.
41558         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41559
41560 2007-12-02  Bruno Haible  <bruno@clisp.org>
41561
41562         * modules/strings-tests: New file.
41563         * tests/test-strings.c: New file.
41564
41565         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41566         * lib/strings.in.h: New file.
41567         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41568         * m4/strings_h.m4: New file.
41569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41570         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41571         * modules/strings: New file.
41572         * modules/string (Makefile.am): Update.
41573         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41574         Reported by Karl Berry.
41575
41576 2007-12-01  Eric Blake  <ebb9@byu.net>
41577
41578         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41579         accomodate fix in cygwin 1.5.25.
41580
41581 2007-12-01  Jim Meyering  <meyering@redhat.com>
41582
41583         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41584         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41585         that would inhibit utf8-optimization of a regexp containing line-
41586         or buffer-anchors, e.g., `^', `$'.
41587
41588 2007-11-30  Bruno Haible  <bruno@clisp.org>
41589
41590         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41591         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41592         glthread_recursive_lock_init.
41593         * lib/lock.c (glthread_recursive_lock_init)
41594         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41595         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41596
41597 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41598
41599         New function qset_acl, like set_acl but with syscall semantics.
41600         * lib/acl.h (qset_acl): New decl.
41601         * lib/acl.c (qset_acl): New function.
41602         (set_acl): Use new function.  Use more-consistent diagnostics.
41603
41604 2007-11-28  Jim Meyering  <meyering@redhat.com>
41605
41606         * modules/physmem (License): Change from GPL to LGPLv2+.
41607
41608 2007-11-26  Bruno Haible  <bruno@clisp.org>
41609
41610         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41611         'long double' type has excess precision.
41612         Reported by Jim Meyering in
41613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41614
41615 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41616
41617         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41618         Sync from <http://gnu.org/licenses>.
41619         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41620         with license text from same location.
41621         * doc/maintain.texi, doc/standards.texi:  Sync from
41622         <http://savannah.gnu.org/projects/gnustandards>.
41623
41624 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41625         and Jim Meyering  <meyering@redhat.com>
41626
41627         Adjust getdate' grammar to accept a slightly more regular language.
41628         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41629         Before, the former was rejected.
41630         * lib/getdate.y (digits_to_date_time): New function, factored
41631         out of ...
41632         (number): ...here.  Just call digits_to_date_time.
41633         (hybrid): New non-terminal to handle an <unsigned number,
41634         signed relative offset> sequence consistently.
41635
41636 2007-11-18  Jim Meyering  <meyering@redhat.com>
41637
41638         Pull my changes from coreutils:
41639         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41640         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41641         use of $gnulib_tool_option_extras, so that it's separated from the
41642         preceding argument.
41643
41644         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41645         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41646         parent destination directories before copying a file into place.
41647
41648 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41649
41650         bootstrap: work also with 4-argument variant of AC_INIT
41651         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41652
41653 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41654
41655         Port test-getaddrinfo to Solaris.
41656         Problem reported by Bruno Haible in
41657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41658         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41659         explanation of setting 'hints'.
41660         Don't reject an implementation merely because it returns EAI_SERVICE.
41661         (EAI_SERVICE): Define to 0 if not defined.
41662
41663 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41664
41665         The license of gnu-make and posix-shell is now "GPLed build tool".
41666         * modules/gnu-make (License): Likewise.
41667         * modules/posix-shell (License): Likewise.
41668
41669         New module posix-shell, for determining a POSIX shell
41670         or perhaps something that is close enough to a POSIX shell.
41671         * m4/posix-shell.m4: New file.
41672         * modules/posix-shell: New file.
41673
41674         * MODULES.html.sh: Mention new module.
41675
41676         New module gnu-make, for determining whether we're using GNU Make.
41677         * m4/gnu-make.m4: New file.
41678         * modules/gnu-make: New file.
41679         * MODULES.html.sh: Mention new module.
41680
41681 2007-11-14  Jim Meyering  <meyering@redhat.com>
41682
41683         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41684         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41685         use this macro to create a function _definition_.
41686         Remove useless "#undef ARGMATCH_DIE".
41687
41688 2007-11-14  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/config.charset: Update for OpenBSD 4.1.
41691         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41692
41693 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41694
41695         Document 64-bit #if problems in stdint.texi.
41696         * doc/headers/stdint.texi (stdint.h): Mention problems with
41697         64-bit-#if, and how to work around them.
41698
41699         Don't insist on 'long long int' support in the preprocessor.  It
41700         breaks too many things.  For example, PRIdMAX still uses a 'long
41701         long int' format with the latest Sun compiler, even though
41702         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41703         preprocessor problem.  This causes the latest coreutils to dump
41704         core on Solaris 10 sparc with the Sun C compiler.
41705         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41706         the troublesome expressions at configure-time, not at #if-time.
41707         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41708         preprocessor.
41709         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41710         compile-time C checks, done at 'configure'-time.
41711         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41712         * modules/inttypes (Makefile): Substitute the new symbols that
41713         gl_INTTYPES_H now generates.
41714         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41715
41716 2007-11-12  Bruno Haible  <bruno@clisp.org>
41717
41718         Tests for Unicode character classification functions.
41719
41720         * modules/unictype/bidicategory-byname-tests: New file.
41721         * modules/unictype/bidicategory-name-tests: New file.
41722         * modules/unictype/bidicategory-of-tests: New file.
41723         * modules/unictype/bidicategory-test-tests: New file.
41724         * modules/unictype/block-list-tests: New file.
41725         * modules/unictype/block-of-tests: New file.
41726         * modules/unictype/block-test-tests: New file.
41727         * modules/unictype/category-C-tests: New file.
41728         * modules/unictype/category-Cc-tests: New file.
41729         * modules/unictype/category-Cf-tests: New file.
41730         * modules/unictype/category-Cn-tests: New file.
41731         * modules/unictype/category-Co-tests: New file.
41732         * modules/unictype/category-Cs-tests: New file.
41733         * modules/unictype/category-L-tests: New file.
41734         * modules/unictype/category-Ll-tests: New file.
41735         * modules/unictype/category-Lm-tests: New file.
41736         * modules/unictype/category-Lo-tests: New file.
41737         * modules/unictype/category-Lt-tests: New file.
41738         * modules/unictype/category-Lu-tests: New file.
41739         * modules/unictype/category-M-tests: New file.
41740         * modules/unictype/category-Mc-tests: New file.
41741         * modules/unictype/category-Me-tests: New file.
41742         * modules/unictype/category-Mn-tests: New file.
41743         * modules/unictype/category-N-tests: New file.
41744         * modules/unictype/category-Nd-tests: New file.
41745         * modules/unictype/category-Nl-tests: New file.
41746         * modules/unictype/category-No-tests: New file.
41747         * modules/unictype/category-P-tests: New file.
41748         * modules/unictype/category-Pc-tests: New file.
41749         * modules/unictype/category-Pd-tests: New file.
41750         * modules/unictype/category-Pe-tests: New file.
41751         * modules/unictype/category-Pf-tests: New file.
41752         * modules/unictype/category-Pi-tests: New file.
41753         * modules/unictype/category-Po-tests: New file.
41754         * modules/unictype/category-Ps-tests: New file.
41755         * modules/unictype/category-S-tests: New file.
41756         * modules/unictype/category-Sc-tests: New file.
41757         * modules/unictype/category-Sk-tests: New file.
41758         * modules/unictype/category-Sm-tests: New file.
41759         * modules/unictype/category-So-tests: New file.
41760         * modules/unictype/category-Z-tests: New file.
41761         * modules/unictype/category-Zl-tests: New file.
41762         * modules/unictype/category-Zp-tests: New file.
41763         * modules/unictype/category-Zs-tests: New file.
41764         * modules/unictype/category-and-not-tests: New file.
41765         * modules/unictype/category-and-tests: New file.
41766         * modules/unictype/category-byname-tests: New file.
41767         * modules/unictype/category-name-tests: New file.
41768         * modules/unictype/category-none-tests: New file.
41769         * modules/unictype/category-of-tests: New file.
41770         * modules/unictype/category-or-tests: New file.
41771         * modules/unictype/category-test-withtable-tests: New file.
41772         * modules/unictype/combining-class-tests: New file.
41773         * modules/unictype/ctype-alnum-tests: New file.
41774         * modules/unictype/ctype-alpha-tests: New file.
41775         * modules/unictype/ctype-blank-tests: New file.
41776         * modules/unictype/ctype-cntrl-tests: New file.
41777         * modules/unictype/ctype-digit-tests: New file.
41778         * modules/unictype/ctype-graph-tests: New file.
41779         * modules/unictype/ctype-lower-tests: New file.
41780         * modules/unictype/ctype-print-tests: New file.
41781         * modules/unictype/ctype-punct-tests: New file.
41782         * modules/unictype/ctype-space-tests: New file.
41783         * modules/unictype/ctype-upper-tests: New file.
41784         * modules/unictype/ctype-xdigit-tests: New file.
41785         * modules/unictype/decimal-digit-tests: New file.
41786         * modules/unictype/digit-tests: New file.
41787         * modules/unictype/mirror-tests: New file.
41788         * modules/unictype/numeric-tests: New file.
41789         * modules/unictype/property-alphabetic-tests: New file.
41790         * modules/unictype/property-ascii-hex-digit-tests: New file.
41791         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41792         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41793         * modules/unictype/property-bidi-block-separator-tests: New file.
41794         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41795         * modules/unictype/property-bidi-common-separator-tests: New file.
41796         * modules/unictype/property-bidi-control-tests: New file.
41797         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41798         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41799         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41800         * modules/unictype/property-bidi-european-digit-tests: New file.
41801         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41802         * modules/unictype/property-bidi-left-to-right-tests: New file.
41803         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41804         * modules/unictype/property-bidi-other-neutral-tests: New file.
41805         * modules/unictype/property-bidi-pdf-tests: New file.
41806         * modules/unictype/property-bidi-segment-separator-tests: New file.
41807         * modules/unictype/property-bidi-whitespace-tests: New file.
41808         * modules/unictype/property-byname-tests: New file.
41809         * modules/unictype/property-combining-tests: New file.
41810         * modules/unictype/property-composite-tests: New file.
41811         * modules/unictype/property-currency-symbol-tests: New file.
41812         * modules/unictype/property-dash-tests: New file.
41813         * modules/unictype/property-decimal-digit-tests: New file.
41814         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41815         * modules/unictype/property-deprecated-tests: New file.
41816         * modules/unictype/property-diacritic-tests: New file.
41817         * modules/unictype/property-extender-tests: New file.
41818         * modules/unictype/property-format-control-tests: New file.
41819         * modules/unictype/property-grapheme-base-tests: New file.
41820         * modules/unictype/property-grapheme-extend-tests: New file.
41821         * modules/unictype/property-grapheme-link-tests: New file.
41822         * modules/unictype/property-hex-digit-tests: New file.
41823         * modules/unictype/property-hyphen-tests: New file.
41824         * modules/unictype/property-id-continue-tests: New file.
41825         * modules/unictype/property-id-start-tests: New file.
41826         * modules/unictype/property-ideographic-tests: New file.
41827         * modules/unictype/property-ids-binary-operator-tests: New file.
41828         * modules/unictype/property-ids-trinary-operator-tests: New file.
41829         * modules/unictype/property-ignorable-control-tests: New file.
41830         * modules/unictype/property-iso-control-tests: New file.
41831         * modules/unictype/property-join-control-tests: New file.
41832         * modules/unictype/property-left-of-pair-tests: New file.
41833         * modules/unictype/property-line-separator-tests: New file.
41834         * modules/unictype/property-logical-order-exception-tests: New file.
41835         * modules/unictype/property-lowercase-tests: New file.
41836         * modules/unictype/property-math-tests: New file.
41837         * modules/unictype/property-non-break-tests: New file.
41838         * modules/unictype/property-not-a-character-tests: New file.
41839         * modules/unictype/property-numeric-tests: New file.
41840         * modules/unictype/property-other-alphabetic-tests: New file.
41841         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41842         * modules/unictype/property-other-grapheme-extend-tests: New file.
41843         * modules/unictype/property-other-id-continue-tests: New file.
41844         * modules/unictype/property-other-id-start-tests: New file.
41845         * modules/unictype/property-other-lowercase-tests: New file.
41846         * modules/unictype/property-other-math-tests: New file.
41847         * modules/unictype/property-other-uppercase-tests: New file.
41848         * modules/unictype/property-paired-punctuation-tests: New file.
41849         * modules/unictype/property-paragraph-separator-tests: New file.
41850         * modules/unictype/property-pattern-syntax-tests: New file.
41851         * modules/unictype/property-pattern-white-space-tests: New file.
41852         * modules/unictype/property-private-use-tests: New file.
41853         * modules/unictype/property-punctuation-tests: New file.
41854         * modules/unictype/property-quotation-mark-tests: New file.
41855         * modules/unictype/property-radical-tests: New file.
41856         * modules/unictype/property-sentence-terminal-tests: New file.
41857         * modules/unictype/property-soft-dotted-tests: New file.
41858         * modules/unictype/property-space-tests: New file.
41859         * modules/unictype/property-terminal-punctuation-tests: New file.
41860         * modules/unictype/property-test-tests: New file.
41861         * modules/unictype/property-titlecase-tests: New file.
41862         * modules/unictype/property-unassigned-code-value-tests: New file.
41863         * modules/unictype/property-unified-ideograph-tests: New file.
41864         * modules/unictype/property-uppercase-tests: New file.
41865         * modules/unictype/property-variation-selector-tests: New file.
41866         * modules/unictype/property-white-space-tests: New file.
41867         * modules/unictype/property-xid-continue-tests: New file.
41868         * modules/unictype/property-xid-start-tests: New file.
41869         * modules/unictype/property-zero-width-tests: New file.
41870         * modules/unictype/scripts-tests: New file.
41871         * modules/unictype/syntax-c-ident-tests: New file.
41872         * modules/unictype/syntax-c-whitespace-tests: New file.
41873         * modules/unictype/syntax-java-ident-tests: New file.
41874         * modules/unictype/syntax-java-whitespace-tests: New file.
41875         * tests/unictype/test-bidi_byname.c: New file.
41876         * tests/unictype/test-bidi_name.c: New file.
41877         * tests/unictype/test-bidi_of.c: New file.
41878         * tests/unictype/test-bidi_test.c: New file.
41879         * tests/unictype/test-block_list.c: New file.
41880         * tests/unictype/test-block_of.c: New file.
41881         * tests/unictype/test-block_test.c: New file.
41882         * tests/unictype/test-categ_and.c: New file.
41883         * tests/unictype/test-categ_and_not.c: New file.
41884         * tests/unictype/test-categ_byname.c: New file.
41885         * tests/unictype/test-categ_name.c: New file.
41886         * tests/unictype/test-categ_none.c: New file.
41887         * tests/unictype/test-categ_of.c: New file.
41888         * tests/unictype/test-categ_or.c: New file.
41889         * tests/unictype/test-categ_test_withtable.c: New file.
41890         * tests/unictype/test-combining.c: New file.
41891         * tests/unictype/test-decdigit.c: New file.
41892         * tests/unictype/test-digit.c: New file.
41893         * tests/unictype/test-mirror.c: New file.
41894         * tests/unictype/test-numeric.c: New file.
41895         * tests/unictype/test-pr_byname.c: New file.
41896         * tests/unictype/test-pr_test.c: New file.
41897         * tests/unictype/test-predicate-part1.h: New file.
41898         * tests/unictype/test-predicate-part2.h: New file.
41899         * tests/unictype/test-scripts.c: New file.
41900         * tests/unictype/test-sy_c_ident.c: New file.
41901         * tests/unictype/test-sy_java_ident.c: New file.
41902
41903         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41904         for Unicode 5.0.0.
41905         * tests/unictype/test-categ_Cc.c: Likewise.
41906         * tests/unictype/test-categ_Cf.c: Likewise.
41907         * tests/unictype/test-categ_Cn.c: Likewise.
41908         * tests/unictype/test-categ_Co.c: Likewise.
41909         * tests/unictype/test-categ_Cs.c: Likewise.
41910         * tests/unictype/test-categ_L.c: Likewise.
41911         * tests/unictype/test-categ_Ll.c: Likewise.
41912         * tests/unictype/test-categ_Lm.c: Likewise.
41913         * tests/unictype/test-categ_Lo.c: Likewise.
41914         * tests/unictype/test-categ_Lt.c: Likewise.
41915         * tests/unictype/test-categ_Lu.c: Likewise.
41916         * tests/unictype/test-categ_M.c: Likewise.
41917         * tests/unictype/test-categ_Mc.c: Likewise.
41918         * tests/unictype/test-categ_Me.c: Likewise.
41919         * tests/unictype/test-categ_Mn.c: Likewise.
41920         * tests/unictype/test-categ_N.c: Likewise.
41921         * tests/unictype/test-categ_Nd.c: Likewise.
41922         * tests/unictype/test-categ_Nl.c: Likewise.
41923         * tests/unictype/test-categ_No.c: Likewise.
41924         * tests/unictype/test-categ_P.c: Likewise.
41925         * tests/unictype/test-categ_Pc.c: Likewise.
41926         * tests/unictype/test-categ_Pd.c: Likewise.
41927         * tests/unictype/test-categ_Pe.c: Likewise.
41928         * tests/unictype/test-categ_Pf.c: Likewise.
41929         * tests/unictype/test-categ_Pi.c: Likewise.
41930         * tests/unictype/test-categ_Po.c: Likewise.
41931         * tests/unictype/test-categ_Ps.c: Likewise.
41932         * tests/unictype/test-categ_S.c: Likewise.
41933         * tests/unictype/test-categ_Sc.c: Likewise.
41934         * tests/unictype/test-categ_Sk.c: Likewise.
41935         * tests/unictype/test-categ_Sm.c: Likewise.
41936         * tests/unictype/test-categ_So.c: Likewise.
41937         * tests/unictype/test-categ_Z.c: Likewise.
41938         * tests/unictype/test-categ_Zl.c: Likewise.
41939         * tests/unictype/test-categ_Zp.c: Likewise.
41940         * tests/unictype/test-categ_Zs.c: Likewise.
41941         * tests/unictype/test-ctype_alnum.c: Likewise.
41942         * tests/unictype/test-ctype_alpha.c: Likewise.
41943         * tests/unictype/test-ctype_blank.c: Likewise.
41944         * tests/unictype/test-ctype_cntrl.c: Likewise.
41945         * tests/unictype/test-ctype_digit.c: Likewise.
41946         * tests/unictype/test-ctype_graph.c: Likewise.
41947         * tests/unictype/test-ctype_lower.c: Likewise.
41948         * tests/unictype/test-ctype_print.c: Likewise.
41949         * tests/unictype/test-ctype_punct.c: Likewise.
41950         * tests/unictype/test-ctype_space.c: Likewise.
41951         * tests/unictype/test-ctype_upper.c: Likewise.
41952         * tests/unictype/test-ctype_xdigit.c: Likewise.
41953         * tests/unictype/test-decdigit.h: Likewise.
41954         * tests/unictype/test-digit.h: Likewise.
41955         * tests/unictype/test-numeric.h: Likewise.
41956         * tests/unictype/test-pr_alphabetic.c: Likewise.
41957         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41958         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41959         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41960         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41961         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41962         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41963         * tests/unictype/test-pr_bidi_control.c: Likewise.
41964         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41965         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41966         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41967         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41968         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41969         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41970         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41971         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41972         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41973         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41974         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41975         * tests/unictype/test-pr_combining.c: Likewise.
41976         * tests/unictype/test-pr_composite.c: Likewise.
41977         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41978         * tests/unictype/test-pr_dash.c: Likewise.
41979         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41980         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41981         * tests/unictype/test-pr_deprecated.c: Likewise.
41982         * tests/unictype/test-pr_diacritic.c: Likewise.
41983         * tests/unictype/test-pr_extender.c: Likewise.
41984         * tests/unictype/test-pr_format_control.c: Likewise.
41985         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41986         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41987         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41988         * tests/unictype/test-pr_hex_digit.c: Likewise.
41989         * tests/unictype/test-pr_hyphen.c: Likewise.
41990         * tests/unictype/test-pr_id_continue.c: Likewise.
41991         * tests/unictype/test-pr_id_start.c: Likewise.
41992         * tests/unictype/test-pr_ideographic.c: Likewise.
41993         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41994         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41995         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41996         * tests/unictype/test-pr_iso_control.c: Likewise.
41997         * tests/unictype/test-pr_join_control.c: Likewise.
41998         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41999         * tests/unictype/test-pr_line_separator.c: Likewise.
42000         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42001         * tests/unictype/test-pr_lowercase.c: Likewise.
42002         * tests/unictype/test-pr_math.c: Likewise.
42003         * tests/unictype/test-pr_non_break.c: Likewise.
42004         * tests/unictype/test-pr_not_a_character.c: Likewise.
42005         * tests/unictype/test-pr_numeric.c: Likewise.
42006         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42007         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42008         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42009         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42010         * tests/unictype/test-pr_other_id_start.c: Likewise.
42011         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42012         * tests/unictype/test-pr_other_math.c: Likewise.
42013         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42014         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42015         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42016         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42017         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42018         * tests/unictype/test-pr_private_use.c: Likewise.
42019         * tests/unictype/test-pr_punctuation.c: Likewise.
42020         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42021         * tests/unictype/test-pr_radical.c: Likewise.
42022         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42023         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42024         * tests/unictype/test-pr_space.c: Likewise.
42025         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42026         * tests/unictype/test-pr_titlecase.c: Likewise.
42027         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42028         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42029         * tests/unictype/test-pr_uppercase.c: Likewise.
42030         * tests/unictype/test-pr_variation_selector.c: Likewise.
42031         * tests/unictype/test-pr_white_space.c: Likewise.
42032         * tests/unictype/test-pr_xid_continue.c: Likewise.
42033         * tests/unictype/test-pr_xid_start.c: Likewise.
42034         * tests/unictype/test-pr_zero_width.c: Likewise.
42035         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42036         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42037
42038 2007-11-12  Bruno Haible  <bruno@clisp.org>
42039
42040         Unicode character classification functions.
42041         * lib/unictype.h: New file.
42042         * modules/unictype/base: New file.
42043         * modules/unictype/category-L: New file.
42044         * modules/unictype/category-Lu: New file.
42045         * modules/unictype/category-Ll: New file.
42046         * modules/unictype/category-Lt: New file.
42047         * modules/unictype/category-Lm: New file.
42048         * modules/unictype/category-Lo: New file.
42049         * modules/unictype/category-M: New file.
42050         * modules/unictype/category-Mn: New file.
42051         * modules/unictype/category-Mc: New file.
42052         * modules/unictype/category-Me: New file.
42053         * modules/unictype/category-N: New file.
42054         * modules/unictype/category-Nd: New file.
42055         * modules/unictype/category-Nl: New file.
42056         * modules/unictype/category-No: New file.
42057         * modules/unictype/category-P: New file.
42058         * modules/unictype/category-Pc: New file.
42059         * modules/unictype/category-Pd: New file.
42060         * modules/unictype/category-Ps: New file.
42061         * modules/unictype/category-Pe: New file.
42062         * modules/unictype/category-Pi: New file.
42063         * modules/unictype/category-Pf: New file.
42064         * modules/unictype/category-Po: New file.
42065         * modules/unictype/category-S: New file.
42066         * modules/unictype/category-Sm: New file.
42067         * modules/unictype/category-Sc: New file.
42068         * modules/unictype/category-Sk: New file.
42069         * modules/unictype/category-So: New file.
42070         * modules/unictype/category-Z: New file.
42071         * modules/unictype/category-Zs: New file.
42072         * modules/unictype/category-Zl: New file.
42073         * modules/unictype/category-Zp: New file.
42074         * modules/unictype/category-C: New file.
42075         * modules/unictype/category-Cc: New file.
42076         * modules/unictype/category-Cf: New file.
42077         * modules/unictype/category-Cs: New file.
42078         * modules/unictype/category-Co: New file.
42079         * modules/unictype/category-Cn: New file.
42080         * modules/unictype/category-or: New file.
42081         * modules/unictype/category-of: New file.
42082         * modules/unictype/category-test: New file.
42083         * modules/unictype/category-test-withtable: New file.
42084         * modules/unictype/category-byname: New file.
42085         * modules/unictype/category-none: New file.
42086         * modules/unictype/category-and: New file.
42087         * modules/unictype/category-and-not: New file.
42088         * modules/unictype/category-name: New file.
42089         * modules/unictype/combining-class: New file.
42090         * modules/unictype/category-all: New file.
42091         * modules/unictype/bidicategory-all: New file.
42092         * modules/unictype/bidicategory-byname: New file.
42093         * modules/unictype/bidicategory-name: New file.
42094         * modules/unictype/bidicategory-of: New file.
42095         * modules/unictype/bidicategory-test: New file.
42096         * modules/unictype/decimal-digit: New file.
42097         * modules/unictype/digit: New file.
42098         * modules/unictype/numeric: New file.
42099         * modules/unictype/mirror: New file.
42100         * modules/unictype/property-white-space: New file.
42101         * modules/unictype/property-alphabetic: New file.
42102         * modules/unictype/property-other-alphabetic: New file.
42103         * modules/unictype/property-not-a-character: New file.
42104         * modules/unictype/property-default-ignorable-code-point: New file.
42105         * modules/unictype/property-other-default-ignorable-code-point: New
42106         file.
42107         * modules/unictype/property-deprecated: New file.
42108         * modules/unictype/property-logical-order-exception: New file.
42109         * modules/unictype/property-variation-selector: New file.
42110         * modules/unictype/property-private-use: New file.
42111         * modules/unictype/property-unassigned-code-value: New file.
42112         * modules/unictype/property-uppercase: New file.
42113         * modules/unictype/property-other-uppercase: New file.
42114         * modules/unictype/property-lowercase: New file.
42115         * modules/unictype/property-other-lowercase: New file.
42116         * modules/unictype/property-titlecase: New file.
42117         * modules/unictype/property-soft-dotted: New file.
42118         * modules/unictype/property-id-start: New file.
42119         * modules/unictype/property-other-id-start: New file.
42120         * modules/unictype/property-id-continue: New file.
42121         * modules/unictype/property-other-id-continue: New file.
42122         * modules/unictype/property-xid-start: New file.
42123         * modules/unictype/property-xid-continue: New file.
42124         * modules/unictype/property-pattern-white-space: New file.
42125         * modules/unictype/property-pattern-syntax: New file.
42126         * modules/unictype/property-join-control: New file.
42127         * modules/unictype/property-grapheme-base: New file.
42128         * modules/unictype/property-grapheme-extend: New file.
42129         * modules/unictype/property-other-grapheme-extend: New file.
42130         * modules/unictype/property-grapheme-link: New file.
42131         * modules/unictype/property-bidi-control: New file.
42132         * modules/unictype/property-bidi-left-to-right: New file.
42133         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42134         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42135         * modules/unictype/property-bidi-european-digit: New file.
42136         * modules/unictype/property-bidi-eur-num-separator: New file.
42137         * modules/unictype/property-bidi-eur-num-terminator: New file.
42138         * modules/unictype/property-bidi-arabic-digit: New file.
42139         * modules/unictype/property-bidi-common-separator: New file.
42140         * modules/unictype/property-bidi-block-separator: New file.
42141         * modules/unictype/property-bidi-segment-separator: New file.
42142         * modules/unictype/property-bidi-whitespace: New file.
42143         * modules/unictype/property-bidi-non-spacing-mark: New file.
42144         * modules/unictype/property-bidi-boundary-neutral: New file.
42145         * modules/unictype/property-bidi-pdf: New file.
42146         * modules/unictype/property-bidi-embedding-or-override: New file.
42147         * modules/unictype/property-bidi-other-neutral: New file.
42148         * modules/unictype/property-hex-digit: New file.
42149         * modules/unictype/property-ascii-hex-digit: New file.
42150         * modules/unictype/property-ideographic: New file.
42151         * modules/unictype/property-unified-ideograph: New file.
42152         * modules/unictype/property-radical: New file.
42153         * modules/unictype/property-ids-binary-operator: New file.
42154         * modules/unictype/property-ids-trinary-operator: New file.
42155         * modules/unictype/property-zero-width: New file.
42156         * modules/unictype/property-space: New file.
42157         * modules/unictype/property-non-break: New file.
42158         * modules/unictype/property-iso-control: New file.
42159         * modules/unictype/property-format-control: New file.
42160         * modules/unictype/property-dash: New file.
42161         * modules/unictype/property-hyphen: New file.
42162         * modules/unictype/property-punctuation: New file.
42163         * modules/unictype/property-line-separator: New file.
42164         * modules/unictype/property-paragraph-separator: New file.
42165         * modules/unictype/property-quotation-mark: New file.
42166         * modules/unictype/property-sentence-terminal: New file.
42167         * modules/unictype/property-terminal-punctuation: New file.
42168         * modules/unictype/property-currency-symbol: New file.
42169         * modules/unictype/property-math: New file.
42170         * modules/unictype/property-other-math: New file.
42171         * modules/unictype/property-paired-punctuation: New file.
42172         * modules/unictype/property-left-of-pair: New file.
42173         * modules/unictype/property-combining: New file.
42174         * modules/unictype/property-composite: New file.
42175         * modules/unictype/property-decimal-digit: New file.
42176         * modules/unictype/property-numeric: New file.
42177         * modules/unictype/property-diacritic: New file.
42178         * modules/unictype/property-extender: New file.
42179         * modules/unictype/property-ignorable-control: New file.
42180         * modules/unictype/property-test: New file.
42181         * modules/unictype/property-byname: New file.
42182         * modules/unictype/property-all: New file.
42183         * modules/unictype/scripts: New file.
42184         * modules/unictype/scripts-all: New file.
42185         * modules/unictype/block-of: New file.
42186         * modules/unictype/block-test: New file.
42187         * modules/unictype/block-list: New file.
42188         * modules/unictype/block-all: New file.
42189         * modules/unictype/syntax-c-whitespace: New file.
42190         * modules/unictype/syntax-java-whitespace: New file.
42191         * modules/unictype/syntax-c-ident: New file.
42192         * modules/unictype/syntax-java-ident: New file.
42193         * modules/unictype/ctype-alnum: New file.
42194         * modules/unictype/ctype-alpha: New file.
42195         * modules/unictype/ctype-cntrl: New file.
42196         * modules/unictype/ctype-digit: New file.
42197         * modules/unictype/ctype-graph: New file.
42198         * modules/unictype/ctype-lower: New file.
42199         * modules/unictype/ctype-print: New file.
42200         * modules/unictype/ctype-punct: New file.
42201         * modules/unictype/ctype-space: New file.
42202         * modules/unictype/ctype-upper: New file.
42203         * modules/unictype/ctype-xdigit: New file.
42204         * modules/unictype/ctype-blank: New file.
42205         * lib/unictype/bidi_byname.c: New file.
42206         * lib/unictype/bidi_name.c: New file.
42207         * lib/unictype/bidi_of.c: New file.
42208         * lib/unictype/bidi_test.c: New file.
42209         * lib/unictype/bitmap.h: New file.
42210         * lib/unictype/block_test.c: New file.
42211         * lib/unictype/blocks.c: New file.
42212         * lib/unictype/categ_C.c: New file.
42213         * lib/unictype/categ_Cc.c: New file.
42214         * lib/unictype/categ_Cf.c: New file.
42215         * lib/unictype/categ_Cn.c: New file.
42216         * lib/unictype/categ_Co.c: New file.
42217         * lib/unictype/categ_Cs.c: New file.
42218         * lib/unictype/categ_L.c: New file.
42219         * lib/unictype/categ_Ll.c: New file.
42220         * lib/unictype/categ_Lm.c: New file.
42221         * lib/unictype/categ_Lo.c: New file.
42222         * lib/unictype/categ_Lt.c: New file.
42223         * lib/unictype/categ_Lu.c: New file.
42224         * lib/unictype/categ_M.c: New file.
42225         * lib/unictype/categ_Mc.c: New file.
42226         * lib/unictype/categ_Me.c: New file.
42227         * lib/unictype/categ_Mn.c: New file.
42228         * lib/unictype/categ_N.c: New file.
42229         * lib/unictype/categ_Nd.c: New file.
42230         * lib/unictype/categ_Nl.c: New file.
42231         * lib/unictype/categ_No.c: New file.
42232         * lib/unictype/categ_P.c: New file.
42233         * lib/unictype/categ_Pc.c: New file.
42234         * lib/unictype/categ_Pd.c: New file.
42235         * lib/unictype/categ_Pe.c: New file.
42236         * lib/unictype/categ_Pf.c: New file.
42237         * lib/unictype/categ_Pi.c: New file.
42238         * lib/unictype/categ_Po.c: New file.
42239         * lib/unictype/categ_Ps.c: New file.
42240         * lib/unictype/categ_S.c: New file.
42241         * lib/unictype/categ_Sc.c: New file.
42242         * lib/unictype/categ_Sk.c: New file.
42243         * lib/unictype/categ_Sm.c: New file.
42244         * lib/unictype/categ_So.c: New file.
42245         * lib/unictype/categ_Z.c: New file.
42246         * lib/unictype/categ_Zl.c: New file.
42247         * lib/unictype/categ_Zp.c: New file.
42248         * lib/unictype/categ_Zs.c: New file.
42249         * lib/unictype/categ_and.c: New file.
42250         * lib/unictype/categ_and_not.c: New file.
42251         * lib/unictype/categ_byname.c: New file.
42252         * lib/unictype/categ_name.c: New file.
42253         * lib/unictype/categ_none.c: New file.
42254         * lib/unictype/categ_of.c: New file.
42255         * lib/unictype/categ_or.c: New file.
42256         * lib/unictype/categ_test.c: New file.
42257         * lib/unictype/combining.c: New file.
42258         * lib/unictype/ctype_alnum.c: New file.
42259         * lib/unictype/ctype_alpha.c: New file.
42260         * lib/unictype/ctype_blank.c: New file.
42261         * lib/unictype/ctype_cntrl.c: New file.
42262         * lib/unictype/ctype_digit.c: New file.
42263         * lib/unictype/ctype_graph.c: New file.
42264         * lib/unictype/ctype_lower.c: New file.
42265         * lib/unictype/ctype_print.c: New file.
42266         * lib/unictype/ctype_punct.c: New file.
42267         * lib/unictype/ctype_space.c: New file.
42268         * lib/unictype/ctype_upper.c: New file.
42269         * lib/unictype/ctype_xdigit.c: New file.
42270         * lib/unictype/decdigit.c: New file.
42271         * lib/unictype/digit.c: New file.
42272         * lib/unictype/identsyntaxmap.h: New file.
42273         * lib/unictype/mirror.c: New file.
42274         * lib/unictype/numeric.c: New file.
42275         * lib/unictype/pr_alphabetic.c: New file.
42276         * lib/unictype/pr_ascii_hex_digit.c: New file.
42277         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42278         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42279         * lib/unictype/pr_bidi_block_separator.c: New file.
42280         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42281         * lib/unictype/pr_bidi_common_separator.c: New file.
42282         * lib/unictype/pr_bidi_control.c: New file.
42283         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42284         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42285         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42286         * lib/unictype/pr_bidi_european_digit.c: New file.
42287         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42288         * lib/unictype/pr_bidi_left_to_right.c: New file.
42289         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42290         * lib/unictype/pr_bidi_other_neutral.c: New file.
42291         * lib/unictype/pr_bidi_pdf.c: New file.
42292         * lib/unictype/pr_bidi_segment_separator.c: New file.
42293         * lib/unictype/pr_bidi_whitespace.c: New file.
42294         * lib/unictype/pr_byname.c: New file.
42295         * lib/unictype/pr_byname.gperf: New file.
42296         * lib/unictype/pr_combining.c: New file.
42297         * lib/unictype/pr_composite.c: New file.
42298         * lib/unictype/pr_currency_symbol.c: New file.
42299         * lib/unictype/pr_dash.c: New file.
42300         * lib/unictype/pr_decimal_digit.c: New file.
42301         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42302         * lib/unictype/pr_deprecated.c: New file.
42303         * lib/unictype/pr_diacritic.c: New file.
42304         * lib/unictype/pr_extender.c: New file.
42305         * lib/unictype/pr_format_control.c: New file.
42306         * lib/unictype/pr_grapheme_base.c: New file.
42307         * lib/unictype/pr_grapheme_extend.c: New file.
42308         * lib/unictype/pr_grapheme_link.c: New file.
42309         * lib/unictype/pr_hex_digit.c: New file.
42310         * lib/unictype/pr_hyphen.c: New file.
42311         * lib/unictype/pr_id_continue.c: New file.
42312         * lib/unictype/pr_id_start.c: New file.
42313         * lib/unictype/pr_ideographic.c: New file.
42314         * lib/unictype/pr_ids_binary_operator.c: New file.
42315         * lib/unictype/pr_ids_trinary_operator.c: New file.
42316         * lib/unictype/pr_ignorable_control.c: New file.
42317         * lib/unictype/pr_iso_control.c: New file.
42318         * lib/unictype/pr_join_control.c: New file.
42319         * lib/unictype/pr_left_of_pair.c: New file.
42320         * lib/unictype/pr_line_separator.c: New file.
42321         * lib/unictype/pr_logical_order_exception.c: New file.
42322         * lib/unictype/pr_lowercase.c: New file.
42323         * lib/unictype/pr_math.c: New file.
42324         * lib/unictype/pr_non_break.c: New file.
42325         * lib/unictype/pr_not_a_character.c: New file.
42326         * lib/unictype/pr_numeric.c: New file.
42327         * lib/unictype/pr_other_alphabetic.c: New file.
42328         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42329         * lib/unictype/pr_other_grapheme_extend.c: New file.
42330         * lib/unictype/pr_other_id_continue.c: New file.
42331         * lib/unictype/pr_other_id_start.c: New file.
42332         * lib/unictype/pr_other_lowercase.c: New file.
42333         * lib/unictype/pr_other_math.c: New file.
42334         * lib/unictype/pr_other_uppercase.c: New file.
42335         * lib/unictype/pr_paired_punctuation.c: New file.
42336         * lib/unictype/pr_paragraph_separator.c: New file.
42337         * lib/unictype/pr_pattern_syntax.c: New file.
42338         * lib/unictype/pr_pattern_white_space.c: New file.
42339         * lib/unictype/pr_private_use.c: New file.
42340         * lib/unictype/pr_punctuation.c: New file.
42341         * lib/unictype/pr_quotation_mark.c: New file.
42342         * lib/unictype/pr_radical.c: New file.
42343         * lib/unictype/pr_sentence_terminal.c: New file.
42344         * lib/unictype/pr_soft_dotted.c: New file.
42345         * lib/unictype/pr_space.c: New file.
42346         * lib/unictype/pr_terminal_punctuation.c: New file.
42347         * lib/unictype/pr_test.c: New file.
42348         * lib/unictype/pr_titlecase.c: New file.
42349         * lib/unictype/pr_unassigned_code_value.c: New file.
42350         * lib/unictype/pr_unified_ideograph.c: New file.
42351         * lib/unictype/pr_uppercase.c: New file.
42352         * lib/unictype/pr_variation_selector.c: New file.
42353         * lib/unictype/pr_white_space.c: New file.
42354         * lib/unictype/pr_xid_continue.c: New file.
42355         * lib/unictype/pr_xid_start.c: New file.
42356         * lib/unictype/pr_zero_width.c: New file.
42357         * lib/unictype/scripts.c: New file.
42358         * lib/unictype/sy_c_ident.c: New file.
42359         * lib/unictype/sy_c_whitespace.c: New file.
42360         * lib/unictype/sy_java_ident.c: New file.
42361         * lib/unictype/sy_java_whitespace.c: New file.
42362
42363         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42364         Unicode 5.0.0.
42365         * lib/unictype/blocks.h: Likewise.
42366         * lib/unictype/categ_C.h: Likewise.
42367         * lib/unictype/categ_Cc.h: Likewise.
42368         * lib/unictype/categ_Cf.h: Likewise.
42369         * lib/unictype/categ_Cn.h: Likewise.
42370         * lib/unictype/categ_Co.h: Likewise.
42371         * lib/unictype/categ_Cs.h: Likewise.
42372         * lib/unictype/categ_L.h: Likewise.
42373         * lib/unictype/categ_Ll.h: Likewise.
42374         * lib/unictype/categ_Lm.h: Likewise.
42375         * lib/unictype/categ_Lo.h: Likewise.
42376         * lib/unictype/categ_Lt.h: Likewise.
42377         * lib/unictype/categ_Lu.h: Likewise.
42378         * lib/unictype/categ_M.h: Likewise.
42379         * lib/unictype/categ_Mc.h: Likewise.
42380         * lib/unictype/categ_Me.h: Likewise.
42381         * lib/unictype/categ_Mn.h: Likewise.
42382         * lib/unictype/categ_N.h: Likewise.
42383         * lib/unictype/categ_Nd.h: Likewise.
42384         * lib/unictype/categ_Nl.h: Likewise.
42385         * lib/unictype/categ_No.h: Likewise.
42386         * lib/unictype/categ_P.h: Likewise.
42387         * lib/unictype/categ_Pc.h: Likewise.
42388         * lib/unictype/categ_Pd.h: Likewise.
42389         * lib/unictype/categ_Pe.h: Likewise.
42390         * lib/unictype/categ_Pf.h: Likewise.
42391         * lib/unictype/categ_Pi.h: Likewise.
42392         * lib/unictype/categ_Po.h: Likewise.
42393         * lib/unictype/categ_Ps.h: Likewise.
42394         * lib/unictype/categ_S.h: Likewise.
42395         * lib/unictype/categ_Sc.h: Likewise.
42396         * lib/unictype/categ_Sk.h: Likewise.
42397         * lib/unictype/categ_Sm.h: Likewise.
42398         * lib/unictype/categ_So.h: Likewise.
42399         * lib/unictype/categ_Z.h: Likewise.
42400         * lib/unictype/categ_Zl.h: Likewise.
42401         * lib/unictype/categ_Zp.h: Likewise.
42402         * lib/unictype/categ_Zs.h: Likewise.
42403         * lib/unictype/categ_of.h: Likewise.
42404         * lib/unictype/combining.h: Likewise.
42405         * lib/unictype/ctype_alnum.h: Likewise.
42406         * lib/unictype/ctype_alpha.h: Likewise.
42407         * lib/unictype/ctype_blank.h: Likewise.
42408         * lib/unictype/ctype_cntrl.h: Likewise.
42409         * lib/unictype/ctype_digit.h: Likewise.
42410         * lib/unictype/ctype_graph.h: Likewise.
42411         * lib/unictype/ctype_lower.h: Likewise.
42412         * lib/unictype/ctype_print.h: Likewise.
42413         * lib/unictype/ctype_punct.h: Likewise.
42414         * lib/unictype/ctype_space.h: Likewise.
42415         * lib/unictype/ctype_upper.h: Likewise.
42416         * lib/unictype/ctype_xdigit.h: Likewise.
42417         * lib/unictype/decdigit.h: Likewise.
42418         * lib/unictype/digit.h: Likewise.
42419         * lib/unictype/mirror.h: Likewise.
42420         * lib/unictype/numeric.h: Likewise.
42421         * lib/unictype/pr_alphabetic.h: Likewise.
42422         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42423         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42424         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42425         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42426         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42427         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42428         * lib/unictype/pr_bidi_control.h: Likewise.
42429         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42430         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42431         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42432         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42433         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42434         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42435         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42436         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42437         * lib/unictype/pr_bidi_pdf.h: Likewise.
42438         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42439         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42440         * lib/unictype/pr_combining.h: Likewise.
42441         * lib/unictype/pr_composite.h: Likewise.
42442         * lib/unictype/pr_currency_symbol.h: Likewise.
42443         * lib/unictype/pr_dash.h: Likewise.
42444         * lib/unictype/pr_decimal_digit.h: Likewise.
42445         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42446         * lib/unictype/pr_deprecated.h: Likewise.
42447         * lib/unictype/pr_diacritic.h: Likewise.
42448         * lib/unictype/pr_extender.h: Likewise.
42449         * lib/unictype/pr_format_control.h: Likewise.
42450         * lib/unictype/pr_grapheme_base.h: Likewise.
42451         * lib/unictype/pr_grapheme_extend.h: Likewise.
42452         * lib/unictype/pr_grapheme_link.h: Likewise.
42453         * lib/unictype/pr_hex_digit.h: Likewise.
42454         * lib/unictype/pr_hyphen.h: Likewise.
42455         * lib/unictype/pr_id_continue.h: Likewise.
42456         * lib/unictype/pr_id_start.h: Likewise.
42457         * lib/unictype/pr_ideographic.h: Likewise.
42458         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42459         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42460         * lib/unictype/pr_ignorable_control.h: Likewise.
42461         * lib/unictype/pr_iso_control.h: Likewise.
42462         * lib/unictype/pr_join_control.h: Likewise.
42463         * lib/unictype/pr_left_of_pair.h: Likewise.
42464         * lib/unictype/pr_line_separator.h: Likewise.
42465         * lib/unictype/pr_logical_order_exception.h: Likewise.
42466         * lib/unictype/pr_lowercase.h: Likewise.
42467         * lib/unictype/pr_math.h: Likewise.
42468         * lib/unictype/pr_non_break.h: Likewise.
42469         * lib/unictype/pr_not_a_character.h: Likewise.
42470         * lib/unictype/pr_numeric.h: Likewise.
42471         * lib/unictype/pr_other_alphabetic.h: Likewise.
42472         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42473         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42474         * lib/unictype/pr_other_id_continue.h: Likewise.
42475         * lib/unictype/pr_other_id_start.h: Likewise.
42476         * lib/unictype/pr_other_lowercase.h: Likewise.
42477         * lib/unictype/pr_other_math.h: Likewise.
42478         * lib/unictype/pr_other_uppercase.h: Likewise.
42479         * lib/unictype/pr_paired_punctuation.h: Likewise.
42480         * lib/unictype/pr_paragraph_separator.h: Likewise.
42481         * lib/unictype/pr_pattern_syntax.h: Likewise.
42482         * lib/unictype/pr_pattern_white_space.h: Likewise.
42483         * lib/unictype/pr_private_use.h: Likewise.
42484         * lib/unictype/pr_punctuation.h: Likewise.
42485         * lib/unictype/pr_quotation_mark.h: Likewise.
42486         * lib/unictype/pr_radical.h: Likewise.
42487         * lib/unictype/pr_sentence_terminal.h: Likewise.
42488         * lib/unictype/pr_soft_dotted.h: Likewise.
42489         * lib/unictype/pr_space.h: Likewise.
42490         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42491         * lib/unictype/pr_titlecase.h: Likewise.
42492         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42493         * lib/unictype/pr_unified_ideograph.h: Likewise.
42494         * lib/unictype/pr_uppercase.h: Likewise.
42495         * lib/unictype/pr_variation_selector.h: Likewise.
42496         * lib/unictype/pr_white_space.h: Likewise.
42497         * lib/unictype/pr_xid_continue.h: Likewise.
42498         * lib/unictype/pr_xid_start.h: Likewise.
42499         * lib/unictype/pr_zero_width.h: Likewise.
42500         * lib/unictype/scripts.h: Likewise.
42501         * lib/unictype/scripts_byname.gperf: Likewise.
42502         * lib/unictype/sy_c_ident.h: Likewise.
42503         * lib/unictype/sy_c_whitespace.h: Likewise.
42504         * lib/unictype/sy_java_ident.h: Likewise.
42505         * lib/unictype/sy_java_whitespace.h: Likewise.
42506
42507         * lib/unictype/Makefile: New file.
42508         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42509         glibc.
42510         * lib/unictype/3level.h: New file, copied from glibc.
42511         * lib/unictype/3levelbit.h: New file.
42512
42513 2007-11-11  Bruno Haible  <bruno@clisp.org>
42514
42515         * modules/gperf: New file.
42516         * modules/iconv_open (Depends-on): Add it.
42517         (Makefile.am): Remove the GPERF definition.
42518
42519 2007-11-11  Bruno Haible  <bruno@clisp.org>
42520
42521         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42522         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42523
42524 2007-11-11  Bruno Haible  <bruno@clisp.org>
42525
42526         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42527         (usage): Remove function.
42528
42529 2007-11-11  Bruno Haible  <bruno@clisp.org>
42530
42531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42532         gl_FUNC_CEILF_LIBS.
42533         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42534         gl_FUNC_CEIL_LIBS.
42535         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42536         gl_FUNC_CEILL_LIBS.
42537         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42538         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42539         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42540
42541 2007-11-11  Bruno Haible  <bruno@clisp.org>
42542
42543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42544         roundf were declared but do not exist on functions.
42545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42546         roundl were declared but do not exist on functions.
42547         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42548         HAVE_FLOORL_AND_CEILL, respectively.
42549         Needed for Sun C on Solaris 10.
42550
42551 2007-11-11  Bruno Haible  <bruno@clisp.org>
42552
42553         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42554         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42555         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42556         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42557         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42558         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42559         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42560         HAVE_DECL_ROUNDF.
42561         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42562         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42564         of HAVE_DECL_ROUND*.
42565         * modules/math (Makefile.am): Update.
42566
42567 2007-11-10  Bruno Haible  <bruno@clisp.org>
42568
42569         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42570         ptrdiff_t as m4/intl.m4.
42571
42572 2007-11-10  Jim Meyering  <meyering@redhat.com>
42573
42574         Avoid link failure for the argmatch test.
42575         * tests/test-argmatch.c (usage): Define function to avoid a link
42576         failure: argmatch_die requires a usage function.
42577
42578 2007-11-09  Bruno Haible  <bruno@clisp.org>
42579
42580         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42581         * doc/functions/vsnprintf.texi: Likewise.
42582         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42583         with a size argument < 2.
42584
42585 2007-11-09  Bruno Haible  <bruno@clisp.org>
42586
42587         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42588         buffer. Fixes an inefficiency introduced on 2007-11-03.
42589
42590 2007-11-09  Bruno Haible  <bruno@clisp.org>
42591
42592         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42593         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42594
42595 2007-11-08  Jim Meyering  <meyering@redhat.com>
42596
42597         Change cache variable name prefix "jm_" to "gl_" everywhere.
42598         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42599         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42600         * m4/uptime.m4: s/gl_/jm_/
42601
42602 2007-11-07  Bruno Haible  <bruno@clisp.org>
42603
42604         Update to GNU gettext 0.17.
42605         * m4/intl.m4: Update to GNU gettext 0.17.
42606         * m4/po.m4: Likewise.
42607         * modules/gettext (Files): Remove m4/ulonglong.m4.
42608         (configure.ac): Require gettext infrastructure from version 0.17.
42609
42610 2007-11-06  Bruno Haible  <bruno@clisp.org>
42611
42612         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42613         symbolic values are not defined in a public header.
42614         * lib/freadable.c (freadable) [QNX]: Likewise.
42615         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42616         * lib/freading.c (freading) [QNX]: Likewise.
42617         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42618         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42619         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42620         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42621         Reported by Alain Magloire.
42622
42623         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42624
42625 2007-11-05  Bruno Haible  <bruno@clisp.org>
42626
42627         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42628         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42629         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42630         Reported by Eric Blake.
42631
42632 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42633             Bruno Haible  <bruno@clisp.org>
42634
42635         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42636         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42637         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42638         (malloc): Undefine also before including <stdlib.h>.
42639         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42640         Needed on OSF/1 4.0.
42641
42642 2007-11-05  Jim Meyering  <meyering@redhat.com>
42643
42644         git-version-gen: sync from coreutils.
42645         * build-aux/git-version-gen: Add comments.
42646         Change the first '-' to '.' in the snapshot version string,
42647         e.g., 6.9-377-08144 -> 6.9.377-08144
42648         Remove first parameter.
42649         Don't declare a version "-dirty" merely because a time
42650         stamp has changed.
42651
42652 2007-11-04  Bruno Haible  <bruno@clisp.org>
42653
42654         * lib/lock.h: Protect all macro definitions containing an 'if'
42655         statement through a "do { ... } while (0)".
42656         * lib/tls.h: Likewise.
42657
42658 2007-11-04  Bruno Haible  <bruno@clisp.org>
42659
42660         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42661
42662 2007-11-04  Bruno Haible  <bruno@clisp.org>
42663
42664         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42665         * modules/fprintf-posix (Depends-on): Add nocrash.
42666         * modules/snprintf-posix (Depends-on): Likewise.
42667         * modules/sprintf-posix (Depends-on): Likewise.
42668         * modules/vasnprintf-posix (Depends-on): Likewise.
42669         * modules/vasprintf-posix (Depends-on): Likewise.
42670         * modules/vfprintf-posix (Depends-on): Likewise.
42671         * modules/vsnprintf-posix (Depends-on): Likewise.
42672         * modules/vsprintf-posix (Depends-on): Likewise.
42673         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42674         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42675         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42676         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42677         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42678         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42679         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42680
42681 2007-11-04  Bruno Haible  <bruno@clisp.org>
42682
42683         * modules/nocrash: New file.
42684         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42685         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42686
42687 2007-11-04  Bruno Haible  <bruno@clisp.org>
42688
42689         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42690         precision handling.
42691         * tests/test-vasprintf-posix.c (test_function): Likewise.
42692         * tests/test-snprintf-posix.h (test_function): Likewise.
42693         * tests/test-sprintf-posix.h (test_function): Likewise.
42694
42695         Fix *printf behaviour for large precisions on mingw and BeOS.
42696         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42697         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42699         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42700         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42701         gl_PRINTF_PRECISION and test its result. Invoke
42702         gl_PREREQ_VASNPRINTF_PRECISION.
42703         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42704         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42707         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42709         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42710         * doc/functions/fprintf.texi: Update.
42711         * doc/functions/printf.texi: Update.
42712         * doc/functions/snprintf.texi: Update.
42713         * doc/functions/sprintf.texi: Update.
42714         * doc/functions/vfprintf.texi: Update.
42715         * doc/functions/vprintf.texi: Update.
42716         * doc/functions/vsnprintf.texi: Update.
42717         * doc/functions/vsprintf.texi: Update.
42718
42719 2007-11-04  Bruno Haible  <bruno@clisp.org>
42720
42721         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42722
42723 2007-11-04  Bruno Haible  <bruno@clisp.org>
42724
42725         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42726         Reported by Sylvain Beucler <beuc@gnu.org>.
42727
42728 2007-11-03  Bruno Haible  <bruno@clisp.org>
42729
42730         * tests/test-fprintf-posix2.sh: New file.
42731         * tests/test-fprintf-posix2.c: New file.
42732         * modules/fprintf-posix-tests (Files): Add them.
42733         (TESTS): Add test-fprintf-posix2.sh.
42734         (configure.ac): Check for getrlimit and setrlimit.
42735         (check_PROGRAMS): Add test-fprintf-posix2.
42736
42737         * tests/test-printf-posix2.sh: New file.
42738         * tests/test-printf-posix2.c: New file.
42739         * modules/printf-posix-tests (Files): Add them.
42740         (TESTS): Add test-printf-posix2.sh.
42741         (configure.ac): Check for getrlimit and setrlimit.
42742         (check_PROGRAMS): Add test-printf-posix2.
42743
42744         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42745         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42746         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42747         (decode_double): New function, copied from decode_long_double.
42748         (scale10_round_decimal_decoded): New function, extracted from
42749         scale10_round_decimal_long_double.
42750         (scale10_round_decimal_long_double): Use it.
42751         (scale10_round_decimal_double): New function.
42752         (floorlog10): New function.
42753         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42755         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42756         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42757         gl_PRINTF_ENOMEM and test its result. Invoke
42758         gl_PREREQ_VASNPRINTF_ENOMEM.
42759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42760         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42761         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42766         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42767         * modules/snprintf-posix (Depends-on): Likewise.
42768         * modules/sprintf-posix (Depends-on): Likewise.
42769         * modules/vasnprintf-posix (Depends-on): Likewise.
42770         * modules/vasprintf-posix (Depends-on): Likewise.
42771         * modules/vfprintf-posix (Depends-on): Likewise.
42772         * modules/vsnprintf-posix (Depends-on): Likewise.
42773         * modules/vsprintf-posix (Depends-on): Likewise.
42774         * doc/functions/fprintf.texi: Update.
42775         * doc/functions/printf.texi: Update.
42776         * doc/functions/snprintf.texi: Update.
42777         * doc/functions/sprintf.texi: Update.
42778         * doc/functions/vfprintf.texi: Update.
42779         * doc/functions/vprintf.texi: Update.
42780         * doc/functions/vsnprintf.texi: Update.
42781         * doc/functions/vsprintf.texi: Update.
42782
42783 2007-11-03  Bruno Haible  <bruno@clisp.org>
42784
42785         * modules/frexp-nolibm-tests: New file.
42786
42787         * modules/frexp-nolibm: New file.
42788         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42789
42790 2007-11-03  Bruno Haible  <bruno@clisp.org>
42791
42792         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42793         value is C99 compliant.
42794         Needed for OSF/1 5.1.
42795
42796 2007-11-03  Bruno Haible  <bruno@clisp.org>
42797
42798         Fix out-of-memory handling of vasnprintf.
42799         * lib/printf-parse.c: Include <errno.h>.
42800         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42801         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42802         is already set.
42803
42804 2007-11-02  Eric Blake  <ebb9@byu.net>
42805
42806         Fix tests on cygwin.
42807         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42808
42809 2007-11-01  Bruno Haible  <bruno@clisp.org>
42810
42811         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42812         warning.
42813         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42814         needed for POSIX compatibility.
42815
42816 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42817
42818         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42819         for compatibility with GNU.
42820
42821 2007-11-01  Bruno Haible  <bruno@clisp.org>
42822
42823         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42824         (putenv): Renamed from rpl_putenv. Change argument type from
42825         'const char *' to 'char *'.
42826         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42827         of defining putenv in config.h, just set REPLACE_PUTENV.
42828         * modules/putenv (Depends-on): Add stdlib.
42829         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42830         (Include): Use <stdlib.h>.
42831         * lib/stdlib.in.h (putenv): New declaration.
42832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42833         REPLACE_PUTENV.
42834         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42835         REPLACE_PUTENV.
42836         Needed for MacOS X 10.5.0.
42837         Reported by Peter O'Gorman <peter@pogma.com>.
42838
42839 2007-11-01  Jim Meyering  <meyering@redhat.com>
42840
42841         Treat an empty date string exactly like "0".
42842         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42843         if the remaining date string (to be parsed) is empty, use "0".
42844         Reported by Mischa Molhoek and discussed in this thread:
42845         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42846
42847 2007-10-31  Bruno Haible  <bruno@clisp.org>
42848
42849         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42850         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42851         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42852         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42853         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42854         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42855
42856 2007-10-31  Bruno Haible  <bruno@clisp.org>
42857
42858         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42859         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42860         (AC_TYPE_LONG_LONG_INT): Use it.
42861         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42862         it as well.
42863         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42864         to m4/longlong.m4.
42865         * modules/stdint (Files): Remove m4/ulonglong.m4.
42866         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42867         m4/ulonglong.m4.
42868         * modules/strtoumax (Files): Likewise.
42869
42870 2007-10-30  Bruno Haible  <bruno@clisp.org>
42871
42872         * modules/xvasprintf-posix: New file.
42873         Suggested by Eric Blake.
42874
42875 2007-10-30  Bruno Haible  <bruno@clisp.org>
42876
42877         * modules/xprintf-posix-tests: New file.
42878         * tests/test-xprintf-posix.sh: New file.
42879         * tests/test-xprintf-posix.c: New file.
42880         * tests/test-xfprintf-posix.c: New file.
42881
42882         * modules/xprintf-posix: New file.
42883
42884 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42885
42886         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42887         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42888         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42889
42890 2007-10-29  Bruno Haible  <bruno@clisp.org>
42891
42892         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42893         contain the special marker '_cv_'.
42894         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42895         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42896         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42897         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42898         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42899         Reported by Ralf Wildenhues.
42900
42901 2007-10-29  Bruno Haible  <bruno@clisp.org>
42902
42903         * gnulib-tool (func_import): When --lgpl is not specified, set
42904         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42905         GPLv3.
42906         Reported by Simon Josefsson.
42907
42908 2007-10-28  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42911         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42912         HAVE_DECL_ISFINITE.
42913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42914         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42915         HAVE_DECL_ISFINITE.
42916
42917 2007-10-28  Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42920         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42921
42922 2007-10-28  Bruno Haible  <bruno@clisp.org>
42923
42924         Fix link errors with Sun C 5.0 on Solaris 10.
42925         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42926         function is declared but not present in the compiler's libm.
42927         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42928         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42929         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42930         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42931         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42932         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42933         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42935         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42936         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42937         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42938         HAVE_DECL_FLOORL.
42939
42940 2007-10-28  Bruno Haible  <bruno@clisp.org>
42941
42942         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42943         gl_FUNC_FLOORL. Cache the result.
42944         (gl_FUNC_FLOORL): Use it.
42945         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42946         gl_FUNC_CEILL. Cache the result.
42947         (gl_FUNC_CEILL): Use it.
42948
42949         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42950         gl_FUNC_FLOOR. Cache the result.
42951         (gl_FUNC_FLOOR): Use it.
42952         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42953         gl_FUNC_CEIL. Cache the result.
42954         (gl_FUNC_CEIL): Use it.
42955
42956         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42957         gl_FUNC_FLOORF. Cache the result.
42958         (gl_FUNC_FLOORF): Use it.
42959         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42960         gl_FUNC_CEILF. Cache the result.
42961         (gl_FUNC_CEILF): Use it.
42962
42963 2007-10-28  Bruno Haible  <bruno@clisp.org>
42964
42965         * gnulib-tool: Allow specifying the LGPL version number through
42966         --lgpl=2 or --lgpl=3.
42967         (func_usage): Document --lgpl with argument.
42968         Handle --lgpl=... arguments.
42969         (func_import): Recognize also gl_LGPL calls with an argument. When
42970         --lgpl=2 is used and the module's license is just LGPL, report an
42971         error. Set sed_transform_lib_file according to the lgpl variable. In
42972         the generated files, use --lgpl or gl_LGPL invocations with argument,
42973         if necessary.
42974         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42975         an LGPv2+ license.
42976         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42977         gl_LGPL macro.
42978
42979 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42980             Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42983         (u16_uctomb_aux): Likewise.
42984         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42985         !HAVE_INLINE.
42986         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42987
42988 2007-10-28  Bruno Haible  <bruno@clisp.org>
42989
42990         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42991         Invoke AM_GETTEXT_OPTION if it exists.
42992         * modules/vasprintf: Likewise.
42993         * modules/verror: Likewise.
42994         * modules/xprintf: Likewise.
42995         * modules/xvasprintf: Likewise.
42996
42997 2007-10-27  Ben Pfaff  <blp@gnu.org>
42998
42999         * lib/math.in.h: Define isfinite macro and prototypes for
43000         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43001         implementations.
43002         * m4/math_h.m4: New substitutions for isfinite module.
43003         * lib/isfinite.c: New file.
43004         * m4/isfinite.m4: New file.
43005         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43006         * modules/isfinite: New file.
43007         * modules/isfinite-tests: New file.
43008         * tests/tests-isfinite.c: New file.
43009         * doc/functions/isfinite.texi: Mention isfinite module.
43010         * MODULES.html.sh: Mention new module.
43011
43012 2007-10-27  Ben Pfaff  <blp@gnu.org>
43013
43014         Ralf Wildenhues reported that Tru64 4.0D declares the round
43015         functions but does not have definitions.
43016         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43017         cannot be found in any library, set the output variable to
43018         "missing" instead of "".
43019         * m4/round.m4: Also use our substitute if we cannot find round in
43020         any library, even if it is declared.
43021         * m4/roundf.m4: Likewise for roundf.
43022         * m4/roundl.m4: Likewise for roundl.
43023         * lib/math.in.h: Undefine roundf, round, roundl before defining
43024         their replacements, to allow for hypothetical systems where these
43025         may be defined as macros but not available in libraries.
43026
43027 2007-10-27  Bruno Haible  <bruno@clisp.org>
43028
43029         * doc/gnulib.texi: Invoke @firstparagraphindent.
43030         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43031         changes in gnulib.
43032         (Source changes): New section.
43033
43034 2007-10-26  Bruno Haible  <bruno@clisp.org>
43035
43036         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43037         borrowed from autoconf.
43038
43039 2007-10-26  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43042         strerror returned the empty string. Needed on HP-UX 11.00.
43043
43044 2007-10-24  Micah Cowan  <micah@cowan.name>
43045
43046         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43047         * build-aux/bootstrap: Remove support for now-unnecessary option,
43048         --cvs-user, and envvars CVS_USER, CVS_RSH.
43049
43050 2007-10-24  Jim Meyering  <meyering@redhat.com>
43051
43052         Avoid diagnostics from sha1sum when there is no cached checksum.
43053         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43054         if the po.s1 file hasn't been created yet.
43055
43056         * build-aux/bootstrap: Sync from coreutils:
43057         2007-10-24  Jim Meyering  <meyering@redhat.com>
43058         Get gnulib from the git repository, not from an obsolete cvs one.
43059         * build-aux/bootstrap: Suggestion from Micah Cowan.
43060         2007-10-04  Jim Meyering  <jim@meyering.net>
43061         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43062         (update_po_files): Work also when there are no .po files in po/.
43063
43064 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43065
43066         * README: Append ".git" to git and cg examples.
43067         Problem reported by Benoit Sigoure.
43068
43069 2007-10-23  Micah Cowan  <micah@cowan.name>
43070
43071         * users.txt: Add wget.
43072
43073 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43074
43075         Fix linking of some unistdio tests on FreeBSD.
43076         * modules/unistdio/u16-vsnprintf-tests
43077         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43078         * modules/unistdio/u16-vsprintf-tests
43079         (test_u16_vsnprintf1_LDADD): Likewise.
43080         * modules/unistdio/u32-vsnprintf-tests
43081         (test_u32_vsnprintf1_LDADD): Likewise.
43082         * modules/unistdio/u32-vsprintf-tests
43083         (test_u32_vsprintf1_LDADD): Likewise.
43084         * modules/unistdio/u8-vsnprintf-tests
43085         (test_u8_vsnprintf1_LDADD): Likewise.
43086         * modules/unistdio/u8-vsprintf-tests
43087         (test_u8_vsprintf1_LDADD): Likewise.
43088         * modules/unistdio/ulc-vsnprintf-tests
43089         (test_ulc_vsnprintf1_LDADD): Likewise.
43090         * modules/unistdio/ulc-vsprintf-tests
43091         (test_ulc_vsprintf1_LDADD): Likewise.
43092
43093         Fix linking of some uniconv tests on FreeBSD.
43094         * modules/uniconv/u16-conv-from-enc-tests
43095         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43096         * modules/uniconv/u16-conv-to-enc-tests
43097         (test_u16_conv_to_enc_LDADD): Likewise.
43098         * modules/uniconv/u16-strconv-from-enc-tests
43099         (test_u16_strconv_from_enc_LDADD): Likewise.
43100         * modules/uniconv/u16-strconv-to-enc-tests
43101         (test_u16_strconv_to_enc_LDADD): Likewise.
43102         * modules/uniconv/u32-conv-from-enc-tests
43103         (test_u32_conv_from_enc_LDADD): Likewise.
43104         * modules/uniconv/u32-conv-to-enc-tests
43105         (test_u32_conv_to_enc_LDADD): Likewise.
43106         * modules/uniconv/u32-strconv-from-enc-tests
43107         (test_u32_strconv_from_enc_LDADD): Likewise.
43108         * modules/uniconv/u32-strconv-to-enc-tests
43109         (test_u32_strconv_to_enc_LDADD): Likewise.
43110         * modules/uniconv/u8-conv-from-enc-tests
43111         (test_u8_conv_from_enc_LDADD): Likewise.
43112         * modules/uniconv/u8-conv-to-enc-tests
43113         (test_u8_conv_to_enc_LDADD): Likewise.
43114         * modules/uniconv/u8-strconv-from-enc-tests
43115         (test_u8_strconv_from_enc_LDADD): Likewise.
43116         * modules/uniconv/u8-strconv-to-enc-tests
43117         (test_u8_strconv_to_enc_LDADD): Likewise.
43118
43119 2007-10-22  Bruno Haible  <bruno@clisp.org>
43120
43121         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43122         size.
43123
43124 2007-10-22  Eric Blake  <ebb9@byu.net>
43125
43126         Tweak x*printf documentation.
43127         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43128         variable name and comments.
43129         Suggested by Bruno Haible.
43130
43131 2007-10-22  Bruno Haible  <bruno@clisp.org>
43132
43133         * lib/acl.c (copy_acl): Fix file name in comment.
43134
43135 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43136
43137         Fix Tru64 problem with stdbool.h.
43138         * lib/stdbool.in.h (false, true):
43139         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43140         Don't declare as an enum in this situation; it runs afoul of Tru64.
43141         Problem reported by Steven M. Schweda in
43142         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43143
43144 2007-10-22  Eric Blake  <ebb9@byu.net>
43145
43146         Also wrap vf?printf.
43147         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43148         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43149         (xvprintf, xvfprintf): New functions.
43150
43151 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43152
43153         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43154         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43155
43156         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43157         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43158
43159 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43160
43161         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43162         by Bruno Haible.
43163
43164 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43165
43166         * lib/getloadavg.c
43167         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43168         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43169
43170         * tests/test-i-ring.c: Work for C89.
43171
43172 2007-10-22  Bruno Haible  <bruno@clisp.org>
43173
43174         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43175         -1u, in preprocessor expression, so that we don't test for the bug
43176         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43177         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43178
43179 2007-10-22  Eric Blake  <ebb9@byu.net>
43180
43181         * tests/test-yesno.sh: Silence stderr during test.
43182
43183 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43184
43185         * modules/crypto/gc-camellia: New file.
43186
43187         * m4/gc-camellia.m4: New file.
43188
43189         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43190
43191         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43192
43193 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43194
43195         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43196         --help to stdout.  Reported by sms@antinode.org (Steven
43197         M. Schweda).
43198
43199 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43200
43201         * users.txt: Fix link to libksba.
43202
43203 2007-10-21  Ben Pfaff  <blp@gnu.org>
43204
43205         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43206         round.c roundf implementation that depends on floorf and ceilf to
43207         be tested unconditionally.
43208
43209 2007-10-21  Ben Pfaff  <blp@gnu.org>
43210
43211         * m4/check-libm-func.m4: Removed.
43212         * m4/check-math-lib.m4: New file.
43213         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43214         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43215         definition and lack of AC_LIBOBJ([roundf]).
43216         * m4/roundl.m4: Ditto, and similarly for roundl.
43217         * modules/round: Reference new m4 file.
43218         * modules/roundf: Ditto.
43219         * modules/roundl: Ditto.
43220         * tests/test-round2.c (main): Use ROUND instead of round.
43221         Bug report from Bruno Haible.
43222
43223 2007-10-21  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43226         context.
43227
43228 2007-10-21  Bruno Haible  <bruno@clisp.org>
43229
43230         * tests/test-wcwidth.c (main): Allow negative result for some control
43231         characters.
43232
43233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43234         Needed on OSF/1 5.1.
43235
43236 2007-10-21  Bruno Haible  <bruno@clisp.org>
43237
43238         * tests/test-floorf1.c: Include isnanf.h.
43239         (main): Use isnanf() instead of isnan().
43240         * tests/test-ceilf1.c: Include isnanf.h.
43241         (main): Use isnanf() instead of isnan().
43242         * tests/test-truncf1.c: Include isnanf.h.
43243         (main): Use isnanf() instead of isnan().
43244         * tests/test-roundf1.c: Include isnanf.h.
43245         (main): Use isnanf() instead of isnan().
43246
43247 2007-10-21  Eric Blake  <ebb9@byu.net>
43248
43249         * users.txt: Update URL for m4.
43250
43251 2007-10-21  Bruno Haible  <bruno@clisp.org>
43252
43253         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43254
43255 2007-10-21  Bruno Haible  <bruno@clisp.org>
43256
43257         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43258         Git's management files if the CVS files are not present.
43259
43260 2007-10-20  Bruno Haible  <bruno@clisp.org>
43261
43262         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43263         gcc-3.4.x.
43264
43265 2007-10-20  Ben Pfaff  <blp@gnu.org>
43266
43267         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43268         implementations.
43269         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43270         * lib/round.c: New file.
43271         * lib/roundf.c: New file.
43272         * lib/roundl.c: New file.
43273         * m4/round.m4: New file.
43274         * m4/roundf.m4: New file.
43275         * m4/roundl.m4: New file.
43276         * m4/check-libm-func-m4: New file.
43277         * modules/math: Replace round, roundf, roundl related @VARS@ in
43278         math.in.h.
43279         * modules/round: New file.
43280         * modules/round-tests: New file.
43281         * modules/roundf: New file.
43282         * modules/roundf-tests: New file.
43283         * modules/roundl: New file.
43284         * modules/roundl-tests: New file.
43285         * tests/test-round1.c: New file.
43286         * tests/test-round2.c: New file.
43287         * tests/test-roundf1.c: New file.
43288         * tests/test-roundf2.c: New file.
43289         * tests/test-roundl.c: New file.
43290         * doc/functions/round.texi: Mention round module.
43291         * doc/functions/roundf.texi: Mention roundf module.
43292         * doc/functions/roundl.texi: Mention roundl module.
43293         * MODULES.html.sh: Mention new modules.
43294         Thanks to Bruno Haible for suggestions.
43295
43296 2007-10-20  Jim Meyering  <meyering@redhat.com>
43297
43298         * lib/xprintf.c: Include <config.h> unconditionally.
43299
43300         Change xprintf's license to GPL.
43301         * modules/xprintf (License): s/LGPL/GPL/, since this module
43302         depends on modules (exit and exitfail) which are GPL.
43303         Suggestion from Bruno Haible.
43304
43305         xprintf fixes.
43306         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43307         Use a clearer diagnostic.
43308         Patch from Bruno Haible.
43309
43310 2007-10-20  Bruno Haible  <bruno@clisp.org>
43311
43312         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43313         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43315
43316 2007-10-20  Bruno Haible  <bruno@clisp.org>
43317
43318         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43319         precision in the comparison result > x - 1 or similar.
43320         * tests/test-ceilf2.c (correct_result_p): Likewise.
43321         * tests/test-truncf2.c (correct_result_p): Likewise.
43322         * tests/test-trunc2.c (correct_result_p): Likewise.
43323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43324
43325 2007-10-20  Bruno Haible  <bruno@clisp.org>
43326
43327         * modules/ceil: New file.
43328         * m4/ceil.m4: New file.
43329         * doc/functions/ceil.texi: Mention the 'ceil' module.
43330
43331 2007-10-20  Bruno Haible  <bruno@clisp.org>
43332
43333         * modules/floor: New file.
43334         * m4/floor.m4: New file.
43335         * doc/functions/floor.texi: Mention the 'floor' module.
43336
43337 2007-10-20  Bruno Haible  <bruno@clisp.org>
43338
43339         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43340         of %a.
43341         * modules/floorf-tests (Depends-on): Likewise.
43342         * modules/truncf-tests (Depends-on): Likewise.
43343         * modules/trunc-tests (Depends-on): Likewise.
43344         Reported by Ben Pfaff.
43345
43346 2007-10-19  Jim Meyering  <meyering@redhat.com>
43347
43348         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43349         Don't bother testing specific errno values.  Just test ferror.
43350
43351         New module: xprintf
43352         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43353
43354 2007-10-19  Bruno Haible  <bruno@clisp.org>
43355
43356         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43357         syntax.
43358         * modules/javaexec (Makefile.am): Likewise.
43359         * modules/relocatable-prog (Makefile.am): Likewise.
43360         Suggested by Jim Meyering.
43361
43362 2007-10-18  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43365         Reported by Jim Meyering.
43366
43367 2007-10-18  Eric Blake  <ebb9@byu.net>
43368
43369         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43370
43371 2007-10-18  Bruno Haible  <bruno@clisp.org>
43372
43373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43374         the format string into writable memory. Needed in Fortify conditions.
43375
43376 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43377             Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43380         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43381         * modules/trim (Depends-on): Add mbchar.
43382         (configure.ac): Add gl_FUNC_MBRTOWC.
43383         (Makefile.am): Augment lib_SOURCES.
43384
43385 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43386
43387         Modify glob.c to use fstatat and dirfd, to simplify it.
43388         Suggested by Eric Blake.
43389         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43390         Don't include <stdbool.h>; not used.
43391         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43392         (link_exists_p): Simplify implementation, since we can now assume
43393         dirfd and fstatat.
43394         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43395
43396 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43397
43398         * gnulib-tool (func_get_dependencies): Fix sed script to
43399         match only tests.
43400
43401 2007-10-17  Bruno Haible  <bruno@clisp.org>
43402
43403         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43404         allow locale names without encoding suffix.
43405         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43406         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43407
43408 2007-10-16  Bruno Haible  <bruno@clisp.org>
43409
43410         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43411         * lib/getgroups.c (getgroups): Likewise.
43412         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43413
43414 2007-10-16  Bruno Haible  <bruno@clisp.org>
43415
43416         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43417         * modules/malloc-posix (License): Likewise.
43418         * modules/realloc-posix (License): Likewise.
43419         * modules/calloc-posix (License): Likewise.
43420         * modules/intprops (License): Change from GPL to LGPL, with
43421         Paul Eggert's approval.
43422
43423 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43424
43425         Merge glibc changes into lib/glob.c.
43426
43427         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43428         2007-10-15 04:59:03 UTC.  Here are the changes:
43429
43430         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43431
43432         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43433
43434         * lib/glob.c: Add some branch prediction throughout.
43435
43436         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43437
43438         [BZ #5103]
43439         * lib/glob.c (glob): Recognize patterns starting \/.
43440
43441         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43442
43443         [BZ #3996]
43444         * lib/glob.c (attribute_hidden): Define if not defined.
43445         (glob): Unescape dirname, filename or username when needed and not
43446         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43447         is NULL.  Handle unescaped [ in pattern without closing ].
43448         Don't pass GLOB_CHECK down to recursive glob for directories.
43449         (__glob_pattern_type): New function.
43450         (__glob_pattern_p): Implement using __glob_pattern_type.
43451         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43452         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43453         Remove unreachable code.
43454
43455         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43456
43457         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43458         explain why there are no leaks.
43459
43460         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43461
43462         [BZ #3253]
43463         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43464         time, rather allocate increasingly bigger arrays of pointers, if
43465         possible with alloca, if too large with malloc.
43466
43467 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43470         Problem reported by H.Merijn Brand in
43471         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43472         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43473         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43474
43475 2007-10-15  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43478         with explicit rpl_ prefix.
43479         * lib/fopen.c (fopen): Likewise.
43480         * lib/freopen.c (freopen): Likewise.
43481         * lib/iconv.c (iconv): Likewise.
43482         * lib/iconv_close.c (iconv_close): Likewise.
43483
43484 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43485
43486         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43487
43488 2007-10-15  Bruno Haible  <bruno@clisp.org>
43489
43490         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43491         <stddef.h> instead of <stdlib.h> since we only need NULL.
43492         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43493
43494 2007-10-15  Bruno Haible  <bruno@clisp.org>
43495
43496         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43497         Replace paragraph talking about LIBOBJS.
43498         Reported by Colin Watson <cjwatson@debian.org>.
43499
43500 2007-10-15  Bruno Haible  <bruno@clisp.org>
43501
43502         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43503         <stdlib.h> before using NULL.
43504
43505 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43506
43507         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43508         Reported by Albert Chin <china@thewrittenword.com>.
43509
43510 2007-10-14  Bruno Haible  <bruno@clisp.org>
43511
43512         * modules/iconv_open-utf-tests: New file.
43513         * tests/test-iconv-utf.c: New file.
43514
43515         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43516         * modules/iconv_open-utf: New file.
43517         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43518         (iconv, iconv_close): New declarations.
43519         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43520         be defined.
43521         (iconv_open): Add special handling of conversion between UTF-8 and
43522         UTF-{16,32}{BE,LE}.
43523         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43524         * lib/iconv_close.c: New file.
43525         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43526         gl_FUNC_ICONV_OPEN.
43527         (gl_FUNC_ICONV_OPEN): Use it.
43528         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43529         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43530         and REPLACE_ICONV_UTF.
43531         * modules/iconv_open (Depends-on): Add c-strcase.
43532         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43533         ICONV_CONST.
43534         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43535
43536 2007-10-13  Albert Chin  <china@thewrittenword.com>
43537             Bruno Haible  <bruno@clisp.org>
43538
43539         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43540         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43541
43542 2007-10-13  Bruno Haible  <bruno@clisp.org>
43543
43544         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43545         defined, use the ISO C99 inline semantics.
43546         * lib/argp.h (ARGP_EI): Likewise.
43547
43548 2007-10-13  Bruno Haible  <bruno@clisp.org>
43549
43550         Handle 'inline' change in gcc 4.3.0.
43551         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43552         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43553         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43554         argp_fmtstream_point): Disable 'extern' declaration if the function
43555         definition is going to be provided inline.
43556         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43557         semantics, not the ISO C99 inline semantics.
43558         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43559         'extern' declaration if the function definition is going to be provided
43560         inline.
43561         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43562         the GNU C inline semantics, not the ISO C99 inline semantics. With
43563         GCC 4.2, avoid a warning.
43564
43565 2007-10-13  Bruno Haible  <bruno@clisp.org>
43566
43567         * lib/freading.h (freading): Enable the use of __freading for
43568         glibc >= 2.7.
43569         * lib/freading.c (freading): Likewise.
43570
43571 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43572
43573         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43574         "warning: C99 inline functions are not supported; using GNU89".
43575
43576 2007-10-12  Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43579         of 2.
43580         * tests/test-ceilf2.c: New file.
43581         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43582
43583         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43584         * modules/ceilf-tests: Update.
43585
43586 2007-10-12  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43589         of 2.
43590         * tests/test-floorf2.c: New file.
43591         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43592
43593         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43594         * modules/floorf-tests: Update.
43595
43596 2007-10-12  Bruno Haible  <bruno@clisp.org>
43597
43598         * tests/test-trunc2.c: New file.
43599         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43600
43601         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43602         * modules/trunc-tests: Update.
43603
43604 2007-10-12  Bruno Haible  <bruno@clisp.org>
43605
43606         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43607         of 2.
43608         * tests/test-truncf2.c: New file.
43609         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43610
43611         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43612         * modules/truncf-tests: Update.
43613
43614 2007-10-11  Eric Blake  <ebb9@byu.net>
43615
43616         Don't claim strerror is broken on Interix.
43617         * doc/functions/strerror.texi (strerror): Known broken systems are
43618         now Solaris 8, and not Interix.
43619         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43620         Interix on cross-compile.
43621         Reported by Martin Koeppe in
43622         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43623
43624 2007-10-11  Bruno Haible  <bruno@clisp.org>
43625
43626         * modules/i-ring-tests: New file.
43627         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43628         instead of assert.
43629
43630 2007-10-11  Bruno Haible  <bruno@clisp.org>
43631
43632         * modules/filenamecat-tests: New file.
43633         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43634         * lib/filenamecat.c: Remove test code.
43635
43636 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43637
43638         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43639
43640         * lib/strerror.c: Include <string.h> always, to test interface,
43641         and to remove the need for the dummy.
43642         Include intprops.h to compute width instead of doing it ourselves
43643         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43644         (strerror): Define it to return NULL if there's no system strerror.
43645         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43646         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43647         ancient pre-strerror Unix systems well any more.  Saying "unknown
43648         system error" is enough.
43649         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43650         simpler strerror.c implementation.
43651         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43652         Simplify the tests to reflect the simpler strerror implementation.
43653         * modules/strerror (Depends-on): Add intprops.
43654
43655 2007-10-09  Eric Blake  <ebb9@byu.net>
43656
43657         Silence test-fpending.
43658         * modules/fpending-tests (Files): Add wrapper script.
43659         * tests/test-fpending.sh: New file.
43660
43661 2007-10-09  Bruno Haible  <bruno@clisp.org>
43662
43663         * MODULES.html.sh (func_module): Don't create a hyperlink for
43664         function names like 'printf_frexp'.
43665         (Misc): Add crc, memxor.
43666         (Characteristics of floating types): New section.
43667         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43668         isnanf-nolibm, signbit, trunc, truncf, truncl.
43669         (Enhancements for ISO C 99 functions): New subsection Input/output.
43670         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43671         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43672         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43673         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43674         (Enhancements for POSIX:2001 functions): Add chdir-long.
43675         (File system functions): Add areadlink, chdir-safer, read-file.
43676         Remove cycle-check.
43677         (File system as inode set): New section.
43678         (Date and time): Add gethrxtime.
43679         (Multithreading): Add openmp.
43680         (Internationalization functions): Add localename.
43681         (Unicode string functions): Add unistr/u*-mbsnlen.
43682         (Support for maintaining and releasing projects): Add git-version-gen.
43683         (Lone files): Remove directories.
43684
43685 2007-10-08  Ben Pfaff  <blp@gnu.org>
43686
43687         * lib/xmalloca.h: Fix typo in comment.
43688
43689 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43690
43691         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43692         when avoiding problems with integer overflow.  Use a portable test
43693         instead.
43694
43695 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43696
43697         * modules/dummy (License): Change to LGPLv2+.
43698         * modules/float (License): Likewise
43699         * modules/realloc (License): Likewise
43700         * modules/stdlib (License): Likewise
43701
43702 2007-10-07  Bruno Haible  <bruno@clisp.org>
43703
43704         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43705         * floor.c (TWO_MANT_DIG): Likewise.
43706         * ceil.c (TWO_MANT_DIG): Likewise.
43707         Reported by Ben Pfaff.
43708
43709 2007-10-07  Bruno Haible  <bruno@clisp.org>
43710
43711         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43712         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43713         * lib/frexp.c (FUNC): Likewise.
43714         * lib/printf-frexp.h (printf_frexp): Likewise.
43715         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43716         * lib/printf-frexp.c (FUNC): Likewise.
43717         Suggested by Jim Meyering.
43718
43719 2007-10-07  Jim Meyering  <meyering@redhat.com>
43720
43721         Make xnanosleep's integer overflow test more robust.
43722         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43723         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43724
43725 2007-10-07  Bruno Haible  <bruno@clisp.org>
43726
43727         * NEWS: Mention the license change.
43728
43729         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43730         abbreviations in the modules files.
43731
43732         Change copyright notice from GPLv2+ to GPLv3+.
43733         * README: Change copyright notice.
43734         * MODULES.html.sh: Likewise.
43735         * build-aux/bootstrap.conf: Likewise.
43736         * build-aux/config.libpath: Likewise.
43737         * build-aux/csharpcomp.sh.in: Likewise.
43738         * build-aux/csharpexec.sh.in: Likewise.
43739         * build-aux/install-reloc: Likewise.
43740         * build-aux/javacomp.sh.in: Likewise.
43741         * build-aux/javaexec.sh.in: Likewise.
43742         * build-aux/ldd.sh.in: Likewise.
43743         * build-aux/reloc-ldflags: Likewise.
43744         * build-aux/relocatable.sh.in: Likewise.
43745         * build-aux/x-to-1.in: Likewise.
43746         * check-module: Likewise.
43747         * config/srclistvars.sh: Likewise.
43748         * gnulib-tool: Likewise.
43749         * lib/acl-internal.h: Likewise.
43750         * lib/acl.c: Likewise.
43751         * lib/acl.h: Likewise.
43752         * lib/acl_entries.c: Likewise.
43753         * lib/areadlink-with-size.c: Likewise.
43754         * lib/areadlink.c: Likewise.
43755         * lib/areadlink.h: Likewise.
43756         * lib/argmatch.c: Likewise.
43757         * lib/argmatch.h: Likewise.
43758         * lib/argp-ba.c: Likewise.
43759         * lib/argp-eexst.c: Likewise.
43760         * lib/argp-fmtstream.c: Likewise.
43761         * lib/argp-fmtstream.h: Likewise.
43762         * lib/argp-fs-xinl.c: Likewise.
43763         * lib/argp-help.c: Likewise.
43764         * lib/argp-namefrob.h: Likewise.
43765         * lib/argp-parse.c: Likewise.
43766         * lib/argp-pin.c: Likewise.
43767         * lib/argp-pv.c: Likewise.
43768         * lib/argp-pvh.c: Likewise.
43769         * lib/argp-xinl.c: Likewise.
43770         * lib/argp.h: Likewise.
43771         * lib/at-func.c: Likewise.
43772         * lib/atanl.c: Likewise.
43773         * lib/backupfile.c: Likewise.
43774         * lib/backupfile.h: Likewise.
43775         * lib/basename.c: Likewise.
43776         * lib/binary-io.h: Likewise.
43777         * lib/byteswap.in.h: Likewise.
43778         * lib/c-stack.c: Likewise.
43779         * lib/c-stack.h: Likewise.
43780         * lib/c-strcasestr.c: Likewise.
43781         * lib/c-strcasestr.h: Likewise.
43782         * lib/c-strstr.c: Likewise.
43783         * lib/c-strstr.h: Likewise.
43784         * lib/c-strtod.c: Likewise.
43785         * lib/calloc.c: Likewise.
43786         * lib/canon-host.c: Likewise.
43787         * lib/canon-host.h: Likewise.
43788         * lib/canonicalize-lgpl.c: Likewise.
43789         * lib/canonicalize.c: Likewise.
43790         * lib/canonicalize.h: Likewise.
43791         * lib/ceil.c: Likewise.
43792         * lib/ceilf.c: Likewise.
43793         * lib/ceill.c: Likewise.
43794         * lib/chdir-long.c: Likewise.
43795         * lib/chdir-long.h: Likewise.
43796         * lib/chdir-safer.c: Likewise.
43797         * lib/chdir-safer.h: Likewise.
43798         * lib/chown.c: Likewise.
43799         * lib/classpath.c: Likewise.
43800         * lib/classpath.h: Likewise.
43801         * lib/clean-temp.c: Likewise.
43802         * lib/clean-temp.h: Likewise.
43803         * lib/cloexec.c: Likewise.
43804         * lib/close-stream.c: Likewise.
43805         * lib/closein.c: Likewise.
43806         * lib/closein.h: Likewise.
43807         * lib/closeout.c: Likewise.
43808         * lib/closeout.h: Likewise.
43809         * lib/concat-filename.c: Likewise.
43810         * lib/copy-file.c: Likewise.
43811         * lib/copy-file.h: Likewise.
43812         * lib/count-one-bits.h: Likewise.
43813         * lib/crc.c: Likewise.
43814         * lib/crc.h: Likewise.
43815         * lib/creat-safer.c: Likewise.
43816         * lib/csharpcomp.c: Likewise.
43817         * lib/csharpcomp.h: Likewise.
43818         * lib/csharpexec.c: Likewise.
43819         * lib/csharpexec.h: Likewise.
43820         * lib/cycle-check.c: Likewise.
43821         * lib/cycle-check.h: Likewise.
43822         * lib/diacrit.c: Likewise.
43823         * lib/diacrit.h: Likewise.
43824         * lib/diffseq.h: Likewise.
43825         * lib/dirchownmod.c: Likewise.
43826         * lib/dirent.in.h: Likewise.
43827         * lib/dirfd.c: Likewise.
43828         * lib/dirfd.h: Likewise.
43829         * lib/dirname.c: Likewise.
43830         * lib/dirname.h: Likewise.
43831         * lib/dummy.c: Likewise.
43832         * lib/dup-safer.c: Likewise.
43833         * lib/dup2.c: Likewise.
43834         * lib/eealloc.h: Likewise.
43835         * lib/error.c: Likewise.
43836         * lib/error.h: Likewise.
43837         * lib/euidaccess.c: Likewise.
43838         * lib/exclude.c: Likewise.
43839         * lib/exclude.h: Likewise.
43840         * lib/execute.c: Likewise.
43841         * lib/execute.h: Likewise.
43842         * lib/exitfail.c: Likewise.
43843         * lib/exitfail.h: Likewise.
43844         * lib/expl.c: Likewise.
43845         * lib/fatal-signal.c: Likewise.
43846         * lib/fatal-signal.h: Likewise.
43847         * lib/fbufmode.c: Likewise.
43848         * lib/fbufmode.h: Likewise.
43849         * lib/fchdir.c: Likewise.
43850         * lib/fchmodat.c: Likewise.
43851         * lib/fchownat.c: Likewise.
43852         * lib/fcntl--.h: Likewise.
43853         * lib/fcntl-safer.h: Likewise.
43854         * lib/fcntl.in.h: Likewise.
43855         * lib/fd-safer.c: Likewise.
43856         * lib/fflush.c: Likewise.
43857         * lib/file-has-acl.c: Likewise.
43858         * lib/file-set.c: Likewise.
43859         * lib/file-type.c: Likewise.
43860         * lib/file-type.h: Likewise.
43861         * lib/fileblocks.c: Likewise.
43862         * lib/filemode.c: Likewise.
43863         * lib/filemode.h: Likewise.
43864         * lib/filename.h: Likewise.
43865         * lib/filenamecat.c: Likewise.
43866         * lib/filenamecat.h: Likewise.
43867         * lib/findprog.c: Likewise.
43868         * lib/findprog.h: Likewise.
43869         * lib/float.in.h: Likewise.
43870         * lib/floor.c: Likewise.
43871         * lib/floorf.c: Likewise.
43872         * lib/floorl.c: Likewise.
43873         * lib/fopen-safer.c: Likewise.
43874         * lib/fopen.c: Likewise.
43875         * lib/fpending.c: Likewise.
43876         * lib/fpending.h: Likewise.
43877         * lib/fprintf.c: Likewise.
43878         * lib/fprintftime.h: Likewise.
43879         * lib/fpucw.h: Likewise.
43880         * lib/fpurge.c: Likewise.
43881         * lib/fpurge.h: Likewise.
43882         * lib/freadable.c: Likewise.
43883         * lib/freadable.h: Likewise.
43884         * lib/freadahead.c: Likewise.
43885         * lib/freadahead.h: Likewise.
43886         * lib/freading.c: Likewise.
43887         * lib/freading.h: Likewise.
43888         * lib/free.c: Likewise.
43889         * lib/freopen.c: Likewise.
43890         * lib/frexp.c: Likewise.
43891         * lib/frexpl.c: Likewise.
43892         * lib/fseek.c: Likewise.
43893         * lib/fseterr.c: Likewise.
43894         * lib/fseterr.h: Likewise.
43895         * lib/fstatat.c: Likewise.
43896         * lib/fstrcmp.c: Likewise.
43897         * lib/fstrcmp.h: Likewise.
43898         * lib/fsusage.c: Likewise.
43899         * lib/fsusage.h: Likewise.
43900         * lib/ftell.c: Likewise.
43901         * lib/ftello.c: Likewise.
43902         * lib/fts-cycle.c: Likewise.
43903         * lib/fts.c: Likewise.
43904         * lib/fts_.h: Likewise.
43905         * lib/full-read.c: Likewise.
43906         * lib/full-read.h: Likewise.
43907         * lib/full-write.c: Likewise.
43908         * lib/full-write.h: Likewise.
43909         * lib/fwritable.c: Likewise.
43910         * lib/fwritable.h: Likewise.
43911         * lib/fwriteerror.c: Likewise.
43912         * lib/fwriteerror.h: Likewise.
43913         * lib/fwriting.c: Likewise.
43914         * lib/fwriting.h: Likewise.
43915         * lib/gcd.c: Likewise.
43916         * lib/gcd.h: Likewise.
43917         * lib/getcwd.c: Likewise.
43918         * lib/getdate.h: Likewise.
43919         * lib/getdate.y: Likewise.
43920         * lib/getdomainname.c: Likewise.
43921         * lib/getdomainname.h: Likewise.
43922         * lib/getgroups.c: Likewise.
43923         * lib/gethostname.c: Likewise.
43924         * lib/gethrxtime.c: Likewise.
43925         * lib/gethrxtime.h: Likewise.
43926         * lib/getloadavg.c: Likewise.
43927         * lib/getndelim2.c: Likewise.
43928         * lib/getndelim2.h: Likewise.
43929         * lib/getnline.c: Likewise.
43930         * lib/getnline.h: Likewise.
43931         * lib/getopt.c: Likewise.
43932         * lib/getopt.in.h: Likewise.
43933         * lib/getopt1.c: Likewise.
43934         * lib/getopt_int.h: Likewise.
43935         * lib/getpagesize.h: Likewise.
43936         * lib/getsubopt.c: Likewise.
43937         * lib/gettime.c: Likewise.
43938         * lib/getugroups.c: Likewise.
43939         * lib/getugroups.h: Likewise.
43940         * lib/getusershell.c: Likewise.
43941         * lib/gl_anyavltree_list1.h: Likewise.
43942         * lib/gl_anyavltree_list2.h: Likewise.
43943         * lib/gl_anyhash_list1.h: Likewise.
43944         * lib/gl_anyhash_list2.h: Likewise.
43945         * lib/gl_anylinked_list1.h: Likewise.
43946         * lib/gl_anylinked_list2.h: Likewise.
43947         * lib/gl_anyrbtree_list1.h: Likewise.
43948         * lib/gl_anyrbtree_list2.h: Likewise.
43949         * lib/gl_anytree_list1.h: Likewise.
43950         * lib/gl_anytree_list2.h: Likewise.
43951         * lib/gl_anytree_oset.h: Likewise.
43952         * lib/gl_anytreehash_list1.h: Likewise.
43953         * lib/gl_anytreehash_list2.h: Likewise.
43954         * lib/gl_array_list.c: Likewise.
43955         * lib/gl_array_list.h: Likewise.
43956         * lib/gl_array_oset.c: Likewise.
43957         * lib/gl_array_oset.h: Likewise.
43958         * lib/gl_avltree_list.c: Likewise.
43959         * lib/gl_avltree_list.h: Likewise.
43960         * lib/gl_avltree_oset.c: Likewise.
43961         * lib/gl_avltree_oset.h: Likewise.
43962         * lib/gl_avltreehash_list.c: Likewise.
43963         * lib/gl_avltreehash_list.h: Likewise.
43964         * lib/gl_carray_list.c: Likewise.
43965         * lib/gl_carray_list.h: Likewise.
43966         * lib/gl_linked_list.c: Likewise.
43967         * lib/gl_linked_list.h: Likewise.
43968         * lib/gl_linkedhash_list.c: Likewise.
43969         * lib/gl_linkedhash_list.h: Likewise.
43970         * lib/gl_list.c: Likewise.
43971         * lib/gl_list.h: Likewise.
43972         * lib/gl_oset.c: Likewise.
43973         * lib/gl_oset.h: Likewise.
43974         * lib/gl_rbtree_list.c: Likewise.
43975         * lib/gl_rbtree_list.h: Likewise.
43976         * lib/gl_rbtree_oset.c: Likewise.
43977         * lib/gl_rbtree_oset.h: Likewise.
43978         * lib/gl_rbtreehash_list.c: Likewise.
43979         * lib/gl_rbtreehash_list.h: Likewise.
43980         * lib/gl_sublist.c: Likewise.
43981         * lib/gl_sublist.h: Likewise.
43982         * lib/group-member.c: Likewise.
43983         * lib/group-member.h: Likewise.
43984         * lib/hard-locale.c: Likewise.
43985         * lib/hard-locale.h: Likewise.
43986         * lib/hash-pjw.c: Likewise.
43987         * lib/hash-pjw.h: Likewise.
43988         * lib/hash-triple.c: Likewise.
43989         * lib/hash.c: Likewise.
43990         * lib/hash.h: Likewise.
43991         * lib/human.c: Likewise.
43992         * lib/human.h: Likewise.
43993         * lib/i-ring.c: Likewise.
43994         * lib/i-ring.h: Likewise.
43995         * lib/idcache.c: Likewise.
43996         * lib/imaxabs.c: Likewise.
43997         * lib/imaxdiv.c: Likewise.
43998         * lib/inet_pton.c: Likewise.
43999         * lib/inet_pton.h: Likewise.
44000         * lib/intprops.h: Likewise.
44001         * lib/inttostr.c: Likewise.
44002         * lib/inttostr.h: Likewise.
44003         * lib/inttypes.in.h: Likewise.
44004         * lib/isapipe.c: Likewise.
44005         * lib/isdir.c: Likewise.
44006         * lib/isnan.c: Likewise.
44007         * lib/isnan.h: Likewise.
44008         * lib/isnanf.c: Likewise.
44009         * lib/isnanf.h: Likewise.
44010         * lib/isnanl-nolibm.h: Likewise.
44011         * lib/isnanl.c: Likewise.
44012         * lib/isnanl.h: Likewise.
44013         * lib/javacomp.c: Likewise.
44014         * lib/javacomp.h: Likewise.
44015         * lib/javaexec.c: Likewise.
44016         * lib/javaexec.h: Likewise.
44017         * lib/javaversion.c: Likewise.
44018         * lib/javaversion.h: Likewise.
44019         * lib/javaversion.java: Likewise.
44020         * lib/lbrkprop.h: Likewise.
44021         * lib/lchmod.h: Likewise.
44022         * lib/lchown.c: Likewise.
44023         * lib/ldexpl.c: Likewise.
44024         * lib/linebreak.c: Likewise.
44025         * lib/linebreak.h: Likewise.
44026         * lib/linebuffer.c: Likewise.
44027         * lib/linebuffer.h: Likewise.
44028         * lib/locale.in.h: Likewise.
44029         * lib/logl.c: Likewise.
44030         * lib/long-options.c: Likewise.
44031         * lib/long-options.h: Likewise.
44032         * lib/lstat.c: Likewise.
44033         * lib/lstat.h: Likewise.
44034         * lib/math.in.h: Likewise.
44035         * lib/mbchar.c: Likewise.
44036         * lib/mbchar.h: Likewise.
44037         * lib/mbfile.h: Likewise.
44038         * lib/mbiter.h: Likewise.
44039         * lib/mbscasecmp.c: Likewise.
44040         * lib/mbscasestr.c: Likewise.
44041         * lib/mbschr.c: Likewise.
44042         * lib/mbscspn.c: Likewise.
44043         * lib/mbslen.c: Likewise.
44044         * lib/mbsncasecmp.c: Likewise.
44045         * lib/mbsnlen.c: Likewise.
44046         * lib/mbspbrk.c: Likewise.
44047         * lib/mbspcasecmp.c: Likewise.
44048         * lib/mbsrchr.c: Likewise.
44049         * lib/mbssep.c: Likewise.
44050         * lib/mbsspn.c: Likewise.
44051         * lib/mbsstr.c: Likewise.
44052         * lib/mbstok_r.c: Likewise.
44053         * lib/mbswidth.c: Likewise.
44054         * lib/mbswidth.h: Likewise.
44055         * lib/mbuiter.h: Likewise.
44056         * lib/memcasecmp.c: Likewise.
44057         * lib/memcasecmp.h: Likewise.
44058         * lib/memchr.c: Likewise.
44059         * lib/memcmp.c: Likewise.
44060         * lib/memcoll.c: Likewise.
44061         * lib/memcoll.h: Likewise.
44062         * lib/memcpy.c: Likewise.
44063         * lib/memrchr.c: Likewise.
44064         * lib/mkancesdirs.c: Likewise.
44065         * lib/mkdir-p.c: Likewise.
44066         * lib/mkdir-p.h: Likewise.
44067         * lib/mkdir.c: Likewise.
44068         * lib/mkdirat.c: Likewise.
44069         * lib/mkdtemp.c: Likewise.
44070         * lib/mkstemp-safer.c: Likewise.
44071         * lib/mkstemp.c: Likewise.
44072         * lib/modechange.c: Likewise.
44073         * lib/modechange.h: Likewise.
44074         * lib/mountlist.c: Likewise.
44075         * lib/mountlist.h: Likewise.
44076         * lib/mpsort.c: Likewise.
44077         * lib/nanosleep.c: Likewise.
44078         * lib/obstack.c: Likewise.
44079         * lib/obstack.h: Likewise.
44080         * lib/open-safer.c: Likewise.
44081         * lib/open.c: Likewise.
44082         * lib/openat-die.c: Likewise.
44083         * lib/openat-priv.h: Likewise.
44084         * lib/openat-proc.c: Likewise.
44085         * lib/openat.c: Likewise.
44086         * lib/openat.h: Likewise.
44087         * lib/pagealign_alloc.c: Likewise.
44088         * lib/pagealign_alloc.h: Likewise.
44089         * lib/physmem.c: Likewise.
44090         * lib/physmem.h: Likewise.
44091         * lib/pipe-safer.c: Likewise.
44092         * lib/pipe.c: Likewise.
44093         * lib/pipe.h: Likewise.
44094         * lib/posixtm.c: Likewise.
44095         * lib/posixtm.h: Likewise.
44096         * lib/posixver.c: Likewise.
44097         * lib/printf-frexp.c: Likewise.
44098         * lib/printf-frexp.h: Likewise.
44099         * lib/printf-frexpl.c: Likewise.
44100         * lib/printf-frexpl.h: Likewise.
44101         * lib/printf.c: Likewise.
44102         * lib/progname.c: Likewise.
44103         * lib/progname.h: Likewise.
44104         * lib/progreloc.c: Likewise.
44105         * lib/putenv.c: Likewise.
44106         * lib/quote.c: Likewise.
44107         * lib/quote.h: Likewise.
44108         * lib/quotearg.c: Likewise.
44109         * lib/quotearg.h: Likewise.
44110         * lib/raise.c: Likewise.
44111         * lib/readline.c: Likewise.
44112         * lib/readline.h: Likewise.
44113         * lib/readlink.c: Likewise.
44114         * lib/readtokens.c: Likewise.
44115         * lib/readtokens.h: Likewise.
44116         * lib/readtokens0.c: Likewise.
44117         * lib/readtokens0.h: Likewise.
44118         * lib/readutmp.c: Likewise.
44119         * lib/readutmp.h: Likewise.
44120         * lib/realloc.c: Likewise.
44121         * lib/relocwrapper.c: Likewise.
44122         * lib/rename-dest-slash.c: Likewise.
44123         * lib/rename.c: Likewise.
44124         * lib/rmdir.c: Likewise.
44125         * lib/rpmatch.c: Likewise.
44126         * lib/safe-read.c: Likewise.
44127         * lib/safe-read.h: Likewise.
44128         * lib/safe-write.c: Likewise.
44129         * lib/safe-write.h: Likewise.
44130         * lib/same-inode.h: Likewise.
44131         * lib/same.c: Likewise.
44132         * lib/same.h: Likewise.
44133         * lib/save-cwd.c: Likewise.
44134         * lib/save-cwd.h: Likewise.
44135         * lib/savedir.c: Likewise.
44136         * lib/savedir.h: Likewise.
44137         * lib/savewd.c: Likewise.
44138         * lib/savewd.h: Likewise.
44139         * lib/search.in.h: Likewise.
44140         * lib/setenv.c: Likewise.
44141         * lib/setenv.h: Likewise.
44142         * lib/settime.c: Likewise.
44143         * lib/sh-quote.c: Likewise.
44144         * lib/sh-quote.h: Likewise.
44145         * lib/sig2str.c: Likewise.
44146         * lib/sig2str.h: Likewise.
44147         * lib/signal.in.h: Likewise.
44148         * lib/signbitd.c: Likewise.
44149         * lib/signbitf.c: Likewise.
44150         * lib/signbitl.c: Likewise.
44151         * lib/sigprocmask.c: Likewise.
44152         * lib/sincosl.c: Likewise.
44153         * lib/sleep.c: Likewise.
44154         * lib/sprintf.c: Likewise.
44155         * lib/sqrtl.c: Likewise.
44156         * lib/stat-time.h: Likewise.
44157         * lib/stdio--.h: Likewise.
44158         * lib/stdio-safer.h: Likewise.
44159         * lib/stdlib--.h: Likewise.
44160         * lib/stdlib-safer.h: Likewise.
44161         * lib/stdlib.in.h: Likewise.
44162         * lib/stpcpy.c: Likewise.
44163         * lib/stpncpy.c: Likewise.
44164         * lib/strchrnul.c: Likewise.
44165         * lib/strcspn.c: Likewise.
44166         * lib/strerror.c: Likewise.
44167         * lib/strftime.c: Likewise.
44168         * lib/strftime.h: Likewise.
44169         * lib/striconveh.c: Likewise.
44170         * lib/striconveh.h: Likewise.
44171         * lib/striconveha.c: Likewise.
44172         * lib/striconveha.h: Likewise.
44173         * lib/stripslash.c: Likewise.
44174         * lib/strnlen1.c: Likewise.
44175         * lib/strnlen1.h: Likewise.
44176         * lib/strtod.c: Likewise.
44177         * lib/strtoimax.c: Likewise.
44178         * lib/strtok_r.c: Likewise.
44179         * lib/strtol.c: Likewise.
44180         * lib/strtoll.c: Likewise.
44181         * lib/strtoul.c: Likewise.
44182         * lib/strtoull.c: Likewise.
44183         * lib/sysexits.in.h: Likewise.
44184         * lib/tempname.c: Likewise.
44185         * lib/tempname.h: Likewise.
44186         * lib/timespec.h: Likewise.
44187         * lib/tls.c: Likewise.
44188         * lib/tls.h: Likewise.
44189         * lib/tmpdir.c: Likewise.
44190         * lib/tmpdir.h: Likewise.
44191         * lib/tmpfile-safer.c: Likewise.
44192         * lib/tmpfile.c: Likewise.
44193         * lib/trigl.c: Likewise.
44194         * lib/trigl.h: Likewise.
44195         * lib/trim.c: Likewise.
44196         * lib/trim.h: Likewise.
44197         * lib/trunc.c: Likewise.
44198         * lib/truncf.c: Likewise.
44199         * lib/truncl.c: Likewise.
44200         * lib/tsearch.c: Likewise.
44201         * lib/unicodeio.c: Likewise.
44202         * lib/unicodeio.h: Likewise.
44203         * lib/unistd--.h: Likewise.
44204         * lib/unistd-safer.h: Likewise.
44205         * lib/unistdio/ulc-fprintf.c: Likewise.
44206         * lib/unistdio/ulc-vfprintf.c: Likewise.
44207         * lib/unlinkdir.c: Likewise.
44208         * lib/unlinkdir.h: Likewise.
44209         * lib/unlocked-io.h: Likewise.
44210         * lib/unsetenv.c: Likewise.
44211         * lib/userspec.c: Likewise.
44212         * lib/utime.c: Likewise.
44213         * lib/utimecmp.c: Likewise.
44214         * lib/utimecmp.h: Likewise.
44215         * lib/utimens.c: Likewise.
44216         * lib/verify.h: Likewise.
44217         * lib/verror.c: Likewise.
44218         * lib/verror.h: Likewise.
44219         * lib/version-etc-fsf.c: Likewise.
44220         * lib/version-etc.c: Likewise.
44221         * lib/version-etc.h: Likewise.
44222         * lib/vfprintf.c: Likewise.
44223         * lib/vprintf.c: Likewise.
44224         * lib/vsprintf.c: Likewise.
44225         * lib/w32spawn.h: Likewise.
44226         * lib/wait-process.c: Likewise.
44227         * lib/wait-process.h: Likewise.
44228         * lib/wcwidth.c: Likewise.
44229         * lib/write-any-file.c: Likewise.
44230         * lib/xalloc-die.c: Likewise.
44231         * lib/xalloc.h: Likewise.
44232         * lib/xasprintf.c: Likewise.
44233         * lib/xgetcwd.c: Likewise.
44234         * lib/xgetcwd.h: Likewise.
44235         * lib/xgetdomainname.c: Likewise.
44236         * lib/xgetdomainname.h: Likewise.
44237         * lib/xgethostname.c: Likewise.
44238         * lib/xmalloc.c: Likewise.
44239         * lib/xmalloca.c: Likewise.
44240         * lib/xmalloca.h: Likewise.
44241         * lib/xmemcoll.c: Likewise.
44242         * lib/xnanosleep.c: Likewise.
44243         * lib/xreadlink.c: Likewise.
44244         * lib/xreadlink.h: Likewise.
44245         * lib/xsetenv.c: Likewise.
44246         * lib/xsetenv.h: Likewise.
44247         * lib/xstriconv.c: Likewise.
44248         * lib/xstriconv.h: Likewise.
44249         * lib/xstrndup.c: Likewise.
44250         * lib/xstrndup.h: Likewise.
44251         * lib/xstrtod.c: Likewise.
44252         * lib/xstrtod.h: Likewise.
44253         * lib/xstrtol-error.c: Likewise.
44254         * lib/xstrtol.c: Likewise.
44255         * lib/xstrtol.h: Likewise.
44256         * lib/xtime.h: Likewise.
44257         * lib/xvasprintf.c: Likewise.
44258         * lib/xvasprintf.h: Likewise.
44259         * lib/yesno.c: Likewise.
44260         * lib/yesno.h: Likewise.
44261         * posix-modules: Likewise.
44262         * tests/test-alloca-opt.c: Likewise.
44263         * tests/test-arcfour.c: Likewise.
44264         * tests/test-arctwo.c: Likewise.
44265         * tests/test-argmatch.c: Likewise.
44266         * tests/test-argp-2.sh: Likewise.
44267         * tests/test-argp.c: Likewise.
44268         * tests/test-arpa_inet.c: Likewise.
44269         * tests/test-array_list.c: Likewise.
44270         * tests/test-array_oset.c: Likewise.
44271         * tests/test-atexit.c: Likewise.
44272         * tests/test-avltree_list.c: Likewise.
44273         * tests/test-avltree_oset.c: Likewise.
44274         * tests/test-avltreehash_list.c: Likewise.
44275         * tests/test-base64.c: Likewise.
44276         * tests/test-binary-io.c: Likewise.
44277         * tests/test-byteswap.c: Likewise.
44278         * tests/test-c-ctype.c: Likewise.
44279         * tests/test-c-strcasecmp.c: Likewise.
44280         * tests/test-c-strcasestr.c: Likewise.
44281         * tests/test-c-strncasecmp.c: Likewise.
44282         * tests/test-c-strstr.c: Likewise.
44283         * tests/test-canonicalize-lgpl.c: Likewise.
44284         * tests/test-canonicalize.c: Likewise.
44285         * tests/test-carray_list.c: Likewise.
44286         * tests/test-ceilf.c: Likewise.
44287         * tests/test-ceill.c: Likewise.
44288         * tests/test-count-one-bits.c: Likewise.
44289         * tests/test-crc.c: Likewise.
44290         * tests/test-dirname.c: Likewise.
44291         * tests/test-fbufmode.c: Likewise.
44292         * tests/test-fcntl.c: Likewise.
44293         * tests/test-fflush.c: Likewise.
44294         * tests/test-floorf.c: Likewise.
44295         * tests/test-floorl.c: Likewise.
44296         * tests/test-fopen.c: Likewise.
44297         * tests/test-fprintf-posix.c: Likewise.
44298         * tests/test-fprintf-posix.h: Likewise.
44299         * tests/test-fpurge.c: Likewise.
44300         * tests/test-freadable.c: Likewise.
44301         * tests/test-freadahead.c: Likewise.
44302         * tests/test-freading.c: Likewise.
44303         * tests/test-freopen.c: Likewise.
44304         * tests/test-frexp.c: Likewise.
44305         * tests/test-frexpl.c: Likewise.
44306         * tests/test-fseek.c: Likewise.
44307         * tests/test-fseeko.c: Likewise.
44308         * tests/test-fseterr.c: Likewise.
44309         * tests/test-fstrcmp.c: Likewise.
44310         * tests/test-ftell.c: Likewise.
44311         * tests/test-ftello.c: Likewise.
44312         * tests/test-fwritable.c: Likewise.
44313         * tests/test-fwriting.c: Likewise.
44314         * tests/test-getaddrinfo.c: Likewise.
44315         * tests/test-getpass.c: Likewise.
44316         * tests/test-gettimeofday.c: Likewise.
44317         * tests/test-hmac-md5.c: Likewise.
44318         * tests/test-hmac-sha1.c: Likewise.
44319         * tests/test-iconv.c: Likewise.
44320         * tests/test-iconvme.c: Likewise.
44321         * tests/test-inttypes.c: Likewise.
44322         * tests/test-isnan.c: Likewise.
44323         * tests/test-isnanf.c: Likewise.
44324         * tests/test-isnanl-nolibm.c: Likewise.
44325         * tests/test-isnanl.c: Likewise.
44326         * tests/test-isnanl.h: Likewise.
44327         * tests/test-ldexpl.c: Likewise.
44328         * tests/test-linked_list.c: Likewise.
44329         * tests/test-linkedhash_list.c: Likewise.
44330         * tests/test-locale.c: Likewise.
44331         * tests/test-localename.c: Likewise.
44332         * tests/test-lock.c: Likewise.
44333         * tests/test-lseek.c: Likewise.
44334         * tests/test-malloca.c: Likewise.
44335         * tests/test-math.c: Likewise.
44336         * tests/test-mbscasecmp.c: Likewise.
44337         * tests/test-mbscasestr1.c: Likewise.
44338         * tests/test-mbscasestr2.c: Likewise.
44339         * tests/test-mbscasestr3.c: Likewise.
44340         * tests/test-mbscasestr4.c: Likewise.
44341         * tests/test-mbschr.c: Likewise.
44342         * tests/test-mbscspn.c: Likewise.
44343         * tests/test-mbsncasecmp.c: Likewise.
44344         * tests/test-mbspbrk.c: Likewise.
44345         * tests/test-mbspcasecmp.c: Likewise.
44346         * tests/test-mbsrchr.c: Likewise.
44347         * tests/test-mbsspn.c: Likewise.
44348         * tests/test-mbsstr1.c: Likewise.
44349         * tests/test-mbsstr2.c: Likewise.
44350         * tests/test-mbsstr3.c: Likewise.
44351         * tests/test-md5.c: Likewise.
44352         * tests/test-memmem.c: Likewise.
44353         * tests/test-netinet_in.c: Likewise.
44354         * tests/test-open.c: Likewise.
44355         * tests/test-printf-frexp.c: Likewise.
44356         * tests/test-printf-frexpl.c: Likewise.
44357         * tests/test-printf-posix.c: Likewise.
44358         * tests/test-printf-posix.h: Likewise.
44359         * tests/test-rbtree_list.c: Likewise.
44360         * tests/test-rbtree_oset.c: Likewise.
44361         * tests/test-rbtreehash_list.c: Likewise.
44362         * tests/test-read-file.c: Likewise.
44363         * tests/test-rijndael.c: Likewise.
44364         * tests/test-search.c: Likewise.
44365         * tests/test-signbit.c: Likewise.
44366         * tests/test-sleep.c: Likewise.
44367         * tests/test-snprintf-posix.c: Likewise.
44368         * tests/test-snprintf-posix.h: Likewise.
44369         * tests/test-snprintf.c: Likewise.
44370         * tests/test-sprintf-posix.c: Likewise.
44371         * tests/test-sprintf-posix.h: Likewise.
44372         * tests/test-stat-time.c: Likewise.
44373         * tests/test-stdbool.c: Likewise.
44374         * tests/test-stdint.c: Likewise.
44375         * tests/test-stdio.c: Likewise.
44376         * tests/test-stdlib.c: Likewise.
44377         * tests/test-stpncpy.c: Likewise.
44378         * tests/test-strcasestr.c: Likewise.
44379         * tests/test-striconv.c: Likewise.
44380         * tests/test-striconveh.c: Likewise.
44381         * tests/test-striconveha.c: Likewise.
44382         * tests/test-string.c: Likewise.
44383         * tests/test-sys_select.c: Likewise.
44384         * tests/test-sys_socket.c: Likewise.
44385         * tests/test-sys_stat.c: Likewise.
44386         * tests/test-sys_time.c: Likewise.
44387         * tests/test-sysexits.c: Likewise.
44388         * tests/test-time.c: Likewise.
44389         * tests/test-tls.c: Likewise.
44390         * tests/test-trunc.c: Likewise.
44391         * tests/test-truncf.c: Likewise.
44392         * tests/test-truncl.c: Likewise.
44393         * tests/test-unistd.c: Likewise.
44394         * tests/test-vasnprintf-posix.c: Likewise.
44395         * tests/test-vasnprintf-posix2.c: Likewise.
44396         * tests/test-vasnprintf.c: Likewise.
44397         * tests/test-vasprintf-posix.c: Likewise.
44398         * tests/test-vasprintf.c: Likewise.
44399         * tests/test-verify.c: Likewise.
44400         * tests/test-vfprintf-posix.c: Likewise.
44401         * tests/test-vprintf-posix.c: Likewise.
44402         * tests/test-vsnprintf-posix.c: Likewise.
44403         * tests/test-vsnprintf.c: Likewise.
44404         * tests/test-vsprintf-posix.c: Likewise.
44405         * tests/test-wchar.c: Likewise.
44406         * tests/test-wctype.c: Likewise.
44407         * tests/test-wcwidth.c: Likewise.
44408         * tests/test-xstrtol.c: Likewise.
44409         * tests/test-xvasprintf.c: Likewise.
44410         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44411         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44412         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44413         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44414         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44415         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44416         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44417         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44418         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44419         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44420         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44421         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44422         * tests/uniname/test-uninames.c: Likewise.
44423         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44424         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44425         * tests/unistdio/test-u16-printf1.h: Likewise.
44426         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44427         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44428         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44429         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44430         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44431         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44432         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44433         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44434         * tests/unistdio/test-u32-printf1.h: Likewise.
44435         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44436         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44437         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44438         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44439         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44440         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44441         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44442         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44443         * tests/unistdio/test-u8-printf1.h: Likewise.
44444         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44445         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44446         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44447         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44448         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44449         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44450         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44451         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44452         * tests/unistdio/test-ulc-printf1.h: Likewise.
44453         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44454         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44455         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44456         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44457         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44458         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44459         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44460         * tests/uniwidth/test-u16-width.c: Likewise.
44461         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44462         * tests/uniwidth/test-u32-width.c: Likewise.
44463         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44464         * tests/uniwidth/test-u8-width.c: Likewise.
44465         * tests/uniwidth/test-uc_width.c: Likewise.
44466         * config/srclist-update: Likewise.
44467         (fixlicense): Update to GPLv3+.
44468
44469         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44470         * tests/test-tsearch.c: Change copyright notice.
44471
44472         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44473         * lib/c-strcaseeq.h: Change copyright notice.
44474         * lib/streq.h: Likewise.
44475         * lib/uniconv.h: Likewise.
44476         * lib/uniconv/u-conv-from-enc.h: Likewise.
44477         * lib/uniconv/u-conv-to-enc.h: Likewise.
44478         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44479         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44480         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44481         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44482         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44483         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44484         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44485         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44486         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44487         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44488         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44489         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44490         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44491         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44492         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44493         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44494         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44495         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44496         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44497         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44498         * lib/uniname.h: Likewise.
44499         * lib/uniname/uniname.c: Likewise.
44500         * lib/unistdio.h: Likewise.
44501         * lib/unistdio/u-asnprintf.h: Likewise.
44502         * lib/unistdio/u-asprintf.h: Likewise.
44503         * lib/unistdio/u-printf-args.c: Likewise.
44504         * lib/unistdio/u-printf-args.h: Likewise.
44505         * lib/unistdio/u-printf-parse.h: Likewise.
44506         * lib/unistdio/u-snprintf.h: Likewise.
44507         * lib/unistdio/u-sprintf.h: Likewise.
44508         * lib/unistdio/u-vasprintf.h: Likewise.
44509         * lib/unistdio/u-vsnprintf.h: Likewise.
44510         * lib/unistdio/u-vsprintf.h: Likewise.
44511         * lib/unistdio/u16-asnprintf.c: Likewise.
44512         * lib/unistdio/u16-asprintf.c: Likewise.
44513         * lib/unistdio/u16-printf-parse.c: Likewise.
44514         * lib/unistdio/u16-snprintf.c: Likewise.
44515         * lib/unistdio/u16-sprintf.c: Likewise.
44516         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44517         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44518         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44519         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44520         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44521         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44522         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44523         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44524         * lib/unistdio/u16-vasnprintf.c: Likewise.
44525         * lib/unistdio/u16-vasprintf.c: Likewise.
44526         * lib/unistdio/u16-vsnprintf.c: Likewise.
44527         * lib/unistdio/u16-vsprintf.c: Likewise.
44528         * lib/unistdio/u32-asnprintf.c: Likewise.
44529         * lib/unistdio/u32-asprintf.c: Likewise.
44530         * lib/unistdio/u32-printf-parse.c: Likewise.
44531         * lib/unistdio/u32-snprintf.c: Likewise.
44532         * lib/unistdio/u32-sprintf.c: Likewise.
44533         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44534         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44535         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44536         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44537         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44538         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44539         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44540         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44541         * lib/unistdio/u32-vasnprintf.c: Likewise.
44542         * lib/unistdio/u32-vasprintf.c: Likewise.
44543         * lib/unistdio/u32-vsnprintf.c: Likewise.
44544         * lib/unistdio/u32-vsprintf.c: Likewise.
44545         * lib/unistdio/u8-asnprintf.c: Likewise.
44546         * lib/unistdio/u8-asprintf.c: Likewise.
44547         * lib/unistdio/u8-printf-parse.c: Likewise.
44548         * lib/unistdio/u8-snprintf.c: Likewise.
44549         * lib/unistdio/u8-sprintf.c: Likewise.
44550         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44551         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44552         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44553         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44554         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44555         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44556         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44557         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44558         * lib/unistdio/u8-vasnprintf.c: Likewise.
44559         * lib/unistdio/u8-vasprintf.c: Likewise.
44560         * lib/unistdio/u8-vsnprintf.c: Likewise.
44561         * lib/unistdio/u8-vsprintf.c: Likewise.
44562         * lib/unistdio/ulc-asnprintf.c: Likewise.
44563         * lib/unistdio/ulc-asprintf.c: Likewise.
44564         * lib/unistdio/ulc-printf-parse.c: Likewise.
44565         * lib/unistdio/ulc-snprintf.c: Likewise.
44566         * lib/unistdio/ulc-sprintf.c: Likewise.
44567         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44568         * lib/unistdio/ulc-vasprintf.c: Likewise.
44569         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44570         * lib/unistdio/ulc-vsprintf.c: Likewise.
44571         * lib/unistr.h: Likewise.
44572         * lib/unistr/u-cpy-alloc.h: Likewise.
44573         * lib/unistr/u-cpy.h: Likewise.
44574         * lib/unistr/u-endswith.h: Likewise.
44575         * lib/unistr/u-move.h: Likewise.
44576         * lib/unistr/u-set.h: Likewise.
44577         * lib/unistr/u-startswith.h: Likewise.
44578         * lib/unistr/u-stpcpy.h: Likewise.
44579         * lib/unistr/u-stpncpy.h: Likewise.
44580         * lib/unistr/u-strcat.h: Likewise.
44581         * lib/unistr/u-strcpy.h: Likewise.
44582         * lib/unistr/u-strcspn.h: Likewise.
44583         * lib/unistr/u-strdup.h: Likewise.
44584         * lib/unistr/u-strlen.h: Likewise.
44585         * lib/unistr/u-strncat.h: Likewise.
44586         * lib/unistr/u-strncpy.h: Likewise.
44587         * lib/unistr/u-strnlen.h: Likewise.
44588         * lib/unistr/u-strpbrk.h: Likewise.
44589         * lib/unistr/u-strspn.h: Likewise.
44590         * lib/unistr/u-strstr.h: Likewise.
44591         * lib/unistr/u-strtok.h: Likewise.
44592         * lib/unistr/u16-check.c: Likewise.
44593         * lib/unistr/u16-chr.c: Likewise.
44594         * lib/unistr/u16-cmp.c: Likewise.
44595         * lib/unistr/u16-cpy-alloc.c: Likewise.
44596         * lib/unistr/u16-cpy.c: Likewise.
44597         * lib/unistr/u16-endswith.c: Likewise.
44598         * lib/unistr/u16-mblen.c: Likewise.
44599         * lib/unistr/u16-mbsnlen.c: Likewise.
44600         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44601         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44602         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44603         * lib/unistr/u16-mbtouc.c: Likewise.
44604         * lib/unistr/u16-mbtoucr.c: Likewise.
44605         * lib/unistr/u16-move.c: Likewise.
44606         * lib/unistr/u16-next.c: Likewise.
44607         * lib/unistr/u16-prev.c: Likewise.
44608         * lib/unistr/u16-set.c: Likewise.
44609         * lib/unistr/u16-startswith.c: Likewise.
44610         * lib/unistr/u16-stpcpy.c: Likewise.
44611         * lib/unistr/u16-stpncpy.c: Likewise.
44612         * lib/unistr/u16-strcat.c: Likewise.
44613         * lib/unistr/u16-strchr.c: Likewise.
44614         * lib/unistr/u16-strcmp.c: Likewise.
44615         * lib/unistr/u16-strcpy.c: Likewise.
44616         * lib/unistr/u16-strcspn.c: Likewise.
44617         * lib/unistr/u16-strdup.c: Likewise.
44618         * lib/unistr/u16-strlen.c: Likewise.
44619         * lib/unistr/u16-strmblen.c: Likewise.
44620         * lib/unistr/u16-strmbtouc.c: Likewise.
44621         * lib/unistr/u16-strncat.c: Likewise.
44622         * lib/unistr/u16-strncmp.c: Likewise.
44623         * lib/unistr/u16-strncpy.c: Likewise.
44624         * lib/unistr/u16-strnlen.c: Likewise.
44625         * lib/unistr/u16-strpbrk.c: Likewise.
44626         * lib/unistr/u16-strrchr.c: Likewise.
44627         * lib/unistr/u16-strspn.c: Likewise.
44628         * lib/unistr/u16-strstr.c: Likewise.
44629         * lib/unistr/u16-strtok.c: Likewise.
44630         * lib/unistr/u16-to-u32.c: Likewise.
44631         * lib/unistr/u16-to-u8.c: Likewise.
44632         * lib/unistr/u16-uctomb-aux.c: Likewise.
44633         * lib/unistr/u16-uctomb.c: Likewise.
44634         * lib/unistr/u32-check.c: Likewise.
44635         * lib/unistr/u32-chr.c: Likewise.
44636         * lib/unistr/u32-cmp.c: Likewise.
44637         * lib/unistr/u32-cpy-alloc.c: Likewise.
44638         * lib/unistr/u32-cpy.c: Likewise.
44639         * lib/unistr/u32-endswith.c: Likewise.
44640         * lib/unistr/u32-mblen.c: Likewise.
44641         * lib/unistr/u32-mbsnlen.c: Likewise.
44642         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44643         * lib/unistr/u32-mbtouc.c: Likewise.
44644         * lib/unistr/u32-mbtoucr.c: Likewise.
44645         * lib/unistr/u32-move.c: Likewise.
44646         * lib/unistr/u32-next.c: Likewise.
44647         * lib/unistr/u32-prev.c: Likewise.
44648         * lib/unistr/u32-set.c: Likewise.
44649         * lib/unistr/u32-startswith.c: Likewise.
44650         * lib/unistr/u32-stpcpy.c: Likewise.
44651         * lib/unistr/u32-stpncpy.c: Likewise.
44652         * lib/unistr/u32-strcat.c: Likewise.
44653         * lib/unistr/u32-strchr.c: Likewise.
44654         * lib/unistr/u32-strcmp.c: Likewise.
44655         * lib/unistr/u32-strcpy.c: Likewise.
44656         * lib/unistr/u32-strcspn.c: Likewise.
44657         * lib/unistr/u32-strdup.c: Likewise.
44658         * lib/unistr/u32-strlen.c: Likewise.
44659         * lib/unistr/u32-strmblen.c: Likewise.
44660         * lib/unistr/u32-strmbtouc.c: Likewise.
44661         * lib/unistr/u32-strncat.c: Likewise.
44662         * lib/unistr/u32-strncmp.c: Likewise.
44663         * lib/unistr/u32-strncpy.c: Likewise.
44664         * lib/unistr/u32-strnlen.c: Likewise.
44665         * lib/unistr/u32-strpbrk.c: Likewise.
44666         * lib/unistr/u32-strrchr.c: Likewise.
44667         * lib/unistr/u32-strspn.c: Likewise.
44668         * lib/unistr/u32-strstr.c: Likewise.
44669         * lib/unistr/u32-strtok.c: Likewise.
44670         * lib/unistr/u32-to-u16.c: Likewise.
44671         * lib/unistr/u32-to-u8.c: Likewise.
44672         * lib/unistr/u32-uctomb.c: Likewise.
44673         * lib/unistr/u8-check.c: Likewise.
44674         * lib/unistr/u8-chr.c: Likewise.
44675         * lib/unistr/u8-cmp.c: Likewise.
44676         * lib/unistr/u8-cpy-alloc.c: Likewise.
44677         * lib/unistr/u8-cpy.c: Likewise.
44678         * lib/unistr/u8-endswith.c: Likewise.
44679         * lib/unistr/u8-mblen.c: Likewise.
44680         * lib/unistr/u8-mbsnlen.c: Likewise.
44681         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44682         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44683         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44684         * lib/unistr/u8-mbtouc.c: Likewise.
44685         * lib/unistr/u8-mbtoucr.c: Likewise.
44686         * lib/unistr/u8-move.c: Likewise.
44687         * lib/unistr/u8-next.c: Likewise.
44688         * lib/unistr/u8-prev.c: Likewise.
44689         * lib/unistr/u8-set.c: Likewise.
44690         * lib/unistr/u8-startswith.c: Likewise.
44691         * lib/unistr/u8-stpcpy.c: Likewise.
44692         * lib/unistr/u8-stpncpy.c: Likewise.
44693         * lib/unistr/u8-strcat.c: Likewise.
44694         * lib/unistr/u8-strchr.c: Likewise.
44695         * lib/unistr/u8-strcmp.c: Likewise.
44696         * lib/unistr/u8-strcpy.c: Likewise.
44697         * lib/unistr/u8-strcspn.c: Likewise.
44698         * lib/unistr/u8-strdup.c: Likewise.
44699         * lib/unistr/u8-strlen.c: Likewise.
44700         * lib/unistr/u8-strmblen.c: Likewise.
44701         * lib/unistr/u8-strmbtouc.c: Likewise.
44702         * lib/unistr/u8-strncat.c: Likewise.
44703         * lib/unistr/u8-strncmp.c: Likewise.
44704         * lib/unistr/u8-strncpy.c: Likewise.
44705         * lib/unistr/u8-strnlen.c: Likewise.
44706         * lib/unistr/u8-strpbrk.c: Likewise.
44707         * lib/unistr/u8-strrchr.c: Likewise.
44708         * lib/unistr/u8-strspn.c: Likewise.
44709         * lib/unistr/u8-strstr.c: Likewise.
44710         * lib/unistr/u8-strtok.c: Likewise.
44711         * lib/unistr/u8-to-u16.c: Likewise.
44712         * lib/unistr/u8-to-u32.c: Likewise.
44713         * lib/unistr/u8-uctomb-aux.c: Likewise.
44714         * lib/unistr/u8-uctomb.c: Likewise.
44715         * lib/unitypes.h: Likewise.
44716         * lib/uniwidth.h: Likewise.
44717         * lib/uniwidth/cjk.h: Likewise.
44718         * lib/uniwidth/u16-strwidth.c: Likewise.
44719         * lib/uniwidth/u16-width.c: Likewise.
44720         * lib/uniwidth/u32-strwidth.c: Likewise.
44721         * lib/uniwidth/u32-width.c: Likewise.
44722         * lib/uniwidth/u8-strwidth.c: Likewise.
44723         * lib/uniwidth/u8-width.c: Likewise.
44724         * lib/uniwidth/width.c: Likewise.
44725
44726 2007-10-07  Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44729         The file is still under LGPL (see modules/inttypes).
44730
44731 2007-10-06  Bruno Haible  <bruno@clisp.org>
44732
44733         * modules/trunc (Dependencies): Add 'extensions'.
44734         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44735         Reported by Ben Pfaff <blp@gnu.org>.
44736
44737 2007-10-06  Bruno Haible  <bruno@clisp.org>
44738
44739         * modules/freopen-tests: New file.
44740         * tests/test-freopen.c: New file.
44741
44742         * modules/fopen-tests: New file.
44743         * tests/test-fopen.c: New file.
44744
44745         * modules/fopen: New file.
44746         * lib/fopen.c: New file.
44747         * m4/fopen.m4: New file.
44748         * modules/freopen: New file.
44749         * lib/freopen.c: New file.
44750         * m4/freopen.m4: New file.
44751         * lib/stdio.in.h (fopen, freopen): New declarations.
44752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44753         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44754         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44755         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44756         * doc/functions/fopen.texi: Mention the 'fopen' module.
44757         * doc/functions/freopen.texi: Mention the 'freopen' module.
44758
44759 2007-10-06  Bruno Haible  <bruno@clisp.org>
44760
44761         * modules/open-tests: New file.
44762         * tests/test-open.c: New file.
44763
44764         * modules/open: New file.
44765         * lib/open.c: New file.
44766         * m4/open.m4: New file.
44767         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44768         lib/open.c does.
44769         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44770         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44771         macros.
44772         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44773         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44774         REPLACE_OPEN.
44775         * doc/functions/open.texi: Mention the 'open' module.
44776
44777 2007-10-04  Bruno Haible  <bruno@clisp.org>
44778
44779         * modules/ceill-tests: New file.
44780         * tests/test-ceill.c: New file.
44781
44782         * modules/ceill: New file.
44783         * lib/ceill.c: Replace entire file.
44784         * m4/ceill.m4: New file.
44785         * lib/math.in.h (ceill): Replace declaration.
44786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44787         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44788         * doc/functions/ceill.texi: Mention the 'ceill' module.
44789         * modules/mathl (Files): Remove lib/ceill.c.
44790         (Depends-on): Add ceill.
44791
44792 2007-10-04  Bruno Haible  <bruno@clisp.org>
44793
44794         * modules/ceilf-tests: New file.
44795         * tests/test-ceilf.c: New file.
44796
44797         * modules/ceilf: New file.
44798         * lib/ceil.c: New file.
44799         * lib/ceilf.c: New file.
44800         * m4/ceilf.m4: New file.
44801         * lib/math.in.h (ceilf): New declaration.
44802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44803         HAVE_DECL_CEILF.
44804         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44805         HAVE_DECL_CEILF.
44806         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44807
44808 2007-10-04  Bruno Haible  <bruno@clisp.org>
44809
44810         * modules/floorl-tests: New file.
44811         * tests/test-floorl.c: New file.
44812
44813         * modules/floorl: New file.
44814         * lib/floorl.c: Replace entire file.
44815         * m4/floorl.m4: New file.
44816         * lib/math.in.h (floorl): Replace declaration.
44817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44818         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44819         * doc/functions/floorl.texi: Mention the 'floorl' module.
44820         * modules/mathl (Files): Remove lib/floorl.c.
44821         (Depends-on): Add floorl.
44822
44823 2007-10-04  Bruno Haible  <bruno@clisp.org>
44824
44825         * modules/floorf-tests: New file.
44826         * tests/test-floorf.c: New file.
44827
44828         * modules/floorf: New file.
44829         * lib/floor.c: New file.
44830         * lib/floorf.c: New file.
44831         * m4/floorf.m4: New file.
44832         * lib/math.in.h (floorf): New declaration.
44833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44834         HAVE_DECL_FLOORF.
44835         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44836         HAVE_DECL_FLOORF.
44837         * doc/functions/floorf.texi: Mention the 'floorf' module.
44838
44839 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44840             Bruno Haible  <bruno@clisp.org>
44841
44842         Advertise for the Git server instead of the CVS server.
44843         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44844         repository instead of the CVS one.
44845         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44846         about all VCS systems generically.
44847         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44848
44849 2007-10-04  Bruno Haible  <bruno@clisp.org>
44850
44851         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44852         means.
44853         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44854
44855 2007-10-04  Bruno Haible  <bruno@clisp.org>
44856
44857         * modules/truncl-tests: New file.
44858         * tests/test-truncl.c: New file.
44859
44860         * modules/truncl: New file.
44861         * lib/truncl.c: New file.
44862         * m4/truncl.m4: New file.
44863         * lib/math.in.h (truncl): New declaration.
44864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44865         HAVE_DECL_TRUNCL.
44866         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44867         HAVE_DECL_TRUNCL.
44868         * doc/functions/truncl.texi: Mention the 'truncl' module.
44869
44870 2007-10-04  Bruno Haible  <bruno@clisp.org>
44871
44872         * modules/truncf-tests: New file.
44873         * tests/test-truncf.c: New file.
44874
44875         * modules/truncf: New file.
44876         * lib/trunc.c: Make paramerizable through USE_* macros.
44877         * lib/truncf.c: New file.
44878         * m4/truncf.m4: New file.
44879         * lib/math.in.h (truncf): New declaration.
44880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44881         HAVE_DECL_TRUNCF.
44882         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44883         HAVE_DECL_TRUNCF.
44884         * doc/functions/truncf.texi: Mention the 'truncf' module.
44885
44886 2007-10-03  Bruno Haible  <bruno@clisp.org>
44887
44888         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44889         augmentation also for tests modules.
44890         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44891         * modules/atexit-tests (Makefile.am): Likewise.
44892         * modules/binary-io-tests (Makefile.am): Likewise.
44893         * modules/c-strcase-tests (Makefile.am): Likewise.
44894         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44895         * modules/canonicalize-tests (Makefile.am): Likewise.
44896         * modules/closein-tests (Makefile.am): Likewise.
44897         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44898         * modules/freadahead-tests (Makefile.am): Likewise.
44899         * modules/fseek-tests (Makefile.am): Likewise.
44900         * modules/fseeko-tests (Makefile.am): Likewise.
44901         * modules/ftell-tests (Makefile.am): Likewise.
44902         * modules/ftello-tests (Makefile.am): Likewise.
44903         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44904         * modules/isnanl-tests (Makefile.am): Likewise.
44905         * modules/lseek-tests (Makefile.am): Likewise.
44906         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44907         * modules/mbscasestr-tests (Makefile.am): Likewise.
44908         * modules/mbschr-tests (Makefile.am): Likewise.
44909         * modules/mbscspn-tests (Makefile.am): Likewise.
44910         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44911         * modules/mbspbrk-tests (Makefile.am): Likewise.
44912         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44913         * modules/mbsrchr-tests (Makefile.am): Likewise.
44914         * modules/mbsspn-tests (Makefile.am): Likewise.
44915         * modules/mbsstr-tests (Makefile.am): Likewise.
44916         * modules/printf-posix-tests (Makefile.am): Likewise.
44917         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44918         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44919         * modules/tsearch-tests (Makefile.am): Likewise.
44920         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44921         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44922         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44923         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44924         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44925         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44926         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44927         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44928         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44929         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44930         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44931         * modules/xstrtol-tests (Makefile.am): Likewise.
44932         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44933         * modules/yesno-tests (Makefile.am): Likewise.
44934
44935 2007-10-03  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/trunc-tests: New file.
44938         * tests/test-trunc.c: New file.
44939
44940         * modules/trunc: New file.
44941         * lib/trunc.c: New file.
44942         * m4/trunc.m4: New file.
44943         * lib/math.in.h (trunc): New declaration.
44944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44945         HAVE_DECL_TRUNC.
44946         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44947         HAVE_DECL_TRUNC.
44948         * doc/functions/trunc.texi: Mention the 'trunc' module.
44949
44950 2007-10-03  Bruno Haible  <bruno@clisp.org>
44951
44952         * tests/test-fpending.c: New file, mostly copied
44953         from coreutils/lib/t-fpending.c.
44954         * modules/fpending-tests: New file.
44955
44956 2007-10-03  Bruno Haible  <bruno@clisp.org>
44957
44958         Port the stdio extensions to QNX (untested).
44959         * lib/fseterr.c (fseterr): Add support for QNX.
44960         * lib/fbufmode.c (fbufmode): Likewise.
44961         * lib/freadable.c (freadable): Likewise.
44962         * lib/fwritable.c (fwritable): Likewise.
44963         * lib/freading.c (freading): Likewise.
44964         * lib/fwriting.c (fwriting): Likewise.
44965         * lib/freadahead.c (freadahed): Likewise.
44966         * lib/fpurge.c (fpurge): Likewise.
44967         * lib/fseeko.c (rpl_fseeko): Likewise.
44968
44969 2007-10-03  Bruno Haible  <bruno@clisp.org>
44970             Jim Meyering  <jim@meyering.net>
44971             Eric Blake  <ebb9@byu.net>
44972
44973         * doc/relocatable.texi: Use @command instead of @program.
44974
44975 2007-10-02  Jim Meyering  <jim@meyering.net>
44976
44977         Perform one more "_.h" -> ".in.h" substitution.
44978         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44979         instead of unistd_.h here, too.
44980
44981 2007-10-01  Bruno Haible  <bruno@clisp.org>
44982
44983         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44984         Needed for the alloca-opt module.
44985
44986 2007-09-30  Bruno Haible  <bruno@clisp.org>
44987
44988         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44989         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44990         alloca_.h.
44991         * lib/argz.in.h: Renamed from lib/argz_.h.
44992         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44993         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44994         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44995         byteswap_.h.
44996         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44997         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44998         dirent_.h.
44999         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45000         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45001         fcntl_.h.
45002         * lib/float.in.h: Renamed from lib/float_.h.
45003         * modules/float (Files, Makefile.am): Use float.in.h instead of
45004         float_.h.
45005         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45006         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45007         fnmatch_.h.
45008         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45009         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45010         getopt_.h.
45011         * lib/glob.in.h: Renamed from lib/glob_.h.
45012         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45013         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45014         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45015         iconv_.h.
45016         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45017         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45018         inttypes_.h.
45019         * lib/locale.in.h: Renamed from lib/locale_.h.
45020         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45021         locale_.h.
45022         * lib/math.in.h: Renamed from lib/math_.h.
45023         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45024         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45025         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45026         of netinet_in_.h. Add dependency.
45027         * lib/poll.in.h: Renamed from lib/poll_.h.
45028         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45029         * lib/search.in.h: Renamed from lib/search_.h.
45030         * modules/search (Files, Makefile.am): Use search.in.h instead of
45031         search_.h.
45032         * lib/signal.in.h: Renamed from lib/signal_.h.
45033         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45034         _signal.h.
45035         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45036         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45037         stdbool_.h.
45038         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45039         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45040         stdint_.h.
45041         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45042         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45043         stdio_.h.
45044         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45045         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45046         stdlib_.h.
45047         * lib/string.in.h: Renamed from lib/string_.h.
45048         * modules/string (Files, Makefile.am): Use string.in.h instead of
45049         string_.h.
45050         * doc/gnulib-tool.texi (Initial import): Update.
45051         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45052         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45053         of sys_select_.h. Add dependency.
45054         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45055         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45056         of sys_socket_.h.
45057         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45058         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45059         sys_stat_.h.
45060         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45061         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45062         sys_time_.h.
45063         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45064         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45065         sysexits_.h.
45066         * lib/time.in.h: Renamed from lib/time_.h.
45067         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45068         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45069         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45070         unistd_.h.
45071         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45072         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45073         wchar_.h.
45074         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45075         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45076         wctype_.h.
45077         * build-aux/bootstrap (slurp): Update.
45078         * lib/.cppi-disable: Update.
45079
45080 2007-09-30  Bruno Haible  <bruno@clisp.org>
45081
45082         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45083         Needed on BeOS.
45084
45085 2007-09-30  Bruno Haible  <bruno@clisp.org>
45086
45087         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45088
45089 2007-09-29  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45092
45093 2007-09-29  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45096         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45097         * build-aux/install-reloc: Compile also areadlink.c.
45098         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45099
45100 2007-09-29  Bruno Haible  <bruno@clisp.org>
45101
45102         * gnulib-tool (func_emit_initmacro_done): Indentation.
45103
45104 2007-09-29  Bruno Haible  <bruno@clisp.org>
45105
45106         * README: Add CVS checkout update instructions.
45107         Info from Bob Proulx <bob@proulx.com>.
45108
45109 2007-09-28  Eric Blake  <ebb9@byu.net>
45110
45111         Provide move-if-change.
45112         * build-aux/move-if-change: New file, based on best practice
45113         rather than any canonical upstream location.
45114
45115 2007-09-28  Jim Meyering  <jim@meyering.net>
45116
45117         Fix canonicalize loop-detection corner case.
45118         Do not attempt to stat the symlink values stored via seen_triple.
45119         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45120         on linux-2.6.18, (but not 2.6.22).
45121         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45122         triple_compare.  The former compares dev,ino,filename, while the latter
45123         would actually stat dirname(filename) when dev and ino were equal.
45124         * lib/hash-triple.c: Install <string.h>.
45125         (STREQ): Define.
45126         (triple_compare_ino_str): New function.
45127         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45128
45129 2007-09-28  Eric Blake  <ebb9@byu.net>
45130
45131         Enforce that AC_REPLACE_FUNCS files exist.
45132         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45133         override check for typos.
45134
45135         Fix test-closein on Solaris 10.
45136         * tests/test-closein.c (main): Don't assume stdin can be inherited
45137         closed on all systems.
45138         * tests/test-closein.sh: Likewise.
45139         Reported by Piotr Tarnowski.
45140
45141 2007-09-28  Jim Meyering  <jim@meyering.net>
45142
45143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45144
45145 2007-09-27  Jim Meyering  <jim@meyering.net>
45146
45147         canonicalize: Avoid a false-positive cycle failure.
45148         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45149         Sort.  Remove cycle-check.
45150         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45151         not cycle-check.h.
45152         (seen_triple): New function.
45153         (canonicalize_filename_mode): Use it instead of cycle-check.
45154         * tests/test-canonicalize.c: Add a test for this bug.
45155         * tests/test-canonicalize.sh: Set up and run the test.
45156
45157         New module, file-set, from coreutils.
45158         * modules/file-set: Define it.
45159         * lib/file-set.c, lib/file-set.h: Implement.
45160
45161         New module, hash-triple, from coreutils.
45162         * modules/hash-triple: Define it.
45163         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45164
45165 2007-09-25  Eric Blake  <ebb9@byu.net>
45166
45167         Fix strerror on Interix.
45168         * lib/string_.h (strerror): Declare replacement.
45169         * doc/functions/strerror.texi (strerror): Document the Interix
45170         shortcoming.
45171         * modules/string (Makefile.am): Support new hooks.
45172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45173         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45174         gl_FUNC_STRERROR_SEPARATE.
45175         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45176         * lib/strerror.c (rpl_strerror): Provide replacement.
45177         * modules/strerror (Depends-on): Add string.
45178         (configure.ac): Detect use of module.
45179         * tests/test-strerror.c: New file.
45180         * modules/strerror-tests: New test module.
45181         * modules/argp (Depends-on): Add strerror.
45182         * modules/error (Depends-on): Likewise.
45183         Reported by Martin Koeppe.
45184
45185 2007-09-24  Bruno Haible  <bruno@clisp.org>
45186
45187         * README: Update git instructions.
45188
45189 2007-09-24  Eric Blake  <ebb9@byu.net>
45190
45191         Revert fpending breakage from 2007-09-08.
45192         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45193         __fpending.c.
45194
45195 2007-09-24  Jim Meyering  <jim@meyering.net>
45196
45197         filenamecat.c: Add a test.
45198         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45199         showing how the function works when DIR is the empty string.
45200
45201 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45202
45203         * tests/test-canonicalize.sh: Turn on executable bit.
45204
45205 2007-09-19  Eric Blake  <ebb9@byu.net>
45206
45207         * README: Update CVS instructions.
45208
45209 2007-09-18  Bruno Haible  <bruno@clisp.org>
45210
45211         * modules/areadlink: New file.
45212         * lib/areadlink.h (areadlink): New declaration.
45213         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45214
45215 2007-09-17  Jim Meyering  <jim@meyering.net>
45216
45217         * lib/savewd.c (ESTALE) [!defined]: Define.
45218         Reported to be required on Interix by Martin Koeppe.
45219
45220 2007-09-17  Bruno Haible  <bruno@clisp.org>
45221
45222         * gnulib-tool (func_version): Use $version.
45223
45224 2007-09-16  Bruno Haible  <bruno@clisp.org>
45225
45226         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45227         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45228         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45229         Reported by Greg Schafer <gschafer@zip.com.au>.
45230
45231 2007-09-15  Bruno Haible  <bruno@clisp.org>
45232
45233         * gnulib-tool (sed): Try a little harder to make bash understand the
45234         alias.
45235         Reported by Bruce Korb <bruce.korb@gmail.com>.
45236
45237 2007-09-13  Eric Blake  <ebb9@byu.net>
45238
45239         * ChangeLog: Remove conflict markers.
45240
45241 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45242
45243         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45244         Reported by Bruno Haible <bruno@clisp.org>.
45245
45246 2007-09-12  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45249         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45250         is not defined.
45251
45252 2007-09-12  Eric Blake  <ebb9@byu.net>
45253
45254         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45255         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45256         Autoconf definition.
45257         * modules/euidaccess (Depends-on): Add extensions, for
45258         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45259         * modules/fnmatch (Depends-on): Likewise.
45260         * modules/getaddrinfo (Depends-on): Likewise.
45261         * modules/getdelim (Depends-on): Likewise.
45262         * modules/getline (Depends-on): Likewise.
45263         * modules/getsubopt (Depends-on): Likewise.
45264         * modules/gettext (Depends-on): Likewise.
45265         * modules/group-member (Depends-on): Likewise.
45266         * modules/mbchar (Depends-on): Likewise.
45267         * modules/memmem (Depends-on): Likewise.
45268         * modules/mempcpy (Depends-on): Likewise.
45269         * modules/memrchr (Depends-on): Likewise.
45270         * modules/pagealign_alloc (Depends-on): Likewise.
45271         * modules/readutmp (Depends-on): Likewise.
45272         * modules/stpcpy (Depends-on): Likewise.
45273         * modules/stpncpy (Depends-on): Likewise.
45274         * modules/strchrnul (Depends-on): Likewise.
45275         * modules/strndup (Depends-on): Likewise.
45276         * modules/strsep (Depends-on): Likewise.
45277         * modules/strverscmp (Depends-on): Likewise.
45278         * modules/vasprintf (Depends-on): Likewise.
45279         * modules/wcwidth (Depends-on): Likewise.
45280         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45281         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45282         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45283         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45285         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45286         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45287         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45288         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45289         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45291         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45292         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45293         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45294         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45295         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45296         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45297         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45298         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45299         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45301         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45302         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45303         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45304         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45306         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45307         so that lock.m4 can be used in gettext without extensions module.
45308
45309 2007-09-11  Bruno Haible  <bruno@clisp.org>
45310
45311         * m4/isc-posix.m4: Remove file.
45312         Suggested by Eric Blake.
45313
45314 2007-09-11  Eric Blake  <ebb9@byu.net>
45315
45316         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45317
45318 2007-09-10  Bruno Haible  <bruno@clisp.org>
45319
45320         * posix-modules: Fix typo in error message.
45321         Reported by Matt <mkraai@beckman.com>.
45322
45323 2007-09-09  Bruno Haible  <bruno@clisp.org>
45324
45325         * doc/functions/getdelim.texi: Update list of platforms lacking the
45326         function.
45327         * doc/functions/getline.texi: Likewise.
45328
45329 2007-09-09  Jim Meyering  <jim@meyering.net>
45330
45331         * lib/hash.c (hash_initialize): Detect calloc failure.
45332         Reported by Bruno Haible.
45333
45334 2007-09-09  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45337         malloc or realloc fails.
45338
45339 2007-09-09  Bruno Haible  <bruno@clisp.org>
45340
45341         * modules/getcwd (Depends-on): Add malloc-posix.
45342         * modules/glob (Depends-on): Likewise.
45343         * modules/putenv (Depends-on): Likewise.
45344         * modules/strdup (Depends-on): Likewise.
45345         * modules/getdelim (Depends-on): Add realloc-posix.
45346         * modules/read-file (Depends-on): Likewise.
45347
45348 2007-09-09  Bruno Haible  <bruno@clisp.org>
45349
45350         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45351         (gl_FUNC_MALLOC_POSIX): Require it.
45352         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45353         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45354         * modules/realloc (Files): Add m4/malloc.m4.
45355         * modules/calloc (Files): Likewise.
45356
45357 2007-09-09  Bruno Haible  <bruno@clisp.org>
45358
45359         * modules/malloc-posix: New file.
45360         * modules/malloc (Depends-on): Add malloc-posix.
45361         * lib/malloc.c: Include errno.h.
45362         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45363         and a POSIX-compatible malloc into a single function. Set ENOMEM
45364         when returning NULL.
45365         * m4/malloc.m4: New file.
45366         * doc/functions/malloc.texi: Mention the malloc-posix module.
45367         * lib/stdlib_.h (malloc): New declaration.
45368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45369         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45370         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45371         and HAVE_MALLOC_POSIX.
45372
45373 2007-09-09  Bruno Haible  <bruno@clisp.org>
45374
45375         * modules/realloc-posix: New file.
45376         * modules/realloc (Depends-on): Add realloc-posix.
45377         * lib/realloc.c: Include errno.h.
45378         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45379         and a POSIX-compatible realloc into a single function. Set ENOMEM
45380         when returning NULL.
45381         * m4/realloc.m4: New file.
45382         * doc/functions/realloc.texi: Mention the realloc-posix module.
45383         * lib/stdlib_.h (realloc): New declaration.
45384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45385         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45386         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45387         and HAVE_REALLOC_POSIX.
45388
45389 2007-09-09  Bruno Haible  <bruno@clisp.org>
45390
45391         * modules/calloc-posix: New file.
45392         * modules/calloc (Depends-on): Add calloc-posix.
45393         * lib/calloc.c: Include errno.h.
45394         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45395         and a POSIX-compatible calloc into a single function. Set ENOMEM
45396         when returning NULL.
45397         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45398         * doc/functions/calloc.texi: Mention the calloc-posix module.
45399         * lib/stdlib_.h (calloc): New declaration.
45400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45401         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45402         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45403         and HAVE_CALLOC_POSIX.
45404
45405 2007-09-09  Bruno Haible  <bruno@clisp.org>
45406
45407         Allow for modules to show an arbitrary notice.
45408         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45409         * gnulib-tool: New option --extract-notice.
45410         (func_usage): Document it.
45411         (sed_extract_prog): Update.
45412         (func_get_notice): New function.
45413         (func_modules_notice): New function.
45414         (func_import, func_create_testdir): Invoke it.
45415         Suggested by Jim Meyering.
45416
45417 2007-09-09  Bruno Haible  <bruno@clisp.org>
45418
45419         * gnulib-tool: New options --verbose, --quiet.
45420         (func_usage): Document them.
45421         (verbose): New variable.
45422         (func_execute_command): New function.
45423         (func_import): Don't show the module list and the file list if
45424         $verbose < 0.
45425         (func_create_testdir): Likewise. Use func_execute_command.
45426         (func_create_megatestdir): Use func_execute_command.
45427
45428 2007-09-08  Bruno Haible  <bruno@clisp.org>
45429
45430         * gnulib-tool (func_import): Prefer rsync over wget when available,
45431         for fetching the PO files.
45432
45433 2007-09-08  Bruno Haible  <bruno@clisp.org>
45434
45435         * posix-modules: New file. Portions copied from gnulib-tool.
45436         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45437
45438 2007-09-08  Jim Meyering  <jim@meyering.net>
45439
45440         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45441         * lib/fpending.h: Rename from __fpending.h.
45442         * lib/fpending.c: Rename from __fpending.c.
45443         Include "fpending.h", not "__fpending.h".
45444         * lib/__fpending.h, lib/__fpending.c: Remove files.
45445         * modules/fpending (Files): Reflect new file names.
45446         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45447
45448 2007-09-08  Bruno Haible  <bruno@clisp.org>
45449
45450         * m4/inttypes-h.m4: Remove stub file.
45451
45452 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45453
45454         * doc/headers/stdint.texi: Discuss #include_next issue.
45455
45456 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45457
45458         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45459
45460 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45461
45462         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45463         in variable name.
45464
45465 2007-09-03  Jim Meyering  <jim@meyering.net>
45466
45467         New module: git-version-gen.
45468         * modules/git-version-gen: New file.
45469
45470         Import changes from coreutils for bootstrap script.
45471
45472         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45473
45474         bootstrap: uses rsync to download the .po files
45475         * build-aux/bootstrap (po_download_command_format): New global.
45476         (download_po_files): Use rsync.
45477         (update_po_files): Don't remove .po files after download,
45478         so future rsync runs can take advantage of the copies.
45479
45480         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45481
45482         Solve the unnecessary-.po-file-regeneration problem once and for all.
45483         * build-aux/bootstrap (download_po_files): New function, renamed from
45484         get_translations.  Now, downloads, but doesn't update LINGUAS.
45485         (update_po_files): New function.
45486
45487         bootstrap: Ignore more.
45488         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45489         uniwidth to e.g., lib/.gitignore.
45490         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45491
45492         * build-aux/bootstrap: New setting: vc_ignore.
45493         (insert_sorted_if_absent): Create $file if absent.
45494         Adapt to new, possibly empty, list: $vc_ignore.
45495
45496         bootstrap: generate more ignorable names
45497         * build-aux/bootstrap (slurp): When generating ignorable names,
45498         also map .sin to .sed, .gperf to .c, and .y to .c.
45499
45500 2007-09-03  Jim Meyering  <jim@meyering.net>
45501
45502         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45503         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45504
45505 2007-09-02  Bruno Haible  <bruno@clisp.org>
45506
45507         Fix mis-recognition of 'mcs' on QNX 6.
45508         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45509         output contains the string "Mono".
45510         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45511         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45512
45513 2007-09-01  Bruno Haible  <bruno@clisp.org>
45514
45515         Fix collision between uniwidth/* and linebreak modules.
45516         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45517         u32_width): Remove declarations.
45518         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45519         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45520         streq3, streq2, streq1, streq0): Remove functions.
45521         (STREQ): Remove macro.
45522         (is_cjk_encoding): Remove function.
45523         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45524         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45525         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45526         * NEWS: Document the change.
45527
45528 2007-09-01  Bruno Haible  <bruno@clisp.org>
45529
45530         * lib/streq.h: Add double-inclusion guard.
45531
45532 2007-09-01  Karl Berry  <karl@gnu.org>
45533
45534         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45535
45536 2007-08-28  Jim Meyering  <jim@meyering.net>
45537
45538         Rename mreadlink_with_size to areadlink_with_size.
45539         * NEWS: Document the change.
45540         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45541         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45542         * lib/mreadlink.h: Rename this to...
45543         * lib/areadlink.h: ...this.
45544         * modules/mreadlink-with-size: Rename this to...
45545         * modules/areadlink-with-size: ...this.
45546         * lib/canonicalize.c: Reflect the renaming.
45547         * modules/canonicalize: Likewise.
45548
45549 2007-08-26  Bruno Haible  <bruno@clisp.org>
45550
45551         * gnulib-tool (func_import): When deciding which files to remove,
45552         consider also dangling symbolic links.
45553         Reported by Eric Blake.
45554
45555 2007-08-26  Bruno Haible  <bruno@clisp.org>
45556
45557         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45558
45559 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45560
45561         * lib/readline.c: Don't include getline.h, the prototype is now
45562         found in stdio.h.
45563
45564 2007-08-23  Jim Meyering  <jim@meyering.net>
45565
45566         Getdelim touchup.
45567         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45568         around the funlockfile call, since funlockfile never sets errno.
45569         Don't set errno upon failed realloc.
45570
45571 2007-08-22  Eric Blake  <ebb9@byu.net>
45572
45573         Getline touchups.
45574         * lib/getdelim.c (getdelim): Revert regression that required *n to
45575         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45576         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45577         getdelim, rather than whether implementation is missing.
45578         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45579         * lib/stdio_.h (getline): Also declare if replacement is
45580         required.
45581         * doc/functions/getdelim.texi: New file.
45582         * doc/functions/getline.texi: Likewise.
45583         * doc/gnulib.texi (Function Substitutes): Add new files.
45584         Reported by Bruno Haible.
45585
45586 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45587
45588         * users.txt: Add Guile.
45589
45590 2007-08-22  Eric Blake  <ebb9@byu.net>
45591
45592         * tests/test-getdelim.c (main): Use remove, not unlink.
45593         * tests/test-getline.c (main): Likewise.
45594
45595         Move getline and getdelim into stdio.h, per POSIX 200x.
45596         * modules/getline (Files): Remove getline.h.
45597         (Depends-on): Add stdio.
45598         (configure.ac): Add module indicator.
45599         * modules/getdelim (Files): Remove getdelim.h.
45600         (Depends-on): Add stdio.
45601         (configure.ac): Add module indicator.
45602         * modules/stdio (Makefile.am): Work with new indicators.
45603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45605         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45606         * lib/getdelim.h: Delete.
45607         * lib/getline.h: Delete.
45608         * lib/stdio_.h (getdelim, getline): Declare.
45609         * modules/getdelim-tests: New module.
45610         * modules/getline-tests: Likewise.
45611         * tests/test-getdelim.c: New file.
45612         * tests/test-getline.c: Likewise.
45613         * NEWS: Document the change.
45614         * lib/getline.c: Update choice of header.
45615         * lib/csharpcomp.c: Likewise.
45616         * lib/getpass.c: Likewise.
45617         * lib/javacomp.c: Likewise.
45618         * lib/javaversion.c: Likewise.
45619         * lib/yesno.c: Likewise.
45620         * lib/getdelim.c: Likewise.
45621         (getdelim): Set errno on failure, and avoid memory leak.
45622
45623 2007-08-19  Bruno Haible  <bruno@clisp.org>
45624
45625         * modules/closein (Depends-on): Add freadahead.
45626         * lib/closein.c: Include freadahead.h.
45627         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45628         is zero.
45629
45630 2007-08-19  Bruno Haible  <bruno@clisp.org>
45631
45632         * modules/freadahead-tests: New file.
45633         * tests/test-freadahead.sh: New file.
45634         * tests/test-freadahead.c: New file.
45635
45636         * modules/freadahead: New file.
45637         * lib/freadahead.h: New file.
45638         * lib/freadahead.c: New file.
45639         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45640         fbufmode, fpurge, freadable, fwritable.
45641
45642 2007-08-19  Eric Blake  <ebb9@byu.net>
45643
45644         Test yesno in combination with closein.
45645         * lib/yesno.c (yesno): Document use of stdin.
45646         * modules/yesno-tests (Files): New module.
45647         * tests/test-yesno.c (main): New file.
45648         * tests/test-yesno.sh: Likewise.
45649
45650 2007-08-19  Bruno Haible  <bruno@clisp.org>
45651
45652         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45653         * lib/fseeko.c (rpl_fseeko): Likewise.
45654         * lib/fseterr.c (fseterr): Likewise.
45655
45656 2007-08-19  Bruno Haible  <bruno@clisp.org>
45657
45658         * tests/test-lseek.c (main): Disable a test for BeOS.
45659         * doc/functions/lseek.texi: Document the BeOS bug.
45660
45661 2007-08-19  Bruno Haible  <bruno@clisp.org>
45662             Eric Blake  <ebb9@byu.net>
45663
45664         * lib/lseek.c: Include <sys/stat.h>.
45665         (rpl_lseek): Add workaround code also for Unix platforms.
45666         Needed for BeOS.
45667         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45668         * doc/functions/lseek.texi: Document BeOS definiency.
45669
45670 2007-08-18  Bruno Haible  <bruno@clisp.org>
45671
45672         * modules/fstrcmp-tests: New file.
45673         * tests/test-fstrcmp.c: New file.
45674
45675 2007-08-18  Bruno Haible  <bruno@clisp.org>
45676
45677         * modules/fstrcmp: New file, from GNU gettext with modifications.
45678         * lib/fstrcmp.h: New file, from GNU gettext.
45679         * lib/fstrcmp.c: New file, from GNU gettext.
45680         * MODULES.html.sh (String handling): Add fstrcmp.
45681
45682 2007-08-18  Bruno Haible  <bruno@clisp.org>
45683
45684         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45685         'bool'.
45686         (diag, compareseq): Remove const from the ctxt argument.
45687         (USE_HEURISTIC): Undefine at the end.
45688
45689 2007-08-18  Jim Meyering  <jim@meyering.net>
45690
45691         New file: lib/idcache.h
45692         * NEWS: Mention the addition.
45693         * modules/idcache (Files): Add lib/idcache.h
45694         * lib/idcache.c: Include "idcache.h".
45695         Don't include <sys/types.h>.
45696         Add a FIXME comment.
45697         Move file-scoped "static" declarations to the top.
45698         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45699
45700 2007-08-17  Bruno Haible  <bruno@clisp.org>
45701         and Paul Eggert  <eggert@cs.ucla.edu>
45702
45703         * MODULES.html.sh: Add diffseq.
45704         * modules/diffseq: New file.
45705         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45706         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45707
45708 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45709
45710         Import changes from coreutils for bootstrap script.
45711
45712         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45713
45714         * build-aux/bootstrap (slurp): Work even in environments where
45715         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45716         current code does not slurp files whose names start with ".", and
45717         this looks like it might be a troublesome area.
45718
45719         2007-07-11  Jim Meyering  <jim@meyering.net>
45720
45721         If there's a GPL vN copyright comment, require that N == 3.
45722
45723         2007-07-08  Jim Meyering  <jim@meyering.net>
45724
45725         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45726         * build-aux/bootstrap (mam_template): Move definition out of loop.
45727
45728         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45729
45730         * build-aux/bootstrap (symlink_to_dir): Rename function from
45731         symlink_to_gnulib.  Add a directory parameter.  Update all
45732         callers.
45733         (cp_mark_as_generated): Also check for -- and link to -- files in
45734         gl/.
45735
45736         2007-07-08  Jim Meyering  <jim@meyering.net>
45737
45738         Adapt to deeper hierarchy in gnulib.
45739         * build-aux/bootstrap (symlink_to_dir): If the destination
45740         directory doesn't exist, create it. This is required at least for
45741         "lib/uniwidth/cjk.h".
45742
45743         2007-05-15  Jim Meyering  <jim@meyering.net>
45744
45745         * build-aux/bootstrap: Now that generated Makefile.am files
45746         are no longer under version control, they must be created at
45747         bootstrap time.
45748
45749 2007-08-14  Ben Pfaff  <blp@gnu.org>
45750
45751         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45752
45753 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45756         given the changes below.
45757         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45758         even on hosts that have padding bits beyond the supported 64.
45759
45760 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45761
45762         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45763         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45764         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45765         depends on it.
45766         (xstrtol_error): Remove.
45767         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45768         but with a different signature.
45769         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45770         * lib/xstrtol-error.c: Include exitfail.h.
45771         (xstrtol_fatal): New function, with a different signature from the
45772         old xstrtol_error, so that the caller need not worry about passing
45773         in an exit status, or about storage management of the option argument.
45774         (xstrtol_error): Now a static function.  Redo signature to
45775         implement xstrtol_fatal.  Output the correct number of hyphens in
45776         front of the option so that the caller need not worry about
45777         storage management.
45778         (N_): New macro.
45779         (_): Remove; not used now.
45780         * modules/xstrtol: Depend on getopt.
45781         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45782         of old STRTOL_FATAL_ERROR macro.
45783         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45784         of test program.
45785         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45786         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45787
45788 2007-08-08  Eric Blake  <ebb9@byu.net>
45789
45790         * lib/xstrtol-error.c: Add missing include.
45791
45792         Move xstrtol messages into gnulib domain, when --pobase is used.
45793         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45794         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45795         * modules/xstrtol (Files): Distribute new file.
45796         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45797         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45798         * tests/test-xstrtol.c: ...into new file.
45799         * tests/test-xstrtoul.c: Also test xstrtoul.
45800         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45801         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45802         * tests/test-xstrtol.sh: Drive the tests.
45803         * tests/test-xstrtoimax.sh: Likewise.
45804         * tests/test-xstrtoumax.sh: Likewise.
45805         * modules/xstrtol-tests: New module.
45806         * modules/xstrtoimax-tests: Likewise.
45807         * modules/xstrtoumax-tests: Likewise.
45808
45809 2007-08-08  Jim Meyering  <jim@meyering.net>
45810
45811         New function: mfile_name_concat.
45812         * lib/filenamecat.c (mfile_name_concat): New function, just like
45813         file_name_concat, but return NULL upon failure rather than exiting
45814         with a diagnostic.
45815         * lib/filenamecat.h: Declare it.
45816
45817 2007-08-07  Bruno Haible  <bruno@clisp.org>
45818
45819         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45820         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45821         warning from gcc.
45822         Reported by Eric Blake.
45823
45824 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45825
45826         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45827         * modules/crypto/arcfour (License): Likewise.
45828         * modules/crypto/des-tests (License): Likewise.
45829         * modules/crypto/gc-arctwo-tests (License): Likewise.
45830         * modules/crypto/gc-des-tests (License): Likewise.
45831         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45832         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45833         * modules/crypto/gc-md2-tests (License): Likewise.
45834         * modules/crypto/gc-md4-tests (License): Likewise.
45835         * modules/crypto/gc-md5-tests (License): Likewise.
45836         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45837         * modules/crypto/gc-rijndael-tests (License): Likewise.
45838         * modules/crypto/gc-sha1-tests (License): Likewise.
45839         * modules/crypto/gc-tests (License): Likewise.
45840         * modules/crypto/hmac-md5 (License): Likewise.
45841         * modules/crypto/hmac-sha1 (License): Likewise.
45842         * modules/crypto/md2-tests (License): Likewise.
45843         * modules/crypto/md4-tests (License): Likewise.
45844         * modules/crypto/md5 (License): Likewise.
45845         * modules/crypto/rijndael (License): Likewise.
45846         * modules/crypto/sha1 (License): Likewise.
45847         * modules/memxor (License): Likewise.
45848
45849 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45850         and Bruno Haible  <bruno@clisp.org>
45851
45852         * NEWS: Describe interface changes to human, xstrtol.
45853         * lib/human.h: Include <xstrtol.h>.
45854         (human_options): Return enum strtol_error, not int.  Remove
45855         bool arg; take int * instead.
45856         * lib/human.c: Don't include "gettext.h".
45857         (_): Remove; no longer used.
45858         Don't include <xstrtol.h>, since human.h does it.
45859         (human_options): Adjust to abovementioned interface changes.
45860         Do not report error to stderr; that's now the caller's
45861         responsibility.
45862         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45863         interface change.
45864         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45865         Str, Argument_type_string.  All uses changed.  Put " argument"
45866         in diagnostics to make them clearer.  Change wording of suffix
45867         message for clarity.
45868         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45869         Argument_type_string.
45870         (STRTOL_FATAL_WARN): Remove; no longer used.
45871         * modules/human (Depends-on): Remove gettext-h.
45872
45873 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45874
45875         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45876
45877 2007-07-31  Bruno Haible  <bruno@clisp.org>
45878
45879         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45880         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45881         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45882
45883 2007-07-31  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45886         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45887
45888 2007-07-30  Bruno Haible  <bruno@clisp.org>
45889
45890         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45891         * modules/c-ctype (License): Likewise.
45892         * modules/c-strcase (License): Likewise.
45893         * modules/check-version (License): Likewise.
45894         * modules/iconv (License): Likewise.
45895         * modules/iconv_open (License): Likewise.
45896         * modules/read-file (License): Likewise.
45897         * modules/striconv (License): Likewise.
45898         * modules/strverscmp (License): Likewise.
45899         * modules/vasprintf (License): Likewise.
45900         * modules/crypto/des (License): Likewise.
45901         * modules/crypto/gc (License): Likewise.
45902         * modules/crypto/gc-arcfour (License): Likewise.
45903         * modules/crypto/gc-arctwo (License): Likewise.
45904         * modules/crypto/gc-des (License): Likewise.
45905         * modules/crypto/gc-hmac-md5 (License): Likewise.
45906         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45907         * modules/crypto/gc-md2 (License): Likewise.
45908         * modules/crypto/gc-md4 (License): Likewise.
45909         * modules/crypto/gc-md5 (License): Likewise.
45910         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45911         * modules/crypto/gc-random (License): Likewise.
45912         * modules/crypto/gc-rijndael (License): Likewise.
45913         * modules/crypto/gc-sha1 (License): Likewise.
45914         * modules/crypto/md2 (License): Likewise.
45915         * modules/crypto/md4 (License): Likewise.
45916
45917 2007-07-30  Jim Meyering  <jim@meyering.net>
45918
45919         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45920         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45921         it has valid stat data.  This bug would cause du not to count the
45922         sizes of inaccessible directories.
45923         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45924         in <http://bugzilla.redhat.com/250077>.
45925
45926 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45927             Bruno Haible  <bruno@clisp.org>
45928
45929         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45930         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45931         #include_next, gives a diagnostic about it, but reports no error in
45932         the exit code.
45933         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45934
45935 2007-07-24  Ben Pfaff  <blp@gnu.org>
45936
45937         Improve name: "count-one-bits" is better than "popcount".
45938         * MODULES.html.sh: Update name.
45939         * lib/popcount.h: Renamed lib/count-one-bits.h.
45940         (popcount): Renamed count_one_bits.
45941         (popcountl): Renamed count_one_bits_l.
45942         (popcountll): Renamed count_one_bits_ll.
45943         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45944         * modules/popcount: Renamed module/count-one-bits.
45945         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45946         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45947
45948 2007-07-23  Ben Pfaff  <blp@gnu.org>
45949
45950         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45951         better code generation, and add U to large constants to avoid
45952         warnings, in non-GCC case.
45953         Suggested by Bruno Haible.
45954
45955 2007-07-23  Ben Pfaff  <blp@gnu.org>
45956
45957         * lib/popcount.h: Use verify_true instead of if...abort.
45958         * modules/popcount: Depend on verify module.
45959         Suggested by Jim Meyering.
45960
45961 2007-07-23  Bruno Haible  <bruno@clisp.org>
45962
45963         * gnulib-tool (func_import): Create a .cvsignore file also when the
45964         directory is not yet in CVS but the toplevel directory is. When
45965         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45966         Reported by Karl Berry.
45967
45968 2007-07-22  Ben Pfaff  <blp@gnu.org>
45969
45970         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45971         case.
45972         Suggested by Eric Blake.
45973
45974 2007-07-22  Ben Pfaff  <blp@gnu.org>
45975
45976         New module: popcount.
45977         * MODULES.html.sh: Add popcount.
45978         * modules/popcount: New file.
45979         * modules/popcount-tests: New file.
45980         * tests/test-popcount.c: New file.
45981         * lib/popcount.h: New file.
45982         * m4/popcount.m4: New file.
45983
45984 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45985
45986         * build-aux/announce-gen: Update to GPLv3.
45987
45988         * build-aux/config.guess: Update from config.
45989
45990 2007-07-21  Bruno Haible  <bruno@clisp.org>
45991
45992         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45993         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45994
45995 2007-07-20  Jim Meyering  <jim@meyering.net>
45996
45997         * check-module: Diagnose a self-dependency.
45998
45999 2007-07-19  Bruno Haible  <bruno@clisp.org>
46000
46001         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46002         empty.
46003         Reported by Eric Blake.
46004
46005 2007-07-18  Bruno Haible  <bruno@clisp.org>
46006
46007         * gnulib-tool: New options --po-base, --po-domain.
46008         (func_usage): Document them.
46009         (pobase, po_domain): New variables.
46010         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46011         DEFAULT_TEXT_DOMAIN.
46012         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46013         (func_import): Consider pobase and po_domain. Create a po/ directory.
46014         (func_create_testdir): Set pobase and po_domain to empty.
46015         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46016         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46017
46018 2007-07-18  Bruno Haible  <bruno@clisp.org>
46019
46020         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46021         EXTRA_DIST augmentation for files in build-aux/.
46022
46023 2007-07-16  Bruno Haible  <bruno@clisp.org>
46024
46025         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46026         * modules/getdelim (License): Likewise.
46027
46028 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46029
46030         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46031         * modules/d-type (License): Likewise.
46032         * modules/extensions (License): Likewise.
46033         * modules/fnmatch (License): Likewise.
46034         * modules/fseeko (License): Likewise.
46035         * modules/getaddrinfo (License): Likewise.
46036         * modules/getline (License): Likewise.
46037         * modules/getlogin_r (License): Likewise.
46038         * modules/getpass (License): Likewise.
46039         * modules/gettimeofday (License): Likewise.
46040         * modules/glob (License): Likewise.
46041         * modules/inet_ntop (License): Likewise.
46042         * modules/malloc (License): Likewise.
46043         * modules/malloca (License): Likewise.
46044         * modules/memmem (License): Likewise.
46045         * modules/mempcpy (License): Likewise.
46046         * modules/memset (License): Likewise.
46047         * modules/minmax (License): Likewise.
46048         * modules/mktime (License): Likewise.
46049         * modules/netinet_in (License): Likewise.
46050         * modules/pathmax (License): Likewise.
46051         * modules/poll (License): Likewise.
46052         * modules/regex (License): Likewise.
46053         * modules/snprintf (License): Likewise.
46054         * modules/stdbool (License): Likewise.
46055         * modules/stdint (License): Likewise.
46056         * modules/stdio (License): Likewise.
46057         * modules/strcase (License): Likewise.
46058         * modules/strcasestr (License): Likewise.
46059         * modules/strdup (License): Likewise.
46060         * modules/string (License): Likewise.
46061         * modules/strndup (License): Likewise.
46062         * modules/strnlen (License): Likewise.
46063         * modules/strpbrk (License): Likewise.
46064         * modules/strptime (License): Likewise.
46065         * modules/strsep (License): Likewise.
46066         * modules/sys_select (License): Likewise.
46067         * modules/sys_socket (License): Likewise.
46068         * modules/sys_stat (License): Likewise.
46069         * modules/sys_time (License): Likewise.
46070         * modules/time (License): Likewise.
46071         * modules/time_r (License): Likewise.
46072         * modules/timegm (License): Likewise.
46073         * modules/unistd (License): Likewise.
46074         * modules/vsnprintf (License): Likewise.
46075         * modules/wctype (License): Likewise.
46076
46077 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46078
46079         * modules/argz (License): LGPLv2+.
46080
46081 2007-07-15  Karl Berry  <karl@gnu.org>
46082
46083         * doc/gnulib.texi: revise node structure per new fdl.texi.
46084
46085 2007-07-14  Bruno Haible  <bruno@clisp.org>
46086
46087         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46088         the output file.
46089         * lib/uniname/uninames.h: Regenerated.
46090
46091 2007-07-14  Karl Berry  <karl@gnu.org>
46092
46093         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46094         omitting sectioning and index commands.
46095
46096 2007-07-13  Bruno Haible  <bruno@clisp.org>
46097
46098         New gnulib-tool option --more-symlinks.
46099         * gnulib-tool (func_usage): Document --more-symlinks.
46100         (do_copyrights): New variable.
46101         Recognize option --more-symlinks.
46102         (func_import): Don't add a copyright notice transform to
46103         sed_transform_lib_file if do_copyrights is empty.
46104
46105 2007-07-13  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/vasnprintf.c (decimal_point_char): Define also if
46108         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46109         && !NEED_PRINTF_DIRECTIVE_A.
46110         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46111         Gary V. Vaughan <gary@gnu.org>.
46112
46113 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         * lib/inttypes_.h: Undo previous change, since it was fixed
46116         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46117
46118 2007-07-13  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46121         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46122
46123 2007-07-13  Jim Meyering  <jim@meyering.net>
46124
46125         df: Don't fail for Tru64's "file-on-file mount".
46126         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46127         so we fall through and use statfs instead.  Details here:
46128         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46129         Reported by Albert Chin.
46130
46131 2007-07-13  Bruno Haible  <bruno@clisp.org>
46132
46133         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46134         * modules/configmake (License): Likewise.
46135         * modules/gettext (License): Likewise.
46136         * modules/gettext-h (License): Likewise.
46137         * modules/include_next (License): Likewise.
46138         * modules/link-warning (License): Likewise.
46139         * modules/localcharset (License): Likewise.
46140         * modules/localename (License): Likewise.
46141         * modules/lock (License): Likewise.
46142         * modules/relocatable-lib-lgpl (License): Likewise.
46143         * modules/size_max (License): Likewise.
46144         * modules/vasnprintf (License): Likewise.
46145         * modules/wchar (License): Likewise.
46146         * modules/xsize (License): Likewise.
46147
46148 2007-07-13  Bruno Haible  <bruno@clisp.org>
46149
46150         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46151         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46152
46153 2007-07-12  Bruno Haible  <bruno@clisp.org>
46154
46155         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46156         in the modules files.
46157
46158 2007-07-11  Karl Berry  <karl@gnu.org>
46159
46160         * MODULES.html.sh (func_module): use
46161          sed -e '\|^'"${includefile}"'$|d'
46162          instead of /.../d, to avoid errors on $includefile's containing /.
46163
46164 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46165
46166         * gnulib-tool (func_import): Avoid duplication of --avoid
46167         statements
46168         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46169         names to `_' in variable names.
46170
46171 2007-07-10  Eric Blake  <ebb9@byu.net>
46172
46173         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46174         * NEWS: Document this change.
46175
46176 2007-07-08  Bruno Haible  <bruno@clisp.org>
46177
46178         Update to Unicode 5.0.
46179         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46180         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46181         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46182         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46183         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46184         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46185         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46186         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46187         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46188         U+10A3F, U+1D242..U+1D244.
46189         (nonspacing_table_ind): Update.
46190         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46191         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46192
46193 2007-07-08  Bruno Haible  <bruno@clisp.org>
46194
46195         Update to Unicode 5.0.
46196         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46197         code transform. Extend the name index field of unicode_name_to_code and
46198         unicode_code_to_name from 16 to 24 bits.
46199         * lib/uniname/uniname.c (unicode_character_name,
46200         unicode_name_character): Add the range 0x12xxx to the code transform.
46201         * lib/uniname/uninames.h: Regenerated.
46202         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46203
46204 2007-07-07  Bruno Haible  <bruno@clisp.org>
46205
46206         * modules/wcwidth-tests: New file.
46207         * tests/test-wcwidth.c: New file.
46208
46209         Work around MacOS X wcwidth() bug.
46210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46211         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46212         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46213         original wcwidth in non-UTF-8 locales.
46214         * modules/wcwidth (Depends-on): Add localcharset, streq,
46215         uniwidth/width.
46216         * doc/functions/wcwidth.texi: Update.
46217
46218 2007-07-07  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46221         (wcwidth): New declaration.
46222         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46223         macros.
46224         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46225         here. Prepare for creating <wchar.h> unconditionally.
46226         * modules/wchar (Depends-on): Add link-warning.
46227         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46228         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46229         * lib/wcwidth.h: Remove file.
46230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46231         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46232         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46233         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46234         (Include): Replace wcwidth.h with <wchar.h>.
46235         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46236         * lib/mbchar.h: Don't include wcwidth.h.
46237         * lib/mbswidth.c: Likewise.
46238         * NEWS: Mention the change.
46239
46240 2007-07-07  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46243         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46244         definition with an external declaration.
46245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46246         defined as a function. Remove AC_C_INLINE requirement.
46247         * modules/wcwidth (Files): Add lib/wcwidth.c.
46248         (Makefile.am): Remove redundant statement.
46249
46250 2007-07-07  Bruno Haible  <bruno@clisp.org>
46251
46252         * MODULES.html.sh (Unicode string functions): Add the new modules.
46253
46254         * tests/uniwidth/test-u32-strwidth.c: New file.
46255         * modules/uniwidth/u32-strwidth-tests: New file.
46256
46257         * lib/uniwidth/u32-strwidth.c: New file.
46258         * modules/uniwidth/u32-strwidth: New file.
46259
46260         * tests/uniwidth/test-u16-strwidth.c: New file.
46261         * modules/uniwidth/u16-strwidth-tests: New file.
46262
46263         * lib/uniwidth/u16-strwidth.c: New file.
46264         * modules/uniwidth/u16-strwidth: New file.
46265
46266         * tests/uniwidth/test-u8-strwidth.c: New file.
46267         * modules/uniwidth/u8-strwidth-tests: New file.
46268
46269         * lib/uniwidth/u8-strwidth.c: New file.
46270         * modules/uniwidth/u8-strwidth: New file.
46271
46272         * tests/uniwidth/test-u32-width.c: New file.
46273         * modules/uniwidth/u32-width-tests: New file.
46274
46275         * lib/uniwidth/u32-width.c: New file.
46276         * modules/uniwidth/u32-width: New file.
46277
46278         * tests/uniwidth/test-u16-width.c: New file.
46279         * modules/uniwidth/u16-width-tests: New file.
46280
46281         * lib/uniwidth/u16-width.c: New file.
46282         * modules/uniwidth/u16-width: New file.
46283
46284         * tests/uniwidth/test-u8-width.c: New file.
46285         * modules/uniwidth/u8-width-tests: New file.
46286
46287         * lib/uniwidth/u8-width.c: New file.
46288         * modules/uniwidth/u8-width: New file.
46289
46290         * tests/uniwidth/test-uc_width.c: New file.
46291         * modules/uniwidth/width-tests: New file.
46292
46293         * lib/uniwidth/width.c: New file, from GNU libiconv.
46294         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46295         * modules/uniwidth/width: New file.
46296
46297         * lib/uniwidth.h: New file, from GNU libiconv.
46298         * modules/uniwidth/base: New file.
46299
46300 2007-07-07  Bruno Haible  <bruno@clisp.org>
46301
46302         * lib/uniname.h: New file, from GNU gettext.
46303         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46304         * lib/uniname/uninames.h: New file, from GNU gettext.
46305         * lib/uniname/uniname.c: New file, from GNU gettext.
46306         * tests/uniname/test-uninames.sh: New file.
46307         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46308         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46309         * modules/uniname/base: New file.
46310         * modules/uniname/uniname: New file.
46311         * modules/uniname/uniname-tests: New file.
46312         * MODULES.html.sh (Unicode string functions): Add the new modules.
46313
46314 2007-07-06  Bruno Haible  <bruno@clisp.org>
46315
46316         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46317
46318 2007-07-06  Bruno Haible  <bruno@clisp.org>
46319
46320         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46321         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46322         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46323         include <sys/time.h>.
46324         Reported by Eric Blake.
46325
46326 2007-07-06  Eric Blake  <ebb9@byu.net>
46327
46328         Fix testing canonicalize on cygwin.
46329         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46330         Revert patch from 2007-06-19.
46331         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46332         canonicalize module is also in use.
46333         * tests/test-canonicalize.c: New file.
46334         * tests/test-canonicalize.sh: Likewise.
46335         * modules/canonicalize-tests: Likewise.
46336
46337 2007-07-06  Jim Meyering  <jim@meyering.net>
46338
46339         * lib/getugroups.c (getugroups): Detect getgrent failure.
46340         Adjust comment to reflect reality: this function may return -1.
46341
46342 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46343
46344         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46345         the new TP address.
46346         (usage): Fix typo
46347         (gnulib_mk): New variable.
46348
46349 2007-07-05  Jim Meyering  <jim@meyering.net>
46350
46351         Don't let endgrent clobber errno, no matter how improbable.
46352         * lib/getugroups.c (getugroups): Save and restore errno around
46353         endgrent call.
46354
46355         Close the group DB even when failing with 2^31 or more members.
46356         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46357
46358 2007-07-04  Jim Meyering  <jim@meyering.net>
46359
46360         * lib/getugroups.h: New file.
46361         * lib/getugroups.c: Include "getugroups.h".
46362         Remove uses of "register" keyword.
46363         Move local variable, "cp", down into scope where used.
46364         Give "username" parameter the "const" attribute.
46365         * modules/getugroups (Files): Add lib/getugroups.h
46366
46367 2007-07-04  Karl Berry  <karl@gnu.org>
46368
46369         * MODULES.html.sh (func_all_modules): Complete rename of
46370         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46371
46372 2007-07-02  Bruno Haible  <bruno@clisp.org>
46373
46374         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46375         mode, when inttypes.h comes from gnulib.
46376         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46377
46378 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46379
46380         * NEWS: Mention lgpl module name change.
46381
46382         * modules/lgpl-2.1: Renamed from lgpl.
46383
46384         * NEWS: Mention gpl module name change.
46385
46386         * modules/gpl-3.0: New file, based on gpl-2.0.
46387
46388         * modules/gpl-2.0: Renamed from gpl.
46389
46390         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46391         doc/gpl-2.0.texi.
46392
46393 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46394
46395         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46396         #define __STDC_LIMIT_MACROS temporarily while including
46397         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46398         Problem reported by Joel E. Denny in
46399         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46400
46401 2007-07-01  Bruno Haible  <bruno@clisp.org>
46402
46403         * lib/unistdio.h: New file.
46404         * lib/unistdio/u-asnprintf.h: New file.
46405         * lib/unistdio/u-asprintf.h: New file.
46406         * lib/unistdio/u-printf-args.c: New file.
46407         * lib/unistdio/u-printf-args.h: New file.
46408         * lib/unistdio/u-printf-parse.h: New file.
46409         * lib/unistdio/u-snprintf.h: New file.
46410         * lib/unistdio/u-sprintf.h: New file.
46411         * lib/unistdio/u-vasprintf.h: New file.
46412         * lib/unistdio/u-vsnprintf.h: New file.
46413         * lib/unistdio/u-vsprintf.h: New file.
46414         * lib/unistdio/ulc-asnprintf.c: New file.
46415         * lib/unistdio/ulc-asprintf.c: New file.
46416         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46417         * lib/unistdio/ulc-printf-parse.c: New file.
46418         * lib/unistdio/ulc-snprintf.c: New file.
46419         * lib/unistdio/ulc-sprintf.c: New file.
46420         * lib/unistdio/ulc-vasnprintf.c: New file.
46421         * lib/unistdio/ulc-vasprintf.c: New file.
46422         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46423         * lib/unistdio/ulc-vsnprintf.c: New file.
46424         * lib/unistdio/ulc-vsprintf.c: New file.
46425         * lib/unistdio/u8-asnprintf.c: New file.
46426         * lib/unistdio/u8-asprintf.c: New file.
46427         * lib/unistdio/u8-printf-parse.c: New file.
46428         * lib/unistdio/u8-snprintf.c: New file.
46429         * lib/unistdio/u8-sprintf.c: New file.
46430         * lib/unistdio/u8-vasnprintf.c: New file.
46431         * lib/unistdio/u8-vasprintf.c: New file.
46432         * lib/unistdio/u8-vsnprintf.c: New file.
46433         * lib/unistdio/u8-vsprintf.c: New file.
46434         * lib/unistdio/u8-u8-asnprintf.c: New file.
46435         * lib/unistdio/u8-u8-asprintf.c: New file.
46436         * lib/unistdio/u8-u8-snprintf.c: New file.
46437         * lib/unistdio/u8-u8-sprintf.c: New file.
46438         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46439         * lib/unistdio/u8-u8-vasprintf.c: New file.
46440         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46441         * lib/unistdio/u8-u8-vsprintf.c: New file.
46442         * lib/unistdio/u16-asnprintf.c: New file.
46443         * lib/unistdio/u16-asprintf.c: New file.
46444         * lib/unistdio/u16-printf-parse.c: New file.
46445         * lib/unistdio/u16-snprintf.c: New file.
46446         * lib/unistdio/u16-sprintf.c: New file.
46447         * lib/unistdio/u16-vasnprintf.c: New file.
46448         * lib/unistdio/u16-vasprintf.c: New file.
46449         * lib/unistdio/u16-vsnprintf.c: New file.
46450         * lib/unistdio/u16-vsprintf.c: New file.
46451         * lib/unistdio/u16-u16-asnprintf.c: New file.
46452         * lib/unistdio/u16-u16-asprintf.c: New file.
46453         * lib/unistdio/u16-u16-snprintf.c: New file.
46454         * lib/unistdio/u16-u16-sprintf.c: New file.
46455         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46456         * lib/unistdio/u16-u16-vasprintf.c: New file.
46457         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46458         * lib/unistdio/u16-u16-vsprintf.c: New file.
46459         * lib/unistdio/u32-asnprintf.c: New file.
46460         * lib/unistdio/u32-asprintf.c: New file.
46461         * lib/unistdio/u32-printf-parse.c: New file.
46462         * lib/unistdio/u32-snprintf.c: New file.
46463         * lib/unistdio/u32-sprintf.c: New file.
46464         * lib/unistdio/u32-vasnprintf.c: New file.
46465         * lib/unistdio/u32-vasprintf.c: New file.
46466         * lib/unistdio/u32-vsnprintf.c: New file.
46467         * lib/unistdio/u32-vsprintf.c: New file.
46468         * lib/unistdio/u32-u32-asnprintf.c: New file.
46469         * lib/unistdio/u32-u32-asprintf.c: New file.
46470         * lib/unistdio/u32-u32-snprintf.c: New file.
46471         * lib/unistdio/u32-u32-sprintf.c: New file.
46472         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46473         * lib/unistdio/u32-u32-vasprintf.c: New file.
46474         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46475         * lib/unistdio/u32-u32-vsprintf.c: New file.
46476         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46477         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46478         * tests/unistdio/test-ulc-printf1.h: New file.
46479         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46480         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46481         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46482         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46483         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46484         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46485         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46486         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46487         * tests/unistdio/test-u8-asnprintf1.c: New file.
46488         * tests/unistdio/test-u8-asnprintf1.h: New file.
46489         * tests/unistdio/test-u8-printf1.h: New file.
46490         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46491         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46492         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46493         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46494         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46495         * tests/unistdio/test-u8-vasprintf1.c: New file.
46496         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46497         * tests/unistdio/test-u8-vsprintf1.c: New file.
46498         * tests/unistdio/test-u16-asnprintf1.c: New file.
46499         * tests/unistdio/test-u16-asnprintf1.h: New file.
46500         * tests/unistdio/test-u16-printf1.h: New file.
46501         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46502         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46503         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46504         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46505         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46506         * tests/unistdio/test-u16-vasprintf1.c: New file.
46507         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46508         * tests/unistdio/test-u16-vsprintf1.c: New file.
46509         * tests/unistdio/test-u32-asnprintf1.c: New file.
46510         * tests/unistdio/test-u32-asnprintf1.h: New file.
46511         * tests/unistdio/test-u32-printf1.h: New file.
46512         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46513         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46514         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46515         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46516         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46517         * tests/unistdio/test-u32-vasprintf1.c: New file.
46518         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46519         * tests/unistdio/test-u32-vsprintf1.c: New file.
46520         * modules/unistdio/base: New file.
46521         * modules/unistdio/u-printf-args: New file.
46522         * modules/unistdio/ulc-asnprintf: New file.
46523         * modules/unistdio/ulc-asprintf: New file.
46524         * modules/unistdio/ulc-fprintf: New file.
46525         * modules/unistdio/ulc-printf-parse: New file.
46526         * modules/unistdio/ulc-snprintf: New file.
46527         * modules/unistdio/ulc-sprintf: New file.
46528         * modules/unistdio/ulc-vasnprintf: New file.
46529         * modules/unistdio/ulc-vasprintf: New file.
46530         * modules/unistdio/ulc-vfprintf: New file.
46531         * modules/unistdio/ulc-vsnprintf: New file.
46532         * modules/unistdio/ulc-vsprintf: New file.
46533         * modules/unistdio/u8-asnprintf: New file.
46534         * modules/unistdio/u8-asprintf: New file.
46535         * modules/unistdio/u8-printf-parse: New file.
46536         * modules/unistdio/u8-snprintf: New file.
46537         * modules/unistdio/u8-sprintf: New file.
46538         * modules/unistdio/u8-vasnprintf: New file.
46539         * modules/unistdio/u8-vasprintf: New file.
46540         * modules/unistdio/u8-vsnprintf: New file.
46541         * modules/unistdio/u8-vsprintf: New file.
46542         * modules/unistdio/u8-u8-asnprintf: New file.
46543         * modules/unistdio/u8-u8-asprintf: New file.
46544         * modules/unistdio/u8-u8-snprintf: New file.
46545         * modules/unistdio/u8-u8-sprintf: New file.
46546         * modules/unistdio/u8-u8-vasnprintf: New file.
46547         * modules/unistdio/u8-u8-vasprintf: New file.
46548         * modules/unistdio/u8-u8-vsnprintf: New file.
46549         * modules/unistdio/u8-u8-vsprintf: New file.
46550         * modules/unistdio/u16-asnprintf: New file.
46551         * modules/unistdio/u16-asprintf: New file.
46552         * modules/unistdio/u16-printf-parse: New file.
46553         * modules/unistdio/u16-snprintf: New file.
46554         * modules/unistdio/u16-sprintf: New file.
46555         * modules/unistdio/u16-vasnprintf: New file.
46556         * modules/unistdio/u16-vasprintf: New file.
46557         * modules/unistdio/u16-vsnprintf: New file.
46558         * modules/unistdio/u16-vsprintf: New file.
46559         * modules/unistdio/u16-u16-asnprintf: New file.
46560         * modules/unistdio/u16-u16-asprintf: New file.
46561         * modules/unistdio/u16-u16-snprintf: New file.
46562         * modules/unistdio/u16-u16-sprintf: New file.
46563         * modules/unistdio/u16-u16-vasnprintf: New file.
46564         * modules/unistdio/u16-u16-vasprintf: New file.
46565         * modules/unistdio/u16-u16-vsnprintf: New file.
46566         * modules/unistdio/u16-u16-vsprintf: New file.
46567         * modules/unistdio/u32-asnprintf: New file.
46568         * modules/unistdio/u32-asprintf: New file.
46569         * modules/unistdio/u32-printf-parse: New file.
46570         * modules/unistdio/u32-snprintf: New file.
46571         * modules/unistdio/u32-sprintf: New file.
46572         * modules/unistdio/u32-vasnprintf: New file.
46573         * modules/unistdio/u32-vasprintf: New file.
46574         * modules/unistdio/u32-vsnprintf: New file.
46575         * modules/unistdio/u32-vsprintf: New file.
46576         * modules/unistdio/u32-u32-asnprintf: New file.
46577         * modules/unistdio/u32-u32-asprintf: New file.
46578         * modules/unistdio/u32-u32-snprintf: New file.
46579         * modules/unistdio/u32-u32-sprintf: New file.
46580         * modules/unistdio/u32-u32-vasnprintf: New file.
46581         * modules/unistdio/u32-u32-vasprintf: New file.
46582         * modules/unistdio/u32-u32-vsnprintf: New file.
46583         * modules/unistdio/u32-u32-vsprintf: New file.
46584         * modules/unistdio/ulc-asnprintf-tests: New file.
46585         * modules/unistdio/ulc-vasnprintf-tests: New file.
46586         * modules/unistdio/ulc-vasprintf-tests: New file.
46587         * modules/unistdio/ulc-vsnprintf-tests: New file.
46588         * modules/unistdio/ulc-vsprintf-tests: New file.
46589         * modules/unistdio/u8-asnprintf-tests: New file.
46590         * modules/unistdio/u8-vasnprintf-tests: New file.
46591         * modules/unistdio/u8-vasprintf-tests: New file.
46592         * modules/unistdio/u8-vsnprintf-tests: New file.
46593         * modules/unistdio/u8-vsprintf-tests: New file.
46594         * modules/unistdio/u16-asnprintf-tests: New file.
46595         * modules/unistdio/u16-vasnprintf-tests: New file.
46596         * modules/unistdio/u16-vasprintf-tests: New file.
46597         * modules/unistdio/u16-vsnprintf-tests: New file.
46598         * modules/unistdio/u16-vsprintf-tests: New file.
46599         * modules/unistdio/u32-asnprintf-tests: New file.
46600         * modules/unistdio/u32-vasnprintf-tests: New file.
46601         * modules/unistdio/u32-vasprintf-tests: New file.
46602         * modules/unistdio/u32-vsnprintf-tests: New file.
46603         * modules/unistdio/u32-vsprintf-tests: New file.
46604         * MODULES.html.sh (Unicode string functions): Add the new modules.
46605
46606 2007-07-01  Bruno Haible  <bruno@clisp.org>
46607
46608         * lib/sprintf.c (sprintf): Limit the available length estimation,
46609         to avoid address wraparound.
46610         * lib/vsprintf.c (vsprintf): Likewise.
46611         * modules/sprintf-posix (Dependencies): Add stdint.
46612         * modules/vsprintf-posix (Dependencies): Likewise.
46613
46614 2007-07-01  Bruno Haible  <bruno@clisp.org>
46615
46616         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46617         Windows PATH as well. Conservative double-quoting. Comments.
46618
46619 2007-07-01  Bruno Haible  <bruno@clisp.org>
46620             Eric Blake  <ebb9@byu.net>
46621             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46622
46623         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46624         empty components in $PATH, denoting '.'.
46625
46626 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46627
46628         * gnulib-tool: Fix indentation.
46629         (func_create_megatestdir): Likewise.
46630         Report by Bruno Haible.
46631
46632 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46633
46634         Sync from Automake.
46635         * build-aux/gnupload: Fix shell portability issues with for loops.
46636         Report by Karl Berry.
46637
46638 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46639
46640         * build-aux/maint.mk (POURL): Use translationproject.org.
46641
46642 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46643             Bruno Haible  <bruno@clisp.org>
46644
46645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46646         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46647         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46648         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46649         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46650
46651 2007-06-27  Bruno Haible  <bruno@clisp.org>
46652
46653         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46654         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46655
46656 2007-06-26  Karl Berry  <karl@gnu.org>
46657
46658         * MODULES.html.sh: remove xreadlink-with-size.
46659
46660 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46661
46662         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46663         method that I hope also handles the double-include problem noted
46664         by Bruno Haible in
46665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46666
46667 2007-06-23  Bruno Haible  <bruno@clisp.org>
46668
46669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46670         Don't let the 'mostlyclean' target fail if the last subdirectory could
46671         not be removed.
46672         Reported by Karl Berry.
46673
46674 2007-06-23  Bruno Haible  <bruno@clisp.org>
46675
46676         * gnulib-tool (echo): Add a speedier workaround for ksh.
46677         * tests/test-echo.sh: Likewise.
46678
46679 2007-06-23  Bruno Haible  <bruno@clisp.org>
46680
46681         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46682         * tests/test-echo.sh: Likewise.
46683
46684 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46685
46686         * gnulib-tool (IFS): Initialize early, so we don't set it to
46687         empty later.
46688         (self_abspathname): Rewrite algorithm to set it, reindent.
46689         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46690         (func_create_megatestdir): Merge some sed scripts.
46691
46692 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46693
46694         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46695         exposed by Sun Studio 11 cc on Solaris 8.
46696
46697 2007-06-22  Bruno Haible  <bruno@clisp.org>
46698
46699         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46700         backslashes.
46701         * tests/test-echo.sh: New file.
46702
46703 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46704
46705         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46706         simplify `sed_replace_build_aux' scripts, they are portable but
46707         echoing them with `echo' is not.
46708         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46709
46710 2007-06-21  Karl Berry  <karl@gnu.org>
46711
46712         * config/srclist.txt: guess we can't handle the licenses via
46713         srclist at the moment.
46714
46715 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46716
46717         * MODULES.html.sh: Add include_next.
46718         * modules/include_next: New file.
46719
46720 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46721
46722         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46723         INCLUDE_NEXT.
46724         (gl_CHECK_NEXT_HEADERS): New macro.
46725         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46726         the obsolescent gl_ABSOLUTE_HEADER.
46727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46728         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46729         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46730         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46731         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46732         * m4/math_h.m4 (gl_MATH_H): Likewise.
46733         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46734         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46735         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46736         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46737         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46738         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46739         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46743         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46744         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46745         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46746         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46747         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46748         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46749         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46750         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46751         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46752         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46753         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46754         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46755         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46756         * lib/float_.h: Likewise.
46757         * lib/inttypes_.h: Likewise.
46758         * lib/math_.h: Likewise.
46759         * lib/search_.h: Likewise.
46760         * lib/signal_.h: Likewise.
46761         * lib/stdint_.h: Likewise.
46762         * lib/stdio_.h: Likewise.
46763         * lib/stdlib_.h: Likewise.
46764         * lib/string_.h: Likewise.
46765         * lib/sys_stat_.h: Likewise.
46766         * lib/sys_time_.h: Likewise.
46767         * lib/time_.h: Likewise.
46768         * lib/unistd_.h: Likewise.
46769         * lib/wchar_.h: Likewise.
46770         * lib/wctype_.h: Likewise.
46771         * lib/dirent_.h: Likewise.
46772         * lib/iconv_.h: Likewise.
46773         * lib/locale_.h: Likewise.
46774         * lib/netinet_in_.h: Likewise.
46775         * lib/sys_select_.h: Likewise.
46776         * lib/sys_socket_.h: Likewise.
46777         * lib/sysexits_.h: Likewise.
46778         * modules/fcntl (Depends-on): Depend on include_next, not
46779         absolute_header.
46780         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46781         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46782         * modules/fchdir: Likewise.
46783         * modules/float: Likewise.
46784         * modules/iconv_open: Likewise.
46785         * modules/inttypes: Likewise.
46786         * modules/locale: Likewise.
46787         * modules/math: Likewise.
46788         * modules/netinet_in: Likewise.
46789         * modules/search: Likewise.
46790         * modules/signal: Likewise.
46791         * modules/stdint: Likewise.
46792         * modules/stdio: Likewise.
46793         * modules/stdlib: Likewise.
46794         * modules/string: Likewise.
46795         * modules/sys_select: Likewise.
46796         * modules/sys_socket: Likewise.
46797         * modules/sys_stat: Likewise.
46798         * modules/sys_time: Likewise.
46799         * modules/sysexits: Likewise.
46800         * modules/time: Likewise.
46801         * modules/unistd: Likewise.
46802         * modules/wchar: Likewise.
46803         * modules/wctype: Likewise.
46804         * modules/sys_stat: Change maintainer to "all".
46805         * modules/unistd: Likewise.
46806
46807 2007-06-20  Karl Berry  <karl@gnu.org>
46808
46809         * config/srclist.txt: track www changes in license files.
46810
46811 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46812
46813         * build-aux/bootstrap: Remove stray dot.
46814         Make sure build_aux settings are honored when linking
46815         gnulib_extra_files.
46816
46817 2007-06-19  Eric Blake  <ebb9@byu.net>
46818
46819         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46820         Allow compilation on cygwin.
46821
46822 2007-06-19  Jim Meyering  <jim@meyering.net>
46823
46824         xreadlink-with-size: Remove module.  No longer used.
46825         Ex-callers now use xreadlink or mreadlink-with-size.
46826         * modules/xreadlink-with-size: Remove module.
46827         * lib/xreadlink-with-size.c: Remove file.
46828         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46829         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46830         just before the function definition *is* accurate.
46831
46832         Eliminate one way canonicalize_filename_mode could exit.
46833         * lib/canonicalize.c (canonicalize_filename_mode):
46834         Use mreadlink_with_size, not xreadlink_with_size.
46835
46836 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46837
46838         Detect porting problems to FreeBSD/arm, which has time_t wider than
46839         long int.  Original problem reported for GNU diff by Xin Li in
46840         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46841         * modules/getdate (Depends-on): Add intprops, verify.
46842         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46843         is an integer type no wider than long int.
46844
46845 2007-06-18  Jim Meyering  <jim@meyering.net>
46846
46847         New module: mreadlink-with-size.
46848         * MODULES.html.sh: Add mreadlink-with-size.
46849         * modules/mreadlink-with-size: New module
46850         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46851         not xreadlink-with-size.
46852         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46853
46854 2007-06-16  Bruno Haible  <bruno@clisp.org>
46855
46856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46857         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46858         Reported by Gary V. Vaughan <gary@gnu.org>.
46859
46860 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46861
46862         Revamp lchown so that it lives in unistd.h where it belongs.
46863         * lib/lchown.h: Remove.
46864         * lib/dirchownmod.c: Don't include lib/lchown.h.
46865         * lib/fchownat.c: Likewise.
46866         * lib/openat.c: Likewise.
46867         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46868         does not follow symlinks.
46869         (EOPNOTSUPP): Define if not defined.
46870         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46871         is defined to 0.
46872         (lchown): New decl.
46873         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46874         Do not check for lchown decl.
46875         Set REPLACE_LCHOWN.
46876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46877         REPLACE_LCHOWN.
46878         * modules/chown: Make it clear it follows symlinks.
46879         * modules/lchown: Make it clear it doesn't follow symlinks.
46880         (Files): Remove lib/lchown.h
46881         (Depends-on): Add unistd.
46882         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46883         (Include): Include <unistd.h>, not "lchown.h".
46884         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46885         REPLACE_LCHOWN.
46886
46887 2007-06-15  Jim Meyering  <jim@meyering.net>
46888
46889         Change license (GPL to LGPL) of fsusage and dependents.
46890         * modules/fsusage (License): Change to LGPL.
46891         * modules/full-read (License): Likewise.
46892         * modules/full-write (License): Likewise.
46893         * modules/safe-read (License): Likewise.
46894         * modules/safe-write (License): Likewise.
46895
46896 2007-06-14  Ben Pfaff  <blp@gnu.org>
46897
46898         Missing part of allocsa -> malloca transition.
46899         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46900         gl_MALLOCA.
46901
46902 2007-06-12  Bruno Haible  <bruno@clisp.org>
46903
46904         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46905         to ia64, x86_64, i386.
46906         Reported by Eric Blake.
46907
46908 2007-06-12  Bruno Haible  <bruno@clisp.org>
46909
46910         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46911         cross-compiling to x86_64.
46912
46913 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46914
46915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46916         glitch reported by Ralf Wildenhues in
46917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46918
46919         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46920         Vin Shelton.
46921
46922 2007-06-11  Bruno Haible  <bruno@clisp.org>
46923
46924         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46925         replacement string.
46926         Reported by Eric Blake.
46927
46928 2007-06-10  Bruno Haible  <bruno@clisp.org>
46929
46930         Prepare vasnprintf code for use with Unicode strings.
46931         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46932         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46933         TYPE_U32_STRING.
46934         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46935         a_u32_string variants.
46936         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46937         * lib/printf-args.c: Don't include config.h and the specification
46938         header if PRINTF_FETCHARGS is already defined.
46939         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46940         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46941         TYPE_U16_STRING, TYPE_U32_STRING.
46942         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46943         u16_directive, u16_directives, u32_directive, u32_directives): New
46944         types.
46945         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46946         New declarations.
46947         * lib/printf-parse.c: Don't include config.h and the specification
46948         header if PRINTF_PARSE is already defined. Eliminate the set of
46949         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46950         them now. Include c-ctype.h.
46951         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46952         directive and CHAR_T_ONLY_ASCII.
46953         * lib/vasnprintf.c: Don't include config.h and the specification header
46954         if VASNPRINTF is already defined.
46955         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46956         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46957         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46958         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46959         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46960         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46961         code accordingly.
46962         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46963         pad_ourselves also in this case, with the 'c' and 's' directives, and
46964         with a different notion of "width".
46965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46966
46967 2007-06-10  Bruno Haible  <bruno@clisp.org>
46968
46969         * modules/unistr/u32-mbsnlen: New file.
46970         * lib/unistr/u32-mbsnlen.c: New file.
46971
46972         * modules/unistr/u16-mbsnlen: New file.
46973         * lib/unistr/u16-mbsnlen.c: New file.
46974
46975         * modules/unistr/u8-mbsnlen: New file.
46976         * lib/unistr/u8-mbsnlen.c: New file.
46977
46978         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46979         declarations.
46980
46981 2007-06-10  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/string_.h (mbsnlen): New declaration.
46984         * lib/mbsnlen.c: New file.
46985         * m4/mbsnlen.m4: New file.
46986         * modules/mbsnlen: New file.
46987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46988         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46989         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46990
46991 2007-06-10  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46994
46995 2007-06-10  Bruno Haible  <bruno@clisp.org>
46996
46997         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46998         * lib/mbuiter.h: Likewise.
46999
47000 2007-06-10  Bruno Haible  <bruno@clisp.org>
47001
47002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47003         declaration.
47004
47005 2007-06-10  Karl Berry  <karl@gnu.org>
47006
47007         * config/srclist.txt: remove gettext entries, Bruno prefers
47008         to update individually.
47009
47010 2007-06-10  Bruno Haible  <bruno@clisp.org>
47011
47012         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47013         'maxlen'. Ensure only length + width bytes are allocated, not
47014         length + 1 + width.
47015
47016 2007-06-09  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47019         (CHAR_T): Remove macro.
47020         (VASNPRINTF): Update.
47021
47022 2007-06-09  Bruno Haible  <bruno@clisp.org>
47023
47024         * MODULES.html.sh (Unicode string functions): Add the new modules.
47025
47026         * modules/uniconv/u32-conv-to-enc: New file.
47027         * lib/uniconv/u32-conv-to-enc.c: New file.
47028         * modules/uniconv/u32-conv-to-enc-tests: New file.
47029         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47030
47031         * modules/uniconv/u16-conv-to-enc: New file.
47032         * lib/uniconv/u16-conv-to-enc.c: New file.
47033         * lib/uniconv/u-conv-to-enc.h: New file.
47034         * modules/uniconv/u16-conv-to-enc-tests: New file.
47035         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47036
47037         * modules/uniconv/u8-conv-to-enc: New file.
47038         * lib/uniconv/u8-conv-to-enc.c: New file.
47039         * modules/uniconv/u8-conv-to-enc-tests: New file.
47040         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47041
47042         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47043         u32_conv_to_encoding): New declarations.
47044
47045 2007-06-09  Bruno Haible  <bruno@clisp.org>
47046
47047         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47048
47049 2007-06-09  Bruno Haible  <bruno@clisp.org>
47050
47051         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47052         * modules/malloca: Renamed from modules/allocsa, updated.
47053         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47054         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47055         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47056         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47057         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47058         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47059         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47060         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47061         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47062         * modules/c-strcasestr (Depends-on): Update.
47063         * lib/c-strcasestr.c: Update.
47064         * modules/c-strstr (Depends-on): Update.
47065         * lib/c-strstr.c: Update.
47066         * modules/canonicalize-lgpl (Depends-on): Update.
47067         * lib/canonicalize-lgpl.c: Update.
47068         * modules/clean-temp (Depends-on): Update.
47069         * lib/clean-temp.c: Update.
47070         * modules/csharpcomp (Depends-on): Update.
47071         * lib/csharpcomp.c: Update.
47072         * modules/csharpexec (Depends-on): Update.
47073         * lib/csharpexec.c: Update.
47074         * modules/javacomp (Depends-on): Update.
47075         * lib/javacomp.c: Update.
47076         * modules/javaexec (Depends-on): Update.
47077         * lib/javaexec.c: Update.
47078         * modules/mbscasestr (Depends-on): Update.
47079         * lib/mbscasestr.c: Update.
47080         * modules/mbsstr (Depends-on): Update.
47081         * lib/mbsstr.c: Update.
47082         * modules/setenv (Depends-on): Update.
47083         * lib/setenv.c: Update.
47084         * modules/strcasestr (Depends-on): Update.
47085         * lib/strcasestr.c: Update.
47086         * modules/striconveha (Depends-on): Update.
47087         * lib/striconveha.c: Update.
47088         * modules/relocatable-prog-wrapper (Files): Update.
47089         * lib/relocwrapper.c: Update.
47090         * build-aux/install-reloc: Update.
47091         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47092
47093 2007-06-08  Bruno Haible  <bruno@clisp.org>
47094
47095         Port to uClibc.
47096         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47097         * lib/fpurge.c (fpurge): Likewise.
47098         * lib/freading.c (freading): Likewise.
47099         * lib/fseeko.c (rpl_fseeko): Likewise.
47100         * lib/fseterr.c (fseterr): Likewise.
47101         * lib/fwriting.c (fwriting): Likewise.
47102         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47103
47104 2007-06-08  Bruno Haible  <bruno@clisp.org>
47105
47106         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47107         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47108         * modules/gettext (Files): Add m4/intlmacosx.m4.
47109
47110 2007-06-07  Bruno Haible  <bruno@clisp.org>
47111
47112         * modules/localename-tests: New file.
47113         * tests/test-localename.c: New file.
47114
47115         New module 'localename'.
47116         * lib/localename.h: New file.
47117         * lib/localename.c: New file, from GNU gettext.
47118         * m4/localename.m4: New file.
47119         * modules/localename: New file.
47120
47121 2007-06-07  Bruno Haible  <bruno@clisp.org>
47122
47123         Work around the lack of <wchar.h> on some builds of uClibc.
47124         * doc/headers/wchar.texi: Update.
47125         * lib/wchar_.h: Include <wchar.h> only if it exists.
47126         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47127         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47128         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47129         doesn't exist.
47130         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47131         * modules/mbfile (Depends-on): Add wchar.
47132         * modules/mbiter (Depends-on): Likewise.
47133         * modules/mbuiter (Depends-on): Likewise.
47134         Reported by Simon Josefsson.
47135
47136 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47137
47138         Work around problem reported by Steven M. Schweda in
47139         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47140         Tru64 5.1B with the Compaq compiler environment installed declares
47141         an 'isblank' function but does not define it in the C library.
47142         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47143         * lib/regex_internal.h (isblank): Likewise.
47144         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47145         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47146
47147 2007-06-05  Bruno Haible  <bruno@clisp.org>
47148
47149         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47150         ia64.
47151         * modules/printf-safe: New file.
47152         * modules/fprintf-posix (Depends-on): Add printf-safe.
47153         * modules/printf-posix (Depends-on): Likewise.
47154         * modules/snprintf-posix (Depends-on): Likewise.
47155         * modules/sprintf-posix (Depends-on): Likewise.
47156         * modules/vasnprintf-posix (Depends-on): Likewise.
47157         * modules/vasprintf-posix (Depends-on): Likewise.
47158         * modules/vfprintf-posix (Depends-on): Likewise.
47159         * modules/vprintf-posix (Depends-on): Likewise.
47160         * modules/vsnprintf-posix (Depends-on): Likewise.
47161         * modules/vsprintf-posix (Depends-on): Likewise.
47162         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47163         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47164         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47165         "no" on i386, x86_64, ia64.
47166         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47167         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47168         on i386, x86_64, ia64.
47169         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47170         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47171         on i386, x86_64, ia64.
47172         * tests/test-vasnprintf-posix.c: Include float.h.
47173         (LDBL80_WORDS): New macro.
47174         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47175         on i386, x86_64, ia64.
47176         * tests/test-vasprintf-posix.c: Include float.h.
47177         (LDBL80_WORDS): New macro.
47178         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47179         on i386, x86_64, ia64.
47180         * tests/test-snprintf-posix.c: Include float.h.
47181         * tests/test-sprintf-posix.c: Likewise.
47182         * tests/test-vsnprintf-posix.c: Likewise.
47183         * tests/test-vsprintf-posix.c: Likewise.
47184
47185 2007-06-05  Bruno Haible  <bruno@clisp.org>
47186
47187         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47188         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47189         non-IEEE numbers on i386, x86_64, ia64.
47190         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47191         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47192         * tests/test-isnanl.h: Include float.h.
47193         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47194
47195 2007-06-05  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47198         also the %a / %A. Handle the %a / %A code before this extra handling.
47199
47200 2007-06-05  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47203         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47204
47205 2007-06-05  Bruno Haible  <bruno@clisp.org>
47206
47207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47208         typo in variable name.
47209
47210 2007-06-05  Eric Blake  <ebb9@byu.net>
47211
47212         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47213         Reported by Simon Josefsson.
47214
47215 2007-06-04  Bruno Haible  <bruno@clisp.org>
47216
47217         Avoid test failures on some PowerPC platforms.
47218         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47219         Define differently for PowerPC.
47220         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47221         Reported by Gary V. Vaughan <gary@gnu.org>.
47222
47223 2007-06-02  Bruno Haible  <bruno@clisp.org>
47224
47225         Fix test-stdint failure on FreeBSD/ia64.
47226         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47227         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47228         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47229         * doc/headers/stdint.texi: Update.
47230
47231 2007-06-01  Bruno Haible  <bruno@clisp.org>
47232
47233         * tests/test-binary-io.c (main): Pass a third argument to open().
47234         Reported by Gary V. Vaughan <gary@gnu.org>.
47235
47236 2007-06-01  Bruno Haible  <bruno@clisp.org>
47237
47238         * doc/functions/frexpl.texi: Update for mingw.
47239
47240 2007-06-01  Bruno Haible  <bruno@clisp.org>
47241
47242         * tests/test-lseek.c (main): Disable test of errno for invalid third
47243         argument.
47244         * doc/functions/lseek.texi: Update.
47245         Reported by Gary V. Vaughan <gary@gnu.org>.
47246
47247 2007-05-28  Bruno Haible  <bruno@clisp.org>
47248
47249         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47250
47251 2007-05-31  Eric Blake  <ebb9@byu.net>
47252
47253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47254         cross compiling.
47255
47256 2007-05-30  Eric Blake  <ebb9@byu.net>
47257         and Bruno Haible  <bruno@clisp.org>
47258
47259         Work around mingw test failures exposed by m4-1.4.9b.
47260         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47261         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47262         moment.
47263
47264 2007-05-30  Bruno Haible  <bruno@clisp.org>
47265
47266         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47267         assuming that they are closed. Needed on HP-UX 11.
47268
47269 2007-05-29  Bruno Haible  <bruno@clisp.org>
47270
47271         Fix a problem with #include_next.
47272         * lib/dirent_.h: Split the double-inclusion guard.
47273         * lib/fcntl_.h: Likewise.
47274         * lib/float_.h: Likewise.
47275         * lib/iconv_.h: Likewise.
47276         * lib/inttypes_.h: Likewise.
47277         * lib/locale_.h: Likewise.
47278         * lib/math_.h: Likewise.
47279         * lib/netinet_in_.h: Likewise.
47280         * lib/search_.h: Likewise.
47281         * lib/signal_.h: Likewise.
47282         * lib/stdint_.h: Likewise.
47283         * lib/stdio_.h: Likewise.
47284         * lib/stdlib_.h: Likewise.
47285         * lib/string_.h: Likewise.
47286         * lib/sys_select_.h: Likewise.
47287         * lib/sys_socket_.h: Likewise.
47288         * lib/sys_stat_.h: Likewise.
47289         * lib/sys_time_.h: Likewise.
47290         * lib/sysexits_.h: Likewise.
47291         * lib/time_.h: Likewise.
47292         * lib/unistd_.h: Likewise.
47293         * lib/wchar_.h: Likewise.
47294         * lib/wctype_.h: Likewise.
47295
47296 2007-05-29  Bruno Haible  <bruno@clisp.org>
47297
47298         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47299         for the moment.
47300
47301 2007-05-29  Bruno Haible  <bruno@clisp.org>
47302
47303         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47304         invocation.
47305         Reported by Eric Blake.
47306
47307 2007-05-29  Bruno Haible  <bruno@clisp.org>
47308
47309         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47310         compiling case.
47311
47312 2007-05-29  Eric Blake  <ebb9@byu.net>
47313             Bruno Haible  <bruno@clisp.org>
47314
47315         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47316         cross compiles.
47317
47318 2007-05-28  Eric Blake  <ebb9@byu.net>
47319
47320         * modules/closein-tests (test_closein_LDADD): Support test on
47321         cygwin with libtool.
47322
47323 2007-05-28  Bruno Haible  <bruno@clisp.org>
47324
47325         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47326         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47327         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47328         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47329         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47330         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47331         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47332         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47333         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47334
47335 2007-05-28  Eric Blake  <ebb9@byu.net>
47336
47337         Unconditionally include <config.h> in unit tests.
47338         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47339         * tests/test-allocsa.c, tests/test-arcfour.c,
47340         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47341         tests/test-array_list.c, tests/test-array_oset.c,
47342         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47343         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47344         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47345         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47346         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47347         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47348         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47349         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47350         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47351         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47352         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47353         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47354         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47355         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47356         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47357         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47358         test-md5.c, test-memmem.c, test-printf-posix.c,
47359         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47360         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47361         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47362         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47363         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47364         test-vasnprintf-posix2.c, test-vasnprintf.c,
47365         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47366         test-vfprintf-posix.c, test-vprintf-posix.c,
47367         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47368         test-xvasprintf.c: Likewise.
47369
47370 2007-05-28  Bruno Haible  <bruno@clisp.org>
47371
47372         * gnulib-tool (func_import): Remember the --with-tests command-line
47373         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47374         Reported by Eric Blake.
47375
47376 2007-05-28  Bruno Haible  <bruno@clisp.org>
47377
47378         * modules/ftell-tests: New file.
47379         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47380         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47381
47382         * lib/ftell.c: New file.
47383         * modules/ftell: New file.
47384         * m4/ftell.m4: New file.
47385         * doc/functions/ftell.texi: Update.
47386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47387         REPLACE_FTELL.
47388         * lib/stdio_.h (rpl_ftell): New declaration.
47389         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47390         REPLACE_FTELL.
47391
47392 2007-05-28  Eric Blake  <ebb9@byu.net>
47393
47394         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47395
47396 2007-05-28  Bruno Haible  <bruno@clisp.org>
47397
47398         * modules/fseek-tests: New file.
47399         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47400         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47401
47402         * lib/fseek.c: New file.
47403         * modules/fseek: New file.
47404         * m4/fseek.m4: New file.
47405         * doc/functions/fseek.texi: Update.
47406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47407         REPLACE_FSEEK.
47408         * lib/stdio_.h (rpl_fseek): New declaration.
47409         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47410         REPLACE_FSEEK.
47411
47412 2007-05-28  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/stdio_.h (fflush): More comments.
47415
47416 2007-05-28  Bruno Haible  <bruno@clisp.org>
47417
47418         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47419         runtime test.
47420
47421 2007-05-28  Eric Blake  <ebb9@byu.net>
47422
47423         Improve lseek module.
47424         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47425         * lib/unistd_.h (lseek): Scale back link warning message.
47426         * tests/test-lseek.c: Beef up test.
47427         * tests/test-lseek.sh: Exercise more facets of lseek.
47428         Reported by Bruno Haible.
47429
47430 2007-05-28  Bruno Haible  <bruno@clisp.org>
47431
47432         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47433         to define.
47434
47435 2007-05-27  Bruno Haible  <bruno@clisp.org>
47436
47437         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47438
47439 2007-05-27  Bruno Haible  <bruno@clisp.org>
47440
47441         * modules/openmp: New file.
47442         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47443         Noah Misch.
47444
47445 2007-05-26  Bruno Haible  <bruno@clisp.org>
47446
47447         * modules/chdir-long (Depends-on): Add fchdir.
47448         * modules/chdir-safer (Depends-on): Likewise.
47449         * modules/fts (Depends-on): Likewise.
47450         * modules/fts-lgpl (Depends-on): Likewise.
47451         * modules/openat (Depends-on): Likewise.
47452         * modules/savewd (Depends-on): Likewise.
47453
47454 2007-05-24  Eric Blake  <ebb9@byu.net>
47455
47456         Fix lseek on mingw.
47457         * modules/lseek: New module.
47458         * m4/lseek.m4: New file.
47459         * lib/lseek.c: New file.
47460         * modules/lseek-tests: New file.
47461         * tests/test-lseek.c: New file.
47462         * tests/test-lseek.sh: New file.
47463         * MODULES.html.sh: Document lseek module.
47464         * modules/fflush (Depends-on): Add lseek, fseeko.
47465         * modules/fseeko (Depends-on): Likewise.
47466         * modules/ftello (Depends-on): Likewise.
47467         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47468         broken.
47469         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47470         broken.
47471         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47472         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47473         * lib/ftello.c (rpl_ftello): Likewise.
47474         * tests/test-fseeko.c (main): Test this.
47475         * tests/test-fseeko.sh: Likewise.
47476         * tests/test-ftello.c (main): Likewise.
47477         * tests/test-ftello.sh: Likewise.
47478         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47479         implies replacing fseek.
47480         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47481         HAVE_FTELLO.
47482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47483         * modules/unistd (Makefile.am): Likewise.
47484         * lib/unistd_.h (lseek): Declare a replacement.
47485         * doc/functions/lseek.texi (lseek): Document this fix.
47486         * doc/functions/fseek.texi (fseek): Likewise.
47487         * doc/functions/ftell.texi (ftell): Likewise.
47488
47489 2007-05-24  Bruno Haible  <bruno@clisp.org>
47490
47491         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47492         in the printed representation of a NaN.
47493         * tests/test-vasprintf-posix.c (test_function): Likewise.
47494         * tests/test-snprintf-posix.h (test_function): Likewise.
47495         * tests/test-sprintf-posix.h (test_function): Likewise.
47496         Reported by Eric Blake.
47497
47498 2007-05-23  Eric Blake  <ebb9@byu.net>
47499
47500         Fix fseeko/ftello on cygwin 1.5.24.
47501         * doc/functions/fseeko.texi (fseeko): Document the fix.
47502         * doc/functions/ftello.texi (ftello): Document the fix.
47503         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47504         * doc/functions/stdout.text (stdout): New file.
47505         * doc/functions/stderr.text (stderr): New file.
47506         * doc/gnulib.texi (Function Substitutes): Use new files.
47507         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47508         prior to 1.7.0.
47509         * tests/test-ftello.c (main): Likewise for ftello.
47510         * tests/test-fseeko.sh: New file.
47511         * tests/test-ftello.sh: New file.
47512         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47513         with seekable stdin.
47514         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47516         (gl_REPLACE_FSEEKO): New macro.
47517         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47518         * modules/fseeko (Files): Distribute fseeko.c.
47519         * modules/ftello (Files): Distribute ftello.c.
47520         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47521         mode.
47522         * lib/ftello.c (rpl_ftello): New file.
47523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47524         fseeko, ftello.
47525         (gl_STDIN_LARGE_OFFSET): New macro.
47526         * modules/stdio (Makefile.am): Perform the replacement.
47527         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47528
47529 2007-05-23  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47532         GNULIB_POSIXCHECK is defined.
47533
47534 2007-05-21  Bruno Haible  <bruno@clisp.org>
47535
47536         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47537         Check also the output for NaN arguments. When cross-compiling, guess
47538         no on IRIX.
47539         * lib/vasnprintf.c: Update comments.
47540         * tests/test-vasnprintf-posix.c (strisnan): New function.
47541         (test_function): Use it.
47542         * tests/test-vasprintf-posix.c (strisnan): New function.
47543         (test_function): Use it.
47544         * tests/test-snprintf-posix.h (strisnan): New function.
47545         (test_function): Use it.
47546         * tests/test-sprintf-posix.h (strisnan): New function.
47547         (test_function): Use it.
47548         Reported by Eric Blake.
47549
47550 2007-05-20  Bruno Haible  <bruno@clisp.org>
47551
47552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47553         numbers that fails on BeOS.
47554         * doc/functions/frexpl.texi: Update.
47555
47556 2007-05-20  Jim Meyering  <jim@meyering.net>
47557
47558         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47559         forced upon us by glibc-2.6.
47560
47561 2007-05-20  Bruno Haible  <bruno@clisp.org>
47562
47563         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47564         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47565         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47566         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47567         NEED_PRINTF_INFINITE.
47568         (is_infinitel): New function.
47569         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47571         gl_PREREQ_VASNPRINTF_INFINITE.
47572         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47574         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47575         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47576         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47577         gl_PREREQ_VASNPRINTF_INFINITE.
47578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47584         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47585         * doc/functions/fprintf.texi: Update.
47586         * doc/functions/printf.texi: Update.
47587         * doc/functions/snprintf.texi: Update.
47588         * doc/functions/sprintf.texi: Update.
47589         * doc/functions/vfprintf.texi: Update.
47590         * doc/functions/vprintf.texi: Update.
47591         * doc/functions/vsnprintf.texi: Update.
47592         * doc/functions/vsprintf.texi: Update.
47593
47594 2007-05-20  Bruno Haible  <bruno@clisp.org>
47595
47596         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47597         was not found in libc.
47598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47599
47600 2007-05-20  Bruno Haible  <bruno@clisp.org>
47601
47602         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47603         printed as "-nan" instead of "nan".
47604         * tests/test-vasprintf-posix.c (test_function): Likewise.
47605         * tests/test-snprintf-posix.h (test_function): Likewise.
47606         * tests/test-sprintf-posix.h (test_function): Likewise.
47607         Needed for HP-UX 11.
47608
47609 2007-05-20  Jim Meyering  <jim@meyering.net>
47610
47611         Fix buggy test for the fchownat-deref bug.
47612         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47613         symlink required for the run-test.  Without it, this test would
47614         always declare that fchownat doesn't work, and client code would
47615         unnecessarily use the replacement function with fixed libc.
47616         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47617         Reported by Greg Schafer.
47618
47619 2007-05-19  Bruno Haible  <bruno@clisp.org>
47620
47621         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47622         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47623         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47624         Needed for IRIX 6.5 and Solaris 2.5.1.
47625
47626 2007-05-19  Bruno Haible  <bruno@clisp.org>
47627
47628         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47629         (test_function): Skip tests involving -0.0 on platforms where
47630         -0.0 = 0.0.
47631         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47632         (test_function): Skip tests involving -0.0 on platforms where
47633         -0.0 = 0.0.
47634         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47635         (test_function): Skip tests involving -0.0 on platforms where
47636         -0.0 = 0.0.
47637         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47638         (test_function): Skip tests involving -0.0 on platforms where
47639         -0.0 = 0.0.
47640         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47641         tests.
47642         * tests/test-printf-posix.h (test_function): Likewise.
47643         * tests/test-printf-posix.output: Remove all -0.0 related results.
47644         Needed for IRIX 6.5.
47645
47646 2007-05-19  Bruno Haible  <bruno@clisp.org>
47647
47648         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47649         printed as "nan0x7fffffff" instead of "nan".
47650         * tests/test-vasprintf-posix.c (test_function): Likewise.
47651         * tests/test-snprintf-posix.h (test_function): Likewise.
47652         * tests/test-sprintf-posix.h (test_function): Likewise.
47653         * tests/test-fprintf-posix.h (NaN): Remove macro.
47654         (test_function): Remove all NaN related tests.
47655         * tests/test-printf-posix.h (NaN): Remove macro.
47656         (test_function): Remove all NaN related tests.
47657         * tests/test-printf-posix.output: Remove all NaN related results.
47658         Needed for IRIX 6.5.
47659
47660 2007-05-19  Bruno Haible  <bruno@clisp.org>
47661
47662         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47663         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47664
47665 2007-05-19  Bruno Haible  <bruno@clisp.org>
47666
47667         * lib/float_.h: New file.
47668         * m4/float_h.m4: New file.
47669         * modules/float: New file.
47670         * modules/isnanl (Dependencies): Add float.
47671         * modules/isnanl-nolibm (Dependencies): Likewise.
47672         * modules/mathl (Dependencies): Likewise.
47673         * modules/printf-frexpl (Dependencies): Likewise.
47674         * modules/signbit (Dependencies): Likewise.
47675         * modules/vasnprintf (Dependencies): Likewise.
47676         * doc/headers/float.texi: Update.
47677
47678 2007-05-19  Jim Meyering  <jim@meyering.net>
47679
47680         * lib/utimens.c (gl_futimens): Rename from futimens,
47681         now that glibc-2.6 declares futimens.
47682         * lib/utimens.h: Likewise.
47683
47684 2007-05-19  Bruno Haible  <bruno@clisp.org>
47685
47686         Avoid test failures on mingw.
47687         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47688         * tests/test-printf-posix.sh: Likewise.
47689         * tests/test-vfprintf-posix.sh: Likewise.
47690         * tests/test-vprintf-posix.sh: Likewise.
47691
47692 2007-05-19  Bruno Haible  <bruno@clisp.org>
47693
47694         Fix *printf result for NaN, Inf, -0.0 on mingw.
47695         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47696         * lib/vasnprintf.c: Include math.h and isnan.h.
47697         (is_infinite_or_zero): New function.
47698         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47699         values in the %f, %F, %e, %E, %g, %G directives.
47700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47701         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47702         gl_PRINTF_INFINITE and test its result. Invoke
47703         gl_PREREQ_VASNPRINTF_INFINITE.
47704         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47706         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47707         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47708         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47709         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47710         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47711         * doc/functions/fprintf.texi: Update.
47712         * doc/functions/printf.texi: Update.
47713         * doc/functions/snprintf.texi: Update.
47714         * doc/functions/sprintf.texi: Update.
47715         * doc/functions/vfprintf.texi: Update.
47716         * doc/functions/vprintf.texi: Update.
47717         * doc/functions/vsnprintf.texi: Update.
47718         * doc/functions/vsprintf.texi: Update.
47719
47720 2007-05-19  Bruno Haible  <bruno@clisp.org>
47721
47722         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47723         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47724         Instead of multiplying with 10^k, set extra_zeroes to k.
47725         (scale10_round_long_double): Remove function.
47726
47727 2007-05-18  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47730         introduced on 2007-05-06.
47731
47732 2007-05-18  Bruno Haible  <bruno@clisp.org>
47733
47734         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47735         %g directives.
47736         * tests/test-vasprintf-posix.c (test_function): Likewise.
47737         * tests/test-snprintf-posix.h (test_function): Likewise.
47738         * tests/test-sprintf-posix.h (test_function): Likewise.
47739
47740 2007-05-18  Bruno Haible  <bruno@clisp.org>
47741
47742         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47743         (strmatch): New function.
47744         (test_function): Test the %f directive on numbers of various exponents.
47745         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47746         (strmatch): New function.
47747         (test_function): Test the %f directive on numbers of various exponents.
47748         * tests/test-snprintf-posix.h (strmatch): New function.
47749         (test_function): Test the %f directive on numbers of various exponents.
47750         * tests/test-sprintf-posix.h (strmatch): New function.
47751         (test_function): Test the %f directive on numbers of various exponents.
47752         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47753         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47754         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47755         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47756
47757 2007-05-18  Bruno Haible  <bruno@clisp.org>
47758
47759         Add support for 'long double' number output.
47760         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47761         * lib/vasnprintf.c: Include math.h and float+.h.
47762         (mp_limb_t): New type.
47763         (GMP_LIMB_BITS): New macro.
47764         (mp_twolimb_t): New type.
47765         (GMP_TWOLIMB_BITS): New macro.
47766         (mpn_t): New type.
47767         (multiply, divide, convert_to_decimal, decode_long_double,
47768         scale10_round_long_double, scale10_round_decimal_long_double,
47769         floorlog10l): New functions.
47770         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47771         for the %f, %F, %e, %E, %g, %G directives.
47772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47774         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47775         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47783         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47784         * modules/snprintf-posix (Depends-on): Likewise.
47785         * modules/sprintf-posix (Depends-on): Likewise.
47786         * modules/vasnprintf-posix (Depends-on): Likewise.
47787         * modules/vasprintf-posix (Depends-on): Likewise.
47788         * modules/vfprintf-posix (Depends-on): Likewise.
47789         * modules/vsnprintf-posix (Depends-on): Likewise.
47790         * modules/vsprintf-posix (Depends-on): Likewise.
47791         * modules/vasnprintf (Files): Add lib/float+.h.
47792         * doc/functions/fprintf.texi: Update.
47793         * doc/functions/printf.texi: Update.
47794         * doc/functions/snprintf.texi: Update.
47795         * doc/functions/sprintf.texi: Update.
47796         * doc/functions/vfprintf.texi: Update.
47797         * doc/functions/vprintf.texi: Update.
47798         * doc/functions/vsnprintf.texi: Update.
47799         * doc/functions/vsprintf.texi: Update.
47800
47801 2007-05-18  Bruno Haible  <bruno@clisp.org>
47802
47803         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47804
47805 2007-05-18  Bruno Haible  <bruno@clisp.org>
47806
47807         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47808         for printing 64-bit integers. Needed for mingw.
47809
47810 2007-05-18  Bruno Haible  <bruno@clisp.org>
47811
47812         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47813         gl_FUNC_FREXPL_WORKS.
47814         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47815
47816 2007-05-18  Bruno Haible  <bruno@clisp.org>
47817
47818         * modules/frexpl-nolibm-tests: New file.
47819
47820         * modules/frexpl-nolibm: New file.
47821         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47822
47823 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47824
47825         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47826         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47827         GCC 4.2, which otherwise issues a lot of warnings.
47828         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47829         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47830         Likewise.
47831         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47832         * modules/iconv_open (iconv.h): Likewise.
47833         * modules/locale (locale.h): Likewise.
47834         * modules/netinet_in (netinet/in.h): Likewise.
47835         * modules/sys_select (sys_select.h): Likewise.
47836         * modules/sys_socket (sys/socket.h): Likewise.
47837         * modules/sys_stat (sys/stat.h): Likewise.
47838         * modules/sysexits (sysexits.h): Likewise.
47839         * modules/unistd (unistd.h): Likewise.
47840
47841 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47842
47843         * modules/closein-tests (Makefile.am): Distribute
47844         `test-closein.sh'.
47845
47846 2007-05-17  Bruno Haible  <bruno@clisp.org>
47847
47848         * tests/test-printf-posix.output: Renamed from
47849         tests/test-fprintf-posix.out.
47850         * modules/fprintf-posix-tests: Update.
47851         * modules/printf-posix-tests: Update.
47852         * modules/vfprintf-posix-tests: Update.
47853         * modules/vprintf-posix-tests: Update.
47854         * tests/test-fprintf-posix.sh: Update.
47855         * tests/test-printf-posix.sh: Update.
47856         * tests/test-vfprintf-posix.sh: Update.
47857         * tests/test-vprintf-posix.sh: Update.
47858         Reported by Ralf Wildenhues.
47859
47860 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47861
47862         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47863         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47864         GCC 4.2, which otherwise issues a lot of warnings.
47865         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47866         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47867         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47868         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47869         it should no longer be needed.
47870         * lib/string_.h: Likewise.
47871         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47872         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47873         * modules/inttypes (inttypes.h): Likewise.
47874         * modules/math (math.h): Likewise.
47875         * modules/search (search.h): Likewise.
47876         * modules/signal (signal.h): Likewise.
47877         * modules/stdint (stdint.h): Likewise.
47878         * modules/stdio (stdio.h): Likewise.
47879         * modules/stdlib (stdlib.h): Likewise.
47880         * modules/string (string.h): Likewise.
47881         * modules/sys_time (sys/time.h): Likewise.
47882         * modules/time (time.h): Likewise.
47883         * modules/wchar (wchar.h): Likewise.
47884         * modules/wctype (wtype.h): Likewise.
47885
47886 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47887
47888         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47889
47890 2007-05-13  Bruno Haible  <bruno@clisp.org>
47891
47892         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47893         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47894         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47895         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47896         (gl_PREREQ_STRTOK_R): Don't require it here.
47897
47898 2007-05-13  Bruno Haible  <bruno@clisp.org>
47899
47900         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47901         when used in C++ mode.
47902
47903 2007-05-12  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/linebuffer.h: Tweak doc.
47906         * lib/linebuffer.c: Likewise.
47907
47908 2007-05-12  James Youngman  <jay@gnu.org>
47909
47910         * lib/linebuffer.c (readlinebuffer_delim): New function,
47911         like readlinebuffer, but use a caller-specified delimiter.
47912         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47913         as the delimiter.
47914         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47915
47916 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47917
47918         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47919         * modules/openat (Files): Remove openat-die.c.
47920         (Depends-on): Add openat-die.
47921         * modules/openat-die: New module.
47922
47923 2007-05-06  Bruno Haible  <bruno@clisp.org>
47924
47925         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47926         Update with info about Cygwin.
47927         * doc/functions/fprintf.texi: Update.
47928         * doc/functions/printf.texi: Update.
47929         * doc/functions/snprintf.texi: Update.
47930         * doc/functions/sprintf.texi: Update.
47931         * doc/functions/vfprintf.texi: Update.
47932         * doc/functions/vprintf.texi: Update.
47933         * doc/functions/vsnprintf.texi: Update.
47934         * doc/functions/vsprintf.texi: Update.
47935         Reported by Eric Blake.
47936
47937 2007-05-06  Bruno Haible  <bruno@clisp.org>
47938
47939         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47940         padding ourselves for the floating-point directives.
47941         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47943         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47944         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47945         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47950         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47953         * tests/test-snprintf-posix.h (test_function): Also check the width
47954         and some flags in the %f directive.
47955         * tests/test-sprintf-posix.h (test_function): Likewise.
47956         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47957         * tests/test-vasprintf-posix.c (test_function): Likewise.
47958         * doc/functions/fprintf.texi: Update.
47959         * doc/functions/printf.texi: Update.
47960         * doc/functions/snprintf.texi: Update.
47961         * doc/functions/sprintf.texi: Update.
47962         * doc/functions/vfprintf.texi: Update.
47963         * doc/functions/vprintf.texi: Update.
47964         * doc/functions/vsnprintf.texi: Update.
47965         * doc/functions/vsprintf.texi: Update.
47966
47967 2007-05-06  Bruno Haible  <bruno@clisp.org>
47968
47969         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47970         pass the ' flag character to sprintf or snprintf.
47971         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47973         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47974         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47975         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47976         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47978         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47980         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47982         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47983         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47984         flag.
47985         * tests/test-sprintf-posix.h (test_function): Likewise.
47986         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47987         * tests/test-vasprintf-posix.c (test_function): Likewise.
47988         * doc/functions/fprintf.texi: Update.
47989         * doc/functions/printf.texi: Update.
47990         * doc/functions/snprintf.texi: Update.
47991         * doc/functions/sprintf.texi: Update.
47992         * doc/functions/vfprintf.texi: Update.
47993         * doc/functions/vprintf.texi: Update.
47994         * doc/functions/vsnprintf.texi: Update.
47995         * doc/functions/vsprintf.texi: Update.
47996
47997 2007-05-01  Bruno Haible  <bruno@clisp.org>
47998
47999         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48000
48001 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48002
48003         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48004         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48005
48006 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48007
48008         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48009         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48011
48012 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48013
48014         * lib/argp-help.c (struct hol_entry): New member `ord'.
48015         (HOL_ENTRY_PTRCMP): Use ord for comparison
48016         (hol_sort): Initialize ord.
48017
48018 2007-05-01  Bruno Haible  <bruno@clisp.org>
48019
48020         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48021         Reported by Eric Blake.
48022         * doc/gnulib.texi (Function Substitutes): Update.
48023
48024 2007-05-01  Bruno Haible  <bruno@clisp.org>
48025
48026         * doc/functions.texi: Remove file, now redundant through
48027         doc/functions/*.texi.
48028
48029 2007-05-01  Bruno Haible  <bruno@clisp.org>
48030
48031         * modules/argp (Depends-on): Add sleep.
48032
48033 2007-05-01  Bruno Haible  <bruno@clisp.org>
48034
48035         * modules/sleep-tests: New file.
48036         * tests/test-sleep.c: New file.
48037
48038         * modules/sleep: New file.
48039         * lib/sleep.c: New file.
48040         * m4/sleep.m4: New file.
48041         * lib/unistd_.h (sleep): New declaration.
48042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48043         HAVE_SLEEP.
48044         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48045         * doc/functions/sleep.texi: Document the sleep module.
48046
48047 2007-05-01  Bruno Haible  <bruno@clisp.org>
48048
48049         * lib/sigprocmask.h: Remove file.
48050         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48051         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48052         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48053         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48054         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48055         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48056         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48057         HAVE_SIGSET_T as a shell variable.
48058         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48059         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48060         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48061         (Depends-on): Add signal. Remove verify.
48062         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48063         (Include): Mention <signal.h> instead of sigprocmask.h.
48064         * NEWS: Mention the change.
48065         * lib/fatal-signal.c: Don't include sigprocmask.h.
48066
48067 2007-05-01  Bruno Haible  <bruno@clisp.org>
48068
48069         * modules/signal: New file.
48070         * lib/signal_.h: New file.
48071         * m4/signal_h.m4: New file.
48072
48073 2007-05-01  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48076         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48077         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48078         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48079
48080 2007-05-01  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48083         configure time.
48084         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48085         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48086         * modules/sys_stat (Makefile.am): Substitute their values into
48087         sys/stat.h.
48088
48089 2007-05-01  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48092         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48093         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48094
48095 2007-05-01  Bruno Haible  <bruno@clisp.org>
48096
48097         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48098         'assert' module here.
48099
48100 2007-05-01  Bruno Haible  <bruno@clisp.org>
48101
48102         * doc/functions/*.texi: New files.
48103         * doc/functions/google-ranking.txt: New file.
48104         * doc/gnulib.texi (Function Substitutes): New chapter.
48105         (ctime, inet_ntoa): Remove sections.
48106         * doc/ctime.texi: Remove file.
48107         * doc/inet_ntoa.texi: Remove file.
48108         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48109         dependencies.
48110         (%.info): New rule, specifying a --reference-limit.
48111
48112 2007-05-01  Bruno Haible  <bruno@clisp.org>
48113
48114         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48115
48116 2007-05-01  Bruno Haible  <bruno@clisp.org>
48117
48118         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48119         the portability of 'mkdir' to mingw systems.
48120
48121 2007-05-01  Bruno Haible  <bruno@clisp.org>
48122
48123         * doc/headers/google-ranking.txt: New file.
48124
48125 2007-04-30  Eric Blake  <ebb9@byu.net>
48126
48127         Prefer fseeko to fseek.
48128         * modules/getpass (Depends-on): Add fseeko.
48129         * lib/getpass.c (getpass): Use fseeko, not fseek.
48130
48131 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48132
48133         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48134         assumes the sorting is stable, while most qsort implementations
48135         are not.  Use argument addresses to ensure they never compare as
48136         equal.
48137
48138         * tests/test-argp-2.sh (usage-indent test): Fix output
48139         (func_compare): Restore diff options
48140         * tests/test-argp.c: Restore #include "progname.h"
48141
48142 2007-04-29  Bruno Haible  <bruno@clisp.org>
48143
48144         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48146         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48148         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48149         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48150         (TESTS, check_PROGRAMS): Add test-snprintf.
48151         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48152         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48153         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48154         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48155         assertions that fail on HP-UX, OSF/1, or IRIX.
48156         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48157
48158 2007-04-29  Bruno Haible  <bruno@clisp.org>
48159
48160         * MODULES.html.sh (posix_functions): Remove 'contents'.
48161
48162 2007-04-29  Karl Berry  <karl@gnu.org>
48163
48164         * config/srclist.txt (gendocs_template_min): new entry.
48165
48166 2007-04-29  Bruno Haible  <bruno@clisp.org>
48167
48168         Work around fpurge bug on BSD systems.
48169         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48170         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48171         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48172         fpurge to rpl_fpurge if the system already has this function.
48173         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48174         the case where the system already has this function. Correct invariants
48175         on BSD systems.
48176         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48177         BSD systems.
48178
48179 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48180
48181         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48182         proposed by Sven Verdoolaege.
48183
48184         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48185         options.
48186         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48187         (usage and help tests): Update
48188
48189 2007-04-29  Bruno Haible  <bruno@clisp.org>
48190
48191         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48192         Print more information in case of failure. Disable a test on BeOS.
48193
48194 2007-04-29  Bruno Haible  <bruno@clisp.org>
48195
48196         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48197         This helps debugging on systems on which no gdb is available.
48198
48199 2007-04-29  Bruno Haible  <bruno@clisp.org>
48200
48201         * lib/freading.h: Improve comments.
48202         * lib/fwriting.h: Likewise.
48203         * tests/test-freading.c (main): Don't check freading immediately after
48204         repositioning. Needed for glibc.
48205
48206 2007-04-29  Bruno Haible  <bruno@clisp.org>
48207
48208         * lib/freading.c (freading): Trivial simplification.
48209
48210 2007-04-28  Bruno Haible  <bruno@clisp.org>
48211
48212         * tests/test-fwriting.c (main): Also test the interaction between
48213         fflush and fwriting.
48214         * modules/fwriting-tests (Depends-on): Add fflush.
48215
48216         * tests/test-freading.c (main): Also test the interaction between
48217         fflush and freading.
48218         * modules/freading-tests (Depends-on): Add fflush.
48219
48220 2007-04-28  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48223         fseeko and ftello.
48224         Suggested by Eric Blake.
48225
48226 2007-04-28  Jim Meyering  <jim@meyering.net>
48227
48228         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48229         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48230         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48231
48232 2007-04-27  Eric Blake  <ebb9@byu.net>
48233
48234         * doc/headers/assert.texi (assert.h): Document assert module use.
48235
48236 2007-04-27  Bruno Haible  <bruno@clisp.org>
48237
48238         * doc/headers/*.texi: New files.
48239         * doc/gnulib.texi (Header File Substitutes): New chapter.
48240         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48241         dependencies.
48242         (standards.info ,standards.html, standards.dvi): Update dependencies.
48243         (mostlyclean, clean): New targets.
48244
48245 2007-04-27  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48248         * modules/sysexits (Files, Makefile.am): Update.
48249
48250         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48251         * modules/sys_socket (Files, Makefile.am): Update.
48252
48253         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48254         * modules/sys_stat (Files, Makefile.am): Update.
48255
48256 2007-04-27  Eric Blake  <ebb9@byu.net>
48257
48258         * lib/freading.h: Improve comments.
48259         * lib/fwriting.h: Likewise.
48260         * lib/fflush.c: Likewise.
48261
48262         Fix closein for mingw.
48263         * modules/closein-tests: Add tests for closein.
48264         * tests/test-closein.c: New file.
48265         * tests/test-closein.sh: Likewise.
48266         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48267         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48268
48269 2007-04-27  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48272         version is < 6.
48273         * lib/math_.h [__DECC]: Likewise.
48274         * lib/stdio_.h [__DECC]: Likewise.
48275         * lib/stdlib_.h [__DECC]: Likewise.
48276         * lib/string_.h [__DECC]: Likewise.
48277         * lib/time_.h [__DECC]: Likewise.
48278         * lib/wchar_.h [__DECC]: Likewise.
48279         * lib/wctype_.h [__DECC]: Likewise.
48280
48281 2007-04-27  Bruno Haible  <bruno@clisp.org>
48282
48283         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48284
48285 2007-04-27  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/fflush.c: Add comments.
48288         * modules/fpurge-tests (Depends-on): Add fflush.
48289         * modules/freadable-tests (Depends-on): Likewise.
48290         * modules/fwritable-tests (Depends-on): Likewise.
48291
48292 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48293
48294         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48295         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48296         Report by Bruno Haible <bruno@clisp.org>.
48297
48298 2007-04-26  Eric Blake  <ebb9@byu.net>
48299
48300         Fix fflush on mingw.
48301         * modules/fflush (Depends-on): Add freading.
48302         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48303         but unread data.
48304
48305 2007-04-26  Eric Blake  <ebb9@byu.net>
48306         and Bruno Haible  <bruno@clisp.org>
48307
48308         Implement freading and fwriting.
48309         * lib/freading.c: New file.
48310         * lib/freading.h: Likewise.
48311         * m4/freading.m4: Likewise.
48312         * modules/freading: Likewise.
48313         * modules/freading-tests: Likewise.
48314         * tests/test-freading.c: Likewise.
48315         * lib/fwriting.c: New file.
48316         * lib/fwriting.h: Likewise.
48317         * m4/fwriting.m4: Likewise.
48318         * modules/fwriting: Likewise.
48319         * modules/fwriting-tests: Likewise.
48320         * tests/test-fwriting.c: Likewise.
48321         * MODULES.html.sh (File stream based Input/Output): Mention them.
48322
48323 2007-04-26  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48326         'long' when we assume it.
48327         Suggested by Eric Blake.
48328
48329 2007-04-26  Bruno Haible  <bruno@clisp.org>
48330
48331         Ensure fseeko, ftello are declared on glibc systems.
48332         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48333         * modules/fseeko (configure.ac-early): Likewise.
48334         * modules/ftello (configure.ac-early): Likewise.
48335         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48336         AC_FUNC_FSEEKO for this.
48337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48338         (gl_CHECK_FSEEKO): Remove macro.
48339
48340 2007-04-26  Bruno Haible  <bruno@clisp.org>
48341
48342         * tests/test-fflush.c (main): Also check the ftell result after
48343         fflush and fseek/fseeko.
48344         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48345         file descriptor position cache in the stream.
48346         * lib/fseeko.c (rpl_fseeko): Likewise.
48347
48348 2007-04-26  Bruno Haible  <bruno@clisp.org>
48349
48350         * modules/fflush-tests (Depends-on): Add fseeko.
48351
48352 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48353             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48354
48355         * lib/argz_.h: ensure error_t definition is obtained in same
48356         mechanism system argz.h would have.
48357         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48358         argz facilities are known bad.  Err on the side of caution if
48359         cross-compiling.
48360
48361 2007-04-25  Eric Blake  <ebb9@byu.net>
48362
48363         * lib/fpurge.c (includes): Use stdlib.h for free.
48364         * tests/test-fflush.c (main): Also test fflush-fseeko.
48365
48366 2007-04-25  Bruno Haible  <bruno@clisp.org>
48367
48368         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48369         * lib/fseeko.c: New file.
48370         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48371         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48372         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48373         gl_FUNC_FSEEKO.
48374         (gl_FUNC_FSEEKO): Invoke it.
48375         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48376         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48377         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48378
48379 2007-04-25  Bruno Haible  <bruno@clisp.org>
48380
48381         * modules/fflush (Depends-on): Add ftello.
48382
48383 2007-04-25  Bruno Haible  <bruno@clisp.org>
48384
48385         * modules/ftello-tests: New file.
48386         * tests/test-ftello.c: New file.
48387
48388         * modules/ftello: New file.
48389         * m4/ftello.m4: New file.
48390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48391         HAVE_FTELLO.
48392         * lib/stdio_.h (ftello): New declaration.
48393         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48394         HAVE_FTELLO.
48395
48396 2007-04-25  Bruno Haible  <bruno@clisp.org>
48397
48398         * modules/fseeko-tests: New file.
48399         * tests/test-fseeko.c: New file.
48400
48401         * modules/fseeko: New file.
48402         * m4/fseeko.m4: New file.
48403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48404         HAVE_FSEEKO.
48405         * lib/stdio_.h (fseeko): New declaration.
48406         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48407         HAVE_FSEEKO.
48408
48409 2007-04-25  Bruno Haible  <bruno@clisp.org>
48410
48411         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48412
48413 2007-04-25  Bruno Haible  <bruno@clisp.org>
48414
48415         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48416         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48417         * tests/test-unistd.c: Likewise.
48418         * tests/test-fcntl.c: Likewise.
48419
48420 2007-04-23  Eric Blake  <ebb9@byu.net>
48421
48422         * lib/fflush.c: Fix missing include.
48423         Reported by Bruno Haible.
48424
48425 2007-04-23  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48428         Reported by Eric Blake.
48429
48430 2007-04-23  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48433
48434 2007-04-23  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48437
48438 2007-04-23  Bruno Haible  <bruno@clisp.org>
48439
48440         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48441         Needed on HP-UX 11.
48442
48443 2007-04-16  Eric Blake  <ebb9@byu.net>
48444
48445         Make fflush rely on fpurge.
48446         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48447         open coding all variants.
48448         * modules/fflush (Depends-on): Add fpurge and unistd.
48449         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48450         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48451
48452         Fix --with-tests compilation on cygwin.
48453         * modules/argmatch-tests (Makefile.am): List gnulib library first
48454         in LDADD.
48455         * modules/argp-tests (Makefile.am): Likewise.
48456         * modules/array-list-tests (Makefile.am): Likewise.
48457         * modules/array-oset-tests (Makefile.am): Likewise.
48458         * modules/avltree-list-tests (Makefile.am): Likewise.
48459         * modules/avltree-oset-tests (Makefile.am): Likewise.
48460         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48461         * modules/carray-list-tests (Makefile.am): Likewise.
48462         * modules/dirname-tests (Makefile.am): Likewise.
48463         * modules/frexp-tests (Makefile.am): Likewise.
48464         * modules/isnanl-tests (Makefile.am): Likewise.
48465         * modules/linked-list-tests (Makefile.am): Likewise.
48466         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48467         * modules/lock-tests (Makefile.am): Likewise.
48468         * modules/rbtree-list-tests (Makefile.am): Likewise.
48469         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48470         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48471         * modules/tls-tests (Makefile.am): Likewise.
48472         * modules/tsearch-tests (Makefile.am): Likewise.
48473         * modules/xvasprintf-tests (Makefile.am): Likewise.
48474
48475         Fix fpurge for cygwin.
48476         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48477         value.
48478         * modules/fpurge-tests (Depends-on): Clean up trash.
48479
48480 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48481
48482         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48483
48484         * m4/autobuild.m4: Re-indent.
48485
48486 2007-04-13  Bruno Haible  <bruno@clisp.org>
48487
48488         * modules/fpurge-tests: New file.
48489         * tests/test-fpurge.c: New file.
48490
48491         * modules/fpurge: New file.
48492         * lib/fpurge.h: New file.
48493         * lib/fpurge.c: New file.
48494         * m4/fpurge.m4: New file.
48495
48496 2007-04-13  Bruno Haible  <bruno@clisp.org>
48497
48498         * modules/fbufmode-tests: New file.
48499         * tests/test-fbufmode.c: New file.
48500
48501         * modules/fbufmode: New file.
48502         * lib/fbufmode.h: New file.
48503         * lib/fbufmode.c: New file.
48504         * m4/fbufmode.m4: New file.
48505
48506 2007-04-13  Bruno Haible  <bruno@clisp.org>
48507
48508         * modules/fwritable-tests: New file.
48509         * tests/test-fwritable.c: New file.
48510
48511         * modules/fwritable: New file.
48512         * lib/fwritable.h: New file.
48513         * lib/fwritable.c: New file.
48514         * m4/fwritable.m4: New file.
48515
48516 2007-04-13  Bruno Haible  <bruno@clisp.org>
48517
48518         * modules/freadable-tests: New file.
48519         * tests/test-freadable.c: New file.
48520
48521         * modules/freadable: New file.
48522         * lib/freadable.h: New file.
48523         * lib/freadable.c: New file.
48524         * m4/freadable.m4: New file.
48525
48526 2007-04-13  Bruno Haible  <bruno@clisp.org>
48527
48528         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48529         MOSTLYCLEANFILES.
48530
48531 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48532
48533         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48534         gzip bootstrap.conf to avoid dragging in i18n machinery.
48535         (gnulib_tool_option): Use it.
48536
48537 2007-04-13  Bruno Haible  <bruno@clisp.org>
48538
48539         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48540         %F directives.
48541         * tests/test-vasprintf-posix.c (test_function): Likewise.
48542         * tests/test-snprintf-posix.h (test_function): Likewise.
48543         * tests/test-sprintf-posix.h (test_function): Likewise.
48544         * tests/test-fprintf-posix.h (test_function): Likewise.
48545         * tests/test-printf-posix.h (test_function): Likewise.
48546         * tests/test-fprintf-posix.out: Likewise.
48547
48548 2007-04-13  Bruno Haible  <bruno@clisp.org>
48549
48550         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48551         * modules/tls-tests (configure.ac): Likewise.
48552         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48553
48554 2007-04-13  Bruno Haible  <bruno@clisp.org>
48555
48556         * lib/tls.c (glthread_tls_get): Fix return type.
48557         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48558
48559 2007-04-12  Eric Blake  <ebb9@byu.net>
48560
48561         * modules/gettime (Depends-on): Remove gettime.
48562         Reported by Dmitry V. Levin.
48563
48564 2007-04-12  Bruno Haible  <bruno@clisp.org>
48565
48566         * modules/fflush (Include): Mention <stdio.h>.
48567         * modules/strtoimax (Include): Mention <inttypes.h>.
48568         * modules/strtoumax (Include): Likewise.
48569
48570 2007-04-12  Eric Blake  <ebb9@byu.net>
48571
48572         * .cvsignore: New file.
48573         * .gitignore: Likewise.
48574
48575 2007-04-12  Bruno Haible  <bruno@clisp.org>
48576
48577         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48578         not before, since $(LDADD) often contains libgnu.a.
48579         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48580         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48581         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48582         Needed on Cygwin.
48583
48584 2007-04-12  Eric Blake  <ebb9@byu.net>
48585
48586         Work around glibc's failure to flush stdin on fclose.
48587         * lib/closein.c (close_stdin): Flush stdin before closing.
48588
48589         Work around glibc's failure to reset seekable stdin on exit.
48590         * modules/closein: New module.
48591         * lib/closein.c: New file.
48592         * lib/closein.h: Likewise.
48593         * m4/closein.m4: Likewise.
48594         * MODULES.html.sh (File stream based Input/Output): Document it.
48595
48596 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48597
48598         * gnulib-tool: Rename generated 'autobuild' script to
48599         'do-autobuild' in --create-megatestdir output.
48600
48601         * doc/gnulib.texi (Build robot for gnulib): Fix.
48602
48603 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48604
48605         * modules/sysexits (Depends-on): Add absolute-header.
48606
48607 2007-04-12  Eric Blake  <ebb9@byu.net>
48608
48609         No need to preserve errno on success.
48610         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48611         Reported by Bruno Haible.
48612
48613 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48614
48615         * MODULES.html.sh (Support for maintaining and releasing
48616         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48617
48618 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48619
48620         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48621
48622 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48623
48624         * modules/autobuild: New module.
48625
48626         * m4/autobuild.m4: New file.
48627
48628 2007-04-11  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48631         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48635         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48636         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48638         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48639         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48647         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48648         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48649         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48650         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48651         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48652         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48653         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48654         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48656         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48657         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48658         Reported by Eric Blake.
48659
48660 2007-04-11  Bruno Haible  <bruno@clisp.org>
48661
48662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48663
48664 2007-04-10  Bruno Haible  <bruno@clisp.org>
48665
48666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48667         for NaN and Infinity. Needed on FreeBSD 6.1.
48668         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48669         regarding results for "%010a" of Infinity and NaN.
48670         * tests/test-vasprintf-posix.c (test_function): Likewise.
48671         * tests/test-snprintf-posix.h (test_function): Likewise.
48672         * tests/test-sprintf-posix.h (test_function): Likewise.
48673         * tests/test-fprintf-posix.h (test_function): Likewise.
48674         * tests/test-printf-posix.h (test_function): Likewise.
48675         * tests/test-fprintf-posix.out: Likewise.
48676
48677 2007-04-10  Bruno Haible  <bruno@clisp.org>
48678
48679         * modules/locale-tests: New file.
48680         * tests/test-locale.c: New file.
48681
48682         * modules/locale: New file.
48683         * lib/locale_.h: New file.
48684         * m4/locale_h.m4: New file.
48685
48686 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48687             Bruno Haible  <bruno@clisp.org>
48688
48689         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48690         be determined, test for availability of the copysignf, copysign,
48691         copysignl functions.
48692         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48693         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48694         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48695
48696 2007-04-09  Eric Blake  <ebb9@byu.net>
48697
48698         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48699         * modules/stdio (Makefile.am): Support fflush.
48700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48701         * modules/fflush: New file.
48702         * lib/fflush.c: Likewise.
48703         * m4/fflush.m4: Likewise.
48704         * modules/fflush-tests: New test.
48705         * tests/test-fflush.c: Likewise.
48706         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48707
48708 2007-04-06  Bruno Haible  <bruno@clisp.org>
48709
48710         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48711         (VASNPRINTF): Use signbit for faster determination whether to print a
48712         minus sign.
48713         * modules/vasnprintf (Files): Remove lib/float+.h.
48714         * modules/fprintf-posix (Depends-on): Add signbit.
48715         * modules/snprintf-posix (Depends-on): Likewise.
48716         * modules/sprintf-posix (Depends-on): Likewise.
48717         * modules/vasnprintf-posix (Depends-on): Likewise.
48718         * modules/vasprintf-posix (Depends-on): Likewise.
48719         * modules/vfprintf-posix (Depends-on): Likewise.
48720         * modules/vsnprintf-posix (Depends-on): Likewise.
48721         * modules/vsprintf-posix (Depends-on): Likewise.
48722
48723 2007-04-06  Bruno Haible  <bruno@clisp.org>
48724
48725         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48726         * tests/test-frexpl.c (main): Likewise.
48727         * tests/test-ldexpl.c (main): Likewise.
48728         * modules/frexp-tests (Depends-on): Add signbit.
48729         * modules/frexpl-tests (Depdends-on): Likewise.
48730         * modules/ldexpl-tests (Depdends-on): Likewise.
48731
48732 2007-04-06  Bruno Haible  <bruno@clisp.org>
48733
48734         * modules/signbit-tests: New file.
48735         * tests/test-signbit.c: New file.
48736
48737         * modules/signbit: New file.
48738         * lib/signbitf.c: New file.
48739         * lib/signbitd.c: New file.
48740         * lib/signbitl.c: New file.
48741         * m4/signbit.m4: New file.
48742         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48743         (signbit): New macro.
48744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48745         REPLACE_SIGNBIT.
48746         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48747         REPLACE_FREXPL into math.h.
48748
48749 2007-04-06  Bruno Haible  <bruno@clisp.org>
48750
48751         * modules/isnanf-nolibm-tests: New file.
48752         * tests/test-isnanf.c: New file.
48753
48754         * modules/isnanf-nolibm: New file.
48755         * lib/isnanf.h: New file.
48756         * lib/isnanf.c: New file.
48757         * lib/isnan.c: Consider the USE_FLOAT macro.
48758         * m4/isnanf.m4: New file.
48759
48760 2007-04-06  Bruno Haible  <bruno@clisp.org>
48761
48762         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48763         (Link): New section.
48764
48765         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48766
48767 2007-04-06  Bruno Haible  <bruno@clisp.org>
48768
48769         Assume the 'long double' type.
48770         * m4/longdouble.m4: Remove file.
48771         * config/srclist.txt: Don't mention longdouble.m4.
48772         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48773         * lib/float+.h: Likewise.
48774         * lib/frexp.c: Likewise.
48775         * lib/printf-args.h: Likewise.
48776         * lib/printf-args.c: Likewise.
48777         * lib/printf-frexp.c: Likewise.
48778         * lib/printf-parse.c: Likewise.
48779         * lib/vasnprintf.c: Likewise.
48780         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48781         * m4/intl.m4: Likewise.
48782         * m4/isnanl.m4: Likewise.
48783         * m4/printf.m4: Likewise.
48784         * m4/printf-frexpl.m4: Likewise.
48785         * m4/vasnprintf.m4: Likewise.
48786         * modules/allocsa (Files): Remove m4/longdouble.m4.
48787         * modules/gettext (Files): Likewise.
48788         * modules/relocatable-prog-wrapper (Files): Likewise.
48789         * modules/vasnprintf (Files): Likewise.
48790         * modules/isnanl (Files): Likewise.
48791         (Include): Simplify.
48792         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48793         (Include): Simplify.
48794         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48795         (Include): Simplify.
48796         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48797         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48798         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48799         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48800         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48801         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48802         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48803         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48804         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48805         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48806         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48807         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48808         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48809         * tests/test-isnanl.c: Likewise.
48810         * tests/test-snprintf-posix.h: Likewise.
48811         * tests/test-sprintf-posix.h: Likewise.
48812         * tests/test-vasnprintf-posix.c: Likewise.
48813         * tests/test-vasnprintf-posix2.c: Likewise.
48814         * tests/test-vasprintf-posix.c: Likewise.
48815
48816 2007-04-06  Bruno Haible  <bruno@clisp.org>
48817
48818         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48819         * lib/math_.h [__DECC]: Include the overridden include file through
48820         #include_next, outside the double-inclusion guard.
48821         * lib/stdio_.h [__DECC]: Likewise.
48822         * lib/stdlib_.h [__DECC]: Likewise.
48823         * lib/string_.h [__DECC]: Likewise.
48824         * lib/time_.h [__DECC]: Likewise.
48825         * lib/wchar_.h [__DECC]: Likewise.
48826         * lib/wctype_.h [__DECC]: Likewise.
48827         * lib/inttypes_.h [__DECC]: Likewise.
48828         Reported by Albert Chin <china@thewrittenword.com> in
48829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48830
48831 2007-04-04  Eric Blake  <ebb9@byu.net>
48832
48833         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48834         1.5.x.
48835
48836 2007-04-04  Bruno Haible  <bruno@clisp.org>
48837
48838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48839         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48840
48841 2007-04-04  Bruno Haible  <bruno@clisp.org>
48842
48843         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48844         results for "%010a" of Infinity and NaN.
48845         * tests/test-vasprintf-posix.c (test_function): Likewise.
48846         * tests/test-snprintf-posix.h (test_function): Likewise.
48847         * tests/test-sprintf-posix.h (test_function): Likewise.
48848         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48849         * tests/test-printf-posix.h (test_function): Likewise.
48850         * tests/test-fprintf-posix.out: Update.
48851         Needed for FreeBSD 6.1.
48852
48853 2007-04-04  Bruno Haible  <bruno@clisp.org>
48854
48855         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48856         directly used by the gnulib modules nor by gnulib-tool.
48857
48858 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48859
48860         * DEPENDENCIES: Give overall description of version dependency
48861         desirability.  Use more-typical names for apps.
48862         Add shell, coreutils, diffutils, grep, tar, gzip.
48863
48864 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48865
48866         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48867
48868 2007-04-04  Karl Berry  <karl@gnu.org>
48869
48870         * MODULES.html.sh (func_module): missing '.
48871
48872 2007-04-03  Bruno Haible  <bruno@clisp.org>
48873
48874         * modules/argmatch-tests (Makefile.am): New variable
48875         test_argmatch_LDADD.
48876         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48877         * modules/array-list-tests (Makefile.am): New variable
48878         test_array_list_LDADD.
48879         * modules/array-oset-tests (Makefile.am): New variable
48880         test_array_oset_LDADD.
48881         * modules/avltree-list-tests (Makefile.am): New variable
48882         test_avltree_list_LDADD.
48883         * modules/avltree-oset-tests (Makefile.am): New variable
48884         test_avltree_oset_LDADD.
48885         * modules/avltreehash-list-tests (Makefile.am): New variable
48886         test_avltreehash_list_LDADD.
48887         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48888         test_canonicalize_lgpl_LDADD.
48889         * modules/carray-list-tests (Makefile.am): New variable
48890         test_carray_list_LDADD.
48891         * modules/dirname-tests (Makefile.am): New variable
48892         test_dirname_LDADD.
48893         * modules/linked-list-tests (Makefile.am): New variable
48894         test_linked_list_LDADD.
48895         * modules/linkedhash-list-tests (Makefile.am): New variable
48896         test_linkedhash_list_LDADD.
48897         * modules/rbtree-list-tests (Makefile.am): New variable
48898         test_rbtree_list_LDADD.
48899         * modules/rbtree-oset-tests (Makefile.am): New variable
48900         test_rbtree_oset_LDADD.
48901         * modules/rbtreehash-list-tests (Makefile.am): New variable
48902         test_rbtreehash_list_LDADD.
48903         * modules/xvasprintf-tests (Makefile.am): New variable
48904         test_xvasprintf_LDADD.
48905         Reported by Eric Blake.
48906
48907 2007-04-03  Eric Blake  <ebb9@byu.net>
48908
48909         * DEPENDENCIES: Weaken m4 requirements.
48910
48911 2007-04-03  Bruno Haible  <bruno@clisp.org>
48912
48913         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48914         * modules/isnanl-tests (configure.ac): Likewise.
48915
48916 2007-04-03  Ben Pfaff  <blp@gnu.org>
48917
48918         * modules/iconv_open: Add $(srcdir)/ to source directory
48919         references in Makefile fragments that call gperf, to fix VPATH
48920         builds.
48921
48922 2007-04-03  Bruno Haible  <bruno@clisp.org>
48923
48924         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48925         * lib/ldexpl.c: Undo last change.
48926
48927 2007-04-03  Bruno Haible  <bruno@clisp.org>
48928
48929         * modules/printf-frexpl (Depends-on): Undo last change.
48930         (Files): Add m4/ldexpl.m4.
48931
48932 2007-04-03  Bruno Haible  <bruno@clisp.org>
48933
48934         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48935         * modules/isnanl (Link): New section.
48936
48937         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48938         * modules/frexp (Link): New section.
48939
48940         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48941         * modules/frexpl (Link): New section.
48942
48943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48944         * modules/ldexpl (Link): New section.
48945
48946 2007-04-03  Bruno Haible  <bruno@clisp.org>
48947
48948         * modules/TEMPLATE-EXTENDED: New file.
48949         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48950
48951 2007-04-03  Bruno Haible  <bruno@clisp.org>
48952
48953         * DEPENDENCIES: New file.
48954         Suggested by Simon Josefsson.
48955
48956 2007-04-03  Bruno Haible  <bruno@clisp.org>
48957
48958         * doc/gnulib.texi: Escape @.
48959
48960 2007-04-03  James Youngman  <jay@gnu.org>
48961         and Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48964         birthtime on all systems that have birthtime, not just those which
48965         use st_birthtimensec rather than st_birthtim.  Putting zero in
48966         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48967         that the birth time is not available for files on an NFS mount.
48968
48969 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48970
48971         * modules/memxor: Move back from crypto/, suggested by Bruno.
48972         * modules/crypto/hmac-sha1: Fix memxor dependency.
48973
48974         * modules/crypto/gc: Moved from ../.
48975
48976 2007-04-02  Eric Blake  <ebb9@byu.net>
48977
48978         * lib/ldexpl.c (includes): Avoid libm.
48979
48980         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48981
48982 2007-04-02  Bruno Haible  <bruno@clisp.org>
48983
48984         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48985         on IRIX.
48986
48987 2007-04-02  Bruno Haible  <bruno@clisp.org>
48988
48989         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48990         x86 or x86_64 platforms running MacOS X.
48991         Reported by Ryan Schmidt <@ryandesign.com>.
48992
48993 2007-04-02  Bruno Haible  <bruno@clisp.org>
48994
48995         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48996         i386.
48997
48998 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48999
49000         * modules/crypto/arcfour: Moved from ../.
49001         * modules/crypto/arcfour-tests: Moved from ../.
49002         * modules/crypto/arctwo: Moved from ../.
49003         * modules/crypto/arctwo-tests: Moved from ../.
49004         * modules/crypto/des: Moved from ../.
49005         * modules/crypto/des-tests: Moved from ../.
49006         * modules/crypto/gc-arcfour: Moved from ../.
49007         * modules/crypto/gc-arcfour-tests: Moved from ../.
49008         * modules/crypto/gc-arctwo: Moved from ../.
49009         * modules/crypto/gc-arctwo-tests: Moved from ../.
49010         * modules/crypto/gc-des: Moved from ../.
49011         * modules/crypto/gc-des-tests: Moved from ../.
49012         * modules/crypto/gc-hmac-md5: Moved from ../.
49013         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49014         * modules/crypto/gc-hmac-sha1: Moved from ../.
49015         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49016         * modules/crypto/gc-md2: Moved from ../.
49017         * modules/crypto/gc-md2-tests: Moved from ../.
49018         * modules/crypto/gc-md4: Moved from ../.
49019         * modules/crypto/gc-md4-tests: Moved from ../.
49020         * modules/crypto/gc-md5: Moved from ../.
49021         * modules/crypto/gc-md5-tests: Moved from ../.
49022         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49023         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49024         * modules/crypto/gc-random: Moved from ../.
49025         * modules/crypto/gc-rijndael: Moved from ../.
49026         * modules/crypto/gc-rijndael-tests: Moved from ../.
49027         * modules/crypto/gc-sha1: Moved from ../.
49028         * modules/crypto/gc-sha1-tests: Moved from ../.
49029         * modules/crypto/gc-tests: Moved from ../.
49030         * modules/crypto/hmac-md5: Moved from ../.
49031         * modules/crypto/hmac-md5-tests: Moved from ../.
49032         * modules/crypto/hmac-sha1: Moved from ../.
49033         * modules/crypto/hmac-sha1-tests: Moved from ../.
49034         * modules/crypto/md2: Moved from ../.
49035         * modules/crypto/md2-tests: Moved from ../.
49036         * modules/crypto/md4: Moved from ../.
49037         * modules/crypto/md4-tests: Moved from ../.
49038         * modules/crypto/md5: Moved from ../.
49039         * modules/crypto/md5-tests: Moved from ../.
49040         * modules/crypto/memxor: Moved from ../.
49041         * modules/crypto/rijndael: Moved from ../.
49042         * modules/crypto/rijndael-tests: Moved from ../.
49043         * modules/crypto/sha1: Moved from ../.
49044
49045 2007-03-30  James Youngman  <jay@gnu.org>
49046
49047         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49048         rename() to change the ctime of a file (because ctime is unaffected
49049         by rename on jfs2 on AIX 5.1).
49050         (main): Start by doing cleanup, in case a previous run failed leaving
49051         test files behind.
49052
49053 2007-03-31  Bruno Haible  <bruno@clisp.org>
49054
49055         Support old proprietary implementations of iconv.
49056         * modules/iconv_open: New file.
49057         * lib/iconv_.h: New file.
49058         * m4/iconv_h.m4: New file.
49059         * lib/iconv_open.c: New file.
49060         * lib/iconv_open-aix.gperf: New file.
49061         * lib/iconv_open-hpux.gperf: New file.
49062         * lib/iconv_open-irix.gperf: New file.
49063         * lib/iconv_open-osf.gperf: New file.
49064         * m4/iconv_open.m4: New file.
49065         * modules/linebreak (Depends-on): Add iconv_open.
49066         * modules/striconv (Depends-on): Likewise.
49067         * modules/striconveh (Depends-on): Likewise.
49068         * modules/unicodeio (Depends-on): Likewise.
49069         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49070         (iconv_t)(-1).
49071         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49072         conversion if cd is (iconv_t)(-1).
49073         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49074         is not possible.
49075
49076 2007-03-31  Bruno Haible  <bruno@clisp.org>
49077
49078         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49079         work on Solaris either. Protect also second use of "autodetect_jp".
49080
49081 2007-03-31  Bruno Haible  <bruno@clisp.org>
49082
49083         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49084         the function is not present.
49085
49086 2007-03-31  Bruno Haible  <bruno@clisp.org>
49087
49088         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49089         the function is not present.
49090
49091 2007-03-31  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49094         a bug in HP-UX iconv_open().
49095
49096 2007-03-31  Bruno Haible  <bruno@clisp.org>
49097
49098         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49099         (Mathematics <math.h>): New section, add fpieee.
49100         (Input/output <stdio.h>): Add fseterr.
49101         (Mathematics <math.h>): New section, add printf-frexp.
49102         (Container data structures): Add sublist.
49103         (Core language properties): Add fpucw, inline.
49104         (Functions for greatest-width integer types <inttypes.h>): Add
49105         imaxabs, imaxdiv, inttypes.
49106         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49107         isnanl-nolibm, ldexp.
49108         (Mathematics <math.h>): New section, add printf-frexpl.
49109         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49110         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49111         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49112         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49113         (Unicode string functions): Add unistr/u*-mbtoucr.
49114         (Java): Add javacomp-script, javaexec-script.
49115         (C#): Add csharpcomp-script, csharpexec-script.
49116         (Support for building libraries and executables): Add havelib,
49117         relocatable-*.
49118         (Support for maintaining and releasing projects): Renamed from
49119         'Support for maintaining and release projects'. Add announce-gen.
49120
49121 2007-03-31  Bruno Haible  <bruno@clisp.org>
49122
49123         * README: Talk primarily about git.
49124         (git and CVS): Renamed from CVS.
49125         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49126         gnulib is available through git.
49127         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49128
49129 2007-03-30  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49132         * lib/poll_.h: Likewise.
49133         * lib/stat_.h: Likewise.
49134         * lib/sys_time_.h: Likewise.
49135         * lib/sysexit_.h: Likewise.
49136         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49137         * lib/stdbool_.h: Likewise.
49138         * lib/byteswap_.h: Add double-inclusion guard.
49139
49140 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49141
49142         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49143
49144 2007-03-30  Karl Berry  <karl@gnu.org>
49145
49146         * config/srclist-update: double space after USA in the license
49147         substitution, since that's how it's usually (?) written.
49148
49149 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49150
49151         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49152         reported by Bruno Haible.
49153
49154 2007-03-29  Bruno Haible  <bruno@clisp.org>
49155
49156         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49157         a bug in AIX iconv().
49158
49159 2007-03-29  Bruno Haible  <bruno@clisp.org>
49160
49161         * modules/ldexpl-tests: New file.
49162         * tests/test-ldexpl.c: New file.
49163
49164 2007-03-29  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/ldexpl.c: Include fpucw.h.
49167         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49168         multiplication.
49169         * modules/ldexpl (Depends-on): Add fpucw.
49170
49171 2007-03-29  Bruno Haible  <bruno@clisp.org>
49172
49173         * modules/ldexpl: New file.
49174         * m4/ldexpl.m4: New file.
49175         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49176         set.
49177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49178         REPLACE_LDEXPL.
49179         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49180         REPLACE_LDEXPL.
49181         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49182         gl_FUNC_LDEXPL_WORKS.
49183         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49184         * modules/mathl (Files): Remove lib/ldexpl.c.
49185         (Depends-on): Add ldexpl.
49186
49187 2007-03-29  Bruno Haible  <bruno@clisp.org>
49188
49189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49190
49191 2007-03-29  Bruno Haible  <bruno@clisp.org>
49192
49193         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49194         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49195         and possibly also HP-UX.
49196         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49197         work on AIX, IRIX, HP-UX, OSF/1.
49198         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49199         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49200         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49201         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49202         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49203         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49204
49205 2007-03-29  Bruno Haible  <bruno@clisp.org>
49206
49207         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49208
49209 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49210
49211         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49212         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49213
49214 2007-03-29  Eric Blake  <ebb9@byu.net>
49215
49216         * lib/acl-internal.h: Remove redundant include.
49217         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49218         Cygwin when a file is locked.
49219
49220 2007-03-29  Bruno Haible  <bruno@clisp.org>
49221
49222         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49223         file.
49224         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49225
49226 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49229         try to remove a parent directory if the child couldn't be removed
49230         (except for the first rmdir, which could fail because the child
49231         doesn't exist).  Problem reported by Jeff Blaine in
49232         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49233
49234 2007-03-28  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/striconveh.c (utf8conv_carefully): New function.
49237         (mem_cd_iconveh_internal): Invoke it.
49238
49239 2007-03-28  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49242         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49243         input.
49244         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49245         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49246         unistr/u8-uctomb.
49247
49248 2007-03-28  Bruno Haible  <bruno@clisp.org>
49249
49250         * modules/unistr/u8-mbtoucr: New file.
49251         * lib/unistr/u8-mbtoucr.c: New file.
49252         * modules/unistr/u16-mbtoucr: New file.
49253         * lib/unistr/u16-mbtoucr.c: New file.
49254         * modules/unistr/u16-mbtoucr: New file.
49255         * lib/unistr/u16-mbtoucr.c: New file.
49256         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49257
49258 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49259             Bruno Haible  <bruno@clisp.org>
49260
49261         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49262         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49263         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49264
49265         * m4/stdio_h.m4: Add stubs for vasprintf too.
49266
49267         * modules/stdio: Support vasprintf in sed command.
49268
49269         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49270         vasprintf.h.  Add stdio module indicator.
49271
49272         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49273         vasprintf.h.
49274
49275         * lib/vasprintf.h: File removed.
49276
49277         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49278         * lib/vasprintf.c: Ditto.
49279         * lib/xvasprintf.c: Ditto.
49280         * tests/test-vasprintf-posix.c: Ditto.
49281         * tests/test-vasprintf.c: Ditto.
49282
49283 2007-03-27  Bruno Haible  <bruno@clisp.org>
49284
49285         Make vasnprintf multithread-safe.
49286         * lib/vasnprintf.c (decimal_point_char): New function.
49287         (VASNPRINTF): Use it.
49288         Suggested by Simon Josefsson.
49289
49290 2007-03-27  Eric Blake  <ebb9@byu.net>
49291
49292         Support sub-second birthtime on cygwin.
49293         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49294         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49295         (get_stat_birthtime): Also work with st_birthtim.
49296
49297 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49298
49299         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49300         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49301         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49302         (get_stat_birthtime_ns): Simplify compile-time tests.
49303         (get_stat_birthtime): Change the API to look like
49304         get_stat_mtime etc., except return a negative tv_nsec on error.
49305         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49306         Don't check for "spare" fields.
49307         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49308         or for struct stat.st_birthtime, as these tests aren't used.
49309         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49310
49311 2007-03-27  Bruno Haible  <bruno@clisp.org>
49312
49313         * lib/stat-time.h: Include <sys/stat.h>.
49314
49315 2007-03-27  James Youngman  <jay@gnu.org>
49316
49317         * lib/stat-time.h (get_stat_birthtime): New function for
49318           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49319         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49320           and its variants.
49321         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49322         * modules/stat-time-test: New file.
49323         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49324
49325 2007-03-26  Bruno Haible  <bruno@clisp.org>
49326
49327         Better support of signalling NaNs.
49328         * lib/atanl.c: Include isnanl.h.
49329         (atanl): Perform test for NaN at the beginning of the function and
49330         through a call to isnanl.
49331         * lib/cosl.c: Include isnanl.h.
49332         (cosl): Perform test for NaN at the beginning of the function and
49333         through a call to isnanl.
49334         * lib/ldexpl.c: Include isnanl.h.
49335         (ldexpl): Perform test for NaN through a call to isnanl.
49336         * lib/logl.c: Include isnanl.h.
49337         (logl): Perform test for NaN at the beginning of the function and
49338         through a call to isnanl.
49339         * lib/sinl.c: Include isnanl.h.
49340         (sinl): Perform test for NaN at the beginning of the function and
49341         through a call to isnanl.
49342         * lib/sqrtl.c: Include isnanl.h.
49343         (sqrtl): Perform test for NaN at the beginning of the function and
49344         through a call to isnanl.
49345         * lib/tanl.c: Include isnanl.h.
49346         (tanl): Perform test for NaN at the beginning of the function and
49347         through a call to isnanl.
49348         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49349         * modules/mathl (Depends-on): Add isnanl.
49350
49351 2007-03-26  Eric Blake  <ebb9@byu.net>
49352
49353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49354         regression in logic sense of previous patch.
49355
49356 2007-03-26  Bruno Haible  <bruno@clisp.org>
49357
49358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49359         unportable shell command "if ! ...".
49360         Reported by Ralf Wildenhues.
49361
49362 2007-03-25  Bruno Haible  <bruno@clisp.org>
49363
49364         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49365         <sysexits.h> file, and only add EX_CONFIG.
49366         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49367         absolute file name and whether it is sufficient. Substitute also
49368         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49369         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49370         ABSOLUTE_SYSEXITS_H into sysexits.h.
49371
49372 2007-03-25  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49375         hints is NULL.
49376
49377 2007-03-25  Bruno Haible  <bruno@clisp.org>
49378
49379         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49380         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49381
49382 2007-03-25  Bruno Haible  <bruno@clisp.org>
49383
49384         * lib/vasnprintf.c: Include langinfo.h.
49385         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49386         multithread-safe.
49387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49396         Reported by Simon Josefsson.
49397
49398 2007-03-25  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49401         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49402         * modules/vasnprintf (Depends-on): Add stdint.
49403
49404 2007-03-25  Bruno Haible  <bruno@clisp.org>
49405
49406         * modules/fpieee: New file.
49407         * m4/fpieee.m4: New file.
49408         * modules/isnan-nolibm (Depends-on): Add fpieee.
49409         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49410         * modules/isnanl (Depends-on): Add fpieee.
49411
49412 2007-03-25  Bruno Haible  <bruno@clisp.org>
49413
49414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49415
49416 2007-03-25  Bruno Haible  <bruno@clisp.org>
49417
49418         Avoid test failures on IRIX 6.5.
49419         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49420         (main): Use it.
49421         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49422         macros.
49423         (main): Use them.
49424
49425 2007-03-25  Bruno Haible  <bruno@clisp.org>
49426
49427         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49428         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49429         exists but doesn't work.
49430         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49431         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49433         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49434
49435 2007-03-25  Bruno Haible  <bruno@clisp.org>
49436
49437         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49438         returns inf. Needed on IRIX 6.5.
49439
49440 2007-03-25  Bruno Haible  <bruno@clisp.org>
49441
49442         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49443         (main): Use isnanl instead of x != x idiom.
49444         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49445
49446         * tests/test-frexp.c: Include isnan.h.
49447         (main): Use isnan instead of x != x idiom.
49448         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49449
49450 2007-03-25  Bruno Haible  <bruno@clisp.org>
49451
49452         * tests/test-frexp.c (NaN): New function/macro.
49453         (main): Use it instead of 0.0 / 0.0.
49454         * tests/test-isnan.c (NaN): New function/macro.
49455         (main): Use it instead of 0.0 / 0.0.
49456         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49457         (test_function): Use it instead of 0.0 / 0.0.
49458         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49459         (test_function): Use it instead of 0.0 / 0.0.
49460         * tests/test-snprintf-posix.h (NaN): New function/macro.
49461         (test_function): Use it instead of 0.0 / 0.0.
49462         * tests/test-sprintf-posix.h (NaN): New function/macro.
49463         (test_function): Use it instead of 0.0 / 0.0.
49464         * tests/test-fprintf-posix.h (NaN): New function/macro.
49465         (test_function): Use it instead of 0.0 / 0.0.
49466         * tests/test-printf-posix.h (NaN): New function/macro.
49467         (test_function): Use it instead of 0.0 / 0.0.
49468
49469         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49470
49471 2007-03-25  Bruno Haible  <bruno@clisp.org>
49472
49473         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49474
49475 2007-03-25  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/regexec.c (merge_state_with_log): Make static.
49478
49479 2007-03-25  Bruno Haible  <bruno@clisp.org>
49480
49481         * lib/trigl.c (kernel_rem_pio2): Make static.
49482
49483 2007-03-25  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/sincosl.c (sincosl_table): Make static.
49486
49487 2007-03-25  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49490         if the compiler does not support C99.
49491
49492 2007-03-25  Bruno Haible  <bruno@clisp.org>
49493
49494         * modules/time (Makefile.am): Ensure all rule action lines start with a
49495         tab.
49496
49497 2007-03-24  Bruno Haible  <bruno@clisp.org>
49498
49499         * modules/tsearch-tests: New file.
49500         * tests/test-tsearch.sh: New file.
49501         * tests/test-tsearch.c: New file, mostly copied from glibc.
49502
49503         * modules/search-tests: New file.
49504         * tests/test-search.c: New file.
49505
49506         * modules/search: New file.
49507         * lib/search_.h: New file, incorporating lib/tsearch.h.
49508         * m4/search_h.m4: New file.
49509         * lib/tsearch.h: Remove file.
49510         * lib/tsearch.c: Include search.h instead of tsearch.h.
49511         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49512         HAVE_TSEARCH.
49513         * modules/tsearch (Files): Remove lib/tsearch.h.
49514         (Depends-on): Add search.
49515         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49516         (Include): Change tsearch.h into search.h.
49517
49518 2007-03-24  Bruno Haible  <bruno@clisp.org>
49519
49520         * modules/fpucw: New file.
49521         * lib/fpucw.h: New file.
49522         * lib/frexp.c: Include fpucw.h.
49523         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49524         (FUNC): Use them.
49525         * lib/printf-frexp.c: Include fpucw.h.
49526         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49527         (FUNC): Use them.
49528         * lib/vasnprintf.c: Include fpucw.h.
49529         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49530         'long double' calculations.
49531         * tests/test-frexpl.c: Include fpucw.h.
49532         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49533         * tests/test-printf-frexpl.c: Include fpucw.h.
49534         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49535         * modules/frexpl (Depends-on): Add fpucw.
49536         * modules/printf-frexpl (Depends-on): Likewise.
49537         * modules/fprintf-posix (Depends-on): Likewise.
49538         * modules/snprintf-posix (Depends-on): Likewise.
49539         * modules/sprintf-posix (Depends-on): Likewise.
49540         * modules/vasnprintf-posix (Depends-on): Likewise.
49541         * modules/vasprintf-posix (Depends-on): Likewise.
49542         * modules/vfprintf-posix (Depends-on): Likewise.
49543         * modules/vsnprintf-posix (Depends-on): Likewise.
49544         * modules/vsprintf-posix (Depends-on): Likewise.
49545         * modules/frexpl-tests (Depends-on): Likewise.
49546         * modules/printf-frexpl-tests (Depends-on): Likewise.
49547
49548 2007-03-24  Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/float+.h: New file.
49551         * lib/isnan.c: Include float+.h.
49552         (SIZE): New macro.
49553         (FUNC): Compare only SIZE bytes of the value.
49554         * lib/vasnprintf.c: Include float+.h.
49555         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49556         SIZEOF_LDBL or SIZEOF_DBL bytes.
49557         * modules/isnan-nolibm (Files): Add lib/float+.h.
49558         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49559         * modules/isnanl (Files): Add lib/float+.h.
49560         * modules/vasnprintf (Files): Add lib/float+.h.
49561
49562 2007-03-24  Bruno Haible  <bruno@clisp.org>
49563
49564         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49565         include isnanl-nolibm.h.
49566
49567 2007-03-24  Bruno Haible  <bruno@clisp.org>
49568
49569         * tests/test-read-file.c (main): Don't produce spurious output for
49570         expected situations. Make the test fail if it encountered unexpected
49571         results.
49572
49573 2007-03-24  Bruno Haible  <bruno@clisp.org>
49574
49575         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49576         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49577
49578 2007-03-24  Bruno Haible  <bruno@clisp.org>
49579
49580         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49581
49582 2007-03-24  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49585         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49586
49587         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49588         * modules/utf8-ucs4: Turn into a symbolic link to module
49589         unistr/u8-mbtouc.
49590
49591         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49592         utf8-ucs4-unsafe.
49593         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49594         unistr/u8-mbtouc-unsafe.
49595
49596         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49597         * modules/utf16-ucs4: Turn into a symbolic link to module
49598         unistr/u16-mbtouc.
49599
49600         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49601         utf16-ucs4-unsafe.
49602         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49603         unistr/u16-mbtouc-unsafe.
49604
49605         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49606         * modules/ucs4-utf8: Turn into a symbolic link to module
49607         unistr/u8-ubtomb.
49608
49609         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49610         * modules/ucs4-utf16: Turn into a symbolic link to module
49611         unistr/u16-ubtomb.
49612
49613 2007-03-24  Bruno Haible  <bruno@clisp.org>
49614
49615         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49616         Enable the function only if HAVE_INLINE.
49617         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49618         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49619         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49620         Enable the function only if HAVE_INLINE.
49621         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49622         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49623         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49624         Enable the function only if HAVE_INLINE.
49625         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49626         Enable the function only if HAVE_INLINE.
49627         * modules/utf8-ucs4: Update.
49628         * modules/utf8-ucs4-unsafe: Update.
49629         * modules/utf16-ucs4: Update.
49630         * modules/utf16-ucs4-unsafe: Update.
49631         * modules/ucs4-utf8: Update.
49632         * modules/ucs4-utf16: Update.
49633
49634 2007-03-24  Bruno Haible  <bruno@clisp.org>
49635
49636         * lib/utf8-ucs4.h: Remove file.
49637         * lib/utf8-ucs4-unsafe.h: Remove file.
49638         * lib/utf16-ucs4.h: Remove file.
49639         * lib/utf16-ucs4-unsafe.h: Remove file.
49640         * lib/ucs4-utf8.h: Remove file.
49641         * lib/ucs4-utf16.h: Remove file.
49642         * lib/unistr.h: Include their previous contents.
49643         * m4/utf-ucs4.m4: Remove file.
49644         * m4/ucs4-utf.m4: Remove file.
49645         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49646         (Depends-on): Add unistr/base.
49647         (configure.ac): Remove gl_UTF_UCS4.
49648         (Makefile.am): Update.
49649         (Include): Change to unistr.h.
49650         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49651         (Depends-on): Add unistr/base.
49652         (configure.ac): Remove gl_UTF_UCS4.
49653         (Makefile.am): Update.
49654         (Include): Change to unistr.h.
49655         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49656         (Depends-on): Add unistr/base.
49657         (configure.ac): Remove gl_UTF_UCS4.
49658         (Makefile.am): Update.
49659         (Include): Change to unistr.h.
49660         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49661         (Depends-on): Add unistr/base.
49662         (configure.ac): Remove gl_UTF_UCS4.
49663         (Makefile.am): Update.
49664         (Include): Change to unistr.h.
49665         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49666         (Depends-on): Add unistr/base.
49667         (configure.ac): Remove gl_UCS4_UTF.
49668         (Makefile.am): Update.
49669         (Include): Change to unistr.h.
49670         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49671         (Depends-on): Add unistr/base.
49672         (configure.ac): Remove gl_UCS4_UTF.
49673         (Makefile.am): Update.
49674         (Include): Change to unistr.h.
49675         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49676         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49677         utf8-ucs4-unsafe.h.
49678         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49679         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49680         utf16-ucs4-unsafe.h.
49681         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49682         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49683         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49684         * lib/unistr/u8-strchr.c: Likewise.
49685         * lib/unistr/u8-strrchr.c: Likewise.
49686         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49687         * lib/unistr/u16-strchr.c: Likewise.
49688         * lib/unistr/u16-strrchr.c: Likewise.
49689         * lib/striconveh.c: Update.
49690         * lib/linebreak.c: Update.
49691
49692 2007-03-24  Bruno Haible  <bruno@clisp.org>
49693
49694         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49695         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49696
49697 2007-03-22  Bruno Haible  <bruno@clisp.org>
49698
49699         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49700
49701 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         * MODULES.html.sh (File system functions): New module write-any-file.
49704         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49705         * m4/write-any-file.m4: New files.
49706
49707 2007-03-23  Eric Blake  <ebb9@byu.net>
49708
49709         * gnulib-tool: Rearrange space-tab sequences, since some editors
49710         like to eat them.
49711
49712 2007-03-23  Eric Blake  <ebb9@byu.net>
49713
49714         * lib/version-etc.c (version_etc_va): Update license wording to
49715         be more concise.  Recommended by Richard Stallman.
49716
49717 2007-03-22  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/poll.c (MSG_PEEK): New fallback definition.
49720
49721 2007-03-22  Bruno Haible  <bruno@clisp.org>
49722
49723         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49724         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49725         (main): Update.
49726         Fixes a compilation error on BeOS.
49727
49728 2007-03-22  Bruno Haible  <bruno@clisp.org>
49729
49730         * modules/frexpl-tests: New file.
49731         * tests/test-frexpl.c: New file.
49732
49733         * modules/frexpl: New file.
49734         * m4/frexpl.m4: New file.
49735         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49736         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49738         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49739         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49740         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49741
49742 2007-03-22  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/frexpl.c: Share code with lib/frexp.c.
49745         * modules/mathl (Files): Add lib/frexp.c.
49746         (Depends-on): Add isnanl-nolibm.
49747
49748 2007-03-22  Bruno Haible  <bruno@clisp.org>
49749
49750         * modules/printf-frexp (Files): Add m4/frexp.m4.
49751         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49752         only if the found frexp function actually works.
49753
49754 2007-03-22  Bruno Haible  <bruno@clisp.org>
49755
49756         * lib/frexp.c: Remove older implementation that uses divisions.
49757
49758 2007-03-21  Bruno Haible  <bruno@clisp.org>
49759
49760         * modules/frexp-tests: New file.
49761         * tests/test-frexp.c: New file.
49762
49763         * modules/frexp: New file.
49764         * lib/frexp.c: New file.
49765         * m4/frexp.m4: New file.
49766         * lib/math_.h (frexp): New declaration.
49767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49768         REPLACE_FREXP.
49769         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49770
49771 2007-03-21  Bruno Haible  <bruno@clisp.org>
49772
49773         * modules/isnanl-tests: New file.
49774         * tests/test-isnanl.c: New file.
49775
49776         * modules/isnanl: New file.
49777         * lib/isnanl.h: New file.
49778         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49779         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49780         gl_FUNC_ISNANL_WORKS.
49781         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49782         New macros.
49783
49784 2007-03-21  Bruno Haible  <bruno@clisp.org>
49785
49786         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49787         lib/isnanl.h.
49788         (Include): Update.
49789         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49790         * lib/vasnprintf.c: Update.
49791         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49792         tests/test-isnanl.h, remove tests/test-isnanl.c.
49793         (Makefile.am): Update.
49794         * tests/test-isnanl-nolibm.c: New file.
49795         * tests/test-isnanl.h: New file.
49796         * tests/test-isnanl.c: Remove file.
49797
49798 2007-03-21  Jim Meyering  <jim@meyering.net>
49799
49800         When trying to open ".", treat ESTALE like EACCES.
49801         * lib/savewd.c (savewd_save): Resort to forking not just upon
49802         failure with EACCES, but also when errno is ESTALE.
49803
49804 2007-03-20  Bruno Haible  <bruno@clisp.org>
49805
49806         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49807         Needed on AIX 5.1. Reported by Matthew Woehlke.
49808
49809 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49810
49811         Suggestions by Bruno Haible:
49812         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49813         our own.
49814         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49815         * modules/acl (Depends-on): Add gettext.
49816
49817 2007-03-19  Bruno Haible  <bruno@clisp.org>
49818
49819         * modules/iconvme: Remove file.
49820         * lib/iconvme.h: Remove file.
49821         * lib/iconvme.c: Remove file.
49822         * m4/iconvme.m4: Remove file.
49823
49824 2007-03-19  Bruno Haible  <bruno@clisp.org>
49825
49826         * doc/relocatable-maint.texi: Break long shell script line.
49827         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49828
49829 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49832         handle file_has_acl.
49833         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49834         * lib/acl.c: Move header inclusions and related macro defns into
49835         lib/acl-internal.h.
49836         (S_ISLNK): Remove defn, since that's now done for us.
49837         (file_has_acl): Move to lib/file-has-acl.c.
49838         Call acl_trivial if available.  This is the crucial part of the fix.
49839         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49840         shared within the library.  Rewrite a bit, partly to make it compatible
49841         with the GNU coding style.
49842         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49843         Remove unnecessary double-quotes.
49844         Don't test for acl_to_text; the build will catch that.
49845         Replace acl_entries if it doesn't exist and it is needed.
49846         Check for -lsec and acl_trivial (as used on Solaris 10).
49847         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49848         lib/file-has-acl.c.
49849         (Depends-on): Add sys_stat, for S_ISLNK.
49850
49851 2007-03-19  Ben Pfaff  <blp@gnu.org>
49852
49853         * doc/gnulib.texi: Fix typos.
49854         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49855
49856 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49857
49858         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49859         If size is zero here, buf must be zero.
49860
49861 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49862
49863         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49864         <bruno@clisp.org>.
49865
49866 2007-03-18  Bruno Haible  <bruno@clisp.org>
49867
49868         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49869         Suggested by Eric Blake.
49870
49871 2007-03-18  Ben Pfaff  <blp@gnu.org>
49872
49873         * doc/relocatable.texi: Recommend using as prefix a directory
49874         that does not exist and will never be created.  Based on
49875         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49876         and others.
49877
49878 2007-03-17  Bruno Haible  <bruno@clisp.org>
49879
49880         * lib/fchownat.c: Include lchown.h.
49881
49882 2007-03-17  Bruno Haible  <bruno@clisp.org>
49883
49884         Fix endless loop when the given allocated size was > INT_MAX.
49885         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49886         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49887         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49888         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49889         * lib/sprintf.c (sprintf): Likewise.
49890
49891 2007-03-17  Bruno Haible  <bruno@clisp.org>
49892
49893         * tests/test-argp-2.sh (func_compare): Output a context diff.
49894
49895 2007-03-17  Bruno Haible  <bruno@clisp.org>
49896
49897         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49898         locale's decimal-point character.
49899
49900 2007-03-17  Bruno Haible  <bruno@clisp.org>
49901
49902         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49903         before comparing it. Needed because on some platforms (e.g. x86) a
49904         'long double' occupies less bytes than sizeof (long double).
49905
49906 2007-03-17  Bruno Haible  <bruno@clisp.org>
49907
49908         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49909         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49910         * tests/test-getaddrinfo.c (simple): Likewise.
49911         * tests/test-read-file.c (main): Likewise.
49912
49913 2007-03-17  Bruno Haible  <bruno@clisp.org>
49914
49915         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49916
49917 2007-03-17  Bruno Haible  <bruno@clisp.org>
49918
49919         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49920         unused variable.
49921
49922 2007-03-17  Bruno Haible  <bruno@clisp.org>
49923
49924         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49925         * tests/test-c-strncasecmp.c: Likewise.
49926
49927 2007-03-17  Bruno Haible  <bruno@clisp.org>
49928
49929         * modules/stdlib (Depends-on): Add unistd.
49930         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49931         Needed for MacOS X 10.3.
49932
49933 2007-03-17  Bruno Haible  <bruno@clisp.org>
49934
49935         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49936
49937 2007-03-17  Bruno Haible  <bruno@clisp.org>
49938
49939         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49940
49941 2007-03-17  Bruno Haible  <bruno@clisp.org>
49942
49943         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49944         to reflect files copied from gnulib (with or without modifications).
49945         Suggested by Jim Meyering.
49946
49947 2007-03-17  Eric Blake  <ebb9@byu.net>
49948
49949         * NEWS: Document stdlib change from 2007-02-18.
49950
49951 2007-03-17  Jim Meyering  <jim@meyering.net>
49952
49953         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49954         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49955         someone uses a name containing shell meta-characters.
49956         Reported by Alfred M. Szmidt.
49957
49958         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49959
49960 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49961
49962         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49963         and copy gettext configuration files only if configure.ac contains
49964         a use of AM_GNU_GETTEXT_VERSION.
49965
49966 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49967
49968         * build-aux/bootstrap (gnulib_name): New variable.
49969         (gnulib_tool_options): Use it.
49970
49971 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49972
49973         * tests/test-des.c: Use new namespace.
49974
49975 2007-03-15  Bruno Haible  <bruno@clisp.org>
49976
49977         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49978         Reported by James Youngman <jay@gnu.org>.
49979
49980 2007-03-15  Bruno Haible  <bruno@clisp.org>
49981
49982         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49983         declared prototype. Needed with cc on OSF/1 5.1.
49984
49985 2007-03-15  Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49988         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49989         (struct gl_list_implementation): Add dispose_fn argument to the
49990         'create_empty', 'create' methods.
49991         (struct gl_list_impl_base): Add field 'dispose_fn'.
49992         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49993         argument.
49994         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49995         dispose_fn argument.
49996         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49997         dispose_fn on the dropped values.
49998         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49999         dispose_fn argument.
50000         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50001         dropped values.
50002         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50003         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50004         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50005         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50006         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50007         argument.
50008         (gl_tree_list_free): Call dispose_fn on the dropped values.
50009         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50010         the dropped values.
50011         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50012         Add dispose_fn argument.
50013         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50014         Call dispose_fn on the dropped values.
50015         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50016         Add dispose_fn argument.
50017         (gl_sublist_create): Initialize the 'dispose_fn' field.
50018         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50019         * tests/test-array_list.c (main): Update.
50020         * tests/test-carray_list.c (main): Update.
50021         * tests/test-avltree_list.c (main): Update.
50022         * tests/test-rbtree_list.c (main): Update.
50023         * tests/test-avltreehash_list.c (main): Update.
50024         * tests/test-rbtreehash_list.c (main): Update.
50025         * tests/test-linked_list.c (main): Update.
50026         * tests/test-linkedhash_list.c (main): Update.
50027         * tests/test-array_oset.c (main): Update.
50028
50029 2007-03-15  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50032         (gl_oset_create_empty): Add dispose_fn argument.
50033         (struct gl_oset_implementation): Add dispose_fn argument to
50034         'create_empty' method.
50035         (struct gl_oset_impl_base): Add dispose_fn field.
50036         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50037         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50038         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50039         values.
50040         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50041         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50042         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50043         dropped value.
50044         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50045         dropped value.
50046         * tests/test-array_oset.c (main): Update.
50047         * tests/test-avltree_oset.c (main): Update.
50048         * tests/test-rbtree_oset.c (main): Update.
50049         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50050
50051 2007-03-13  Bruno Haible  <bruno@clisp.org>
50052
50053         * tests/test-stdbool.c (i): Update after last patch.
50054
50055 2007-03-12  Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50058         the iswprint macro. Needed on Solaris 2.5.1.
50059
50060 2007-03-12  Bruno Haible  <bruno@clisp.org>
50061
50062         * tests/test-printf-frexp.c (main): Declare x as volatile.
50063
50064 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50065
50066         * doc/gnulib.texi (Build robot for gnulib): New section.
50067
50068 2007-03-12  Jim Meyering  <jim@meyering.net>
50069
50070         * build-aux/bootstrap: New file.
50071         * build-aux/bootstrap.conf: New file, from coreutils.
50072
50073 2007-03-11  Bruno Haible  <bruno@clisp.org>
50074
50075         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50076
50077 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50078
50079         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50080         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50081         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50082
50083 2007-03-11  Bruno Haible  <bruno@clisp.org>
50084
50085         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50086         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50087
50088 2007-03-11  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50091         formula. Needed for SunPRO C 5.0.
50092
50093 2007-03-11  Bruno Haible  <bruno@clisp.org>
50094
50095         * modules/long-options (Depends-on): Add getopt.
50096
50097 2007-03-11  Bruno Haible  <bruno@clisp.org>
50098
50099         * modules/modechange (Depends-on): Add stdbool.
50100
50101 2007-03-11  Bruno Haible  <bruno@clisp.org>
50102
50103         * modules/i-ring (Depends-on): Add stdbool.
50104
50105 2007-03-11  Bruno Haible  <bruno@clisp.org>
50106
50107         * modules/gc-des (Depends-on): Add stdbool.
50108
50109 2007-03-11  Bruno Haible  <bruno@clisp.org>
50110
50111         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50112
50113 2007-03-11  Bruno Haible  <bruno@clisp.org>
50114
50115         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50116
50117 2007-03-11  Bruno Haible  <bruno@clisp.org>
50118
50119         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50120
50121 2007-03-11  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/vasnprintf.c (sprintf): Undefine.
50124
50125 2007-03-11  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50128         initializers in SunPRO C and Compaq C compilers.
50129
50130 2007-03-11  Bruno Haible  <bruno@clisp.org>
50131
50132         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50133         decrementing code ANSI C compliant.
50134
50135 2007-03-11  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50138         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50139
50140 2007-03-11  Bruno Haible  <bruno@clisp.org>
50141
50142         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50143         <stdbool.h> substitute doesn't pass.
50144
50145 2007-03-11  Bruno Haible  <bruno@clisp.org>
50146
50147         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50148
50149 2007-03-11  Bruno Haible  <bruno@clisp.org>
50150
50151         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50152         script, for submission to autobuild.josefsson.org.
50153
50154 2007-03-10  Bruno Haible  <bruno@clisp.org>
50155
50156         * modules/canonicalize-lgpl-tests: New file.
50157         * tests/test-canonicalize-lgpl.sh: New file.
50158         * tests/test-canonicalize-lgpl.c: New file.
50159
50160         * modules/c-strcase-tests: New file.
50161         * tests/test-c-strcase.sh: New file.
50162         * tests/test-c-strcasecmp.c: New file.
50163         * tests/test-c-strncasecmp.c: New file.
50164
50165         * modules/atexit-tests: New file.
50166         * tests/test-atexit.sh: New file.
50167         * tests/test-atexit.c: New file.
50168
50169 2007-03-10  Bruno Haible  <bruno@clisp.org>
50170
50171         * tests/test-binary-io.sh: Use temporary filenames that are not so
50172         likely to clash with those of other tests (in a parallel make).
50173         * tests/test-binary-io.c: Likewise.
50174
50175 2007-03-10  Bruno Haible  <bruno@clisp.org>
50176
50177         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50178         fallback; use #error instead.
50179         Suggested by Simon Josefsson.
50180
50181 2007-03-10  Bruno Haible  <bruno@clisp.org>
50182
50183         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50184         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50185         first and the last.
50186
50187 2007-03-10  Bruno Haible  <bruno@clisp.org>
50188
50189         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50190
50191 2007-03-10  Bruno Haible  <bruno@clisp.org>
50192
50193         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50194         "make distcheck".
50195         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50196         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50197         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50198
50199 2007-03-10  Bruno Haible  <bruno@clisp.org>
50200
50201         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50202         variable.
50203         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50204         variable.
50205
50206 2007-03-09  Eric Blake  <ebb9@byu.net>
50207         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50208
50209         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50210         types are not being provided by gnulib.
50211         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50212         types are supported.
50213
50214 2007-03-10  Bruno Haible  <bruno@clisp.org>
50215
50216         * lib/stdio_.h (__attribute__): New macro.
50217         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50218         vsprintf): Specify __attribute__ __format__ for GCC.
50219         Suggested by Eric Blake.
50220
50221 2007-03-09  Bruno Haible  <bruno@clisp.org>
50222
50223         * modules/printf-posix-tests: New file.
50224         * tests/test-printf-posix.sh: New file.
50225         * tests/test-printf-posix.c: New file.
50226
50227         * modules/printf-posix: New file.
50228         * lib/printf.c: New file.
50229         * m4/printf-posix-rpl.m4: New file.
50230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50231         REPLACE_PRINTF.
50232         * lib/stdio_.h (printf): New declaration.
50233         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50234         ____strfmon____): New macros.
50235         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50236         REPLACE_PRINTF.
50237
50238 2007-03-09  Bruno Haible  <bruno@clisp.org>
50239
50240         * tests/test-vasnprintf-posix2.sh: New file.
50241         * tests/test-vasnprintf-posix2.c: New file.
50242         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50243         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50244         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50245
50246         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50247         a locale dependent decimal point, rather than always '.'.
50248
50249 2007-03-09  Eric Blake  <ebb9@byu.net>
50250
50251         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50252         spite of platforms like Tandem/NSK that define it to -1.
50253
50254 2007-03-08  Bruno Haible  <bruno@clisp.org>
50255
50256         * modules/vprintf-posix-tests: New file.
50257         * tests/test-vprintf-posix.sh: New file.
50258         * tests/test-vprintf-posix.c: New file.
50259         * tests/test-printf-posix.h: New file.
50260
50261         * modules/vprintf-posix: New file.
50262         * lib/vprintf.c: New file.
50263         * m4/vprintf-posix.m4: New file.
50264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50265         REPLACE_VPRINTF.
50266         * lib/stdio_.h (vprintf): New declaration.
50267         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50268         REPLACE_VPRINTF.
50269
50270 2007-03-08  Bruno Haible  <bruno@clisp.org>
50271
50272         * modules/fprintf-posix-tests: New file.
50273         * tests/test-fprintf-posix.sh: New file.
50274         * tests/test-fprintf-posix.c: New file.
50275
50276         * modules/fprintf-posix: New file.
50277         * lib/fprintf.c: New file.
50278         * m4/fprintf-posix.m4: New file.
50279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50280         REPLACE_FPRINTF.
50281         * lib/stdio_.h (fprintf): New declaration.
50282         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50283         REPLACE_FPRINTF.
50284
50285 2007-03-08  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/vfprintf-posix-tests: New file.
50288         * tests/test-vfprintf-posix.sh: New file.
50289         * tests/test-vfprintf-posix.c: New file.
50290         * tests/test-fprintf-posix.h: New file.
50291         * tests/test-fprintf-posix.out: New file.
50292
50293         * modules/vfprintf-posix: New file.
50294         * lib/vfprintf.c: New file.
50295         * m4/vfprintf-posix.m4: New file.
50296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50297         REPLACE_VFPRINTF.
50298         * lib/stdio_.h (vfprintf): New declaration.
50299         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50300         REPLACE_VFPRINTF.
50301
50302 2007-03-08  Bruno Haible  <bruno@clisp.org>
50303
50304         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50305
50306 2007-03-08  Bruno Haible  <bruno@clisp.org>
50307
50308         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50309         instead of 'expr' invocations.
50310         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50311         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50314         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50315         Suggested by Paul Eggert.
50316
50317 2007-03-08  Bruno Haible  <bruno@clisp.org>
50318
50319         * modules/fseterr-tests: New file.
50320         * tests/test-fseterr.c: New file.
50321
50322         * modules/fseterr: New file.
50323         * lib/fseterr.h: New file.
50324         * lib/fseterr.c: New file.
50325
50326 2007-03-08  Bruno Haible  <bruno@clisp.org>
50327
50328         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50329         * lib/getopt_.h: Likewise.
50330         * lib/mbswidth.h: Likewise.
50331         * lib/setenv.h: Likewise.
50332         * lib/vasnprintf.h: Likewise.
50333         * lib/vasprintf.h: Likewise.
50334         * lib/verror.h: Likewise.
50335         * lib/xsetenv.h: Likewise.
50336         * lib/xvasprintf.h: Likewise.
50337
50338 2007-03-08  Jim Meyering  <jim@meyering.net>
50339
50340         * users.txt: Add parted.
50341
50342         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50343
50344 2007-03-07  Bruno Haible  <bruno@clisp.org>
50345
50346         * m4/printf.m4: Make the shell script snippets copy&pastable.
50347
50348 2007-03-02  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/netinet_in_.h: New file.
50351         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50352         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50353         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50354         (Depends-on): Add absolute-header.
50355         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50356         into netinet/in.h.
50357
50358 2007-03-03  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/sys_select_.h: New file.
50361         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50362         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50363         * modules/sys_select (Files): Add lib/sys_select_.h.
50364         (Depends-on): Add absolute-header.
50365         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50366         into sys/select.h.
50367
50368 2007-03-02  Bruno Haible  <bruno@clisp.org>
50369
50370         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50371         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50372         values.
50373         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50374         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50375         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50376         * modules/sys_socket (Depends-on): Add absolute-header.
50377         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50378         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50379         (Include): Remove requirement of inclusion of <sys/types.h>.
50380
50381 2007-03-02  Bruno Haible  <bruno@clisp.org>
50382
50383         * lib/byteswap_.h (bswap_32): Fix formula.
50384
50385 2007-03-06  Bruno Haible  <bruno@clisp.org>
50386
50387         * modules/sprintf-posix-tests: New file.
50388         * tests/test-sprintf-posix.c: New file.
50389
50390         * modules/sprintf-posix: New file.
50391         * lib/sprintf.c: New file.
50392         * m4/sprintf-posix.m4: New file.
50393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50394         REPLACE_SPRINTF.
50395         * lib/stdio_.h (sprintf): New declaration.
50396         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50397         REPLACE_SPRINTF.
50398
50399 2007-03-06  Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/vsprintf-posix-tests: New file.
50402         * tests/test-vsprintf-posix.c: New file.
50403         * tests/test-sprintf-posix.h: New file.
50404
50405         * modules/vsprintf-posix: New file.
50406         * lib/vsprintf.c: New file.
50407         * m4/vsprintf-posix.m4: New file.
50408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50409         REPLACE_VSPRINTF.
50410         * lib/stdio_.h (vsprintf): New declaration.
50411         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50412         REPLACE_VSPRINTF.
50413
50414 2007-03-06  Bruno Haible  <bruno@clisp.org>
50415
50416         * modules/vsnprintf (Depend-on): Remove minmax.
50417
50418 2007-03-06  Bruno Haible  <bruno@clisp.org>
50419
50420         * modules/snprintf-posix-tests: New file.
50421         * tests/test-snprintf-posix.c: New file.
50422
50423         * modules/snprintf-posix: New file.
50424         * m4/snprintf-posix.m4: New file.
50425         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50426         gl_FUNC_SNPRINTF.
50427         (gl_FUNC_SNPRINTF): Invoke it.
50428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50429         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50430         is set.
50431         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50432
50433 2007-03-06  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/vsnprintf-posix-tests: New file.
50436         * tests/test-vsnprintf-posix.c: New file.
50437         * tests/test-snprintf-posix.h: New file.
50438
50439         * modules/vsnprintf-posix: New file.
50440         * m4/vsnprintf-posix.m4: New file.
50441         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50442         gl_FUNC_VSNPRINTF.
50443         (gl_FUNC_VSNPRINTF): Invoke it.
50444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50445         * lib/stdio_.h (vsnprintf): Define as a replacement if
50446         REPLACE_VSNPRINTF is set.
50447         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50448
50449 2007-03-06  Bruno Haible  <bruno@clisp.org>
50450
50451         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50453
50454 2007-03-06  Bruno Haible  <bruno@clisp.org>
50455
50456         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50457         (asinl): Declare also if HAVE_DECL_ASINL is set.
50458         (atanl): Declare also if HAVE_DECL_ATANL is set.
50459         (ceill): Declare also if HAVE_DECL_CEILL is set.
50460         (cosl): Declare also if HAVE_DECL_COSL is set.
50461         (expl): Declare also if HAVE_DECL_EXPL is set.
50462         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50463         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50464         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50465         (logl): Declare also if HAVE_DECL_LOGL is set.
50466         (sinl): Declare also if HAVE_DECL_SINL is set.
50467         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50468         (tanl): Declare also if HAVE_DECL_TANL is set.
50469         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50471         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50472         declaration of frexpl, ldexpl.
50473         * modules/printf-frexpl (Depends-on): Add math.
50474         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50475
50476 2007-03-05  Bruno Haible  <bruno@clisp.org>
50477
50478         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50479         frexpl and ldexpl are declared.
50480         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50481
50482 2007-03-05  Bruno Haible  <bruno@clisp.org>
50483
50484         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50485         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50486
50487 2007-03-05  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/stdio_.h: Include <stddef.h>.
50490
50491 2007-03-05  Bruno Haible  <bruno@clisp.org>
50492
50493         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50494
50495 2007-03-05  Bruno Haible  <bruno@clisp.org>
50496
50497         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50498         NetBSD 4, from Ralf Wildenhues.
50499
50500 2007-03-04  Bruno Haible  <bruno@clisp.org>
50501
50502         * lib/vasprintf.h: Update #if logic for the case when the functions
50503         exist but are overridden.
50504
50505 2007-03-04  Bruno Haible  <bruno@clisp.org>
50506
50507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50508         implementations: glibc-2.4 and MacOS X 10.3.
50509         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50510         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50511         * tests/test-vasprintf-posix.c (test_function): Likewise.
50512
50513 2007-03-04  Bruno Haible  <bruno@clisp.org>
50514
50515         * modules/vasprintf-posix-tests: New file.
50516         * tests/test-vasprintf-posix.c: New file.
50517
50518         * modules/vasprintf-posix: New file.
50519         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50520         defined.
50521         * m4/vasprintf-posix.m4: New file.
50522         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50523         gl_FUNC_VASPRINTF.
50524         (gl_FUNC_VASPRINTF): Invoke it.
50525         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50526         here.
50527         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50528
50529 2007-03-04  Bruno Haible  <bruno@clisp.org>
50530
50531         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50532         REPLACE_GETTIMEOFDAY.
50533         * modules/sys_time (Makefile.am): Likewise.
50534         * m4/sys_time_h.m4: Likewise.
50535         * m4/gettimeofday.m4: Likewise.
50536
50537 2007-03-04  Bruno Haible  <bruno@clisp.org>
50538
50539         * modules/vasnprintf-posix-tests: New file.
50540         * tests/test-vasnprintf-posix.c: New file.
50541
50542         * modules/vasnprintf-posix: New file.
50543         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50544         printf-frexpl.h.
50545         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50546         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50547         REPLACE_VASNPRINTF is defined.
50548         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50549         gl_FUNC_VASNPRINTF.
50550         (gl_FUNC_VASNPRINTF): Invoke it.
50551         * m4/vasnprintf-posix.m4: New file.
50552         * m4/printf.m4: New file.
50553
50554 2007-03-04  Bruno Haible  <bruno@clisp.org>
50555
50556         Compile progreloc.c only if --enable-relocatable is specified.
50557         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50558         if --enable-relocatable was specified.
50559         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50560         lib_SOURCES.
50561
50562 2007-03-04  Jim Meyering  <jim@meyering.net>
50563
50564         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50565         Use it consistently, rather than enumerating errno constants.
50566
50567 2007-03-04  Bruno Haible  <bruno@clisp.org>
50568
50569         * modules/xvasprintf-tests: New file.
50570         * tests/test-xvasprintf.c: New file.
50571
50572         * modules/vasprintf-tests: New file.
50573         * tests/test-vasprintf.c: New file.
50574
50575         * modules/vasnprintf-tests: New file.
50576         * tests/test-vasnprintf.c: New file.
50577
50578         * modules/vsnprintf-tests: New file.
50579         * tests/test-vsnprintf.c: New file.
50580
50581         * modules/snprintf-tests: New file.
50582         * tests/test-snprintf.c: New file.
50583
50584 2007-03-04  Bruno Haible  <bruno@clisp.org>
50585
50586         Compile relocatable.c only if --enable-relocatable is specified.
50587         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50588         gl_RELOCATABLE_LIBRARY.
50589         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50590         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50591         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50592         gl_RELOCATABLE_LIBRARY.
50593         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50594         (Makefile.am): Remove lib_SOURCES.
50595         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50596         gl_RELOCATABLE_LIBRARY.
50597         (Makefile.am): Remove lib_SOURCES.
50598         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50599         always.
50600         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50601         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50602
50603 2007-03-04  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/argmatch-tests: New file.
50606         * tests/test-argmatch.c: New file.
50607
50608         * tests/test-allocsa.c (main): Halve the number of loop runs.
50609
50610         * modules/alloca-opt-tests: New file.
50611         * tests/test-alloca-opt.c: New file.
50612
50613 2007-03-04  Jim Meyering  <jim@meyering.net>
50614
50615         Work around difference between Linux ACLs and Solaris 10 ZFS.
50616         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50617         for EINVAL.
50618
50619 2007-03-03  Bruno Haible  <bruno@clisp.org>
50620
50621         * modules/relocatable-prog (Depends-on): Add back progreloc's
50622         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50623
50624 2007-03-03  Bruno Haible  <bruno@clisp.org>
50625
50626         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50627         * modules/relocatable-lib: New file.
50628
50629 2007-03-03  Bruno Haible  <bruno@clisp.org>
50630
50631         * modules/relocatable-prog: Renamed from modules/relocatable.
50632         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50633
50634 2007-03-03  Bruno Haible  <bruno@clisp.org>
50635
50636         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50637         m4/relocatable-lib.m4.
50638         (Depends-on): Remove 'relocatable'.
50639         (configure.ac): Add gl_RELOCATABLE_NOP.
50640
50641 2007-03-03  Bruno Haible  <bruno@clisp.org>
50642
50643         * modules/relocatable-prog-wrapper: New file.
50644         * modules/relocatable (Depends-on): Add it. Remove all other
50645         dependencies except progname.
50646         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50647
50648         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50649         (gl_FUNC_STRERROR): Nop.
50650         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50651
50652         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50653         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50654
50655         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50656         (gl_FUNC_READLINK): Update.
50657
50658         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50659
50660 2007-03-03  Bruno Haible  <bruno@clisp.org>
50661
50662         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50663         * modules/xreadlink (Depends-on): Add unistd.
50664         * modules/xreadlink-with-size (Depends-on): Likewise.
50665
50666 2007-03-03  Bruno Haible  <bruno@clisp.org>
50667
50668         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50669         extracted from gt_FUNC_SETENV.
50670         (gt_FUNC_SETENV): Remove macro.
50671         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50672         remove gt_FUNC_SETENV.
50673
50674 2007-03-03  Bruno Haible  <bruno@clisp.org>
50675
50676         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50677         ENABLE_RELOCATABLE here.
50678         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50679
50680 2007-03-03  Bruno Haible  <bruno@clisp.org>
50681
50682         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50683         * tests/test-rbtreehash_list.c: Include progname.h.
50684         (main): Call set_program_name.
50685
50686         * modules/rbtree-oset-tests (Depends-on): Add progname.
50687         * tests/test-rbtree_oset.c: Include progname.h.
50688         (main): Call set_program_name.
50689
50690         * modules/rbtree-list-tests (Depends-on): Add progname.
50691         * tests/test-rbtree_list.c: Include progname.h.
50692         (main): Call set_program_name.
50693
50694         * modules/linked-list-tests (Depends-on): Add progname.
50695         * tests/test-linked_list.c: Include progname.h.
50696         (main): Call set_program_name.
50697
50698 2007-03-03  Bruno Haible  <bruno@clisp.org>
50699
50700         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50701         All uses of __restrict changed to _Restrict_.
50702         * lib/glob_.h (__restrict): Remove macro.
50703
50704 2007-03-02  Bruno Haible  <bruno@clisp.org>
50705
50706         * modules/gettext (configure.ac): Require gettext infrastructure
50707         from version 0.16.1.
50708
50709 2007-03-02  Bruno Haible  <bruno@clisp.org>
50710
50711         * modules/linkedhash-list-tests (Depends-on): Add progname.
50712         * tests/test-linkedhash_list.c: Include progname.h.
50713         (main): Call set_program_name.
50714
50715         * modules/carray-list-tests (Depends-on): Add progname.
50716         * tests/test-carray_list.c: Include progname.h.
50717         (main): Call set_program_name.
50718
50719         * modules/avltreehash-list-tests (Depends-on): Add progname.
50720         * tests/test-avltreehash_list.c: Include progname.h.
50721         (main): Call set_program_name.
50722
50723         * modules/avltree-oset-tests (Depends-on): Add progname.
50724         * tests/test-avltree_oset.c: Include progname.h.
50725         (main): Call set_program_name.
50726
50727         * modules/avltree-list-tests (Depends-on): Add progname.
50728         * tests/test-avltree_list.c: Include progname.h.
50729         (main): Call set_program_name.
50730
50731         * modules/array-oset-tests (Depends-on): Add progname.
50732         * tests/test-array_oset.c: Include progname.h.
50733         (main): Call set_program_name.
50734
50735         * modules/array-list-tests (Depends-on): Add progname.
50736         * tests/test-array_list.c: Include progname.h.
50737         (main): Call set_program_name.
50738
50739         * modules/argp-tests (Depends-on): Add progname.
50740         * tests/test-argp.c: Include argp.h first. Include progname.h.
50741         (main): Call set_program_name.
50742
50743 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50744
50745         * doc/gnulib-tool.texi (Initial import): Reword description of
50746         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50747         limited effect even if defined after the first system include.
50748
50749 2007-03-01  Bruno Haible  <bruno@clisp.org>
50750
50751         * build-aux/config.libpath: Update to libtool-1.5.22.
50752         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50753
50754 2007-03-01  Bruno Haible  <bruno@clisp.org>
50755
50756         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50757         foo_CFLAGS.
50758         Reported by Ralf Wildenhues.
50759
50760 2007-03-01  Bruno Haible  <bruno@clisp.org>
50761
50762         * build-aux/install-reloc: Remove object files left over by some
50763         compilers.
50764         Reported by Ralf Wildenhues.
50765
50766 2007-03-01  Bruno Haible  <bruno@clisp.org>
50767
50768         * build-aux/install-reloc: Break long lines.
50769
50770 2007-03-01  Bruno Haible  <bruno@clisp.org>
50771
50772         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50773         Reported by Ralf Wildenhues.
50774
50775 2007-03-01  Bruno Haible  <bruno@clisp.org>
50776
50777         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50778         include ordering constraints.
50779
50780 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50784         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50785         as another example.
50786         * lib/time_.h: Fix misspelling.
50787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50788         Require gl_HEADER_TIME_H_DEFAULTS.
50789         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50790         * m4/time_r.m4 (gl_TIME_R): Likewise.
50791         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50792
50793 2007-03-01  Bruno Haible  <bruno@clisp.org>
50794
50795         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50796         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50797
50798 2007-03-01  Jim Meyering  <jim@meyering.net>
50799
50800         * modules/xreadlink (Maintainer): Add my name.
50801         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50802
50803 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50804             Bruno Haible  <bruno@clisp.org>
50805
50806         * build-aux/install-reloc: Compile also c-ctype.c.
50807         * build-aux/relocatable.sh.in: New file.
50808         * doc/relocatable.texi: New file.
50809         * doc/relocatable-maint.texi: New file.
50810         * doc/gnulib.texi: Include relocatable-maint.texi.
50811         * lib/progreloc.c: Include unistd.h unconditionally.
50812         * lib/relocwrapper.c: Include unistd.h unconditionally.
50813         Include c-ctype.h.
50814         (add_dotbin): Use c_tolower.
50815         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50816         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50817         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50818         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50819         to m4/relocatable-lib.m4.
50820         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50821         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50822         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50823         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50824         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50825         * modules/relocatable: New file.
50826         * modules/relocatable-lib: New file.
50827         * modules/relocatable-script: New file.
50828
50829 2007-02-28  Bruno Haible  <bruno@clisp.org>
50830
50831         Import --enable-relocatable infrastructure.
50832         * build-aux/config.libpath: New file, from GNU gettext.
50833         * build-aux/install-reloc: New file, from GNU gettext.
50834         * build-aux/reloc-ldflags: New file, from GNU gettext.
50835         * lib/relocatable.h: New file, from GNU gettext.
50836         * lib/relocatable.c: New file, from GNU gettext.
50837         * lib/relocwrapper.c: New file, from GNU gettext.
50838         * m4/relocatable.m4: New file, from GNU gettext.
50839
50840 2007-02-28  Bruno Haible  <bruno@clisp.org>
50841
50842         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50843
50844         * modules/xreadlink: New file, from GNU gettext with modifications.
50845         * lib/xreadlink.c: New file, from GNU gettext.
50846         * lib/xreadlink.h: Add comments.
50847         (xreadlink): New declaration.
50848
50849         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50850         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50851         lib/xreadlink-with-size.c.
50852         (configure.ac): Remove gl_XREADLINK invocation.
50853         (Makefile.am): Augment lib_SOURCES.
50854         * m4/xreadlink.m4: Remove file.
50855         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50856         (xreadlink_with_size): Renamed from xreadink.
50857         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50858         * modules/canonicalize (Depends-on): Replace xreadlink with
50859         xreadlink-with-size.
50860         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50861
50862 2007-02-25  Jim Meyering  <jim@meyering.net>
50863
50864         * build-aux/announce-gen: When complaining about excess arguments,
50865         list them.
50866
50867 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * README: Document signed integer overflow situation more
50870         accurately.
50871
50872 2007-02-25  Bruno Haible  <bruno@clisp.org>
50873
50874         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50875         'a' or 'A' conversion.
50876
50877 2007-02-25  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/filename: Renamed from modules/pathname.
50880         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50881         lib/concatpath.c with lib/concat-filename.c.
50882         (Makefile.am): Update.
50883         (Include): Replace pathname.h with filename.h.
50884         * lib/filename.h: Renamed from lib/pathname.h.
50885         (concatenated_filename): Renamed from concatenated_pathname.
50886         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50887         (concatenated_filename): Renamed from concatenated_pathname.
50888         * lib/findprog.c: Include filename.h instead of pathname.h.
50889         (find_in_path): Update.
50890         * lib/javacomp.c: Include filename.h instead of pathname.h.
50891         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50892         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50893         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50894         is_oldgcj_14_13_usable, is_javac_usable): Update.
50895         * lib/javaexec.c: Include filename.h instead of pathname.h.
50896         (execute_java_class): Update.
50897         * modules/findprog: Update.
50898         * modules/javacomp: Update.
50899         * modules/javaexec: Update.
50900         * MODULES.html.sh (File system functions): Add 'filename', remove
50901         'pathname'.
50902
50903 2007-02-25  Bruno Haible  <bruno@clisp.org>
50904
50905         * modules/printf-frexpl-tests: New file.
50906         * tests/test-printf-frexpl.c: New file.
50907
50908         * modules/printf-frexpl: New file.
50909         * lib/printf-frexpl.h: New file.
50910         * lib/printf-frexpl.c: New file.
50911         * m4/printf-frexpl.m4: New file.
50912
50913 2007-02-25  Bruno Haible  <bruno@clisp.org>
50914
50915         * modules/printf-frexp-tests: New file.
50916         * tests/test-printf-frexp.c: New file.
50917
50918         * modules/printf-frexp: New file.
50919         * lib/printf-frexp.h: New file.
50920         * lib/printf-frexp.c: New file.
50921         * m4/printf-frexp.m4: New file.
50922
50923 2007-02-25  Bruno Haible  <bruno@clisp.org>
50924
50925         Assume automake >= 1.10 for the tests.
50926         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50927         * modules/arctwo-tests: Likewise.
50928         * modules/argp-tests: Likewise.
50929         * modules/avltree-list-tests: Likewise.
50930         * modules/avltree-oset-tests: Likewise.
50931         * modules/avltreehash-list-tests: Likewise.
50932         * modules/carray-list-tests: Likewise.
50933         * modules/crc-tests: Likewise.
50934         * modules/des-tests: Likewise.
50935         * modules/gc-arcfour-tests: Likewise.
50936         * modules/gc-arctwo-tests: Likewise.
50937         * modules/gc-des-tests: Likewise.
50938         * modules/gc-hmac-md5-tests: Likewise.
50939         * modules/gc-hmac-sha1-tests: Likewise.
50940         * modules/gc-md2-tests: Likewise.
50941         * modules/gc-md4-tests: Likewise.
50942         * modules/gc-md5-tests: Likewise.
50943         * modules/gc-pbkdf2-sha1-tests: Likewise.
50944         * modules/gc-rijndael-tests: Likewise.
50945         * modules/gc-sha1-tests: Likewise.
50946         * modules/gc-tests: Likewise.
50947         * modules/getaddrinfo-tests: Likewise.
50948         * modules/hmac-md5-tests: Likewise.
50949         * modules/hmac-sha1-tests: Likewise.
50950         * modules/linked-list-tests: Likewise.
50951         * modules/linkedhash-list-tests: Likewise.
50952         * modules/lock-tests: Likewise.
50953         * modules/md2-tests: Likewise.
50954         * modules/md4-tests: Likewise.
50955         * modules/md5-tests: Likewise.
50956         * modules/rbtree-list-tests: Likewise.
50957         * modules/rbtree-oset-tests: Likewise.
50958         * modules/rbtreehash-list-tests: Likewise.
50959         * modules/read-file-tests: Likewise.
50960         * modules/rijndael-tests: Likewise.
50961         * modules/stdint-tests: Likewise.
50962         * modules/tls-tests: Likewise.
50963
50964 2007-02-24  Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50967         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50968         function; instead check whether isnan with a double argument links.
50969         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50970         function; instead check whether isnan with a 'long double' argument
50971         links.
50972         Reported by Eric Blake <ebb9@byu.net>.
50973
50974 2007-02-24  Bruno Haible  <bruno@clisp.org>
50975
50976         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50977         defined.
50978         * lib/isnanl.c: Remove all code. Just include isnan.c.
50979         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50980
50981 2007-02-25  Jim Meyering  <jim@meyering.net>
50982
50983         Avoid conflicting types for 'unsetenv' on FreeBSD.
50984         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50985         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50986         in stdlib.h.
50987
50988 2007-02-24  Bruno Haible  <bruno@clisp.org>
50989
50990         * modules/isnanl-nolibm-tests: New file.
50991         * tests/test-isnanl.c: New file.
50992
50993         * modules/isnanl-nolibm: New file.
50994         * lib/isnanl.h: New file.
50995         * lib/isnanl.c: New file.
50996         * m4/isnanl.m4: New file.
50997
50998 2007-02-24  Bruno Haible  <bruno@clisp.org>
50999
51000         * modules/isnan-nolibm-tests: New file.
51001         * tests/test-isnan.c: New file.
51002
51003         * modules/isnan-nolibm: New file.
51004         * lib/isnan.h: New file.
51005         * lib/isnan.c: New file.
51006         * m4/isnan.m4: New file.
51007
51008 2007-02-24  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51011         assume that an exponent fits in 20 bits.
51012
51013 2007-02-24  Jim Meyering  <jim@meyering.net>
51014
51015         * m4/regex.m4: Update the description of the configure-time option,
51016         --without-included-regex, to state accurately what the defaults are,
51017         and perhaps to give people an idea why using this option is risky.
51018
51019 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51020
51021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51022         loops on small arguments.  This attempts to avoid the problem
51023         Bruno Haible reported for AIX 4.3.2 in
51024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51025
51026 2007-02-23  Bruno Haible  <bruno@clisp.org>
51027
51028         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51029         Needed for help2man.
51030
51031 2007-02-23  Karl Berry  <karl@gnu.org>
51032
51033         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51034         exists, foo.h should be cvs-ignored, not committed.
51035
51036 2007-02-23  Eric Blake  <ebb9@byu.net>
51037
51038         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51039         * lib/stat-time.h (includes): Likewise.
51040         * lib/utimecmp.c (includes): Likewise.
51041         * lib/utimens.h (includes): Likewise.
51042         * lib/getdate.y (includes): Also include "timespec.h" for use
51043         internal to the module.
51044         * modules/utimens (Depends-on): Revert yesterday's patch.
51045         * modules/nanosleep (Depends-on): Add missing dependency.
51046
51047 2007-02-22  Bruno Haible  <bruno@clisp.org>
51048
51049         * lib/glob.c: Don't include getlogin_r.h.
51050
51051 2007-02-22  Jim Meyering  <jim@meyering.net>
51052
51053         * modules/utimens (Depends-on): Add timespec, required for
51054         utimens.h's inclusion of timespec.h.
51055
51056 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51057
51058         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51059         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51060         Schwab in
51061         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51062         I'll try to think of a better way to fix the Solaris problem.
51063
51064         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51065         like glibc; on Solaris 10, it fails with errno == EINVAL.
51066         POSIX says the behavior is unspecified if the first argument is NULL,
51067         so play it safe and never pass NULL to the system getcwd.
51068
51069 2007-02-21  Jim Meyering  <jim@meyering.net>
51070
51071         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51072         of gettimeofday.  It would conflict with the one now always
51073         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51074         an IRIX 6.5 build failure.
51075
51076 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51077
51078         Minor fixups to port to Solaris 10 with Sun C 5.8.
51079         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51080         * modules/getcwd (Depends-on): Add dirfd.
51081         * lib/putenv.c (putenv): #undef it.
51082         (rpl_putenv): New decl.
51083         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51084
51085 2007-02-20  Bruno Haible  <bruno@clisp.org>
51086
51087         * modules/stdio-tests: New file.
51088         * tests/test-stdio.c: New file.
51089
51090         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51091         (Depends-on): Add stdio.
51092         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51093         (Include): Use <stdio.h> instead of vsnprintf.h.
51094         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51095         HAVE_DECL_VSNPRINTF.
51096         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51097
51098         * modules/snprintf (Files): Remove lib/snprintf.h.
51099         (Depends-on): Add stdio.
51100         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51101         (Include): Use <stdio.h> instead of snprintf.h.
51102         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51103         HAVE_DECL_SNPRINTF.
51104         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51105         * lib/getaddrinfo.c: Likewise.
51106
51107         * modules/stdio: New file.
51108         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51109         * lib/snprintf.h: Remove file.
51110         * lib/vsnprintf.h: Remove file.
51111         * lib/.cppi-disable: Remove snprintf.h.
51112         * m4/stdio_h.m4: New file.
51113         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51114
51115 2007-02-20  Jim Meyering  <jim@meyering.net>
51116
51117         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51118         used by e.g., mingw.  From Bruno Haible.
51119
51120 2007-02-19  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51123         warnings.
51124         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51125
51126 2007-02-19  Bruno Haible  <bruno@clisp.org>
51127
51128         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51129         from mingw users.
51130
51131 2007-02-19  Bruno Haible  <bruno@clisp.org>
51132
51133         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51134         warnings.
51135         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51136
51137 2007-02-19  Jim Meyering  <jim@meyering.net>
51138
51139         Don't use FD after a successful "fdopendir (fd)".
51140         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51141         Reset it by calling dirfd on the just-obtained DIR*.
51142
51143         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51144         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51145
51146 2007-02-18  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/readlink.c: Include <unistd.h>.
51149         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51150         HAVE_READLINK.
51151         * modules/readlink (Depends-on): Add unistd.
51152         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51153         (Include): Add <unistd.h>.
51154
51155         * lib/getlogin_r.h: Remove file.
51156         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51157         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51158         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51159         HAVE_DECL_GETLOGIN_R.
51160         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51162         (Include): Use <unistd.h> instead of getlogin_r.h.
51163
51164         * lib/getcwd.h: Remove file.
51165         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51166         * lib/xgetcwd.c: Likewise.
51167         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51168         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51169         * modules/getcwd (Files): Remove lib/getcwd.h.
51170         (Depends-on): Add unistd.
51171         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51172         (Include): Use <unistd.h> instad of getcwd.h.
51173
51174         * lib/ftruncate.c: Include <unistd.h> first.
51175         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51176         Set HAVE_FTRUNCATE.
51177         * modules/ftruncate (Depends-on): Add unistd.
51178         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51179
51180         * lib/fchdir.c: Include <unistd.h> first.
51181         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51183         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51184         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51185         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51186
51187         * lib/dup2.c: Include <unistd.h> first.
51188         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51189         HAVE_DUP2.
51190         * modules/dup2 (Depends-on): Add unistd.
51191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51192
51193         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51194         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51195         REPLACE_CHOWN. Don't define chown as a macro here.
51196         * modules/chown (Depends-on): Add unistd.
51197         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51198
51199         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51200         Add definition for GL_LINK_WARNING.
51201         (chown, dup2): New declarations.
51202         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51203         link warning.
51204         (ftruncate): New declaration.
51205         (getcwd): New declaration, taken from old getcwd.h.
51206         (getlogin_r): New declaration, taken from old getlogin_r.h.
51207         (readlink): New declaration.
51208         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51209         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51210         (gl_PREREQ_UNISTD): Remove macro.
51211         (gl_UNISTD_MODULE_INDICATOR): New macro.
51212         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51213         many new variables. Don't set UNISTD_H.
51214         * modules/unistd (Description): Change.
51215         (Depends-on): Add link-warning.
51216         (configure.ac): Update.
51217         (Makefile.am): Create unistd.h always. Substitute many new variables
51218         into it.
51219
51220 2007-02-18  Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51223         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51224         HAVE_GETSUBOPT.
51225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51226         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51227         * lib/getsubopt.h: Remove file.
51228         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51229         (Depends-on): Add stdlib.
51230         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51231         (Includes): Use <stdlib.h> instead of getsubopt.h.
51232         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51233         Set HAVE_GETSUBOPT.
51234         * lib/getsubopt.c: Don't include getsubopt.h.
51235
51236 2007-02-18  Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/fchdir (Depends-on): Add dup2.
51239
51240 2007-02-18  Bruno Haible  <bruno@clisp.org>
51241
51242         * lib/stdlib_.h: Handle glibc's special invocation convention
51243         specially.
51244
51245 2007-02-18  Bruno Haible  <bruno@clisp.org>
51246
51247         * modules/stdlib-tests: New file.
51248         * tests/test-stdlib.c: New file.
51249
51250         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51251         (Depends-on): Add stdlib.
51252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51253         (Includes): Use <stdlib.h> instead of mkstemp.h.
51254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51255         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51256         * lib/mkstemp.c: Don't include mkstemp.h.
51257         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51258         * lib/stdlib--.h: Don't include mkstemp.h.
51259
51260         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51261         (Depends-on): Add stdlib.
51262         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51263         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51264         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51265         HAVE_MKDTEMP.
51266         * lib/mkdtemp.c: Don't include mkdtemp.h.
51267         * lib/clean-temp.c: Don't include mkdtemp.h.
51268
51269         * modules/exit (Files): Remove lib/exit.h.
51270         (Depends-on): Add stdlib.
51271         (Makefile.am): Remove lib_SOURCES.
51272         (Include): Use <stdlib.h> instead of exit.h.
51273         * lib/argmatch.c: Don't include exit.h.
51274         * lib/execute.c: Likewise.
51275         * lib/pagealign_alloc.c: Likewise.
51276         * lib/pipe.c: Likewise.
51277         * lib/wait-process.c: Likewise.
51278         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51279         * lib/exitfail.c: Likewise.
51280         * lib/savewd.c: Likewise.
51281         * lib/xsetenv.c: Likewise.
51282
51283         * modules/stdlib: New file.
51284         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51285         and extra comments about mkstemp().
51286         * lib/exit.h: Remove file.
51287         * lib/mkdtemp.h: Remove file.
51288         * lib/mkstemp.h: Remove file.
51289         * m4/stdlib_h.m4: New file.
51290         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51291
51292 2007-02-18  Bruno Haible  <bruno@clisp.org>
51293
51294         * modules/math-tests: New file.
51295         * tests/test-math.c: New file.
51296
51297         * modules/math: New file.
51298         * modules/mathl (Files): Remove lib/mathl.h.
51299         (Depends-on): Add math.
51300         (Makefile.am): Don't mention mathl.h.
51301         (Include): Use <math.h> instead of mathl.h.
51302         * lib/math_.h: New file.
51303         * lib/mathl.h: Remove file.
51304         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51305         mathl.h.
51306         * lib/asinl.c: Likewise.
51307         * lib/atanl.c: Likewise.
51308         * lib/ceill.c: Likewise.
51309         * lib/cosl.c: Likewise.
51310         * lib/expl.c: Likewise.
51311         * lib/floorl.c: Likewise.
51312         * lib/frexpl.c: Likewise.
51313         * lib/ldexpl.c: Likewise.
51314         * lib/logl.c: Likewise.
51315         * lib/sincosl.c: Likewise.
51316         * lib/sinl.c: Likewise.
51317         * lib/sqrtl.c: Likewise.
51318         * lib/tanl.c: Likewise.
51319         * lib/trigl.c: Likewise.
51320         * m4/math_h.m4: New file.
51321         * MODULES.html.sh (Mathematics): Add math.
51322
51323 2007-02-17  Bruno Haible  <bruno@clisp.org>
51324
51325         * modules/wctype-tests: New file.
51326         * tests/test-wctype.c: New file.
51327
51328         * modules/wchar-tests: New file.
51329         * tests/test-wchar.c: New file.
51330
51331         * modules/unistd-tests: New file.
51332         * tests/test-unistd.c: New file.
51333
51334         * modules/time-tests: New file.
51335         * tests/test-time.c: New file.
51336
51337         * modules/sysexits-tests: New file.
51338         * tests/test-sysexits.c: New file.
51339
51340         * modules/sys_time-tests: New file.
51341         * tests/test-sys_time.c: New file.
51342
51343         * modules/sys_stat-tests: New file.
51344         * tests/test-sys_stat.c: New file.
51345
51346         * modules/sys_socket-tests: New file.
51347         * tests/test-sys_socket.c: New file.
51348
51349         * modules/sys_select-tests: New file.
51350         * tests/test-sys_select.c: New file.
51351
51352         * modules/string-tests: New file.
51353         * tests/test-string.c: New file.
51354
51355         * modules/stdbool-tests: New file.
51356         * tests/test-stdbool.c: New file.
51357
51358         * modules/netinet_in-tests: New file.
51359         * tests/test-netinet_in.c: New file.
51360
51361         * modules/inttypes-tests: New file.
51362         * tests/test-inttypes.c: New file.
51363
51364         * modules/fcntl-tests: New file.
51365         * tests/test-fcntl.c: New file.
51366
51367         * modules/byteswap-tests: New file.
51368         * tests/test-byteswap.c: New file.
51369
51370         * modules/arpa_inet-tests: New file.
51371         * tests/test-arpa_inet.c: New file.
51372
51373 2007-02-17  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51376         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51377         if the corresponding module is not enabled. Emit link warnings if
51378         the function is used nevertheless.
51379         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51380         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51381         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51382         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51383         * modules/inttypes (Depends-on): Add link-warning.
51384         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51385         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51386         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51387         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51388         * modules/imaxdiv (configure.ac): Likewise.
51389         * modules/strtoimax (configure.ac): Likewise.
51390         * modules/strtoumax (configure.ac): Likewise.
51391
51392 2007-02-17  Bruno Haible  <bruno@clisp.org>
51393
51394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51395         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51396         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51397         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51398
51399 2007-02-17  Bruno Haible  <bruno@clisp.org>
51400
51401         * modules/link-warning: New file.
51402         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51403         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51404         * modules/string (Depends-on): Add link-warning.
51405         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51406         string.h.
51407         * MODULES.html.sh (Support for building libraries and executables): Add
51408         link-warning.
51409
51410 2007-02-17  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51413         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51414         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51415         long lines.
51416
51417 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51418             Bruno Haible  <bruno@clisp.org>
51419
51420         * modules/tmpfile: New file.
51421         * lib/tmpfile.c: New file.
51422         * m4/tmpfile.m4: New file.
51423         * MODULES.html.sh (func_all_modules): New section "Input/output".
51424
51425 2007-02-15  Bruno Haible  <bruno@clisp.org>
51426
51427         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51428         (supports_delete_on_close): New function.
51429         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51430
51431 2007-02-14  Bruno Haible  <bruno@clisp.org>
51432
51433         * modules/mbspcasecmp-tests: New file.
51434         * tests/test-mbspcasecmp.sh: New file.
51435         * tests/test-mbspcasecmp.c: New file.
51436
51437         New module mbspcasecmp.
51438         * modules/mbspcasecmp: New file.
51439         * lib/mbspcasecmp.c: New file.
51440         * lib/string_.h (strncasecmp): Change warning message.
51441         (mbspcasecmp): New declaration.
51442         * m4/mbspcasecmp.m4: New file.
51443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51444         GNULIB_MBSPCASECMP.
51445         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51446         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51447
51448 2007-02-14  Bruno Haible  <bruno@clisp.org>
51449
51450         * modules/mbsncasecmp-tests: New file.
51451         * tests/test-mbsncasecmp.sh: New file.
51452         * tests/test-mbsncasecmp.c: New file.
51453
51454         New module mbsncasecmp.
51455         * modules/mbsncasecmp: New file.
51456         * lib/mbsncasecmp.c: New file.
51457         * lib/string_.h (mbsncasecmp): New declaration.
51458         * m4/mbsncasecmp.m4: New file.
51459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51460         GNULIB_MBSNCASECMP.
51461         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51462         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51463
51464 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51465
51466         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51467         Verify that it doesn't overlap with our flags.
51468         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51469         do not have the desired effect in multibyte locales; instead, use
51470         mbscasecmp.
51471         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51472         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51473         we don't require GNU fnmatch ourselves (if our users require it, they
51474         should do so explicitly).
51475
51476         Fix regex code so it doesn't rely on strcasecmp.
51477         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51478         Otherwise, include gnulib's langinfo.h.
51479         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51480         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51481         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51482         * modules/regex (FILES): Remove m4/codeset.m4.
51483         (Depends-on): Add localcharset.  Remove strcase.
51484
51485 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51486
51487         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51488         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51489
51490 2007-02-13  Bruno Haible  <bruno@clisp.org>
51491
51492         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51494
51495 2007-02-12  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51498         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51499         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51500         time warning rather than a link error.
51501
51502 2007-02-12  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51505         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51506         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51507
51508 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51509
51510         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51511         args, not 2.
51512
51513 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51514
51515         New module 'time', so that apps can include <time.h> as per
51516         POSIX and GNU instead of separate include files like time_r.h
51517         and timegm.h.  This implementation tries out a simpler approach
51518         for replacing decls in standard include files (as compared to
51519         the string module), somewhat as an experiment.
51520
51521         * config/srclist.txt: Comment out mktime.c for now.
51522         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51523         since it doesn't apply any more.  Use generic wording instead.
51524         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51525         'time'.
51526         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51527         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51528         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51529         Don't include <sys/types.h>; no longer needed since we assume C89.
51530         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51531         * lib/strftime.c: Likewise.
51532         * lib/time_r.c: Likewise.
51533         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51534         * lib/nanosleep.c: Include <time.h> first, to check interface.
51535         * lib/strptime.c: Likewise.
51536         * lib/time_r.c: Likewise.
51537         * lib/timegm.c: Likewise.
51538         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51539         needed.
51540         * lib/timegm.c: Don't include timegm.h; no longer needed.
51541         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51542         time.h now handles any problems in that area.
51543         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51544         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51545         that time.h defines struct timespec.
51546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51547         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51548         handles that.
51549         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51550         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51551         needed.  Set REPLACE_LOCALTIME.
51552         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51553         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51554         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51555         nanosleep; time_h.m4 now does that.  Don't require
51556         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51557         module handles this now.
51558         * modules/getdate (Depends-on): Remove timespec.  Add time.
51559         * modules/nanosleep (Depends-on): Likewise.
51560         * modules/stat-time (Depends-on): Likewise.
51561         * modules/nanosleep (Include): Include time.h, not timespec.h.
51562         * modules/strptime (Files): Remove lib/strptime.h.
51563         (Depends-on): Add extensions, time.
51564         (Include): Include time.h, not strptime.h.
51565         * modules/time_r (Files): Remove lib/time_r.h.
51566         (Depends-on): Add time.
51567         (Include): Include time.h, not time_r.h.
51568         * modules/timegm: Likewise.
51569         * modules/timespec (Description): Now does timespec-related decls
51570         of our own, instead of struct timespec itself.
51571         (Depends-on): Add time; remove extensions.
51572         (Maintainer): Add self.
51573         * modules/utimecmp (Depends-on): Add time; remove timespec.
51574         * modules/utimens (Depends-on): Likewise.
51575         * modules/xnanosleep (Depends-on): Likewise.
51576
51577 2007-02-11  Bruno Haible  <bruno@clisp.org>
51578
51579         * lib/c-strstr.c: Include allocsa.h.
51580         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51581         * lib/c-strcasestr.c: Include allocsa.h.
51582         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51583         * lib/strcasestr.c: Include allocsa.h.
51584         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51585         * lib/mbsstr.c: Include allocsa.h.
51586         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51587         allocsa/freesa instead of malloc/free.
51588         * lib/mbscasestr.c: Include allocsa.h.
51589         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51590         allocsa/freesa instead of malloc/free.
51591         * modules/c-strstr (Depends-on): Add allocsa.
51592         * modules/c-strcasestr (Depends-on): Likewise.
51593         * modules/strcasestr (Depends-on): Likewise.
51594         * modules/mbsstr (Depends-on): Likewise.
51595         * modules/mbscasestr (Depends-on): Likewise.
51596
51597 2007-02-11  Bruno Haible  <bruno@clisp.org>
51598
51599         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51600
51601         * modules/mbsspn-tests: New file.
51602         * tests/test-mbsspn.sh: New file.
51603         * tests/test-mbsspn.c: New file.
51604
51605 2007-02-11  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51608
51609         * modules/mbspbrk-tests: New file.
51610         * tests/test-mbspbrk.sh: New file.
51611         * tests/test-mbspbrk.c: New file.
51612
51613 2007-02-11  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51616         unneeded cast.
51617
51618         * modules/mbscspn-tests: New file.
51619         * tests/test-mbscspn.sh: New file.
51620         * tests/test-mbscspn.c: New file.
51621
51622 2007-02-11  Bruno Haible  <bruno@clisp.org>
51623
51624         * modules/mbscasecmp-tests: New file.
51625         * tests/test-mbscasecmp.sh: New file.
51626         * tests/test-mbscasecmp.c: New file.
51627
51628 2007-02-11  Bruno Haible  <bruno@clisp.org>
51629
51630         Ensure O(n) worst-case complexity of mbscasestr.
51631         * lib/mbscasestr.c: Include stdbool.h.
51632         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51633         functions.
51634         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51635         the bookkeeping indicates that it's worth it.
51636         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51637
51638         * modules/mbscasestr-tests: New file.
51639         * tests/test-mbscasestr1.c: New file.
51640         * tests/test-mbscasestr2.sh: New file.
51641         * tests/test-mbscasestr2.c: New file.
51642         * tests/test-mbscasestr3.sh: New file.
51643         * tests/test-mbscasestr3.c: New file.
51644         * tests/test-mbscasestr4.sh: New file.
51645         * tests/test-mbscasestr4.c: New file.
51646         * m4/locale-tr.m4: New file.
51647
51648 2007-02-11  Bruno Haible  <bruno@clisp.org>
51649
51650         Ensure O(n) worst-case complexity of mbsstr.
51651         * lib/mbsstr.c: Include stdbool.h.
51652         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51653         functions.
51654         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51655         bookkeeping indicates that it's worth it.
51656         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51657
51658         * modules/mbsstr-tests: New file.
51659         * tests/test-mbsstr1.c: New file.
51660         * tests/test-mbsstr2.sh: New file.
51661         * tests/test-mbsstr2.c: New file.
51662         * tests/test-mbsstr3.sh: New file.
51663         * tests/test-mbsstr3.c: New file.
51664         * m4/locale-fr.m4: New file.
51665
51666 2007-02-11  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/mbsrchr.c (mbsrchr): Fix bug.
51669
51670         * modules/mbsrchr-tests: New file.
51671         * tests/test-mbsrchr.sh: New file.
51672         * tests/test-mbsrchr.c: New file.
51673
51674 2007-02-11  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/mbschr.c (mbschr): Fix bug.
51677
51678         * modules/mbschr-tests: New file.
51679         * tests/test-mbschr.sh: New file.
51680         * tests/test-mbschr.c: New file.
51681         * m4/locale-zh.m4: New file.
51682
51683 2007-02-11  Bruno Haible  <bruno@clisp.org>
51684
51685         Support for copying multibyte string iterators.
51686         * lib/mbiter.h: Include <string.h>.
51687         (mbiter_multi_copy): New function.
51688         (mbi_copy): New macro.
51689         * lib/mbuiter.h: Include <string.h>.
51690         (mbuiter_multi_copy): New function.
51691         (mbui_copy): New macro.
51692
51693 2007-02-11  Bruno Haible  <bruno@clisp.org>
51694
51695         New module mbslen.
51696         * modules/mbslen: New file.
51697         * lib/mbslen.c: New file.
51698         * lib/string_.h (mbslen): New declaration.
51699         * m4/mbslen.m4: New file.
51700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51701         GNULIB_MBSLEN.
51702         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51703         * MODULES.html.sh (Internationalization functions): Add mbslen.
51704
51705 2007-02-11  Bruno Haible  <bruno@clisp.org>
51706
51707         Ensure O(n) worst-case complexity of strcasestr substitute.
51708         * lib/strcasestr.c: Include stdbool.h.
51709         (knuth_morris_pratt): New function.
51710         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51711         bookkeeping indicates that it's worth it.
51712         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51713
51714         * modules/strcasestr-tests: New file.
51715         * tests/test-strcasestr.c: New file.
51716
51717 2007-02-11  Bruno Haible  <bruno@clisp.org>
51718
51719         Ensure O(n) worst-case complexity of c_strcasestr.
51720         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51721         (knuth_morris_pratt): New function.
51722         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51723         the bookkeeping indicates that it's worth it.
51724         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51725
51726         * modules/c-strcasestr-tests: New file.
51727         * tests/test-c-strcasestr.c: New file.
51728
51729 2007-02-11  Bruno Haible  <bruno@clisp.org>
51730
51731         Ensure O(n) worst-case complexity of c_strstr.
51732         * lib/c-strstr.c: Include stdbool.h, string.h.
51733         (knuth_morris_pratt): New function.
51734         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51735         bookkeeping indicates that it's worth it.
51736         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51737
51738         * lib/c-strstr.c: Complete rewrite for maintainability.
51739
51740         * modules/c-strstr-tests: New file.
51741         * tests/test-c-strstr.c: New file.
51742
51743 2007-02-11  Bruno Haible  <bruno@clisp.org>
51744
51745         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51746         5.2.1 and earlier, whereby \055 was treated just like the range
51747         delimiter '-'.
51748         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51749
51750 2007-02-08  Bruno Haible  <bruno@clisp.org>
51751
51752         * modules/regex (Depends-on): Add stdbool.
51753         Reported by Dalibor Topic <robilad@kaffe.org>.
51754
51755 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51756
51757         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51758         Prefer returning from main to exiting from it.
51759         Remove unnecessary parens after sizeof.
51760
51761 2007-02-05  Bruno Haible  <bruno@clisp.org>
51762
51763         New module mbssep.
51764         * modules/mbssep: New file.
51765         * lib/mbssep.c: New file.
51766         * lib/string_.h (strsep): Add a conditional link warning.
51767         (mbssep): New declaration.
51768         * m4/mbssep.m4: New file.
51769         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51770         GNULIB_MBSSEP.
51771         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51772         * MODULES.html.sh (Internationalization functions): Add mbssep.
51773
51774 2007-02-05  Bruno Haible  <bruno@clisp.org>
51775
51776         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51777         Optimize search in case of 1 delimiter.
51778
51779 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51780
51781         * lib/acl.h: Include sys/types.h before sys/acl.h.
51782
51783 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51784
51785         Merge upstream fix for glibc bugzilla #3957:
51786
51787         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51788
51789         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51790         bit for RE_HAT_LISTS_NOT_NEWLINE.
51791         (build_charclass_op): Remove bogus comment.
51792
51793 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51794
51795         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51796
51797 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51798
51799         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51800         * lib/memmem.c [!defined _LIBC]: Include config.h.
51801
51802 2007-02-04  Bruno Haible  <bruno@clisp.org>
51803
51804         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51805         warning message.
51806
51807 2007-02-04  Bruno Haible  <bruno@clisp.org>
51808
51809         New module mbstok_r.
51810         * modules/mbstok_r: New file.
51811         * lib/mbstok_r.c: New file.
51812         * lib/string_.h (strtok_r): Change argument names to match the
51813         comments. Add a conditional link warning.
51814         (mbstok_r): New declaration.
51815         * m4/mbstok_r.m4: New file.
51816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51817         GNULIB_MBSTOK_R.
51818         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51819         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51820
51821 2007-02-04  Bruno Haible  <bruno@clisp.org>
51822
51823         New module mbsspn.
51824         * modules/mbsspn: New file.
51825         * lib/mbsspn.c: New file.
51826         * lib/string_.h (strspn): Add a conditional link warning.
51827         (mbsspn): New declaration.
51828         * m4/mbsspn.m4: New file.
51829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51830         GNULIB_MBSSPN.
51831         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51832         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51833
51834 2007-02-04  Bruno Haible  <bruno@clisp.org>
51835
51836         New module mbspbrk.
51837         * modules/mbspbrk: New file.
51838         * lib/mbspbrk.c: New file.
51839         * lib/string_.h (strpbrk): Add a conditional link warning.
51840         (mbspbrk): New declaration.
51841         * m4/mbspbrk.m4: New file.
51842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51843         GNULIB_MBSPBRK.
51844         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51845         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51846
51847 2007-02-04  Bruno Haible  <bruno@clisp.org>
51848
51849         New module mbscspn.
51850         * modules/mbscspn: New file.
51851         * lib/mbscspn.c: New file.
51852         * lib/string_.h (strcspn): Add a conditional link warning.
51853         (mbscspn): New declaration.
51854         * m4/mbscspn.m4: New file.
51855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51856         GNULIB_MBSCSPN.
51857         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51858         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51859
51860 2007-02-04  Bruno Haible  <bruno@clisp.org>
51861
51862         New module mbscasestr, reduced goal of strcasestr.
51863         * modules/mbscasestr: New file.
51864         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51865         (mbscasestr): Renamed from strcasestr.
51866         * lib/strcasestr.c: Don't include mbuiter.h.
51867         (strcasestr): Remove support for multibyte locales.
51868         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51869         Change the conditional link warning.
51870         (mbscasestr): New declaration.
51871         * m4/mbscasestr.m4: New file.
51872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51873         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51874         REPLACE_STRCASESTR.
51875         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51877         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51878         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51879         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51880         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51881         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51882         (Depends-on): Remove mbuiter.
51883         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51884
51885 2007-02-04  Bruno Haible  <bruno@clisp.org>
51886
51887         Simplify handling of strncasecmp.
51888         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51889         the conditional link warning.
51890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51891         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51892         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51893         * modules/strcase (configure.ac): Don't invoke
51894         gl_STRING_MODULE_INDICATOR.
51895         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51896
51897 2007-02-04  Bruno Haible  <bruno@clisp.org>
51898
51899         New module mbscasecmp, reduced goal of strcasecmp.
51900         * modules/mbscasecmp: New file.
51901         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51902         (mbscasecmp): Renamed from strcasecmp.
51903         * lib/strcasecmp.c: Don't include mbuiter.h.
51904         (strcasecmp): Remove support for multibyte locales.
51905         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51906         Change the conditional link warning.
51907         (mbscasecmp): New declaration.
51908         * m4/mbscasecmp.m4: New file.
51909         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51910         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51911         REPLACE_STRCASECMP.
51912         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51914         GNULIB_MBSCASECMP.
51915         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51916         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51917         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51918         (Depends-on): Remove mbuiter.
51919         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51920
51921 2007-02-04  Bruno Haible  <bruno@clisp.org>
51922
51923         New module mbsstr. Remove module strstr.
51924         * modules/mbsstr: New file.
51925         * modules/strstr: Remove file.
51926         * lib/mbsstr.c: Renamed from lib/strstr.c.
51927         (mbsstr): Renamed from strstr.
51928         * lib/string_.h (strstr): Remove declaration. Change the conditional
51929         link warning.
51930         (mbsstr): New declaration.
51931         * m4/mbsstr.m4: New file.
51932         * m4/strstr.m4: Remove file.
51933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51934         REPLACE_STRSTR.
51935         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51936         Don't initialize GNULIB_STRSTR.
51937         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51938         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51939         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51940         (Support for systems lacking ANSI C 89): Remove strstr.
51941
51942 2007-02-04  Bruno Haible  <bruno@clisp.org>
51943
51944         New module mbsrchr.
51945         * modules/mbsrchr: New file.
51946         * lib/mbsrchr.c: New file.
51947         * lib/string_.h (strrchr): Add a conditional link warning.
51948         (mbsrchr): New declaration.
51949         * m4/mbsrchr.m4: New file.
51950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51951         GNULIB_MBSRCHR.
51952         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51953         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51954
51955 2007-02-04  Bruno Haible  <bruno@clisp.org>
51956
51957         New module mbschr.
51958         * modules/mbschr: New file.
51959         * lib/mbschr.c: New file.
51960         * lib/string_.h (strchr): Add a conditional link warning.
51961         (mbschr): New declaration.
51962         * m4/mbschr.m4: New file.
51963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51964         GNULIB_MBSCHR.
51965         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51966         * MODULES.html.sh (Internationalization functions): Add mbschr.
51967
51968 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51969
51970         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51971
51972         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51973
51974 2007-02-04  Bruno Haible  <bruno@clisp.org>
51975
51976         New module description section 'configure.ac-early'.
51977         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51978         (func_get_autoconf_early_snippet): New function.
51979         (func_import, func_create_testdir): Use it. Remove special cases for
51980         modules 'extensions' and 'lock'.
51981         * modules/extensions (configure.ac-early): Require
51982         gl_USE_SYSTEM_EXTENSIONS.
51983         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51984
51985 2007-02-04  Bruno Haible  <bruno@clisp.org>
51986
51987         Make use of gcj-4.3's -fsource and -ftarget option.
51988         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51989         and if so try the options -fsource and -ftarget.
51990         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51991         source_version, ftarget_option, target_version arguments.
51992         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51993         (is_envjavac_oldgcj_14_14_usable): Renamed from
51994         is_envjavac_gcj_14_14_usable.
51995         (is_envjavac_oldgcj_14_13_usable): Renamed from
51996         is_envjavac_gcj_14_13_usable.
51997         (is_gcj_present): Update.
51998         (is_gcj_43, is_gcj43_usable): New functions.
51999         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52000         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52001         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52002         try the options -fsource and -ftarget.
52003
52004 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52005
52006         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52007         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52008         larger value.
52009
52010 2007-02-03  Jim Meyering  <jim@meyering.net>
52011
52012         Give tools a better chance to allocate space for very large buffers.
52013         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52014
52015         Make pwd and readlink work also when run with an unreadable parent dir
52016         on systems with openat support.
52017         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52018         provided getcwd function, even when we have openat support.
52019         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52020
52021 2007-02-02  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52024         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52025         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52026         portability problems if one of these functions is only used on specific
52027         platforms.
52028         Reported by Paul Eggert.
52029
52030 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52031
52032         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52033         is causing more trouble than it's curing.
52034         * lib/regex_internal.h (__mempcpy): Remove.
52035         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52036         (and make the code a tad smaller to boot).
52037         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52038
52039 2007-02-02  Jim Meyering  <jim@meyering.net>
52040
52041         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52042         section, not in the Makefile.am: one.
52043
52044 2007-02-02  Eric Blake  <ebb9@byu.net>
52045
52046         * lib/strchrnul.c: Always include config.h first.
52047
52048         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52049         gnulib strstr is not necessary here.
52050
52051 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52052
52053         * m4/socklen.m4: Fix typo.
52054
52055 2007-02-02  Eric Blake  <ebb9@byu.net>
52056
52057         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52058         * modules/netinet_in (Makefile.am): Likewise.
52059
52060 2007-02-01  Bruno Haible  <bruno@clisp.org>
52061
52062         * lib/string_.h (GL_LINK_WARNING): New macro.
52063         (strcasecmp, strstr, strcasestr): If provided by the system,
52064         conditionally define as a macro that leads to a warning instead of to
52065         an error.
52066         (strncasecmp): Conditionally define as a macro that leads to a warning.
52067
52068 2007-02-01  Karl Berry  <karl@gnu.org>
52069
52070         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52071
52072 2007-02-01  Bruno Haible  <bruno@clisp.org>
52073
52074         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52075         renamings.
52076
52077 2007-02-01  Eric Blake  <ebb9@byu.net>
52078
52079         * modules/regex (Depends-on): Revert dependence on mempcpy.
52080         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52081         module's definition of mempcpy.
52082         Reported by Paul Eggert.
52083
52084 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52085
52086         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52087         the symbol XYZ before redefining it.  This fixes a problem with
52088         programs that don't use XYZ, when compiled on systems that define
52089         XYZ to something else.
52090
52091 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52092
52093         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52094         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52095         writeable to group or other and (2) is intended to have a special
52096         mode bit that is set or cleared.  In such a case, the directory
52097         should be neither group- nor other-writeable until the special
52098         mode bits are right.
52099
52100 2007-01-31  Eric Blake  <ebb9@byu.net>
52101
52102         * modules/mountlist (Depends-on): Add strstr.
52103
52104         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52105         bug.
52106         * modules/string (Makefile.am): Remove redundant replacement.
52107         * modules/regex (Depends-on): Add mempcpy.
52108
52109 2007-01-31  Bruno Haible  <bruno@clisp.org>
52110
52111         New module description field 'Link'.
52112         * gnulib-tool (func_usage): Document --extract-link-directive.
52113         (sed_extract_prog): Recognize 'Link' directive.
52114         (func_get_link_directive): New function.
52115         (func_import): Show summary of link directives.
52116         Handle --extract-link-directive option.
52117         * modules/acl (Link): New section.
52118         * modules/clock-time (Link): New section.
52119         * modules/euidaccess (Link): New section.
52120         * modules/gettext (Link): New section.
52121         * modules/iconv (Link): New section.
52122         * modules/lock (Link): New section.
52123         * modules/nanosleep (Link): New section.
52124         * modules/readline (Link): New section.
52125
52126 2007-01-27  Bruno Haible  <bruno@clisp.org>
52127
52128         Enforce the use of gnulib modules for unportable <string.h> functions.
52129         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52130         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52131         (gl_HEADER_STRING_H_BODY): Require it.
52132         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52133         the symbol XYZ to one that gives a link error.
52134         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52135         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52136         * modules/mempcpy (configure.ac): Likewise.
52137         * modules/memrchr (configure.ac): Likewise.
52138         * modules/stpcpy (configure.ac): Likewise.
52139         * modules/stpncpy (configure.ac): Likewise.
52140         * modules/strcase (configure.ac): Likewise.
52141         * modules/strcasestr (configure.ac): Likewise.
52142         * modules/strchrnul (configure.ac): Likewise.
52143         * modules/strdup (configure.ac): Likewise.
52144         * modules/strndup (configure.ac): Likewise.
52145         * modules/strnlen (configure.ac): Likewise.
52146         * modules/strpbrk (configure.ac): Likewise.
52147         * modules/strsep (configure.ac): Likewise.
52148         * modules/strstr (configure.ac): Likewise.
52149         * modules/strtok_r (configure.ac): Likewise.
52150
52151 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52152
52153         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52154
52155 2007-01-30  Jim Meyering  <jim@meyering.net>
52156
52157         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52158
52159 2007-01-29  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52162         * lib/execute.c: Likewise.
52163         * lib/pipe.c: Likewise.
52164         * lib/printf-args.h: Likewise.
52165         * lib/printf-args.c: Likewise.
52166         * lib/printf-parse.c: Likewise.
52167         * lib/vasnprintf.c: Likewise.
52168
52169 2007-01-29  Eric Blake  <ebb9@byu.net>
52170
52171         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52172         declaration.
52173
52174 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * lib/strptime.h (strptime): Use 'restrict' for args where
52177         POSIX requires this.
52178         * lib/strptime.c (strptime): Likewise.
52179         Change license notice from LGPL to GPL, since gnulib-tool will
52180         change this as needed.
52181         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52182         defined.
52183         Include "strptime.h" first, to check interface.
52184         Do not #undef _LIBC and _NL_CURRENT.
52185         Do not include <stdlib.h>; no longer needed.
52186         Include "time_r.h" and declare ptime_locale_status
52187         only if _LIBC is not defined.
52188         (__P): Remove unused macro.
52189         (match_string): Bring back glibc version, but use it only if _LIBC
52190         is defined.
52191         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52192         Remove unnecessary assertion and abort() call.
52193         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52194         * m4/strptime.m4: Fix serial number comment.
52195         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52196         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52197         (Depends-on): Add time_r.
52198
52199 2007-01-29  Bruno Haible  <bruno@clisp.org>
52200
52201         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52202         strptime.
52203         * modules/strptime (Depends-on): Add stdbool.
52204         * lib/strptime.h: Include <time.h> always. Add comments.
52205
52206 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52207
52208         * modules/strptime: New file.
52209         * lib/strptime.h: New file.
52210         * lib/strptime.c: New file.
52211         * m4/strptime.m4: New file.
52212
52213 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52214
52215         * MODULES.html.sh: New module mpsort.
52216         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52217
52218         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52219         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52221         All uses changed.
52222         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52223         All uses changed.
52224         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52225         to _Restrict_.
52226         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52227         the parameter matches the prototype.
52228
52229 2007-01-28  Jim Meyering  <jim@meyering.net>
52230
52231         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52232         sys/time.h here, reverting that part of the previous patch:
52233         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52234
52235 2007-01-28  Bruno Haible  <bruno@clisp.org>
52236
52237         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52238         value of $(SYS_TIME_H).
52239         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52240         remove it conditionally, too. [added by Jim Meyering]
52241         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52242         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52243         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52244         GETTIMEOFDAY_REPLACEMENT to 1.
52245
52246 2007-01-28  Bruno Haible  <bruno@clisp.org>
52247
52248         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52249         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52251         Set UNISTD_H instead of UNISTD_H2.
52252         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52253
52254 2007-01-28  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52257         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52258
52259 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52260
52261         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52262         (func_create_testdir): Ensure C locale for `grep' and `tr'
52263         character ranges.
52264         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52265         ACLOCAL_AMFLAGS parsing state machine.
52266
52267 2007-01-27  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/unistr/base: Update.
52270
52271 2007-01-27  Bruno Haible  <bruno@clisp.org>
52272
52273         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52274         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52275         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52276         modules/unistr/u32-mbtouc.
52277         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52278         * lib/unistr.h: Update.
52279         * lib/linebreak.c: Update.
52280         * modules/unistr/u32-mbtouc: Renamed from
52281         modules/unistr/u32-mbtouc-safe.
52282         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52283         * lib/unistr.h: Update.
52284         * lib/unistr/u32-to-u8.c: Update.
52285         * lib/unistr/u32-to-u16.c: Update.
52286
52287 2007-01-27  Bruno Haible  <bruno@clisp.org>
52288
52289         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52290         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52291         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52292         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52293         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52294         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52295         modules/unistr/u16-mbtouc.
52296         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52297         * lib/unistr.h: Update.
52298         * lib/linebreak.c: Update.
52299         * modules/linebreak: Update.
52300         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52301         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52302         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52303         * modules/unistr/u16-mbtouc: Renamed from
52304         modules/unistr/u16-mbtouc-safe.
52305         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52306         * lib/unistr.h: Update.
52307         * lib/unistr/u16-to-u8.c: Update.
52308         * modules/unistr/u16-to-u8: Update.
52309         * lib/unistr/u16-to-u32.c: Update.
52310         * modules/unistr/u16-to-u32: Update.
52311
52312 2007-01-27  Bruno Haible  <bruno@clisp.org>
52313
52314         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52315         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52316         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52317         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52318         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52319         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52320         modules/unistr/u8-mbtouc.
52321         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52322         * lib/unistr.h: Update.
52323         * lib/striconveh.c: Update.
52324         * modules/striconveh: Update.
52325         * lib/linebreak.c: Update.
52326         * modules/linebreak: Update.
52327         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52328         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52329         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52330         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52331         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52332         * lib/unistr.h: Update.
52333         * lib/striconveh.c: Update.
52334         * modules/striconveh: Update.
52335         * lib/unistr/u8-to-u16.c: Update.
52336         * modules/unistr/u8-to-u16: Update.
52337         * lib/unistr/u8-to-u32.c: Update.
52338         * modules/unistr/u8-to-u32: Update.
52339
52340 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52341
52342         Sync from Libtool.
52343         * lib/argz.c: Do not include strings.h nor memory.h, include
52344         string.h unconditionally.  Patch by Simon Josefsson.
52345
52346 2007-01-27  Bruno Haible  <bruno@clisp.org>
52347
52348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52349         from gl_HEADER_STRING_H_BODY.
52350         (gl_HEADER_STRING_H_BODY): Require it.
52351         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52352         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52353         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52354         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52356         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52357         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52358         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52359         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52360         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52361         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52362         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52363         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52364         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52366
52367 2007-01-27  Bruno Haible  <bruno@clisp.org>
52368
52369         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52370         check_PROGRAMS into noinst_PROGRAMS.
52371         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52372         check_PROGRAMS in this case.
52373         (func_import): Set for_test to false.
52374         (func_create_testdir): Set for_test to true.
52375
52376 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52377             Bruno Haible  <bruno@clisp.org>
52378
52379         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52380         (Depends-on): Add string.
52381         (Includes): Use <string.h> instead of strcasestr.h.
52382         * modules/string (Makefile.am): Also substitute the value of
52383         REPLACE_STRCASESTR.
52384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52385         assume strcasestr is declared in <string.h> not <strings.h>. Also
52386         set REPLACE_STRCASESTR.
52387         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52388         REPLACE_STRCASESTR.
52389         * lib/strcasestr.h: Remove file.
52390         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52391         * lib/string_.h (strcasestr): New declaration.
52392
52393 2007-01-27  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/string_.h: Use 'extern'.
52396
52397 2007-01-27  Jim Meyering  <jim@meyering.net>
52398
52399         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52400         of set-but-not-used local, "q".
52401
52402         * lib/mempcpy.c: Include <config.h> before <string.h>.
52403         This fixes a compilation error on HP-UX, due to the system's
52404         "restrict"-using mempcpy prototype.
52405
52406 2007-01-26  Bruno Haible  <bruno@clisp.org>
52407
52408         Small optimization.
52409         * lib/javacomp.c: Include c-strstr.h.
52410          (is_envjavac_gcj): Use c_strstr instead of strstr.
52411         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52412
52413 2007-01-26  Bruno Haible  <bruno@clisp.org>
52414
52415         * MODULES.html.sh (Unicode string functions): Add the new modules.
52416
52417         * modules/uniconv/u32-strconv-to-locale: New file.
52418         * lib/uniconv/u32-strconv-to-locale.c: New file.
52419
52420         * modules/uniconv/u16-strconv-to-locale: New file.
52421         * lib/uniconv/u16-strconv-to-locale.c: New file.
52422
52423         * modules/uniconv/u8-strconv-to-locale: New file.
52424         * lib/uniconv/u8-strconv-to-locale.c: New file.
52425
52426         * modules/uniconv/u32-strconv-from-locale: New file.
52427         * lib/uniconv/u32-strconv-from-locale.c: New file.
52428
52429         * modules/uniconv/u16-strconv-from-locale: New file.
52430         * lib/uniconv/u16-strconv-from-locale.c: New file.
52431
52432         * modules/uniconv/u8-strconv-from-locale: New file.
52433         * lib/uniconv/u8-strconv-from-locale.c: New file.
52434
52435         * modules/uniconv/u32-strconv-to-enc: New file.
52436         * lib/uniconv/u32-strconv-to-enc.c: New file.
52437         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52438         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52439
52440         * modules/uniconv/u16-strconv-to-enc: New file.
52441         * lib/uniconv/u16-strconv-to-enc.c: New file.
52442         * lib/uniconv/u-strconv-to-enc.h: New file.
52443         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52444         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52445
52446         * modules/uniconv/u8-strconv-to-enc: New file.
52447         * lib/uniconv/u8-strconv-to-enc.c: New file.
52448         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52449         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52450
52451         * modules/uniconv/u32-strconv-from-enc: New file.
52452         * lib/uniconv/u32-strconv-from-enc.c: New file.
52453         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52454         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52455
52456         * modules/uniconv/u16-strconv-from-enc: New file.
52457         * lib/uniconv/u16-strconv-from-enc.c: New file.
52458         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52459         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52460
52461         * modules/uniconv/u8-strconv-from-enc: New file.
52462         * lib/uniconv/u8-strconv-from-enc.c: New file.
52463         * lib/uniconv/u-strconv-from-enc.h: New file.
52464         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52465         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52466
52467         * modules/uniconv/u32-conv-from-enc: New file.
52468         * lib/uniconv/u32-conv-from-enc.c: New file.
52469         * modules/uniconv/u32-conv-from-enc-tests: New file.
52470         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52471
52472         * modules/uniconv/u16-conv-from-enc: New file.
52473         * lib/uniconv/u16-conv-from-enc.c: New file.
52474         * lib/uniconv/u-conv-from-enc.h: New file.
52475         * modules/uniconv/u16-conv-from-enc-tests: New file.
52476         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52477
52478         * modules/uniconv/u8-conv-from-enc: New file.
52479         * lib/uniconv/u8-conv-from-enc.c: New file.
52480         * modules/uniconv/u8-conv-from-enc-tests: New file.
52481         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52482
52483         * modules/uniconv/base: New file.
52484         * lib/uniconv.h: New file.
52485
52486 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52487
52488         * doc/gnulib-tool.texi (Initial import): Update to match current
52489         behavior with strdup module.
52490         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52491         * lib/memmem.h: Remove; all uses removed.  This is now done
52492         by <string.h>.
52493         * lib/mempcpy.h: Likewise.
52494         * lib/memrchr.h: Likewise.
52495         * lib/stpcpy.h: Likewise.
52496         * lib/stpncpy.h: Likewise.
52497         * lib/strcase.h: Likewise.
52498         * lib/strchrnul.h: Likewise.
52499         * lib/strdup.h: Likewise.
52500         * lib/strndup.h: Likewise.
52501         * lib/strnlen.h: Likewise.
52502         * lib/strpbrk.h: Likewise.
52503         * lib/strsep.h: Likewise.
52504         * lib/strstr.h: Likewise.
52505         * lib/strtok_r.h: Likewise.
52506         * lib/string_.h: New file.
52507         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52508         Rely on <string.h> instead.
52509         * lib/canon-host.c: Likewise.
52510         * lib/chdir-long.c: Likewise.
52511         * lib/concatpath.c: Likewise.
52512         * lib/exclude.c: Likewise.
52513         * lib/fchdir.c: Likewise.
52514         * lib/getaddrinfo.c: Likewise.
52515         * lib/getcwd.c: Likewise.
52516         * lib/getsubopt.c: Likewise.
52517         * lib/glob.c: Likewise.
52518         * lib/hard-locale.c: Likewise.
52519         * lib/iconvme.c: Likewise.
52520         * lib/javacomp.c: Likewise.
52521         * lib/mempcpy.c: Likewise.
52522         * lib/memrchr.c: Likewise.
52523         * lib/regex_internal.h: Likewise.
52524         * lib/stpncpy.c: Likewise.
52525         * lib/strcasecmp.c: Likewise.
52526         * lib/strchrnul.c: Likewise.
52527         * lib/strdup.c: Likewise.
52528         * lib/striconv.c: Likewise.
52529         * lib/striconveh.c: Likewise.
52530         * lib/striconveha.c: Likewise.
52531         * lib/strncasecmp.c: Likewise.
52532         * lib/strndup.c: Likewise.
52533         * lib/strnlen.c: Likewise.
52534         * lib/strsep.c: Likewise.
52535         * lib/strstr.c: Likewise.
52536         * lib/strtok_r.c: Likewise.
52537         * lib/userspec.c: Likewise.
52538         * lib/w32spawn.h: Likewise.
52539         * lib/xstrndup.c: Likewise.
52540         * lib/mountlist.c (strstr): Remove decl.
52541         * m4/string_h.m4: New file.
52542         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52543         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52544         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52545         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52546         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52547         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52548         Set REPLACE_STRCASECMP if necessary.
52549         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52550         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52551         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52552         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52553         HAVE_DECL_STRDUP if necessary.
52554         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52555         since gl_FUNC_STRNDUP does that now.
52556         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52557         Check for decl here...
52558         (gl_PREREQ_STRNLEN): ... not here.
52559         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52560         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52561         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52562         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52563         necessary.
52564         * modules/string: New file.
52565         * modules/memmem (Files): Remove special-purpose include file.
52566         (Depends-on): Add string.
52567         (Include): Include <string.h>, not the removed file.
52568         * modules/mempcpy: Likewise.
52569         * modules/memrchr: Likewise.
52570         * modules/stpcpy: Likewise.
52571         * modules/stpncpy: Likewise.
52572         * modules/strcase: Likewise.
52573         * modules/strchrnul: Likewise.
52574         * modules/strdup: Likewise.
52575         * modules/strndup: Likewise.
52576         * modules/strnlen: Likewise.
52577         * modules/strpbrk: Likewise.
52578         * modules/strsep: Likewise.
52579         * modules/strstr: Likewise.
52580         * modules/strtok_r: Likewise.
52581         * tests/test-dirname.c: Don't include "strdup.h", since
52582         <string.h> now suffices.
52583         * tests/test-memmem.c: Don't include "memmem.h", since
52584         <string.h> now suffices.
52585
52586 2007-01-25  Bruno Haible  <bruno@clisp.org>
52587
52588         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52589         *resultp is 0.
52590
52591         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52592         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52593         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52594         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52595
52596         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52597         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52598         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52599         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52600         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52601         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52602
52603 2007-01-24  Bruno Haible  <bruno@clisp.org>
52604
52605         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52607         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52608         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52609         gl_FUNC_FTS_CORE.
52610         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52611         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52612         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52613         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52614         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52615         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52616         gl_FUNC_FCHOWNAT.
52617         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52618         gl_FUNC_STRFTIME.
52619         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52620         Reported by Ralf Wildenhues.
52621
52622 2007-01-24  Bruno Haible  <bruno@clisp.org>
52623
52624         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52625         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52626         gl_GETADDRINFO.
52627         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52628         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52629         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52630
52631 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52632
52633         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52634         Don't use 'exit'; just return from 'main'.
52635         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52636
52637         * lib/fnmatch_.h: Readjust white space and comments to match
52638         glibc, to avoid spurious diffs.
52639
52640 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52643         2004-12-01 change by Jakub Jelinek, since this code won't compile
52644         if !LIBC.  Problem reported by Bob Proulx.
52645
52646 2007-01-23  Bruno Haible  <bruno@clisp.org>
52647
52648         * lib/striconveh.c: Include c-strcaseeq.h.
52649         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52650         * modules/striconveh (Depends-on): Add c-strcaseeq.
52651
52652 2007-01-23  Bruno Haible  <bruno@clisp.org>
52653
52654         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52655
52656         * modules/c-strcaseeq: New file.
52657         * lib/c-strcaseeq.h: New file.
52658
52659         * modules/streq: New file.
52660         * lib/streq.h: New file.
52661
52662 2007-01-23  Bruno Haible  <bruno@clisp.org>
52663
52664         * modules/striconveha-tests: New file.
52665         * tests/test-striconveha.c: New file.
52666
52667         * lib/striconveha.h: Include <stdbool.h>.
52668         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52669         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52670         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52671         (mem_iconveha): New function.
52672         (str_iconveha_notranslit): Renamed from str_iconveha.
52673         (str_iconveha): New function.
52674         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52675         c-strcase.
52676
52677 2007-01-23  Bruno Haible  <bruno@clisp.org>
52678
52679         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52680         encodings without forgiving before trying any encoding with handler.
52681         (str_iconveha): Try all encodings without forgiving before trying any
52682         encoding with handler.
52683
52684 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52685
52686         Import the following changes from libc.
52687
52688         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52689
52690         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52691
52692         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52693
52694         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52695         normal_bracket label.
52696
52697         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52698
52699         [BZ #361]
52700         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52701         to normal_bracket after fetching the next character.
52702
52703 2007-01-22  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52706         argument.
52707         * lib/striconveh.c (iconv_carefully_1): New function.
52708         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52709         argument.
52710         (str_cd_iconveh): Update.
52711         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52712         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52713         * tests/test-striconveh.c (MAGIC): New macro.
52714         (new_offsets): New function.
52715         (main): Test call with and without offsets.
52716
52717 2007-01-22  Bruno Haible  <bruno@clisp.org>
52718
52719         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52720         * modules/sys_select (Makefile.am): Likewise.
52721         * modules/sys_socket (Makefile.am): Likewise.
52722         * modules/sys_time (Makefile.am): Likewise.
52723
52724 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         * modules/gettimeofday (License): Change from GPL to LGPL, since
52727         gettimeofday is a library function.
52728
52729 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52730
52731         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52732
52733 2007-01-21  Bruno Haible  <bruno@clisp.org>
52734
52735         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52736
52737 2007-01-21  Bruno Haible  <bruno@clisp.org>
52738
52739         * modules/striconveha: New file.
52740         * lib/striconveha.h: New file.
52741         * lib/striconveha.c: New file.
52742         * MODULES.html.sh (Internationalization functions): Add striconveha.
52743         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52744         string.
52745         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52746
52747 2007-01-21  Bruno Haible  <bruno@clisp.org>
52748
52749         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52750         * lib/striconveh.c (str_iconveh): Likewise.
52751
52752 2007-01-21  Bruno Haible  <bruno@clisp.org>
52753
52754         * lib/striconveh.h (mem_iconveh): New declaration.
52755         * lib/striconveh.c (mem_iconveh): New function.
52756         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52757
52758 2007-01-21  Bruno Haible  <bruno@clisp.org>
52759
52760         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52761
52762         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52763         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52764         original result buffer.
52765         (str_cd_iconveh): Update.
52766         * tests/test-striconveh.c (main): Update.
52767
52768         * lib/striconv.h (mem_cd_iconv): Change specification.
52769         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52770         result buffer.
52771         (str_cd_iconv): Update.
52772         * tests/test-striconv.c (main): Update.
52773
52774 2007-01-21  Bruno Haible  <bruno@clisp.org>
52775
52776         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52777
52778 2007-01-20  Jim Meyering  <jim@meyering.net>
52779
52780         * lib/userspec.c (parse_with_separator): If a user or group string
52781         starts with "+", skip the corresponding name-to-ID look-up, since
52782         such a look-up must fail: user and group names may not include "+".
52783
52784 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52785
52786         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52787         since we now assume the sys_time module.
52788         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52789         check for sys/time.h; no longer needed.
52790         * modules/poll (Depends-on): Depend on sys_time.
52791
52792 2007-01-18  Bruno Haible  <bruno@clisp.org>
52793
52794         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52795         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52796
52797         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52798         gettimeofday.
52799
52800         * tests/test-gettimeofday.c: Include <time.h>.
52801         (dummy): Remove variable.
52802
52803         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52804         gl_HEADER_SYS_TIME_H.
52805         (gl_HEADER_SYS_TIME_H): New macro.
52806
52807         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52808         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52809         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52810         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52811         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52813         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52814         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52815         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52816         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52817         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52818
52819         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52820         last change; it caused a compilation error when cross-compiling to
52821         Cygwin.
52822
52823 2007-01-18  Jim Meyering  <jim@meyering.net>
52824
52825         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52826         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52827         than the race-prone "test -d sys || mkdir sys".
52828         (configure.ac): Use AC_PROG_MKDIR_P.
52829         * modules/sys_select: Likewise.
52830         * modules/sys_socket: Likewise.
52831         * modules/sys_time: Likewise.
52832
52833 2007-01-18  Eric Blake  <ebb9@byu.net>
52834
52835         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52836         replace gettimeofday.
52837         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52838         name, to avoid infinite recursion.
52839
52840 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52843         module sys_time.
52844         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52845         assume timespec.h defines struct timeval.
52846         * lib/settime.c: Likewise.
52847         * lib/utimens.c: Likewise.
52848         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52849         since we now assume the gettimeofday module.
52850         * lib/tempname.c (__gen_tempname): Likewise.
52851         * lib/gettimeofday.h: Remove.
52852         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52853         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52854         Include <time.h>, for 'time()'.
52855         (localtime_buffer_addr): Also use this workaround if
52856         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52857         to simplify the uses.  All uses changed.
52858         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52859         that #undef is inside {}, and 'const' follows type name consistently.
52860         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52861         (gettimeofday): Do not use the maximum possible value for
52862         tv->tv_usec, since that might break usages other than ls.c.
52863         Instead, we'll leave ls.c alone.  This undoes today's patch
52864         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52865         we've never observed the problem but might as well keep the
52866         canary.
52867         * lib/nanosleep.c: Include timespec.h first, for interface check.
52868         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52869         now assume the sys_time module.
52870         * lib/tempname.c: Likewise.
52871         * lib/timespec.h: Likewise.
52872         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52873         needed.
52874         * lib/strftime.c: Likewise.
52875         * lib/timespec.h: Likewise.
52876         * lib/posixtm.c: Include posixtm.h first, for interface check.
52877         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52878         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52879         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52880         * lib/sys_time_.h: New file.
52881         * lib/timespec.h (struct timespec): Use long int, not long.
52882         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52883         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52884         Remove obsolescent call to AC_HEADER_TIME.
52885         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52887         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52888         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52889         Likewise.
52890         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52891         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52892         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52893         into the sys_time module.  Check for gettimeofday just once.
52894         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52895         for gettimeofday signature to just check the signature.  Merely
52896         compile it, since linking doesn't test signature.  Improve test for
52897         whether gettimeofday.o is actually needed.
52898         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52899         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52900         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52901         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52902         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52903         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52904         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52905         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52906         than worrying about sys/time.h.
52907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52908         Don't bother worrying about TIME_WITH_SYS_TIME.
52909         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52910         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52911         * m4/sys_time_h.m4: New file.
52912         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52913         Don't include sys/time.h.  Return from main rather than exiting.
52914         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52915         all uses changed.
52916         * modules/gethrxtime (Depends-on): Add sys_time.
52917         * modules/gettime (Depends-on): Likewise.
52918         * modules/gettimeofday (Depends-on): Likewise.
52919         * modules/nanosleep (Depends-on): Likewise.
52920         * modules/settime (Depends-on): Likewise.
52921         * modules/tempname (Depends-on): Likewise.
52922         * modules/utimens (Depends-on): Likewise.
52923         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52924         (Include:) Change back to <sys/time.h>.
52925         (Maintainer:) Add self.
52926         * modules/sys_time: New file.
52927         * modules/tempname (Depends-on): Add gettimeofday.
52928         * tests/test-gettimeofday.c: Include <sys/time.h>
52929         rather than gettimeofday.h.
52930
52931 2007-01-17  Bruno Haible  <bruno@clisp.org>
52932
52933         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52934         the license default to GPL.
52935         (func_create_testdir): Don't complain if a module is LGPL and its
52936         tests module depends on GPLed modules.
52937
52938 2007-01-17  Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/gettimeofday.c (gettimeofday): Add code for the case
52941         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52942         maximum possible value for tv->tv_usec, rather than the minimum one.
52943
52944 2005-10-08  Martin Lambers  <marlam@marlam.de>
52945 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52946 2007-01-16  Bruno Haible  <bruno@clisp.org>
52947
52948         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52949         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52950         gl_FUNC_GETTIMEOFDAY.
52951         (Include): Add gettimeofday.h.
52952         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52953         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52954         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52955         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52956         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52957         * lib/gettimeofday.h: New file.
52958         * lib/gettimeofday.c: Include <sys/timeb.h>.
52959         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52960         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52961         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52962         fall back on time().
52963
52964         * tests/test-gettimeofday.c: New file.
52965         * modules/gettimeofday-tests: New file.
52966
52967 2007-01-16  Eric Blake  <ebb9@byu.net>
52968
52969         * modules/fnmatch (Depends-on): Depend on wchar.
52970         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52971         * m4/fnmatch.m4: Likewise.
52972         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52973         * m4/mbchar.m4: Likewise.
52974         * modules/mbswidth (Depends-on): Depend on wchar.
52975         * lib/mbswidth.c: Assume <wchar.h>.
52976         * m4/mbswidth.m4: Likewise.
52977         * modules/quotearg (Depends-on): Depend on wchar.
52978         * lib/quotearg.c: Assume <wchar.h>.
52979         * m4/quotearg.m4: Likewise.
52980         * modules/regex (Depends-on): Depend on wchar.
52981         * lib/regex_internal.h: Assume <wchar.h>.
52982         * m4/regex.m4: Likewise.
52983         * modules/stdint (Depends-on): Depend on wchar.
52984         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52985         * m4/stdint.m4: Likewise.
52986         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52987         * modules/strftime (Depends-on): Depend on wchar.
52988         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52989         * modules/strtol (Depends-on): Depend on wchar.
52990         * lib/strtol.c: Assume <wchar.h>.
52991         * modules/wcwidth (Depends-on): Depend on wchar.
52992         * lib/wcwidth.h: Assume <wchar.h>.
52993         * m4/wcwidth.m4: Likewise.
52994
52995 2007-01-16  Bruno Haible  <bruno@clisp.org>
52996
52997         * modules/csharpexec-script: New, created from...
52998         * modules/csharpexec: ... this.
52999
53000 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53001
53002         * modules/javaexec-script: New, created from...
53003         * modules/javaexec: ... this.
53004
53005 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53006
53007         * modules/poll (Dependencies): Add sys_select.
53008
53009 2007-01-15  Jim Meyering  <jim@meyering.net>
53010
53011         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53012         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53013         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53014         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53015
53016 2007-01-15  Bruno Haible  <bruno@clisp.org>
53017
53018         * modules/striconveh: New file.
53019         * lib/striconveh.h: New file.
53020         * lib/striconveh.c: New file.
53021         * MODULES.html.sh (Internationalization functions): Add striconveh.
53022
53023         * modules/striconveh-tests: New file.
53024         * tests/test-striconveh.c: New file.
53025
53026 2007-01-15  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53029         not from GNU libiconv or GNU libc.
53030
53031 2007-01-15  Bruno Haible  <bruno@clisp.org>
53032
53033         * doc/gnulib-intro.texi (Copyright): Explain the different license
53034         terms for module descriptions, autoconf macros, tests, documentation.
53035
53036 2007-01-14  Bruno Haible  <bruno@clisp.org>
53037
53038         * modules/striconv-tests: New file.
53039         * tests/test-striconv.c: New file.
53040
53041 2007-01-14  Bruno Haible  <bruno@clisp.org>
53042
53043         * modules/iconv-tests: New file.
53044         * tests/test-iconv.c: New file.
53045
53046 2007-01-14  Bruno Haible  <bruno@clisp.org>
53047
53048         * gnulib-tool (func_get_license): For test modules, use the license of
53049         the main module.
53050
53051 2007-01-14  Bruno Haible  <bruno@clisp.org>
53052
53053         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53054         if iconv is found to exist.
53055
53056 2007-01-14  Bruno Haible  <bruno@clisp.org>
53057
53058         * modules/c-ctype-tests: New file.
53059         * tests/test-c-ctype.c: New file.
53060
53061 2007-01-14  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/binary-io-tests: New file.
53064         * tests/test-binary-io.sh: New file.
53065         * tests/test-binary-io.c: New file.
53066
53067 2007-01-14  Bruno Haible  <bruno@clisp.org>
53068
53069         * modules/array-oset-tests: New file.
53070         * tests/test-array_oset.c: New file.
53071
53072 2007-01-14  Bruno Haible  <bruno@clisp.org>
53073
53074         * modules/array-list-tests: New file.
53075         * tests/test-array_list.c: New file.
53076
53077 2007-01-14  Bruno Haible  <bruno@clisp.org>
53078
53079         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53080         and make.
53081         Reported by Simon Josefsson in
53082         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53083
53084 2007-01-14  Bruno Haible  <bruno@clisp.org>
53085
53086         * modules/allocsa-tests: New file.
53087         * tests/test-allocsa.c: New file.
53088
53089 2007-01-14  Bruno Haible  <bruno@clisp.org>
53090
53091         * modules/fchdir (Depends-on): Add absolute-header.
53092         * modules/unistd (Depends-on): Likewise.
53093
53094 2006-12-30  Bruno Haible  <bruno@clisp.org>
53095
53096         * modules/fchdir: New file.
53097         * modules/unistd (Files): Add lib/unistd_.h.
53098         (Makefile.am): Generate unistd.h from unistd_.h.
53099         * lib/fchdir.c: New file.
53100         * lib/dirent_.h: New file.
53101         * lib/unistd_.h: New file.
53102         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53103         * m4/fchdir.m4: New file.
53104         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53105         (gl_HEADER_UNISTD): Invoke it.
53106         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53107         function.
53108         * lib/backupfile.c (opendir, closedir): Undefine.
53109         * lib/chown.c (open, close): Undefine.
53110         * lib/clean-temp.c (open, close): Undefine.
53111         * lib/copy-file.c (open, close): Undefine.
53112         * lib/execute.c (open, close): Undefine.
53113         * lib/fsusage.c (open, close): Undefine.
53114         * lib/gc-gnulib.c (open, close): Undefine.
53115         * lib/getcwd.c (opendir, closedir): Undefine.
53116         * lib/glob.c (opendir, closedir): Undefine.
53117         * lib/javacomp.c (open, close): Undefine.
53118         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53119         * lib/openat-proc.c (open, close): Undefine.
53120         * lib/pagealign_alloc.c (open, close): Undefine.
53121         * lib/pipe.c (open, close): Undefine.
53122         * lib/progreloc.c (open, close): Undefine.
53123         * lib/savedir.c (opendir, closedir): Undefine.
53124         * lib/utime.c (open, close): Undefine.
53125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53126
53127 2007-01-10  Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53130
53131 2007-01-12  Eric Blake  <ebb9@byu.net>
53132
53133         Provide a robust <wchar.h>.  Further simplifications are now
53134         possible in other modules, but not included here.
53135         * modules/wchar: New module.
53136         * m4/wchar.m4: New file.
53137         * lib/wchar_.h: Likewise.
53138         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53139         of the new module.
53140         * MODULES.html.sh (Extended multibyte and wide character utilities):
53141         New section.
53142
53143 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53144
53145         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53146         to a reasonable default for memory allocation.
53147         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53148         file system that reports garbage st_size values for symlinks.
53149         Problem reported by Liyang Hu.
53150
53151 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53152
53153         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53154         Emacs .#* auto-save files).
53155
53156 2007-01-11  Bruno Haible  <bruno@clisp.org>
53157
53158         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53159         directory.
53160
53161 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53162
53163         Use @...@ consistently in lib/wctype_.h.
53164         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53165         on it being set to 1 or 0.
53166         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53167         go back to AC_SUBSTing it.
53168         * modules/wctype (Makefile.am): Undo previous change.
53169
53170 2007-01-10  Eric Blake  <ebb9@byu.net>
53171
53172         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53173         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53174         * modules/wctype (Makefile.am): Likewise.
53175         Reported by Chris McGuire.
53176
53177 2007-01-10  Jim Meyering  <jim@meyering.net>
53178
53179         fts.c: a small readability/maintainability improvement
53180         * lib/fts.c (fts_read): Make this code slightly more readable and
53181         maintainable by hoisting the "sp->fts_cur = p" assignments to
53182         immediately follow the statements that set P.  Derived from
53183         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53184
53185 2007-01-10  Eric Blake  <ebb9@byu.net>
53186
53187         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53188         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53190         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53191         Reported by Chris McGuire.
53192
53193 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53194
53195         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53196         in sed script.
53197
53198 2007-01-09  Bruno Haible  <bruno@clisp.org>
53199
53200         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53201         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53202         variables.
53203         (func_module): Use them.
53204
53205 2007-01-09  Bruno Haible  <bruno@clisp.org>
53206
53207         * modules/unistr/base: New file.
53208         * lib/unistr.h: New file.
53209
53210         * modules/unistr/u8-to-u16: New file.
53211         * lib/unistr/u8-to-u16.c: New file.
53212
53213         * modules/unistr/u8-to-u32: New file.
53214         * lib/unistr/u8-to-u32.c: New file.
53215
53216         * modules/unistr/u16-to-u8: New file.
53217         * lib/unistr/u16-to-u8.c: New file.
53218
53219         * modules/unistr/u16-to-u32: New file.
53220         * lib/unistr/u16-to-u32.c: New file.
53221
53222         * modules/unistr/u32-to-u8: New file.
53223         * lib/unistr/u32-to-u8.c: New file.
53224
53225         * modules/unistr/u32-to-u16: New file.
53226         * lib/unistr/u32-to-u16.c: New file.
53227
53228         * modules/unistr/u8-check: New file.
53229         * modules/unistr/u16-check: New file.
53230         * modules/unistr/u32-check: New file.
53231         * lib/unistr/u8-check.c: New file.
53232         * lib/unistr/u16-check.c: New file.
53233         * lib/unistr/u32-check.c: New file.
53234
53235         * modules/unistr/u8-chr: New file.
53236         * modules/unistr/u16-chr: New file.
53237         * modules/unistr/u32-chr: New file.
53238         * lib/unistr/u8-chr.c: New file.
53239         * lib/unistr/u16-chr.c: New file.
53240         * lib/unistr/u32-chr.c: New file.
53241
53242         * modules/unistr/u8-cmp: New file.
53243         * modules/unistr/u16-cmp: New file.
53244         * modules/unistr/u32-cmp: New file.
53245         * lib/unistr/u8-cmp.c: New file.
53246         * lib/unistr/u16-cmp.c: New file.
53247         * lib/unistr/u32-cmp.c: New file.
53248
53249         * modules/unistr/u8-cpy: New file.
53250         * modules/unistr/u16-cpy: New file.
53251         * modules/unistr/u32-cpy: New file.
53252         * lib/unistr/u8-cpy.c: New file.
53253         * lib/unistr/u16-cpy.c: New file.
53254         * lib/unistr/u32-cpy.c: New file.
53255         * lib/unistr/u-cpy.h: New file.
53256
53257         * modules/unistr/u8-cpy-alloc: New file.
53258         * modules/unistr/u16-cpy-alloc: New file.
53259         * modules/unistr/u32-cpy-alloc: New file.
53260         * lib/unistr/u8-cpy-alloc.c: New file.
53261         * lib/unistr/u16-cpy-alloc.c: New file.
53262         * lib/unistr/u32-cpy-alloc.c: New file.
53263         * lib/unistr/u-cpy-alloc.h: New file.
53264
53265         * modules/unistr/u8-endswith: New file.
53266         * modules/unistr/u16-endswith: New file.
53267         * modules/unistr/u32-endswith: New file.
53268         * lib/unistr/u8-endswith.c: New file.
53269         * lib/unistr/u16-endswith.c: New file.
53270         * lib/unistr/u32-endswith.c: New file.
53271         * lib/unistr/u-endswith.h: New file.
53272
53273         * modules/unistr/u8-mblen: New file.
53274         * modules/unistr/u16-mblen: New file.
53275         * modules/unistr/u32-mblen: New file.
53276         * lib/unistr/u8-mblen.c: New file.
53277         * lib/unistr/u16-mblen.c: New file.
53278         * lib/unistr/u32-mblen.c: New file.
53279
53280         * modules/unistr/u8-mbtouc: New file.
53281         * modules/unistr/u16-mbtouc: New file.
53282         * modules/unistr/u32-mbtouc: New file.
53283         * lib/unistr/u8-mbtouc.c: New file.
53284         * lib/unistr/u16-mbtouc.c: New file.
53285         * lib/unistr/u32-mbtouc.c: New file.
53286
53287         * modules/unistr/u8-mbtouc-safe: New file.
53288         * modules/unistr/u16-mbtouc-safe: New file.
53289         * modules/unistr/u32-mbtouc-safe: New file.
53290         * lib/unistr/u8-mbtouc-safe.c: New file.
53291         * lib/unistr/u16-mbtouc-safe.c: New file.
53292         * lib/unistr/u32-mbtouc-safe.c: New file.
53293
53294         * modules/unistr/u8-move: New file.
53295         * modules/unistr/u16-move: New file.
53296         * modules/unistr/u32-move: New file.
53297         * lib/unistr/u8-move.c: New file.
53298         * lib/unistr/u16-move.c: New file.
53299         * lib/unistr/u32-move.c: New file.
53300         * lib/unistr/u-move.h: New file.
53301
53302         * modules/unistr/u8-next: New file.
53303         * modules/unistr/u16-next: New file.
53304         * modules/unistr/u32-next: New file.
53305         * lib/unistr/u8-next.c: New file.
53306         * lib/unistr/u16-next.c: New file.
53307         * lib/unistr/u32-next.c: New file.
53308
53309         * modules/unistr/u8-prev: New file.
53310         * modules/unistr/u16-prev: New file.
53311         * modules/unistr/u32-prev: New file.
53312         * lib/unistr/u8-prev.c: New file.
53313         * lib/unistr/u16-prev.c: New file.
53314         * lib/unistr/u32-prev.c: New file.
53315
53316         * modules/unistr/u8-set: New file.
53317         * modules/unistr/u16-set: New file.
53318         * modules/unistr/u32-set: New file.
53319         * lib/unistr/u8-set.c: New file.
53320         * lib/unistr/u16-set.c: New file.
53321         * lib/unistr/u32-set.c: New file.
53322         * lib/unistr/u-set.h: New file.
53323
53324         * modules/unistr/u8-startswith: New file.
53325         * modules/unistr/u16-startswith: New file.
53326         * modules/unistr/u32-startswith: New file.
53327         * lib/unistr/u8-startswith.c: New file.
53328         * lib/unistr/u16-startswith.c: New file.
53329         * lib/unistr/u32-startswith.c: New file.
53330         * lib/unistr/u-startswith.h: New file.
53331
53332         * modules/unistr/u8-stpcpy: New file.
53333         * modules/unistr/u16-stpcpy: New file.
53334         * modules/unistr/u32-stpcpy: New file.
53335         * lib/unistr/u8-stpcpy.c: New file.
53336         * lib/unistr/u16-stpcpy.c: New file.
53337         * lib/unistr/u32-stpcpy.c: New file.
53338         * lib/unistr/u-stpcpy.h: New file.
53339
53340         * modules/unistr/u8-stpncpy: New file.
53341         * modules/unistr/u16-stpncpy: New file.
53342         * modules/unistr/u32-stpncpy: New file.
53343         * lib/unistr/u8-stpncpy.c: New file.
53344         * lib/unistr/u16-stpncpy.c: New file.
53345         * lib/unistr/u32-stpncpy.c: New file.
53346         * lib/unistr/u-stpncpy.h: New file.
53347
53348         * modules/unistr/u8-strcat: New file.
53349         * modules/unistr/u16-strcat: New file.
53350         * modules/unistr/u32-strcat: New file.
53351         * lib/unistr/u8-strcat.c: New file.
53352         * lib/unistr/u16-strcat.c: New file.
53353         * lib/unistr/u32-strcat.c: New file.
53354         * lib/unistr/u-strcat.h: New file.
53355
53356         * modules/unistr/u8-strchr: New file.
53357         * modules/unistr/u16-strchr: New file.
53358         * modules/unistr/u32-strchr: New file.
53359         * lib/unistr/u8-strchr.c: New file.
53360         * lib/unistr/u16-strchr.c: New file.
53361         * lib/unistr/u32-strchr.c: New file.
53362
53363         * modules/unistr/u8-strcmp: New file.
53364         * modules/unistr/u16-strcmp: New file.
53365         * modules/unistr/u32-strcmp: New file.
53366         * lib/unistr/u8-strcmp.c: New file.
53367         * lib/unistr/u16-strcmp.c: New file.
53368         * lib/unistr/u32-strcmp.c: New file.
53369
53370         * modules/unistr/u8-strcpy: New file.
53371         * modules/unistr/u16-strcpy: New file.
53372         * modules/unistr/u32-strcpy: New file.
53373         * lib/unistr/u8-strcpy.c: New file.
53374         * lib/unistr/u16-strcpy.c: New file.
53375         * lib/unistr/u32-strcpy.c: New file.
53376         * lib/unistr/u-strcpy.h: New file.
53377
53378         * modules/unistr/u8-strcspn: New file.
53379         * modules/unistr/u16-strcspn: New file.
53380         * modules/unistr/u32-strcspn: New file.
53381         * lib/unistr/u8-strcspn.c: New file.
53382         * lib/unistr/u16-strcspn.c: New file.
53383         * lib/unistr/u32-strcspn.c: New file.
53384         * lib/unistr/u-strcspn.h: New file.
53385
53386         * modules/unistr/u8-strdup: New file.
53387         * modules/unistr/u16-strdup: New file.
53388         * modules/unistr/u32-strdup: New file.
53389         * lib/unistr/u8-strdup.c: New file.
53390         * lib/unistr/u16-strdup.c: New file.
53391         * lib/unistr/u32-strdup.c: New file.
53392         * lib/unistr/u-strdup.h: New file.
53393
53394         * modules/unistr/u8-strlen: New file.
53395         * modules/unistr/u16-strlen: New file.
53396         * modules/unistr/u32-strlen: New file.
53397         * lib/unistr/u8-strlen.c: New file.
53398         * lib/unistr/u16-strlen.c: New file.
53399         * lib/unistr/u32-strlen.c: New file.
53400         * lib/unistr/u-strlen.h: New file.
53401
53402         * modules/unistr/u8-strmblen: New file.
53403         * modules/unistr/u16-strmblen: New file.
53404         * modules/unistr/u32-strmblen: New file.
53405         * lib/unistr/u8-strmblen.c: New file.
53406         * lib/unistr/u16-strmblen.c: New file.
53407         * lib/unistr/u32-strmblen.c: New file.
53408
53409         * modules/unistr/u8-strmbtouc: New file.
53410         * modules/unistr/u16-strmbtouc: New file.
53411         * modules/unistr/u32-strmbtouc: New file.
53412         * lib/unistr/u8-strmbtouc.c: New file.
53413         * lib/unistr/u16-strmbtouc.c: New file.
53414         * lib/unistr/u32-strmbtouc.c: New file.
53415
53416         * modules/unistr/u8-strncat: New file.
53417         * modules/unistr/u16-strncat: New file.
53418         * modules/unistr/u32-strncat: New file.
53419         * lib/unistr/u8-strncat.c: New file.
53420         * lib/unistr/u16-strncat.c: New file.
53421         * lib/unistr/u32-strncat.c: New file.
53422         * lib/unistr/u-strncat.h: New file.
53423
53424         * modules/unistr/u8-strncmp: New file.
53425         * modules/unistr/u16-strncmp: New file.
53426         * modules/unistr/u32-strncmp: New file.
53427         * lib/unistr/u8-strncmp.c: New file.
53428         * lib/unistr/u16-strncmp.c: New file.
53429         * lib/unistr/u32-strncmp.c: New file.
53430
53431         * modules/unistr/u8-strncpy: New file.
53432         * modules/unistr/u16-strncpy: New file.
53433         * modules/unistr/u32-strncpy: New file.
53434         * lib/unistr/u8-strncpy.c: New file.
53435         * lib/unistr/u16-strncpy.c: New file.
53436         * lib/unistr/u32-strncpy.c: New file.
53437         * lib/unistr/u-strncpy.h: New file.
53438
53439         * modules/unistr/u8-strnlen: New file.
53440         * modules/unistr/u16-strnlen: New file.
53441         * modules/unistr/u32-strnlen: New file.
53442         * lib/unistr/u8-strnlen.c: New file.
53443         * lib/unistr/u16-strnlen.c: New file.
53444         * lib/unistr/u32-strnlen.c: New file.
53445         * lib/unistr/u-strnlen.h: New file.
53446
53447         * modules/unistr/u8-strpbrk: New file.
53448         * modules/unistr/u16-strpbrk: New file.
53449         * modules/unistr/u32-strpbrk: New file.
53450         * lib/unistr/u8-strpbrk.c: New file.
53451         * lib/unistr/u16-strpbrk.c: New file.
53452         * lib/unistr/u32-strpbrk.c: New file.
53453         * lib/unistr/u-strpbrk.h: New file.
53454
53455         * modules/unistr/u8-strrchr: New file.
53456         * modules/unistr/u16-strrchr: New file.
53457         * modules/unistr/u32-strrchr: New file.
53458         * lib/unistr/u8-strrchr.c: New file.
53459         * lib/unistr/u16-strrchr.c: New file.
53460         * lib/unistr/u32-strrchr.c: New file.
53461
53462         * modules/unistr/u8-strspn: New file.
53463         * modules/unistr/u16-strspn: New file.
53464         * modules/unistr/u32-strspn: New file.
53465         * lib/unistr/u8-strspn.c: New file.
53466         * lib/unistr/u16-strspn.c: New file.
53467         * lib/unistr/u32-strspn.c: New file.
53468         * lib/unistr/u-strspn.h: New file.
53469
53470         * modules/unistr/u8-strstr: New file.
53471         * modules/unistr/u16-strstr: New file.
53472         * modules/unistr/u32-strstr: New file.
53473         * lib/unistr/u8-strstr.c: New file.
53474         * lib/unistr/u16-strstr.c: New file.
53475         * lib/unistr/u32-strstr.c: New file.
53476         * lib/unistr/u-strstr.h: New file.
53477
53478         * modules/unistr/u8-strtok: New file.
53479         * modules/unistr/u16-strtok: New file.
53480         * modules/unistr/u32-strtok: New file.
53481         * lib/unistr/u8-strtok.c: New file.
53482         * lib/unistr/u16-strtok.c: New file.
53483         * lib/unistr/u32-strtok.c: New file.
53484         * lib/unistr/u-strtok.h: New file.
53485
53486         * modules/unistr/u8-uctomb: New file.
53487         * modules/unistr/u16-uctomb: New file.
53488         * modules/unistr/u32-uctomb: New file.
53489         * lib/unistr/u8-uctomb.c: New file.
53490         * lib/unistr/u16-uctomb.c: New file.
53491         * lib/unistr/u32-uctomb.c: New file.
53492
53493         * MODULES.html.sh (Unicode string functions): Add the new modules.
53494
53495 2007-01-08  Bruno Haible  <bruno@clisp.org>
53496
53497         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53498         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53499         subdirectories.
53500
53501 2007-01-08  Karl Berry  <karl@gnu.org>
53502
53503         * doc/error.texi: mention that main() fns must set program_name
53504         when progname is used.
53505
53506 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53507
53508         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53509         WCTYPE_H is empty, for the benefit of builds from non-distclean
53510         directories.  Problem reported by Eric Blake in
53511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53512
53513 2007-01-08  Bruno Haible  <bruno@clisp.org>
53514
53515         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53516         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53517         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53518         PROVIDE_CANONICALIZE_FILENAME_MODE.
53519         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53520
53521 2007-01-08  Bruno Haible  <bruno@clisp.org>
53522
53523         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53524         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53525         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53526         * lib/fts.c: Likewise.
53527         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53528
53529 2006-12-25  Bruno Haible  <bruno@clisp.org>
53530
53531         * modules/utf8-ucs4-safe: New file.
53532         * lib/utf8-ucs4-safe.h: New file.
53533         * lib/unistr/utf8-ucs4-safe.c: New file.
53534
53535         * modules/utf16-ucs4-safe: New file.
53536         * lib/utf16-ucs4-safe.h: New file.
53537         * lib/unistr/utf16-ucs4-safe.c: New file.
53538
53539         * MODULES.html.sh (Unicode string functions): Add the new modules.
53540
53541 2007-01-08  Bruno Haible  <bruno@clisp.org>
53542
53543         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53544         (Depends-on): Add unitypes.
53545         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53546         (u8_mbtouc_aux): Move out to separate file.
53547         (u8_mbtouc): Use ucs4_t, uint8_t types.
53548         * lib/unistr/utf8-ucs4.c: New file.
53549
53550         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53551         (Depends-on): Add unitypes.
53552         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53553         (u16_mbtouc_aux): Move out to separate file.
53554         (u16_mbtouc): Use ucs4_t, uint16_t types.
53555         * lib/unistr/utf16-ucs4.c: New file.
53556
53557         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53558         (Depends-on): Add unitypes.
53559         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53560         (u8_uctomb_aux): Move out to separate file.
53561         (u8_uctomb): Use ucs4_t, uint8_t types.
53562         * lib/unistr/ucs4-utf8.c: New file.
53563
53564         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53565         (Depends-on): Add unitypes.
53566         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53567         (u16_uctomb_aux): Move out to separate file.
53568         (u16_uctomb): Use ucs4_t, uint16_t types.
53569         * lib/unistr/ucs4-utf16.c: New file.
53570
53571 2006-12-25  Bruno Haible  <bruno@clisp.org>
53572
53573         * modules/unitypes: New file.
53574         * lib/unitypes.h: New file.
53575         * MODULES.html.sh (func_all_modules): New section "Unicode string
53576         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53577         this section. Add unitypes.
53578
53579 2007-01-08  Bruno Haible  <bruno@clisp.org>
53580
53581         Avoid variable names that conflict with those from libtool.
53582         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53583         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53584         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53585         library_names_spec to acl_library_names_spec, hardcode_* to
53586         acl_hardcode_*.
53587         Reported by Ralf Wildenhues.
53588
53589 2007-01-08  Bruno Haible  <bruno@clisp.org>
53590
53591         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53592         definition.
53593         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53594         definition.
53595         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53596         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53597         definition.
53598         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53599         definition.
53600         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53601         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53602         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53603         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53604         definition.
53605         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53606         definition.
53607         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53608         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53609         GC_USE_<algorithm>.
53610         * lib/gc-libgcrypt.c: Likewise.
53611         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53612         * modules/gc-arctwo (configure.ac): Likewise.
53613         * modules/gc-des (configure.ac): Likewise.
53614         * modules/gc-hmac-md5 (configure.ac): Likewise.
53615         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53616         * modules/gc-md2 (configure.ac): Likewise.
53617         * modules/gc-md4 (configure.ac): Likewise.
53618         * modules/gc-md5 (configure.ac): Likewise.
53619         * modules/gc-random (configure.ac): Likewise.
53620         * modules/gc-rijndael (configure.ac): Likewise.
53621         * modules/gc-sha1 (configure.ac): Likewise.
53622
53623 2007-01-08  Bruno Haible  <bruno@clisp.org>
53624
53625         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53626         macro definition.
53627         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53628         definition.
53629         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53630         definition.
53631         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53632         * modules/fcntl-safer (configure.ac): Likewise.
53633         * modules/fopen-safer (configure.ac): Likewise.
53634         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53635         GNULIB_FWRITEERROR macro definition.
53636
53637 2007-01-08  Bruno Haible  <bruno@clisp.org>
53638
53639         * m4/gnulib-common.m4: New file.
53640         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53641         (func_get_filelist): Add m4/gnulib-common.m4.
53642
53643 2007-01-08  Bruno Haible  <bruno@clisp.org>
53644
53645         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53646         command.
53647
53648 2007-01-08  Jim Meyering  <jim@meyering.net>
53649
53650         Use a more robust test for a "can't happen" condition.
53651         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53652         narrowed the st_size value.  Presuming the "can't happen" condition
53653         is true, that narrowing could conceivably convert an invalid st_size
53654         value into a valid one.  Instead, use a change based on Matthew
53655         Woehlke's original patch.
53656
53657         Slight readability improvement: use an assert-like macro
53658         in place of literal "abort ()" uses.
53659         * lib/fts.c (fts_assert): Define.
53660         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53661         Use this macro instead of a bare 'abort'.
53662
53663 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53664
53665         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53666         simply work around them.
53667         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53668         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53669         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53670         declaring.
53671         Don't bother to define as macros, since the standard doesn't require it.
53672         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53673         longer worry about IRIX 5.3.
53674         (HAVE_WCTYPE_CTMP_BUG): Remove.
53675
53676 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53679         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53680         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53681         Problems reported by Georg Schwarz for IRIX 5.3.
53682
53683         * gnulib-tool (autoconf_minversion): Take the maximum version number
53684         found, not the minimum.  Problem reported by James Youngman.
53685
53686 2007-01-03  Karl Berry  <karl@gnu.org>
53687
53688         * doc/error.texi: new file, explaining interaction with progname.
53689         * doc/gnulib.texi: include it.  Update copyright.
53690
53691 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53692
53693         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53694         AC_CANONICAL_HOST, to improve autobuild outputs.
53695
53696 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53697             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53698
53699         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53700         sockets, server sockets, and other file descriptors.  Count errors
53701         to compute the return value.  Reorder the code a bit to be easier
53702         to follow.  Don't set event bits that were not requested (except
53703         POLLERR and POLLHUP).
53704
53705 2007-01-01  Bruno Haible  <bruno@clisp.org>
53706
53707         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53708
53709 2007-01-03  Jim Meyering  <jim@meyering.net>
53710
53711         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53712
53713 2007-01-02  Bruno Haible  <bruno@clisp.org>
53714
53715         * modules/settime (Include): Require timespec.h.
53716         * modules/nanosleep (Include): Likewise.
53717
53718 2007-01-01  Bruno Haible  <bruno@clisp.org>
53719
53720         * gnulib-tool (func_emit_copyright_notice): Bump year.
53721         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53722
53723 2007-01-01  Bruno Haible  <bruno@clisp.org>
53724
53725         Improve support for OpenBSD.
53726         * build-aux/config.rpath (libname_spec): Export.
53727         (library_names_spec): New variable. Export.
53728         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53729         library_names_spec from the config.rpath output. Locate shared library
53730         through the name pattern in library_names_spec.
53731
53732 2007-01-01  Eric Blake  <ebb9@byu.net>
53733
53734         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53735
53736 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53737
53738         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53739         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53740         assume the C locale, and avoid an "eval" that could cause trouble.
53741         Problem with SORT reported by Bob Proulx.
53742
53743         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53744         Define.  Trivial patch from Henning Nielsen Lund, originally
53745         sent to bug-grep@gnu.org today.
53746
53747 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53750         struct stat.  Problem reported by Henning Nielsen Lund.
53751         * lib/acl.c: Include acl.h first, to check interface.  Don't
53752         bother to include sys/types.h and sys/stat.h again.
53753
53754 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         Import the following change from libc; problem reported by
53757         Sven Verdoolaege.
53758
53759         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53760
53761         [BZ #1373]
53762         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53763
53764 2006-12-28  Jim Meyering  <jim@meyering.net>
53765
53766         * build-aux/announce-gen: Do not assume that the package
53767         builds any of tar.gz, tar.bz2, and .xdelta files.
53768         Suggestion from Simon Josefsson.
53769
53770 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53771
53772         * modules/announce-gen: New file.
53773
53774 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53775
53776         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53777         handles its gotchas now.
53778         * lib/mbswidth.c: Likewise.
53779         * lib/wcwidth.h: Likewise.
53780         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53781         and iswcntrl; the wctype module does this stuff now.
53782         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53784         * modules/mbchar (Depends-on): Add wctype.
53785         * modules/mbswidth (Depends-on): Likewise.
53786         * modules/wcwidth (Depends-on): Likewise.
53787
53788 2006-12-27  Eric Blake  <ebb9@byu.net>
53789
53790         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53791         module uses more than what <wctype.h> is required to provide.
53792
53793 2006-12-26  Eric Blake  <ebb9@byu.net>
53794
53795         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53796
53797 2006-12-26  Eric Blake  <ebb9@byu.net>
53798
53799         * modules/absolute-header: New module.
53800         * modules/fcntl (Depends-on): Depend on it.
53801         * modules/inttypes (Depends-on): Likewise.
53802         * modules/stdint (Depends-on): Likewise.
53803         * modules/sys_stat (Depends-on): Likewise.
53804         * modules/wctype (Depends-on): Likewise.
53805         * MODULES.html.sh (Support for building libraries and
53806         executables): Document it.
53807
53808 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53809
53810         * gnulib-tool (SED): Remove, undoing previous change.
53811         The problem was that it broke coreutils on Solaris, because
53812         "sed --posix" leaked into a makefile.
53813         (sed): New alias, if 'alias' and GNU sed.
53814
53815 2006-12-24  Jim Meyering  <jim@meyering.net>
53816
53817         Work around an fchownat bug in glibc-2.4:
53818         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53819         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53820         in spite of the -P option.
53821         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53822         New macros.
53823         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53824         * modules/openat (Files): Add lib/fchownat.c.
53825         * lib/openat.c (fchownat): Don't define here.  Move to...
53826         * lib/fchownat.c: ...this new file.
53827
53828 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53829
53830         Fix bug reported by Bruno Haible in
53831         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53832         where quotearg.c didn't compile on Mac OS X 10.2 because it
53833         lacks <wchar.h> and wint_t.
53834         * lib/wctype_.h (__wctype_wint_t): New type.
53835         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53836         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53837         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53838         Arg is now of type __wctype_wint_t, not wint_t.
53839         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53840         substitute HAVE_WINT_T.
53841         * modules/wctype (Files): Add m4/wint_t.m4.
53842         (wctype.h): Substitute HAVE_WINT_T.
53843
53844 2006-12-23  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53847
53848 2006-12-23  Bruno Haible  <bruno@clisp.org>
53849
53850         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53851         S_ISLNK.
53852         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53853         mingw.
53854
53855 2006-12-22  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/copy-file.c: Include acl.h.
53858         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53859         Close the file descriptors only after being done with copy_acl.
53860         * modules/copy-file (Depends-on): Add acl.
53861
53862 2006-12-22  Bruno Haible  <bruno@clisp.org>
53863
53864         * gnulib-tool (SED): New variable.
53865         Use $SED instead of sed everywhere.
53866
53867 2006-12-22  Bruno Haible  <bruno@clisp.org>
53868
53869         * modules/no-c++: New file.
53870         * m4/no-c++.m4: New file.
53871         * MODULES.html.sh (Support for building libraries and executables):
53872         Add no-c++.
53873
53874 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53875
53876         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53877         Include <limits.h>, and use its INT_MAX to rewrite the
53878         j loop so that it does not overflow 'int'.  Problem reported by
53879         Ralf Wildenhues in
53880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53881         Play it safe by shifting left by 1 rather than multiplying by 2,
53882         as GCC is less likely to optimize this away when the value
53883         is signed (when it assumes overflow leads to undefined behavior).
53884         Also, don't assume time_t uses two's complement.
53885
53886 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53887
53888         * MODULES.html.sh: New module wctype.
53889         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53890         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53891         <wctype.h>, since the new wctype module should fix this.
53892         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53893         the wctype module should arrange for it.
53894         * lib/regex_internal.h: Likewise.
53895         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53896         since the wctype module should handle this now.
53897         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53898         * modules/fnmatch (Depends-on): Add wctype.
53899         * modules/quotearg (Depends-on): Likewise.
53900         * modules/regex (Depends-on): Likewise.
53901
53902 2006-12-19  Bruno Haible  <bruno@clisp.org>
53903
53904         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53905         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53906
53907 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53908
53909         * modules/savewd (Depends-on): Fix dependency on fcntl.
53910
53911 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53912
53913         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53914         conforms to C99, rather than relying on the user's environment
53915         setting of STDINT_H.
53916
53917 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53918         and Eric Blake  <ebb9@byu.net>
53919
53920         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53921         This is more consistent with the other defines here.
53922         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53923         Port to z/OS.  Problem reported by Paul Gilmartin.
53924         Change local vars to use gl_ prefix rather than ac_.
53925         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53926         with other defines.
53927         * modules/double-slash-root: New module.
53928         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53929         (Depends-on): Add double-slash-root.
53930         * MODULES.html.sh (File system functions): Mention new module.
53931
53932 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53933
53934         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53935         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53936         This is for the benefit of gzip, which doesn't do i18n.
53937
53938 2006-12-12  Jim Meyering  <jim@meyering.net>
53939
53940         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53941         Reported by Andreas Schwab <schwab@suse.de>.
53942
53943 2006-12-12  Bruno Haible  <bruno@clisp.org>
53944
53945         Merge these changes.
53946         2006-09-05  Bruno Haible  <bruno@clisp.org>
53947         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53948         iconv_alloc succeeded.
53949         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53950         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53951         test for " && dest " at the end - dest is always != NULL there. Call
53952         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53953         with 2xNULL arguments, also to flush the state storage. Handle the
53954         IRIX iconv behaviour. Realloc the final result, to throw away unused
53955         memory.
53956
53957 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53958
53959         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53960         and fchmodat unconditionally, since glibc 2.4 has them.
53961         Problem reported by Arkadiusz Miskiewicz.
53962
53963 2006-12-10  Bruno Haible  <bruno@clisp.org>
53964
53965         * gnulib-tool (func_import): Show the include files only for those
53966         modules that are copied and specified.
53967         Reported by Karl Berry.
53968
53969 2006-12-08  Jim Meyering  <jim@meyering.net>
53970
53971         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53972         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53973
53974         * build-aux/announce-gen: Add two new options, both optional:
53975         --bootstrap-tools=TOOL_LIST
53976               a comma-separated list of tools, e.g.,
53977               autoconf,automake,bison,gnulib
53978         --gnulib-snapshot-date=DATE
53979               if gnulib is in the bootstrap tool list,
53980               then report this as the snapshot date.
53981               If not specified, use the current date/time.
53982               If you specify a date here, be sure it's UTC.
53983
53984 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53985
53986         * tests/test-argp-2.sh: Fix test to match actual output.
53987         (func_compare): Fix sed script to be portable.
53988
53989 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53990
53991         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53992         workaround for this case.  It is not autoconfigured now; offhand
53993         it's hard to see how to autoconfigure it.
53994
53995 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53996
53997         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53998         a directory that is about to be chowned.  Such a directory's
53999         initial file permissions should permit the owner only and this
54000         should not be changed until after the chown, since the group and
54001         other bits would be incorrect if they granted permission before
54002         the chown.
54003
54004         Fix porting problem for iswctype reported by Georg Schwarz in:
54005         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54006         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54007         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54008         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54009         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54010
54011 2006-12-03  Jim Meyering  <jim@meyering.net>
54012
54013         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54014         p->fts_statp may not yet be defined.
54015         (fts_read): Instead, set it in the caller, once p->fts_statp is
54016         sure to be defined, and corresponds to a top-level directory.
54017         This bug made du -x fail.  Here's the coreutils test case:
54018         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54019         Reported by Mike Frysinger.
54020
54021 2006-12-01  Jim Meyering  <jim@meyering.net>
54022
54023         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54024         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54025         Reported by Simon Josefsson.
54026
54027 2006-11-30  Jim Meyering  <jim@meyering.net>
54028
54029         * m4/warning.m4: Use the all-permissive copyright notice
54030         recommended by RMS (rather than LGPL).
54031         * m4/vararrays.m4: Likewise.
54032         * m4/flexmember.m4: Likewise.
54033
54034 2006-11-29  Bruno Haible  <bruno@clisp.org>
54035
54036         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54037         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54038         using +=.
54039         Reported by Simon Josefsson <simon@josefsson.org>.
54040
54041 2006-11-28  James Youngman <jay@gnu.org>
54042
54043         * README: Advise users that they might find the bug-gnulib@gnu.org
54044         and autotools-announce@gnu.org mailing lists useful.
54045
54046 2006-11-28  Bruno Haible  <bruno@clisp.org>
54047
54048         * m4/ptrdiff_max.m4: Remove file.
54049
54050 2006-11-21  Bruno Haible  <bruno@clisp.org>
54051
54052         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54053         _AC_COMPUTE_INT.
54054         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54055         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54056         _AC_COMPUTE_INT.
54057         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54058         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54059         _AC_COMPUTE_INT.
54060         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54061
54062 2006-11-28  Jim Meyering  <jim@meyering.net>
54063
54064         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54065         warning from "gcc -Wshadow" about shadowing the builtin.
54066
54067 2006-11-27  Bruno Haible  <bruno@clisp.org>
54068
54069         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54070         _AC_COMPUTE_INT.
54071         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54072
54073 2006-11-27  Bruno Haible  <bruno@clisp.org>
54074             Paul Eggert  <eggert@cs.ucla.edu>
54075
54076         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54077
54078 2006-11-26  Bruno Haible  <bruno@clisp.org>
54079
54080         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54081         noinst_LTLIBRARIES.
54082
54083 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54084             Bruno Haible  <bruno@clisp.org>
54085
54086         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54087         if compiling with "gcc -ansi".
54088
54089 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54090
54091         Fix some incompatibilities with gcc -ansi -pedantic.
54092         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54093         if compiling pedantically with GCC, unless it's C99 or later.
54094         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54095         it mishandles gcc -ansi -pedantic as well.
54096         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54097         if gcc -pedantic.
54098         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54099         initializers for struct if -pedantic, unless it's C99 or later.
54100
54101 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54102
54103         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54104         Don't close an fd more than once. Identical atimes indicate
54105         success, not failure.
54106
54107 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54108
54109         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54110
54111 2006-11-23  Jim Meyering  <jim@meyering.net>
54112
54113         * build-aux/announce-gen: New file.  From coreutils.
54114
54115 2006-11-22  Jim Meyering  <jim@meyering.net>
54116
54117         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54118         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54119         (fts_read): Use a temporary to narrow the overused st_size member
54120         before using it in a switch statement.  Reported by Matthew Woehlke.
54121
54122         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54123         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54124
54125 2006-11-20  Bruno Haible  <bruno@clisp.org>
54126
54127         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54128         changequote instead of pairs of brackets.
54129         Reported by Andreas Schwab <schwab@suse.de>.
54130
54131 2006-11-21  Jim Meyering  <jim@meyering.net>
54132
54133         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54134         so as to remain compatible with older compilers.
54135         Patch from Michael Deutschmann.
54136
54137 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         * MODULES.html.sh (File system functions): Add openat.
54140
54141         * lib/openat.h (rpl_fstatat): New macro, if
54142         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54143         (fstatat): Define to rpl_fstatat under the same conditions,
54144         unless COMPILING_FSTATAT.
54145         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54146         seems to have the bug.
54147         * lib/fstatat.c: New file.
54148         * modules/openat (Files): Add it.
54149
54150 2006-11-20  Bruno Haible  <bruno@clisp.org>
54151
54152         * Makefile: New file.
54153
54154 2006-11-20  Jim Meyering  <jim@meyering.net>
54155
54156         The beginnings of syntax-related checks for gnulib.
54157         * lib/Makefile: New file.
54158         * lib/t-idcache: New script.  Ensure that the two halves of
54159         idcache.c stay in sync.
54160
54161         * lib/idcache.c: Adjust comments in user- and group- portions to
54162         be more accurate, and to be consistent with one another.
54163
54164 2006-11-20  Jim Meyering  <jim@meyering.net>
54165
54166         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54167         continue using the flexible array member (thus, this module performs
54168         half as many malloc calls), with the addition that...
54169         (getgroup, getuser): Consistently record a non-match via an empty
54170         "name" string, and map an empty string match to a NULL return value.
54171         * modules/idcache (Depends-on): Re-add flexmember.
54172
54173         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54174         (getuidbyname, getgroup, getgidbyname): Likewise.
54175
54176         Use cleaner syntax: NULL rather than 0.
54177         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54178
54179 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54180
54181         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54182         It mishandled the case where the group was missing.
54183         Problem reported by Greg Schafer.
54184         * modules/idcache: Likewise.
54185
54186 2006-11-18  Jim Meyering  <jim@meyering.net>
54187
54188         * check-module (%exempt_header): Add exception for some
54189         conditionally-included headers.
54190
54191         * modules/i-ring (Depends-on): Add verify.
54192         (License): Change to LGPL.
54193
54194 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54195
54196         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54197         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54198         and inttostr.h.  Use snprintf rather than uinttostr, so that
54199         LGPLed code doesn't depend on GPLed.
54200
54201 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54202
54203         * modules/inline (License): Change from GPL to LGPL.
54204
54205 2006-11-17  Jim Meyering  <jim@meyering.net>
54206
54207         * modules/d-type (License): Switch to LGPL.
54208
54209 2006-11-15  Bruno Haible  <bruno@clisp.org>
54210
54211         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54212
54213 2006-11-15  Eric Blake  <ebb9@byu.net>
54214
54215         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54216         the module dependency.
54217
54218 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54219             Bruno Haible  <bruno@clisp.org>
54220
54221         * gnulib-tool (func_create_testdir): Add license consistency check.
54222
54223 2006-11-15  Eric Blake  <ebb9@byu.net>
54224
54225         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54226         random "(cached)" in configure output.
54227
54228 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54229
54230         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54231         test for conforming inttypes.h is both announced and cached.
54232
54233         * MODULES.html.sh (seen_modules, seen_files): New variables.
54234         (func_module): Rewrite to use a few less gnulib-tool and sed
54235         invocations.  Avoid a couple of quadratic algorithms for ...
54236         (missed_modules, missed_files): ... these, with ...
54237         (func_append, func_tmpdir): ... these new functions, from
54238         gnulib-tool.  Analogously, install traps for cleanup.
54239
54240         * tests/test-gc.c (main): Remove unused variables.
54241         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54242
54243 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * modules/inttostr (License): Change to LGPL.
54246
54247 2006-11-14  Eric Blake  <ebb9@byu.net>
54248
54249         * modules/tempname (License): Change to LGPL.
54250
54251 2006-11-14  Eric Blake  <ebb9@byu.net>
54252
54253         * doc/functions.texi (Function Portability): *printf functions on
54254         Cygwin now understand all POSIX size specifiers.
54255
54256 2006-11-14  Bruno Haible  <bruno@clisp.org>
54257
54258         * modules/c-ctype (License): Change to LGPL.
54259
54260 2006-11-12  Bruno Haible  <bruno@clisp.org>
54261
54262         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54263         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54264         for GNOME libraries, for which the include files are installed in
54265         subdirectories of $prefix/include.
54266
54267 2006-11-12  Bruno Haible  <bruno@clisp.org>
54268
54269         * m4/lib-link.m4: Require at least autoconf-2.54.
54270         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54271         name to underscores for the --with option.
54272
54273 2006-11-13  Bruno Haible  <bruno@clisp.org>
54274
54275         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54276         the tests directory.
54277         Reported by Ralf Wildenhues.
54278
54279 2006-11-13  Bruno Haible  <bruno@clisp.org>
54280
54281         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54282         (func_emit_initmacro_end): Undo the override here.
54283         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54284         Works around the famous automake error in coreutils.
54285
54286 2006-11-13  Eric Blake  <ebb9@byu.net>
54287
54288         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54289         element, not its node.
54290
54291 2006-11-12  Bruno Haible  <bruno@clisp.org>
54292
54293         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54294         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54295
54296 2006-11-12  Bruno Haible  <bruno@clisp.org>
54297
54298         * gnulib-tool: New option --local-symlink.
54299         (func_usage): Document it.
54300         (lsymbolic): New variable.
54301         (func_import, func_create_testdir): If --symlink was not specified,
54302         test whether --local-symlink was specified and the file comes from
54303         the local_gnulib_dir.
54304
54305 2006-11-12  Bruno Haible  <bruno@clisp.org>
54306
54307         * gnulib-tool (func_ln): New function.
54308         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54309
54310 2006-11-12  Bruno Haible  <bruno@clisp.org>
54311
54312         Finish support for source files in subdirectories.
54313         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54314         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54315         AUTOMAKE_OPTIONS.
54316         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54317
54318 2006-11-12  Bruno Haible  <bruno@clisp.org>
54319
54320         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54321         EXTRA_lib_SOURCES augmentation.
54322         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54323
54324 2006-11-12  Jim Meyering  <jim@meyering.net>
54325
54326         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54327         file descriptors.  This also averts a failure on systems with
54328         native openat support when a traversed directory lacks "x" access.
54329         * lib/fts_.h: Include "i-ring.h"
54330         (struct FTS) [fts_fd_ring]: New member.
54331         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54332         (FCHDIR): Add parentheses.
54333         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54334         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54335         When descending, rather than simply closing the previous
54336         fts_cwd_fd value, push that file descriptor onto the ring.
54337         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54338         (fts_open): Initialize the new fd_ring member.
54339         (fts_close): Clear the ring.
54340         (fts_safe_changedir): When possible, use our new fd_ring to skip
54341         the diropen and fstat and dev/ino comparison that would normally
54342         accompany a virtual `chdir ("..")'.
54343
54344         * modules/fts (Depends-on): Add i-ring.
54345         * modules/i-ring: New module.
54346         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54347         * m4/i-ring.m4: New file.
54348
54349 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54350
54351         * gnulib-tool (func_create_testdir): Fix replacement of
54352         `build-aux' in configure.ac.  Run autotools in gltests
54353         subdirectory.
54354         (func_create_testdir, func_create_megatestdir, test): There is
54355         no need for '--force' in most autotool invocations in a new
54356         tree.  Actually fail the whole test if any of the tools, or the
54357         configure or make stages fail.
54358
54359         Sync from Automake.
54360         * build-aux/gnupload: Revert last change.  Add pointer to upload
54361         instructions of the GNU Maintenance Instructions.
54362         Suggestion by Karl Berry.
54363
54364 2006-11-10  Jim Meyering  <jim@meyering.net>
54365
54366         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54367
54368 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54369
54370         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54371         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54372         (bind_textdomain_codeset) [! ENABLE_NLS]:
54373         Evaluate all the arguments.  That way, callers get compatible behavior
54374         if the arguments have side effects.  Also, it avoids some GCC
54375         diagnostics in some cases; Joel E. Denny reported problems when Bison
54376         was configured with --enable-gcc-warnigs.
54377
54378 2006-11-10  Jim Meyering  <jim@meyering.net>
54379
54380         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54381         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54382         account.
54383
54384 2006-11-10  Jim Meyering  <jim@meyering.net>
54385
54386         * modules/inline: New file/module.
54387         * modules/xalloc (Files): Remove m4/inline.m4.
54388         (Depends-on): Add inline, instead.
54389         * modules/oset: Likewise.
54390         * modules/list: Likewise.
54391
54392 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54393
54394         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54395         Problem reported by Matthew Woehlke.
54396
54397 2006-11-09  Bruno Haible  <bruno@clisp.org>
54398
54399         * lib/tempname.c (gen_tempname): Remove variant that invokes
54400         __gen_tempname.
54401         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54402         __gen_tempname.
54403
54404 2006-11-08  Bruno Haible  <bruno@clisp.org>
54405
54406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54407         to 'yes' instead of 'cross-compiling'.
54408
54409 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54410
54411         * lib/quotearg.h (quotearg_free): New decl.
54412         * lib/quotearg.c (quotearg_free): New function.
54413         (slot0, nslots, slotvec0, slotvec):
54414         Now file-scope so that quotearg_free can get at them.
54415
54416 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54417
54418         Sync from Automake.
54419         * build-aux/gnupload: Add missing 'gnu' to example URL.
54420         Report by Karl Berry.
54421
54422 2006-11-08  Bruno Haible  <bruno@clisp.org>
54423
54424         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54425         Suggested by Paul Eggert.
54426
54427 2006-11-08  Jim Meyering  <jim@meyering.net>
54428
54429         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54430         It's already included if !_LIBC.
54431         (fts_safe_changedir): Add a comment.
54432
54433 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54436         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54437         Matthew Woehlke.
54438
54439         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54440         definitions up, to avoid colliding with change below.
54441         (static_inline) [HAVE_INLINE]: New macro.
54442         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54443         Provide extern decls when !HAVE_INLINE.  Do not define unless
54444         static_inline is defined, either by us or by xmalloc.c.  Use
54445         static_inline rather than static inline.
54446         (XCALLOC): Optimize sizeof(T) = 1 case.
54447         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54448
54449 2006-11-07  Bruno Haible  <bruno@clisp.org>
54450
54451         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54452         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54453         AC_C_INLINE.
54454         * modules/xalloc (Files): Add m4/inline.m4.
54455
54456 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54457
54458         * README: Fix typo.
54459         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54460         (Miscellanous Notes): ...from this.
54461
54462 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54463
54464         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54465         Mention that offsetof should be used instead of sizeof.
54466         From Bruno Haible.
54467
54468 2006-11-07  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54471
54472 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54473
54474         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54475         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54476         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54477         (gl_tree_add_before, gl_tree_add_after):
54478         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54479         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54480         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54481         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54482         (gl_linked_add_after, gl_linked_add_at): Likewise.
54483         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54484         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54485         (gl_tree_add_before, gl_tree_add_after): Likewise.
54486         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54487         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54488         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54489
54490 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54491
54492         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54493
54494 2006-11-06  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/inline.m4: New file.
54497         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54498         * modules/list (Files): Add m4/inline.m4.
54499         * modules/oset (Files): Likewise.
54500
54501 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         * lib/idcache.c: Include <stddef.h>, for offsetof.
54504         (struct userid.name): Change from char * to a flexible array member.
54505         All uses changed.
54506         * modules/idcache (Depends-on): Add flexmember.
54507
54508         * MODULES.html.sh (Core language properties): New module flexmember.
54509         * modules/flexmember, m4/flexmember.m4: New files.
54510
54511         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54512         inline functions that are identical with the old xnmalloc_inline,
54513         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54514         that we can avoid some unnecessary integer multiplications and
54515         divisions in the common case where the element size is known at
54516         compile time.
54517         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54518         needed.
54519         (xnboundedmalloc): Remove.
54520         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54521         arguments, for consistency with rest of this header.
54522         (xcharalloc): Rewrite using XNMALLOC.
54523         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54524         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54525         versions have been moved to lib/xalloc.h and renamed to be the
54526         non-*_inline versions.
54527         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54528         and xnrealloc functions, since those functions are now inline and
54529         now call us.
54530         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54531         renaming described above.
54532         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54533         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54534         captures the dependency in AC_C_INLINE.
54535
54536         New module canonicalize-lgpl, proposed by Charles Wilson in
54537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54538         with a few small changes afterwards.
54539         * MODULES.html.sh (File system functions): New module
54540         canonicalize-lgpl.
54541         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54542         and canonicalize_file_name.
54543         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54544         * modules/canonicalize-lgpl: New files.
54545
54546 2006-11-05  Bruno Haible  <bruno@clisp.org>
54547
54548         * gnulib-tool (func_import, func_create_testdir): Create directories
54549         also for files in subdirectories of lib/.
54550
54551 2006-11-05  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54554         ANSI C compliant.
54555
54556 2006-11-03  Bruno Haible  <bruno@clisp.org>
54557
54558         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54559         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54560         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54561         (xnboundedmalloc): New inline function.
54562         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54563         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54564         xmalloc.
54565         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54566         xmalloc.
54567         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54568         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54569         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54570         xmalloc.
54571         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54572         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54573         xmalloc.
54574         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54575         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54576         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54577         xmalloc.
54578         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54579         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54580         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54581         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54582         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54583         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54584         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54585
54586 2006-11-03  Bruno Haible  <bruno@clisp.org>
54587
54588         * lib/c-ctype.h [C++]: Define functions without name mangling.
54589         * lib/fwriteerror.h [C++]: Likewise.
54590         * lib/gcd.h [C++]: Likewise.
54591         * lib/linebreak.h [C++]: Likewise.
54592
54593 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54594
54595         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54596         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54597         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54598         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54599         Check for functions and headers just once.
54600         Check for declaration of canonicalize_file_name.
54601         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54602
54603 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54604
54605         * gnulib-tool (func_import): Fix typo in actioncmd.
54606
54607 2006-11-02  Bruno Haible  <bruno@clisp.org>
54608
54609         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54610         newline sequence in the Makefile.am snippet as a space, like "make"
54611         does.
54612         Reported by Roger Persson <perrog@gmail.com>.
54613
54614 2006-11-01  Bruno Haible  <bruno@clisp.org>
54615
54616         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54617         already declared in <string.h>.
54618         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54619
54620 2006-11-01  Bruno Haible  <bruno@clisp.org>
54621
54622         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54623         * lib/strcase.h: Include <string.h>.
54624         (strcasecmp): Define to rpl_strcasecmp here.
54625
54626 2006-11-01  Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54629
54630 2006-11-01  Eric Blake  <ebb9@byu.net>
54631
54632         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54633
54634         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54635
54636 2006-10-29  Bruno Haible  <bruno@clisp.org>
54637
54638         Make it compile in C++ mode.
54639         * lib/full-write.c (full_rw): Add a cast.
54640
54641 2006-11-01  Bruno Haible  <bruno@clisp.org>
54642
54643         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54644         be POSIX compliant.
54645         Reported by Roger Persson <perrog@gmail.com>.
54646
54647 2006-11-01  Eric Blake  <ebb9@byu.net>
54648
54649         * lib/getopt_.h: Fix comments.
54650
54651 2006-10-31  Eric Blake  <ebb9@byu.net>
54652
54653         * modules/tmpdir (Depends-on): Add sys_stat.
54654         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54655         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54656         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54657         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54658         tempname.
54659
54660 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         Avoid some C++ diagnostics reported by Bruno Haible.
54663         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54664         xmalloc.
54665         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54666         (struct slotvec): Move to top level.
54667         (quotearg_n_options): Rewrite to avoid xmalloc.
54668         * lib/xalloc.h (xcharalloc): New function.
54669         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54670         [defined __cplusplus]: Add function template that provides result
54671         type propagation.  This part of the change is from Bruno Haible.
54672
54673 2006-10-29  Bruno Haible  <bruno@clisp.org>
54674
54675         Make it compile in C++ mode.
54676         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54677         * lib/strnlen1.c (strnlen1): Cast memchr result.
54678         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54679         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54680         (create_temp_dir): Rename local variable 'template'.
54681         (compile_csharp_using_sscli): Add cast.
54682         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54683         * lib/findprog.c (find_in_path): Likewise.
54684         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54685         * lib/wait-process.c (register_slave_subprocess): Likewise.
54686
54687 2006-10-22  Bruno Haible  <bruno@clisp.org>
54688
54689         * modules/tsearch: New file.
54690         * lib/tsearch.h: New file.
54691         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54692         * m4/tsearch.m4: New file.
54693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54694
54695 2006-10-29  Eric Blake  <ebb9@byu.net>
54696
54697         * lib/arcfour.c: Assume config.h.
54698         * lib/arctwo.c: Likewise.
54699         * lib/base64.c: Likewise.
54700         * lib/check-version.c: Likewise.
54701         * lib/crc.c: Likewise.
54702         * lib/des.c: Likewise.
54703         * lib/gc-gnulib.c: Likewise.
54704         * lib/gc-libgcrypt.c: Likewise.
54705         * lib/gc-pbkdf2-sha1.c: Likewise.
54706         * lib/getaddrinfo.c: Likewise.
54707         * lib/getdelim.c: Likewise.
54708         * lib/getline.c: Likewise.
54709         * lib/hmac-md5.c: Likewise.
54710         * lib/hmac-sha1.c: Likewise.
54711         * lib/iconvme.c: Likewise.
54712         * lib/md2.c: Likewise.
54713         * lib/md4.c: Likewise.
54714         * lib/memxor.c: Likewise.
54715         * lib/read-file.c: Likewise.
54716         * lib/readline.c: Likewise.
54717         * lib/rijndael-alg-fst.c: Likewise.
54718         * lib/rijndael-api-fst.c: Likewise.
54719         * lib/xgetdomainname.c: Likewise.
54720
54721 2006-10-28  Eric Blake  <ebb9@byu.net>
54722
54723         * lib/xstrndup.c: Assume config.h.
54724
54725 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54726
54727         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54728         stat-macros.h is now for our own macros, whereas stat_h is for
54729         macros in the <sys/stat.h> name space.
54730         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54731         (STAT_MACROS_H): Remove.
54732         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54733         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54734         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54735         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54736         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54737         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54738         Move these macros to ...
54739         * lib/stat_.h: here.  Don't include stat-macros.h.
54740         * lib/canonicalize.c: Don't include stat-macros.h.
54741         * lib/chown.c: Likewise.
54742         * lib/euidaccess.c: Likewise.
54743         * lib/file-type.c: Likewise.
54744         * lib/filemode.c: Likewise.
54745         * lib/glob.c: Likewise.
54746         * lib/isapipe.c: Likewise.
54747         * lib/lchown.c: Likewise.
54748         * lib/lstat.c: Likewise.
54749         * lib/mkdir-p.c: Likewise.
54750         * lib/rmdir.c: Likewise.
54751         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54753         unless mkdir isn't declared, to speed up 'configure'.
54754         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54755         would define all the S_* symbols.
54756         * modules/canonicalize (Depends-on):
54757         Depend on sys_stat, not stat-macros.
54758         * modules/chown: Likewise.
54759         * modules/euidaccess: Likewise.
54760         * modules/filemode: Likewise.
54761         * modules/file-type: Likewise.
54762         * modules/glob: Likewise.
54763         * modules/isapipe: Likewise.
54764         * modules/lchown: Likewise.
54765         * modules/lstat: Likewise.
54766         * modules/mkancesdirs: Likewise.
54767         * modules/rmdir: Likewise.
54768         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54769         * modules/modechange: Likewise.
54770         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54771         (configure.ac): Remove gl_STAT_MACROS.
54772         * modules/sys_stat (Depends-on): Remove stat-macros.
54773
54774 2006-10-27  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/signed.m4: Remove file.
54777         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54778         invocation.
54779         * modules/vasnprintf (Files): Remove m4/signed.m4.
54780
54781 2006-10-27  Bruno Haible  <bruno@clisp.org>
54782
54783         Update to GNU gettext 0.16.
54784         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54785         m4/inttypes-h.m4, m4/signed.m4.
54786         * m4/gettext.m4: Update to GNU gettext 0.16.
54787         * m4/intl.m4: New file, from GNU gettext.
54788         * m4/intldir.m4: New file, from GNU gettext.
54789         * config/srclist.txt: Update
54790
54791 2006-10-27  Eric Blake  <ebb9@byu.net>
54792
54793         * MODULES.html.sh: Document tempname.
54794         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54795         dependencies.
54796         (Files): Move lib/tempname.c...
54797         * modules/tempname: ...to this new module.
54798         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54799         (gl_PREREQ_TEMPNAME): Move...
54800         * m4/tempname.m4: ...to this new file.
54801         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54802         * modules/sys_stat (Depends-on): Add stat-macros.
54803         * lib/stat_.h (includes): Pick up stat macros.
54804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54805         if stat macros are broken.
54806         * lib/tempname.c (includes): No need to include "stat-macros.h".
54807         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54808         (direxists, __path_search) [!_LIBC]: Don't compile these in
54809         gnulib; the tmpdir module covers that.
54810         * lib/tempname.h: New file.
54811
54812 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * COPYING: Explain how gnulib-tool converts licence headers.
54815         Almost all wording by Eric Blake.
54816
54817 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         * lib/mbchar.h (is_basic_table): Make read-only.
54820         * lib/mbchar.c (is_basic_table): Likewise.
54821         Reported by John Darrington.
54822
54823 2006-10-25  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/progname.h (set_program_name): Undefine before defining.
54826
54827 2006-10-25  Bruno Haible  <bruno@clisp.org>
54828
54829         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54830         false for non-gcc C++ compilers.
54831         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54832
54833 2006-10-24  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54836         iconv implementations like Irix iconv.
54837
54838 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54839
54840         * modules/vararrays: New file.
54841         * m4/vararrays.m4: New file, taken from diffutils.
54842         * MODULES.html.sh: New module vararrays.
54843
54844 2006-10-24  Karl Berry  <karl@gnu.org>
54845
54846         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54847         Don't call GNU Unix.
54848
54849 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54850
54851         * users.txt: Add Libtool.
54852
54853         Sync from Libtool:
54854
54855         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54858         to gnulib's policy of including config.h unconditionally.
54859
54860 2006-10-24  Bruno Haible  <bruno@clisp.org>
54861
54862         * modules/wcwidth (Files): Add m4/wint_t.m4.
54863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54864         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54865
54866 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54869         to pacify GCC with some -W flags enabled.  Problem reported by
54870         Bruno Haible.
54871
54872 2006-10-24  Jim Meyering  <jim@meyering.net>
54873
54874         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54875         Reported by Karl Berry.
54876
54877 2006-10-23  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54880
54881 2006-10-24  Bruno Haible  <bruno@clisp.org>
54882
54883         * lib/gl_list.h: Use C comment style, not C++ comment style.
54884
54885 2006-10-23  Eric Blake  <ebb9@byu.net>
54886
54887         * lib/getaddrinfo.c (includes): Add missing include.
54888
54889 2006-10-23  Bruno Haible  <bruno@clisp.org>
54890             Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         Ability to rename obstack_free.
54893         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54894         obstack_free.
54895         (obstack_free): Invoke the __obstack_free macro.
54896         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54897
54898 2006-10-23  Bruno Haible  <bruno@clisp.org>
54899             Paul Eggert  <eggert@cs.ucla.edu>
54900
54901         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54902         __argc, __argv from the declaration. (They are defined as macros on
54903         mingw.)
54904
54905 2006-10-22  Bruno Haible  <bruno@clisp.org>
54906
54907         * doc/gnulib-intro.texi: New file.
54908         * doc/gnulib.texi: Include it.
54909
54910 2006-10-21  Bruno Haible  <bruno@clisp.org>
54911
54912         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54913         "Introduction", "Miscellanous Notes", "Particular Modules".
54914
54915 2006-10-21  Bruno Haible  <bruno@clisp.org>
54916
54917         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54918         Change mostlyclean-local rule to avoid sh syntax error from bash
54919         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54920
54921 2006-10-23  Jim Meyering  <jim@meyering.net>
54922
54923         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54924         in place of snprintf.
54925
54926         * modules/inttostr (Files): Add lib/uinttostr.c.
54927         * lib/uinttostr.c (inttostr): New file/function.
54928         * lib/inttostr.h (uinttostr): Declare.
54929         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54930         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54931         Add uinttostr.
54932         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54933
54934 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54935
54936         * lib/canonicalize.c (ELOOP): Define if not already defined.
54937         Problem reported by Bruno Haible in
54938         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54939
54940 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54943         Problem reported by Perry Smith and Ville Laurikari.
54944
54945         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54946         uses.
54947
54948 2006-10-19  Bruno Haible  <bruno@clisp.org>
54949
54950         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54951         for mingw.
54952
54953 2006-10-19  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54956         Needed for mingw.
54957
54958 2006-10-19  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54961
54962 2006-10-19  Bruno Haible  <bruno@clisp.org>
54963
54964         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54965         it.
54966
54967 2006-10-19  Bruno Haible  <bruno@clisp.org>
54968
54969         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54970         invocation.
54971
54972 2006-10-19  Bruno Haible  <bruno@clisp.org>
54973
54974         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54975         mountlist by default.
54976
54977 2006-10-16  Bruno Haible  <bruno@clisp.org>
54978
54979         * lib/c-strstr.c: Include c-strstr.h.
54980
54981 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54982
54983         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54984         in a slash.
54985
54986 2006-10-18  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/lock.h [C++]: Wrap definitions in extern "C".
54989
54990 2006-10-18  Bruno Haible  <bruno@clisp.org>
54991
54992         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54993         gl_LIBOBJS list.
54994
54995 2006-10-18  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54998
54999 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         * lib/xstrtol.h: Include gettext.h.
55002         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55003         Problem reported by Eric Blake.
55004         * modules/xstrtol (Depends-on): Add gettext-h.
55005
55006 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55007
55008         * lib/strftime.c (advance): New macro.
55009         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55010         incomplete type, so you can't add 0 to it.  Problem and patch
55011         reported by Eelco Dolstra for dietlibc.
55012
55013 2006-10-18  Jim Meyering  <jim@meyering.net>
55014
55015         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55016         type for a local, and rename it: s/up/user_proc/.
55017
55018 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55019
55020         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55021         READ_UTMP_USER_PROCESS.
55022         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55023
55024 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55025
55026         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55027         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55028
55029 2006-10-17  Eric Blake  <ebb9@byu.net>
55030
55031         * lib/sigprocmask.c (sigprocmask): Fix typo.
55032
55033         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55034
55035         * modules/clean-temp (Makefile.am): Don't add to make output...
55036         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55037         config.h.
55038
55039 2006-10-17  Bruno Haible  <bruno@clisp.org>
55040
55041         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55042         differently if DEFAULT_TEXT_DOMAIN is set.
55043
55044 2006-10-16  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/clean-temp.c: Include fwriteerror.h.
55047
55048 2006-10-16  Bruno Haible  <bruno@clisp.org>
55049
55050         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55051
55052 2006-10-16  Bruno Haible  <bruno@clisp.org>
55053
55054         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55055         * lib/sigprocmask.h: Include <sys/types.h>.
55056         (sigset_t): Use the system's definition if present.
55057
55058 2006-10-17  Eric Blake  <ebb9@byu.net>
55059
55060         * lib/xvasprintf.c (includes): Assume config.h.
55061         * lib/xasprintf.c (includes): Likewise.
55062
55063 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55064
55065         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55066         at least as wide as intmax_t.
55067
55068 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55069
55070         (Imported from Automake.)
55071         * build-aux/gnupload: Update to version 1.1 of directive file.
55072
55073 2006-10-16  Eric Blake  <ebb9@byu.net>
55074
55075         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55076         match Automake 1.10a.
55077
55078 2006-10-14  Bruno Haible  <bruno@clisp.org>
55079
55080         * modules/sigprocmask: New file.
55081         * lib/sigprocmask.h: New file.
55082         * lib/sigprocmask.c: New file.
55083         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55084         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55085         request sigprocmask.o.
55086         (gl_PREREQ_SIGPROCMASK): New macro.
55087         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55088         (Depends-on): Add sigprocmask.
55089         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55090         gt_SIGNALBLOCKING. Test for 'raise' only once.
55091         * lib/fatal-signal.c: Include sigprocmask.h.
55092         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55093         unblock_fatal_signals): Define always.
55094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55095         sigprocmask.
55096
55097 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55098
55099         Sync from Automake.
55100         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55101         which incorrectly sets the mode of an existing destination
55102         directory.  In some cases the unpatched install-sh could do the
55103         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55104         system.  We hope this is rare in practice, but it's clearly worth
55105         fixing.  Problem reported by Alex Unleashed in
55106         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55107         Also, don't bother to check for -m bugs unless we're using -m;
55108         suggested by Stepan Kasal.
55109
55110 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55111
55112         Sync from Automake.
55113         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55114         `-c' flag, so they appear at the same position as in %FASTDEP%
55115         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55116         which ignores unknown options only after the first non-option.
55117         Bug report against M4 by Nelson H. F. Beebe.
55118
55119 2006-10-13  Jim Meyering  <jim@meyering.net>
55120
55121         Fix a bug in yesterday's change.
55122         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55123         p->fts_statp->st_dev would be used uninitialized.
55124         Ensures that we always call fts_stat on the very first entry.
55125         Miklos Szeredi reported that find -xdev stopped working.
55126
55127 2006-10-12  Bruno Haible  <bruno@clisp.org>
55128
55129         * gnulib-tool (func_get_automake_snippet): Append an automatically
55130         computed EXTRA_DIST augmentation.
55131         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55132         * modules/alloca-opt (Makefile.am): Likewise.
55133         * modules/allocsa (Makefile.am): Likewise.
55134         * modules/arcfour (Makefile.am): Likewise.
55135         * modules/arctwo (Makefile.am): Likewise.
55136         * modules/argmatch (Makefile.am): Likewise.
55137         * modules/argz (Makefile.am): Likewise.
55138         * modules/atexit (Makefile.am): Likewise.
55139         * modules/backupfile (Makefile.am): Likewise.
55140         * modules/byteswap (Makefile.am): Likewise.
55141         * modules/c-strtod (Makefile.am): Likewise.
55142         * modules/c-strtold (Makefile.am): Likewise.
55143         * modules/calloc (Makefile.am): Likewise.
55144         * modules/canon-host (Makefile.am): Likewise.
55145         * modules/canonicalize (Makefile.am): Likewise.
55146         * modules/chdir-long (Makefile.am): Likewise.
55147         * modules/chdir-safer (Makefile.am): Likewise.
55148         * modules/check-version (Makefile.am): Likewise.
55149         * modules/chown (Makefile.am): Likewise.
55150         * modules/cloexec (Makefile.am): Likewise.
55151         * modules/close-stream (Makefile.am): Likewise.
55152         * modules/closeout (Makefile.am): Likewise.
55153         * modules/crc (Makefile.am): Likewise.
55154         * modules/csharpexec (Makefile.am): Likewise.
55155         * modules/cycle-check (Makefile.am): Likewise.
55156         * modules/des (Makefile.am): Likewise.
55157         * modules/dev-ino (Makefile.am): Likewise.
55158         * modules/dirfd (Makefile.am): Likewise.
55159         * modules/dirname (Makefile.am): Likewise.
55160         * modules/dup2 (Makefile.am): Likewise.
55161         * modules/eealloc (Makefile.am): Likewise.
55162         * modules/error (Makefile.am): Likewise.
55163         * modules/euidaccess (Makefile.am): Likewise.
55164         * modules/exclude (Makefile.am): Likewise.
55165         * modules/exitfail (Makefile.am): Likewise.
55166         * modules/fcntl-safer (Makefile.am): Likewise.
55167         * modules/fcntl (Makefile.am): Likewise.
55168         * modules/file-type (Makefile.am): Likewise.
55169         * modules/fileblocks (Makefile.am): Likewise.
55170         * modules/filemode (Makefile.am): Likewise.
55171         * modules/filenamecat (Makefile.am): Likewise.
55172         * modules/fnmatch (Makefile.am): Likewise.
55173         * modules/fopen-safer (Makefile.am): Likewise.
55174         * modules/fpending (Makefile.am): Likewise.
55175         * modules/fprintftime (Makefile.am): Likewise.
55176         * modules/free (Makefile.am): Likewise.
55177         * modules/fsusage (Makefile.am): Likewise.
55178         * modules/ftruncate (Makefile.am): Likewise.
55179         * modules/fts (Makefile.am): Likewise.
55180         * modules/gc-arcfour (Makefile.am): Likewise.
55181         * modules/gc-des (Makefile.am): Likewise.
55182         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55183         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55184         * modules/gc-md4 (Makefile.am): Likewise.
55185         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55186         * modules/gc-sha1 (Makefile.am): Likewise.
55187         * modules/gc (Makefile.am): Likewise.
55188         * modules/getaddrinfo (Makefile.am): Likewise.
55189         * modules/getcwd (Makefile.am): Likewise.
55190         * modules/getdelim (Makefile.am): Likewise.
55191         * modules/getdomainname (Makefile.am): Likewise.
55192         * modules/getgroups (Makefile.am): Likewise.
55193         * modules/gethostname (Makefile.am): Likewise.
55194         * modules/gethrxtime (Makefile.am): Likewise.
55195         * modules/getline (Makefile.am): Likewise.
55196         * modules/getloadavg (Makefile.am): Likewise.
55197         * modules/getlogin_r (Makefile.am): Likewise.
55198         * modules/getndelim2 (Makefile.am): Likewise.
55199         * modules/getopt (Makefile.am): Likewise.
55200         * modules/getpagesize (Makefile.am): Likewise.
55201         * modules/getpass-gnu (Makefile.am): Likewise.
55202         * modules/getpass (Makefile.am): Likewise.
55203         * modules/getsubopt (Makefile.am): Likewise.
55204         * modules/gettime (Makefile.am): Likewise.
55205         * modules/gettimeofday (Makefile.am): Likewise.
55206         * modules/getugroups (Makefile.am): Likewise.
55207         * modules/getusershell (Makefile.am): Likewise.
55208         * modules/glob (Makefile.am): Likewise.
55209         * modules/group-member (Makefile.am): Likewise.
55210         * modules/hard-locale (Makefile.am): Likewise.
55211         * modules/hash (Makefile.am): Likewise.
55212         * modules/hmac-md5 (Makefile.am): Likewise.
55213         * modules/hmac-sha1 (Makefile.am): Likewise.
55214         * modules/human (Makefile.am): Likewise.
55215         * modules/idcache (Makefile.am): Likewise.
55216         * modules/imaxabs (Makefile.am): Likewise.
55217         * modules/imaxdiv (Makefile.am): Likewise.
55218         * modules/inet_ntop (Makefile.am): Likewise.
55219         * modules/inet_pton (Makefile.am): Likewise.
55220         * modules/intprops (Makefile.am): Likewise.
55221         * modules/inttostr (Makefile.am): Likewise.
55222         * modules/inttypes (Makefile.am): Likewise.
55223         * modules/isapipe (Makefile.am): Likewise.
55224         * modules/javaversion (Makefile.am): Likewise.
55225         * modules/lchmod (Makefile.am): Likewise.
55226         * modules/lchown (Makefile.am): Likewise.
55227         * modules/localcharset (Makefile.am): Likewise.
55228         * modules/long-options (Makefile.am): Likewise.
55229         * modules/lstat (Makefile.am): Likewise.
55230         * modules/malloc (Makefile.am): Likewise.
55231         * modules/mathl (Makefile.am): Likewise.
55232         * modules/mbchar (Makefile.am): Likewise.
55233         * modules/md2 (Makefile.am): Likewise.
55234         * modules/md4 (Makefile.am): Likewise.
55235         * modules/md5 (Makefile.am): Likewise.
55236         * modules/memcasecmp (Makefile.am): Likewise.
55237         * modules/memchr (Makefile.am): Likewise.
55238         * modules/memcmp (Makefile.am): Likewise.
55239         * modules/memcoll (Makefile.am): Likewise.
55240         * modules/memcpy (Makefile.am): Likewise.
55241         * modules/memmem (Makefile.am): Likewise.
55242         * modules/memmove (Makefile.am): Likewise.
55243         * modules/mempcpy (Makefile.am): Likewise.
55244         * modules/memrchr (Makefile.am): Likewise.
55245         * modules/memset (Makefile.am): Likewise.
55246         * modules/memxor (Makefile.am): Likewise.
55247         * modules/mkancesdirs (Makefile.am): Likewise.
55248         * modules/mkdir-p (Makefile.am): Likewise.
55249         * modules/mkdir (Makefile.am): Likewise.
55250         * modules/mkdtemp (Makefile.am): Likewise.
55251         * modules/mkstemp (Makefile.am): Likewise.
55252         * modules/mktime (Makefile.am): Likewise.
55253         * modules/modechange (Makefile.am): Likewise.
55254         * modules/mountlist (Makefile.am): Likewise.
55255         * modules/nanosleep (Makefile.am): Likewise.
55256         * modules/obstack (Makefile.am): Likewise.
55257         * modules/openat (Makefile.am): Likewise.
55258         * modules/pagealign_alloc (Makefile.am): Likewise.
55259         * modules/pathmax (Makefile.am): Likewise.
55260         * modules/physmem (Makefile.am): Likewise.
55261         * modules/poll (Makefile.am): Likewise.
55262         * modules/posixtm (Makefile.am): Likewise.
55263         * modules/posixver (Makefile.am): Likewise.
55264         * modules/putenv (Makefile.am): Likewise.
55265         * modules/quote (Makefile.am): Likewise.
55266         * modules/quotearg (Makefile.am): Likewise.
55267         * modules/raise (Makefile.am): Likewise.
55268         * modules/read-file (Makefile.am): Likewise.
55269         * modules/readline (Makefile.am): Likewise.
55270         * modules/readlink (Makefile.am): Likewise.
55271         * modules/readtokens (Makefile.am): Likewise.
55272         * modules/readutmp (Makefile.am): Likewise.
55273         * modules/realloc (Makefile.am): Likewise.
55274         * modules/regex (Makefile.am): Likewise.
55275         * modules/rename-dest-slash (Makefile.am): Likewise.
55276         * modules/rename (Makefile.am): Likewise.
55277         * modules/rijndael (Makefile.am): Likewise.
55278         * modules/rmdir (Makefile.am): Likewise.
55279         * modules/rpmatch (Makefile.am): Likewise.
55280         * modules/safe-read (Makefile.am): Likewise.
55281         * modules/safe-write (Makefile.am): Likewise.
55282         * modules/same-inode (Makefile.am): Likewise.
55283         * modules/same (Makefile.am): Likewise.
55284         * modules/save-cwd (Makefile.am): Likewise.
55285         * modules/savedir (Makefile.am): Likewise.
55286         * modules/setenv (Makefile.am): Likewise.
55287         * modules/settime (Makefile.am): Likewise.
55288         * modules/sha1 (Makefile.am): Likewise.
55289         * modules/sig2str (Makefile.am): Likewise.
55290         * modules/snprintf (Makefile.am): Likewise.
55291         * modules/stat-macros (Makefile.am): Likewise.
55292         * modules/stat-time (Makefile.am): Likewise.
55293         * modules/stdbool (Makefile.am): Likewise.
55294         * modules/stdint (Makefile.am): Likewise.
55295         * modules/stdlib-safer (Makefile.am): Likewise.
55296         * modules/stpcpy (Makefile.am): Likewise.
55297         * modules/stpncpy (Makefile.am): Likewise.
55298         * modules/strcase (Makefile.am): Likewise.
55299         * modules/strcasestr (Makefile.am): Likewise.
55300         * modules/strchrnul (Makefile.am): Likewise.
55301         * modules/strcspn (Makefile.am): Likewise.
55302         * modules/strdup (Makefile.am): Likewise.
55303         * modules/strerror (Makefile.am): Likewise.
55304         * modules/strftime (Makefile.am): Likewise.
55305         * modules/strndup (Makefile.am): Likewise.
55306         * modules/strnlen (Makefile.am): Likewise.
55307         * modules/strpbrk (Makefile.am): Likewise.
55308         * modules/strsep (Makefile.am): Likewise.
55309         * modules/strstr (Makefile.am): Likewise.
55310         * modules/strtod (Makefile.am): Likewise.
55311         * modules/strtoimax (Makefile.am): Likewise.
55312         * modules/strtok_r (Makefile.am): Likewise.
55313         * modules/strtol (Makefile.am): Likewise.
55314         * modules/strtoll (Makefile.am): Likewise.
55315         * modules/strtoul (Makefile.am): Likewise.
55316         * modules/strtoull (Makefile.am): Likewise.
55317         * modules/strtoumax (Makefile.am): Likewise.
55318         * modules/strverscmp (Makefile.am): Likewise.
55319         * modules/sys_socket (Makefile.am): Likewise.
55320         * modules/sys_stat (Makefile.am): Likewise.
55321         * modules/sysexits (Makefile.am): Likewise.
55322         * modules/time_r (Makefile.am): Likewise.
55323         * modules/timegm (Makefile.am): Likewise.
55324         * modules/timespec (Makefile.am): Likewise.
55325         * modules/tmpfile-safer (Makefile.am): Likewise.
55326         * modules/trim (Makefile.am): Likewise.
55327         * modules/unistd-safer (Makefile.am): Likewise.
55328         * modules/unlinkdir (Makefile.am): Likewise.
55329         * modules/unlocked-io (Makefile.am): Likewise.
55330         * modules/userspec (Makefile.am): Likewise.
55331         * modules/utime (Makefile.am): Likewise.
55332         * modules/utimecmp (Makefile.am): Likewise.
55333         * modules/utimens (Makefile.am): Likewise.
55334         * modules/vasnprintf (Makefile.am): Likewise.
55335         * modules/vasprintf (Makefile.am): Likewise.
55336         * modules/vsnprintf (Makefile.am): Likewise.
55337         * modules/xalloc (Makefile.am): Likewise.
55338         * modules/xgetcwd (Makefile.am): Likewise.
55339         * modules/xnanosleep (Makefile.am): Likewise.
55340         * modules/xreadlink (Makefile.am): Likewise.
55341         * modules/xstrtod (Makefile.am): Likewise.
55342         * modules/xstrtol (Makefile.am): Likewise.
55343         * modules/xstrtold (Makefile.am): Likewise.
55344         * modules/yesno (Makefile.am): Likewise.
55345         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55346
55347 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         * modules/error (Makefile.am): Distribute files through
55350         EXTRA_DIST, not lib_SOURCES.
55351
55352 2006-10-12  Eric Blake  <ebb9@byu.net>
55353
55354         * modules/error (Makefile.am): Distribute files in /lib.
55355         * modules/obstack (Makefile.am): Likewise.
55356
55357 2006-10-12  Bruno Haible  <bruno@clisp.org>
55358
55359         * modules/acl (Makefile.am): Distribute all files in lib/ through
55360         EXTRA_DIST.
55361         * modules/arcfour (Makefile.am): Likewise.
55362         * modules/arctwo (Makefile.am): Likewise.
55363         * modules/argmatch (Makefile.am): Likewise.
55364         * modules/argz (Makefile.am): Likewise.
55365         * modules/atexit (Makefile.am): Likewise.
55366         * modules/backupfile (Makefile.am): Likewise.
55367         * modules/c-strtod (Makefile.am): Likewise.
55368         * modules/c-strtold (Makefile.am): Likewise.
55369         * modules/calloc (Makefile.am): Likewise.
55370         * modules/canon-host (Makefile.am): Likewise.
55371         * modules/canonicalize (Makefile.am): Likewise.
55372         * modules/chdir-long (Makefile.am): Likewise.
55373         * modules/chdir-safer (Makefile.am): Likewise.
55374         * modules/check-version (Makefile.am): Likewise.
55375         * modules/chown (Makefile.am): Likewise.
55376         * modules/cloexec (Makefile.am): Likewise.
55377         * modules/close-stream (Makefile.am): Likewise.
55378         * modules/closeout (Makefile.am): Likewise.
55379         * modules/crc (Makefile.am): Likewise.
55380         * modules/cycle-check (Makefile.am): Likewise.
55381         * modules/des (Makefile.am): Likewise.
55382         * modules/dirfd (Makefile.am): Likewise.
55383         * modules/dirname (Makefile.am): Likewise.
55384         * modules/dup2 (Makefile.am): Likewise.
55385         * modules/euidaccess (Makefile.am): Likewise.
55386         * modules/exclude (Makefile.am): Likewise.
55387         * modules/exitfail (Makefile.am): Likewise.
55388         * modules/fcntl-safer (Makefile.am): Likewise.
55389         * modules/file-type (Makefile.am): Likewise.
55390         * modules/fileblocks (Makefile.am): Likewise.
55391         * modules/filemode (Makefile.am): Likewise.
55392         * modules/filenamecat (Makefile.am): Likewise.
55393         * modules/fnmatch (Makefile.am): Likewise.
55394         * modules/fopen-safer (Makefile.am): Likewise.
55395         * modules/fpending (Makefile.am): Likewise.
55396         * modules/fprintftime (Makefile.am): Likewise.
55397         * modules/free (Makefile.am): Likewise.
55398         * modules/fsusage (Makefile.am): Likewise.
55399         * modules/ftruncate (Makefile.am): Likewise.
55400         * modules/fts (Makefile.am): Likewise.
55401         * modules/gc (Makefile.am): Likewise.
55402         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55403         * modules/getaddrinfo (Makefile.am): Likewise.
55404         * modules/getcwd (Makefile.am): Likewise.
55405         * modules/getdelim (Makefile.am): Likewise.
55406         * modules/getdomainname (Makefile.am): Likewise.
55407         * modules/getgroups (Makefile.am): Likewise.
55408         * modules/gethostname (Makefile.am): Likewise.
55409         * modules/gethrxtime (Makefile.am): Likewise.
55410         * modules/getline (Makefile.am): Likewise.
55411         * modules/getloadavg (Makefile.am): Likewise.
55412         * modules/getlogin_r (Makefile.am): Likewise.
55413         * modules/getopt (Makefile.am): Likewise.
55414         * modules/getpass (Makefile.am): Likewise.
55415         * modules/getpass-gnu (Makefile.am): Likewise.
55416         * modules/getsubopt (Makefile.am): Likewise.
55417         * modules/gettime (Makefile.am): Likewise.
55418         * modules/gettimeofday (Makefile.am): Likewise.
55419         * modules/getugroups (Makefile.am): Likewise.
55420         * modules/getusershell (Makefile.am): Likewise.
55421         * modules/glob (Makefile.am): Likewise.
55422         * modules/group-member (Makefile.am): Likewise.
55423         * modules/hard-locale (Makefile.am): Likewise.
55424         * modules/hash (Makefile.am): Likewise.
55425         * modules/hmac-md5 (Makefile.am): Likewise.
55426         * modules/hmac-sha1 (Makefile.am): Likewise.
55427         * modules/human (Makefile.am): Likewise.
55428         * modules/idcache (Makefile.am): Likewise.
55429         * modules/imaxabs (Makefile.am): Likewise.
55430         * modules/imaxdiv (Makefile.am): Likewise.
55431         * modules/inet_ntop (Makefile.am): Likewise.
55432         * modules/inet_pton (Makefile.am): Likewise.
55433         * modules/inttostr (Makefile.am): Likewise.
55434         * modules/isapipe (Makefile.am): Likewise.
55435         * modules/lchown (Makefile.am): Likewise.
55436         * modules/long-options (Makefile.am): Likewise.
55437         * modules/lstat (Makefile.am): Likewise.
55438         * modules/malloc (Makefile.am): Likewise.
55439         * modules/mathl (Makefile.am): Likewise.
55440         * modules/mbchar (Makefile.am): Likewise.
55441         * modules/md2 (Makefile.am): Likewise.
55442         * modules/md4 (Makefile.am): Likewise.
55443         * modules/md5 (Makefile.am): Likewise.
55444         * modules/memcasecmp (Makefile.am): Likewise.
55445         * modules/memchr (Makefile.am): Likewise.
55446         * modules/memcmp (Makefile.am): Likewise.
55447         * modules/memcoll (Makefile.am): Likewise.
55448         * modules/memcpy (Makefile.am): Likewise.
55449         * modules/memmem (Makefile.am): Likewise.
55450         * modules/memmove (Makefile.am): Likewise.
55451         * modules/mempcpy (Makefile.am): Likewise.
55452         * modules/memrchr (Makefile.am): Likewise.
55453         * modules/memset (Makefile.am): Likewise.
55454         * modules/memxor (Makefile.am): Likewise.
55455         * modules/mkancesdirs (Makefile.am): Likewise.
55456         * modules/mkdir (Makefile.am): Likewise.
55457         * modules/mkdir-p (Makefile.am): Likewise.
55458         * modules/mkdtemp (Makefile.am): Likewise.
55459         * modules/mkstemp (Makefile.am): Likewise.
55460         * modules/mktime (Makefile.am): Likewise.
55461         * modules/modechange (Makefile.am): Likewise.
55462         * modules/mountlist (Makefile.am): Likewise.
55463         * modules/nanosleep (Makefile.am): Likewise.
55464         * modules/openat (Makefile.am): Likewise.
55465         * modules/pagealign_alloc (Makefile.am): Likewise.
55466         * modules/physmem (Makefile.am): Likewise.
55467         * modules/poll (Makefile.am): Likewise.
55468         * modules/posixtm (Makefile.am): Likewise.
55469         * modules/posixver (Makefile.am): Likewise.
55470         * modules/putenv (Makefile.am): Likewise.
55471         * modules/quote (Makefile.am): Likewise.
55472         * modules/quotearg (Makefile.am): Likewise.
55473         * modules/raise (Makefile.am): Likewise.
55474         * modules/read-file (Makefile.am): Likewise.
55475         * modules/readline (Makefile.am): Likewise.
55476         * modules/readlink (Makefile.am): Likewise.
55477         * modules/readtokens (Makefile.am): Likewise.
55478         * modules/readutmp (Makefile.am): Likewise.
55479         * modules/realloc (Makefile.am): Likewise.
55480         * modules/regex (Makefile.am): Likewise.
55481         * modules/rename (Makefile.am): Likewise.
55482         * modules/rename-dest-slash (Makefile.am): Likewise.
55483         * modules/rijndael (Makefile.am): Likewise.
55484         * modules/rmdir (Makefile.am): Likewise.
55485         * modules/rpmatch (Makefile.am): Likewise.
55486         * modules/safe-read (Makefile.am): Likewise.
55487         * modules/safe-write (Makefile.am): Likewise.
55488         * modules/same (Makefile.am): Likewise.
55489         * modules/save-cwd (Makefile.am): Likewise.
55490         * modules/savedir (Makefile.am): Likewise.
55491         * modules/setenv (Makefile.am): Likewise.
55492         * modules/settime (Makefile.am): Likewise.
55493         * modules/sha1 (Makefile.am): Likewise.
55494         * modules/sig2str (Makefile.am): Likewise.
55495         * modules/snprintf (Makefile.am): Likewise.
55496         * modules/stdlib-safer (Makefile.am): Likewise.
55497         * modules/stpcpy (Makefile.am): Likewise.
55498         * modules/stpncpy (Makefile.am): Likewise.
55499         * modules/strcase (Makefile.am): Likewise.
55500         * modules/strcasestr (Makefile.am): Likewise.
55501         * modules/strchrnul (Makefile.am): Likewise.
55502         * modules/strcspn (Makefile.am): Likewise.
55503         * modules/strdup (Makefile.am): Likewise.
55504         * modules/strerror (Makefile.am): Likewise.
55505         * modules/strftime (Makefile.am): Likewise.
55506         * modules/strndup (Makefile.am): Likewise.
55507         * modules/strnlen (Makefile.am): Likewise.
55508         * modules/strpbrk (Makefile.am): Likewise.
55509         * modules/strsep (Makefile.am): Likewise.
55510         * modules/strstr (Makefile.am): Likewise.
55511         * modules/strtod (Makefile.am): Likewise.
55512         * modules/strtoimax (Makefile.am): Likewise.
55513         * modules/strtok_r (Makefile.am): Likewise.
55514         * modules/strtol (Makefile.am): Likewise.
55515         * modules/strtoll (Makefile.am): Likewise.
55516         * modules/strtoul (Makefile.am): Likewise.
55517         * modules/strtoull (Makefile.am): Likewise.
55518         * modules/strtoumax (Makefile.am): Likewise.
55519         * modules/strverscmp (Makefile.am): Likewise.
55520         * modules/time_r (Makefile.am): Likewise.
55521         * modules/timegm (Makefile.am): Likewise.
55522         * modules/tmpfile-safer (Makefile.am): Likewise.
55523         * modules/unistd-safer (Makefile.am): Likewise.
55524         * modules/unlinkdir (Makefile.am): Likewise.
55525         * modules/userspec (Makefile.am): Likewise.
55526         * modules/utime (Makefile.am): Likewise.
55527         * modules/utimecmp (Makefile.am): Likewise.
55528         * modules/utimens (Makefile.am): Likewise.
55529         * modules/vasnprintf (Makefile.am): Likewise.
55530         * modules/vasprintf (Makefile.am): Likewise.
55531         * modules/vsnprintf (Makefile.am): Likewise.
55532         * modules/xalloc (Makefile.am): Likewise.
55533         * modules/xgetcwd (Makefile.am): Likewise.
55534         * modules/xnanosleep (Makefile.am): Likewise.
55535         * modules/xreadlink (Makefile.am): Likewise.
55536         * modules/xstrtod (Makefile.am): Likewise.
55537         * modules/xstrtol (Makefile.am): Likewise.
55538         * modules/xstrtold (Makefile.am): Likewise.
55539         * modules/yesno (Makefile.am): Likewise.
55540
55541 2006-10-12  Jim Meyering  <jim@meyering.net>
55542
55543         * m4/getloadavg.m4: Revert the change below.
55544
55545         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55546         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55547         fail with a symlink, which is what coreutils' ./bootstrap now
55548         creates by default.
55549
55550 2006-10-12  Bruno Haible  <bruno@clisp.org>
55551
55552         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55553         mingw.
55554         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55555         MSVC and mingw explicitly.
55556
55557 2006-10-11  Simon Josefsson  <jas@extundo.com>
55558             Bruno Haible  <bruno@clisp.org>
55559
55560         Add support for multiple gnulib-tool invocations in the scope of a
55561         single configure.ac file.
55562         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55563         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55564         with the same contents as the _LIBADD variable.
55565         (func_emit_initmacro_start, func_emit_initmacro_end,
55566         func_emit_initmacro_done): New functions.
55567         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55568         gl_LIBOBJS and gl_LTLIBOBJS.
55569
55570 2006-10-11  Bruno Haible  <bruno@clisp.org>
55571
55572         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55573         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55574         autoreconf. Instead, invoke autopoint explicitly but move back the
55575         *.m4 files from gnulib.
55576
55577 2006-10-11  Bruno Haible  <bruno@clisp.org>
55578
55579         * gnulib-tool (func_usage): Make module names after --create-testdir
55580         optional.
55581         (func_create_testdir): If no module was specified, use nearly all
55582         modules.
55583
55584 2006-10-12  Jim Meyering  <jim@meyering.net>
55585
55586         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55587         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55588         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55589         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55590         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55591         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55592         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55593         (fts_set_stat_required): New function.
55594         (fts_open): Defer the calls to fts_stat, if possible or requested.
55595         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55596         into fts_stat itself.
55597         (fts_read): Perform any required (deferred) fts_stat call.
55598         (fts_build): Likewise, for the directory we're about to open and read.
55599         In the readdir loop, carefully decide whether each entry will require
55600         an eventual call to fts_stat, using dirent.d_type info if available.
55601         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55602         a command line argument into this function.  Update all callers.
55603         Map a return value of FTS_DOT to FTS_D for a command line argument.
55604         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55605         Thanks to Miklos Szeredi for his tenacity and for the initial
55606         bug report about "find" failing on a FUSE-based file system.
55607
55608         * lib/fts.c (fts_open): Use consistent indentation.
55609
55610 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55611
55612         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55613         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55614         reported by Jim Meyering.  All uses of cache variables renamed
55615         to match Autoconf's.
55616         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55617         the other one.
55618
55619         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55620         Fix misspelling in diagnostic.
55621
55622 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55625         defined.  Problem reported by Matthew Woehlke.
55626
55627         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55628         Add support for Tandem NonStop R series.
55629         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55630         Use new macro.
55631
55632         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55633         (has_trailing_slash): Omit size arg; all callers changed.
55634         Omit 'inline', since it doesn't help performance and we'd
55635         need to configure it.
55636         Don't count //, ///, etc. as having a trailing slash.
55637         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55638         (rpl_rename_dest_slash): On failure, use rename's errno rather
55639         than (in some cases) an incorrect or junk errno.
55640         Simplify code by removing need to compute length; this does
55641         cause it to make two passes instead of one over the file name,
55642         but it's worth it.
55643
55644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55645         change, since Autoconf's version may no longer be appropriate now
55646         that we are using CVS Autoconf's version.  Add support for Tandem.
55647
55648 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55649             Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55652         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55653         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55654         gl_AC_TYPE_LONG_LONG.
55655
55656         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55657         instead of HAVE_LONG_LONG.
55658         * lib/printf-args.c (printf_fetchargs): Likewise.
55659         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55660         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55661         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55662         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55663         gl_AC_TYPE_LONG_LONG.
55664
55665 2006-10-11  Bruno Haible  <bruno@clisp.org>
55666
55667         * m4/longlong.m4: Add comments.
55668         * m4/ulonglong.m4: Likewise.
55669
55670 2006-10-10  Bruno Haible  <bruno@clisp.org>
55671
55672         Make it possible to #define stpcpy, strdup to aliases.
55673         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55674         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55675
55676 2006-10-10  Bruno Haible  <bruno@clisp.org>
55677
55678         Make it possible to #define gcd to an alias.
55679         * lib/gcd.c: Include config.h.
55680
55681 2006-10-10  Bruno Haible  <bruno@clisp.org>
55682
55683         Make it possible to #define c_isascii to an alias.
55684         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55685         defined. Undefine the macros before defining them, to avoid gcc
55686         warnings.
55687         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55688         define NO_C_CTYPE_MACROS early.
55689
55690 2006-10-10  Bruno Haible  <bruno@clisp.org>
55691
55692         Make it possible to #define set_program_name to an alias.
55693         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55694         ENABLE_RELOCATABLE early.
55695
55696 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55697
55698         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55699         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55700         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55701         More generally, don't assume that 64-bit signed int is available
55702         if unsigned int is, and vice versa.
55703         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55704         unsigned symbols, not on their signed counterparts.
55705         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55706         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55707         (UINT64_C, UINTMAX_C):
55708         Likewise.
55709         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55710         unsigned counterparts.
55711         (Have_long_long, Unsigned): New macros.
55712         (Int): Renamed from INT.
55713         (strtoimax): Use the new macros.
55714         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55715         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55716         * modules/inttypes (inttypes.h): Substitute
55717         HAVE_UNSIGNED_LONG_LONG_INT.
55718         * modules/stdint (stdint.h): Likewise.
55719         (Files): Add m4/ulonglong.m4.
55720
55721 2006-10-10  Bruno Haible  <bruno@clisp.org>
55722
55723         Fix a gcc -Wshadow warning.
55724         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55725         to 'bucket'.
55726         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55727         gl_linked_indexof_from_to): Likewise.
55728         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55729         Likewise.
55730         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55731         Likewise.
55732         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55733         Reported by Eric Blake.
55734
55735 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55738         for NetBSD.  Problem reported by Bruno Haible.
55739
55740 2006-10-09  Jim Meyering  <jim@meyering.net>
55741
55742         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55743         Patch from Bruno Haible.
55744
55745 2006-10-09  Jim Meyering  <jim@meyering.net>
55746
55747         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55748         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55749         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55750
55751 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         Don't include <config.h> twice; this doesn't work in some cases,
55754         e.g., when config.h has "#define intmax_t long long int" and
55755         we include <config.h>, <inttypes.h>, <config.h> in that order.
55756         Problem reported by Matthew Woehlke in:
55757         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55758         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55759         * lib/fts-cycle.c: Don't include config.h.
55760         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55761         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55762         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55763         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55764         inttypes.h.
55765         * lib/xstrtoumax.c: Likewise.
55766         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55767         __strtol and the like, so that this module is more like its siblings.
55768         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55769         Remove; no longer needed now that we assume gnulib inttypes.h.
55770
55771 2006-10-08  Bruno Haible  <bruno@clisp.org>
55772
55773         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55774         option.
55775
55776 2006-10-07  Jim Meyering  <jim@meyering.net>
55777
55778         * modules/inttypes (inttypes.h): Revert what seems to have been
55779         an inadvertent part of today's change: use "|", not "/" in the
55780         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55781
55782 2006-10-07  Bruno Haible  <bruno@clisp.org>
55783
55784         * modules/sublist: New file.
55785
55786 2006-10-07  Bruno Haible  <bruno@clisp.org>
55787
55788         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55789         * modules/argz (argz.h): Likewise.
55790         * modules/arpa_inet (arpa/inet.h): Likewise.
55791         * modules/byteswap (byteswap.h): Likewise.
55792         * modules/configmake (configmake.h): Likewise.
55793         * modules/fcntl (fcntl.h): Likewise.
55794         * modules/fnmatch (fnmatch.h): Likewise.
55795         * modules/getopt (getopt.h): Likewise.
55796         * modules/glob (glob.h): Likewise.
55797         * modules/inttypes (inttypes.h): Likewise.
55798         * modules/netinet_in (netinet/in.h): Likewise.
55799         * modules/poll (poll.h): Likewise.
55800         * modules/stdbool (stdbool.h): Likewise.
55801         * modules/stdint (stdint.h): Likewise.
55802         * modules/sys_select (sys/select.h): Likewise.
55803         * modules/sys_socket (sys/socket.h): Likewise.
55804         * modules/sys_stat (sys/stat.h): Likewise.
55805         * modules/sysexits (sysexits.h): Likewise.
55806         * modules/unistd (unistd.h): Likewise.
55807         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55808         Add a "DO NOT EDIT" comment to the generated file.
55809         (func_import): Likewise for gnulib-comp.m4.
55810
55811 2006-10-07  Bruno Haible  <bruno@clisp.org>
55812
55813         * lib/gl_sublist.h: New file.
55814         * lib/gl_sublist.c: New file.
55815
55816 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55817
55818         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55819         name (relative to the original working directory) and the file
55820         name component (relative to the temporary working directory).  All
55821         callers changed.
55822         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55823         * lib/mkdir-p.c (make_dir_parents): Likewise.
55824         * lib/mkdir-p.h (make_dir_parents): Likewise.
55825
55826 2006-10-06  Eric Blake  <ebb9@byu.net>
55827
55828         Define several macros for use by the clean-temp module.
55829         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55830         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55831         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55832
55833         * lib/clean-temp.h (close_stream_temp): New declaration.
55834         * lib/clean-temp.c (includes): Pull in headers according to what
55835         other modules are in use.
55836         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55837
55838 2006-10-06  Bruno Haible  <bruno@clisp.org>
55839
55840         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55841         instead of fopen, fwriteerror.
55842
55843 2006-10-06  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55846         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55847         int.
55848         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55849         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55850         Return an error indicator.
55851         Suggested by Eric Blake.
55852
55853 2006-10-06  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55856         Reported by Eric Blake.
55857
55858 2006-10-06  Bruno Haible  <bruno@clisp.org>
55859
55860         * modules/closeout (Description): Mention stderr too.
55861
55862 2006-10-06  Bruno Haible  <bruno@clisp.org>
55863         and Paul Eggert  <eggert@cs.ucla.edu>
55864
55865         * lib/closeout.c (close_stdout): Also close stderr.
55866         * lib/closeout.h: Update comment.
55867
55868 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55869
55870         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55871         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55872         * lib/dirchownmod.c: Include lchown.h.
55873         * lib/lchown.c: Don't include files that lchown.h now includes.
55874         Don't declare chown, since lchown.h now does that.
55875         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55876         (lchown): Define to rpl_chown if lchown is declared but
55877         does not exist.  Declare using a prototype if lchown is not
55878         declared.  Add a copyright notice.
55879         * lib/mkstemp.h: Include <unistd.h>.
55880         * lib/openat.c: Include lchown.h.
55881
55882         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55883         we now test for that separately.
55884         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55885         rather than O_NOFOLLOW, when testing whether it's possible to
55886         avoid a race condition reliably.
55887         * lib/savewd.c (savewd_chdir): Likewise.
55888
55889         Remove macros that are no longer needed now that stdint.h is
55890         reliable.
55891         * lib/fsusage.c (UINTMAX_MAX): Remove.
55892         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55893         * lib/utimecmp.c (SIZE_MAX): Remove.
55894
55895         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55896
55897         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55898         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55899         O_NOATIME works.
55900
55901 2006-10-05  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/gl_list.h (gl_sortedlist_search_from_to,
55904         gl_sortedlist_indexof_from_to): New declarations.
55905         (gl_list_implementation): New fields sortedlist_search_from_to,
55906         sortedlist_indexof_from_to.
55907         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55908         inline functions.
55909         * lib/gl_list.c (gl_sortedlist_search_from_to,
55910         gl_sortedlist_indexof_from_to): New functions.
55911         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55912         function.
55913         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55914         (gl_array_sortedlist_search_from_to): New function.
55915         (gl_array_list_implementation): Update.
55916         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55917         function.
55918         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55919         (gl_carray_sortedlist_search_from_to): New function.
55920         (gl_carray_list_implementation): Update.
55921         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55922         gl_linked_sortedlist_indexof_from_to): New functions.
55923         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55924         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55925         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55926         gl_tree_sortedlist_indexof_from_to): New functions.
55927         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55928         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55929         Update.
55930         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55931         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55932         Update.
55933
55934 2006-10-05  Bruno Haible  <bruno@clisp.org>
55935
55936         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55937         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55938         (struct gl_list_implementation): Add fields search_from_to,
55939         indexof_from_to. Remove fields search, indexof.
55940         (gl_list_search): Use the search_from_to method.
55941         (gl_list_search_from, gl_list_search_from_to): New functions.
55942         (gl_list_indexof): Use the indexof_from_to method.
55943         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55944         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55945         (gl_list_search_from, gl_list_search_from_to): New functions.
55946         (gl_list_indexof): Use the indexof_from_to method.
55947         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55948         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55949         gl_array_indexof. Add start_index, end_index arguments.
55950         (gl_array_search_from_to): Renamed from gl_array_search. Add
55951         start_index, end_index arguments.
55952         (gl_array_remove, gl_array_list_implementation): Update.
55953         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55954         gl_carray_indexof. Add start_index, end_index arguments.
55955         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55956         start_index, end_index arguments.
55957         (gl_carray_remove, gl_carray_list_implementation): Update.
55958         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55959         gl_linked_search. Add start_index, end_index arguments.
55960         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55961         start_index, end_index arguments.
55962         (gl_linked_remove): Update.
55963         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55964         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55965         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55966         field to 'size_t'.
55967         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55968         gl_tree_search. Add start_index, end_index arguments.
55969         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55970         start_index, end_index arguments.
55971         (gl_tree_remove): Update.
55972         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55973         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55974         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55975         function.
55976         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55977         gl_tree_search. Add start_index, end_index arguments.
55978         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55979         start_index, end_index arguments.
55980         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55981         Update.
55982         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55983
55984 2006-10-05  Bruno Haible  <bruno@clisp.org>
55985
55986         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55987
55988         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55989         fwriteerror_temp): New declarations.
55990         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55991         (descriptors): New variable.
55992         (cleanup): First, close the descriptors.
55993         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55994         fclose_temp, fwriteerror_temp): New functions.
55995
55996 2006-10-04  Jim Meyering  <jim@meyering.net>
55997
55998         * lib/fts.c (fts_open): Tiny comment change.
55999
56000 2006-10-04  Bruno Haible  <bruno@clisp.org>
56001
56002         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56003         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56004         gl_LOCK_BODY.
56005         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56006         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56007         gl_LOCK_EARLY_BODY.
56008         (gl_LOCK): Require gl_LOCK_BODY.
56009
56010 2006-10-04  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56013         (gl_oset_search_atleast): New declaration.
56014         (struct gl_oset_implementation): Add field 'search_atleast'.
56015         (gl_oset_search_atleast): New inline function.
56016         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56017         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56018         (gl_array_oset_implementation): Update.
56019         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56020         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56021         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56022
56023 2006-10-04  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56026
56027 2006-10-03  Bruno Haible  <bruno@clisp.org>
56028
56029         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56030         from gl_avltreehash_list_implementation.
56031
56032 2006-10-03  Bruno Haible  <bruno@clisp.org>
56033
56034         * lib/gl_oset.c (gl_oset_add): Fix return type.
56035
56036 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56037
56038         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56039
56040 2006-10-02  Eric Blake  <ebb9@byu.net>
56041
56042         * modules/strnlen (Depends-on): Add extensions.
56043
56044 2006-10-02  Eric Blake  <ebb9@byu.net>
56045
56046         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56047         definition in 2.60+.
56048
56049 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56050
56051         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56052         checks.
56053
56054 2006-10-02  Bruno Haible  <bruno@clisp.org>
56055
56056         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56057         to the AUTOMAKE_OPTIONS.
56058         Reported by Jim Meyering.
56059
56060 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56061
56062         Work around bug in Solaris 10 /proc file system:
56063         /proc/self/fd/NNN/.. isn't the parent directory of
56064         the directory whose file descriptor is NNN.  This needs to
56065         be worked around at run time, not compile time, since a
56066         program might be built on Solaris 8, where things work, and
56067         run on Solaris 10.
56068         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56069         to use the following interface instead:
56070         (OPENAT_BUFFER_SIZE): New macro.
56071         (openat_proc_name): New function.
56072         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56073         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56074         Likewise.
56075         * lib/openat-proc.c: New file.
56076         * modules/openat (Files): Add lib/openat-proc.c.
56077         (Depends-on): Add same-inode, stdbool.
56078         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56079
56080 2006-09-29  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56083         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56084         argument. Set stdout_closed before testing for ferror, not after.
56085         (fwriteerror, fwriteerror_no_ebadf): New functions.
56086
56087 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56088
56089         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56090
56091 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56092
56093         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56094         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56095
56096 2006-09-28  Jim Meyering  <jim@meyering.net>
56097
56098         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56099         Include <unistd.h>.
56100
56101 2006-09-28  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56104         * modules/linkedhash-list (Depends-on): Likewise.
56105         * modules/rbtreehash-list (Depends-on): Likewise.
56106
56107 2006-09-28  Bruno Haible  <bruno@clisp.org>
56108
56109         * lib/strndup.h: Simplify the redefinition of strndup.
56110         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56111         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56112
56113 2006-09-28  Bruno Haible  <bruno@clisp.org>
56114
56115         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56116         * lib/gl_linkedhash_list.c: Likewise.
56117         * lib/gl_rbtreehash_list.c: Likewise.
56118
56119 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56120
56121         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56122         getaddrinfo.
56123
56124         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56125         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56126         it causes <stdio_ext.h> to cause a compile-time error.
56127         Problem reported by Nelson H. F. Beebe.
56128         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56129         of HAVE_DECL___PENDING.
56130
56131         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56132         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56133         declaration.
56134
56135 2006-09-27  Jim Meyering  <jim@meyering.net>
56136
56137         This file could end up with a definition for a function
56138         named __strndup, rather than rpl_strndup on a system with
56139         incomplete weak_alias support.
56140         * lib/strndup.c (strndup): Rename from __strndup.
56141         Remove #defines that used to map __strndup to strndup.
56142         Don't use K&R prototypes.
56143         Remove LIBC-related code, since this file is not sync'd with glibc.
56144         * lib/strndup.h: Revamp, accordingly.
56145         * m4/strndup.m4: Modernize.
56146
56147 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56148
56149         * modules/savewd (Depends-on): Add 'raise'.
56150         * lib/savewd.c: Include <signal.h>, for 'raise'.
56151
56152 2006-09-26  Jim Meyering  <jim@meyering.net>
56153
56154         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56155         when we detect Darwin 8.7.0's acl_get_file bug.
56156         Rearrange to perform the new (below) run-test while $LIBS
56157         contains any acl-related library.  Set USE_ACL at the end.
56158         (gl_ACL_GET_FILE): New function.
56159
56160 2006-09-26  Eric Blake  <ebb9@byu.net>
56161
56162         * lib/verror.c: Include <config.h> unconditionally.
56163
56164 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56165
56166         * modules/clock-time (Maintainer): Add self.
56167         * modules/getlogin_r (Depends-on): Add extensions.
56168
56169 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56170
56171         * modules/clock-time: New module.
56172         * modules/nanosleep (Depends-on): Add clock-time.
56173         * modules/gethrxtime (Depends-on): Likewise.
56174         * modules/gettime (Depends-on): Likewise.
56175         * modules/settime (Depends-on): Likewise.
56176
56177         * modules/fts-lgpl: Depend on openat.
56178         * modules/mkancesdirs: Depend on savewd.
56179         * modules/mkdir-p: Likewise.
56180
56181 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56182
56183         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56184
56185         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56186         `gl_have_arbitrary_file_name_length_limit' to
56187         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56188         actually works between configure runs.
56189
56190 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56191             Bruno Haible  <bruno@clisp.org>
56192
56193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56194
56195 2006-09-25  Jim Meyering  <jim@meyering.net>
56196
56197         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56198         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56199
56200 2006-09-25  Eric Blake  <ebb9@byu.net>
56201
56202         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56203         exec's in 2006-09-18 patch when shuffling fds.
56204
56205 2006-09-25  Bruno Haible  <bruno@clisp.org>
56206
56207         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56208         Reported by Jim Meyering.
56209
56210 2006-09-24  Jim Meyering  <jim@meyering.net>
56211
56212         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56213         compare a pointer against a literal "0".  That caused failures with
56214         at least HP-UX's hpcc.
56215
56216 2006-09-22  Simon Josefsson  <jas@extundo.com>
56217
56218         * modules/gc-sha1:
56219         * modules/gc-md4:
56220         * modules/gc-hmac-sha1:
56221         * modules/gc-hmac-md5:
56222         * modules/gc-des:
56223         * modules/gc-arcfour: Distribute more files.
56224
56225 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56226
56227         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56228         (gl_linked_iterator_from_to): Initialize struct completely.
56229         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56230         (gl_tree_iterator_from_to): Likewise
56231         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56232         * lib/gl_array_list.c [lint] (gl_array_iterator)
56233         (gl_array_iterator_from_to): Likewise.
56234         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56235         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56236         (gl_carray_iterator_from_to): Likewise.
56237
56238         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56239         * lib/md4.c (md4_process_block): Remove unused variable.
56240         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56241         parentheses for clarity.
56242
56243 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56244
56245         * modules/bison-i18n (Depends-on): Add gettext.
56246
56247 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56248
56249         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56250         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56251         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56252         also add missing comma that caused broken test.
56253         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56254         stdlib.h, for `abort'.
56255         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56256         variables.
56257         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56258         include unistd.h if present, for `rmdir'.
56259         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56260         variables.
56261         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56262         in the process include standard headers for prototypes.
56263         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56264         gets declared on GNU/Linux.
56265         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56266         unistd.h, for `rmdir'.
56267         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56268
56269         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56270         always true.
56271         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56272
56273         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56274
56275 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56276
56277         * gnulib-tool (func_version): Create output all at once.  This
56278         may help avoid triggering unnecessary SIGPIPEs, and at any
56279         rate it doesn't hurt.
56280
56281 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56282             Bruno Haible  <bruno@clisp.org>
56283
56284         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56285         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56286         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56287
56288         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56289         (gl_FUNC_VASPRINTF): Invoke it.
56290
56291 2006-09-22  Bruno Haible  <bruno@clisp.org>
56292
56293         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56294         getloadavg.c as first argument.
56295
56296 2006-09-22  Bruno Haible  <bruno@clisp.org>
56297
56298         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56299         at the beginning of the gl_INIT macro.
56300         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56301         gl_GETLOADAVG.
56302
56303 2006-09-22  Bruno Haible  <bruno@clisp.org>
56304
56305         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56306         module.
56307         Suggested by Ralf Wildenhues.
56308
56309 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56310
56311         Import this patch from libc:
56312
56313         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56314
56315         * lib/regex_internal.c (re_string_reconstruct): Handle
56316         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56317         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56318         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56319         re_string_context_at.
56320
56321         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56322         now requires it.
56323         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56324         gl_REGEX now does it for us.
56325         (gl_REGEX): Add test taken from
56326         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56327
56328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56329         Check that large offsets work.  Modernize Autoconf usages.
56330         Prefer "yes" to mean a good thing rather than a bad.
56331         Don't put "#define mkstemp" in config.h, as this might interfere
56332         with standard system headers that "#define mkstemp mkstemp64".
56333
56334         * modules/mkstemp (Depends-on): Add extensions, so that
56335         mkstemp is visible on some platforms.
56336         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56337         (Include): Change to "mkstemp.h" from <stdlib.h>.
56338         (Files): Add mkstemp.h.
56339
56340         * lib/mkstemp.h: New file, since some standard headers
56341         #define mkstemp.
56342         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56343         Include "mkstemp.h".
56344         Make the _LIBC code resemble glibc original more,
56345         e.g., use K&R style.
56346         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56347         (mkstemp): Remove, since mkstemp.h does this for us.
56348         * lib/stdlib--.h: Include mkstemp.h.
56349
56350         Import this patch from libc:
56351
56352         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56353
56354         * lib/tempname.c (__gen_tempname): Change attempts_min
56355         into a macro.  Use preprocessor to decide how to initialize
56356         attempts [Coverity CID 67].
56357
56358 2006-09-20  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/mkdtemp.c: Import from libc.
56361         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56362                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56363                 attempts_min into a macro.  Use preprocessor to decide how to
56364                 initialize attempts [Coverity CID 67].
56365         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56366                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56367                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56368
56369 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56370
56371         * gnulib-tool (func_exit): New function, to allow to pass the
56372         exit status portably through the trap.  Use everywhere.
56373         (--help, --version): Signal a write error.
56374         (trap): catch SIGPIPE, for write errors.
56375         Exit at the end of the trap, with the correct exit status.
56376
56377 2006-09-19  Karl Berry  <karl@gnu.org>
56378
56379         * doc/gnulib.texi: note about the license texinfo files.
56380
56381 2006-09-19  Eric Blake  <ebb9@byu.net>
56382
56383         * gnulib-tool: Avoid space-tab.
56384
56385 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56386
56387         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56388         that prevented coreutils 6.1 from building.  Problem reported
56389         by Petter Reinholdtsen.
56390
56391 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56392
56393         * gnulib-tool (avoidlist): Fix typo that broke options like
56394         --avoid=lock that are used by coreutils bootstrap.
56395
56396 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56397
56398         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56399         more systematically.
56400
56401 2006-09-18  Jim Meyering  <jim@meyering.net>
56402
56403         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56404
56405 2006-09-18  Bruno Haible  <bruno@clisp.org>
56406
56407         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56408
56409 2006-09-18  Bruno Haible  <bruno@clisp.org>
56410
56411         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56412         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56413         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56414         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56415         * m4/gettext.m4: Require autoconf >= 2.52.
56416         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56417         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56418         of gl_cv_header_inttypes_h.
56419
56420 2006-09-18  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/javaversion.c: Include configmake.h.
56423
56424 2006-09-18  Bruno Haible  <bruno@clisp.org>
56425
56426         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56427         avoid that the while loops be executed in a subshell.
56428
56429 2006-09-18  Bruno Haible  <bruno@clisp.org>
56430
56431         * MODULES.html.sh (func_module): Break long lines.
56432         Suggested by Bruce Korb <bkorb@gnu.org>.
56433
56434 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56435
56436         Speed up by a factor of 1.12.
56437         * gnulib-tool (nl): New variable.
56438         (func_import): Rewrite include directive extraction to only read each
56439         directive once.
56440
56441 2006-09-17  Bruno Haible  <bruno@clisp.org>
56442
56443         * modules/javaversion (Makefile.am): Remove DEFS setting.
56444         (Depends-on): Add configmake, for PKGDATADIR definition.
56445
56446 2006-09-17  Bruno Haible  <bruno@clisp.org>
56447
56448         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56449
56450 2006-09-17  Bruno Haible  <bruno@clisp.org>
56451
56452         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56453         (func_modules_transitive_closure, func_modules_add_dummy,
56454         func_modules_to_filelist, func_import, func_create_testdir,
56455         func_create_megatestdir, ...): Use it wherever possible.
56456         Suggested by Ralf Wildenhues.
56457
56458 2006-09-16  Karl Berry  <karl@gnu.org>
56459
56460         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56461         to avoid sectioning errors.
56462         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56463         [ifinfo]: blank line after @center-ed titles.
56464         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56465         Spell FSF address consistently with others.
56466         (These changes approved by rms.)
56467
56468 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56469
56470         Speed up by a factor of 1.61.
56471         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56472         already checked module names again.
56473
56474 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56475
56476         Speed up by a factor of 1.13.
56477         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56478         for new_files, and the input to func_add_or_update.
56479
56480 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56481
56482         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56483         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56484
56485 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         * modules/mkancesdirs (Depends-on): Add fcntl.
56488         * modules/savewd: New file.
56489         * MODULES.html.sh (File system functions): Add savewd.
56490
56491         * modules/configmake (Makefile.am): Add support for the
56492         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56493
56494 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56495
56496         * m4/savewd.m4: New file.
56497
56498 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56499
56500         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56501         (dirchownmod): New arg FD.  All callers changed.
56502         Use FD rather than opening the directory ourself, as opening is
56503         now the caller's responsibility.
56504         * lib/dirchownmod.h: Likewise.
56505         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56506         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56507         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56508         (test_dir): Remove.
56509         (mkancesdirs): Return length of prefix of FILE that has already
56510         been made, or -2 if there is a child doing the work.  Redo
56511         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56512         ".", and treat ".." specially since it might stray back into
56513         already-created areas.  Use a subprocess if necessary.  New arg
56514         WD; all users changed.  MAKE_DIR function should now return 1
56515         if it creates a directory that is not readable.  Return -2 if
56516         a child process is spun off.
56517         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56518         Adjust signature to match code.
56519         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56520         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56521         all users changed.
56522         * lib/savewd.c, lib/savewd.h: New files.
56523
56524 2006-09-15  Jim Meyering  <jim@meyering.net>
56525
56526         * modules/rename-dest-slash: New module.
56527         * MODULES.html.sh (posix_compat): Add it here.
56528
56529         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56530
56531 2006-09-15  Jim Meyering  <jim@meyering.net>
56532
56533         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56534         file.
56535
56536         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56537
56538 2006-09-15  Jim Meyering  <jim@meyering.net>
56539
56540         * lib/rename-dest-slash.c (has_trailing_slash): Use
56541         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56542         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56543         test before testing whether SRC is a directory.
56544         Suggestions from Bruno Haible.
56545
56546         Avoid a warning about an unused variable.
56547         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56548         into the #ifdef block where it's used.
56549
56550         * lib/rename-dest-slash.c: New file.
56551
56552 2006-09-14  Bruno Haible  <bruno@clisp.org>
56553
56554         * lib/allocsa.c: Include <config.h> unconditionally.
56555         * lib/asnprintf.c: Likewise.
56556         * lib/asprintf.c: Likewise.
56557         * lib/c-strcasecmp.c: Likewise.
56558         * lib/c-strcasestr.c: Likewise.
56559         * lib/c-strncasecmp.c: Likewise.
56560         * lib/c-strstr.c: Likewise.
56561         * lib/classpath.c: Likewise.
56562         * lib/clean-temp.c: Likewise.
56563         * lib/concatpath.c: Likewise.
56564         * lib/copy-file.c: Likewise.
56565         * lib/csharpcomp.c: Likewise.
56566         * lib/csharpexec.c: Likewise.
56567         * lib/execute.c: Likewise.
56568         * lib/fatal-signal.c: Likewise.
56569         * lib/findprog.c: Likewise.
56570         * lib/fwriteerror.c: Likewise.
56571         * lib/gl_array_list.c: Likewise.
56572         * lib/gl_array_oset.c: Likewise.
56573         * lib/gl_avltree_list.c: Likewise.
56574         * lib/gl_avltree_oset.c: Likewise.
56575         * lib/gl_avltreehash_list.c: Likewise.
56576         * lib/gl_carray_list.c: Likewise.
56577         * lib/gl_linked_list.c: Likewise.
56578         * lib/gl_linkedhash_list.c: Likewise.
56579         * lib/gl_list.c: Likewise.
56580         * lib/gl_oset.c: Likewise.
56581         * lib/gl_rbtree_list.c: Likewise.
56582         * lib/gl_rbtree_oset.c: Likewise.
56583         * lib/gl_rbtreehash_list.c: Likewise.
56584         * lib/imaxabs.c: Likewise.
56585         * lib/imaxdiv.c: Likewise.
56586         * lib/javacomp.c: Likewise.
56587         * lib/javaexec.c: Likewise.
56588         * lib/javaversion.c: Likewise.
56589         * lib/linebreak.c: Likewise.
56590         * lib/localcharset.c: Likewise.
56591         * lib/lock.c: Likewise.
56592         * lib/mbchar.c: Likewise.
56593         * lib/mbswidth.c: Likewise.
56594         * lib/mkdtemp.c: Likewise.
56595         * lib/pipe.c: Likewise.
56596         * lib/printf-args.c: Likewise.
56597         * lib/printf-parse.c: Likewise.
56598         * lib/progname.c: Likewise.
56599         * lib/progreloc.c: Likewise.
56600         * lib/readlink.c: Likewise.
56601         * lib/sh-quote.c: Likewise.
56602         * lib/stpcpy.c: Likewise.
56603         * lib/stpncpy.c: Likewise.
56604         * lib/strcasecmp.c: Likewise.
56605         * lib/strcasestr.c: Likewise.
56606         * lib/strcspn.c: Likewise.
56607         * lib/striconv.c: Likewise.
56608         * lib/strncasecmp.c: Likewise.
56609         * lib/strnlen1.c: Likewise.
56610         * lib/strstr.c: Likewise.
56611         * lib/strtok_r.c: Likewise.
56612         * lib/tls.c: Likewise.
56613         * lib/tmpdir.c: Likewise.
56614         * lib/unicodeio.c: Likewise.
56615         * lib/unsetenv.c: Likewise.
56616         * lib/vasnprintf.c: Likewise.
56617         * lib/vasprintf.c: Likewise.
56618         * lib/wait-process.c: Likewise.
56619         * lib/xallocsa.c: Likewise.
56620         * lib/xsetenv.c: Likewise.
56621         * lib/xstriconv.c: Likewise.
56622
56623 2006-09-13  Simon Josefsson  <jas@extundo.com>
56624
56625         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56626         that internally, suggested by Ralf Wildenhues
56627         <Ralf.Wildenhues@gmx.de>.
56628
56629 2006-09-13  Simon Josefsson  <jas@extundo.com>
56630
56631         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56632         @LIBOBJS@.
56633         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56634
56635 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56636
56637         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56638         longer worry about uses that don't define HAVE_CONFIG_H.
56639         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56640         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56641         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56642         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56643         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56644         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56645         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56646         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56647         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56648         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56649         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56650         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56651         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56652         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56653         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56654         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56655         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56656         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56657         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56658         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56659         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56660         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56661         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56662         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56663         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56664         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56665         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56666         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56667         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56668         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56669         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56670         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56671         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56672         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56673         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56674         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56675         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56676         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56677         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56678         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56679         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56680         Likewise.
56681
56682 2006-09-13  Eric Blake  <ebb9@byu.net>
56683
56684         * lib/getopt.c: Fix typo in last commit.
56685
56686 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56687
56688         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56689         dgettext.
56690
56691 2006-09-12  Jim Meyering  <jim@meyering.net>
56692
56693         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56694         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56695         Reported by Nelson H. F. Beebe.
56696
56697 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56698
56699         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56700         program_invocation_name and program_invocation_short_name are
56701         initialized.
56702         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56703         and program_invocation_short_name to argp.h, so they are visible
56704         to user programs.
56705         * lib/argp.h: Likewise
56706
56707 2006-09-10  Bruno Haible  <bruno@clisp.org>
56708
56709         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56710         m4/inttypes_h.m4, m4/uintmax_t.m4.
56711
56712 2006-09-10  Bruno Haible  <bruno@clisp.org>
56713
56714         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56715         gl_AC_TYPE_UINTMAX_T.
56716
56717 2006-09-10  Bruno Haible  <bruno@clisp.org>
56718
56719         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56720
56721 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56722
56723         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56724         convention.  Text proposed by Bruno Haible.
56725         (struct argp_option): Document the use of N_() wrappers.
56726
56727         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56728         '\v', and translate the two parts separately, instead of feeding
56729         the whole string to gettext.  This allows to exclude
56730         '\v' from the strings visible to the translator by writing doc
56731         strings as N_("..") "\v" N_("..").
56732
56733 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56734
56735         * config/srclist.txt: Undo latest change; the bug was fixed.
56736
56737 2006-09-09  Bruno Haible  <bruno@clisp.org>
56738
56739         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56740         assignments if building a library without libtool.
56741         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56742         in func_emit_lib_Makefile_am.
56743         (func_import): When building a static library libfoo.a, arrange to
56744         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56745         (func_create_testdir): Likewise.
56746         * modules/gc (configure.ac, Makefile.am): If building statically,
56747         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56748         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56749         * modules/striconv (configure.ac, Makefile.am): Likewise.
56750         Based on a suggestion by Ralf Wildenhues.
56751
56752 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56753
56754         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56755         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56756         Also:
56757
56758         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56759         Add year_2050_test to catch glibc bug 2821
56760         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56761
56762         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56763         Prefer #ifdef to #if.
56764
56765         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56766         Return from 'main' instead of calling 'exit'.
56767
56768 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56769
56770         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56771         returned the maximum time_t value rather than (time_t) -1.
56772         Problem originally reported by William Bardwell
56773         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56774
56775         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56776         Moved to here ...
56777         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56778         ... from here.
56779
56780 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56781
56782         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56783         2821 is fixed.
56784
56785 2006-09-08  Jim Meyering  <jim@meyering.net>
56786
56787         Don't make generated files read-only.  That would bother too many
56788         people.  However, do retain the ability to work when targets are
56789         read-only: remove the destination and temporary files before writing
56790         them (when generated via sed or echo), or by using the -f option for
56791         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56792         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56793         * modules/byteswap, modules/configmake, modules/fcntl:
56794         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56795         * modules/localcharset, modules/netinet_in, modules/poll:
56796         * modules/stdbool, modules/stdint, modules/sys_select:
56797         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56798
56799 2006-09-08  Jim Meyering  <jim@meyering.net>
56800
56801         Avoid new build failure on FreeBSD 6.0.
56802         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56803         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56804         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56805
56806 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56807
56808         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56809
56810 2006-09-07  Jim Meyering  <jim@meyering.net>
56811
56812         Fix global typo in last change: use chmod u-w, not chmod u-x.
56813         Spotted by Paul Eggert and Bruce Korb.
56814         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56815         * modules/byteswap, modules/configmake, modules/fcntl:
56816         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56817         * modules/localcharset, modules/netinet_in, modules/poll:
56818         * modules/stdbool, modules/stdint, modules/sys_select:
56819         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56820
56821 2006-09-06  Jim Meyering  <jim@meyering.net>
56822
56823         Make generated files be read-only.
56824         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56825         Ensure that each generated file is now read-only.
56826         * modules/argz: Likewise.
56827         * modules/arpa_inet: Likewise.
56828         * modules/byteswap: Likewise.
56829         * modules/configmake: Likewise.
56830         * modules/fcntl: Likewise.
56831         * modules/fnmatch: Likewise.
56832         * modules/getopt: Likewise.
56833         * modules/glob: Likewise.
56834         * modules/inttypes: Likewise.
56835         * modules/netinet_in: Likewise.
56836         * modules/poll: Likewise.
56837         * modules/stdbool: Likewise.
56838         * modules/stdint: Likewise.
56839         * modules/sys_select: Likewise.
56840         * modules/sys_socket: Likewise.
56841         * modules/sys_stat: Likewise.
56842         * modules/sysexits: Likewise.
56843         * modules/localcharset: Same as above, but continue using temporary
56844         file named "t-$@" (why different?) rather than the "$@-t" used
56845         everywhere else.
56846
56847         * modules/sysexits (Makefile.am): Replace literal occurrences
56848         of "sysexit.h" more readable, and more consistent, "$@".
56849
56850 2006-09-06  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/striconv: New file.
56853         * modules/xstriconv: New file.
56854         * MODULES.html.sh (Internationalization functions): Add striconv,
56855         xstriconv.
56856
56857 2006-09-06  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56860         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56861         not using libtool correctly.
56862
56863 2006-09-06  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/striconv.h: New file.
56866         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56867         iconvstring.c.
56868         * lib/xstriconv.h: New file.
56869         * lib/xstriconv.c: New file.
56870
56871 2006-09-06  Bruno Haible  <bruno@clisp.org>
56872
56873         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56874         lib_..._LDFLAGS.
56875
56876 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56877
56878         * lib/argz_.h: Sync from Libtool.
56879
56880         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56881                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56882
56883         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56884
56885 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56886
56887         * modules/trim: New file.
56888
56889 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56890
56891         * lib/trim.h: New file.
56892         * lib/trim.c: New file.
56893
56894 2006-09-05  Bruno Haible  <bruno@clisp.org>
56895
56896         * MODULES.html.sh (String handling): Add trim.
56897
56898 2006-09-04  Karl Berry  <karl@gnu.org>
56899
56900         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56901         until next release.
56902
56903 2006-09-03  Bruno Haible  <bruno@clisp.org>
56904
56905         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56906         correctly.
56907
56908 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56909
56910         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56911         not gl_GETLOADAVG.  Omit unneeded semicolons.
56912         Problems reported by Ralf Wildenhues in
56913         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56914         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56915         at the end, which is the usual gnulib style.
56916
56917         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56918         of doing all the work ourselves.
56919         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56920         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56921
56922 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56923
56924         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56925         Problem reported by Ralf Wildenhues in
56926         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56927
56928         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56929         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56930
56931 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56932
56933         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56934         yesterday's patch by changing test -n to test -z.
56935
56936 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56937
56938         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56939         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56940         the former is now obsolescent.
56941
56942         * modules/chdir-long (Depends-on): Add fcntl.
56943
56944 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56945
56946         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56947         obsolescent, and programs should use gnulib instead.
56948         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56949         but with prefixes changed.
56950
56951 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56952
56953         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56954         or stdbool.h, because they might not exist while configuring.
56955
56956         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56957         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56958         does that for us.
56959         (O_DIRECTORY): Remove.
56960
56961 2006-08-31  Eric Blake  <ebb9@byu.net>
56962
56963         * gnulib-tool: Don't let emacs change spaces to TAB.
56964
56965 2006-08-31  Bruno Haible  <bruno@clisp.org>
56966
56967         * gnulib-tool: When calling func_import more than once, do it in a
56968         subshell.
56969         Reported by Eric Blake <ebb9@byu.net>.
56970
56971 2006-08-31  Bruno Haible  <bruno@clisp.org>
56972
56973         * gnulib-tool (nl): Remove variable.
56974         (sed_transform_lib_file): Use more robust test for config-h module.
56975         (func_import): Fix typo in 2006-08-25 patch.
56976
56977 2006-08-31  Bruno Haible  <bruno@clisp.org>
56978
56979         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56980         specified, augment Makefile.am variables instead of assigning them.
56981
56982 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56983
56984         Work around a bug in both the Linux and SunOS 64-bit kernels:
56985         nanosleep mishandles sleeps for longer than 2**31 seconds.
56986         Problem reported by Frank v Waveren in
56987         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56989         Check for nanosleep bug.
56990         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56991
56992 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56993
56994         Work around a bug in both the Linux and SunOS 64-bit kernels:
56995         nanosleep mishandles sleeps for longer than 2**31 seconds.
56996         Problem reported by Frank v Waveren in
56997         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56998         * lib/nanosleep.c (BILLION): New constant.
56999         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57000         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57001         implementation.
57002
57003 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57004
57005         * modules/nanosleep (Depends-on): Add gettime.
57006
57007 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57008         and Simon Josefsson  <jas@extundo.com>
57009         and Oskar Liljeblad  <oskar@osk.mine.nu>
57010
57011         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57012         * gnulib-tool (func_import): New license type 'unmodifiable license
57013         text'.
57014         * modules/fdl: Use it.  Longer description.
57015         * module/gpl, module/lgpl: New files.
57016
57017 2006-08-30  Jim Meyering  <jim@meyering.net>
57018
57019         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57020         shadowing the parameter.
57021
57022 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57023
57024         Sync from Libtool:
57025
57026         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57027
57028         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57029         sharing with gnulib.  Report by Eric Blake.
57030
57031 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57032
57033         * modules/isapipe: New file.
57034         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57035
57036 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57037
57038         * modules/configmake (Makefile.am): Add a comment, and omit
57039         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57040         by Bruno Haible.
57041
57042 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57043
57044         * m4/isapipe.m4: New file.
57045
57046 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57047
57048         * lib/isapipe.c, lib/isapipe.h: New files.
57049
57050 2006-08-29  Jim Meyering  <jim@meyering.net>
57051
57052         * modules/configmake (Makefile.am): Make configmake.h depend on
57053         Makefile.  Otherwise, a stale configmake.h could hang around.
57054
57055 2006-08-29  Eric Blake  <ebb9@byu.net>
57056
57057         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57058         resolution of upstream bug 3044.
57059
57060 2006-08-29  Bruno Haible  <bruno@clisp.org>
57061
57062         * modules/localcharset (Depends-on): Add configmake.
57063         (Makefile.am): Remove setting of LIBDIR through DEFS.
57064
57065 2006-08-29  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57068         defined.
57069
57070 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * modules/fcntl: New file.
57073         * modules/chdir-safer (Depends-on): Add fcntl.
57074         * modules/fts: Likewise.
57075         * modules/mkdir-p: Likewise.
57076
57077         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57078         This undoes the most recent change, since we're now addressing the
57079         problem in a different way.
57080
57081         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57082         into output, since the output might be called Makefile.am even
57083         if $makefile_name is something different.
57084         (func_import): Use $makefile_am rather than
57085         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57086         empty.
57087
57088         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57089
57090 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57093         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57094         recent change to stdint.m4, since we're now addressing the problem in a
57095         different way.
57096
57097 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * m4/fcntl_h.m4: New file.
57100
57101 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57102
57103         * lib/fcntl_.h: New file.
57104         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57105         the fcntl module.
57106         * lib/dirchownmod.c: Likewise.
57107         * lib/fts.c: Likewise.
57108
57109         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57110         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57111         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57112         just before including <inttypes.h>, to avoid circular inclusion.
57113
57114 2006-08-28  Jim Meyering  <jim@meyering.net>
57115
57116         * doc/visibility.texi: Actually read and correct the grammar of the
57117         sentence affected by yesterday's change.
57118
57119 2006-08-28  Eric Blake  <ebb9@byu.net>
57120
57121         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57122         needs wrapper.
57123
57124 2006-08-28  Eric Blake  <ebb9@byu.net>
57125
57126         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57127
57128 2006-08-28  Eric Blake  <ebb9@byu.net>
57129
57130         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57131
57132 2006-08-28  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/c-strstr: New file, from GNU gettext.
57135         * MODULES.html.sh (String handling): Add c-strstr.
57136
57137 2006-08-28  Bruno Haible  <bruno@clisp.org>
57138
57139         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57140         macros.
57141         Reported by Eric Blake.
57142
57143 2006-08-28  Bruno Haible  <bruno@clisp.org>
57144
57145         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57146         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57147         * lib/vasprintf.c: Include errno.h, limits.h.
57148         (EOVERFLOW): New fallback definition.
57149         (vasprintf): Test here whether the string length is > INT_MAX.
57150         * lib/vsnprintf.c: Include errno.h, limits.h.
57151         (EOVERFLOW): New fallback definition.
57152         (vsnprintf): Fix bug when generated string was too long for the buffer.
57153         Test here whether the string length is > INT_MAX.
57154
57155 2006-08-28  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/inttypes_.h (SCNX*): Remove definitions.
57158         Reported by Eric Blake.
57159
57160 2006-08-28  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/c-strstr.h: New file, from GNU gettext.
57163         * lib/c-strstr.c: New file, from GNU gettext.
57164
57165 2006-08-28  Bruno Haible  <bruno@clisp.org>
57166
57167         * gnulib-tool: Reorder some statements.
57168
57169 2006-08-28  Bruno Haible  <bruno@clisp.org>
57170
57171         * gnulib-tool: New option --makefile-name.
57172         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57173         $makefile_name.
57174         (func_import): Write $makefile_name to the cache file, and read it from
57175         there unless explicitly specified. Use $makefile_name as file name
57176         instead of Makefile.am. Adjust the recommendations accordingly.
57177
57178 2006-08-28  Bruno Haible  <bruno@clisp.org>
57179
57180         * gnulib-tool (func_verify_module): Check against misapplying patch.
57181
57182 2006-08-28  Bruno Haible  <bruno@clisp.org>
57183
57184         * gnulib-tool (func_relativize, func_relconcat): New functions.
57185         Give an error if --local-dir is given with --update.
57186         Remove trailing slashes from $local_gnulib_dir.
57187         (func_import): Store the relativized $local_gnulib_dir in
57188         gnulib-cache.m4, and read it from there if not specified explicitly.
57189
57190 2006-08-28  Bruno Haible  <bruno@clisp.org>
57191
57192         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57193         is the current directory. Respect also $local_gnulib_dir.
57194
57195 2006-08-28  Bruno Haible  <bruno@clisp.org>
57196             Simon Josefsson  <jas@extundo.com>
57197
57198         BeOS portability.
57199         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57200
57201 2006-08-27  Jim Meyering  <jim@meyering.net>
57202
57203         * doc/visibility.texi: Remove duplicate word: "pointer".
57204
57205 2006-08-26  Bruno Haible  <bruno@clisp.org>
57206
57207         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57208         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57209         (Makefile.am): Create inttypes.h from inttypes_.h.
57210         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57211
57212         * modules/imaxabs: New file.
57213
57214         * modules/imaxdiv: New file.
57215
57216 2006-08-26  Bruno Haible  <bruno@clisp.org>
57217
57218         * m4/inttypes.m4: New file.
57219         * m4/_inttypes_h.m4: Remove file.
57220         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57221         PRI_MACROS_BROKEN.
57222         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57223
57224         * m4/imaxabs.m4: New file.
57225
57226         * m4/imaxdiv.m4: New file.
57227
57228 2006-08-26  Bruno Haible  <bruno@clisp.org>
57229
57230         * lib/inttypes_.h: New file.
57231         * lib/inttypes.h: Remove file.
57232         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57233
57234         * lib/imaxabs.c: New file.
57235
57236         * lib/imaxdiv.c: New file.
57237
57238 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         New config-h module, so that "make" output needn't be cluttered
57241         by -DHAVE_CONFIG_H.
57242         * MODULES.html.sh (Support for building libraries and executables):
57243         Add config-h.
57244         * modules/config-h: New file.
57245         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57246         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57247         the config-h module is used.
57248
57249         New configmake module, so that "make" output needn't be cluttered
57250         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57251         * MODULES.html.sh (Support for building libraries and executables):
57252         Add configmake.
57253         * modules/configmake: New file.
57254
57255 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57256
57257         * m4/config-h.m4: New file.
57258
57259 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57260
57261         * config/srclist.txt: Add elisp-comp.
57262
57263 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57264
57265         * MODULES.html.sh (Support for building libraries and executables):
57266         Add elisp-comp.
57267         * build-aux/elisp-comp: New file.
57268         * modules/elisp-comp: New file.
57269
57270 2006-08-24  Bruno Haible  <bruno@clisp.org>
57271
57272         * gnulib-tool (func_create_testdir): Use non-default values of
57273         sourcebase and m4base.
57274
57275 2006-08-24  Bruno Haible  <bruno@clisp.org>
57276
57277         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57278         HTML structure.
57279
57280 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57281
57282         * modules/openat (Depends-on): Add lchown.
57283
57284 2006-08-23  Bruno Haible  <bruno@clisp.org>
57285
57286         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57287         of gl_LOCK_EARLY instead of gl_LOCK.
57288
57289 2006-08-23  Bruno Haible  <bruno@clisp.org>
57290
57291         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57292         on OSF/1 to no.
57293         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57294
57295 2006-08-23  Bruno Haible  <bruno@clisp.org>
57296
57297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57298         as unusable.
57299
57300         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57301         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57302         (gl_LOCK): New macro.
57303
57304 2006-08-22  Simon Josefsson  <jas@extundo.com>
57305
57306         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57307         to md5 module.
57308
57309 2006-08-22  Simon Josefsson  <jas@extundo.com>
57310
57311         * MODULES.html.sh: Add "Support for maintaining and release
57312         projects".
57313
57314         * build-aux/gnupload: New file, from coreutils.
57315
57316 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         Avoid the need for AC_LIBSOURCES in m4 macros.
57319         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57320         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57321         * modules/check-version (EXTRA_DIST): Add check-version.h.
57322         * modules/crc (EXTRA_DIST): Add crc.h.
57323         * modules/des (EXTRA_DIST): Add des.h.
57324         * modules/gc (EXTRA_DIST): Add gc.h.
57325         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57326         * modules/getline (EXTRA_DIST): Add getline.h.
57327         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57328         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57329         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57330         * modules/md2 (EXTRA_DIST): Add md2.h.
57331         * modules/md4 (EXTRA_DIST): Add md4.h.
57332         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57333         * modules/read-file (EXTRA_DIST): Add read-file.h.
57334         * modules/readline (EXTRA_DIST): Add readline.h.
57335         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57336         rijndael-api-fst.h.
57337
57338 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * m4/rijndael.m4 (gl_ARCFOUR):
57341         * m4/arctwo.m4 (gl_ARCTWO):
57342         * m4/check-version.m4 (gl_CHECK_VERSION):
57343         * m4/crc.m4 (gl_CRC):
57344         * m4/des.m4 (gl_DES):
57345         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57346         * m4/gc.m4 (gl_GC):
57347         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57348         * m4/getline.m4 (gl_FUNC_GETLINE):
57349         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57350         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57351         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57352         * m4/md2.m4 (gl_MD2):
57353         * m4/md4.m4 (gl_MD4):
57354         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57355         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57356         * m4/readline.m4 (gl_FUNC_READLINE):
57357         * m4/rijndael.m4 (gl_RIJNDAEL):
57358         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57359         to get the necessary .h files and whatnot.
57360
57361 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57364         gnulib rather than the other way around.
57365         * config/srclistvars.sh (COREUTILS): Remove.
57366
57367 2006-08-22  Jim Meyering  <jim@meyering.net>
57368
57369         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57370
57371         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57372
57373 2006-08-22  Eric Blake  <ebb9@byu.net>
57374
57375         * modules/regexprops-generic: New file.
57376         * MODULES.html.sh (Support for building documentation): List it.
57377
57378 2006-08-22  Eric Blake  <ebb9@byu.net>
57379
57380         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57381         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57382         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57383         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57384
57385 2006-08-22  Bruno Haible  <bruno@clisp.org>
57386
57387         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57388         and lib_LTLIBRARIES like the other lib_* variables.
57389
57390 2006-08-22  Bruno Haible  <bruno@clisp.org>
57391
57392         * build-aux/x-to-1.in: New file, from GNU gettext.
57393
57394 2006-08-22  Bruno Haible  <bruno@clisp.org>
57395
57396         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57397         <utmpx.h> exists.
57398
57399 2006-08-22  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57402         <utmpx.h> exists.
57403
57404 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         BeOS portability.
57407         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57408         exist.
57409         Problem reported by Bruno Haible.
57410
57411 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57412
57413         Avoid the need for AC_LIBSOURCES in m4 macros.
57414         * modules/acl (EXTRA_DIST): Add acl.h.
57415         * modules/argmatch (Files): Add m4/argmatch.m4.
57416         (configure.ac): Add gl_ARGMATCH.
57417         (EXTRA_DIST): Renamed from lib_SOURCES, for
57418         consistency with the other modules.  Remove argmatch.c.
57419         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57420         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57421         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57422         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57423         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57424         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57425         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57426         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57427         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57428         * modules/closeout (EXTRA_DIST): Add closeout.h.
57429         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57430         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57431         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57432         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57433         dirname.h; remove basename.c and stripslash.c.
57434         * modules/exclude (EXTRA_DIST): Add exclude.h.
57435         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57436         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57437         * modules/file-type (EXTRA_DIST): Add file-type.h.
57438         * modules/filemode (EXTRA_DIST): Add filemode.h.
57439         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57440         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57441         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57442         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57443         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57444         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57445         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57446         * modules/getdate (EXTRA_DIST): Add getdate.c.
57447         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57448         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57449         * modules/getpass (EXTRA_DIST): Add getpass.h.
57450         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57451         * modules/group-member (EXTRA_DIST): Add group-member.h.
57452         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57453         * modules/hash (EXTRA_DIST): Add hash.h.
57454         * modules/human (EXTRA_DIST): Add human.h.
57455         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57456         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57457         * modules/lchown (EXTRA_DIST): Add lchown.h.
57458         * modules/long-options (EXTRA_DIST): Add long-options.h.
57459         * modules/lstat (EXTRA_DIST): Add lstat.h.
57460         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57461         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57462         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57463         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57464         * modules/memxor (EXTRA_DIST): Add memxor.h.
57465         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57466         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57467         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57468         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57469         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57470         * modules/physmem (EXTRA_DIST): Add physmem.h.
57471         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57472         * modules/posixver (EXTRA_DIST): Add posixver.h.
57473         * modules/quote (EXTRA_DIST): Add quote.h.
57474         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57475         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57476         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57477         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57478         regex_internal.h regexec.c.
57479         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57480         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57481         * modules/same (EXTRA_DIST): Add same.h.
57482         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57483         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57484         * modules/savedir (EXTRA_DIST): Add savedir.h.
57485         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57486         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57487         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57488         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57489         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57490         * modules/strdup (EXTRA_DIST): Add strdup.h.
57491         * modules/strftime (EXTRA_DIST): Add strftime.h.
57492         * modules/strndup (EXTRA_DIST): Add strndup.h.
57493         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57494         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57495         * modules/time_r (EXTRA_DIST): Add time_r.h.
57496         * modules/timespec (EXTRA_DIST): Add timespec.h.
57497         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57498         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57499         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57500         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57501         * modules/userspec (EXTRA_DIST): Add userspec.h.
57502         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57503         * modules/utimens (EXTRA_DIST): Add utimens.h.
57504         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57505         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57506         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57507         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57508         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57509         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57510         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57511         * modules/yesno (EXTRA_DIST): Add yesno.h.
57512
57513 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57514
57515         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57516
57517         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57518         * m4/dev-ino.m4, same-inode.m4: Remove.
57519
57520         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57521         * m4/acl.m4 (AC_FUNC_ACL):
57522         * m4/backupfile.m4 (gl_BACKUPFILE):
57523         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57524         * m4/canon-host.m4 (gl_CANON_HOST):
57525         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57526         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57527         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57528         * m4/cloexec.m4 (gl_CLOEXEC):
57529         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57530         * m4/closeout.m4 (gl_CLOSEOUT):
57531         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57532         * m4/dirname.m4 (gl_DIRNAME):
57533         * m4/exclude.m4 (gl_EXCLUDE):
57534         * m4/exitfail.m4 (gl_EXITFAIL):
57535         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57536         * m4/file-type.m4 (gl_FILE_TYPE):
57537         * m4/filemode.m4 (gl_FILEMODE):
57538         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57539         * m4/fpending.m4 (gl_FUNC_FPENDING):
57540         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57541         * m4/fts.m4 (gl_FUNC_FTS):
57542         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57543         * m4/getdate.m4 (gl_GETDATE):
57544         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57545         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57546         * m4/getpass.m4 (gl_FUNC_GETPASS):
57547         * m4/gettime.m4 (gl_GETTIME):
57548         * m4/getugroups.m4 (gl_GETUGROUPS):
57549         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57550         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57551         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57552         * m4/hash.m4 (gl_HASH):
57553         * m4/idcache.m4 (gl_IDCACHE):
57554         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57555         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57556         * m4/long-options.m4 (gl_LONG_OPTIONS):
57557         * m4/lstat.m4 (gl_FUNC_LSTAT):
57558         * m4/md5.m4 (gl_MD5):
57559         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57560         * m4/memcoll.m4 (gl_MEMCOLL):
57561         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57562         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57563         * m4/memxor.m4 (gl_MEMXOR):
57564         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57565         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57566         * m4/modechange.m4 (gl_MODECHANGE):
57567         * m4/mountlist.m4 (gl_MOUNTLIST):
57568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57569         * m4/openat.m4 (gl_FUNC_OPENAT):
57570         * m4/pathmax.m4 (gl_PATHMAX):
57571         * m4/physmem.m4 (gl_PHYSMEM):
57572         * m4/posixtm.m4 (gl_POSIXTM):
57573         * m4/posixver.m4 (gl_POSIXVER):
57574         * m4/quote.m4 (gl_QUOTE):
57575         * m4/quotearg.m4 (gl_QUOTEARG):
57576         * m4/readtokens.m4 (gl_READTOKENS):
57577         * m4/readutmp.m4 (gl_READUTMP):
57578         * m4/regex.m4 (gl_REGEX):
57579         * m4/safe-read.m4 (gl_SAFE_READ):
57580         * m4/safe-write.m4 (gl_SAFE_WRITE):
57581         * m4/same.m4 (gl_SAME):
57582         * m4/save-cwd.m4 (gl_SAVE_CWD):
57583         * m4/savedir.m4 (gl_SAVEDIR):
57584         * m4/settime.m4 (gl_SETTIME):
57585         * m4/sha1.m4 (gl_SHA1):
57586         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57587         * m4/stat-macros.m4 (gl_STAT_MACROS):
57588         * m4/stat-time.m4 (gl_STAT_TIME):
57589         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57590         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57591         * m4/strdup.m4 (gl_FUNC_STRDUP):
57592         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57593         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57594         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57595         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57596         * m4/time_r.m4 (gl_TIME_R):
57597         * m4/timespec.m4 (gl_TIMESPEC):
57598         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57599         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57600         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57601         * m4/userspec.m4 (gl_USERSPEC):
57602         * m4/utimecmp.m4 (gl_UTIMECMP):
57603         * m4/utimens.m4 (gl_UTIMENS):
57604         * m4/xalloc.m4 (gl_XALLOC):
57605         * m4/xgetcwd.m4 (gl_XGETCWD):
57606         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57607         * m4/xreadlink.m4 (gl_XREADLINK):
57608         * m4/xstrtod.m4 (gl_XSTRTOD):
57609         * m4/yesno.m4 (gl_YESNO):
57610         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57611         to get the necessary .h files and whatnot.
57612
57613 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57614             Bruno Haible  <bruno@clisp.org>
57615
57616         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57617         /bin/sh understanding of '!' conditional negation.
57618
57619 2006-08-21  Jim Meyering  <jim@meyering.net>
57620
57621         * modules/openat (Depends-on): Really alphabetize.
57622
57623         * modules/acl (Depends-on): Add error and quote.
57624
57625         * check-module (find_included_lib_files): Add at-func.c to the
57626         ok-to-include-more-than-once white list.
57627
57628         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57629
57630 2006-08-21  Bruno Haible  <bruno@clisp.org>
57631
57632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57633         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57634         Reported by Martin Lambers <marlam@marlam.de>.
57635
57636 2006-08-21  Bruno Haible  <bruno@clisp.org>
57637
57638         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57639         specify an installation location, don't emit a noinst_LIBRARIES or
57640         noinst_LTLIBRARIES assignment.
57641
57642 2006-08-21  Bruno Haible  <bruno@clisp.org>
57643
57644         BeOS portability.
57645         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57646         BeOS has mbrtowc() but no <wctype.h>.
57647
57648 2006-08-21  Bruno Haible  <bruno@clisp.org>
57649
57650         BeOS portability.
57651         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57652         exist.
57653
57654 2006-08-21  Bruno Haible  <bruno@clisp.org>
57655
57656         BeOS portability.
57657         * lib/mbchar.h: Include <wctype.h> only if it exists.
57658
57659 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57660
57661         Remove files that are no longer needed by their respective modules.
57662         * m4/obstack.m4: Remove.
57663         * m4/strerror_r.m4: Remove.
57664         * m4/uint32_t.m4: Remove.
57665         * m4/uintptr_t.m4: Remove.
57666         * m4/ullong_max.m4: Remove.
57667         * m4/xstrtoimax.m4: Remove.
57668         * m4/xstrtoumax.m4: Remove.
57669
57670         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57671         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57672         dependencies now capture this.
57673
57674         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57675         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57676         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57677         * m4/human.m4 (gl_HUMAN): Likewise.
57678         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57679         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57680
57681         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57682
57683         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57684         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57685         stdint.
57686         * m4/human.m4 (gl_HUMAN): Likewise.
57687         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57688         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57689         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57690         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57691         * m4/xstrtol (gl_XSTRTOL): Likewise.
57692
57693         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57694         AC_TYPE_LONG_LONG_INT.
57695         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57696         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57697         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57698         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57699
57700         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57701         on stdbool.
57702
57703         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57704         (gl_PREREQ_XSTRTOUL): Remove.
57705
57706         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57707
57708         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57709         mode.
57710
57711 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         Add and change modules to make it easier for coreutils to use
57714         gnulib-tool.
57715         * modules/backupfile (Files): Remove m4/d-ino.m4.
57716         (Depends-on): Add d-ino.
57717         * modules/cycle-check (Depends-on): Add stdint.
57718         (lib_SOURCES): Add cycle-check.h.
57719         * modules/d-ino: New module.
57720         * modules/d-type: New module.
57721         * modules/error (Files): Remove m4/strerror_r.m4.
57722         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57723         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57724         m4/inttypes_h.m4, m4/uintmax_t.m4.
57725         (Depends-on): Add stdint.
57726         (lib_SOURCES): Add fsusage.h.
57727         * modules/getcwd (Files): Remove d-ino.m4.
57728         (Depends-on): Add d-ino.
57729         * modules/getndelim2 (Depends-on): Add stdint.
57730         * modules/glob (Files): Remove m4/d-type.m4.
57731         (Depends-on): Add d-type.
57732         * modules/host-os: New module.
57733         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57734         m4/inttypes_h.m4, m4/uintmax_t.m4.
57735         * Depends-on: Add stdint.
57736         (lib_SOURCES): Add human.h.
57737         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57738         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57739         m4/uintmax_t.m4, m4/ulonglong.m4.
57740         (Depends-on): Add stdint.
57741         (EXTRA_DIST): Add inttostr.h.
57742         * modules/lchmod: New module.
57743         * modules/link-follow: New module.
57744         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57745         (Depends-on): Add lchmod.
57746         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57747         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57748         (Depends-on): Add stdint.
57749         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57750         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57751         (Depends-on): Add stdint.
57752         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57753         * modules/perl: New module.
57754         * modules/regex (Depends-on): Add stdint.
57755         * modules/rmdir-errno: New module.
57756         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57757         m4/intmax_t.m4.
57758         (Depends-on): Add stdint.
57759         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57760         m4/uintmax_t.m4.
57761         (Depends-on): Add stdint.
57762         * modules/unlink-busy: New module.
57763         * modules/utimecmp (Depends-on): Add stdint.
57764         * modules/uptime: New module.
57765         * modules/winsz-ioctl: New module.
57766         * modules/winsz-termios: New module.
57767         * modules/xnanosleep (Depends-on): Add nanosleep.
57768         * modules/ullong_max: Remove.
57769         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57770         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57771         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57772         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57773         (Depends-on): Add inttypes.
57774         (lib_SOURCES): Add xstrtol.h.
57775         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57776         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57777         * MODULES.html.sh: Move 'assert' into the assert section.
57778         Move 'dummy' into the linking section.
57779         Remove ullong_max.
57780         Add section for compatibility checks for POSIX:2001 functions,
57781         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57782         winsz-ioctl, and winsz-termios into it.
57783         Add lchmod.
57784         Add top-level Misc section and put host-os, perl, and uptime
57785         into it.
57786
57787 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57788
57789         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57790         now assume the stdint module.  Do not include inttypes.h.
57791         * lib/fsusage.h: Likewise.
57792         * lib/getndelim2.c: Likewise.
57793         * lib/human.h: Likewise.
57794         * lib/inttostr.h: Likewise.
57795         * lib/obstack.c: Likewise.
57796         * lib/regex_internal.h: Likewise.
57797         * lib/tempname.c: Likewise.
57798         * lib/utimecmp.c: Likewise.
57799         * lib/xstrtol.h: Likewise.
57800
57801         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57802
57803         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57804         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57805         * lib/xtime.h: Likewise.
57806
57807 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57808
57809         * modules/openat (Files): Add lib/fchmodat.c.
57810         Fixes problem reported by Jay Youngman.
57811
57812 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57813
57814         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57815         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57816
57817 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57818             Bruno Haible  <bruno@clisp.org>
57819
57820         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57821         and is a script that invokes bison. Tighten the code. Add comments.
57822
57823 2006-08-18  Jim Meyering  <jim@meyering.net>
57824
57825         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57826         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57827         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57828         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57829
57830 2006-08-18  Bruno Haible  <bruno@clisp.org>
57831
57832         * modules/bison-i18n: New file.
57833         * MODULES.html.sh (Internationalization functions): Add it.
57834
57835 2006-08-18  Bruno Haible  <bruno@clisp.org>
57836
57837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57838         sys/statvfs.h. When getmntinfo was found, check its declaration and
57839         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57840
57841 2006-08-18  Bruno Haible  <bruno@clisp.org>
57842
57843         * m4/bison-i18n.m4: New file, from bison.
57844
57845 2006-08-18  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57848         (ME_DUMMY): Treat "kernfs" as a dummy.
57849         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57850
57851 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57852
57853         Update from coreutils.
57854
57855         2006-08-15  Jim Meyering  <jim@meyering.net>
57856
57857         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57858
57859         2006-01-17  Jim Meyering  <jim@meyering.net>
57860
57861         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57862
57863         2006-01-11  Jim Meyering  <jim@meyering.net>
57864
57865         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57866         Check for the lchmod function.
57867
57868 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57869
57870         Update from coreutils.
57871
57872         * lib/__fpending.h: Add copyright notice.
57873         * lib/fprintftime.h: Likewise.
57874         * lib/savedir.c: Use (C) in copyright notice.
57875         * lib/savedir.h: Likewise.
57876
57877         2006-08-15  Jim Meyering  <jim@meyering.net>
57878
57879         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57880         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57881         in support of the EXPECTED_ERRNO macro.
57882         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57883         definitions.  Instead, define the appropriate symbols and include
57884         "at-func.c".
57885         * lib/mkdirat.c (mkdirat): Likewise.
57886         * lib/fchmodat.c (fchmodat): Likewise.
57887         (ENOSYS): Remove definition.
57888         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57889         it.  Don't include "unistd--.h" -- it wasn't ever used.
57890
57891         2006-01-17  Jim Meyering  <jim@meyering.net>
57892
57893         Rewrite fts.c not to change the current working directory,
57894         by using openat, fstatat, fdopendir, etc..
57895
57896         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57897         (HAVE_OPENAT_SUPPORT): Define.
57898         [_LIBC] (fchdir): Don't undef or define; no longer used.
57899         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57900         Now, this `function' always succeeds, and consumes its file descriptor
57901         parameter -- so callers must not close such FDs.  Update callers.
57902         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57903         (diropen): Add parameter, SP.  Adjust all callers.
57904         Implement using diropen_fd, rather than open.
57905         (fts_open): Initialize new member, fts_cwd_fd.
57906         Remove fts_rft-setting code.
57907         (fts_close): Close fts_cwd_fd, if necessary.
57908         (__opendir2): Define in terms of opendir or opendirat,
57909         depending on whether the FST_NOCHDIR flag is set.
57910         (fts_build): Since fts_safe_changedir consumes its FD, and since
57911         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57912         and close the dup'd file descriptor upon failure.
57913         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57914         (fts_safe_changedir): Tweak semantics to reflect that this function
57915         now calls cwd_advance_fd and hence consumes its FD argument.
57916         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57917         [struct FTS] (fts_rft): Remove now-unused member.
57918         [struct FTS] (fts_cycle.state): Improve comment.
57919
57920         * lib/openat.c (openat_needs_fchdir): New function.
57921         * lib/openat.h (openat_needs_fchdir): Declare it.
57922
57923 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57926         Problem and fix reported by Pádraig Brady in
57927         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57928
57929 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57930
57931         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57932
57933 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         * lib/memcoll.c (memcoll): Optimize for the common case where the
57936         arguments are bytewise equal.
57937
57938 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57939
57940         * doc/regexprops-generic.texi: Add a copyright notice.
57941
57942 2006-08-15  Bruno Haible  <bruno@clisp.org>
57943
57944         * modules/tmpdir (License): Change to LGPL.
57945
57946 2006-08-15  Bruno Haible  <bruno@clisp.org>
57947
57948         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57949         module.
57950
57951 2006-08-14  Simon Josefsson  <jas@extundo.com>
57952
57953         * config/srclist.txt: Add gnupload.
57954
57955 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57956
57957         Change copyright notice from LGPL 2 to GPL 2, since that's the
57958         standard form used in the gnulib repository.
57959         * tests/test-lock.c: Likewise.
57960         * tests/test-stdint.c: Likewise.
57961         * tests/test-tls.c: Likewise.
57962
57963         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57964         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57965         Add copyright notice.
57966
57967         * check-module: Add copyright notice.  Output a copyright
57968         notice if "--version" is specified.
57969         * modules/COPYING: New file.
57970         * tests/test-getaddrinfo.c: Add copyright notice.
57971         * tests/test-verify.c: Likewise.
57972
57973 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57974
57975         Change copyright notice from LGPL 2 to GPL 2, since that's the
57976         standard form used in the gnulib repository.
57977         * lib/lock.c: LGPL -> GPL.
57978         * lib/lock.h: Likewise.
57979         * lib/strnlen1.c: Likewise.
57980         * lib/strnlen1.h: Likewise.
57981         * lib/tls.c: Likewise.
57982         * lib/tls.h: Likewise.
57983         * lib/tmpdir.c: Likewise.
57984
57985         * lib/TODO: Remove; this belongs only in coreutils.
57986
57987 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57988
57989         Add copyright notices to long-enough files that lack them, since
57990         otherwise the files aren't clearly free.  Use the same notice that
57991         getdate.texi already uses.
57992         * doc/alloca-opt.texi: Add copyright notice.
57993         * doc/alloca.texi: Likewise.
57994         * doc/ctime.texi: Likewise.
57995         * doc/functions.texi: Likewise.
57996         * doc/gcd.texi: Likewise.
57997         * doc/gnulib-tool.texi: Likewise.
57998         * doc/inet_ntoa.texi: Likewise.
57999         * doc/visibility.texi: Likewise.
58000
58001         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58002         * doc/quote.texi: Add copyright notice.
58003
58004         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58005         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58006         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58007         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58008         is now obsolete, and give a pointer to the Sun list.
58009         Add copyright notice.
58010
58011 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58012
58013         * config/srclistvars.sh: Add copyright notice.
58014
58015 2006-08-14  Eric Blake  <ebb9@byu.net>
58016
58017         Import the following change from libc:
58018
58019         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58020
58021         Upstream bug 2997.
58022         * lib/misc/error.c: Add space between program name and message if file
58023         name is missing.
58024
58025 2006-08-12  Karl Berry  <karl@gnu.org>
58026
58027         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58028         remove, these originate in gnulib now.
58029
58030 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58031
58032         * doc/Makefile (standards.info standards.html standards.dvi):
58033         Also depend on make-stds.texi.
58034
58035 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58036
58037         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58038         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58039
58040         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58041         in wchar_t.  Problem reported by Eric Blake.
58042
58043         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58044         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58045         Also, help the compiler to keep LEN in a register.
58046
58047 2006-08-11  Eric Blake  <ebb9@byu.net>
58048
58049         * users.txt: Sort.  Add tar.
58050
58051 2006-08-11  Bruno Haible  <bruno@clisp.org>
58052
58053         * users.txt: New file.
58054
58055 2006-08-11  Bruno Haible  <bruno@clisp.org>
58056
58057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58058         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58059
58060 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58061
58062         * modules/snprintf (Depends-on): Remove minmax.
58063         (Maintainer): Add self and Bruno.
58064
58065 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58066
58067         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58068         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58069         (EOVERFLOW): Define if the system does not.
58070         Do not include "minmax.h"; it wasn't used.
58071         (snprintf): Don't assume size_t promotes to an unsigned type.
58072         Fix bug when generated string was too long for the buffer: the
58073         buffer's contents are supposed to be the initial prefix of the
58074         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58075         exceeds INT_MAX; do the check ourselves.
58076
58077         Import the following changes from libc:
58078
58079         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58080
58081         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58082         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58083         set wc to the byte which couldn't be converted.
58084         (re_string_reconstruct): Don't clear valid_raw_len before calling
58085         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58086         tip_context using re_string_context_at.
58087
58088         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58089
58090         * lib/posix/regex.h: g++ still cannot handled [restrict].
58091
58092         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58093
58094         * lib/posix/regex.h: Remove special handling for VMS.
58095
58096 2006-08-10  Jim Meyering  <jim@meyering.net>
58097
58098         * modules/same-inode: New module.
58099         * modules/dev-ino: New module.
58100         * modules/cycle-check: Depend on these modules, rather than simply
58101         including their .h files.
58102         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58103         required via m4/cycle-check.m4.
58104         * modules/same: Depend on new same-inode module, rather than
58105         including same-inode.h.
58106         * modules/chdir-safer: New file.
58107
58108         * modules/chown (Depends-on): Add stat-macros.
58109
58110 2006-08-10  Jim Meyering  <jim@meyering.net>
58111
58112         * m4/cycle-check.m4: New file.
58113         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58114         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58115
58116 2006-08-10  Eric Blake  <ebb9@byu.net>
58117
58118         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58119         in from original proposal.
58120
58121 2006-08-10  Eric Blake  <ebb9@byu.net>
58122         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58123
58124         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58125         namespace.
58126
58127 2006-08-10  Bruno Haible  <bruno@clisp.org>
58128
58129         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58130         as well.
58131
58132 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         Sync from coreutils.
58135
58136         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58137
58138         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58139         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58140
58141 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58142
58143         * modules/restrict: Remove; no longer needed now that we assume
58144         Autoconf 2.59 or later.
58145         * MODULES.html.sh: Remove 'restrict'.
58146         * modules/argp (Depends-on): Remove 'restrict'.
58147         * modules/base64 (Depends-on): Likewise.
58148         * modules/gc (Depends-on): Likewise.
58149         * modules/getaddrinfo (Depends-on): Likewise.
58150         * modules/glob (Depends-on): Likewise.
58151         * modules/inet_ntop (Depends-on): Likewise.
58152         * modules/inet_pton (Depends-on): Likewise.
58153         * modules/memxor (Depends-on): Likewise.
58154         * modules/regex (Depends-on): Likewise.
58155         * modules/strtok_r (Depends-on): Likewise.
58156         * modules/time_r (Depends-on): Likewise.
58157
58158 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58161         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58162         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58163         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58164         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58165         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58166         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58167         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58168
58169         Merge from coreutils.
58170         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58171         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58172         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58173         * m4/time_r.m4 (gl_TIME_R): Likewise.
58174
58175 2006-08-09  Karl Berry  <karl@gnu.org>
58176
58177         * config/srclist.txt: no more gettext-tools, per Bruno.
58178
58179 2006-08-08  Eric Blake  <ebb9@byu.net>
58180
58181         * modules/verror: New module.
58182         * MODULES.html.sh: Document it.
58183
58184 2006-08-08  Eric Blake  <ebb9@byu.net>
58185
58186         * lib/verror.h, lib/verror.c: New files.
58187
58188 2006-08-08  Eric Blake  <ebb9@byu.net>
58189
58190         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58191         verror_at_line output complies with GNU Coding Standards even when
58192         file is NULL.
58193
58194 2006-08-07  Bruno Haible  <bruno@clisp.org>
58195
58196         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58197         versions of AIX.
58198         Reported by Ralf Wildenhues.
58199
58200 2006-08-07  Bruno Haible  <bruno@clisp.org>
58201
58202         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58203         in an AC_DEFUN. Needed so that the autoconf snippets can use
58204         AC_REQUIRE.
58205
58206 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58207
58208         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58209         Initialize pkgdata_DATA.
58210         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58211         overriding it.
58212
58213 2006-08-06  Eric Blake  <ebb9@byu.net>
58214
58215         * lib/error.h: Fold in some upstream changes from glibc.
58216         * lib/error.c: Likewise.
58217
58218 2006-08-04  Bruno Haible  <bruno@clisp.org>
58219
58220         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58221         Make the mostlyclean-local rule depend on mostlyclean-generic.
58222         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58223
58224 2006-07-31  Bruno Haible  <bruno@clisp.org>
58225
58226         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58227         <stdlib.h>, <string.h>.
58228
58229 2006-07-30  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/readlink (License): Change to LGPL.
58232
58233 2006-07-30  Bruno Haible  <bruno@clisp.org>
58234
58235         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58236         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58237         set PKGDATADIR to point to it.
58238
58239 2006-07-30  Bruno Haible  <bruno@clisp.org>
58240
58241         * modules/csharpexec (configure.ac): Comment out macro invocation.
58242         * modules/javaexec (configure.ac): Likewise.
58243         * modules/javacomp-script (configure.ac): Likewise.
58244
58245         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58246
58247 2006-07-30  Bruno Haible  <bruno@clisp.org>
58248
58249         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58250         linked-list.
58251
58252 2006-07-30  Bruno Haible  <bruno@clisp.org>
58253
58254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58255
58256 2006-07-30  Bruno Haible  <bruno@clisp.org>
58257
58258         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58259         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58260         get removed.
58261
58262 2006-07-29  Bruno Haible  <bruno@clisp.org>
58263
58264         Make it possible for gnulib-tool to work with locally modified or
58265         augmented gnulib repositories.
58266         * gnulib-tool (func_usage): Document --local-dir option.
58267         (local_gnulib_dir): New variable.
58268         Handle --local-dir option.
58269         (func_lookup_file): New function.
58270         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58271         (func_get_description, func_get_filelist, func_get_description,
58272         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58273         func_get_automake_snippet, func_get_include_directive,
58274         func_get_license, func_get_maintainer): Use func_lookup_file.
58275         (func_import, func_create_testdir): Use func_lookup_file.
58276
58277 2006-07-29  Bruno Haible  <bruno@clisp.org>
58278
58279         * modules/setenv (Depends-on): Add unistd.
58280
58281 2006-07-29  Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58284
58285 2006-07-29  Bruno Haible  <bruno@clisp.org>
58286
58287         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58288
58289 2006-07-29  Bruno Haible  <bruno@clisp.org>
58290
58291         * gnulib-tool (import, update): If there is no Makefile.am, look at
58292         aclocal.m4, instead of bailing out.
58293
58294 2006-07-29  Bruno Haible  <bruno@clisp.org>
58295
58296         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58297         Categorize the options by when they are useful.
58298
58299 2006-07-29  Bruno Haible  <bruno@clisp.org>
58300
58301         * gnulib-tool (func_usage): Document option --no-libtool.
58302         Handle option --no-libtool.
58303         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58304         for changed semantics of $libtool variable.
58305         (func_import): Likewise. If libtool is not used, show this through
58306         an option --no-libtool.
58307         (func_create_testdir): Update.
58308
58309 2006-07-29  Bruno Haible  <bruno@clisp.org>
58310
58311         * gnulib-tool (func_import): Extend error message about missing
58312         --doc-base.
58313
58314 2006-07-29  Bruno Haible  <bruno@clisp.org>
58315
58316         * gnulib-tool (func_import): Don't create the $docbase directory if
58317         there is no file to store there.
58318
58319 2006-07-29  Bruno Haible  <bruno@clisp.org>
58320
58321         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58322         relevant, look for configure.ac there, not in the current directory.
58323         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58324
58325 2006-07-29  Bruno Haible  <bruno@clisp.org>
58326
58327         * gnulib-tool (SORT): New variable.
58328         (func_usage): Undocument --assume-autoconf option.
58329         Remove --assume-autoconf option handling.
58330         (autoconf_minversion): Determine from the contents of configure.ac.
58331         (func_import): Remove autoconf_minversion handling.
58332         Suggested by Eric Blake.
58333
58334 2006-07-29  Bruno Haible  <bruno@clisp.org>
58335
58336         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58337
58338 2006-07-29  Bruno Haible  <bruno@clisp.org>
58339
58340         * config/srclist.txt (*setenv.[ch]): Remove rules.
58341
58342 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58343
58344         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58345
58346 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58347
58348         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58349         arpa/inet.h.
58350
58351 2006-07-28  Simon Josefsson  <jas@extundo.com>
58352
58353         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58354         * modules/inet_pton (Depends-on): Likewise.
58355
58356 2006-07-28  Simon Josefsson  <jas@extundo.com>
58357
58358         * m4/netinet_in_h.m4: New file.
58359
58360 2006-07-28  Simon Josefsson  <jas@extundo.com>
58361
58362         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58363         #include's.
58364
58365 2006-07-28  Simon Josefsson  <jas@extundo.com>
58366
58367         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58368         #include's.
58369
58370 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58371
58372         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58373         setgid on directories only if they set these bits.
58374         * lib/modechange.h: Remove obsolete comment about masks.
58375
58376 2006-07-28  Eric Blake  <ebb9@byu.net>
58377
58378         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58379         macro expansion.
58380
58381 2006-07-28  Bruno Haible  <bruno@clisp.org>
58382
58383         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58384
58385 2006-07-28  Bruno Haible  <bruno@clisp.org>
58386
58387         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58388
58389 2006-07-28  Bruno Haible  <bruno@clisp.org>
58390
58391         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58392         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58393         Define fallbacks.
58394         Avoids link error on FreeBSD 4.x.
58395         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58396
58397         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58398         encoding.
58399         * lib/mbswidth.c (iswcntrl): Likewise.
58400
58401 2006-07-27  Bruno Haible  <bruno@clisp.org>
58402
58403         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58404         test.
58405
58406 2006-07-27  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58409         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58410         defined.
58411
58412 2006-07-26  Eric Blake  <ebb9@byu.net>
58413
58414         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58415
58416 2006-07-26  Eric Blake  <ebb9@byu.net>
58417
58418         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58419         like mingw that lack mkstemp.
58420         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58421         avoid compilation warning on mingw.
58422
58423 2006-07-26  Bruno Haible  <bruno@clisp.org>
58424
58425         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58426         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58427         INT_FAST*_MIN, INTPTR_MIN.
58428
58429 2006-07-25  Bruno Haible  <bruno@clisp.org>
58430
58431         * modules/version-etc (Depends-on): Add stdarg.
58432
58433 2006-07-25  Bruno Haible  <bruno@clisp.org>
58434
58435         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58436         complex commands.
58437
58438 2006-07-25  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58441         defined in <stdarg.h> or config.h.
58442
58443 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58446         (gl_STDIO_SAFER): Remove.
58447
58448 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * MODULES.html.sh (File stream based Input/Output):
58451         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58452         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58453         * modules/fopen-safer, modules/tmpfile-safer: New files.
58454         * modules/stdio-safer: Remove.
58455
58456 2006-07-24  Bruno Haible  <bruno@clisp.org>
58457
58458         * modules/tmpdir: New file.
58459         * MODULES.html.sh (File system functions): Add it.
58460
58461 2006-07-24  Bruno Haible  <bruno@clisp.org>
58462
58463         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58464         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58465
58466 2006-07-24  Bruno Haible  <bruno@clisp.org>
58467
58468         * modules/clean-temp: New file.
58469
58470 2006-07-24  Bruno Haible  <bruno@clisp.org>
58471
58472         * m4/tmpdir.m4: New file, from GNU gettext.
58473
58474 2006-07-24  Bruno Haible  <bruno@clisp.org>
58475
58476         * lib/tmpdir.h: New file, from GNU gettext.
58477         * lib/tmpdir.c: New file, from GNU gettext.
58478
58479 2006-07-24  Bruno Haible  <bruno@clisp.org>
58480
58481         * lib/clean-temp.h: New file, from GNU gettext.
58482         * lib/clean-temp.c: New file, from GNU gettext.
58483
58484 2006-07-23  Eric Blake  <ebb9@byu.net>
58485
58486         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58487         (Depends-on): Add binary-io.
58488
58489 2006-07-23  Eric Blake  <ebb9@byu.net>
58490
58491         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58492
58493 2006-07-23  Eric Blake  <ebb9@byu.net>
58494
58495         * lib/tmpfile-safer.c: New file.
58496         * lib/stdio-safer.h (fopen_safer): Add prototype.
58497         * lib/stdio--.h (tmpfile): Make safer.
58498
58499 2006-07-23  Bruno Haible  <bruno@clisp.org>
58500
58501         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58502         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58503         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58504         gl_linked_remove_at): Use it.
58505
58506 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58507         and Simon Josefsson <jas@extundo.com>
58508
58509         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58510
58511         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58512
58513 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * modules/close-stream: New file.
58516         * modules/closeout (Description): Make it clear that it exits
58517         with a diagnostic on error.
58518         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58519         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58520
58521 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * m4/close-stream.m4: New file.
58524
58525 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * lib/close-stream.c, lib/close-stream.h: New files.
58528
58529 2006-07-22  Bruno Haible  <bruno@clisp.org>
58530
58531         Merge from GNU gettext 0.15.
58532
58533         2006-05-01  Bruno Haible  <bruno@clisp.org>
58534
58535                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58536
58537         2006-07-22  Bruno Haible  <bruno@clisp.org>
58538
58539                 * modules/javaversion: New file.
58540                 * MODULES.html.sh (Java): Add javaversion.
58541
58542         2006-03-12  Bruno Haible  <bruno@clisp.org>
58543
58544                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58545
58546         2005-12-04  Bruno Haible  <bruno@clisp.org>
58547
58548                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58549                 (untested).
58550
58551         2006-06-21  Bruno Haible  <bruno@clisp.org>
58552
58553                 Avoid warnings from recent versions of mcs.
58554                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58555                 -o, -L, -r any more. Use options documented since mcs-1.0
58556                 instead. Similarly for -g.
58557
58558         2005-12-04  Bruno Haible  <bruno@clisp.org>
58559
58560                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58561                 .resources, not .resource.
58562
58563         2005-07-09  Bruno Haible  <bruno@clisp.org>
58564
58565                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58566                 add a .dll suffix.
58567                 Reported by Mark Junker <mjscod@gmx.de>.
58568
58569         2006-07-22  Bruno Haible  <bruno@clisp.org>
58570
58571                 * modules/gettext: Upgrade to gettext-0.15.
58572                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58573                 m4/visibility.m4.
58574                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58575
58576 2006-07-22  Bruno Haible  <bruno@clisp.org>
58577
58578         Merge from GNU gettext 0.15.
58579
58580         2006-03-25  Bruno Haible  <bruno@clisp.org>
58581
58582                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58583
58584         2006-07-21  Bruno Haible  <bruno@clisp.org>
58585
58586                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58587                 "1.1".
58588
58589         2006-05-09  Bruno Haible  <bruno@clisp.org>
58590
58591                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58592                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58593                 for the conftestver execution.
58594
58595         2006-05-01  Bruno Haible  <bruno@clisp.org>
58596
58597                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58598                 optional target-version argument. Verify that the compiler
58599                 groks source of the specified source-version, or add -source
58600                 option as necessary. Verify that the compiler produces
58601                 bytecode in the specified target-version, or add -target and
58602                 -source options as necessary. Make the result of the test
58603                 available as variable CONF_JAVAC. Also log error output in
58604                 config.log.
58605
58606         2006-03-11  Bruno Haible  <bruno@clisp.org>
58607
58608                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58609
58610         2006-05-09  Bruno Haible  <bruno@clisp.org>
58611
58612                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58613                 CLASSPATH_SEPARATOR to a semicolon.
58614
58615         2006-03-12  Bruno Haible  <bruno@clisp.org>
58616
58617                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58618                 available as variable CONF_JAVA, for subsequent autoconf
58619                 tests. Also log error output in config.log.
58620
58621         2006-07-19  Bruno Haible  <bruno@clisp.org>
58622
58623                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58624                 that getline works on glibc2 systems. Needed to avoid trouble
58625                 in relocatable.c.
58626                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58627
58628         2005-12-04  Bruno Haible  <bruno@clisp.org>
58629
58630                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58631                 launcher (untested).
58632
58633         2005-12-04  Bruno Haible  <bruno@clisp.org>
58634
58635                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58636
58637         2006-07-22  Bruno Haible  <bruno@clisp.org>
58638
58639                 * gettext.m4: Update from GNU gettext-0.15.
58640                 * nls.m4: Likewise.
58641                 * po.m4: Likewise.
58642                 * inttypes-pri.m4: Likewise.
58643                 * inttypes-h.m4: Renamed from inttypes.m4.
58644                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58645
58646 2006-07-22  Bruno Haible  <bruno@clisp.org>
58647
58648         Merge from GNU gettext 0.15.
58649
58650         2005-07-05  Bruno Haible  <bruno@clisp.org>
58651
58652                 * printf-args.c (printf_fetchargs): Work around broken
58653                 definition of wint_t on mingw.
58654
58655         2005-02-12  Bruno Haible  <bruno@clisp.org>
58656
58657                 * xallocsa.h: Add extern "C" for C++.
58658
58659         2006-05-17  Bruno Haible  <bruno@clisp.org>
58660
58661                 Cygwin portability.
58662                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58663
58664         2006-04-30  Bruno Haible  <bruno@clisp.org>
58665
58666                 * progreloc.c: Include <mach-o/dyld.h> if available.
58667                 (find_executable): Use _NSGetExecutablePath when possible.
58668
58669         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58670
58671                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58672                 function.
58673
58674         2005-12-29  Bruno Haible  <bruno@clisp.org>
58675
58676                 * progreloc.c (set_program_name_and_installdir): Fix
58677                 compilation error.
58678
58679         2005-12-04  Bruno Haible  <bruno@clisp.org>
58680
58681                 Cygwin portability.
58682                 * progreloc.c: Include <windows.h> also on Cygwin.
58683                 (find_executable): Add support for Cygwin.
58684                 (set_program_name_and_installdir): Handle also platforms with
58685                 nonempty EXEEXT.
58686
58687         2006-07-11  Bruno Haible  <bruno@clisp.org>
58688
58689                 * javacomp.c: Fix a comment.
58690                 Reported by Jim Meyering.
58691
58692         2006-04-30  Bruno Haible  <bruno@clisp.org>
58693
58694                 * javacomp.h (compile_java_class): Add source_version,
58695                 target_version arguments.
58696                 * javacomp.c: Rewritten to choose only a compiler that
58697                 respects the specified source_version and target_version.
58698
58699         2006-06-27  Bruno Haible  <bruno@clisp.org>
58700
58701                 Assume correct S_ISDIR macro.
58702                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58703
58704         2006-07-22  Bruno Haible  <bruno@clisp.org>
58705
58706                 * javaversion.h: New file, from GNU gettext.
58707                 * javaversion.c: New file, from GNU gettext.
58708                 * javaversion.java: New file, from GNU gettext.
58709                 * javaversion.class: New file, from GNU gettext.
58710
58711         2006-05-17  Bruno Haible  <bruno@clisp.org>
58712
58713                 Cygwin portability.
58714                 * javaexec.c (execute_java_class): Test for jview program
58715                 also on Cygwin.
58716
58717         2006-04-09  Bruno Haible  <bruno@clisp.org>
58718
58719                 * fatal-signal.c: Don't include string.h.
58720                 (at_fatal_signal): Use a copying loop instead of memcpy.
58721
58722         2005-12-04  Bruno Haible  <bruno@clisp.org>
58723
58724                 * csharpexec.c: Add support for 'clix' launcher (untested).
58725                 (execute_csharp_using_sscli): New function.
58726                 (execute_csharp_program): Call it.
58727
58728         2006-06-21  Bruno Haible  <bruno@clisp.org>
58729
58730                 Avoid warnings from recent versions of mcs.
58731                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58732                 -o, -L, -r any more. Use options documented since mcs-1.0
58733                 instead. Similarly for -g.
58734
58735         2005-07-09  Bruno Haible  <bruno@clisp.org>
58736
58737                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58738                 add a .dll suffix.
58739                 Reported by Mark Junker <mjscod@gmx.de>.
58740
58741         2006-06-17  Bruno Haible  <bruno@clisp.org>
58742
58743                 * config.charset: Update for NetBSD 3.0.
58744
58745         2006-05-17  Bruno Haible  <bruno@clisp.org>
58746
58747                 Cygwin portability.
58748                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58749
58750         2006-05-16  Bruno Haible  <bruno@clisp.org>
58751
58752                 * localcharset.c [CYGWIN]: Include <windows.h>.
58753                 (get_charset_aliases): For Cygwin, return the same CPxxx
58754                 aliases list as under WIN32.
58755                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58756                 the environment variables. Fall back to GetACP().
58757
58758         2006-04-05  Bruno Haible  <bruno@clisp.org>
58759
58760                 * config.charset: Update Juan Manuel Guerrero's address.
58761
58762         2005-02-12  Bruno Haible  <bruno@clisp.org>
58763
58764                 * allocsa.h: Add extern "C" for C++.
58765
58766         2005-02-10  Bruno Haible  <bruno@clisp.org>
58767
58768                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58769                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58770
58771         2006-07-22  Bruno Haible  <bruno@clisp.org>
58772
58773                 * gettext.h: Update to GNU gettext-0.15.
58774
58775 2006-07-22  Bruno Haible  <bruno@clisp.org>
58776
58777         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58778         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58779         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58780
58781 2006-07-21  Eric Blake  <ebb9@byu.net>
58782
58783         * modules/stdlib-safer: New file.
58784         * MODULES.html.sh (File stream based Input/Output): Add
58785         stdlib-safer.
58786
58787 2006-07-21  Eric Blake  <ebb9@byu.net>
58788
58789         * lib/stdlib-safer.h: New file from coreutils, required by
58790         stdlib--.h.
58791
58792 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58793
58794         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58795
58796 2006-07-20  Bruno Haible  <bruno@clisp.org>
58797
58798         * gnulib-tool: Recognize new option --assume-autoconf.
58799         (autoconf_minversion): New variable.
58800         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58801
58802 2006-07-20  Bruno Haible  <bruno@clisp.org>
58803
58804         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58805
58806 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58807
58808         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58809         Reindent and repaginate.
58810
58811 2006-07-19  Derek Price  <derek@ximbiot.com>
58812
58813         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58814         Correct grammar.
58815
58816 2006-07-17  Bruno Haible  <bruno@clisp.org>
58817
58818         * modules/list: New file.
58819         * modules/array-list: New file.
58820         * modules/carray-list, modules/carray-list-tests: New files.
58821         * modules/linked-list, modules/linked-list-tests: New files.
58822         * modules/avltree-list, modules/avltree-list-tests: New files.
58823         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58824         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58825         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58826         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58827         * modules/oset: New file.
58828         * modules/array-oset: New file.
58829         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58830         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58831         * tests/test-carray_list.c: New file.
58832         * tests/test-linked_list.c: New file.
58833         * tests/test-avltree_list.c: New file.
58834         * tests/test-rbtree_list.c: New file.
58835         * tests/test-linkedhash_list.c: New file.
58836         * tests/test-avltreehash_list.c: New file.
58837         * tests/test-rbtreehash_list.c: New file.
58838         * tests/test-avltree_oset.c: New file.
58839         * tests/test-rbtree_oset.c: New file.
58840         * MODULES.html.sh (Container data structures): New section.
58841
58842 2006-07-17  Bruno Haible  <bruno@clisp.org>
58843
58844         * m4/gl_list.m4: New file.
58845
58846 2006-07-17  Bruno Haible  <bruno@clisp.org>
58847
58848         * lib/gl_list.h: New file.
58849         * lib/gl_list.c: New file.
58850         * lib/gl_array_list.h: New file.
58851         * lib/gl_array_list.c: New file.
58852         * lib/gl_carray_list.h: New file.
58853         * lib/gl_carray_list.c: New file.
58854         * lib/gl_linked_list.h: New file.
58855         * lib/gl_linked_list.c: New file.
58856         * lib/gl_anylinked_list1.h: New file.
58857         * lib/gl_anylinked_list2.h: New file.
58858         * lib/gl_avltree_list.h: New file.
58859         * lib/gl_avltree_list.c: New file.
58860         * lib/gl_anyavltree_list1.h: New file.
58861         * lib/gl_anyavltree_list2.h: New file.
58862         * lib/gl_rbtree_list.h: New file.
58863         * lib/gl_rbtree_list.c: New file.
58864         * lib/gl_anyrbtree_list1.h: New file.
58865         * lib/gl_anyrbtree_list2.h: New file.
58866         * lib/gl_anytree_list1.h: New file.
58867         * lib/gl_anytree_list2.h: New file.
58868         * lib/gl_linkedhash_list.h: New file.
58869         * lib/gl_linkedhash_list.c: New file.
58870         * lib/gl_anyhash_list1.h: New file.
58871         * lib/gl_anyhash_list2.h: New file.
58872         * lib/gl_avltreehash_list.h: New file.
58873         * lib/gl_avltreehash_list.c: New file.
58874         * lib/gl_rbtreehash_list.h: New file.
58875         * lib/gl_rbtreehash_list.c: New file.
58876         * lib/gl_anytreehash_list1.h: New file.
58877         * lib/gl_anytreehash_list2.h: New file.
58878
58879         * lib/gl_oset.h: New file.
58880         * lib/gl_oset.c: New file.
58881         * lib/gl_array_oset.h: New file.
58882         * lib/gl_array_oset.c: New file.
58883         * lib/gl_avltree_oset.h: New file.
58884         * lib/gl_avltree_oset.c: New file.
58885         * lib/gl_rbtree_oset.h: New file.
58886         * lib/gl_rbtree_oset.c: New file.
58887         * lib/gl_anytree_oset.h: New file.
58888
58889 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58890
58891         * m4/mkancesdirs.m4: New file.
58892         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58893         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58894         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58895         it.
58896
58897 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58898
58899         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58900         * lib/mkancesdirs.h: New files.
58901         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58902         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58903         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58904         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58905         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58906         callers changed.  Revamp internals significantly, by not
58907         attempting to create directories that are temporarily more
58908         permissive than the final results.  Do not attempt to use
58909         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58910         This removes some race conditions, fixes some bugs, and simplifies
58911         things.  Use new dirchownmod function to do owner and mode changes.
58912         * lib/mkdir-p.h: Likewise.
58913         * lib/modechange.c (octal_to_mode): New function.
58914         (struct mode_change): New member mentioned.
58915         (make_node_op_equals): New arg mentioned.  All callers changed.
58916         (mode_compile): Keep track of which mode bits the user has explicitly
58917         mentioned.
58918         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58919         New arg PMODE_BITS, to keep track of which mode bits the user
58920         mentioned; it treats S_ISUID and S_ISGID speciall.
58921         All callers changed.
58922         * lib/modechange.h: Likewise.
58923
58924 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58925
58926         * MODULES.html.sh: Add mkancestors.
58927         * modules/mkancesdirs: New module.
58928         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58929         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58930         The chdir-safer and afs files are now orphans; I'll remove them
58931         unless someone speaks up.
58932         Add lib/dirchownmod.c, lib/dirchownmod.h.
58933         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58934         Add lchown, mkancesdirs.
58935         (Maintainer): Add self.
58936
58937 2006-07-15  Karl Berry  <karl@gnu.org>
58938
58939         * gnulib-tool: help message wording/arrangement.
58940
58941 2006-07-14  Simon Josefsson  <jas@extundo.com>
58942
58943         * doc/gnulib.texi (Libtool and Windows): New section.
58944
58945 2006-07-12  Simon Josefsson  <jas@extundo.com>
58946
58947         * modules/gendocs (License): Fix license, approved by Karl.
58948
58949 2006-07-12  Eric Blake  <ebb9@byu.net>
58950
58951         * MODULES.html.sh: Add gendocs.
58952
58953 2006-07-11  Eric Blake  <ebb9@byu.net>
58954
58955         * modules/fdl: New module, to install doc/fdl.texi.
58956         * MODULES.html.sh: Add new section for documentation modules.
58957         * gnulib-tool: Avoid space-tab.
58958         (--doc-base): New option, to manage files from doc.
58959
58960 2006-07-11  Eric Blake  <ebb9@byu.net>
58961
58962         * m4/absolute-header.m4: Fix comments to match recent change.
58963
58964 2006-07-11  Eric Blake  <ebb9@byu.net>
58965
58966         * gnulib-tool: List --doc-base before --tests-base.
58967
58968 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58969
58970         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58971
58972 2006-07-11  Bruno Haible  <bruno@clisp.org>
58973
58974         * README: Mention where to put documentation.
58975
58976 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58977
58978         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58979
58980 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58981
58982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58983         to stdint.m4.
58984
58985 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58986
58987         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58988         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58989         "no/such/file/stdint.h" when there is no such file, so that
58990         the resulting C code can be parsed by dodgy compilers.
58991         Problems reported by Bob Proulx.
58992
58993 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58994
58995         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58996         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58997         macros into the GNU _D_EXACT_NAMLEN.
58998         * lib/savedir.c:  Likewise.
58999         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59000
59001 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59002         and Paul Eggert  <eggert@cs.ucla.edu>
59003
59004         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59005         * m4/savedir.m4:
59006         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59007         macros into the GNU _D_EXACT_NAMLEN.
59008
59009 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59010
59011         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59012         around the absolute name, to work around a problem with the HP-UX
59013         11.23 native C compiler, reported by Bob Proulx.
59014
59015 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59016
59017         * doc/maintain.texi, make-stds.texi: Sync from
59018         <http://savannah.gnu.org/projects/gnustandards>.
59019
59020 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59021
59022         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59023
59024 2006-07-09  Jim Meyering  <jim@meyering.net>
59025
59026         * m4/glob.m4: Remove a doubled word in a comment.
59027
59028 2006-07-09  Jim Meyering  <jim@meyering.net>
59029
59030         * lib/argp-pv.c: Remove a doubled word in a comment.
59031         * lib/check-version.c (check_version): Likewise.
59032         * lib/javacomp.c (compile_java_class): Likewise.
59033
59034 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59037         for the benefit of people using Autoconf 2.60.  If you want to
59038         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59039         (or m4/onceonly.m4, if pre-2.57) manually.
59040
59041 2006-07-08  Jim Meyering  <jim@meyering.net>
59042
59043         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59044         comment.
59045         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59046         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59047         comment.
59048
59049 2006-07-08  Jim Meyering  <jim@meyering.net>
59050
59051         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59052
59053 2006-07-07  Simon Josefsson  <jas@extundo.com>
59054
59055         * tests/test-crc.c: Change expected crc value, the test vector
59056         were probably computed using the old broken crc.c?
59057
59058 2006-07-06  Simon Josefsson  <jas@extundo.com>
59059
59060         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59061         now the canonical place for the M4 file).
59062
59063         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59064         from the sys_socket dependency now.
59065
59066         * modules/inet_pton (Files): Ditto.
59067
59068         * modules/inet_ntop (Files): Ditto.
59069
59070 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59071
59072         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59073         not gl_PREREQ_GETUSERSHELL.
59074
59075 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59076
59077         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59078         with only one argument, for Autoconf 2.60.
59079         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59080         expand to nothing, so add a shell command to avoid syntax error.
59081         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59082
59083 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59084
59085         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59086
59087 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59090         no longer needed.  Check for isblank decl.
59091         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59092         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59093         of existence.
59094
59095 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59096
59097         * lib/getloadavg.c: Use __VMS, not VMS.
59098         * lib/getopt.c: Likewise.
59099         * lib/getpagesize.h: Likewise.
59100         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59101         and probably does not work.
59102
59103 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59104
59105         * lib/.cppi-disable: Add wcwidth.
59106         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59107         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59108         (ISGRAPH): Remove.  All uses changed to isgraph.
59109         (FOLD) [!defined _LIBC]: Remove special case.
59110         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59111         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59112         HAVE_ISBLANK.
59113         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59114         case.
59115
59116 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59117
59118         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59119         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59120         brackets.  Other minor changes to suppress some compiler
59121         warnings.
59122
59123 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59124         and Paul Eggert  <eggert@cs.ucla.edu>
59125
59126         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59127         of invoking obsolescent AC_HEADER_DIRENT macro.
59128         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59129         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59130         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59132         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59133         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59134         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59135         * m4/readdir.m4: Remove; no longer needed.
59136
59137 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59138         and Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59141         Don't worry about this obsolete case any more.
59142         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59143         directories.
59144         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59145         worry about this obsolete case any more.
59146         * lib/fts.c: Likewise.
59147         * lib/getcwd.c: Likewise.
59148         * lib/glob.h: Likewise.
59149         * lib/savedir.c: Likewise.
59150
59151 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59152
59153         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59154         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59155         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59156         needed.
59157         All uses removed.
59158         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59159         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59160         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59161         needed.
59162         * m4/getdate.m4 (gl_GETDATE): Likewise.
59163         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59164         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59165         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59166         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59167         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59168         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59169         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59170         needed.
59171
59172 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         * lib/memcasecmp.c: Include <limits.h>.
59175         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59176         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59177         Don't assume isdigit succeeds only on '0' through '9'.
59178
59179 2006-07-05  Eric Blake  <ebb9@byu.net>
59180
59181         * modules/getaddrinfo (Depends-on): Add snprintf.
59182
59183 2006-07-05  Eric Blake  <ebb9@byu.net>
59184
59185         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59186         to avoid 'header present but could not be compiled' on cygwin.
59187
59188 2006-07-05  Eric Blake  <ebb9@byu.net>
59189
59190         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59191         missing from netdb.h.
59192         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59193
59194 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59195
59196         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59197         no longer needed.
59198         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59199         * m4/getdate.m4 (gl_GETDATE): Likewise.
59200         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59201         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59202         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59203         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59204         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59205
59206 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59207
59208         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59209         All uses of is_space replaced by isspace.
59210         * lib/exit.h: Don't talk about STDC_HEADERS.
59211         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59212         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59213         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59214         replaced by isprint etc.
59215         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59216         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59217         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59218         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59219         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59220         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59221
59222 2006-07-05  Bruno Haible  <bruno@clisp.org>
59223
59224         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59225         the function exists, before testing against AIX.
59226         Reported by Martin Lambers <marlam@marlam.de>.
59227
59228 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59229
59230         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59231         From Mark D. Baushke.
59232
59233 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59236         to the absolute name, not just one, to bypass Sun C 5.8's
59237         "warning: #include of /usr/include/... may be non-portable".
59238
59239 2006-07-04  Eric Blake  <ebb9@byu.net>
59240
59241         * modules/dirname-tests: New test module.
59242         * tests/test-dirname.c: New file, replacing dirname.c
59243         TEST_DIRNAME section that was recently deleted.
59244
59245 2006-07-04  Bruno Haible  <bruno@clisp.org>
59246
59247         Assume ANSI C header files and <ctype.h> functions.
59248         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59249         (mbsnwidth): Use isprint, iscntrl instead.
59250
59251 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59252
59253         Merge from coreutils.
59254         * MODULES.html.sh: Add xstrtold.
59255         * modules/xstrtold: New file.
59256         * modules/cycle-check (Files): Add lib/same-inode.h.
59257         * modules/dirname (Files): Add m4/double-slash-root.m4.
59258         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59259         * modules/mkdir-p (Files): Add lib/same-inode.h.
59260         * modules/same (Files): Add lib/same-inode.h.
59261
59262 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59265         This is to keep the terminology clean; POSIX talks about
59266         "absolute pathnames", not "full pathnames", but the GNU
59267         Coding Standards say to use "path" for something else;
59268         so use "absolute" to keep both sides happy.
59269         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59270         Set gl_absolute_header, not gl_full_header_path.
59271         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59272         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59273         All uses changed.
59274
59275         Merge from coreutils.
59276
59277         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59280         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59281         want to require the building of c-strtod.o.
59282         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59283         needs -lm directly.
59284         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59285
59286         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59287
59288         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59289         --as-needed option if available.  Problem reported by Albert Chin in
59290         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59291         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59292         cc merely issues a bunch of annoying warnings for --as-needed
59293         (this problem was reported by Bob Proulx).  Also, try linking with
59294         -lm to detect a bug in binutils 2.16 (this problem was reported
59295         by Ralf Wildenhues).
59296
59297         2006-06-18  Jim Meyering  <jim@meyering.net>
59298
59299         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59300         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59301         macro.
59302         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59303         also check for glibc-2.4's abort-inducing bug.
59304
59305         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59306         Low-probability clean-up should be to use rmdir to get rid of
59307         the just-created directory, not unlink.
59308
59309         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59310         configure fail, and request a bug report to inform us about it.
59311         Add a comment that, barring reports to the contrary, in 2007 we'll
59312         assume ftruncate is universally available.
59313
59314         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59315
59316         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59317
59318         2006-03-12  Jim Meyering  <jim@meyering.net>
59319
59320         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59321         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59322         * m4/same.m4 (gl_SAME): Likewise.
59323         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59324
59325         2006-03-11  Eric Blake  <ebb9@byu.net>
59326
59327         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59328         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59329         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59330         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59331
59332 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59333
59334         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59335         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59336         reported by Mark D. Baushke, one in
59337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59338
59339         Merge from coreutils.
59340
59341         * lib/.cppi-disable: Add stdint_.h.
59342         * lib/.cvsignore: Add stdint.h.
59343
59344         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59345
59346         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59347         both double and long double versions.
59348         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59349         * lib/xstrtold.c: New file.
59350         * lib/xstrtod.h (xstrtold): New decl.
59351
59352         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         * lib/filemode.c (setst): Remove.
59355         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59356         (arguably) clearer, and the generated code is a bit smaller on my
59357         Debian GNU/Linux stable x86 host.
59358
59359         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59360
59361         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59362         Assume that filemode.h includes sys/types.h and sys/stat.h.
59363         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59364         (ftypelet): Reorder to put common cases first, for efficiency.
59365         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59366         to do 'M'.
59367         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59368         of 10, for compatibility with FreeBSD.  All callers changed.
59369         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59370         types that can't be deduced solely from st_mode.  First arg is now a
59371         const pointer.
59372         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59373         (strmode): Renamed from mode_string.
59374         (filemodestring): New decl.
59375         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59376         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59377         needed.
59378         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59379
59380         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59381
59382         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59383         fsusage.h now does that.  Include fsusage.h first, to test interface.
59384         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59385         at most one method (the old code could have generated decls that
59386         didn't conform to C89, not that this was ever exercised).
59387         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59388
59389         2006-03-19  Jim Meyering  <jim@meyering.net>
59390
59391         Work even in a chroot where d_ino values for entries in "/"
59392         don't match the stat.st_ino values for the same names.
59393         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59394         number, iterate through all entries again, using lstat instead.
59395         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59396         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59397
59398         * lib/getcwd.c (__getcwd): Clarify a comment.
59399         Use memcpy in place of a call to strcpy.
59400
59401         2006-03-12  Jim Meyering  <jim@meyering.net>
59402
59403         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59404         matches that of the current directory (which we're about to chdir ".."
59405         out of), then save the dev-ino of the parent, instead.
59406
59407         * lib/same-inode.h (SAME_INODE): New file/macro.
59408         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59409         Include "same-inode.h", instead.
59410         * lib/same.c: Likewise.
59411         * lib/cycle-check.h: Include "same-inode.h".
59412         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59413         * lib/cycle-check.c (SAME_INODE): Remove definition.
59414         * lib/root-dev-ino.h: Include "same-inode.h".
59415
59416         2006-03-11  Eric Blake  <ebb9@byu.net>
59417
59418         * lib/same.c (same_name): s/base_name/last_component/
59419         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59420         * lib/filenamecat.c (file_name_concat): Likewise.
59421
59422         2006-03-11  Eric Blake  <ebb9@byu.net>,
59423                     Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59426         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59427         drive prefix.
59428         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59429         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59430         (last_component): New method.
59431         * lib/dirname.c (dir_len): Determine when drive letters need a
59432         subsequent slash.  Preserve // when it is special.
59433         (dir_name): Don't append dot when drive letter is absolute.
59434         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59435         * lib/basename.c (base_name): New semantics - malloc the result.
59436         Preserve // when it is special.  Preserve relative files that look
59437         like drive letters.
59438         (base_len): Preserve // when it is special.
59439         (last_component): New method, similar to old base_name semantics.
59440         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59441         base_name.  Strip redundant slashes from ///.
59442
59443 2006-07-03  Jim Meyering  <jim@meyering.net>
59444
59445         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59446         macro is used before the first cycle_check call.
59447
59448 2006-07-03  Eric Blake  <ebb9@byu.net>
59449
59450         * modules/dirname (Depends-on): Add xstrndup.
59451
59452 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59455         test cases, so that config.log is a bit easier to follow.
59456
59457 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59460         both are 64 bits, since this seems to be the tradition, and this
59461         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59462         we ever run into a host that prefers long long to long in this
59463         case, we'll need another configure-time test.  Problem reported by
59464         Jim Meyering.
59465
59466 2006-07-02  Eric Blake  <ebb9@byu.net>
59467
59468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59469
59470 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59471
59472         * modules/inttypes (Depends-on): No longer depends on stdint.
59473         * modules/stdint (Description): Say more about assumptions.
59474         Say that the fast types might differ.  Say macros are used.
59475         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59476         (Makefile.am): Revise list of substituted symbols to match
59477         new stdint.m4.
59478         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59479         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59480         * tests/test-stdint.c (verify_same_types)
59481         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59482         the code conforms to C99/C89.
59483         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59484         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59485
59486 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59489         but fix a bug, by requiring at least 64 bits.
59490         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59491         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59492         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59493         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59494
59495         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59496         changes.  Make 2.59 a prerequisite.  Check and substitute for
59497         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59498         inttypes.h.  Do not use special include files; just use the
59499         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59500         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59501         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59502         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59503         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59504         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59505         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59506         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59507         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59508         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59509         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59510         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59511         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59512         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59513         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59514         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59515         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59516         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59517         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59518         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59519         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59520         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59521         not check for things that C99 does not require, e.g., int8_t.  If
59522         a test isn't needed unless <stdint.h> isn't working, and is
59523         unlikely to be needed for any other reason, then don't do it
59524         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59525         size_t, since we assume C89 freestanding at least.  Do not check
59526         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59527         the right thing even if the types are not defined.  Instead use:
59528         (gl_STDINT_TYPE_PROPERTIES): New macro.
59529         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59530         testing whether <sys/types.h> clashes, as Autoconf does this for
59531         us now.  All uses removed.
59532         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59533         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59534         (gl_CHECK_TYPE_SAME):
59535         Remove; no longer needed.
59536         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59537         exists, since we'll return 0 anyway in that case.
59538         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59539
59540 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59543         possible collision with system files.
59544         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59545         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59546         WCHAR_MIN and WCHAR_MAX in this case.
59547         (<stddef.h>): Do not include; no longer needed.
59548         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59549         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59550         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59551         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59552         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59553         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59554         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59555         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59556         !defined(__c99))]: Include in this case too, since it's harmless
59557         now.
59558         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59559         dangerous to do so.
59560         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59561         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59562         (_STDINT_MIN, _STDINT_MAX): New macros.
59563         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59564         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59565         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59566         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59567         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59568         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59569         macros, not typedefs; this simplifies things quite a bit.
59570         Use long int for all types narrower than int64_t.
59571         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59572         Define in terms of long long int or int64_t or long int,
59573         not int64_t or int32_t.  This saves some compile-time testing.
59574         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59575         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59576         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59577         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59578         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59579         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59580         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59581         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59582         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59583         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59584         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59585         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59586         undef any previous version and define our own version, for
59587         simplicity and consistency with the new macros for types.
59588         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59589         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59590         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59591         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59592         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59593         @WINT_T_SUFFIX@ to keep things simple here.
59594         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59595         Simplify by assuming typical 8/16/32/64 host, since we're
59596         already doing that elsewhere anyway.
59597         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59598         and assume long long int is 64 bits if available.  This
59599         speeds up 'configure'.
59600
59601 2006-07-01  Eric Blake  <ebb9@byu.net>
59602
59603         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59604         Reported by Andreas Buening.
59605
59606 2006-07-01  Eric Blake  <ebb9@byu.net>
59607
59608         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59609
59610 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59611
59612         * lib/getaddrinfo.c: fixed typo
59613
59614 2006-06-29  Jim Meyering  <jim@meyering.net>
59615
59616         * modules/strftime (Maintainer): Add my name, since with the
59617         FPRINTFTIME changes strftime.c has forked from glibc.
59618
59619 2006-06-29  Eric Blake  <ebb9@byu.net>
59620
59621         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59622
59623 2006-06-29  Eric Blake  <ebb9@byu.net>
59624
59625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59626
59627 2006-06-29  Eric Blake  <ebb9@byu.net>
59628
59629         * lib/stat_.h: New file.
59630
59631 2006-06-29  Eric Blake  <ebb9@byu.net>
59632
59633         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59634         unused static function.
59635
59636 2006-06-29  Eric Blake  <ebb9@byu.net>
59637
59638         * doc/functions.texi (Function Portability): Document missing lstat
59639         on mingw.
59640
59641 2006-06-29  Eric Blake  <ebb9@byu.net>
59642
59643         * MODULES.html.sh: Add sys_stat.
59644         * modules/sys_stat: New module.
59645         * modules/mkstemp (Depends-on): Add sys_stat.
59646
59647 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59648
59649         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59650
59651 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59652
59653         * m4/c-bs-a.m4: Removed.
59654
59655 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59656
59657         * lib/strftime.c: Assume strftime() exists.
59658
59659 2006-06-29  Derek Price  <derek@ximbiot.com>
59660
59661         * modules/c-bs-a: Removed - \a is C89.
59662         * MODULES.html.sh: Remove c-bs-a.
59663
59664 2006-06-29  Bruno Haible  <bruno@clisp.org>
59665
59666         * modules/wcwidth (License): Change to LGPL.
59667
59668 2006-06-28  Simon Josefsson  <jas@extundo.com>
59669
59670         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59671         on _WIN32.
59672
59673         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59674         getnameinfo.
59675
59676 2006-06-28  Simon Josefsson  <jas@extundo.com>
59677
59678         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59679
59680 2006-06-28  Simon Josefsson  <jas@extundo.com>
59681
59682         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59683         functions there.  It will succeed on Windows XP, but on Windows
59684         2000 and (presumably) earlier, it will fail, and use the internal
59685         re-implementation.
59686         (use_win32_p): New function.
59687         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59688         Support AI_NUMERICSERV to disable getservbyname.
59689         (getnameinfo): New function, only supports
59690         NI_NUMERICHOST|NI_NUMERICSERV for now.
59691
59692         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59693         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59694         getnameinfo.
59695
59696 2006-06-28  Eric Blake  <ebb9@byu.net>
59697
59698         * modules/wcwidth: New file.
59699         * modules/mbchar (Depends-on): Add wcwidth.
59700         * modules/mbswidth (Depends-on): Add wcwidth.
59701         * MODULES.html.sh: Add wcwidth.
59702
59703 2006-06-28  Eric Blake  <ebb9@byu.net>
59704
59705         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59707
59708 2006-06-28  Eric Blake  <ebb9@byu.net>
59709
59710         * lib/xvasprintf.h: Fix comments.
59711
59712 2006-06-28  Eric Blake  <ebb9@byu.net>
59713
59714         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59715         * lib/mbswidth.c (wcwidth): Move from here...
59716         * lib/wcwidth.h: ...to this new file.
59717
59718 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59719
59720         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59721
59722         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59723         it's obsolete.
59724         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59725
59726 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59727
59728         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59729         Autoconf 2.60 says this stuff was obsolete.
59730
59731 2006-06-28  Bruno Haible  <bruno@clisp.org>
59732
59733         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59734
59735 2006-06-28  Bruno Haible  <bruno@clisp.org>
59736
59737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59738         gt_TYPE_WCHAR_T.
59739
59740 2006-06-28  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59743         declaration for wcwidth.
59744         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59745
59746 2006-06-28  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59749         (mkdir): Define using _mkdir.
59750
59751 2006-06-28  Bruno Haible  <bruno@clisp.org>
59752
59753         * lib/getaddrinfo.h: Fix POSIX URL.
59754         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59755         _WIN32.
59756         (use_win32_p): Make static.
59757         (getaddrinfo): Reject service name if it is empty or does not consist
59758         solely of decimal digits, or if its value is > 65535.
59759         (getnameinfo): Remove useless casts.
59760
59761 2006-06-27  Simon Josefsson  <jas@extundo.com>
59762
59763         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59764         Eggert and Martin Lambers.
59765
59766 2006-06-27  Simon Josefsson  <jas@extundo.com>
59767
59768         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59769         Eggert and Martin Lambers.
59770
59771 2006-06-27  Bruno Haible  <bruno@clisp.org>
59772
59773         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59774         result to 0, not to empty.
59775         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59776
59777 2006-06-27  Bruno Haible  <bruno@clisp.org>
59778
59779         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59780
59781 2006-06-26  Simon Josefsson  <jas@extundo.com>
59782
59783         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59784         present.
59785
59786 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59789         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59790         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59791
59792 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59793
59794         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59795
59796 2006-06-26  Bruno Haible  <bruno@clisp.org>
59797
59798         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59799
59800 2006-06-26  Bruno Haible  <bruno@clisp.org>
59801
59802         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59803
59804 2006-06-26  Bruno Haible  <bruno@clisp.org>
59805
59806         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59807         SGI C compiler in pre-C99 mode.
59808         Suggested by Mark D. Baushke and Larry Jones.
59809
59810 2006-06-26  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59813         WCHAR_MAX.
59814         Reported by Mark D. Baushke and Larry Jones.
59815
59816 2006-06-26  Bruno Haible  <bruno@clisp.org>
59817
59818         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59819         in pre-C99 mode.
59820         Suggested by Mark D. Baushke and Larry Jones.
59821
59822 2006-06-23  Simon Josefsson  <jas@extundo.com>
59823             Bruno Haible  <bruno@clisp.org>
59824
59825         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59826         Emit mostlyclean-local rule.
59827         (func_emit_tests_Makefile_am): Likewise.
59828         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59829
59830 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59831
59832         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59833
59834 2006-06-23  Bruno Haible  <bruno@clisp.org>
59835
59836         * tests/test-stdint.c: Update to match ISO C 99 Technical
59837         Corrigendum 1.
59838
59839 2006-06-23  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59842
59843 2006-06-23  Bruno Haible  <bruno@clisp.org>
59844
59845         * lib/stdint_.h: Treat IRIX like OpenBSD.
59846
59847 2006-06-23  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59850         ISO C 99 Technical Corrigendum 1.
59851
59852 2006-06-22  Simon Josefsson  <jas@extundo.com>
59853
59854         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59855         MinGW.
59856
59857 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59858
59859         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59860         needed.  Some compiler complained about some of them.  Problem reported
59861         by Larry Jones in
59862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59863
59864 2006-06-21  Simon Josefsson  <jas@extundo.com>
59865
59866         * tests/test-getaddrinfo.c: New file.
59867
59868         * modules/getaddrinfo-tests: New file.
59869
59870         * MODULES.html.sh: Add inet_pton.
59871
59872         * modules/inet_pton: New file.
59873
59874 2006-06-21  Simon Josefsson  <jas@extundo.com>
59875
59876         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59877         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59878         of using the (limited) gnulib implementation on Windows XP.
59879
59880         * m4/inet_pton.m4: New file.
59881
59882 2006-06-21  Simon Josefsson  <jas@extundo.com>
59883
59884         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59885         variable.
59886
59887         * lib/socket_.h: Don't define WINVER.
59888
59889         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59890         slightly modified to work in gnulib.
59891
59892 2006-06-21  Simon Josefsson  <jas@extundo.com>
59893
59894         * doc/gnulib.texi (Windows sockets): Add.
59895
59896 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59897
59898         * lib/read-file.c (fread_file): Start with buffer allocation of
59899         0 bytes rather than 1 byte; this simplifies the code.
59900         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59901         code to free buffer and save/restore errno.
59902         (internal_read_file): Remove unused local.
59903
59904 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59907         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59908         Problem reported by Denis Excoffier in
59909         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59910
59911 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59912
59913         * modules/sys_socket, modules/socklen: Include sys/types since
59914         FreeBSD 4.x's sys/socket.h needs it.
59915
59916 2006-06-19  Simon Josefsson  <jas@extundo.com>
59917
59918         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59919
59920 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59921
59922         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59923
59924 2006-06-19  Bruno Haible  <bruno@clisp.org>
59925
59926         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59927         and FULL_PATH_INTTYPES_H in angle brackets.
59928         Reported by Mark D. Baushke <mdb@gnu.org>.
59929
59930 2006-06-17  Eric Blake  <ebb9@byu.net>
59931
59932         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59933         errno.
59934
59935 2006-06-17  Bruno Haible  <bruno@clisp.org>
59936
59937         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59938         <sys/inttypes.h>.
59939
59940 2006-06-17  Bruno Haible  <bruno@clisp.org>
59941
59942         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59943         whether errno is declared. Assume <errno.h> declares errno.
59944
59945 2006-06-17  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59948
59949 2006-06-17  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59952         problem on Solaris 2.5.1.
59953
59954 2006-06-16  Eric Blake  <ebb9@byu.net>
59955
59956         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59957         * lib/unicodeio.c [!defined errno]: Likewise.
59958         * lib/strtol.c [!defined errno]: Likewise.
59959         * lib/strtod.c [!defined errno]: Likewise.
59960
59961 2006-06-15  Eric Blake  <ebb9@byu.net>
59962
59963         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59964
59965 2006-06-15  Eric Blake  <ebb9@byu.net>
59966
59967         * config/srclist.txt (ssize_t.m4): Lose sync.
59968
59969 2006-06-15  Bruno Haible  <bruno@clisp.org>
59970
59971         * modules/stdint (Files): Include m4/full-header-path.m4,
59972         m4/size_max.m4, m4/wchar_t.m4.
59973         (Makefile.am): Many more substitutions.
59974         * modules/stdint-tests: New file.
59975         * tests/test-stdint.c: New file.
59976
59977 2006-06-15  Bruno Haible  <bruno@clisp.org>
59978
59979         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59980         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59981         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59982         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59983         gl_CHECK_TYPE_SAME): New macros.
59984
59985 2006-06-15  Bruno Haible  <bruno@clisp.org>
59986
59987         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59988
59989 2006-06-15  Bruno Haible  <bruno@clisp.org>
59990
59991         * lib/stdint_.h: Rewritten to be fully auto-configured.
59992         Fixes bug on HP-UX/IA64.
59993
59994 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * lib/getdate.y (__attribute__): Don't define if already defined.
59997         Problem reported by Larry Jones.
59998         * lib/utimens.c (__attribute__): Likewise.
59999
60000 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60003         reported by Andreas Schwab.
60004
60005 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60006             Bruno Haible  <bruno@clisp.org>
60007
60008         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60009         check for the declaration of strnlen and a run test that exposes the
60010         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60011         rpl_strndup.
60012
60013 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60014             Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60017
60018 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60019
60020         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60021         compile test, for Tru64 4.0D.
60022
60023 2006-05-28  Karl Berry  <karl@gnu.org>
60024
60025         * config/srclist.txt (printf-args.c): lose sync.
60026
60027 2006-05-26  Martin Lambers  <marlam@marlam.de>
60028
60029         * lib/getpass.c: Updates the test for the native W32 API, and adds
60030         missing includes, thus fixing compilation warnings.
60031
60032 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60033
60034         * lib/exclude.c (exclude_fnmatch): New function.
60035         (excluded_file_name): Call exclude_fnmatch.
60036         * lib/exclude.h (excluded_file_name): New prototype
60037
60038 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60039
60040         * lib/tempname.c (small_open, large_open): New macros.
60041         (__open, __open64) [!_LIBC]: Remove.
60042         (__gen_tempname): Use small_open and large_open instead of __open
60043         and __open64.  This fixes a portability bug on HP-UX 11.11i
60044         reported by Simon Wing-Tang in
60045         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60046
60047 2006-05-24  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60050         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60051         Reported by Thorsten Maerz <torte@netztorte.de> via
60052         Aaron Stone <aaron@serendipity.cx>.
60053
60054 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60057         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60058         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60059         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60060         not really conditional on the cache.
60061         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60062
60063 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60066         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60067         (my_usleep): Don't mishandle maximum value.
60068
60069 2006-05-19  Jim Meyering  <jim@meyering.net>
60070
60071         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60072
60073 2006-05-17  Bruno Haible  <bruno@clisp.org>
60074
60075         Cygwin portability.
60076         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60077
60078 2006-05-17  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/stdint_.h: Fix recognition of Cygwin.
60081
60082 2006-05-15  Bruno Haible  <bruno@clisp.org>
60083
60084         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60085         on libtool patch by Ralf Wildenhues.
60086
60087 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60090         test for C99 conformance; (bool) 0.5 is an integer constant
60091         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60092         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60093
60094 2006-05-11  Simon Josefsson  <jas@extundo.com>
60095
60096         * m4/xvasprintf.m4: Fix obvious typo.
60097
60098 2006-05-11  Jim Meyering  <jim@meyering.net>
60099
60100         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60101         James Lemley.
60102
60103 2006-05-10  Simon Josefsson  <jas@extundo.com>
60104
60105         * lib/md4.c: Typo fix, update copyright years.
60106         (K1, K2): Don't use L because it turn computations into 64-bit on
60107         64-bit platforms.
60108
60109 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60110
60111         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60112         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60113         unwanted sign propagation, e.g., on hosts with 64-bit int.
60114         There still are some problems with reeelly weird theoretical hosts
60115         (e.g., 33-bit int) but it's not worth worrying about now.
60116         * lib/sha1.c (rol): Likewise.
60117         (K1, K2, K3, K4): Remove unnecessary L suffix.
60118
60119 2006-05-10  Bruno Haible  <bruno@clisp.org>
60120
60121         * lib/des.c: Cast to avoid warnings.
60122
60123 2006-05-09  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60126         (Depends-on): Depend also on xsize, stdarg.
60127         (configure.ac): Add gl_XVASPRINTF.
60128
60129 2006-05-09  Bruno Haible  <bruno@clisp.org>
60130
60131         * m4/xvasprintf.m4: New file.
60132
60133 2006-05-09  Bruno Haible  <bruno@clisp.org>
60134
60135         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60136         (EOVERFLOW): Define fallback value.
60137         (xstrcat): New function.
60138         (xvasprintf): Recognize the special case of a string concatenation.
60139
60140 2006-05-08  Eric Blake  <ebb9@byu.net>
60141
60142         * gnulib-tool (func_version): Base copyright year on CVS date.
60143         (func_emit_copyright_notice): New function.
60144         (func_emit_lib_Makefile_am): Use it.
60145         (func_emit_tests_Makefile_am): Likewise.
60146         (func_import): Likewise.
60147
60148 2006-05-08  Bruno Haible  <bruno@clisp.org>
60149
60150         * modules/stdarg: New file.
60151         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60152
60153 2006-05-08  Bruno Haible  <bruno@clisp.org>
60154
60155         * m4/stdarg.m4: New file, from GNU gettext.
60156
60157 2006-05-08  Bruno Haible  <bruno@clisp.org>
60158
60159         * config/srclist.txt (build-aux/config.rpath): different from latest
60160         release.
60161
60162 2006-05-08  Bruno Haible  <bruno@clisp.org>
60163
60164         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60165
60166 2006-05-05  Jim Meyering  <jim@meyering.net>
60167
60168         * m4/warning.m4: New file, derived from bison's file by the same name.
60169
60170 2006-05-03  Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/stdint_.h: Shorter URL.
60173         * lib/inttypes.h: Likewise.
60174
60175 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60178
60179 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60180
60181         * lib/verify.h: Document the internals better.  Most of this change
60182         was written by Bruno Haible.
60183
60184 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60185
60186         * doc/verify.texi: New file, partly based on a proposal by
60187         Bruno Haible.
60188
60189 2006-05-02  Bruno Haible  <bruno@clisp.org>
60190
60191         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60192         test from here...
60193         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60194
60195 2006-04-29  Bruno Haible  <bruno@clisp.org>
60196
60197         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60198         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60199
60200 2006-04-29  Bruno Haible  <bruno@clisp.org>
60201
60202         * gnulib-tool: Make --update option actually work.
60203
60204 2006-04-29  Bruno Haible  <bruno@clisp.org>
60205
60206         * doc/gcd.texi: New file.
60207         * doc/gnulib.texi: Include it.
60208
60209 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60210
60211         * lib/getdate.y (get_date): When adding relative date, start with the
60212         initial time, not with the result of the first mktime call.
60213
60214 2006-04-25  Bruno Haible  <bruno@clisp.org>
60215
60216         * gnulib-tool (func_import): Output the include directives in three
60217         blocks, sorted separately.
60218         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60219
60220 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60221
60222         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60223         to define main with arguments, for C++.  Reported by Eric Blake.
60224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60225         Prefer 'int main ()' to 'int main (void)', for C++.
60226         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60228         for 'main', for C99 and C++.
60229
60230 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60233         Don't assume that exit status -1 is valid.
60234         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60235         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60236         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60237         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60238         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60239         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60240         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60241         functions can be used without declaring them, or that you can
60242         exit with status -1.
60243         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60244
60245 2006-04-24  Karl Berry  <karl@gnu.org>
60246
60247         * config/srclist.txt (longdouble.m4): sync lost.
60248
60249 2006-04-24  Eric Blake  <ebb9@byu.net>
60250
60251         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60252
60253 2006-04-24  Bruno Haible  <bruno@clisp.org>
60254
60255         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60256         poll() implementation in AIX.
60257         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60258
60259 2006-04-24  Bruno Haible  <bruno@clisp.org>
60260
60261         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60262         assigned exactly once.
60263
60264 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60265             Bruno Haible  <bruno@clisp.org>
60266
60267         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60268         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60269         for AM_CPPFLAGS.
60270
60271 2006-04-23  Bruno Haible  <bruno@clisp.org>
60272
60273         * modules/copy-file: Depend on unistd.
60274         * modules/execute: Likewise.
60275         * modules/fatal-signal: Likewise.
60276         * modules/findprog: Likewise.
60277         * modules/mkdtemp : Likewise.
60278         * modules/pipe: Likewise.
60279         * modules/wait-process: Likewise.
60280
60281 2006-04-23  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60284         condition was already detected.
60285         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60286
60287 2006-04-23  Bruno Haible  <bruno@clisp.org>
60288
60289         * lib/copy-file.c: Include <unistd.h> unconditionally.
60290         * lib/execute.c: Likewise.
60291         * lib/fatal-signal.c: Likewise.
60292         * lib/findprog.c: Likewise.
60293         * lib/mkdtemp.c: Likewise.
60294         * lib/pipe.h: Likewise.
60295         * lib/pipe.c: Likewise.
60296         * lib/wait-process.h: Likewise.
60297
60298 2006-04-23  Bruno Haible  <bruno@clisp.org>
60299
60300         * gnulib-tool (func_usage): Fix --import description. Document
60301         --update.
60302         (func_import): Create temporary file in a temporary directory, if
60303         --dry-run is specified. Silence errors from 'grep' when there are no
60304         m4 files in $m4dir.
60305         (func_create_testdir): Silence errors from 'grep' when there are no
60306         m4 files in $m4dir.
60307         Reported by Karl Berry <karl@freefriends.org>.
60308
60309 2006-04-20  Bruno Haible  <bruno@clisp.org>
60310
60311         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60312         one argument, so that the code will be portable to Autoconf 2.60.
60313         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60314         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60315         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60316
60317 2006-04-19  Derek Price  <derek@ximbiot.com>
60318             Eric Blake  <ebb9@byu.net>
60319
60320         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60321         rather than "/full/path.h".  Update comment to match.  Shorten &
60322         generalize m4_translit call via AS_TR_CPP.
60323
60324 2006-04-19  Derek Price  <derek@ximbiot.com>
60325             Eric Blake  <ebb9@byu.net>
60326
60327         * lib/inttypes.h: Correct grammar in comment.
60328
60329 2006-04-18  Derek Price  <derek@ximbiot.com>
60330             Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * modules/inttypes: New file.
60333         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60334
60335 2006-04-18  Derek Price  <derek@ximbiot.com>
60336             Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60339         New files.
60340
60341 2006-04-18  Derek Price  <derek@ximbiot.com>
60342             Paul Eggert  <eggert@cs.ucla.edu>
60343
60344         * lib/inttypes.h: New file.
60345         * lib/strtoimax.c: Assume <inttypes.h>.
60346
60347 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60348
60349         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60350         isn't mounted.  Problem reported by Kir Kolyshkin.
60351
60352 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60355         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60356         Derek R. Price.
60357         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60358         implementation.
60359
60360 2006-04-12  Eric Blake  <ebb9@byu.net>
60361
60362         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60363         is now done automatically by the corresponding Autoconf macro.
60364
60365 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60368         time_r.h.
60369
60370 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         Merge regex changes from libc, removing some of our
60373         POSIX-conformance changes that were rejected and redoing them in a
60374         less-intrusive way.
60375
60376         * lib/regcomp.c (re_compile_internal, init_dfa):
60377         Length arg is now size_t, not Idx.  All uses changed.
60378         (peek_token): Forward decl now says internal_function.
60379         (__re_error_msgid, __re_error_msgid_idx):
60380         Now static rather than extern with attribute_hidden.
60381         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60382         For some reason libc prefers K&R style defns for external functions.
60383         (regerror) [!defined _LIBC]: Likewise.
60384         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60385         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60386         (build_range_exp, build_collating_symbol):
60387         Use K&R-style defn.
60388         (re_compile_fastmap): Use '\0' to memset, not 0.
60389         (utf8_sb_map): Make the calculations more obvious.
60390         (init_dfa, parse_bracket_exp, build_charclass_op):
60391         Call calloc and cast result, as glibc does.
60392         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60393         (build_range_exp, build_collating_symbol):
60394         Now internal functions.
60395
60396         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60397
60398         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60399         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60400         Don't depend on VMS; depend on __VMS instead, for POSIX
60401         namespace cleanness.
60402         (regoff_t): Define to ssize_t, not long int.
60403
60404         Remove the REG_ macros named below.  Instead, make the old names
60405         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60406         __USE_GNU_REGEX.
60407         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60408         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60409         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60410         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60411         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60412         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60413         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60414         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60415         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60416         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60417         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60418         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60419         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60420         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60421         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60422         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60423         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60424         (REG_NREGS):
60425         Remove.  All uses replaced by the old RE_* names.
60426         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60427         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60428         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60429         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60430         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60431         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60432         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60433         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60434         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60435         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60436         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60437         Don't bother having these macros be independent of each others'
60438         values, since they no longer exist in the POSIX name space.
60439
60440         Rename the following member names back to their old names,
60441         unless !__USE_GNU_REGEX.  All uses changed back.
60442         (buffer): Renamed from re_buffer.
60443         (allocated): Renamed from re_allocated.
60444         (used): Renamed from re_used.
60445         (syntax): Renamed from re_syntax.
60446         (fastmap): Renamed from re_fastmap.
60447         (translate): Renamed from re_translate.
60448         (can_be_null): Renamed from re_can_be_null.
60449         (regs_allocated): Renamed from re_regs_allocated.
60450         (fastmap_accurate): Renamed from re_fastmap_accurate.
60451         (no_sub): Renamed from re_no_sub.
60452         (not_bol): Renamed from re_not_bol.
60453         (not_eol): Renamed from re_not_eol.
60454         (newline_anchor): Renamed from re_newline_anchor.
60455         (num_regs): Renamed from rm_num_regs.
60456         (start): Renamed from rm_start.
60457         (end): Renamed from rm_end.
60458
60459         (free_state): Move up a bit.
60460
60461         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60462         #define to be empty.
60463         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60464         when that is what is intended.
60465         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60466         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60467         (MAX): New macro.
60468         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60469         All uses changed back to re_malloc, etc.  It's now the caller's
60470         responsibility to check for overflow; all callers changed.
60471         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60472         (re_x2nrealloc): Remove.
60473         (free_state): Remove decl.
60474
60475         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60476         (re_set_registers, re_exec):
60477         Use K&R-style defn.
60478
60479         2006-01-31  Roland McGrath  <roland@redhat.com>
60480
60481         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60482         Reported by Mike Frysinger <vapier@gentoo.org>.
60483
60484         2006-01-15  Andreas Jaeger  <aj@suse.de>
60485
60486         [BZ #1950]
60487         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60488         build_wcs_upper_buffer change.
60489         (build_wcs_upper_buffer): Change return type.
60490
60491         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60492
60493         * lib/regex_internal.h: Include <stdint.h> if available.
60494
60495         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60496
60497         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60498
60499         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60500
60501         * lib/regcomp.c: Adjust for changed secondary hash function.
60502
60503         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60504
60505         * lib/regex.h: Pretty printing.
60506         Clean up namespace a bit.
60507
60508         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60509
60510         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60511         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60512
60513         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60514                     Ulrich Drepper  <drepper@redhat.com>
60515
60516         [BZ #1302]
60517         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60518         changed.
60519         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60520
60521         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60522
60523         [BZ #281]
60524         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60525         * lib/regcomp.c: Remove unnecessary uses of
60526         unsigned RE_TRANSLATE_TYPE.
60527         * lib/regex_internal.h: Likewise.
60528         * lib/regex_internal.c: Likewise.
60529         * lib/regexec.c: Likewise.
60530         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60531
60532         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60533
60534         * lib/regexec.c (find_recover_state): Remove unnecessary
60535         initialization.
60536         (transit_state_bkref): Make DFA a const pointer.
60537         (get_subexp): Likewise.
60538         (check_arrival): Likewise.
60539         (update_cur_sifted_state): Likewise.
60540         (re_search_internal): Likewise.
60541         (prune_impossible_nodes): Likewise.
60542         (acquire_init_state_context): Likewise.
60543         (proceed_next_node): Likewise.
60544         (set_regs): Likewise.
60545         (free_fail_stack_return): Likewise.
60546         (check_arrival_expand_ecl): Mark DFA parameter as const.
60547         (check_arrival_expand_ecl_sub): Likewise.
60548         (check_subexp_limits): Likewise.
60549         (sub_epsilon_src_nodes):  Likewise.
60550         (add_epsilon_src_nodes):  Likewise.
60551         (merge_state_array): Likewise.
60552         (update_regs): Likewise.
60553         (build_trtable): Likewise.
60554         (sift_states_backward): Mark MCTX parameter as const.
60555         (build_sifted_states): Likewise.
60556         (update_cur_sifted_state): Likewise.
60557         (sift_states_mkref): Likewise.
60558         (check_arrival_expand_ecl): Mark eclosure as const.
60559         (check_dst_limits_calc_pos_1): Likewise.
60560         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60561         pointer.
60562
60563         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60564
60565         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60566         (transit_state_sb): Likewise.
60567         (transit_state_mb): Likewise.
60568         (sift_states_iter_mb): Likewise.
60569         (check_arrival_add_next_nodes): Likewise.
60570         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60571         [_LIBC] (re_search_2_stub): Use mempcpy.
60572
60573         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60574         mbrtowc for very simple UTF-8 case.
60575
60576         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60577         a pointer-to-const.
60578         (re_acquire_state_context): Likewise.
60579         * lib/regex_internal.h: Adjust prototypes.
60580
60581         * lib/regex.c: Prevent using C++ compilers.
60582
60583         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60584         (re_acquire_state_context): Likewise.
60585
60586 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60587
60588         * modules/regex (Depends-on): Add ssize_t.
60589
60590 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60591
60592         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60593         translation table.
60594
60595 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60596
60597         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60598
60599 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60600             Bruno Haible  <bruno@clisp.org>
60601
60602         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60603         <sys/types.h> and <inttypes.h>.
60604
60605 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60606
60607         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60608         `__error_t_defined', so argp.h will not typedef the former.
60609
60610 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60613         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60614         glibc names.  Even if glibc is changed to conform to POSIX, the
60615         traditional names will be available anyway, since regex depends on
60616         the extensions module.  Also, fix a longstanding typo in the
60617         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60618         reported by Emanuele Giaquinta.  Also, change sense of cached
60619         variable, so that the message makes sense.
60620
60621 2006-03-24  Simon Josefsson  <jas@extundo.com>
60622
60623         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60624         including some doc fixes.
60625         (base64_encode_alloc): Fix +1 bug on allocation failures.
60626
60627 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60628
60629         * lib/base64.c (base64_encode): Do not read past end of array with
60630         unsanitized input on systems with CHAR_BIT > 8.
60631
60632 2006-03-24  Eric Blake  <ebb9@byu.net>
60633
60634         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60635
60636 2006-03-22  Karl Berry  <karl@gnu.org>
60637
60638         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60639         * config/srclistvars.sh (COREUTILS): new var.
60640
60641 2006-03-17  Jim Meyering  <jim@meyering.net>
60642
60643         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60644         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60645
60646 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60647
60648         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60649         no longer needs it.  Instead, check that regoff_t is as least
60650         as wide as ptrdiff_t.
60651
60652         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60653         so that our regex.h stays compatible with the installed regex.
60654         This is helpful for installers who configure --without-included-regex.
60655         Problem reported by Emanuele Giaquinta.
60656
60657 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60660         Typedef to long int, not to off_, as POSIX will likely change
60661         in that direction.
60662
60663 2006-03-15  Eric Blake  <ebb9@byu.net>
60664
60665         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60666
60667 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60668
60669         * lib/argp-help.c (validate_uparams): Fix typo
60670         * lib/argp-parse.c (argp_default_options): Consistently begin help
60671         messages with a lowercase letter.
60672
60673 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60676         overrun buffers and shouldn't be used (much as gets shouldn't be
60677         used).
60678         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60679
60680 2006-03-08  Simon Josefsson  <jas@extundo.com>
60681
60682         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60683         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60684
60685 2006-03-08  Simon Josefsson  <jas@extundo.com>
60686
60687         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60688         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60689
60690 2006-03-08  Simon Josefsson  <jas@extundo.com>
60691
60692         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60693         signal that configure disabled the device.
60694
60695 2006-03-08  Simon Josefsson  <jas@extundo.com>
60696
60697         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60698         languages.
60699
60700 2006-03-07  Simon Josefsson  <jas@extundo.com>
60701
60702         * modules/getopt (Depends-on): Add unistd.
60703
60704         * modules/unistd: New file.
60705
60706 2006-03-07  Simon Josefsson  <jas@extundo.com>
60707
60708         * modules/gc-random: New file.
60709
60710 2006-03-07  Simon Josefsson  <jas@extundo.com>
60711
60712         * m4/unistd_h.m4: New file.
60713
60714 2006-03-07  Simon Josefsson  <jas@extundo.com>
60715
60716         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60717         test to be side-effect free by storing the result in the cache
60718         variable gl_cv_lib_readline, and moving the assignment of
60719         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60720         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60721
60722 2006-03-07  Simon Josefsson  <jas@extundo.com>
60723
60724         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60725         error on missing devices (the functions will return an error).
60726
60727         * m4/gc.m4: Move random stuff to gc-random.m4
60728
60729 2006-03-07  Simon Josefsson  <jas@extundo.com>
60730
60731         * lib/unistd_.h: New file.
60732
60733 2006-03-07  Simon Josefsson  <jas@extundo.com>
60734
60735         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60736
60737 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60740         Problem reported by Juan Manuel Guerrero.
60741
60742 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60743
60744         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60745         the unistd module.
60746         * lib/getlogin_r.c: Likewise.
60747         * lib/getlogin_r.h: Likewise.
60748         * lib/glob.c: Likewise.
60749         * lib/pagealign_alloc.c: Likewise.
60750         * lib/unistd_.h: Remove; no longer needed.
60751
60752 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60753
60754         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60755         Add unistd.
60756         * modules/c-stack (Depends-on): Add unistd.
60757         * modules/getlogin_r: Likewise.
60758         * modules/glob: Likewise.
60759         * modules/pagealign_alloc: Likewise.
60760         * modules/unistd (Files): Remove lib/unistd_.h.
60761         (EXTRA_DIST): Remove.
60762         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60763         need unistd_.h.
60764         (MOSTLYCLEANFILES): Remove unistd.h-t.
60765
60766 2006-03-03  Simon Josefsson  <jas@extundo.com>
60767
60768         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60769
60770 2006-03-03  Simon Josefsson  <jas@extundo.com>
60771
60772         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60773         libidn and bison.
60774
60775 2006-03-03  Simon Josefsson  <jas@extundo.com>
60776
60777         * build-aux/maint.mk: Add indent target.
60778
60779 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60780
60781         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60782         our replacement poll.h in any case, to avoid a differing
60783         declaration from a system header.  Seen on AIX.
60784
60785 2006-03-01  Simon Josefsson  <jas@extundo.com>
60786
60787         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60788         <kasal@ucw.cz>.
60789
60790 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60791
60792         * modules/gettime (Depends-on): Add extensions module.
60793         * modules/nanosleep (Depends-on): Likewise.
60794         * modules/settime (Depends-on): Likewise.
60795
60796 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60797
60798         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60799         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60800         pedantically.
60801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60802         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60803
60804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60805         not "==".  Reported by Ralf Wildenhues.
60806
60807 2006-03-01  Karl Berry  <karl@gnu.org>
60808
60809         * doc/Copyright/request-*: new files, synced from gnuorg.
60810
60811 2006-03-01  Karl Berry  <karl@gnu.org>
60812
60813         * config/srclist.txt (Copyright/*): new entries.
60814
60815 2006-02-28  Simon Josefsson  <jas@extundo.com>
60816
60817         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60818
60819 2006-02-27  Simon Josefsson  <jas@extundo.com>
60820
60821         * lib/base64.h: Indent #define's.  From Jim Meyering
60822         <jim@meyering.net>.
60823
60824 2006-02-27  Jim Meyering  <jim@meyering.net>
60825
60826         Revert the change of 2006-02-24, so these files can continue
60827         to be sync'd from gettext.
60828         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60829         of `config.h'.
60830
60831 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * modules/intprops: New file.
60834         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60835         Add intprops.
60836         * modules/getloadavg (Files): Remove lib/intprops.h.
60837         (Depends-on): Add intprops.
60838         * modules/human: Likewise.
60839         * modules/inttostr: Likewise.
60840         * modules/openat: Likewise.
60841         * modules/sig2str: Likewise.
60842         * modules/userspec: Likewise.
60843         * modules/utimecmp: Likewise.
60844         * modules/xnanosleep: Likewise.
60845         * modules/xstrtol: Likewise.
60846
60847 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60848
60849         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60850         * modules/lock-tests (TESTS): Use $(EXEEXT).
60851         * modules/tls-tests: Likewise.
60852         * modules/argp-tests: Likewise.
60853         (check_PROGRAMS): New var, replacing...
60854         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60855
60856 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60857
60858         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60859         `config.h'.
60860
60861 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60862
60863         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60864
60865 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60866
60867         Sync from coreutils.
60868         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60869         gl_CHDIR_SAFER.
60870
60871 2006-02-22  Jim Meyering  <jim@meyering.net>
60872
60873         Sync from coreutils.
60874         * m4/chdir-safer.m4: New file.
60875
60876 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60879         AT_FDCWD exceeds INT_MAX.
60880         * lib/openat.h (AT_FDCWD): Likewise.
60881
60882 2006-02-17  Eric Blake  <address@hidden>
60883
60884         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60885
60886 2006-02-16  Simon Josefsson  <jas@extundo.com>
60887
60888         * modules/getaddrinfo (Depends-on): Add sys_socket.
60889
60890 2006-02-15  Simon Josefsson  <jas@extundo.com>
60891
60892         * build-aux/maint.mk: Add dsyntax-check rule.
60893
60894 2006-02-15  Eric Blake  <ebb9@byu.net>
60895
60896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60897         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60898         'present but cannot compile' warnings on cygwin.
60899         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60900         use ws2tcpip.h if sys/socket.h works.
60901         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60902         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60903
60904 2006-02-14  Simon Josefsson  <jas@extundo.com>
60905
60906         * modules/maintainer-makefile (Files): Rename.
60907
60908         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60909         and (the local) Makefile.cfg to maint-cfg.mk.
60910
60911         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60912         to the latter.
60913
60914         * modules/maintainer-makefile: New module.
60915
60916         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60917         severaly stripped to make it possible to build it up from scratch
60918         with reliable tests.
60919
60920         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60921         fixes to permit overriding the default actions when configure and
60922         makefile are not available.
60923
60924 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60925
60926         Sync from coreutils.
60927         * modules/lstat (Depends-on): Don't depend on xalloc.
60928         (License): Change from GPL to LGPL, since this is now simply a
60929         replacement for a libc function.
60930
60931 2006-02-14  Jim Meyering  <jim@meyering.net>
60932
60933         Sync from coreutils.
60934
60935         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60936         failure on deficient systems, and simplify gnulib lgpl dependencies.
60937         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60938         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60939
60940         * lib/xalloc-die.c: Remove unused definition of N_.
60941
60942 2006-02-14  Jim Meyering  <jim@meyering.net>
60943
60944         Sync from coreutils.
60945         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60946         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60947         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60948         double-quote uses of that variable, to accommodate the rare case in
60949         which getmntent is available in none of the libraries checked.  This
60950         happens at least on FreeBSD 5.0.
60951
60952 2006-02-13  Simon Josefsson  <jas@extundo.com>
60953
60954         * gnulib-tool (Usage): Fix --import, from
60955         karl@freefriends.org (Karl Berry).
60956
60957 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60958
60959         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60960
60961 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60962
60963         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60964         "autoupdate" on 2005-12-12.
60965
60966 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60967
60968         * modules/closeout (Depends-on): Remove atexit.
60969
60970 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60971
60972         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60973         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60974
60975 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60978         __EXTENSIONS__ if this causes compilation to fail.  Problem
60979         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60980         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60981
60982 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60983
60984         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60985         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60986         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60987         All uses changed.
60988
60989 2006-01-26  Simon Josefsson  <jas@extundo.com>
60990
60991         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60992         prototype is visible on mingw32.
60993
60994         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60995         for mingw32.
60996
60997         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60998         mingw32).
60999
61000 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61001
61002         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61003         attempt to open for write; this always fails, at least on POSIX
61004         hosts.  This reinstates the 2006-01-09 change, which was
61005         inadvertently removed.
61006
61007 2006-01-26  Bruno Haible  <bruno@clisp.org>
61008
61009         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61010         Reported by Paul Eggert.
61011
61012 2006-01-26  Bruno Haible  <bruno@clisp.org>
61013             Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         * lib/stdbool_.h (_Bool)
61016         [(! (defined __cplusplus || defined __BEOS__)
61017           && !defined __GNUC__
61018           && !(defined __HP_cc || defined __xlc__
61019                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61020                || defined __sgi))]:
61021         #define to signed char in these cases too; this simplifies
61022         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61023         etc., separately) and makes it more conservative.
61024
61025 2006-01-25  Simon Josefsson  <jas@extundo.com>
61026
61027         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61028         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61029         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61030
61031 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61032
61033         * lib/argp-namefrob.h: Bugfix. Remove stray #
61034
61035 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61038         so that we test the test.
61039         Check for yet another HP-UX cc bug involving *bool |= bool.
61040
61041 2006-01-25  Karl Berry  <karl@gnu.org>
61042
61043         * config/srclist.txt (vasnprintf.c): sync lost.
61044
61045 2006-01-25  Jim Meyering  <jim@meyering.net>
61046
61047         Sync from the stable (b5) branch of coreutils:
61048
61049         * lib/fts.c (fts_children): Don't let close() clobber errno from
61050         failed fchdir().
61051
61052         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61053         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61054         a dangling symlink.  That can also happen at least for ELOOP.
61055         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61056         FYI, this bug predates the inclusion of fts.c in coreutils.
61057
61058         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61059         in their own block, so pre-c99 compilers don't object.
61060
61061         Avoid the double-free (first in fts_read, second in fts_close) that
61062         would occur when an `active' directory is made inaccessible (e.g.,
61063         via chmod a-x) during a traversal.
61064         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61065         before returning.  Reproduce this failure by
61066         mkdir -p a/b; cd a; chmod a-x . b
61067         Reported by Stavros Passas.
61068
61069 2006-01-25  Jim Meyering  <jim@meyering.net>
61070
61071         * lib/fileblocks.c: Remove more useless parentheses.
61072         * lib/readutmp.h: Likewise.
61073
61074 2006-01-25  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61077         warnings.
61078         Reported by Paul Eggert.
61079
61080 2006-01-25  Bruno Haible  <bruno@clisp.org>
61081
61082         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61083         rid of a trap command. For Solaris sh.
61084         Reported by Mark D. Baushke <mdb@gnu.org>.
61085
61086 2006-01-24  Simon Josefsson  <jas@extundo.com>
61087
61088         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61089         Bruno.
61090
61091 2006-01-24  Karl Berry  <karl@gnu.org>
61092
61093         * config/srclist.txt (argp-namefrob.h): sync lost.
61094
61095 2006-01-24  Jim Meyering  <jim@meyering.net>
61096
61097         * modules/openat (Files): Add lib/intprops.h.
61098         From Mark D. Baushke.
61099
61100 2006-01-24  Jim Meyering  <jim@meyering.net>
61101
61102         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61103         Reported by Mark D. Baushke.
61104
61105 2006-01-24  Jim Meyering  <jim@meyering.net>
61106
61107         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61108
61109 2006-01-24  Bruno Haible  <bruno@clisp.org>
61110
61111         * modules/strnlen (Maintainer): Change from glibc to all.
61112
61113 2006-01-24  Bruno Haible  <bruno@clisp.org>
61114
61115         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61116         Patch by Paul Eggert.
61117
61118 2006-01-24  Bruno Haible  <bruno@clisp.org>
61119
61120         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61121         already has it.
61122         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61123         2005-11-26.
61124
61125         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61126         'signed char' to avoid problems with the built-in _Bool type.
61127         Reported by Paul Eggert on 2005-11-26.
61128
61129 2006-01-24  Bruno Haible  <bruno@clisp.org>
61130
61131         * gnulib-tool (func_import): Avoid constructing complicated sed
61132         expressions inside backquote.
61133         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61134
61135 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61136
61137         These changes imported from libc.
61138         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61139         test and two separate function calls.
61140         * lib/strndup.c (__strndup): Add libc_hidden_def.
61141
61142 2006-01-23  Simon Josefsson  <jas@extundo.com>
61143
61144         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61145         Remove the test_*_SOURCES variable: automake infers it by default.
61146         * modules/tls-tests: Likewise.
61147
61148 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61149
61150         Work around porting bugs reported by Dieter in
61151         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61152         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61153         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61154         Include "getopt.h" first, to check interface.
61155         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61156         !HAVE_DECL_GETENV.
61157         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61158         (__strndup): Revert to K&R-style function dfns, the glibc style.
61159         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61160         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61161         Include strnlen.h first, to get prototype properly.
61162         (strnlen): Renamed from __strnlen.
61163         Remove weak alias.
61164
61165 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61166
61167         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61168
61169 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61170
61171         * config/srclist.txt: Adjust to reflect glibc reorganization.
61172         This affects only comments.
61173
61174 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61175
61176          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61177          Reported by Bruce Korb <bkorb@gnu.org>.
61178
61179 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61180
61181         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61182         to pacify gcc -Wswitch-default.
61183
61184 2006-01-22  Bruno Haible  <bruno@clisp.org>
61185
61186         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61187         temporary buffer for sprintf, take into account the precision also
61188         for 'd', 'i', 'u', 'o', 'x', 'X'.
61189
61190 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61191
61192         * modules/argp-tests: New module
61193         * tests/test-argp.c: New file
61194         * tests/test-argp-2.sh: New file
61195
61196 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61197
61198         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61199         (__argp_base_name): Removed
61200         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61201         typo.
61202         (__argp_base_name): Provide macro definition or extern declaration
61203         depending on the configuration
61204
61205 2006-01-20  Simon Josefsson  <jas@extundo.com>
61206
61207         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61208
61209 2006-01-20  Simon Josefsson  <jas@extundo.com>
61210
61211         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61212
61213 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61214
61215         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61216         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61217         Suggested by Bruno Haible.
61218
61219 2006-01-20  Karl Berry  <karl@gnu.org>
61220
61221         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61222         until changes propagate, I guess.
61223
61224 2006-01-19  Simon Josefsson  <jas@extundo.com>
61225
61226         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61227
61228 2006-01-19  Simon Josefsson  <jas@extundo.com>
61229
61230         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61231
61232 2006-01-19  Simon Josefsson  <jas@extundo.com>
61233
61234         * gnulib-tool: Set check_PROGRAMS.
61235
61236         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61237         modules/des-tests, modules/gc-arcfour-tests,
61238         modules/gc-arctwo-tests, modules/gc-des-tests,
61239         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61240         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61241         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61242         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61243         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61244         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61245         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61246         test_*_SOURCES.
61247
61248 2006-01-18  Simon Josefsson  <jas@extundo.com>
61249
61250         * modules/socklen (Depends-on): Depend on sys_socket.
61251
61252 2006-01-18  Simon Josefsson  <jas@extundo.com>
61253
61254         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61255         modules/des-tests, modules/gc-arcfour-tests,
61256         modules/gc-arctwo-tests, modules/gc-des-tests,
61257         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61258         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61259         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61260         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61261         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61262         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61263         $(EXEEXT) to automake TESTS variable, for mingw32.
61264
61265 2006-01-17  Simon Josefsson  <jas@extundo.com>
61266
61267         * modules/socklen (Include): Need sys/socket.h.
61268
61269 2006-01-17  Bruno Haible  <bruno@clisp.org>
61270
61271         * modules/ssize_t (Include): Add <sys/types.h>.
61272
61273 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61276         it's not portable and it doesn't work with cross-compiles.
61277         Problem reported by Bruno Haible.  Fix missing-$ typo in
61278         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61279         -zignore from being used with Sun's C compiler.
61280
61281 2006-01-12  Simon Josefsson  <jas@extundo.com>
61282
61283         * lib/base64.c: Fix warning, reported by Bruno Haible
61284         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61285
61286 2006-01-12  Bruno Haible  <bruno@clisp.org>
61287
61288         * modules/ldd: New file.
61289         * build-aux/ldd.sh.in: New file.
61290         * MODULES.html.sh (Support for building libraries and executables): Add
61291         ldd.
61292
61293 2006-01-12  Bruno Haible  <bruno@clisp.org>
61294
61295         * m4/ldd.m4: New file.
61296
61297 2006-01-12  Bruno Haible  <bruno@clisp.org>
61298
61299         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61300         endless loop while replacing $auxdir with build-aux.
61301
61302 2006-01-11  Simon Josefsson  <jas@extundo.com>
61303
61304         * lib/stdint_.h (SIZE_MAX): Add missing (.
61305
61306 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61307
61308         Sync from coreutils.
61309         * lib/md5.c: Fix commentary typos.
61310         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61311         * lib/md5.h (__attribute__): Remove; unused.
61312         * lib/sha1.c: Fix commentary to match md5 better.
61313         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61314         so that we don't need to worry about alignment.  All uses changed.
61315         This merges the 2005-10-28 md5 change into sha1.
61316
61317 2006-01-11  Jim Meyering  <jim@meyering.net>
61318
61319         Sync from coreutils.
61320         * lib/md5.c (OP): Fix spacing.
61321
61322 2006-01-11  Bruno Haible  <bruno@clisp.org>
61323
61324         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61325         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61326         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61327
61328 2006-01-11  Bruno Haible  <bruno@clisp.org>
61329
61330         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61331         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61332         the "early" section as well.
61333
61334 2006-01-11  Bruno Haible  <bruno@clisp.org>
61335
61336         Avoid "ar: no archive members specified" error on MacOS X.
61337         * gnulib-tool (func_modules_add_dummy): New function.
61338         (func_import, func_create_testdir): Invoke it.
61339
61340 2006-01-11  Bruno Haible  <bruno@clisp.org>
61341
61342         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61343         with $auxdir in AC_CONFIG_FILES statements.
61344
61345 2006-01-11  Bruno Haible  <bruno@clisp.org>
61346
61347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61348         Initialize also noinst_HEADERS to empty.
61349
61350 2006-01-11  Bruno Haible  <bruno@clisp.org>
61351
61352         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61353         variables.
61354         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61355         autoreconf.
61356
61357 2006-01-11  Bruno Haible  <bruno@clisp.org>
61358
61359         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61360         overridable by the user.
61361         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61362
61363 2006-01-10  Simon Josefsson  <jas@extundo.com>
61364
61365         * modules/sys_socket: New file.
61366
61367 2006-01-10  Simon Josefsson  <jas@extundo.com>
61368
61369         * m4/sys_socket_h.m4: New file.
61370
61371 2006-01-10  Simon Josefsson  <jas@extundo.com>
61372
61373         * lib/socket_.h: New file.
61374
61375 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61376
61377         * modules/readutmp (Maintainer): Add myself.
61378
61379 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61382         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61383         People who are still concerned with buggy memcmp implementations
61384         can invoke gl_FUNC_MEMCMP themselves.
61385
61386 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         * lib/regex_internal.h (BITSET_WORD_BITS):
61389         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61390         preprocessor mishandles large unsigned values as if they were signed.
61391         Problem reported by Claudio Fontana in
61392         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61393
61394 2006-01-10  Jim Meyering  <jim@meyering.net>
61395
61396         Avoid the double-free (first in fts_read, second in fts_close) that
61397         would occur when an `active' directory is made inaccessible (e.g.,
61398         via chmod a-x) during a traversal.
61399         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61400         before returning.  Reproduce this failure by
61401         mkdir -p a/b; cd a; chmod a-x . b
61402         Reported by Stavros Passas.
61403
61404         Sync from coreutils.
61405         * lib/sha1.c: Tweak grammar in a comment.
61406
61407 2006-01-10  Jim Meyering  <jim@meyering.net>
61408
61409         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61410         Patch by Joerg Sonnenberger.
61411
61412 2006-01-10  Bruno Haible  <bruno@clisp.org>
61413
61414         * modules/readutmp: Depend on module free.
61415         * modules/strtok_r: Depend on module restrict.
61416
61417 2006-01-10  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/gettext (configure.ac): Add an invocation of
61420         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61421
61422 2006-01-10  Bruno Haible  <bruno@clisp.org>
61423
61424         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61425         Reported by Werner Lemberg <wl@gnu.org>.
61426
61427 2006-01-10  Bruno Haible  <bruno@clisp.org>
61428
61429         * lib/localcharset.c: Update from GNU gettext.
61430
61431 2006-01-10  Bruno Haible  <bruno@clisp.org>
61432
61433         * lib/argp.h (__const): Remove macro. Use const instead.
61434         * lib/argp-fmtstream.h (__const): Likewise.
61435         * lib/glob_.h (__const): Remove macro.
61436         * lib/glob-libc.h: Use const instead of __const.
61437
61438 2006-01-10  Bruno Haible  <bruno@clisp.org>
61439
61440         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61441         variable.
61442         Needed to avoid an automake error regarding the 'gettext' module.
61443
61444 2006-01-09  Simon Josefsson  <jas@extundo.com>
61445
61446         * modules/inet_ntop (Depends-on): Add restrict.
61447
61448 2006-01-09  Simon Josefsson  <jas@extundo.com>
61449
61450         * modules/gc-rijndael-tests (License): Put under LGPL.
61451
61452         * modules/gc-des-tests (License): Likewise.
61453
61454         * modules/gc-arcfour-tests (License): Likewise.
61455
61456         * modules/gc-arctwo-tests (License): Likewise.
61457
61458         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61459
61460         * modules/gc-hmac-sha1-tests (Files): Likewise.
61461
61462         * modules/gc-hmac-md5-tests (License): Likewise.
61463
61464         * modules/gc-sha1-tests (License): Likewise.
61465
61466         * modules/gc-md5-tests (License): Likewise.
61467
61468         * modules/gc-md4-tests (License): Likewise.
61469
61470         * modules/gc-md2-tests (License): Likewise.
61471
61472         * modules/gc-tests (License): Likewise.
61473
61474         * modules/des-tests (License): Likewise.
61475
61476         * modules/md4-tests (License): Likewise.
61477
61478         * modules/md2-tests (License): Likewise.
61479
61480 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61481
61482         Sync from coreutils:
61483
61484         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61485         * modules/lib-ignore: New file.
61486         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61487         chdir-safer.m4, lchmod.m4.
61488         * modules/openat: Add mkdirat.c, openat-priv.h.
61489
61490 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61491
61492         Sync from coreutils.
61493         * m4/lib-ignore.m4: New file.
61494         * m4/lchmod.m4: New file.
61495
61496 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61497
61498         Sync from coreutils.
61499         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61500         for write access: POSIX says that must fail.
61501         * lib/fts.c (diropen): Likewise.
61502         * lib/save-cwd.c (save_cwd): Likewise.
61503         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61504         well, for minor improvements on hosts that lack O_DIRECTORY.
61505         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61506         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61507         Fall back on chown if open failed with EACCES.
61508
61509         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61510         Report an error at compile-time if only a 1-second nominal clock
61511         resolution is found.
61512
61513         * lib/lchmod.h: New file.
61514         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61515         (make_dir_parents): Use lchown rather than chown, and
61516         lchmod rather than chmod.
61517
61518         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61519         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61520         "proc" reported by n0dalus.
61521
61522         * lib/mountlist.c: Include <limits.h>.
61523         (dev_from_mount_options)
61524         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61525         New function.  It no longer assumes "dev=" has the System V meaning
61526         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61527         (read_file_system_list)
61528         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61529         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61530         dev= in that case.
61531
61532         * lib/posixtm.h (PDS_PRE_2000): New macro.
61533         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61534         allow_century.  All usages changed.  Reject dates outside the range
61535         1969-1999 if PDS_PRE_2000 is used.
61536
61537 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         Sync from coreutils.
61540         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61541         (Time of day items): Mention the possibility of leap seconds.
61542         Problem reported by Dr. David Alan Gilbert.
61543
61544 2006-01-09  Jim Meyering  <jim@meyering.net>
61545
61546         Sync from coreutils.
61547
61548         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61549
61550         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61551
61552         * lib/modechange.c (mode_compile): Reject an invalid mode string
61553         that starts with an octal digit.  From Andreas Gruenbacher.
61554
61555         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61556         and dup to open_safer and dup_safer, respectively.
61557         (openat_permissive): Fix typo in comment.
61558
61559         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61560         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61561         (_): Remove; no longer needed.
61562         (openat): Renamed from rpl_openat; no need for rpl_openat
61563         since openat.h renames openat for us.
61564         Replace most of the body with a call to openat_permissive,
61565         to avoid duplicate code.
61566         Port to (probably hypothetical) environments were mode_t is
61567         wider than int.
61568         (openat_permissive): Require mode arg, so that we can check
61569         types better.  Put it just after flags.  Change cwd failure
61570         indicator from pointer-to-bool to pointer-to-errno-value.
61571         All callers changed.
61572         Invoke openat_save_fail and/or openat_restore_fail if
61573         cwd_errno is null, so that openat can call us.
61574         (openat_permissive, fdopendir, fstatat, unlinkat):
61575         Simplify errno handling to avoid some duplicate code,
61576         as it's OK to set errno on success.
61577         * lib/openat.h: Revamp code so that function macros depend on
61578         __OPENAT_PREFIX only, not also on AT_FDCWD.
61579         (openat_ro): Remove.  Caller changed to use openat_permissive.
61580         (openat_permissive): Now a macro, if not a function.
61581         (openat_restore_fail, openat_save_fail): Now always functions,
61582         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61583
61584         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61585         and openat.c.
61586         * lib/mkdirat.c: Include openat-priv.h.
61587         Remove definitions of macros defined therein.
61588         * lib/openat.c: Likewise.
61589
61590         * lib/mkdirat.c (mkdirat): New file and function.
61591         * lib/openat.h (mkdirat): Declare.
61592
61593         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61594
61595         * lib/openat.h (openat_permissive): Declare.
61596         (openat_ro): Define.
61597
61598         * lib/openat.c (EXPECTED_ERRNO): New macro.
61599         (openat_permissive): New function -- used in remove.c rewrite.
61600         (all functions): Set errno just before returning, only if there
61601         was an actual failure.
61602         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61603
61604         Emulate openat-family functions using Linux's procfs, if possible.
61605         Idea and some code based on Ulrich Drepper's glibc changes.
61606
61607         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61608         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61609         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61610         before falling back on save_cwd and restore_cwd.
61611         (fdopendir, fstatat, unlinkat): Likewise.
61612
61613         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61614         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61615
61616         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61617         as second argument to va_arg.  Otherwise, some versions of gcc
61618         warn that `if this code is reached, the program will abort'.
61619
61620 2006-01-09  Jim Meyering  <jim@meyering.net>
61621
61622         Sync from coreutils.
61623         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61624         Require openat-priv.h.
61625
61626 2006-01-09  Bruno Haible  <bruno@clisp.org>
61627
61628         * modules/strnlen (Include): Use strnlen.h.
61629
61630 2006-01-09  Bruno Haible  <bruno@clisp.org>
61631
61632         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61633
61634 2006-01-09  Bruno Haible  <bruno@clisp.org>
61635
61636         * lib/sysexit_.h (EX_OK): New macro.
61637         Suggested by Martin Lambers <marlam@marlam.de>.
61638
61639 2006-01-09  Bruno Haible  <bruno@clisp.org>
61640
61641         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61642         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61643
61644 2006-01-09  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61647         numbers.
61648
61649 2006-01-09  Bruno Haible  <bruno@clisp.org>
61650
61651         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61652         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61653         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61654         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61655
61656 2006-01-09  Bruno Haible  <bruno@clisp.org>
61657
61658         * build-aux/javacomp.sh.in: New file, moved from lib/.
61659         * modules/javacomp-script (Files): Update.
61660         (configure.ac): Add AC_CONFIG_FILES invocation.
61661         (EXTRA_DIST): Remove variable.
61662
61663         * build-aux/javaexec.sh.in: New file, moved from lib/.
61664         * modules/javaexec (Files): Update.
61665         (configure.ac): Add AC_CONFIG_FILES invocation.
61666         (EXTRA_DIST): Remove javaexec.sh.in.
61667
61668         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61669         * modules/csharpcomp-script (Files): Update.
61670         (configure.ac): Add AC_CONFIG_FILES invocation.
61671         (EXTRA_DIST): Remove variable.
61672
61673         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61674         * modules/csharpexec (Files): Update.
61675         (configure.ac): Add AC_CONFIG_FILES invocation.
61676         (EXTRA_DIST): Remove csharpexec.sh.in.
61677
61678 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61679
61680         Sync from coreutils.
61681
61682         Add POSIX ACL support
61683         * lib/acl.h (copy_acl, set_acl): Add declarations.
61684         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61685         systems other than Linux.
61686         (chmod_or_fchmod): New function: use fchmod when possible,
61687         and chmod otherwise.
61688         (file_has_acl): Add a POSIX ACL implementation, with a
61689         Linux-specific subcase.
61690         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61691         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61692         acls are unsupported.
61693         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61694         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61695         are unsupported.
61696
61697 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61698
61699         Sync from coreutils.
61700         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61701
61702 2006-01-07  Bruno Haible  <bruno@clisp.org>
61703
61704         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61705         gl_EARLY.
61706
61707 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61710         Problem reported for Mingw by Mark Junker.
61711
61712 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * README: Gnulib normally doesn't generate a tarball.
61715
61716 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61719         long int, not int, for nanosecond counts, so that people who are
61720         used to POSIX struct timespec won't be surprised.  Reported by Jim
61721         Meyering.
61722
61723 2005-12-28  Bruno Haible  <bruno@clisp.org>
61724
61725         * build-aux/config.rpath: Update from GNU gettext.
61726
61727 2005-12-16  Jim Meyering  <jim@meyering.net>
61728
61729         * modules/fprintftime: New module.
61730         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61731
61732 2005-12-16  Jim Meyering  <jim@meyering.net>
61733
61734         * m4/fprintftime.m4: New file.
61735
61736 2005-12-16  Jim Meyering  <jim@meyering.net>
61737
61738         * lib/fprintftime.c, lib/fprintftime.h: New files.
61739
61740 2005-12-15  Simon Josefsson  <jas@extundo.com>
61741
61742         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61743         new m4/socklen.m4.
61744
61745 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61746
61747         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61748         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61749
61750 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61751
61752         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61753         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61754         struct uparams is valid. Fall back to the default values if it is
61755         not.
61756
61757 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61758
61759         * modules/argp (Files): Add argp-pin.c
61760         (Depends-on): dirname
61761         (lib_SOURCES): Add argp-pin.c
61762
61763 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61764
61765         * m4/argp.m4:  Check if program_invocation_name and
61766         program_invocation_short_name are declared and define appropriate
61767         macros if they are not.
61768
61769 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61770
61771         * lib/argp-help.c (__argp_base_name): New function
61772         (__argp_short_program_name): Rewrite using __argp_base_name
61773         * lib/argp-namefrob.h: Define program_invocation_name and
61774         program_invocation_short_name if requested
61775         (__argp_base_name): Add prototype
61776         * lib/argp-parse.c (argp_def): Use gettext wrappers
61777         (argp_default_parser): Use __argp_base_name
61778         * lib/argp-pin.c: New file. Defines program_invocation_name and
61779         program_invocation_short_name on systems that lack them.
61780
61781 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61782
61783         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61784         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61785         porting problem reported by Georg Schwarz in
61786         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61787
61788 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61791         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61792         porting problem reported by Georg Schwarz in
61793         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61794
61795 2005-12-05  Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61798         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61799         Reported by Mark Junker <mjscod@gmx.de>.
61800
61801 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61804         Use implementation from Albert Chin, with some
61805         comments/corrections by Stepan Kasal and myself.
61806
61807 2005-12-02  Bruno Haible  <bruno@clisp.org>
61808
61809         * gnulib-tool (func_import): Accept GPLed build tool modules when
61810         --lgpl is given.
61811         * modules/csharpcomp-script: New file.
61812         * modules/csharpcomp: Depend on it.
61813         * modules/javacomp-script: New file.
61814         * modules/javacomp: Depend on it.
61815         Suggested by Simon Josefsson.
61816
61817 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61818
61819         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61820         statement, to work around an HP-UX 10.20 compiler bug reported by
61821         Peter O'Gorman.
61822
61823 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         * modules/savedir (Depends-on): Add openat.
61826
61827 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61830         (uintmax_t) [defined uintmax_t]: Do not declare.
61831         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61832         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61833         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61834         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61835         sake of portability to weird hosts that C allows (though we don't
61836         know of any practical examples).
61837
61838         * lib/savedir.h (fdsavedir): New decl.
61839         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61840         contains most of the former guts of savedir.
61841         (savedir): Use savedirstream.
61842         Include "openat.h".
61843
61844 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61845
61846         * modules/obstack (Files): Add m4/ulonglong.m4.
61847         Problem reported by Davide Angelocola.
61848
61849 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61852         coreutils no longer futzes with rounding modes.
61853
61854 2005-11-14  Jim Meyering  <jim@meyering.net>
61855
61856         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61857         replacement of mkstemp.
61858
61859 2005-11-10  Simon Josefsson  <jas@extundo.com>
61860
61861         * lib/readline.c: Remove EOL.
61862
61863 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61864
61865         * modules/gethrxtime (Depends-on): Add gettime.
61866
61867 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61868
61869         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61870         or gettimeofday; no longer needed.
61871
61872 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61873
61874         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61875         time business.
61876         (gethrxtime) [! (HAVE_NANOUPTIME
61877         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61878         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61879         our own approximation.
61880
61881 2005-11-08  Eric Blake  <ebb9@byu.net>
61882
61883         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61884
61885 2005-11-08  Eric Blake  <ebb9@byu.net>
61886
61887         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61888
61889 2005-11-04  Bruno Haible  <bruno@clisp.org>
61890
61891         * gnulib-tool: Implement --update mode.
61892
61893 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61894
61895         Fix porting problem reported by Theodoros V. Kalamatianos.
61896         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61897         Don't assume that futimes failing means we must fail.
61898
61899 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61902         variables to suggest the intended function of the PATH_MAX check.
61903
61904 2005-10-30  Kean Johnston  <jkj@sco.com>
61905
61906         Trivial changes to support SCO systems.
61907         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61908         as PATH_MAX.
61909         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61910         where __ptr is null when no I/O is pending.
61911
61912 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61913
61914         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61915         leave errno alone.  Problem reported by Dmitry V. Levin.
61916
61917 2005-10-28  Simon Josefsson  <jas@extundo.com>
61918
61919         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61920         Test more.
61921
61922         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61923
61924         * modules/md2, modules/md2-tests: New files.
61925
61926 2005-10-28  Simon Josefsson  <jas@extundo.com>
61927
61928         * m4/inet_ntop.m4: More tests.
61929
61930         * m4/gc-md2.m4, md2.m4: New file.
61931
61932 2005-10-28  Simon Josefsson  <jas@extundo.com>
61933
61934         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61935         "restrict" keywords, as per POSIX.  Protect the function
61936         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61937         Don't use K&R prototypes.  Check the sprintf return values.
61938         Re-define EAFNOSUPPORT if not present.  Indent.
61939
61940         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61941         suggested by Bruno Haible <bruno@clisp.org>.
61942
61943         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61944
61945         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61946
61947         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61948         libgcrypt).
61949
61950         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61951
61952         * lib/md2.h, lib/md2.c: New files.
61953
61954 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61957         errno alone.  Problem reported by Frederic Jolliton.
61958
61959 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * modules/verify (License): Change from GPL to LGPL.  This is a
61962         tiny module and there are apparently near-equivalents that are
61963         under the BSD license.
61964
61965 2005-10-24  Simon Josefsson  <jas@extundo.com>
61966
61967         * modules/sha1: Relicense to LGPL.
61968
61969 2005-10-24  Simon Josefsson  <jas@extundo.com>
61970
61971         * lib/md4.h: Shrink buffer size, now that we changed the type.
61972
61973 2005-10-23  Simon Josefsson  <jas@extundo.com>
61974
61975         * gnulib-tool (func_import): Fix --tests-base.
61976
61977 2005-10-22  Simon Josefsson  <jas@extundo.com>
61978
61979         * modules/arcfour (Depends-on): Need stdint.
61980
61981 2005-10-22  Simon Josefsson  <jas@extundo.com>
61982
61983         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61984         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61985
61986 2005-10-22  Simon Josefsson  <jas@extundo.com>
61987
61988         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61989         suggested by Bruno Haible <bruno@clisp.org>.
61990
61991 2005-10-22  Simon Josefsson  <jas@extundo.com>
61992
61993         * lib/crc.h: Include stddef.h, for size_t.
61994
61995 2005-10-22  Simon Josefsson  <jas@extundo.com>
61996
61997         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61998         arcfour_context struct (simplify test vector testing in GNU
61999         Shishi).
62000
62001 2005-10-21  Simon Josefsson  <jas@extundo.com>
62002
62003         * modules/des, modules/des-tests: New files.
62004
62005         * modules/gc-des, modules/gc-des-tests: New files.
62006
62007         * tests/test-des.c, tests/test-gc-des.c: New file.
62008
62009 2005-10-21  Simon Josefsson  <jas@extundo.com>
62010
62011         * modules/arctwo, modules/arctwo-tests: New files.
62012
62013         * tests/test-arctwo.c: New file.
62014
62015         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62016
62017         * tests/test-gc-arctwo.c: New file.
62018
62019 2005-10-21  Simon Josefsson  <jas@extundo.com>
62020
62021         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62022         Bruno Haible <bruno@clisp.org>.
62023
62024         * m4/gc-des.m4: New file.
62025
62026 2005-10-21  Simon Josefsson  <jas@extundo.com>
62027
62028         * m4/arctwo.m4: New file.
62029
62030         * m4/gc-arctwo.m4: New file.
62031
62032 2005-10-21  Simon Josefsson  <jas@extundo.com>
62033
62034         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62035         block.
62036
62037 2005-10-21  Simon Josefsson  <jas@extundo.com>
62038
62039         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62040         <bruno@clisp.org>.
62041
62042         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62043
62044         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62045         Bruno Haible <bruno@clisp.org>.
62046
62047         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62048         <bruno@clisp.org>.
62049
62050 2005-10-21  Simon Josefsson  <jas@extundo.com>
62051
62052         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62053
62054 2005-10-21  Simon Josefsson  <jas@extundo.com>
62055
62056         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62057
62058 2005-10-21  Simon Josefsson  <jas@extundo.com>
62059
62060         * lib/des.h, lib/des.c: New files.
62061
62062         * lib/gc-gnulib.c: Support DES.c
62063
62064 2005-10-21  Simon Josefsson  <jas@extundo.com>
62065
62066         * lib/arctwo.h, lib/arctwo.c: New files.
62067
62068         * lib/gc-gnulib.c: Support ARCTWO.
62069
62070 2005-10-21  Simon Josefsson  <jas@extundo.com>
62071
62072         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62073         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62074
62075 2005-10-21  Simon Josefsson  <jas@extundo.com>
62076
62077         * gnulib-tool (func_import, func_create_testdir): Define automake
62078         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62079         Makefile.am snippet),
62080         suggested by Bruno Haible <bruno@clisp.org>.
62081
62082         * modules/gc (Makefile.am): Use it.
62083
62084 2005-10-21  Bruno Haible  <bruno@clisp.org>
62085
62086         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62087         patch.
62088
62089 2005-10-19  Simon Josefsson  <jas@extundo.com>
62090
62091         * tests/test-gc-rijndael.c: New file.
62092
62093         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62094
62095 2005-10-19  Simon Josefsson  <jas@extundo.com>
62096
62097         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62098         interface too.
62099
62100 2005-10-19  Simon Josefsson  <jas@extundo.com>
62101
62102         * tests/test-gc-arcfour.c: New file.
62103
62104         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62105
62106 2005-10-19  Simon Josefsson  <jas@extundo.com>
62107
62108         * modules/gc-md4, modules/gc-md4-tests: New file.
62109
62110         * tests/test-gc-md4.c: New file.
62111
62112 2005-10-19  Simon Josefsson  <jas@extundo.com>
62113
62114         * m4/gc-md4.m4: New file.
62115
62116 2005-10-19  Simon Josefsson  <jas@extundo.com>
62117
62118         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62119         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62120         <kasal@ucw.cz>.
62121
62122 2005-10-19  Simon Josefsson  <jas@extundo.com>
62123
62124         * m4/gc-arcfour.m4: New file.
62125
62126         * m4/gc-rijndael.m4: New file.
62127
62128 2005-10-19  Simon Josefsson  <jas@extundo.com>
62129
62130         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62131
62132 2005-10-19  Simon Josefsson  <jas@extundo.com>
62133
62134         * lib/gc-gnulib.c: Support ARCFOUR.
62135
62136 2005-10-19  Simon Josefsson  <jas@extundo.com>
62137
62138         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62139         support.
62140
62141         * lib/gc.h: Add ECB enum type.
62142
62143         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62144
62145 2005-10-18  Simon Josefsson  <jas@extundo.com>
62146
62147         * tests/test-md5.c: New file.
62148
62149         * modules/md5-tests: New file.
62150
62151 2005-10-18  Simon Josefsson  <jas@extundo.com>
62152
62153         * tests/test-md4.c: New file.
62154
62155         * modules/md4, modules/md4-tests: New files.
62156
62157 2005-10-18  Simon Josefsson  <jas@extundo.com>
62158
62159         * m4/md4.m4: New file.
62160
62161 2005-10-18  Simon Josefsson  <jas@extundo.com>
62162
62163         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62164
62165 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62166
62167         * gnulib-tool (func_create_testdir): Omit the second check whether
62168         BUILT_SOURCES in nonempty.
62169
62170 2005-10-17  Simon Josefsson  <jas@extundo.com>
62171
62172         * tests/test-rijndael.c: New file.
62173
62174 2005-10-17  Simon Josefsson  <jas@extundo.com>
62175
62176         * modules/sha1: Depend on stdint instead of md5.
62177
62178         * modules/md5: Depend on stdint, remove uint32_t.
62179
62180 2005-10-17  Simon Josefsson  <jas@extundo.com>
62181
62182         * modules/gc-sha1-tests: New file.
62183
62184         * tests/test-gc-sha1.c: New file.
62185
62186 2005-10-17  Simon Josefsson  <jas@extundo.com>
62187
62188         * m4/md5.m4: Remove call to uint32_t.m4.
62189
62190 2005-10-17  Simon Josefsson  <jas@extundo.com>
62191
62192         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62193
62194         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62195         md5.h.
62196
62197         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62198
62199         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62200
62201 2005-10-17  Simon Josefsson  <jas@extundo.com>
62202
62203         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62204
62205 2005-10-17  Simon Josefsson  <jas@extundo.com>
62206
62207         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62208
62209 2005-10-17  Simon Josefsson  <jas@extundo.com>
62210
62211         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62212
62213         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62214
62215 2005-10-17  Bruno Haible  <bruno@clisp.org>
62216
62217         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62218         that it can also be used in a test.
62219
62220 2005-10-16  Bruno Haible  <bruno@clisp.org>
62221
62222         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62223         TESTS_ENVIRONMENT, so that individual tests can augment it.
62224
62225         * gnulib-tool (func_create_testdir): Use an intermediate target for
62226         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62227         macros, like $(ALLOCA_H), which cannot be passed through the command
62228         line.
62229
62230 2005-10-15  Simon Josefsson  <jas@extundo.com>
62231
62232         * modules/rijndael-tests: New file.
62233
62234         * modules/rijndael: New file.
62235
62236 2005-10-15  Simon Josefsson  <jas@extundo.com>
62237
62238         * m4/rijndael.m4: New file.
62239
62240 2005-10-15  Simon Josefsson  <jas@extundo.com>
62241
62242         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62243
62244         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62245
62246 2005-10-14  Simon Josefsson  <jas@extundo.com>
62247
62248         * tests/test-arcfour.c: New file.
62249
62250         * modules/arcfour, modules/arcfour-tests: New files.
62251
62252 2005-10-14  Simon Josefsson  <jas@extundo.com>
62253
62254         * m4/arcfour.m4: New file.
62255
62256 2005-10-14  Simon Josefsson  <jas@extundo.com>
62257
62258         * lib/arcfour.h, lib/arcfour.c: New files.
62259
62260 2005-10-14  Roland McGrath  <roland@redhat.com>
62261
62262         Import from libc.  [BZ #1331]
62263         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62264         macro argument.
62265         Reported by Matej Vela <vela@debian.org>.
62266
62267 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62268
62269         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62270         include <wchar.h>; no longer needed.
62271
62272 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62275
62276 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62277         and  Ulrich Drepper  <drepper@redhat.com>
62278
62279         Import from libc.
62280         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62281         instead of inline stream orientation test and two separate
62282         function calls.  Pay no attention to USE_IN_LIBIO.
62283
62284 2005-10-13  Simon Josefsson  <jas@extundo.com>
62285
62286         * modules/gc-hmac-md5-tests: New file.
62287
62288         * tests/test-gc-hmac-sha1.c: New file.
62289
62290         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62291
62292         * modules/gc-hmac-md5-tests: New file.
62293
62294         * tests/test-gc-md5.c: New file.
62295
62296         * modules/gc-md5-tests: New file.
62297
62298 2005-10-13  Simon Josefsson  <jas@extundo.com>
62299
62300         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62301         Move memory allocation outside of loop.
62302
62303 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62306         intermediate directory is in a read-only file system.  Problem
62307         reported by Eric Blake.
62308
62309 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62310
62311         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62312
62313 2005-10-12  Simon Josefsson  <jas@extundo.com>
62314
62315         * tests/test-hmac-sha1.c: New file.
62316
62317         * modules/hmac-sha1-tests: New file.
62318
62319         * modules/hmac-sha1: New file.
62320
62321 2005-10-12  Simon Josefsson  <jas@extundo.com>
62322
62323         * modules/gc-sha1: New file.
62324
62325 2005-10-12  Simon Josefsson  <jas@extundo.com>
62326
62327         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62328
62329         * tests/test-gc-pbkdf2-sha1.c: New file.
62330
62331 2005-10-12  Simon Josefsson  <jas@extundo.com>
62332
62333         * modules/gc-md5, modules/gc-hmac-md5: New files.
62334
62335         * modules/gc (Files): Remove md5, memxor and hmac files.
62336
62337 2005-10-12  Simon Josefsson  <jas@extundo.com>
62338
62339         * m4/gc-pbkdf2-sha1.m4: New file.
62340
62341         * m4/gc-hmac-sha1.m4: New file.
62342
62343         * m4/gc-sha1: New file.
62344
62345         * m4/hmac-sha1.m4: New file.
62346
62347 2005-10-12  Simon Josefsson  <jas@extundo.com>
62348
62349         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62350
62351         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62352
62353 2005-10-12  Simon Josefsson  <jas@extundo.com>
62354
62355         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62356         suggested by Bruno Haible <bruno@clisp.org>.
62357
62358 2005-10-12  Simon Josefsson  <jas@extundo.com>
62359
62360         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62361
62362 2005-10-12  Simon Josefsson  <jas@extundo.com>
62363
62364         * lib/gc-pbkdf2-sha1.c: New file.
62365
62366         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62367
62368 2005-10-12  Simon Josefsson  <jas@extundo.com>
62369
62370         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62371
62372         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62373
62374 2005-10-12  Simon Josefsson  <jas@extundo.com>
62375
62376         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62377         GC_USE_HMAC_MD5, respectively.
62378
62379         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62380         (gc_md5): Fix typo.
62381
62382         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62383
62384         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62385
62386         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62387
62388 2005-10-12  Bruno Haible  <bruno@clisp.org>
62389
62390         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62391         Reported by Stepan Kasal <kasal@ucw.cz>.
62392
62393 2005-10-11  Simon Josefsson  <jas@extundo.com>
62394
62395         * tests/test-crc.c: New file.
62396
62397         * modules/crc, modules/crc-tests: New files.
62398
62399 2005-10-11  Simon Josefsson  <jas@extundo.com>
62400
62401         * m4/crc.m4: New file.
62402
62403 2005-10-11  Simon Josefsson  <jas@extundo.com>
62404
62405         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62406
62407         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62408
62409         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62410
62411 2005-10-11  Simon Josefsson  <jas@extundo.com>
62412
62413         * lib/crc.h, lib/crc.c: New files.
62414
62415         * lib/gc.h (gc_hash_buffer): Add doc.
62416
62417 2005-10-11  Bruno Haible  <bruno@clisp.org>
62418
62419         * modules/c-strcasestr: New file.
62420         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62421
62422 2005-10-11  Bruno Haible  <bruno@clisp.org>
62423
62424         * modules/c-strcase: New file.
62425         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62426
62427 2005-10-11  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/strcasecmp.c: Include limits.h.
62430         (strcasecmp): Avoid integer overflow on exotic platforms.
62431         * lib/strncasecmp.c: Include limits.h.
62432         (strncasecmp): Avoid integer overflow on exotic platforms.
62433         Reported by Paul Eggert.
62434
62435 2005-10-11  Bruno Haible  <bruno@clisp.org>
62436
62437         * lib/c-strcasestr.h: New file, from GNU gettext.
62438         * lib/c-strcasestr.c: New file, from GNU gettext.
62439
62440 2005-10-11  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/c-strcase.h: New file, from GNU gettext.
62443         * lib/c-strcasecmp.c: New file, from GNU gettext.
62444         * lib/c-strncasecmp.c: New file, from GNU gettext.
62445
62446 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         * modules/mempcpy (License): GPL -> LGPL.
62449         * modules/strchrnul (License): Likewise.
62450         * modules/sysexits (License): Likewise.
62451
62452 2005-10-08  Simon Josefsson  <jas@extundo.com>
62453
62454         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62455
62456 2005-10-07  Simon Josefsson  <jas@extundo.com>
62457
62458         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62459
62460 2005-10-06  Simon Josefsson  <jas@extundo.com>
62461
62462         * tests/test-hmac-md5.c: New file.
62463
62464         * modules/hmac-md5-tests: New file.
62465
62466         * modules/hmac-md5: New file.
62467
62468 2005-10-06  Simon Josefsson  <jas@extundo.com>
62469
62470         * m4/hmac-md5.m4: New file.
62471
62472         * m4/memxor.m4: Require gl_C_RESTRICT.
62473
62474 2005-10-06  Simon Josefsson  <jas@extundo.com>
62475
62476         * lib/memxor.c (memxor): Avoid casts and warnings.
62477
62478 2005-10-06  Simon Josefsson  <jas@extundo.com>
62479
62480         * lib/hmac-md5.c: New file.
62481
62482         * lib/hmac.h: New file.
62483
62484 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62485
62486         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62487         promotes to int, not unsigned int, to catch the AIX 5.3
62488         compiler bug.
62489
62490 2005-10-05  Simon Josefsson  <jas@extundo.com>
62491
62492         * modules/memxor: New file.
62493
62494         * modules/iconv (Files): Move config.rpath to havelib, it is used
62495         there.
62496
62497         * modules/havelib (Files): Add config.rpath.
62498
62499 2005-10-05  Simon Josefsson  <jas@extundo.com>
62500
62501         * m4/memxor.m4: New file.
62502
62503 2005-10-05  Simon Josefsson  <jas@extundo.com>
62504
62505         * lib/memxor.c (memxor): Fix compiler error.
62506
62507         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62508         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62509
62510         * lib/memxor.h, lib/memxor.c: New files.
62511
62512         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62513         we assume all systems have it, suggested by Jim Meyering
62514         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62515         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62516         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62517         same reasons.
62518
62519 2005-10-05  Simon Josefsson  <jas@extundo.com>
62520
62521         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62522
62523 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62524
62525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62526         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62527         needed, since the source code now assumes these .h files.
62528
62529 2005-10-05  Derek Price  <derek@ximbiot.com>
62530
62531         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62532
62533 2005-10-05  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/stdint (License): Change to LGPL.
62536
62537 2005-10-04  Simon Josefsson  <jas@extundo.com>
62538
62539         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62540         D. Baushke" <mdb@gnu.org>.
62541
62542 2005-10-04  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/verify.h (verify_true): Provide alternative definition for C++.
62545
62546 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62547
62548         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62549         (SSIZE_MAX): New macro, if not already defined.
62550         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62551         than 2 GiB.
62552
62553 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62554
62555         Sync from coreutils.
62556         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62557         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62558         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62559         ULLONG_MAX doesn't work with 2.7.2.1.
62560
62561 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62564         From Ben Pfaff.
62565
62566         * modules/exclude (Depends-on): Depend on verify.
62567         * modules/strtoimax (Depends-on): Likewise.
62568         * modules/utimecmp (Depends-on): Likewise.
62569
62570 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62571
62572         * lib/exclude.c: Include verify.h.
62573         (verify): Remove.  All callers changed to use verify.h's version.
62574         * lib/strtoimax.c: Likewise.
62575         * lib/utimecmp.c: Likewis.e
62576
62577         Sync from coreutils.
62578         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62579         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62580         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62581         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62582         bother returning ENOSYS if settimeofday or stime fails; just let
62583         them return whatever errno they want to return.
62584         * lib/utimens.c: Include unistd.h, for dup2.
62585         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62586         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62587
62588 2005-10-02  Jim Meyering  <jim@meyering.net>
62589
62590         Sync from coreutils.
62591         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62592         from glibc-2.2.5 that fails for read-only files.
62593
62594 2005-10-02  Jim Meyering  <jim@meyering.net>
62595
62596         Sync from coreutils.
62597         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62598         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62599         `#if HAVE_CONFIG_H'.
62600         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62601         Remove AT_FDCWD test.
62602         Do not consume the fd unless successful.
62603         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62604         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62605         block, so that we don't even try to compile it if settimeofday is
62606         available.  This works around a compilation failure on OSF1 V5.1,
62607         due to stime requiring a `long int*' while tv_sec is `int'.
62608
62609 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62610
62611         Sync from coreutils.
62612         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62613         against `yes', rather than just testing for nonempty.
62614
62615 2005-10-01  Simon Josefsson  <jas@extundo.com>
62616
62617         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62618         and Darwin.
62619
62620         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62621         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62622         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62623         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62624         Check if struct addrinfo is declared.
62625
62626 2005-10-01  Simon Josefsson  <jas@extundo.com>
62627
62628         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62629         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62630         AI_* and EAI_* definitions.  Protect function declarations.
62631
62632 2005-10-01  Jim Meyering  <jim@meyering.net>
62633
62634         Sync from coreutils.
62635
62636         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62637         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62638         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62640         in the inet and nsl libraries.  Required on Solaris 5.7.
62641
62642 2005-10-01  Jim Meyering  <jim@meyering.net>
62643
62644         Sync from coreutils.
62645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62646         in the inet and nsl libraries.  Required on Solaris 5.7.
62647
62648 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62649
62650         * lib/getdelim.c (getdelim): Remove unused variables.
62651
62652 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62655         so that the code works even with ancient cpp.  Portability problem
62656         with GCC 2.7.2.1 reported by Thomas M.Ott.
62657
62658 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * modules/regex (Depends-on): Add strcase.
62661
62662         * modules/gethostname (Licence): Change from GPL to LGPL, since
62663         gethostname.c is a trivial implementation of a standard library
62664         function.
62665         * modules/poll (License): Change from GPL to LGPL, since it's
62666         derived from LGPL code.
62667
62668 2005-09-27  Jim Meyering  <jim@meyering.net>
62669
62670         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62671         HAVE_CONFIG_H.
62672
62673         * lib/intprops.h (signed_type_or_expr__): Define.
62674         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62675         for unsigned types.
62676
62677 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62678
62679         * lib/verify.h (verify_expr): Remove, replacing with:
62680         (verify_true): New macro that returns true instead of void.
62681         (verify_type__): Remove.
62682         (verify): Use verify_true rather than verify_type__.
62683
62684 2005-09-26  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62687         is necessary.
62688         (lib_SOURCES): Remove mbchar.c.
62689         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62690         (Files): Add m4/mbrtowc.m4.
62691         * modules/mbiter: Likewise.
62692         * modules/mbuiter: Likewise.
62693
62694 2005-09-26  Bruno Haible  <bruno@clisp.org>
62695
62696         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62697         compile mbchar.c if they are not both present.
62698         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62699         * m4/mbiter.m4 (gl_MBITER): Likewise.
62700         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62701         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62702         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62703
62704 2005-09-25  Jim Meyering  <jim@meyering.net>
62705
62706         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62707         also uses socklen_t.
62708
62709 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62710
62711         * lib/utimens.c (ENOSYS): Define if not already defined.
62712         (futimens): Support having a null PATH if the file descriptor
62713         is nonnegative.
62714
62715         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62716         Remove.
62717         (__attribute): Define to empty unless GCC 3.1 or later.
62718         This works around a core dump on OpenBSD 3.4, which has GCC
62719         2.95.3, which dumps core when given __attribute__(()).  It also
62720         simplifies other tests, since we really don't want to bother with
62721         worrying about which ancient version of GCC supported what.
62722         Original problem reported by Yoann Vandoorselaere, with part of
62723         the fix suggested by Derek Price.
62724
62725 2005-09-24  Jim Meyering  <jim@meyering.net>
62726
62727         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62728         so we can once again use a positive bitfield width of 1 -- now we
62729         don't have to explain why we were using a bitfield width of 2.
62730
62731 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62732
62733         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62734         and similarly for the other external symbols.  Problem reported
62735         by James Gallager.
62736
62737         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62738         bug reported by Jim Meyering.
62739
62740         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62742         not needed, since socklen is a prerequisite module.
62743
62744 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62747         Problem reported by Eric Blake.
62748         (getaddrinfo): Initialize se so that it's not garbage.
62749         Redo internal storage allocation so that it doesn't make unportable
62750         assumptions about alignment.
62751         Fix a memory leak.
62752
62753         * lib/utimens.c (futimens): Use futimesat if available.
62754         Prefer it to futimes since it doesn't have the futimes bug.
62755
62756         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62757         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62758         Instead, declare a function that returns a pointer to an array,
62759         and use verify_type__ to declare the size of the array.
62760         Problem and germ of a solution reported by Bruno Haible.
62761         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62762         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62763
62764 2005-09-23  Jim Meyering  <jim@meyering.net>
62765
62766         Sync from coreutils.
62767         Correct build failure (socklen_t not defined) on at least
62768         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62770
62771 2005-09-23  Jim Meyering  <jim@meyering.net>
62772
62773         * modules/getaddrinfo (Depends-on): Add socklen.
62774
62775 2005-09-23  Bruno Haible  <bruno@clisp.org>
62776
62777         * tests/test-verify.c: New file.
62778
62779 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62780
62781         Sync from coreutils.
62782
62783         * modules/argmatch (Depends-on): Add verify.
62784         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62785         unistd-safer.
62786         * modules/save-cwd (Depends-on): Likewise.
62787
62788         * modules/openat (Files): Add lib/openat-die.c.
62789         (Depends-on): Remove error, exitfail.
62790         Add dirname.
62791
62792         * modules/verify: New file.
62793         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62794         with "verify" module.
62795
62796 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62797
62798         Sync from coreutils.
62799
62800         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62801         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62802         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62803         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62804         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62805         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62806         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62807         Don't bother checking for string.h, stdlib.h, unistd.h.
62808         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62809         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62810         module's job.
62811         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62812         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62813
62814         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62815         (gl_GETDATE): Use it.
62816
62817         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62818
62819 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         Sync from coreutils.
62822
62823         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62824         stat-time.h.
62825         * lib/argmatch.h: Include verify.h
62826         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62827         (ARGMATCH_ASSERT): Remove; unused.
62828         * lib/canonicalize.c: Assume STDC_HEADERS.
62829         * lib/exclude.c: Include "strcase.h".
62830         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62831         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62832         and stdio-safer.h.
62833         (getusershell): Call fopen, not fopen_safer.
62834         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62835         Do not include unistd-safer.h.
62836         (save_cwd): Don't call fd_safer; no longer needed
62837         now that we include fcntl--.h.
62838
62839         * lib/getdate.y (relative_time): New type.
62840         (RELATIVE_TIME_0): New constant.
62841         (parser_control): Use relative_time instead of doing it ourselves.
62842         (%union): Add new relative_time rel member.
62843         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62844         Now typeless.
62845         (relunit, relunit_snumber): Now of type rel.
62846         (zone, rel, relunit, get_date): Adjust to above changes.
62847
62848         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62849         Do not include unistd-safer.h.
62850         (getloadavg): Don't call fd_safer; no longer needed
62851         now that we include fcntl--.h.
62852
62853         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62854         (make_dir_parents): Treat ENOSYS like EEXIST.
62855
62856         Improve quality of diagnostics on restore_cwd failure.
62857         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62858         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62859         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62860         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62861         each time through the loop.  Do not diagnose restore_cwd failure;
62862         that is the caller's job (and perhaps the caller does not care).
62863
62864         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62865         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62866         If the file already exists but is not a directory, don't bother
62867         to try to make its parents.
62868         Close potential file descriptor leak if we can't chdir("/") (!).
62869         Don't always return true if chdir($PWD) fails; return true only
62870         if the requested action was done successfully (except for the
62871         chdir($PWD)).
62872         Don't log final directory unless we actually made it.
62873         Refactor to avoid duplicate code to fix up permissions.
62874         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62875
62876         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62877         to make it a bit faster and (I hope) clearer.
62878         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62879         Fix bug in formats like %2N.
62880
62881         * lib/verify.h: New file.
62882
62883 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62884
62885         Sync from coreutils.
62886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62887
62888 2005-09-22  Jim Meyering  <jim@meyering.net>
62889
62890         Sync from coreutils.
62891
62892         * m4/lstat.m4 (gl_FUNC_LSTAT):
62893         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62894         Remove obsolete comment.
62895         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62896         * m4/xstrtod.m4: Likewise.
62897
62898         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62899
62900 2005-09-22  Jim Meyering  <jim@meyering.net>
62901
62902         Sync from coreutils.
62903
62904         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62905
62906         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62907         the .tm_year member, since otherwise gcc-4.0 would now warn about
62908         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62909
62910         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62911         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62912
62913         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62914         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62915         when run in a time zone for which daylight savings time is in effect
62916         for the starting date.
62917
62918         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62919         stop us from restricting permissions of just-created absolute-named
62920         directories.
62921         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62922         to restore initial working directory.
62923         * lib/mkdir-p.c (make_dir_parents): New parameter:
62924         different_working_dir, to tell caller if/when we change the working
62925         directory and are unable to return to the initial one.
62926         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62927         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62928         `return false'.  This fixes a bug introduced on 2004-07-30.
62929
62930         * lib/openat.c (fdopendir): Be sure to close the supplied
62931         file descriptor before returning.  This makes our replacement
62932         implementation a little closer to Solaris's, where fdopendir
62933         ties the file descriptor to the returned DIR* pointer.
62934         * lib/openat.c (unlinkat): New function.
62935         * lib/openat.h (unlinkat): Add prototype.
62936         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62937         (openat_restore_fail): Rename from openat_restore_die.
62938         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62939
62940         Provide an alternative to exiting immediately upon save_cwd or
62941         restore_cwd failure.  Now, an application can arrange e.g.,
62942         to perform a longjump in that case.
62943         * lib/openat.c: Include dirname.h.
62944         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62945         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62946         and openat_restore_die rather than calling error directly.
62947         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62948
62949         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62950         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62951         define.
62952
62953         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62954         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62955                             int utc, int nanoseconds);
62956         Background:
62957         date should not have to allocate a megabyte of virtual memory to
62958         handle a format argument like +%1048575T.  When implemented with
62959         strftime, it must allocate such a buffer, use strftime to fill it
62960         in, print it, then free it.
62961         With fprintftime, it simply prints everything and exits.
62962         With no need for memory allocation, that's one fewer way to fail.
62963         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62964         optional field width, not before, so we accept %9:z, not %:9z.
62965         (my_strftime): Be sure to use L_('x') for literals.
62966
62967         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62968         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62969         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62970         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62971         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62972         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62973         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62974         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62975         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62976         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62977         * lib/xgethostname.c, lib/xreadlink.c:
62978         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62979
62980         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62981         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62982         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62983         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62984         and don't include <sys/file.h>).
62985
62986 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62987
62988         Sync from coreutils.
62989
62990         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62991         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62992         [!LDAV_DONE]: Avoid unused variable warning.
62993
62994 2005-09-21  Bruno Haible  <bruno@clisp.org>
62995
62996         * lib/unicodeio.h (unicode_to_mb): New declaration.
62997
62998 2005-09-20  Derek Price  <derek@ximbiot.com>
62999
63000         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63001         getaddrinfo.h.
63002
63003 2005-09-20  Bruno Haible  <bruno@clisp.org>
63004
63005         * gnulib-tool: Remove trailing slashes from the values specified for
63006         --source-base, --m4-base, --tests-base, --aux-dir.
63007         Suggested by Simon Josefsson <jas@extundo.com>.
63008
63009 2005-09-20  Bruno Haible  <bruno@clisp.org>
63010
63011         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63012         func_modules_to_filelist, func_import, func_create_testdir): Make all
63013         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63014         change when gnulib-tool is invoked in a different locale.
63015
63016 2005-09-19  Simon Josefsson  <jas@extundo.com>
63017
63018         * m4/socklen.m4: Fix typo.
63019
63020 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63021
63022         Use a consistent style for including <config.h>.
63023         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63024         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63025         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63026         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63027         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63028         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63029         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63030         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63031         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63032         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63033         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63034         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63035         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63036         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63037         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63038         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63039         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63040         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63041         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63042         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63043         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63044         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63045         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63046         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63047         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63048         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63049         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63050         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63051         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63052         lib/xstrtoumax.c, lib/yesno.c:
63053         Standardize inclusion of config.h.
63054         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63055         lib/inttostr.h:  Removed inclusion of config.h from header files.
63056         * lib/inttostr.c:  Adjusted in-tree users.
63057         * lib/timespec.h: Remove superfluous warning to include config.h.
63058         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63059         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63060         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63061         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63062         config.h with HAVE_CONFIG_H.
63063
63064 2005-09-19  Jim Meyering  <jim@meyering.net>
63065
63066         * modules/pathmax (License): Change to LGPL.
63067
63068 2005-09-19  Derek Price  <derek@ximbiot.com>
63069
63070         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63071
63072 2005-09-19  Bruno Haible  <bruno@clisp.org>
63073
63074         * gnulib-tool (import): Provide default for --tests-base.
63075
63076 2005-09-19  Bruno Haible  <bruno@clisp.org>
63077
63078         * doc/quote.texi: New file, extracted from gnulib.texi.
63079         * doc/ctime.texi: New file, extracted from gnulib.texi.
63080         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63081         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63082         * doc/gnulib.texi: Include them.
63083
63084 2005-09-18  Bruno Haible  <bruno@clisp.org>
63085
63086         Portability fix.
63087         * gnulib-tool (func_readlink): New function.
63088         (func_ln_if_changed): Use it.
63089
63090 2005-09-18  Bruno Haible  <bruno@clisp.org>
63091
63092         * gnulib-tool: Support --with-tests also with --import.
63093         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63094         (func_import): Use variables $testsbase and $inctests. Emit a
63095         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63096         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63097         SUBDIRS += $testsdir.
63098         (func_create_testdir): Update.
63099
63100 2005-09-18  Bruno Haible  <bruno@clisp.org>
63101
63102         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63103         instead of $dry_run.
63104         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63105         (func_ln_if_changed): Don't handle dry-run here.
63106         (func_import): In dry-run mode, detect more precisely which actions
63107         would be performed, and don't use "...ing" verbs.
63108
63109 2005-09-18  Bruno Haible  <bruno@clisp.org>
63110
63111         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63112         (func_import): Use join on two temporary files instead of three nested
63113         loops, in order to determine which files are new or old.
63114
63115 2005-09-18  Bruno Haible  <bruno@clisp.org>
63116
63117         * gnulib-tool (func_import): Comment out code that spits out the
63118         new files with --dry-run.
63119
63120 2005-09-18  Bruno Haible  <bruno@clisp.org>
63121
63122         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63123
63124 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63125
63126         * lib/stat-time.h: New file.
63127         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63128         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63129         in a different way.
63130         (timespec_cmp): New function.
63131         * lib/utimecmp.c: Include stat-time.h.
63132         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63133         members exist, not on the obsolescent ST_MTIM_NSEC.
63134         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63135
63136 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63139
63140 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         * MODULES.html.sh (File system functions): Add stat-time.
63143         * modules/stat-time: New file.
63144         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63145         is now done in a different way, by the stat-time module.
63146         * modules/utimecmp (Depends-on): Add stat-time.
63147
63148 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * m4/st_mtim.m4: Remove.  Superseded by...
63151         * m4/stat-time.m4: New file.
63152         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63153         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63154
63155 2005-09-15  Derek Price  <derek@ximbiot.com>
63156
63157         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63158
63159 2005-09-15  Derek Price  <derek@ximbiot.com>
63160
63161         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63162         * lib/regex_internal.c: Ditto, using this...
63163         (__GNUC_PREREQ): ...new macro.
63164         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63165         using...
63166         (__GNUC_PREREQ): ...this new macro.
63167
63168         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63169
63170 2005-09-15  Derek Price  <derek@ximbiot.com>
63171             Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63174         changes, consolidating in...
63175         * lib/regex_internal.h: ...this file.
63176
63177 2005-09-13  Jim Meyering  <jim@meyering.net>
63178
63179         * lib/canon-host.c: Filter through gnu indent and reword comments
63180         slightly.
63181         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63182
63183 2005-09-13  Derek Price  <derek@ximbiot.com>
63184
63185         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63186         failure.
63187         Reported by Jim Meyering  <jim@meyering.net>.
63188
63189 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63190
63191         * lib/base64.c: Typo.
63192         (base64_encode): Put b64str in initialized data section.
63193
63194 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         Merge glibc and coreutils changes into gnulib, plus a few
63197         extra fixes.
63198         * lib/md5.c: Use #error rather than a string.
63199         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63200         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63201         (__attribute__): Define to empty for non recent-GCC.
63202         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63203         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63204         Renamed from their non-__ counterparts, with new macros replacing
63205         them if not _LIBC.  Add __THROW attribute.
63206         (rol): Remove.
63207         (struct md5_ctx): Align buffer if using GCC.
63208         * lib/sha1.h (struct sha1_ctx): Likewise.
63209         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63210         The old name was backwards.
63211         (NOTSWAP): Remove; not used.
63212         (rol): New macro, moved here from md5.h.
63213         (sha1_process_block): Remove a FIXME that doesn't make sense.
63214
63215 2005-09-12  Derek Price  <derek@ximbiot.com>
63216
63217         Return usable errors from canon-host.
63218         * lib/canon-host.h: New file.
63219         * lib/canon-host.c (canon_host): Wrap...
63220         (canon_host_r): ...this new function, which now relies exclusively on
63221         getaddrinfo.
63222         (ch_strerror): New function.
63223         (last_cherror): New global.
63224         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63225         interface.
63226         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63227         void *.
63228         (freeaddrinfo): Free ai->ai_canonname when set.
63229
63230 2005-09-12  Derek Price  <derek@ximbiot.com>
63231
63232         Make canon-host require getaddrinfo.
63233         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63234         AC_LIBSOURCE canon-host.h.  Call...
63235         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63236         gl_GETADDRINFO.
63237         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63238
63239 2005-09-12  Derek Price  <derek@ximbiot.com>
63240
63241         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63242         LGPL.
63243         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63244
63245 2005-09-12  Derek Price  <derek@ximbiot.com>
63246
63247         * lib/gai_strerror.c: Include config.h when available.  Include
63248         getaddrinfo.h before other headers to test interface.
63249         Reported by Larry Jones <lawrence.jones@ugs.com>.
63250
63251 2005-09-12  Derek Price  <derek@ximbiot.com>
63252             Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * modules/glob (Files): Add glob-libc.h.
63255
63256 2005-09-12  Derek Price  <derek@ximbiot.com>
63257             Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63260         glob_.h, glob-libc.h.
63261         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63262
63263 2005-09-12  Derek Price  <derek@ximbiot.com>
63264             Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63267         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63268         protecting things that should be done only in gnulib contexts.
63269         * lib/glob_.h: New file, containing only the glob things needed for
63270         gnulib.
63271         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63272         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63273         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63274         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63275         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63276         and to respect the namespace rules better.
63277
63278 2005-09-08  Simon Josefsson  <jas@extundo.com>
63279
63280         * modules/socklen: New file.
63281
63282 2005-09-08  Simon Josefsson  <jas@extundo.com>
63283
63284         * m4/socklen.m4: New file.
63285
63286 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * modules/utimens (Files): Add m4/utimbuf.m4, since
63289         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63290         Reported by Sergey Poznyakoff.
63291
63292 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63295         definitions, since that's the preferred style in glibc.
63296         Fix a minor spacing issue, and update copyright notice to match
63297         glibc's.
63298
63299 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63300
63301         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63302
63303 2005-09-06  Simon Josefsson  <jas@extundo.com>
63304
63305         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63306         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63307
63308 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63309
63310         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63311         warning.
63312
63313 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * config/srclist.txt: Add glibc bug 1302.
63316
63317 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63318
63319         Change bitset word type from unsigned int to unsigned long int,
63320         as this has better performance on typical 64-bit hosts.
63321         Port bitset code to hosts with unusual word sizes.
63322         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63323         (build_collating_symbol):
63324         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63325         argument is a bitset.  This is merely a style issue, but it makes
63326         it clearer that an entire array is expected.
63327         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63328         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63329         Port to the case where bitset_word is not the same as unsigned int.
63330         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63331         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63332         Likewise.
63333         * lib/regexec.c (check_dst_limits_calc_pos_1,
63334         check_subexp_matching_top):
63335         (build_trtable, group_nodes_into_DFAstates):
63336         Likewise.
63337         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63338         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63339         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63340         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63341         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63342         * lib/regcomp.c (optimize_subexps, lower_subexp):
63343         Work even if bitset_word has holes in its bitwise representation.
63344         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63345         * lib/regexec.c (check_dst_limits_calc_pos_1,
63346         check_subexp_matching_top):
63347         Likewise.
63348         * lib/regex_internal.c (re_string_reconstruct):
63349         Don't assume UCHAR_MAX == 255.
63350         * lib/regex_internal.h (bitset_set_all): Likewise.
63351         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63352         All uses changed.
63353         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63354         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63355         All uses changed.
63356         (BITSET_WORD_MAX): New macro.
63357         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63358         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63359         (bitset_empty, bitset_copy):
63360         Prefer sizeof (bitset) to multiplying it out ourselves.
63361         (bitset_not_merge): Remove; unused.
63362         (bitset_contain): Return bool, not unsigned int with one bit on.
63363         All callers changed.
63364         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63365         alignment than re_node_set; do this by defining a new internal
63366         type struct dests_alloc and using it to allocate memory.
63367
63368 2005-09-05  Bruno Haible  <bruno@clisp.org>
63369
63370         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63371         links.
63372
63373 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63374
63375         * modules/size_max (Makefile.am): Add size_max.h
63376
63377 2005-09-04  Derek Price  <derek@ximbiot.com>
63378
63379         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63380
63381 2005-09-03  Simon Josefsson  <jas@extundo.com>
63382
63383         * gnulib-tool: Fix typo.
63384
63385 2005-09-03  Simon Josefsson  <jas@extundo.com>
63386
63387         * config/srclist.txt: Add glibc bug 1293.
63388
63389 2005-09-03  Derek Price  <derek@ximbiot.com>
63390
63391         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63392         From Larry Jones <lawrence.jones@ugs.com>.
63393
63394 2005-09-02  Simon Josefsson  <jas@extundo.com>
63395
63396         * modules/socklen: New file.
63397
63398 2005-09-02  Simon Josefsson  <jas@extundo.com>
63399
63400         * modules/havelib: New module.
63401
63402         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63403         Use havelib.
63404
63405 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63406
63407         Check for arithmetic overflow when calculating sizes, to prevent
63408         some buffer-overflow issues.  These patches are conservative, in the
63409         sense that when I couldn't determine whether an overflow was possible,
63410         I inserted a run-time check.
63411         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63412         macros.
63413         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63414         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63415         (re_xnrealloc, re_x2nrealloc): New inline functions.
63416         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63417         parse_bracket_exp):
63418         (build_equiv_class, build_charclass): Check for arithmetic overflow
63419         in size expression calculations.
63420         * lib/regex_internal.c (re_string_realloc_buffers):
63421         (build_wcs_upper_buffer, re_node_set_add_intersect):
63422         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63423         (re_dfa_add_node, register_state): Likewise.
63424         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63425         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63426         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63427         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63428
63429 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63432         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63433
63434 2005-09-02  Bruno Haible  <bruno@clisp.org>
63435
63436         Support for lib vs. lib64 distinction on biarch platforms.
63437         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63438         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63440
63441 2005-09-02  Bruno Haible  <bruno@clisp.org>
63442
63443         * gnulib-tool (import): In the other first-use case, provide defaults
63444         as well.
63445
63446 2005-09-02  Bruno Haible  <bruno@clisp.org>
63447
63448         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63449         patches not yet found in the latest gettext release.
63450
63451 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63454         to avoid a collision with bits/local_lim.h in glibc.
63455         All uses changed.  Problem reported by Dmitry V. Levin in
63456         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63457
63458         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63459         bugs in int versus size_t comparisons.
63460         (re_string_context_at): Fix bug where the code assumed that
63461         Idx is signed.
63462
63463         Use bool where appropriate.
63464         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63465         All callers changed.
63466         (calc_eclosure_iter): Likewise, for ROOT arg.
63467         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63468         (build_charclass_op): Likewise, for NON_MATCH arg.
63469         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63470         (re_string_construct_common): Likewise, for ICASE arg.
63471         * lib/regexec.c (re_search_2_stub, re_search_stub):
63472         Likewise, for RET_LEN arg.
63473         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63474         (set_regs): Likewise, for FL_BACKTRACK arg.
63475         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63476         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63477         (calc_eclosure_iter, parse_bracket_exp):
63478         Use bool for internal variables that are booleans.
63479         * lib/regexec.c (re_search_internal, check_matching,
63480         proceed_next_node):
63481         (set_regs, build_sifted_states, sift_states_bkref):
63482         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63483         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63484         (find_collation_sequence_value):
63485         Likewise.
63486         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63487         (re_node_set_compare):
63488         Return bool, not int. All callers changed.
63489         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63490         (build_trtable, check_node_accept): Likewise.
63491         * lib/regex_internal.h: Include stdbool.h.
63492
63493         Fix bugs uncovered when converting to bool.
63494         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63495         failure instead of charging ahead blindly.
63496         * lib/regex_internal.c (register_state): Likewise.
63497         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63498         for freeing internal storage.
63499         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63500         bitset pieces used as boolean, to avoid undefined behavior
63501         on hosts that do int overflow checking.
63502
63503 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * config/srclist.txt: Add glibc bugs 1285-1287.
63506
63507 2005-09-01  Jim Meyering  <jim@meyering.net>
63508
63509         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63510         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63511         Require gl_STAT_MACROS, too.
63512
63513 2005-09-01  Bruno Haible  <bruno@clisp.org>
63514
63515         * gnulib-tool (import): In the first-use case, provide defaults.
63516
63517 2005-09-01  Bruno Haible  <bruno@clisp.org>
63518
63519         * gnulib-tool (func_import): Remove the .tmp files.
63520
63521 2005-09-01  Bruno Haible  <bruno@clisp.org>
63522
63523         * gnulib-tool (func_import): Fix handling of symbolic links.
63524
63525 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63528         old glibc regex code mishandles strings longer than 2**31 bytes.
63529         This patch fixes this when the regex code is used in gnulib
63530         (i.e., outside glibc).
63531
63532         This patch should not affect the use of the regex code inside
63533         glibc.  No doubt this problem also needs to be handled for glibc
63534         as well, but the result will be an incompatible change to the
63535         glibc ABI, and the old ABI will have to be supported too.  That
63536         can be the the subject for another patch.
63537
63538         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63539         governing whether the rest of this patch is active.  By default,
63540         the macro is disabled and the patch has no effect.
63541         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63542         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63543         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63544         (re_match_2, re_set_registers): Use the new types.
63545         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63546         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63547         New macros.
63548         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63549         (re_string_context_at, bin_tree_t, re_dfastate_t):
63550         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63551         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63552         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63553         (re_string_char_size_at, re_string_wchar_at):
63554         (re_string_elem_size_at):
63555         Use the new types and macros to port to 64-bit hosts.
63556         Use unsigned types for internal values, so that the code
63557         mostly works even for arrays larger than SSIZE_MAX.
63558         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63559         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63560         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63561         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63562         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63563         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63564         (calc_inveclosure, parse_dup_op, build_range_exp):
63565         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63566         (fetch_number, create_token_tree, mark_opt_subexp):
63567         Likewise.
63568         * lib/regex_internal.c (re_string_construct_common,
63569         create_ci_newstate):
63570         (create_cd_newstate, re_string_allocate, re_string_construct):
63571         (re_string_realloc_buffers, build_wcs_upper_buffer):
63572         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63573         (re_string_reconstruct, re_string_peek_byte_case):
63574         (re_string_fetch_byte_case, re_string_context_at):
63575         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63576         (re_node_set_init_copy, re_node_set_add_intersect):
63577         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63578         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63579         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63580         (re_acquire_state, re_acquire_state_context, register_state):
63581         Likewise.
63582         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63583         search_cur_bkref_entry):
63584         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63585         (re_search_internal, re_search_2_stub, re_search_stub)
63586         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63587         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63588         (update_cur_sifted_state, check_dst_limits):
63589         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63590         (check_subexp_limits, sift_states_bkref, merge_state_array):
63591         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63592         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63593         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63594         (expand_bkref_cache, check_node_accept_bytes):
63595         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63596         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63597         (acquire_init_state_context, check_halt_node_context):
63598         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63599         (sift_states_backward, clean_state_log_if_needed):
63600         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63601         (find_recover_state, transit_state_sb, transit_state_mb):
63602         (transit_state_bkref, build_trtable, match_ctx_clean):
63603         Likewise.
63604         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63605         to work around an assumption that REG_MISSING is negative.
63606
63607         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63608         (seek_collating_symbol_entry) [defined _LIBC]:
63609         (lookup_collation_sequence_value) [defined _LIBC]:
63610         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63611         Use prototypes rather than old-style function definitions.
63612         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63613         (transit_state_sb) [0]:
63614         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63615
63616         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63617         rm_eo.
63618
63619         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63620         (optimize_subexps, lower_subexp):
63621         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63622         since the signed shift might overflow.  Use 1u<<31 instead.
63623         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63624         Likewise.
63625         * lib/regexec.c (check_dst_limits_calc_pos_1,
63626         check_subexp_matching_top): Likewise.
63627
63628         * lib/regcomp.c (optimize_subexps, lower_subexp):
63629         Use CHAR_BIT rather than 8, for clarity.
63630         * lib/regexec.c (check_dst_limits_calc_pos_1):
63631         (check_subexp_matching_top): Likewise.
63632         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63633         have to worry about portability issues when shifting it left.
63634         Remove no-longer-needed test for table_size > 0.
63635         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63636         in a word, as the resulting behavior is undefined.
63637         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63638         in one case, a <= should have been an <, and in another case the
63639         whole test was missing.
63640         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63641         the standard name CHAR_BIT.
63642         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63643         this is not true on one's complement and signed-magnitude hosts.
63644
63645         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63646         next_last_offset.
63647         (struct re_dfa_t): Remove unused member states_alloc.
63648         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63649
63650 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63651
63652         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63653         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63654         and large-file glibc and in 32-bit large-file Solaris.
63655
63656 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63659         lengths fit in regoff_t; this isn't true if regoff_t is the same
63660         width as size_t.
63661         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63662         (= START + RANGE) instead of RANGE.  This avoids overflow
63663         problems when regoff_t is the same width as size_t.
63664         All callers changed.
63665         (re_search_2_stub): Check for overflow when adding the
63666         sizes of the two strings.
63667         (re_search_stub): Check for overflow when adding START
63668         to RANGE; if it occurs, substitute the extreme value.
63669
63670 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63671
63672         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63673
63674 2005-08-31  Jim Meyering  <jim@meyering.net>
63675
63676         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63677         a pointer-to-const.
63678         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63679         (register_state): Likewise.
63680         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63681         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63682         (group_nodes_into_DFAstates): Likewise.
63683
63684 2005-08-31  Jim Meyering  <jim@meyering.net>
63685
63686         * check-module: Add a FIXME comment.
63687
63688 2005-08-31  Eric Blake  <ebb9@byu.net>
63689
63690         * modules/unistd-safer (Files): Add unistd--.h.
63691         * modules/stdio-safer (Files): Add stdio--.h.
63692
63693 2005-08-31  Derek Price  <derek@ximbiot.com>
63694
63695         * lib/getdelim.c (getdelim): Return EOF on EOF.
63696         Reported by Larry Jones <lawrence.jones@ugs.com>.
63697
63698 2005-08-31  Bruno Haible  <bruno@clisp.org>
63699
63700         Avoid unnecessary diffs in the generated lib/Makefile.am.
63701         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63702         the generated files.
63703         (func_import): Don't set cmd.
63704
63705 2005-08-31  Bruno Haible  <bruno@clisp.org>
63706
63707         * lib/strstr.c: Include <stddef.h>, for NULL.
63708         * lib/strcasestr.c: Likewise.
63709         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63710
63711 2005-08-31  Bruno Haible  <bruno@clisp.org>
63712
63713         * gnulib-tool: New option --macro-prefix.
63714         (func_import): Use macro_prefix.
63715         (import): Handle option --macro-prefix.
63716
63717 2005-08-31  Bruno Haible  <bruno@clisp.org>
63718
63719         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63720         Also use new variables cached_lgpl, cached_libtool.
63721
63722 2005-08-31  Bruno Haible  <bruno@clisp.org>
63723
63724         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63725         always instantiating them.
63726
63727 2005-08-31  Bruno Haible  <bruno@clisp.org>
63728
63729         * gnulib-tool (func_import): Read the previous cached settings
63730         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63731         earlier added by gnulib but are now dropped. Warn when a gnulib file
63732         overwrites a non-gnulib file.
63733
63734 2005-08-31  Bruno Haible  <bruno@clisp.org>
63735
63736         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63737         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63738         projects that don't keep autogenerated files in CVS. Put into
63739         actioncmd only the specified modules, not the transitive closure.
63740
63741 2005-08-31  Bruno Haible  <bruno@clisp.org>
63742
63743         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63744         Create directories that shall be filled.
63745         (import): Don't look for gl_* macros in configure.ac. Recurse across
63746         all directories containing a gnulib-cache.m4 files, if meaningful.
63747
63748 2005-08-31  Bruno Haible  <bruno@clisp.org>
63749
63750         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63751         (import): Set seen_libtool when we see gl_LIBTOOL.
63752
63753 2005-08-31  Bruno Haible  <bruno@clisp.org>
63754
63755         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63756         declaration macro definitions from generated gnulib.m4.
63757
63758 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63759
63760         * lib/iconvme.h: Add prototype for iconv_alloc.
63761
63762 2005-08-29  Simon Josefsson  <jas@extundo.com>
63763
63764         * lib/iconvme.c: Fix errno.
63765
63766 2005-08-29  Bruno Haible  <bruno@clisp.org>
63767
63768         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63769         that it works when the directory contains spaces.
63770
63771 2005-08-29  Bruno Haible  <bruno@clisp.org>
63772
63773         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63774
63775 2005-08-29  Bruno Haible  <bruno@clisp.org>
63776
63777         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63778         Emit more advice.
63779
63780 2005-08-29  Bruno Haible  <bruno@clisp.org>
63781         and Stepan Kasal  <kasal@ucw.cz>
63782
63783         * check-module: If more parameters are given, check each of them
63784         separately; add more exceptions, as noted by Jim Meyering.
63785         (check_module): New procedure.
63786         (%exempt_header): Now contains all exceptions.
63787
63788 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63789
63790         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63791
63792 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63793
63794         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63795
63796 2005-08-28  Bruno Haible  <bruno@clisp.org>
63797
63798         * m4/gnulib-tool.m4: New file.
63799
63800 2005-08-27  Jim Meyering  <jim@meyering.net>
63801
63802         * modules/unistd-safer (Files): Add pipe-safer.c.
63803         * modules/fcntl-safer (Files): Add creat-safer.c.
63804
63805 2005-08-27  Jim Meyering  <jim@meyering.net>
63806
63807         * m4/stdlib-safer.m4: New file.  From coreutils.
63808         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63809         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63810         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63811         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63812         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63813
63814 2005-08-27  Jim Meyering  <jim@meyering.net>
63815
63816         * lib/fopen-safer.c: Merge minor changes from coreutils.
63817         * lib/dup-safer.c: Likewise.
63818         * lib/fd-safer.c: Likewise.
63819
63820         Merge from coreutils.
63821         * lib/stdio--.h: New file.
63822         * lib/stdlib--.h: New file.
63823         * lib/mkstemp-safer.c: New file.
63824
63825         GNU tar needs these.
63826         * lib/pipe-safer.c: New file.
63827         * lib/creat-safer.c: New file.
63828         * lib/fcntl--.h (creat): Define to creat_safer.
63829         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63830         * lib/unistd--.h (pipe): Define to pipe_safer.
63831         * lib/unistd-safer.h: Declare pipe_safer.
63832
63833 2005-08-26  Simon Josefsson  <jas@extundo.com>
63834
63835         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63836         Haible <bruno@clisp.org>.
63837
63838 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         * lib/regex_internal.h: Remove all references to
63841         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63842         or better.
63843         (bitset_not, bitset_merge, bitset_not_merge):
63844         (bitset_mask, re_string_allocate, re_string_construct):
63845         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63846         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63847         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63848         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63849         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63850         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63851         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63852         (re_acquire_state_context):
63853         Remove unnecessary forward decls.
63854         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63855         Put __attribute at function definition,
63856         now that the function decl has been removed.
63857         * lib/regex_internal.c (re_string_peek_byte_case):
63858         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63859         Likewise.
63860
63861 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63862
63863         * m4/regex.m4: Add AC_PREREQ(2.50).
63864         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63865
63866 2005-08-25  Simon Josefsson  <jas@extundo.com>
63867
63868         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63869         __fsetlocking.
63870
63871 2005-08-25  Simon Josefsson  <jas@extundo.com>
63872
63873         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63874         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63875         GLIBC specific code.
63876
63877 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63878
63879         Make regex safe for g++.  This fixes one real bug (an "err"
63880         that should have been "*err").  g++ problem reported by
63881         Sam Steingold.
63882         * lib/regex_internal.h (re_calloc): New macro, consistent with
63883         re_malloc etc.  All callers of calloc changed to use re_calloc.
63884         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63885         not int.  All callers changed.
63886         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63887         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63888         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63889         (find_recover_state): Change "err" to "*err"; this fixes what
63890         appears to be a real bug.
63891         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63892         versus int.
63893
63894 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * modules/regex (Depends-on): Add malloc, since the code
63897         assumes that !malloc(0) means failure.
63898
63899 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63902
63903         alloca modernization/simplification for regex.
63904         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63905         needs to be at the start of the file, and can be moved into
63906         regex_internal.h and simplified.
63907         * lib/regex_internal.h: Include <alloca.h>.
63908         (__libc_use_alloca) [!defined _LIBC]: New macro.
63909         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63910         now works outside glibc.
63911
63912 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63913
63914         * config/srclist.txt: Add glibc bugs 1241, 1245.
63915
63916 2005-08-25  Jim Meyering  <jim@meyering.net>
63917
63918         * lib/open-safer.c: Include <config.h>.
63919         Otherwise, we'd lose LARGEFILE support in any file using
63920         e.g. "fcntl--.h"
63921
63922 2005-08-25  Bruno Haible  <bruno@clisp.org>
63923
63924         * m4/minmax.m4: Require autoconf 2.52.
63925         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63926         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63927         alternatives of translit over the alphabet.
63928         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63929
63930 2005-08-24  Simon Josefsson  <jas@extundo.com>
63931
63932         * tests/test-getpass.c: New file.
63933
63934 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63935
63936         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63937         for GNU regex features.
63938
63939 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63940
63941         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63942         * lib/regex.h (regerror): Likewise.
63943
63944         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63945         requires this.  (The code never needed it.)
63946
63947         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63948         All uses of recently-renamed identifiers changed to use the new,
63949         POSIX-compliant names.  The code will build and run just fine
63950         without these changes, but it's better to eat our own dog food
63951         and use the standard-conforming names.
63952
63953         * lib/regex.h: Fix a multitude of POSIX name space violations.
63954         These changes have an effect only for programs that define
63955         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63956         do not change anything for programs compiled in the normal way.
63957         Also, there is no effect on the ABI.
63958
63959         (_REGEX_SOURCE): New macro.
63960         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63961         defined and _GNU_SOURCE is not; this fixes a name space violation.
63962
63963         Rename the following macros to obey POSIX requirements.
63964         The old names are still visible as macros if _REGEX_SOURCE is defined.
63965         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63966         RE_BACKSLASH_ESCAPE_IN_LISTS.
63967         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63968         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63969         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63970         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63971         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63972         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63973         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63974         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63975         (REG_INTERVALS): renamed from RE_INTERVALS.
63976         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63977         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63978         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63979         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63980         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63981         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63982         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63983         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63984         RE_UNMATCHED_RIGHT_PAREN_ORD.
63985         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63986         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63987         (REG_DEBUG): renamed from RE_DEBUG.
63988         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63989         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63990         unusual, since we can't clash with the POSIX REG_ICASE.
63991         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63992         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63993         (REG_NO_SUB): renamed from RE_NO_SUB.
63994         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63995         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63996         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63997         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63998         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63999         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64000         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64001         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64002         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64003         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64004         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64005         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64006         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64007         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64008         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64009         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64010         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64011         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64012         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64013         (REG_FIXED): Renamed from REGS_FIXED.
64014         (REG_NREGS): Renamed from RE_NREGS.
64015
64016         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64017         of other REG_* macros, since POSIX says the user is allowed to
64018         #undef these macros selectively.
64019
64020         (reg_errcode_t): Update comment stating what other tables need
64021         to be consistent.
64022
64023         Rename the following enum values to obey POSIX requirements.
64024         The old names are still visible as macros.
64025         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64026         is not defined, since GNU is supposed to be a superset of POSIX as
64027         much as possible, and since we want reg_errcode_t to be a signed
64028         type for implementation consistency.
64029         (_REG_NOERROR): Renamed from REG_NOERROR.
64030         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64031         (_REG_BADPAT): Renamed from REG_BADPAT.
64032         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64033         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64034         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64035         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64036         (_REG_EBRACK): Renamed from REG_EBRACK.
64037         (_REG_EPAREN): Renamed from REG_EPAREN.
64038         (_REG_EBRACE): Renamed from REG_EBRACE.
64039         (_REG_BADBR): Renamed from REG_BADBR.
64040         (_REG_ERANGE): Renamed from REG_ERANGE.
64041         (_REG_ESPACE): Renamed from REG_ESPACE.
64042         (_REG_BADRPT): Renamed from REG_BADRPT.
64043         (_REG_EEND): Renamed from REG_EEND.
64044         (_REG_ESIZE): Renamed from REG_ESIZE.
64045         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64046         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64047         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64048         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64049         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64050
64051         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64052         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64053         changed.  But support the old name if the new one is not defined
64054         and if _REGEX_SOURCE.
64055
64056         Change the following member names in struct re_pattern_buffer.
64057         The old names are still supported if !_REGEX_SOURCE.
64058         The new names are always supported, regardless of _REGEX_SOURCE.
64059         (re_buffer): Renamed from buffer.
64060         (re_allocated): Renamed from allocated.
64061         (re_used): Renamed from used.
64062         (re_syntax): Renamed from syntax.
64063         (re_fastmap): Renamed from fastmap.
64064         (re_translate): Renamed from translate.
64065         (re_can_be_null): Renamed from can_be_null.
64066         (re_regs_allocated): Renamed from regs_allocated.
64067         (re_fastmap_accurate): Renamed from fastmap_accurate.
64068         (re_no_sub): Renamed from no_sub.
64069         (re_not_bol): Renamed from not_bol.
64070         (re_not_eol): Renamed from not_eol.
64071         (re_newline_anchor): Renamed from newline_anchor.
64072
64073         Change the following member names in struct re_registers.
64074         The old names are still supported if !_REGEX_SOURCE.
64075         The new names are always supported, regardless of _REGEX_SOURCE.
64076         (rm_num_regs): Renamed from num_regs.
64077         (rm_start): Renamed from start.
64078         (rm_end): Renamed from end.
64079
64080         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64081         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64082         Prepend __ to parameter names.
64083
64084         Undo yesterday's changes.
64085
64086 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64089         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64090         lib/regex.c.
64091
64092 2005-08-24  Jim Meyering  <jim@meyering.net>
64093
64094         Sync from coreutils.
64095         * m4/fcntl-safer.m4: New file.
64096
64097         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64098         and object files for this module.
64099
64100 2005-08-24  Jim Meyering  <jim@meyering.net>
64101
64102         Sync from coreutils.
64103         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64104
64105 2005-08-24  Jim Meyering  <jim@meyering.net>
64106
64107         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64108         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64109
64110 2005-08-24  Jim Meyering  <jim@meyering.net>
64111
64112         * modules/fcntl-safer: New module.
64113         * modules/fts (Depends-on): Add fcntl-safer.
64114         * MODULES.html.sh (File descriptor based Input/Output):
64115         Add fcntl-safer.
64116
64117 2005-08-24  Bruno Haible  <bruno@clisp.org>
64118
64119         Support for unit test modules.
64120         * modules/README: Mention tests modules.
64121         * modules/TEMPLATE-TESTS: New file.
64122         * gnulib-tool: New options --extract-tests-module, --with-tests and
64123         --tests-base (unused for the moment).
64124         (testsbase, inctests): New variables.
64125         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64126         (func_verify_module): Exclude TEMPLATE-TESTS.
64127         (func_verify_nontests_module, func_verify_tests_module): New functions.
64128         (func_get_dependencies): Add implicit dependency for tests modules.
64129         (func_get_tests_module): New function.
64130         (func_modules_transitive_closure): When --with-tests was specified,
64131         include the unit tests as well, unless explicitly avoided.
64132         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64133         (func_emit_tests_Makefile_am): New function.
64134         (func_create_testdir): When --with-tests was specified, emit a
64135         tests/ directory.
64136         * MODULES.html.sh (Future developments): Update.
64137
64138 2005-08-24  Bruno Haible  <bruno@clisp.org>
64139
64140         * modules/tls-tests: New file.
64141         * tests/test-tls.c: New file, from GNU gettext.
64142
64143 2005-08-24  Bruno Haible  <bruno@clisp.org>
64144
64145         * modules/lock-tests: New file.
64146         * tests/test-lock.c: New file, from GNU gettext.
64147
64148 2005-08-24  Bruno Haible  <bruno@clisp.org>
64149
64150         * lib/lock.h: Add multiple inclusion guard.
64151         * lib/tls.h: Add multiple inclusion guard.
64152
64153 2005-08-24  Bruno Haible  <bruno@clisp.org>
64154
64155         * gnulib-tool: Add support for the --aux-dir option to
64156         --create-testdir, --create-megatestdir, --test, --megatest.
64157         (func_create_testdir, func_create_megatestdir): Optionally emit a
64158         AC_CONFIG_AUX_DIR directive.
64159         (create-testdir, create-megatestdir, test, megatest): Provide a
64160         default value for $auxdir.
64161
64162 2005-08-24  Bruno Haible  <bruno@clisp.org>
64163
64164         * gnulib-tool (import): Use compound statement instead of subshell
64165         where possible.
64166
64167 2005-08-24  Bruno Haible  <bruno@clisp.org>
64168
64169         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64170
64171 2005-08-24  Bruno Haible  <bruno@clisp.org>
64172
64173         * gnulib-tool (func_version): Update.
64174
64175 2005-08-24  Bruno Haible  <bruno@clisp.org>
64176
64177         * gnulib-tool (func_import, func_create_testdir,
64178         func_create_megatestdir): Quote all autoconf macro arguments.
64179
64180 2005-08-24  Bruno Haible  <bruno@clisp.org>
64181
64182         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64183         option --force, because --force causes the aclocal.m4 of each
64184         subdirectory to be newer than the corresponding config.h.in.
64185
64186 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64187
64188         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64189         All contents moved to gl_REGEX.
64190         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64191         assume that it does.
64192
64193 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64194
64195         * lib/regex.h (REG_NOSYS)
64196         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64197         Define, since POSIX requires it as of 2001.
64198         (_REG_ENOSYS)
64199         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64200         New private symbol, used to keep the enum signed in all cases.
64201         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64202         Youngman in
64203         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64204
64205         * lib/regex_internal.c (re_string_skip_chars, register_state):
64206         (calc_state_hash):
64207         Remove forward decls; no longer needed now that we use prototypes.
64208         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64209         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64210         (clean_state_log_if_needed): Likewise.
64211
64212 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         * config/srclist.txt: Add glibc bugs 1231-1233.
64215
64216 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         Fix problems reported by Sam Steingold in
64219         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64220         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64221         assumed that reg_errcode_t is a signed type, which is not
64222         necessarily true if _XOPEN_SOURCE is not defined.
64223         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64224         since some compilers warn about it otherwise.
64225
64226 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64227
64228         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64229         (init_word_char, create_initial_state, duplicate_node_closure):
64230         (fetch_token, peek_token_bracket, build_range_exp):
64231         (build_collating_symbol): Remove forward decls; no longer needed
64232         now that we use prototypes.
64233
64234         * lib/regcomp.c:
64235         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64236         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64237         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64238         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64239         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64240         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64241         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64242         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64243         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64244         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64245         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64246         (build_charclass, build_charclass_op, fetch_number, create_tree):
64247         (create_token_tree, mark_opt_subexp, duplicate_tree):
64248         Use prototypes rather than old-style definitions.
64249
64250         * lib/regex_internal.c:
64251         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64252         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64253         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64254         (re_string_reconstruct, re_string_peek_byte_case):
64255         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64256         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64257         (re_node_set_init_copy, re_node_set_add_intersect):
64258         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64259         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64260         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64261         (re_acquire_state, re_acquire_state_context, register_state):
64262         (create_ci_newstate, create_cd_newstate, free_state):
64263         Likewise.
64264         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64265         re_search_2):
64266         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64267         (re_search_internal, prune_impossible_nodes):
64268         (acquire_init_state_context, check_matching, static):
64269         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64270         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64271         (update_regs, sift_states_backward, build_sifted_states):
64272         (clean_state_log_if_needed, merge_state_array):
64273         (update_cur_sifted_state, add_epsilon_src_nodes):
64274         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64275         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64276         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64277         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64278         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64279         (check_arrival, check_arrival_add_next_nodes):
64280         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64281         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64282         (check_node_accept_bytes, check_node_accept, extend_buffers):
64283         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64284         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64285         (sift_ctx_init):
64286         Likewise.
64287
64288         * lib/regex_internal.h:
64289         (re_string_allocate, re_string_construct, re_string_reconstruct):
64290         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64291         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64292         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64293         (re_string_context_at, re_string_peek_byte_case):
64294         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64295         is defined, since we now use prototypes always.
64296
64297         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64298         C89 or better.  All uses removed.
64299
64300 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64301
64302         * config/srclist.txt: Add glibc bugs 1220-1227.
64303
64304 2005-08-20  Jim Meyering  <jim@meyering.net>
64305
64306         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64307         of unused local, dfa.
64308
64309 2005-08-20  Bruno Haible  <bruno@clisp.org>
64310
64311         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64312
64313 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64316         (re_node_set_insert_last, re_dfa_add_node):
64317         Rename local variables to avoid GCC shadowing warnings.
64318
64319 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64320
64321         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64322         [defined lint]: Suppress bogus uninitialized-variable warnings.
64323
64324         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64325         and let the caller return REG_ESPACE if out of space.  This
64326         removes an uninitialied-variable warning with GCC 4.0.1, and also
64327         avoids taking the address of a local variable.  All callers
64328         changed.
64329
64330 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64333         $LIBCSRC/posix/regexec.c.
64334         Add glibc bug 1217 for regcomp.c.
64335
64336 2005-08-19  Jim Meyering  <jim@meyering.net>
64337
64338         * lib/regexec.c (proceed_next_node): Redo local variables to
64339         avoid GCC shadowing warnings.
64340
64341 2005-08-18  Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/strstr.c (strstr): Fix return value in multibyte case.
64344         * lib/strcasestr.c (strcasestr): Likewise.
64345
64346 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64349
64350 2005-08-17  Jim Meyering  <jim@meyering.net>
64351
64352         Make the %s format (seconds since the epoch) work for a negative
64353         number and when used with a zero-padded field width, e.g. %015s.
64354
64355         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64356         label so that it precedes the code to set `digits'.  Otherwise,
64357         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64358         print `00-22'.  Now, it prints `-0022', as it should.
64359
64360 2005-08-17  Bruno Haible  <bruno@clisp.org>
64361
64362         * modules/strstr (Files): Add m4/mbrtowc.m4.
64363         (Depends-on): Add mbuiter.
64364
64365 2005-08-17  Bruno Haible  <bruno@clisp.org>
64366
64367         * modules/strcasestr: New file.
64368         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64369         strcasestr.
64370
64371 2005-08-17  Bruno Haible  <bruno@clisp.org>
64372
64373         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64374
64375 2005-08-17  Bruno Haible  <bruno@clisp.org>
64376
64377         * modules/mbuiter: New file.
64378         * MODULES.html.sh (Extended multibyte and wide character utilities):
64379         Add mbuiter.
64380
64381 2005-08-17  Bruno Haible  <bruno@clisp.org>
64382
64383         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64384         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64385
64386 2005-08-17  Bruno Haible  <bruno@clisp.org>
64387
64388         * m4/strcasestr.m4: New file.
64389
64390 2005-08-17  Bruno Haible  <bruno@clisp.org>
64391
64392         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64393         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64394
64395 2005-08-17  Bruno Haible  <bruno@clisp.org>
64396
64397         * lib/strcasestr.h: New file.
64398         * lib/strcasestr.c: New file.
64399
64400 2005-08-17  Bruno Haible  <bruno@clisp.org>
64401
64402         * lib/strcasecmp.c: Use mbuiter.h.
64403
64404 2005-08-17  Bruno Haible  <bruno@clisp.org>
64405
64406         * lib/mbuiter.h: New file.
64407
64408 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64409
64410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64411         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64412         and gl_GETOPT are both invoked via different paths (as happens
64413         with GNU tar CVS because it uses both argp and getopt), the former
64414         wins.
64415
64416 2005-08-16  Bruno Haible  <bruno@clisp.org>
64417
64418         * modules/tls: New file.
64419         * MODULES.html.sh (Multithreading): Add tls.
64420
64421 2005-08-16  Bruno Haible  <bruno@clisp.org>
64422
64423         * modules/strnlen1: New file.
64424         * MODULES.html.sh (String handling): Add strnlen1.
64425
64426 2005-08-16  Bruno Haible  <bruno@clisp.org>
64427
64428         * modules/strcase (Files): Add m4/mbrtowc.m4.
64429         (Depends-on): Add strnlen1, mbchar.
64430
64431 2005-08-16  Bruno Haible  <bruno@clisp.org>
64432
64433         * modules/mbiter: New file.
64434         * MODULES.html.sh (Extended multibyte and wide character utilities):
64435         Add mbiter.
64436
64437 2005-08-16  Bruno Haible  <bruno@clisp.org>
64438
64439         * modules/mbfile: New file.
64440         * MODULES.html.sh (Extended multibyte and wide character utilities):
64441         Add mbfile.
64442
64443 2005-08-16  Bruno Haible  <bruno@clisp.org>
64444
64445         * modules/mbchar: New file.
64446         * MODULES.html.sh (Extended multibyte and wide character utilities):
64447         New section.
64448
64449 2005-08-16  Bruno Haible  <bruno@clisp.org>
64450
64451         * m4/tls.m4: New file, from GNU gettext.
64452
64453 2005-08-16  Bruno Haible  <bruno@clisp.org>
64454
64455         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64456         always.
64457         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64458
64459 2005-08-16  Bruno Haible  <bruno@clisp.org>
64460
64461         * m4/mbiter.m4: New file.
64462
64463 2005-08-16  Bruno Haible  <bruno@clisp.org>
64464
64465         * m4/mbfile.m4: New file.
64466
64467 2005-08-16  Bruno Haible  <bruno@clisp.org>
64468
64469         * m4/mbchar.m4: New file.
64470
64471 2005-08-16  Bruno Haible  <bruno@clisp.org>
64472
64473         * lib/tls.h: New file, from GNU gettext.
64474         * lib/tls.c: New file, from GNU gettext.
64475
64476 2005-08-16  Bruno Haible  <bruno@clisp.org>
64477
64478         * lib/strnlen1.h: New file.
64479         * lib/strnlen1.c: New file.
64480
64481 2005-08-16  Bruno Haible  <bruno@clisp.org>
64482
64483         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64484         (mbi_init): Update.
64485         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64486         NUL byte, not after it.
64487
64488 2005-08-16  Bruno Haible  <bruno@clisp.org>
64489
64490         * lib/strcase.h (strcasecmp): Add note in comments.
64491         * lib/strncasecmp.c: Use code from strcasecmp.c.
64492         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64493         (strcasecmp): Work correctly in multibyte locales.
64494
64495 2005-08-16  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/mbiter.h: New file.
64498
64499 2005-08-16  Bruno Haible  <bruno@clisp.org>
64500
64501         * lib/mbfile.h: New file.
64502
64503 2005-08-16  Bruno Haible  <bruno@clisp.org>
64504
64505         * lib/mbchar.h: New file.
64506         * lib/mbchar.c: New file.
64507
64508 2005-08-16  Bruno Haible  <bruno@clisp.org>
64509
64510         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64511         the valid ones. Makes the comparison operations transitive:
64512         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64513         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64514
64515 2005-08-15  Simon Josefsson  <jas@extundo.com>
64516
64517         * modules/ssize_t (License): Change to 'unlimited'.
64518
64519         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64520
64521 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64522
64523         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64524         Add comments for each pending glibc patch.
64525
64526 2005-08-15  Bruno Haible  <bruno@clisp.org>
64527
64528         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64529         __cplusplus is defined.
64530
64531 2005-08-14  Jim Meyering  <jim@meyering.net>
64532
64533         Sync from coreutils.
64534
64535         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64536         Use the hash-table-based cycle-detection code not just when
64537         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64538         Reported by James Youngman in
64539         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64540         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64541         FTS_TIGHT_CYCLE_CHECK.
64542         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64543         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64544         once again.
64545         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64546         * lib/fts.c (fd_safer): Remove decl.
64547         Include fcntl--.h rather than unistd-safer.h
64548         (fts_safe_changedir): Don't call fd_safer; no longer needed
64549         now that we include fcntl--.h.
64550
64551 2005-08-12  Simon Josefsson  <jas@extundo.com>
64552
64553         * modules/getndelim2: Use ssize_t module.
64554         * modules/getnline: Likewise.
64555         * modules/safe-read: Likewise.
64556         * modules/xreadlink: Likewise.
64557
64558         * modules/ssize_t: New file.
64559
64560 2005-08-12  Simon Josefsson  <jas@extundo.com>
64561
64562         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64563
64564 2005-08-12  Simon Josefsson  <jas@extundo.com>
64565
64566         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64567         ssize_t.
64568
64569 2005-08-12  Simon Josefsson  <jas@extundo.com>
64570
64571         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64572         readline, getdelim and check_version.
64573         (Support for systems lacking ISO C 99: Sizes of integer types):
64574         Add size_max.
64575
64576 2005-08-12  Bruno Haible  <bruno@clisp.org>
64577
64578         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64579
64580 2005-08-11  Simon Josefsson  <jas@extundo.com>
64581
64582         * modules/readline: New file.
64583
64584         * modules/strnlen (Files): Add strnlen.h.
64585
64586 2005-08-11  Simon Josefsson  <jas@extundo.com>
64587
64588         * m4/readline.m4: New file.
64589
64590 2005-08-11  Simon Josefsson  <jas@extundo.com>
64591
64592         * lib/readline.h, readline.c: New file.
64593
64594 2005-08-11  Simon Josefsson  <jas@extundo.com>
64595
64596         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64597         gl_AVOID.
64598
64599 2005-08-11  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64602
64603 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64604
64605         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64606
64607 2005-08-10  Simon Josefsson  <jas@extundo.com>
64608
64609         * tests/test-iconvme.c: New file.
64610
64611 2005-08-10  Simon Josefsson  <jas@extundo.com>
64612
64613         * m4/strnlen.m4: New file.
64614
64615         * m4/strndup.m4: Don't check for strnlen declaration, done in
64616         strnlen.m4.
64617
64618 2005-08-10  Simon Josefsson  <jas@extundo.com>
64619
64620         * lib/strndup.c: Use strnlen.h.
64621
64622         * lib/strnlen.h: New file.
64623
64624 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64625
64626         * README: Typos.
64627
64628 2005-08-02  Simon Josefsson  <jas@extundo.com>
64629
64630         * modules/readline: New file.
64631
64632 2005-08-02  Simon Josefsson  <jas@extundo.com>
64633
64634         * modules/getdelim: New file.
64635
64636         * modules/getline: Rewrite, don't use getndelim2.
64637
64638 2005-08-02  Simon Josefsson  <jas@extundo.com>
64639
64640         * m4/getline.m4: Separate out getdelim stuff into separate module.
64641
64642         * m4/getdelim.m4: New file.
64643
64644 2005-08-02  Simon Josefsson  <jas@extundo.com>
64645
64646         * lib/getline.h, getline.c: Rewrite.
64647
64648         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64649
64650 2005-07-31  Bruno Haible  <bruno@clisp.org>
64651
64652         * lib/lock.h (gl_lock_initializer): New macro.
64653         (gl_lock_define_initialized): Use it.
64654         (gl_rwlock_initializer): New macro.
64655         (gl_rwlock_define_initialized): Use it.
64656         (gl_recursive_lock_initializer): New macro.
64657         (gl_recursive_lock_define_initialized): Use it.
64658
64659 2005-07-30  Karl Berry  <karl@gnu.org>
64660
64661         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64662         Report from Ben Pfaff, regarding getopt.
64663
64664 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64665
64666         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64667         normal way.
64668         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64669         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64670         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64671         (gl_GETOPT): Use the new macros.  Most of the implementation
64672         is moved to the new macros.  This is for programs like Emacs
64673         that don't want all the functionality of gl_GETOPT.
64674
64675 2005-07-26  Bruno Haible  <bruno@clisp.org>
64676
64677         * m4/lock.m4: Update from GNU gettext.
64678
64679 2005-07-26  Bruno Haible  <bruno@clisp.org>
64680
64681         * lib/lock.h: Update from GNU gettext.
64682         * lib/lock.c: Update from GNU gettext.
64683
64684 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64687         obsolescent AC_TRY_RUN.  Include the default includes files, for
64688         'exit'.
64689
64690 2005-07-24  Bruno Haible  <bruno@clisp.org>
64691
64692         * modules/visibility: New file.
64693         * MODULES.html.sh (Misc): Add visibility.
64694
64695 2005-07-24  Bruno Haible  <bruno@clisp.org>
64696
64697         * m4/visibility.m4: New file.
64698
64699 2005-07-24  Bruno Haible  <bruno@clisp.org>
64700
64701         * doc/visibility.texi: New file.
64702
64703 2005-07-22  Bruno Haible  <bruno@clisp.org>
64704
64705         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64706         $(ALLOCA_H), redundant through BUILT_SOURCES.
64707         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64708         redundant through BUILT_SOURCES.
64709         * modules/byteswap (Makefile.am): Remove explicit dependency on
64710         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64711         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64712         $(FNMATCH_H), redundant through BUILT_SOURCES.
64713         * modules/getopt (Makefile.am): Remove explicit dependency on
64714         $(GETOPT_H), redundant through BUILT_SOURCES.
64715         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64716         redundant through BUILT_SOURCES.
64717         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64718         redundant through BUILT_SOURCES.
64719         * modules/stdbool (Makefile.am): Remove explicit dependency on
64720         $(STDBOOL_H), redundant through BUILT_SOURCES.
64721         * modules/stdint (Makefile.am): Remove explicit dependency on
64722         $(STDINT_H), redundant through BUILT_SOURCES.
64723         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64724         Remove explicit dependency on $(SYSEXITS_H).
64725         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64726
64727 2005-07-18  Simon Josefsson  <jas@extundo.com>
64728
64729         * lib/check-version.c (check_version): Accept identical versions too.
64730
64731 2005-07-18  Bruno Haible  <bruno@clisp.org>
64732
64733         * modules/lock: New file.
64734         * MODULES.html.sh (Multithreading): New section.
64735
64736 2005-07-18  Bruno Haible  <bruno@clisp.org>
64737
64738         * m4/lock.m4: New file, from GNU gettext.
64739
64740 2005-07-18  Bruno Haible  <bruno@clisp.org>
64741
64742         * lib/lock.h: New file, from GNU gettext.
64743         * lib/lock.c: New file, from GNU gettext.
64744
64745 2005-07-18  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/lock.h (gl_once_t): New type.
64748         (gl_once_define, gl_once): New macros.
64749         * lib/lock.c (fresh_once): New variable.
64750         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64751         functions.
64752
64753 2005-07-16  Simon Josefsson  <jas@extundo.com>
64754
64755         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64756         workaround, suggested by Bruno.
64757
64758 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         * modules/xalloc (Depends-on): Add xalloc-die.
64761         * modules/xvasprintf (Depends-on): Add xalloc-die.
64762
64763 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64766         with a minor change.
64767
64768 2005-07-15  Bruno Haible  <bruno@clisp.org>
64769
64770         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64771         When using lib/poll.c, define poll as rpl_poll.
64772
64773 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64774
64775         * modules/argp (Depends-on): Remove unlocked-io.
64776
64777 2005-07-14  Derek Price  <derek@ximbiot.com>
64778
64779         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64780         for glob symlink bug.
64781
64782 2005-07-14  Bruno Haible  <bruno@clisp.org>
64783
64784         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64785         Instead, test for *_unlocked function declarations directly.
64786
64787 2005-07-11  Simon Josefsson  <jas@extundo.com>
64788
64789         * modules/size_max: New file.
64790
64791         * modules/xsize: Depend on size_max module for size_max.m4.
64792
64793 2005-07-11  Simon Josefsson  <jas@extundo.com>
64794
64795         * lib/size_max.h: New file.
64796
64797 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64798
64799         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64800         copyright symbol and the year.
64801         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64802         (version_etc_va): Use parameterized copyright notice.
64803         Reword to conform to the current GNU coding standards.
64804
64805 2005-07-11  Karl Berry  <karl@gnu.org>
64806
64807         * doc/gnulib.texi (Quoting): new node.
64808         (Initial import): more info, from Patrice.
64809
64810 2005-07-11  Bruno Haible  <bruno@clisp.org>
64811
64812         * gnulib-tool (func_usage): Document option --avoid.
64813         (Command line options): Handle --avoid.
64814         (func_acceptable): New function.
64815         (func_modules_transitive_closure): Use it.
64816
64817 2005-07-11  Bruno Haible  <bruno@clisp.org>
64818
64819         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64820         Reported by Jim Meyering.
64821
64822 2005-07-10  Bruno Haible  <bruno@clisp.org>
64823
64824         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64825         Needed when size_t is smaller than 'unsigned int'.
64826         Reported by Paul Eggert.
64827
64828 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64829
64830         * modules/argp (Depends-on): Add unlocked-io
64831
64832 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64833
64834         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64835         block of defines.
64836
64837 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64838
64839         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64840         fix now.
64841
64842 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64843         and Paul Eggert  <eggert@cs.ucla.edu>
64844
64845         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64846         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64847
64848 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * modules/regex (Files): Add lib/regex_internal.c,
64851         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64852         (Depends-on): Add extensions.
64853         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64854
64855 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64858         pathconf.
64859         * m4/same.m4 (gl_SAME): Likewise.
64860         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64861
64862         * m4/regex.m4: Adjust to new libc regex implementation.
64863         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64864         all the .c and .h parts of (the new) regex.
64865         Quote the m4 stuff better.
64866         Check for RE_ICASE bug of old gnulib.
64867         Check for REG_STARTEND of recent libc.
64868         Rename local variables from jm_* to gl_*.
64869         Quote operand of "test -f".
64870         Say "recent enough" version of libc, not "version 2".
64871         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64872         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64873         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64874         Remove check for btowc, isascii.
64875         Require AM_LANGINFO_CODESET.
64876
64877 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64878
64879         * lib/regex.c, regex.h: Sync from libc.
64880         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64881         * lib/regexec.c:
64882         New files, synced from libc, except that regex_internal.h
64883         currently has a small porting fix.
64884
64885 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64888         regex_internal.c, regexec.c.
64889         Add regex_internal.h too, but as a comment, since the libc version
64890         is currently broken in gnulib mode.
64891
64892 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         Support programs like Emacs that use gnulib but not gettext.
64895         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64896         * modules/gettext-h: New file.
64897         * modules/gettext (Files): Remove lib/gettext.h.
64898         (Depends-on): Add gettext-h.
64899         (Makefile.am): Remove lib_SOURCES.
64900         * modules/argmatch, modules/c-stack, modules/closeout:
64901         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64902         * modules/execute, modules/file-type, modules/getaddrinfo:
64903         * modules/getopt, modules/human, modules/javacomp:
64904         * modules/javaexec, modules/mkdir-p, modules/obstack:
64905         * modules/openat, modules/pagealign_alloc, modules/pipe:
64906         * modules/quotearg, modules/regex, modules/rpmatch:
64907         * modules/unicodeio, modules/userspec, modules/version-etc:
64908         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64909         * modules/xsetenv:
64910         Depend on gettext-h, not gettext.
64911
64912 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64913
64914         * gnulib-tool (func_import): Add support for 'public domain' license.
64915         * modules/alloca, modules/atexit, modules/memmove:
64916         Now public domain, not GPL.
64917         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64918         * modules/realloc, modules/strerror, modules/strtod:
64919         Now LGPL, not GPL.
64920
64921 2005-07-05  Bruno Haible  <bruno@clisp.org>
64922
64923         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64924         autoconf CVS. Needed for mingw.
64925
64926 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         Remove the dependency of the strftime module on the tzset module.
64929         * modules/strftime (Depends-on): Remove dependency on tzset.
64930
64931 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         Remove the dependency of the strftime module on the tzset module.
64934         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64935         gl_FUNC_TZSET_CLOBBER.
64936
64937 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64938
64939         Remove the dependency of the strftime module on the tzset module.
64940         * lib/strftime.c (my_strftime)
64941         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64942         Copy the input structure, to work around some of the bug with
64943         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64944         Solaris releases, you should also use the tzset module, but we won't
64945         require it as a dependency any more since we don't want LGPLed code
64946         to depend on GPLed code.
64947
64948 2005-07-02  Jim Meyering  <jim@meyering.net>
64949
64950         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64951         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64952         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64953         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64954
64955 2005-07-02  Jim Meyering  <jim@meyering.net>
64956
64957         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64958
64959 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64960
64961         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64962         declares only 'struct timespec;' (!).
64963
64964 2005-07-01  Jim Meyering  <jim@meyering.net>
64965
64966         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64967         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64968         * lib/save-cwd.c, tempname.c:
64969         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64970         and don't include <sys/file.h>).
64971
64972 2005-06-29  Jim Meyering  <jim@meyering.net>
64973
64974         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64975         type name.  Use the variable name instead.
64976         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64977         Likewise.
64978
64979 2005-06-28  Simon Josefsson  <jas@extundo.com>
64980
64981         * modules/check-version (Files): Add check-version.m4.
64982
64983 2005-06-28  Simon Josefsson  <jas@extundo.com>
64984
64985         * m4/check-version.m4: New file, suggested by Jim Meyering
64986         <jim@meyering.net>.
64987
64988 2005-06-28  Simon Josefsson  <jas@extundo.com>
64989
64990         * lib/check-version.h, lib/check-version.c: New files.
64991
64992 2005-06-28  Simon Josefsson  <jas@extundo.com>
64993
64994         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64995         collision with global variable.  Better indentation.  Don't
64996         increment buffer pointer beyond buffer end.  Based on comments
64997         from Paul Eggert <eggert@cs.ucla.edu>.
64998
64999         * lib/base64.h: Indent.
65000
65001 2005-06-28  Simon Josefsson  <jas@extundo.com>
65002
65003         * doc/gnulib.texi (Library version handling): New section.
65004
65005 2005-06-28  Jim Meyering  <jim@meyering.net>
65006
65007         * check-module (find_included_lib_files): Hard-code another
65008         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65009         but modules/fts-lgpl (correctly) does not list those files.
65010
65011         * modules/canonicalize (Files): Add lib/pathmax.h.
65012
65013 2005-06-25  Simon Josefsson  <jas@extundo.com>
65014
65015         * modules/check-version: New file.
65016
65017 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65018
65019         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65020         initializer of struct addrinfo, as an indication that we don't
65021         care how many members the structure has.
65022
65023 2005-06-24  Derek Price  <derek@ximbiot.com>
65024         and Bruno Haible  <bruno@clisp.org>
65025
65026         Remove stat module & update lstat.
65027         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65028         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65029         * m4/stat.m4: Remove this file.
65030
65031 2005-06-24  Derek Price  <derek@ximbiot.com>
65032         and Bruno Haible  <bruno@clisp.org>
65033
65034         Remove stat module & update lstat.
65035         * lib/stat.c: Remove this file...
65036         (slash_aware_lstat): ...moving this content and its support...
65037         * lib/lstat.c (rpl_lstat): ...into here.
65038         * lib/lstat.h: New file.
65039
65040 2005-06-24  Derek Price  <derek@ximbiot.com>
65041         and Bruno Haible  <bruno@clisp.org>
65042
65043         Remove stat module & update lstat.
65044         * config/srclist.txt (libc sources): Remove stat.
65045
65046 2005-06-24  Derek Price  <derek@ximbiot.com>
65047         and Bruno Haible  <bruno@clisp.org>
65048
65049         Remove stat module & update lstat.
65050         * MODULES.html.sh (stat): Remove.
65051         * MODULES.html: Regenerated.
65052         * modules/lstat (Description): Correct function name.
65053         (Files): Add "lstat.h".
65054         (Depends-on): Remove stat, add xalloc, stat-macros.
65055         * modules/stat: Remove this file.
65056         (Include): Add "lstat.h", remove <sys/stat.h>.
65057
65058 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65059
65060         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65061         (ranged_convert): Don't save conversion in a temporary struct.
65062         This causes a warning with GCC 4.0.0, and anyway in the typical
65063         case it's not worth the extra 100 bytes or so of code.
65064         (ranged_convert, __mktime_internal): When calling a function via a
65065         pointer P, use P () rather than (*P) (), as we now assume C89 or
65066         better.
65067
65068 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65071         "who -r" failed to give output.  Problem reported by Tim Waugh.
65072
65073         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65074         (xcalloc): Use it to avoid needless tests.
65075         Problem reported by Jim Meyering.
65076
65077 2005-06-20  Derek Price  <derek@ximbiot.com>
65078
65079         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65080         unnecessary for Autoconfs > 2.59c.
65081
65082 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65083
65084         * lib/argp.h (__option_is_short): Check upper limit of
65085         __key. Isprint() requires its argument to have the value
65086         of an unsigned char or EOF.
65087
65088 2005-06-16  Jim Meyering  <jim@meyering.net>
65089
65090         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65091         when either N or S is zero.
65092
65093 2005-06-16  Derek Price  <derek@ximbiot.com>
65094
65095         * m4/bison.m4: Declare YACC & YFLAGS precious.
65096
65097 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65098
65099         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65100         multibyte string or pattern, fall back on unibyte matching.
65101         Problem reported by James Youngman.
65102
65103 2005-06-08  Bruno Haible  <bruno@clisp.org>
65104
65105         * modules/csharpcomp: New file.
65106         * MODULES.html.sh (C#): Add csharpcomp.
65107
65108 2005-06-08  Bruno Haible  <bruno@clisp.org>
65109
65110         * m4/csharpcomp.m4: New file, from GNU gettext.
65111
65112 2005-06-08  Bruno Haible  <bruno@clisp.org>
65113
65114         * lib/csharpcomp.h: New file, from GNU gettext.
65115         * lib/csharpcomp.c: New file, from GNU gettext.
65116         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65117
65118 2005-06-08  Bruno Haible  <bruno@clisp.org>
65119
65120         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65121         warning on mingw.
65122
65123 2005-06-07  Derek Price  <derek@ximbiot.com>
65124
65125         Sync from CVS.
65126         * lib/glob_.h: Indent nested #ifdef.
65127
65128 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         Sync from coreutils.
65131         Use "file name" when talking about file names, instead of "filename"
65132         or "path", as per the GNU coding standards.
65133         * lib/mkdir-p.c: Renamed from makepath.c.
65134         (make_dir_parents): Renamed from make_path.  All callers changed.
65135         * lib/mkdir-p.h: Likewise.  All includers changed.
65136         * lib/filenamecat.c: Renamed from path-concat.c.
65137         (file_name_concat): Renamed from path_concat.  All callers changed.
65138         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65139         * lib/filenamecat.h: Likewise.  All includers changed.
65140         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65141         in comments or local variable names.
65142         * lib/basename.c: Likewise.
65143         * lib/canonicalize.c, canonicalize.h: Likewise.
65144         * lib/dirname.c, dirname.h: Likewise.
65145         * lib/euidaccess.c: Likewise.
65146         * lib/exclude.c: Likewise
65147         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65148         * lib/fsusage.c, fsuage.h: Likewise.
65149         * lib/fts.c, fts_.h: Likewise.
65150         * lib/getcwd.c: Likewise.
65151         * lib/getloadavg.c: Likewise.
65152         * lib/mkstemp.c: Likewise.
65153         * lib/mountlist.c, mountlist.h: Likewise.
65154         * lib/openat.c, openat.h: Likewise.
65155         * lib/readlink-stub.c: Likewise.
65156         * lib/readutmp.c, readutmp.h: Likewise.
65157         * lib/rename.c: Likewise.
65158         * lib/rmdir.c: Likewise.
65159         * lib/same.c: Likewise.
65160         * lib/savedir.c: Likewise.
65161         * lib/stripslash.c: Likewise.
65162         * lib/tempname.c: Likewise.
65163         * lib/xreadlink.c: Likewise.
65164         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65165         All uses changed.
65166         * lib/exclude.h: Likewise.
65167
65168         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65169         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65170         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65171         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65172         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65173         files have been getting away with it for years (MORE/BSD 4.3
65174         is extinct now).
65175         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65176         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65177
65178         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65179         Define to 256, not 255, as per modern POSIX.
65180
65181 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65182
65183         Sync from coreutils.
65184         Use "file name" when talking about file names, instead of "filename"
65185         or "path", as per the GNU coding standards.
65186         * MODULES.html.sh: mkdir-p renamed from makepath.
65187         filenamecat renamed from path-concat.
65188         * modules/filenamecat: Renamed from modules/path-concat.
65189         (Files): filenamecat.h and filenamecat.c renamed from
65190         path-concat.h and path-concat.c.
65191         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65192         (Include): filenamecat.h, not path-concat.h.
65193         * modules/mkdir-p: Renamed from modules/makepath.
65194         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65195         makepath.c.
65196         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65197         (Include): mkdir-p.h, not makepath.h.
65198
65199 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         Sync from coreutils.
65202         * m4/mkdir-p.m4: Renamed from makepath.m4.
65203         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65204         Rename files from makepath.c to mkdir-p.c, and from
65205         makepath.h to mkdir-p.h.
65206         * m4/filenamecat.m4: Renamed from path-concat.m4.
65207         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65208         Rename files from path-concat.c to filenamecat.c,
65209         and from path-concat.h to filenamecat.h.
65210         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65211         "file name" in local variables or comments.
65212         * m4/rename.m4: Likewise.
65213
65214 2005-06-01  Bruno Haible  <bruno@clisp.org>
65215
65216         * modules/csharpexec: New file.
65217         * MODULES.html.sh (C#): New section.
65218
65219 2005-06-01  Bruno Haible  <bruno@clisp.org>
65220
65221         * m4/csharp.m4: New file, from GNU gettext.
65222         * m4/csharpexec.m4: New file, from GNU gettext.
65223
65224 2005-06-01  Bruno Haible  <bruno@clisp.org>
65225
65226         * lib/csharpexec.h: New file, from GNU gettext.
65227         * lib/csharpexec.c: New file, from GNU gettext.
65228         * lib/csharpexec.sh.in: New file, from GNU gettext.
65229
65230 2005-05-31  Derek Price  <derek@ximbiot.com>
65231             Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         Sync from cvs.
65234         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65235
65236 2005-05-31  Derek Price  <derek@ximbiot.com>
65237             Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         Sync from cvs.
65240         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65241
65242 2005-05-29  Derek Price  <derek@ximbiot.com>
65243
65244         * config/srclist.txt (glob_.h, glob.c): Add these files.
65245
65246 2005-05-29  Derek Price  <derek@ximbiot.com>
65247
65248         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65249         * modules/glob: New file.
65250         * modules/getlogin_r: Add link to POSIX spec in description.
65251
65252 2005-05-29  Derek Price  <derek@ximbiot.com>
65253             Paul Eggert  <eggert@cs.ucla.edu>
65254
65255         * m4/glob.m4: New file.
65256
65257 2005-05-29  Derek Price  <derek@ximbiot.com>
65258             Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         * lib/glob_.h, lib/glob.c: New files.
65261
65262 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65265         * modules/fts-lgpl (Depends-on): Remove gettext.
65266
65267 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65270         and don't require gt_INTTYPES_PRI.
65271
65272 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65275
65276         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65277         the configuration hassle isn't worth it.
65278         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65279         (LONGEST_MODIFIER, PRIuMAX): Remove.
65280
65281 2005-05-27  Bruno Haible  <bruno@clisp.org>
65282
65283         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65284
65285 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65288         _POSIX_PTHREAD_SEMANTICS for Solaris.
65289
65290 2005-05-25  Derek Price  <derek@ximbiot.com>
65291
65292         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65293
65294 2005-05-25  Derek Price  <derek@ximbiot.com>
65295             Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65298         * lib/getlogin_r.c, getlogin_r.h: New files.
65299
65300 2005-05-25  Bruno Haible  <bruno@clisp.org>
65301             Derek Price  <derek@ximbiot.com>
65302
65303         * lib/getlogin_r.h: Simplify API documentation.
65304
65305 2005-05-23  Derek Price  <derek@ximbiot.com>
65306
65307         * modules/minmax (Files): Add m4/minmax.m4.
65308         (configure.ac): Add gl_MINMAX.
65309
65310 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65311
65312         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65313         so that unistd-safer.h (GPL'ed code) need not be included.
65314
65315 2005-05-22  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/minmax.m4: New file.
65318         Based on a patch by Derek Price <derek@ximbiot.com>.
65319
65320 2005-05-22  Bruno Haible  <bruno@clisp.org>
65321
65322         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65323         (INT64_MIN): Fix definition.
65324         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65325
65326         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65327         NEED_SIGNED_INT_TYPES.
65328
65329         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65330         HAVE_SYSTEM_INTTYPES.
65331
65332 2005-05-22  Bruno Haible  <bruno@clisp.org>
65333
65334         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65335         Also include <sys/param.h> if it defines MIN, MAX.
65336         Based on a patch by Derek Price <derek@ximbiot.com>.
65337
65338 2005-05-21  Jim Meyering  <jim@meyering.net>
65339
65340         * modules/fts (Files): Add m4/inttypes-pri.m4.
65341         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65342
65343 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         New fts module.
65346         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65347         (setup_dir, free_dir): New functions.
65348         (enter_dir, leave_dir): Define trivial
65349         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65350         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65351         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65352         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65353         Move to fts-cycle.c.
65354         (fts_open): Use setup_dir.
65355         (fts_close): Use free_dir.
65356         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65357         This adds a label and some gotos, but the alternatives were messier.
65358         Check for memory allocation failure when entering a dir.
65359         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65360         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65361         (FTS): New member fts_cycle, that is a union that contains the
65362         old active_dir_ht and cycle_state.  All uses changed to mention
65363         fts_cycle.ht and fts_cycle.state.
65364         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65365         fts.c, with the following changes:
65366         (setup_dir, free_dir): New functions.
65367         (enter_dir): Now returns bool.  Return true if successful, false
65368         if memory exhausted.  All callers changed.
65369         Do not bother partly cleaning up on
65370         memory allocation failure; that is free_dir's job.
65371         However, free ad if hash_insert fails, to avoid memory leak.
65372         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65373         fts->fts_options to see which union member to use.
65374
65375 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65376
65377         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65378         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65379
65380 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65383
65384 2005-05-20  Jim Meyering  <jim@meyering.net>
65385
65386         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65387         Now a macro, to pacify GCC.
65388
65389 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65390
65391         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65392         of -1.
65393
65394 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65395
65396         * lib/chown.c (rpl_chown): Return -1 on failure.
65397
65398 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65401         Don't check for stddef.h.
65402         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65403         don't use its results.
65404         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65405         since we include them unconditionally.  Don't require
65406         AM_STDBOOL_H, since stdbool is a prerequisite.
65407         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65408         since we assume C89 or better.
65409         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65410         as we don't use their results.
65411         Don't check for fchdir, memmove, memset, strrchr, as we use
65412         them unconditionally.
65413         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65414         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65415
65416 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65417
65418         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65419         Include <stddef.h> unconditionally, since we assume C89 now.
65420         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65421         * lib/fts.c: Include fts_.h first, to check interface.
65422         Do not include intprops.h; no longer needed.
65423         Include cycle-check.h and hash.h, since fts_.h no longer does.
65424         Remove unnecessary casts of closedir to void.
65425         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65426         decide whether to decrement nlinks.
65427         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65428         (FTS): Use struct hash_table * instead of Hash_table, so that
65429         we no longer need to include hash.h here.
65430
65431 2005-05-18  Jim Meyering  <jim@meyering.net>
65432
65433         * modules/dirfd (License): Change to LGPL.  Most of the code
65434         is already in the public domain.
65435
65436 2005-05-18  Jim Meyering  <jim@meyering.net>
65437
65438         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65439         Reported by Yoann Vandoorselaere.
65440
65441 2005-05-17  Jim Meyering  <jim@meyering.net>
65442
65443         * m4/fts.m4: New file, from coreutils.
65444
65445 2005-05-17  Jim Meyering  <jim@meyering.net>
65446
65447         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65448
65449 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         Sync from coreutils.
65452         * m4/unlinkdir.m4: New file.
65453
65454 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         Sync from coreutils.
65457         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65458         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65459         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65460         White space changes only.
65461         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65462         special.
65463         * lib/yesno.c: Include getline.h, not ctype.h.
65464         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65465         Use getline to remove arbitrary restriction on response length.
65466
65467 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65468
65469         * config/srclist-update: Spell out "Street" in FSF postal
65470         mail address; this is the style the FSF seems to prefer.
65471
65472         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65473         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65474         this updates FSF postal mail address.
65475
65476         Sync from coreutils.
65477         * modules/unlinkdir: New file.
65478         * modules/yesno (Depends-on): Add getline.
65479         * MODULES.html.sh (File system functions): Add unlinkdir.
65480
65481 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65484         lib/strsep.h:
65485         Change the initial comment to refer to GPL, not LGPL.
65486         gnulib-tool will change it to LGPL as needed.
65487
65488         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65489         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65490         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65491         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65492         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65493         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65494         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65495         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65496         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65497         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65498         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65499         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65500         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65501         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65502         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65503         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65504         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65505         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65506         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65507         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65508         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65509         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65510         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65511         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65512         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65513         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65514         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65515         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65516         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65517         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65518         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65519         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65520         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65521         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65522         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65523         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65524         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65525         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65526         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65527         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65528         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65529         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65530         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65531         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65532         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65533         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65534         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65535         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65536         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65537         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65538         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65539         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65540         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65541         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65542         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65543         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65544         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65545         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65546         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65547         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65548         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65549         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65550         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65551         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65552         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65553         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65554         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65555         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65556         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65557         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65558         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65559         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65560         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65561         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65562         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65563         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65564         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65565         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65566         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65567         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65568         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65569         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65570         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65571         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65572         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65573         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65574         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65575         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65576         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65577         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65578         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65579         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65580         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65581         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65582         lib/yesno.c, lib/yesno.h:
65583         Update FSF postal mail address.
65584
65585 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65586
65587         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65588         tests/test-memmem.c, tests/test-stpncpy.c:
65589         Update FSF postal mail address.
65590
65591 2005-05-13  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65594         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65595         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65596         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65597         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65598         Add support for 64-bit integers in the MSVC compiler.
65599
65600 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65601
65602         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65603
65604 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65605
65606         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65607
65608 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * doc/getdate.texi (General date syntax): Don't say that date
65611         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65612         Problem reported by Nic Ferrier.
65613
65614 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65615
65616         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65617         specified in ai_socktype. Fix invalid ai_protocol
65618         check. ai_protocol is usually set to 0 or depending on
65619         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65620         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65621         ai_socktype / ai_protocol in the returned addrinfo structure.
65622
65623 2005-05-10  Simon Josefsson  <jas@extundo.com>
65624
65625         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65626         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65627
65628 2005-05-10  Karl Berry  <karl@gnu.org>
65629
65630         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65631         (from http://www.gnu.org/licenses).
65632         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65633         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65634         fdl.texi suffices.
65635
65636 2005-05-10  Karl Berry  <karl@gnu.org>
65637
65638         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65639         (COPYING.DOC): remove.
65640
65641         * config/srclist-update: new FSF address.
65642
65643 2005-05-10  Derek Price  <derek@ximbiot.com>
65644
65645         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65646         possible.
65647
65648 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65649             Bruno Haible  <bruno@clisp.org>
65650
65651         * modules/inet_ntop: New file.
65652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65653         inet_ntop.
65654
65655 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65656             Bruno Haible  <bruno@clisp.org>
65657
65658         * m4/inet_ntop.m4: New file.
65659
65660 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65661             Bruno Haible  <bruno@clisp.org>
65662
65663         * lib/inet_ntop.h: New file.
65664         * lib/inet_ntop.c: New file, from glibc with modifications.
65665
65666 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * modules/time_r (License): Change to LGPL.
65669         * modules/extensions (License): Change to LGPL.  Actually,
65670         the license is more permissive than that, but currently gnulib-tool
65671         doesn't know how to handle more-permissive licenses.
65672
65673         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65674         Problem reported by Dave Love.
65675
65676 2005-05-08  Jim Meyering  <jim@meyering.net>
65677
65678         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65679         blank.
65680
65681 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65682
65683         * modules/argmatch (Depends-on): Add stdbool.
65684         * modules/backupfile (Depends-on): Likewise.
65685         * modules/chdir-long (Depends-on): Likewise.
65686         * modules/closeout (Depends-on): Likewise.
65687         * modules/cycle-check (Depends-on): Likewise.
65688         * modules/dirname (Depends-on): Likewise.
65689         * modules/fnmatch (Depends-on): Likewise.
65690         * modules/fsusage (Depends-on): Likewise.
65691         * modules/fwriteerror (Depends-on): Likewise.
65692         * modules/getcwd (Depends-on): Likewise.
65693         * modules/getloadavg (Depends-on): Likewise.
65694         * modules/hard-locale (Depends-on): Likewise.
65695         * modules/makepath (Depends-on): Likewise.
65696         * modules/mountlist (Depends-on): Likewise.
65697         * modules/nanosleep (Depends-on): Likewise.
65698         * modules/posixtm (Depends-on): Likewise.
65699         * modules/quotearg (Depends-on): Likewise.
65700         * modules/readtokens (Depends-on): Likewise.
65701         * modules/readtokens0 (Depends-on): Likewise.
65702         * modules/readutmp (Depends-on): Likewise.
65703         * modules/save-cwd (Depends-on): Likewise.
65704         * modules/strftime (Depends-on): Likewise.
65705         * modules/userspec (Depends-on): Likewise.
65706         * modules/utimecmp (Depends-on): Likewise.
65707         * modules/xgetcwd (Depends-on): Likewise.
65708         * modules/xnanosleep (Depends-on): Likewise.
65709         * modules/xstrtod (Depends-on): Likewise.
65710         * modules/yesno (Depends-on): Likewise.
65711
65712 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65715         needless checks.
65716
65717 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         Merge from coreutils.  Among other things,
65720         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65721         * lib/fd-safer.c: New file.
65722         * lib/fcntl-safer.h, open-safer.c: Remove.
65723         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65724         * lib/dup-safer.c: Include unistd-safer.h first.
65725         Don't include errno.h.
65726         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65727         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65728         * lib/file-type.c: Rely on file-type.h change.
65729         * lib/getloadavg.c: Include unistd-safer.h.
65730         (getloadavg): Use safer open.
65731         * lib/getusershell.c: Include "stdio-safer.h".
65732         (getusershell): Use safer fopen.
65733         * lib/long-options.c (long_options): Use NULL rather than 0.
65734         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65735         'free'.
65736         * lib/modechange.c: Likewise.
65737         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65738         (MODE_DONE): New constant.
65739         (struct mode_change): Remove 'next' member.
65740         (make_node_op_equals): New function; like the old one of the
65741         same name, except it allocates an array.
65742         (mode_compile, mode_create_from_ref): Use it.
65743         (mode_compile): Allocate result as an array, not a linked list.
65744         Parse octal string ourself, so that we catch mistakes like "+0".
65745         (mode_adjust): Arg is an array, not a linked list.
65746         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65747         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65748         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65749         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65750         Remove.  This is now stat-macros.h's job.
65751         (talloc): Remove.  All callers replaced by xalloc, so that
65752         our invokers don't have to worry about reporting memory failures.
65753         (make_node_op_equals): Remove.
65754         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65755         New constants.
65756         (struct mode_change): Moved here from modechange.h.
65757         (mode_append_entry): Remove.
65758         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65759         apps to have incorrect behavior.  Use simpler algorithm for head
65760         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65761         Detect more invalid usages rather than having somewhat-random behavior.
65762         Don't insert an "a=" action, as that leads to incorrect behavior.
65763         (mode_compile, mode_create_from_ref): Return NULL on error instead
65764         of an enum, since now there's only one way to have an error.  All
65765         callers changed.
65766         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65767         at the correct time.  Simplify calculation of "+u" and its ilk.
65768         Don't mishandle "+X".
65769         (mode_free): Remove "register" and localize decls.
65770         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65771         (struct mode_change): Move to modechange.c; callers don't
65772         need to see this stuff.
65773         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65774         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65775         (mode_change, mode_adjust): Reflect the new signatures noted above.
65776         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65777         that might redefine system include files.
65778         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65779         (my_usleep): Use NULL rather than (void *) 0.
65780         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65781         Use siginterrupt to specify that system calls should be interrupted.
65782         (rpl_nanosleep): Move initialization of suspended closer to call of
65783         my_usleep.
65784         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65785         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65786         (desirable_utmp_entry): New function.
65787         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65788         using x2nrealloc, to simplify logic.
65789         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65790         size calculation.  Do not assume utmp file is a regular file.
65791         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65792         (READ_UTMP_CHECK_PIDS): New constant.
65793         * lib/save-cwd.c: Include unistd-safer.h.
65794         (save_cwd): Use fd_safer.
65795         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65796         [!_LIBC] Include "stat-macros.h" instead.
65797         * lib/unistd-safer.h (fd_safer): New decl.
65798
65799 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65800
65801         * modules/getloadavg (Depends-on): Add unistd-safer.
65802         * modules/getusershell (Depends-on): Add stdio-safer.
65803         * modules/lstat (Depends-on): Remove xalloc.
65804         * modules/mkstemp (Depends-on): Add stat-macros.
65805         * modules/modechange (Depends-on): Remove xstrtol.
65806         Add stat-macros, xalloc.
65807         * modules/save-cwd (Depends-on): Add unistd-safer.
65808         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65809         * modules/unistd-safer (Files): Add lib/fd-safer.c
65810         (Makefile.am): Remove lib_SOURCES.
65811
65812         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65813         Remove fcntl-safer; unistd-safer supersedes it.
65814
65815 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65818         AC_HEADER_STAT.
65819         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65820         (gl_PREREQ_CHOWN): Remove.
65821         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65822         it.  Don't require AC_HEADER_STAT.
65823         (gl_PREREQ_LSTAT): Remove.
65824         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65825         Don't require AC_HEADER_STAT.
65826         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65827         (gl_PREREQ_RMDIR): Remove.
65828         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65829         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65830         the stat-macros module a prerequisite.
65831         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65832         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65833         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65834         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65835         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65836         variable names.
65837         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65838         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65839         variable prefixes.
65840         * m4/fcntl-safer.m4: Remove.
65841         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65842         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65843         Invoke gl_PREREQ_FD_SAFER.
65844         (gl_PREREQ_FD_SAFER): New macro.
65845         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65846         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65847         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65848         Remove duplicate call to AC_LIBOBJ(readutmp).
65849         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65850
65851         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65852         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65853
65854 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65855
65856         * MODULES.html.sh (Misc): Add byteswap.
65857
65858 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65859
65860         * modules/getcwd (Depends-on): Add extensions.
65861         * modules/openat (Depends-on): Likewise.
65862
65863 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65864
65865         * modules/byteswap: New file.
65866
65867 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65868
65869         * m4/byteswap.m4: New file.
65870
65871 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65872
65873         * lib/byteswap_.h: New file.
65874
65875 2005-04-25  Karl Berry  <karl@gnu.org>
65876
65877         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65878
65879 2005-04-25  Albert Chin  <china@thewrittenword.com>
65880
65881         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65882         Toolkit C bug.
65883
65884 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65885
65886         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65887         (func_ln_if_changed) Remove forcibly for no error message
65888         in case file does not exist.
65889
65890 2005-04-19  Simon Josefsson  <jas@extundo.com>
65891
65892         * gnulib-tool (Options): Make --symlink mean --symbolic.
65893
65894 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65895
65896         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65897
65898 2005-04-16  Simon Josefsson  <jas@extundo.com>
65899
65900         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65901
65902 2005-04-15  Simon Josefsson  <jas@extundo.com>
65903
65904         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65905
65906 2005-04-15  Simon Josefsson  <jas@extundo.com>
65907
65908         * gnulib-tool: Rename --symlink to --symbolic.
65909
65910 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65911
65912         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65913         symbolic links to files instead of copying/moving.  Add --aux-dir,
65914         specifying directory relative --dir where auxiliary build tools
65915         are placed.
65916
65917 2005-04-14  Bruno Haible  <bruno@clisp.org>
65918
65919         * modules/allocsa (License): Change to LGPL.
65920         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65921
65922 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65923
65924         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65925         that "UTC +1 second" continues to work.  Problem reported
65926         by Dmitry V. Levin.
65927         (relunit_snumber): New rule.
65928         (relunit): Use it.
65929
65930 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * lib/getdate.y (universal_time_zone_table): New constant.
65933         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65934         universal_time_zone_table.
65935         (lookup_zone): Prefer universal_time_zone_table to
65936         local_time_zone_table, so that "GMT" time stamps are allowed in
65937         London during the summer.  Problem reported by Ian Abbott.
65938
65939 2005-04-12  Jim Meyering  <jim@meyering.net>
65940
65941         * lib/human.c (humblock): Set *options even when returning due to
65942         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65943         warning from gcc-4.
65944
65945 2005-04-09  Jim Meyering  <jim@meyering.net>
65946
65947         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65948         -Wuninitialized: initialize tm0.tm_year.
65949
65950 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65951
65952         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65953         count, since there's no maximum.  All uses changed.
65954         Add member dsts_seen.
65955         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65956         not being INT_MAX.
65957         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65958         Use pc_rels_seen to decide whther a date is absolute.
65959
65960         * lib/getdate.y (number): Don't overwrite year.
65961         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65962         check.
65963
65964 2005-04-02  Simon Josefsson  <jas@extundo.com>
65965
65966         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65967         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65968
65969 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65970
65971         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65972         where no absolute path name can be longer than PATH_MAX.
65973
65974 2005-03-27  Jim Meyering  <jim@meyering.net>
65975
65976         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65977
65978 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65979
65980         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65981         "one's complement" -> "ones' complement" in comment, as per Knuth.
65982         "value of type" -> "type or expression" in comment.
65983         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65984
65985 2005-03-26  Jim Meyering  <jim@meyering.net>
65986
65987         Comment nits.
65988         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65989         Correct typos: s/or/of/.
65990
65991 2005-03-26  Jim Meyering  <jim@meyering.net>
65992
65993         * modules/check-include-files: Move to ../ and rename to...
65994         * check-module: ...this.
65995
65996 2005-03-25  Jim Meyering  <jim@meyering.net>
65997
65998         * modules/xvasprintf (Files): Add xalloc.h.
65999
66000 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66001
66002         * modules/gettext (Files): config/config.rpath ->
66003         build-aux/config.rpath
66004         * modules/iconv (Files): Likewise.
66005         Problem reported by Oskar Liljeblad.
66006
66007 2005-03-23  Jim Meyering  <jim@meyering.net>
66008
66009         * modules/check-include-files: New script to check for
66010         missing dependencies, multiple includes, etc.
66011
66012         * modules/c-strtold (Depends-on): Add xalloc.
66013         * modules/c-strtod (Depends-on): Add xalloc.
66014         * modules/hash (Depends-on): Add xalloc.
66015         (Files): Remove lib/xalloc.h.
66016
66017         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66018         * modules/userspec (Files): Add lib/inttostr.h.
66019
66020 2005-03-23  Jim Meyering  <jim@meyering.net>
66021
66022         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66023
66024 2005-03-22  Jim Meyering  <jim@meyering.net>
66025
66026         * modules/stat-macros: New module.
66027         * modules/canonicalize, modules/euidaccess, modules/file-type,
66028         * modules/filemode, modules/lchown, modules/makepath,
66029         * modules/rmdir, modules/stat: Depend on new stat-macros module
66030         rather than listing lib/stat-macros.h manually.
66031         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66032
66033 2005-03-22  Jim Meyering  <jim@meyering.net>
66034
66035         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66036
66037 2005-03-22  Bruno Haible  <bruno@clisp.org>
66038
66039         * config/srclist.txt: Replace target directory 'config' with
66040         'build-aux'.
66041         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66042         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66043         ../build-aux/.
66044
66045 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66046
66047         * modules/chdir-long (Depends-on): Add mempcpy.
66048
66049         * modules/acl, modules/backupfile, modules/c-strtod,
66050         modules/c-strtold, modules/canon-host, modules/canonicalize,
66051         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66052         modules/exclude, modules/exitfail, modules/file-type,
66053         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66054         modules/getdate, modules/getline, modules/getpagesize,
66055         modules/getpass, modules/getugroups, modules/group-member,
66056         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66057         modules/inttostr, modules/long-options, modules/makepath,
66058         modules/md5, modules/memcasecmp, modules/memcoll,
66059         modules/modechange, modules/mountlist, modules/path-concat,
66060         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66061         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66062         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66063         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66064         modules/strftime, modules/strndup, modules/strverscmp,
66065         modules/timespec, modules/unlocked-io, modules/userspec,
66066         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66067         modules/yesno:
66068         Remove lib_SOURCES line from Makefile.am section, as this is now
66069         done automatically by the corresponding Autoconf macro.
66070
66071 2005-03-21  Jim Meyering  <jim@meyering.net>
66072
66073         Changes imported from coreutils.
66074
66075         * lib/cycle-check.c: Don't include xalloc.h.
66076
66077         * lib/path-concat.c: Don't include assert.h.
66078         (path_concat): Remove assertion that would have triggered
66079         for ABASE starting with more than one slash.
66080         Reported by Andreas Schwab.
66081
66082         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66083         properly when ABASE is an absolute file name.
66084         Correct the description of this function.
66085         Include <assert.h>.
66086         Add an assertion and a test driver.
66087         This fixes a bug introduced on 2004-07-02.
66088         Andreas Schwab reported the resulting failure of cp --parents:
66089         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66090
66091 2005-03-21  Jim Meyering  <jim@meyering.net>
66092
66093         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66094         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66095
66096 2005-03-21  Jim Meyering  <jim@meyering.net>
66097         and  Paul Eggert  <eggert@cs.ucla.edu>
66098
66099         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66100         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66101         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66102         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66103         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66104         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66105         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66106         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66107         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66108         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66109         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66110         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66111         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66112         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66113         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66114         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66115         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66116         for these modules.
66117
66118 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66121         (which shouldn't happen), generate nothing instead of returning 0
66122         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66123
66124 2005-03-16  Bruno Haible  <bruno@clisp.org>
66125
66126         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66127         HAVE_LONGLONG_64BIT.
66128
66129 2005-03-16  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66132         HAVE_LONGLONG_64BIT.
66133
66134 2005-03-16  Bruno Haible  <bruno@clisp.org>
66135
66136         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66137         HAVE_LONGLONG_64BIT.
66138
66139 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66142         reliably distinguish strftime failure from empty output on POSIX
66143         hosts.
66144
66145 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66146
66147         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66148         (iconv_string): Don't guess a size-zero buffer, as that might cause
66149         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66150         result would be 'too large', where 'too large' is (heuristically)
66151         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66152         overflow concerns.  This will prevent some unwanted malloc failures
66153         when the inputs are very large.
66154
66155 2005-03-15  Karl Berry  <karl@gnu.org>
66156
66157         * config/srclist.txt (config.rpath): from gettext.
66158         * config/config.rpath: update.
66159
66160 2005-03-15  Bruno Haible  <bruno@clisp.org>
66161
66162         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66163         to 'negate'.
66164
66165         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66166         variable.
66167
66168         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66169         results.
66170
66171 2005-03-14  Simon Josefsson  <jas@extundo.com>
66172
66173         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66174         <fx@gnu.org>.
66175
66176 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66177
66178         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66179         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66180         intprops.h.
66181         * lib/strtol.c: Likewise.
66182
66183 2005-03-14  Jim Meyering  <jim@meyering.net>
66184
66185         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66186         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66187         to be nonzero so that we (and caller) can detect the difference
66188         between a valid zero-length expansion and an error return, even
66189         when the underlying strftime fails before writing anything into
66190         that location.
66191
66192 2005-03-14  Bruno Haible  <bruno@clisp.org>
66193
66194         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66195         Update from GNU gettext 0.14.3.
66196
66197 2005-03-10  Jim Meyering  <jim@meyering.net>
66198
66199         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66200
66201 2005-03-10  Jim Meyering  <jim@meyering.net>
66202
66203         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66204         so that this module works on systems without fchdir.
66205
66206 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         Factor int-properties macros into a single file, except for
66209         glibc-related files.
66210         * lib/intprops.h: New file.
66211         * lib/getloadavg.c: Include it instead of limits.h.
66212         (INT_STRLEN_BOUND): Remove.
66213         * lib/human.c: Include intprops.h.
66214         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66215         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66216         302/1000.
66217         * lib/inttostr.h: Include intprops.h instead of limits.h.
66218         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66219         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66220         for consistency with intprops.h.
66221         (time_t_is_integer, twos_complement_arithmetic): Use them.
66222         * lib/sig2str.h: Include <signal.h>, intprops.h.
66223         (INT_STRLEN_BOUND): Remove.
66224         * lib/strftime.c (TYPE_SIGNED): Remove.
66225         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66226         * lib/strtol.c: Adjust comments to match intprops.h.
66227         * lib/userspec.c: Include intprops.h.
66228         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66229         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66230         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66231         instead of rolling our own expressions.
66232         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66233
66234         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66235         instead of int.
66236         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66237         the right thing even if adding 1900 would overflow.  Similarly
66238         for tm_mon + 1 and tm_yday + 1.
66239         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66240         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66241         (DO_SIGNED_NUMBER): New macro.
66242         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66243
66244 2005-03-07  Bruno Haible  <bruno@clisp.org>
66245
66246         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66247
66248 2005-03-07  Bruno Haible  <bruno@clisp.org>
66249
66250         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66251
66252 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66253
66254         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66255         (func_import): Only replace files via --import when they have actually
66256         changed.
66257
66258 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66259
66260         * m4/mmap-anon.m4: New file.
66261         * m4/pagealign_alloc.m4: New file.
66262
66263 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66264             Bruno Haible  <bruno@clisp.org>
66265
66266         * modules/pagealign_alloc: New file.
66267         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66268
66269 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66270             Bruno Haible  <bruno@clisp.org>
66271
66272         * lib/pagealign_alloc.h: New file.
66273         * lib/pagealign_alloc.c: New file.
66274
66275 2005-03-03  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66278         Use an all-permissive copyright notice, recommended by RMS.
66279
66280 2005-03-02  Bruno Haible  <bruno@clisp.org>
66281
66282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66283         of AIX, the replacement has to be done only after <string.h> is
66284         included, therefore not in config.h. stpncpy.h does the replacement,
66285         and stpncpy.c uses it.
66286
66287 2005-03-02  Bruno Haible  <bruno@clisp.org>
66288
66289         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66290         stpncpy.c uses it.
66291
66292 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66293
66294         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66295         The workaround isn't strictly needed for POSIX conformance, and
66296         it's too much of a pain to configure and maintain.  We'll ask
66297         people to fix their kernels instead.
66298         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66299         (NANOSLEEP_BUG_WORKAROUND): Remove.
66300         (xnanosleep): Remove the workaround.
66301
66302 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66303
66304         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66305         Reported by Derek Price.
66306         (Include): Add "timespec.h".
66307
66308         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66309
66310 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66313         to detect nanosleep bug.
66314
66315 2005-03-01  Bruno Haible  <bruno@clisp.org>
66316
66317         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66318
66319 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * modules/gethrxtime: New file.
66322         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66323         (Depends-on): Add gethrxtime.
66324         (configure.ac): Add gl_XNANOSLEEP.
66325         (Makefile.am): Remove lib_SOURCES line.
66326
66327 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66328
66329         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66330         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66331
66332 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66333
66334         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66335         * lib/timespec.h (gettime): Return void, since it always
66336         succeeds now.  All uses changed.
66337         * lib/gettime.c (gettime) Likewise.
66338         [HAVE_NANOTIME]: Prefer nanotime.
66339         Assume gettimeofday succeeds, as POSIX requires.
66340         Assime time () succeeds, since other code already does.
66341         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66342         (timespec_subtract): Remove.
66343         (NANOSLEEP_BUG_WORKAROUND): New constant.
66344         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66345         things considerably.  Use it only on GNU/Linux hosts, since the
66346         workaround shouldn't be needed elsewhere.
66347
66348 2005-02-24  Bruno Haible  <bruno@clisp.org>
66349
66350         * modules/gettext (Files): Add m4/glibc2.m4.
66351
66352 2005-02-24  Bruno Haible  <bruno@clisp.org>
66353
66354         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66355         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66356         * m4/progtest.m4:
66357         Update from GNU gettext 0.14.2.
66358         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66359
66360 2005-02-24  Bruno Haible  <bruno@clisp.org>
66361
66362         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66363         * lib/config.charset: Update from GNU gettext 0.14.2.
66364
66365 2005-02-24  Bruno Haible  <bruno@clisp.org>
66366
66367         * lib/gettext.h: Update from GNU gettext 0.14.2.
66368
66369 2005-02-23  Simon Josefsson  <jas@extundo.com>
66370
66371         * m4/iconvme.m4: New file.
66372
66373 2005-02-23  Jim Meyering  <jim@meyering.net>
66374
66375         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66376         change.
66377         Thanks to Bruno Haible for catching it.
66378
66379 2005-02-22  Simon Josefsson  <jas@extundo.com>
66380
66381         * modules/iconvme: New file.
66382
66383         * MODULES.html.sh: Add iconvme.
66384
66385 2005-02-22  Simon Josefsson  <jas@extundo.com>
66386
66387         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66388
66389 2005-02-22  Simon Josefsson  <jas@extundo.com>
66390
66391         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66392
66393 2005-02-22  Jim Meyering  <jim@meyering.net>
66394
66395         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66396         s/ifndef/ifdef/.
66397
66398 2005-02-20  Neil Conway  <neilc@samurai.com>
66399
66400         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66401         returned by OSX/Darwin if the specified buffer is not large
66402         enough for the hostname.
66403
66404 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66405
66406         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66407         pass it to _help, otherwise the latter coredumps trying to
66408         dereference state.root_argp.
66409
66410 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * modules/chdir-long (Depends-on): Add memrchr.
66413         * modules/memrchr (Files): Add lib/memrchr.h.
66414         (Include): "memrchr.h".
66415
66416 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66419
66420 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * lib/memrchr.h: New file.
66423         * lib/chdir-long.c: Include it.
66424         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66425         Don't bother including stddef.h.
66426
66427 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66428
66429         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66430         inclusion.
66431         Include <sys/types.h>, for dev_t.
66432         (ME_DUMMY, ME_REMOTE): Move from here....
66433         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66434         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66435         Dmitry V. Levin.
66436         Include mountlist.h first, to test the interface.
66437
66438 2005-01-29  Bruno Haible  <bruno@clisp.org>
66439
66440         * lib/progname.c (program_name): Initialize.
66441         Needed when linking statically on MacOS X.
66442
66443 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66444
66445         Sync from coreutils.
66446         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66447         (Depends-on): Add c-strtod.
66448         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66449
66450 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66451
66452         Sync from coreutils.
66453         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66454
66455         Remove files that are specific to coreutils.
66456         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66457
66458 2005-01-28  Bruno Haible  <bruno@clisp.org>
66459
66460         * modules/javacomp: New file.
66461         * MODULES.html.sh (Java): Add javacomp.
66462
66463 2005-01-28  Bruno Haible  <bruno@clisp.org>
66464
66465         * m4/javacomp.m4: New file, from GNU gettext.
66466
66467 2005-01-28  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/javacomp.sh.in: New file, from GNU gettext.
66470         * lib/javacomp.h: New file, from GNU gettext.
66471         * lib/javacomp.c: New file, from GNU gettext.
66472
66473 2005-01-26  Simon Josefsson  <jas@extundo.com>
66474
66475         * lib/gai_strerror.c: Use GPL in header.
66476
66477 2005-01-26  Bruno Haible  <bruno@clisp.org>
66478
66479         * modules/javaexec: New file.
66480         * MODULES.html.sh (Java): Add javaexec.
66481
66482 2005-01-26  Bruno Haible  <bruno@clisp.org>
66483
66484         * m4/javaexec.m4: New file, from GNU gettext.
66485
66486 2005-01-26  Bruno Haible  <bruno@clisp.org>
66487
66488         * lib/javaexec.sh.in: New file, from GNU gettext.
66489         * lib/javaexec.h: New file, from GNU gettext.
66490         * lib/javaexec.c: New file, from GNU gettext.
66491
66492 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66493
66494         * modules/lchown (Depends-on): Remove lchown.h
66495
66496 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66497
66498         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66499         must be defined if the header file was not found, in order
66500         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66501
66502 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66503
66504         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66505         initializers for struct pentry_state.
66506         (__argp_error): Check return value of __asprintf
66507         (__argp_failure): Translate error message
66508
66509         * lib/argp-parse.c: Removed braces around the expansion of N_()
66510
66511 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66514         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66515         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66516         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66517         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66518         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66519         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66520         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66521         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66522         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66523         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66524         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66525         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66526         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66527         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66528         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66529         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66530         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66531         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66532         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66533         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66534         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66535         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66536         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66537         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66538         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66539         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66540         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66541         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66542         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66543         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66544         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66545         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66546         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66547         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66548         Use an all-permissive copyright notice, recommended by RMS.
66549
66550 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         * modules/chdir-long (Depends-on): Remove mempcpy.
66553
66554 2005-01-21  Jim Meyering  <jim@meyering.net>
66555
66556         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66557         same value as for Solaris 9.
66558
66559         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66560         component length.  This included changing the parameter to be
66561         of type `char *' rather than `char const *'.
66562         * lib/chdir-long.h (chdir_long): Update prototype.
66563
66564         * lib/openat.c (fdopendir, fstatat): New functions.
66565         * lib/openat.h: Include headers required for use of DIR and struct
66566         stat.
66567         [AT_SYMLINK_NOFOLLOW]: Define.
66568         (fdopendir, fstatat): Add prototypes.
66569
66570 2005-01-21  Bruno Haible  <bruno@clisp.org>
66571
66572         * modules/classpath: New file.
66573         * MODULES.html.sh (Java): Add classpath.
66574
66575 2005-01-21  Bruno Haible  <bruno@clisp.org>
66576
66577         * lib/classpath.h: New file, from GNU gettext.
66578         * lib/classpath.c: New file, from GNU gettext.
66579
66580 2005-01-20  Simon Josefsson  <jas@extundo.com>
66581
66582         * modules/version-etc-fsf: New file.
66583
66584 2005-01-20  Simon Josefsson  <jas@extundo.com>
66585
66586         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66587         * lib/version-etc.c: Remove version_etc_copyright.
66588         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66589         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66590
66591 2005-01-20  Simon Josefsson  <jas@extundo.com>
66592
66593         * lib/base64.h (isbase64): Add.
66594
66595         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66596         using a unsigned prototype, don't inline.
66597         (base64_decode): Use it.
66598
66599 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66600
66601         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66602         it.
66603
66604 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * lib/save-cwd.c (save_cwd): Remove code to support the case
66607         where fchdir is missing or flaky.
66608
66609 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66610
66611         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66612
66613 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66616         AC_LIBSOURCES now does this.
66617         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66618         with new ullong_max module.
66619
66620 2005-01-19  Bruno Haible  <bruno@clisp.org>
66621
66622         * modules/sh-quote: New file.
66623         * MODULES.html.sh (Executing programs): Add sh-quote.
66624
66625 2005-01-19  Bruno Haible  <bruno@clisp.org>
66626
66627         * lib/sh-quote.h: New file, from GNU gettext.
66628         * lib/sh-quote.c: New file, from GNU gettext.
66629
66630 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         Merge from coreutils.
66633         * m4/ullong_max.m4: New file.
66634         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66635         (gl_MACROS): Assume localeconv exists.
66636
66637 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66638
66639         Merge changes from coreutils, as described below in several
66640         changelogs dated today.
66641
66642         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66643         (O_DIRECTORY): Remove; not needed here, since "." must be
66644         a directory.  All uses removed.
66645         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66646         universal on Suns, and we also need to test for IRIX.
66647         Revamp code to use 'if' rather than '#if'.
66648         Avoid unnecessary comparison of cwd->desc to 0.
66649
66650         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66651         for known valid error numbers rather than observed invalid ones.
66652
66653 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * modules/ullong_max: New file.
66656
66657         * modules/chdir-long, modules/openat: New files.
66658         * modules/save-cwd (Depends-on): Depend on chdir-long.
66659         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66660
66661 2005-01-18  Jim Meyering  <jim@meyering.net>
66662
66663         Merge from coreutils.
66664         * m4/chdir-long.m4, m4/openat.m4: New files.
66665         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66666         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66667         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66668         is sane and DOES follow symlinks.  Besides, testing 20 different
66669         systems found no broken chown implementations.
66670         Prompted by a change in rsync's copy of this macro.
66671         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66672
66673         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66674
66675         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66676         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66677         NULL-means-set-to-current-time semantics.
66678         Remove temporary file immediately, rather than waiting
66679         for configure's at-exit trap code to do it.
66680
66681 2005-01-18  Jim Meyering  <jim@meyering.net>
66682
66683         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66684
66685         * lib/utimens.c (futimens): Account for the fact that futimes
66686         can also fail with errno == ENOSYS or errno == ENOENT.
66687         Patch from Dmitry V. Levin.
66688
66689         Change the name of the robust chdir function from chdir to chdir_long.
66690         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66691         (restore_cwd): Use chdir_long, not chdir.
66692         * lib/chdir-long.c: Renamed from chdir.c.
66693         * lib/chdir-long.h: Renamed from chdir.h.
66694         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66695         Hurd.
66696
66697 2005-01-18  Bruno Haible  <bruno@clisp.org>
66698
66699         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66700         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66701         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66702         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66703         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66704         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66705         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66706         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66707         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66708         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66709         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66710         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66711         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66712         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66713         Use an all-permissive copyright notice, recommended by RMS.
66714
66715 2005-01-18  Bob Proulx  <bob@proulx.com>
66716
66717         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66718         simplify offsetof() macro construct to avoid compile failure with
66719         native HP-UX 11.0 ANSI C compiler.
66720
66721 2005-01-17  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66724         redundant because stpncpy.m4 takes care of it.
66725
66726 2005-01-17  Bruno Haible  <bruno@clisp.org>
66727
66728         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66729
66730 2005-01-17  Bruno Haible  <bruno@clisp.org>
66731
66732         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66733         used.
66734
66735 2005-01-17  Bruno Haible  <bruno@clisp.org>
66736
66737         * lib/fwriteerror.h (fwriteerror): Change specification to include
66738         fclose.
66739         * lib/fwriteerror.c: Include <stdbool.h>.
66740         (fwriteerror): At the end, close the file stream. Record whether
66741         stdout was already closed.
66742
66743 2005-01-17  Bruno Haible  <bruno@clisp.org>
66744
66745         * lib/execute.c (environ): Declare if needed.
66746         * lib/pipe.c (environ): Likewise.
66747         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66748
66749 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66750
66751         * modules/argp: Depend on vsnprintf
66752
66753 2005-01-10  Jim Meyering  <jim@meyering.net>
66754
66755         * modules/closeout (Depends-on): Add atexit.
66756
66757 2005-01-06  Bruno Haible  <bruno@clisp.org>
66758
66759         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66760
66761 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66762
66763         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66764         definitions to be after all include files, to avoid collisions.
66765         Problem reported by Bob Proulx.
66766
66767 2005-01-04  Jim Meyering  <jim@meyering.net>
66768
66769         Changes imported from coreutils.
66770         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66771         as the mkstemp template, use a temporary directory and an
66772         8.3-friendly template to avoid trouble on systems like DJGPP.
66773         Reported by Juan M. Guerrero via Stepan Kasal.
66774         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66775         close. Remove the temporary directory right away, rather than waiting
66776         for configure's at-exit trap code to do it.
66777         Suggestion from Stepan Kasal.
66778
66779 2005-01-01  Simon Josefsson  <jas@extundo.com>
66780
66781         * gnulib-tool: Print #include directives when --import'ing.
66782
66783 2004-12-28  Simon Josefsson  <jas@extundo.com>
66784
66785         * tests/test-base64.c: Include required header files.  Remove
66786         unused variables.
66787
66788 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * modules/error (Depends-on): Remove gettext.
66791
66792 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66795         not needed.  This removes a dependency on the gettext module.
66796         [defined _LIBC]: Do not include <libintl.h>; not needed.
66797
66798 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66801         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66802
66803 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66804
66805         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66806         HAVE_DECL_STRTOLD.
66807
66808 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66809
66810         * modules/getdate (Depends-on): Remove alloca-opt.
66811
66812 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66813
66814         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66815
66816 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * lib/argp-parse.c: Include <stddef.h>.
66819         (alignof, alignto): New macros.
66820         (parser_init): Don't assume that void * is aligned sufficiently
66821         for struct option.
66822
66823         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66824         need to extend the stack.
66825         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66826         large.
66827
66828 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66829
66830         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66831
66832 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66833
66834         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66835         (2004-10-24) change.  Apparently this was a false alarm.
66836
66837         * modules/getdate: Depend on alloca-opt, not alloca.
66838
66839 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66840
66841         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66842         Remove now-obsolete comment about AIX.
66843         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66844         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66845         (YYMAXDEPTH): New macro.
66846
66847 2004-12-18  Simon Josefsson  <jas@extundo.com>
66848
66849         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66850
66851 2004-12-18  Bruno Haible  <bruno@clisp.org>
66852
66853         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66854
66855 2004-12-18  Bruno Haible  <bruno@clisp.org>
66856
66857         * lib/fatal-signal.c (fatal_signals): Make non-const.
66858         (init_fatal_signals): New function.
66859         (uninstall_handlers, install_handlers): Ignore signals that were set to
66860         SIG_IGN.
66861         (at_fatal_signal): Call init_fatal_signals.
66862         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66863         SIG_IGN.
66864         Reported by Paul Eggert.
66865
66866 2004-12-18  Bruno Haible  <bruno@clisp.org>
66867
66868         * doc/alloca.texi: New file.
66869         * doc/alloca-opt.texi: New file.
66870
66871 2004-12-17  Jim Meyering  <jim@meyering.net>
66872
66873         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66874         Otherwise, install-sh could exit with improper exit status when
66875         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66876
66877 2004-12-16  Simon Josefsson  <jas@extundo.com>
66878
66879         * tests/test-base64.c: Add license.
66880
66881 2004-12-15  Stepan Kasal  <address@hidden>
66882
66883         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66884
66885 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         * modules/getcwd (Files): Add m4/d-ino.m4.
66888         Suggested by Mark D. Baushke.
66889
66890 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66891
66892         * lib/getdate.y (textint): New member "negative".
66893         (time_zone_hhmm): New function.
66894         Expect 14 shift-reduce conflicts, not 13.
66895         (o_colon_minutes): New rule.
66896         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66897         (yylex): Set the "negative" member of signed numbers.
66898
66899 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * doc/getdate.texi (Time of day items, Time zone items):
66902         Describe new formats +00:00, UTC+00:00.
66903
66904 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66907         spurious "-l"s.  Problem reported by Stepan Kasal.
66908
66909 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66912         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66913
66914 2004-12-04  Simon Josefsson  <jas@extundo.com>
66915
66916         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66917         Vandoorselaere <yoann@prelude-ids.org>.
66918
66919 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66920
66921         Changes imported from coreutils.
66922         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66923         exist.
66924         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66925
66926 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66927
66928         Changes imported from coreutils.
66929         * lib/hard-locale.c: Assume <locale.h> exists.
66930         Include "strdup.h".
66931         (GLIBC_VERSION): New macro.
66932         (hard_locale): Assume setlocale exists.
66933         Rewrite to avoid #ifdef.
66934         Use strdup rather than malloc + strcpy.
66935         * lib/human.c: Assume <locale.h> exists.
66936         (human_readable): Assume localeconv exists.
66937
66938 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         * modules/hard-locale (Depends-on): Add strdup.
66941
66942 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66943
66944         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66945         convert T2, not T.  (Imported from libc.)
66946
66947 2004-11-30  Simon Josefsson  <jas@extundo.com>
66948
66949         * modules/restrict (License): Change to LGPL.
66950
66951 2004-11-30  Simon Josefsson  <jas@extundo.com>
66952
66953         * m4/restrict.m4: Add copyright and copying conditions.
66954
66955 2004-11-30  Simon Josefsson  <jas@extundo.com>
66956
66957         * m4/base64.m4: New file.
66958
66959 2004-11-30  Simon Josefsson  <jas@extundo.com>
66960
66961         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66962         base64.
66963
66964         * tests/test-base64.c: New file.
66965
66966         * modules/base64: New file.
66967
66968 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66969
66970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66971         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66972
66973         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66974
66975 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66976
66977         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66978         (__getcwd.c): Don't restore errno; glibc doesn't.
66979         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66980         first, falling back to our code only if its results look suspicious.
66981         Ensure that the resulting buffer is only as large as necessary.
66982
66983         * lib/readutmp.c: Include readutmp.h first.
66984         Include <errno.h>, since readutmp.h no longer does that.
66985         * lib/readutmp.h: Don't include <errno.h>,
66986         <sys/param.h>, <time.h>; not needed to establish interface.
66987         (errno): Remove decl.
66988         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66989         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66990         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66991
66992 2004-11-28  Simon Josefsson  <jas@extundo.com>
66993
66994         * lib/base64.h, base64.c: New file.
66995
66996 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66999
67000 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67001
67002         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67003         (Depends-on): Remove pathmax, same.  Add mempcpy.
67004         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67005         (Makefile.am): Append getcwd.h to lib_SOURCES.
67006         (Include): Add getcwd.h.
67007         (Maintainer): Change from Jim Meyering to "all, glibc",
67008         since getdate now uses intended-for-glibc code.
67009         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67010         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67011
67012 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67013
67014         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67015         HP's ANSI C compiler.
67016         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67017         Declaring int functions causes warnings on some modern systems and
67018         shouldn't be needed to compile on ancient ones.
67019         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67020         defined.
67021
67022         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67023         with the following changes.
67024         (__set_errno): Parenthesize properly.
67025         Include <stdbool.h>.
67026         (MIN, MAX, MATCHING_INO): New macros.
67027         (__getcwd): Define with prototype, not K&R form.
67028         Use heuristics to allocate default buffer on stack if possible.
67029         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67030         behavior, and to avoid the PATH_MAX limit when computing
67031         ../../../../...
67032         Use MATCHING_INO to compare inode number to file.
67033         Check for arithmetic overflow in size calculations.
67034         Fix bug in reallocation of dot array that caused getcwd to fail
67035         on directories nested deeper than 75.
67036         Be more careful about saving errno on error.
67037         Do not use realloc; use only free+malloc, as this is a bit
67038         more flexible and avoids a needless copy operation.
67039         Do not inspect st_dev and st_ino for symbolic links; POSIX
67040         doesn't specify the latter.
67041         Check for closedir errors.
67042         Avoid needless casts.
67043         Use "#ifdef weak_alias" around weak_alias, to be like other
67044         glibc code.
67045         The following changes to getcwd.c have effect only when used in
67046         gnulib; they have no effect inside glibc proper.
67047         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67048         as alloca isn't used.
67049         (alloca, __alloca): Likewise.
67050         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67051         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67052         unconditionally, as gnulib assumes C89 or better.
67053         Do not include <sys/param.h>.
67054         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67055         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67056         better.
67057         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67058         Include <dirent.h> in a way that is compatible with modern Autoconf.
67059         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67060         New macros, if not already defined.
67061         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67062         Use "_LIBC", not "defined _LIBC", for consistency.
67063         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67064         a mempcpy module.
67065         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67066         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67067         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67068         credit only to Jim Meyering and adjust the copyright dates.
67069         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67070         <stdlib.h>, <unistd.h>, "pathmax.h".
67071         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67072         (INITIAL_BUFFER_SIZE): Remove.
67073         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67074
67075 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67078         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67079         Use the _ONCE methods, for efficiency.
67080         Check for fcntl.h.  In test program, include <errno.h>
67081         and <fcntl.h> if available.  Remove old K&R cruft from
67082         test program.  Check for common errors in GNU/Linux,
67083         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67084         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67085         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67086         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67087         name accordingly.
67088         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67089         accommodate new getcwd.c.
67090         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67091         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67092         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67093         that's all we need now.
67094
67095 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67096
67097         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67098         argp-parse.c depends on getopt internals, that means we should
67099         always use our getopt, to be on the safe side.
67100         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67101         order not to spoil the result of an eventual previous invocation
67102         of gl_GETOPT_SUBSTITUTE.
67103
67104 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67105
67106         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67107         redefinition warnings. To avoid them, include the defines
67108         in `#if !defined __need_getopt ... #endif'. The only place
67109         where __getopt_argv_const is used is in definitions
67110         of getopt_long and getopt_long_only below, which are as well
67111         protected by `#ifndef __need_getopt'.
67112         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67113         __need_getopt after including <stdio.h> and <unistd.h> These
67114         headers might have defined it.
67115
67116 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67117
67118         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67119
67120 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67121
67122         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67123         (futimens): New function, which uses futimes if available.
67124         (futimens, utimens): Support timespec==NULL, with same semantics
67125         as utime and utimens.
67126         * lib/utimens.h (futimens): New decl.
67127
67128 2004-11-23  Jim Meyering  <jim@meyering.net>
67129
67130         * lib/getopt_.h: Remove trailing blanks.
67131
67132 2004-11-23  Jim Meyering  <jim@meyering.net>
67133
67134         * lib/__fpending.c: Add comment.
67135
67136 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * modules/canonicalize (Depends-on): Add xreadlink.
67139         Problem reported by James Youngman.
67140
67141 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67144         New macros.
67145         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67146         optopt): Use them instead of invoking ## directly; otherwise, the
67147         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67148
67149 2004-11-19  Bruno Haible  <bruno@clisp.org>
67150
67151         * lib/strtok_r.c: Move comments from here...
67152         * lib/strtok_r.h: ... to here.
67153
67154 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67155
67156         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67157         implementations that mishandle size_t overflow.
67158
67159 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67162         might fail.  Problem reported by Yoann Vandoorselaere.
67163         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67164         implementations that mishandle size_t overflow.
67165
67166 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67167
67168         * modules/canon-host (Depends-on): Add strdup.
67169
67170 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67171
67172         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67173
67174 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67175
67176         * lib/canon-host.c: Include "strdup.h".
67177         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67178         Use strdup instead of malloc/strcpy to duplicate strings.
67179
67180         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67181         (human_space_before_unit): New constant.
67182         * lib/human.c (human_readable): Support it.
67183
67184         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67185         (xgetcwd): Set errno correctly when failing.
67186         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67187         the failure is actually due to a PATH_MAX problem.
67188
67189         Further getopt changes to make it more likely that glibc will
67190         buy the changes back.
67191         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67192         (getopt): Use it, so to preserve glibc semantic
67193         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67194         when compiling for libc.
67195         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67196         (getopt_long, getopt_long_only): Use it.
67197
67198         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67199         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67200         (getopt): Argv is now char * const *, as per standard.
67201         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67202         not char *__getopt_argv_const *.
67203         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67204         _getopt_long_only_r): Likewise.
67205         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67206         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67207         _getopt_long_r, _getopt_long_only_r): Likewise.
67208         * lib/getopt_.h (__getopt_argv_const): Remove.
67209         (getopt): Argv is now char * const *, as per standard.
67210
67211         * lib/getdate.y (tORDINAL): New token.
67212         (day, relunit): Allow it for relative times.
67213         (relative_time_table): Use tORDINAL for ordinals.
67214
67215 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67216
67217         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67218         Document that "second" isn't allowed as an ordinal number.
67219
67220 2004-11-16  Jim Meyering  <jim@meyering.net>
67221
67222         * modules/closeout (Depends-on): Add fpending.
67223
67224 2004-11-15  Jim Meyering  <jim@meyering.net>
67225
67226         * lib/closeout.c: Include "__fpending.h" once again.
67227         Include <stdbool.h>.
67228         (close_stdout): Don't fail just because stdout was closed initially,
67229         since some programs don't write to stdout in the normal course of
67230         operation (other than --version and --help), and we don't want this
67231         function to make e.g. `touch file >&-' fail.
67232         But do fail if it was closed and someone has tried to write to it.
67233         E.g., `printf foo >&-' must fail.
67234
67235 2004-11-13  Jim Meyering  <jim@meyering.net>
67236
67237         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67238
67239 2004-11-12  Simon Josefsson  <jas@extundo.com>
67240
67241         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67242         small doc fix is still pending.
67243
67244 2004-11-11  Simon Josefsson  <jas@extundo.com>
67245
67246         * modules/strtok_r: New file.
67247
67248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67249         strtok_r.
67250
67251 2004-11-11  Simon Josefsson  <jas@extundo.com>
67252
67253         * m4/strtok_r.m4: New file.
67254
67255         * m4/getopt.m4: Replace opterr.
67256
67257 2004-11-11  Simon Josefsson  <jas@extundo.com>
67258
67259         * lib/strtok_r.h, strtok_r.c: New file.
67260
67261 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67264         of replacing opterr, getopt, etc.  This should handle the
67265         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67266
67267 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67268
67269         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67270         we can stop lying to compilers about the constness of argv when we
67271         are compiled outside glibc.
67272         (getopt, getopt_long, getopt_long_only): Use it.
67273         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67274         _getopt_internal, getopt): Likewise.
67275         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67276         _getopt_long_only_r): Likewise.
67277         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67278         _getopt_long_r, _getopt_long_only_r): Likewise.
67279
67280         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67281         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67282         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67283         the other external symbols.
67284         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67285         declaration, since the above renaming now works around collisions.
67286
67287 2004-11-11  Jim Meyering  <jim@meyering.net>
67288
67289         * lib/linebreak.c: Remove trailing blanks.
67290         * lib/alloca_.h: Likewise.
67291         * lib/acosl.c: Likewise.
67292         * lib/euidaccess.c: Likewise.
67293         * lib/allocsa.h: Likewise.
67294
67295 2004-11-10  Simon Josefsson  <jas@extundo.com>
67296
67297         * m4/getaddrinfo.m4: New file.
67298
67299 2004-11-10  Simon Josefsson  <jas@extundo.com>
67300
67301         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67302
67303 2004-11-10  Simon Josefsson  <jas@extundo.com>
67304
67305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67306         getaddrinfo.
67307
67308         * modules/getaddrinfo: New file.
67309
67310 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67313
67314 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         * lib/mktime.c (SHR): New macro, which is a portable
67317         substitute for >> that should work even on Crays.
67318         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67319         Problem reported by Mark D. Baushke in
67320         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67321         * lib/getdate.y (SHR): Likewise.
67322         (tm_diff): Use it.
67323         * lib/strftime.c (SHR): Likewise.
67324         (tm_diff): Use it.
67325         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67326         quote_these_too, so that right shifts are well defined.  All uses
67327         changed.
67328
67329 2004-11-10  Jim Meyering  <jim@meyering.net>
67330
67331         Ensure that no close failure goes unreported.
67332         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67333         return early when it seems there's nothing to flush.
67334         Don't include __fpending.h.
67335
67336 2004-11-10  Jim Meyering  <jim@meyering.net>
67337
67338         * modules/closeout (Depends-on): Remove fpending.
67339
67340 2004-11-10  Jim Meyering  <jim@meyering.net>
67341
67342         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67343
67344 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67345
67346         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67347         gl_FUNC_STRFTIME.
67348         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67349         and AC_REQUIRE when possible, to avoid duplicate checks.
67350         Check for <wchar.h>.
67351
67352 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67355
67356 2004-11-09  Bruno Haible  <bruno@clisp.org>
67357
67358         * m4/sockpfaf.m4: New file.
67359
67360 2004-11-05  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67363         Reported by Mark D. Baushke <mdb@cvshome.org>.
67364
67365 2004-11-04  Bruno Haible  <bruno@clisp.org>
67366
67367         2004-09-11  Bruno Haible  <bruno@clisp.org>
67368                 * allocsa.valgrind: New file.
67369         2004-02-06  Bruno Haible  <bruno@clisp.org>
67370                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67371                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67372                 Reported by Christopher Seip <chris.seip@hp.com>.
67373
67374 2004-11-04  Bruno Haible  <bruno@clisp.org>
67375
67376         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67377         (Makefile.am): Distribute it.
67378
67379 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67380
67381         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67382         with errno == ERANGE if the buffer is too small.
67383         Problem reported by Mark D. Baushke.
67384
67385 2004-11-03  Albert Chin  <china@thewrittenword.com>
67386             Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67389         equivalent, substitute $ac_type for equivalent type rather than
67390         blindly using uint32_t *always* which won't work if uint32_t is not
67391         available.  Define _UINT32_T to work around typedef of uint32_t if
67392         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67393         2.5.1.
67394
67395 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67396
67397         * m4/jm-macros.m4: Sync from coreutils.
67398         (gl_MACROS): Check for mbrlen, for pathchk.
67399         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67400
67401 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67402
67403         * lib/xreadlink.c (MAXSIZE): New macro.
67404         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67405         size does not exceed MAXSIZE.  Avoid cast.
67406         As suggested by Mark D. Baushke in
67407         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67408         if readlink fails with buffer size just under MAXSIZE, try again
67409         with MAXSIZE.
67410
67411 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67414
67415 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67416         and  Paul Eggert  <eggert@cs.ucla.edu>
67417
67418         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67419         (get_date): Overparenthesize to avoid GCC warning.
67420
67421 2004-11-02  Bruno Haible  <bruno@clisp.org>
67422
67423         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67424         returns void.
67425
67426 2004-11-02  Bruno Haible  <bruno@clisp.org>
67427
67428         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67429         function returns void.
67430
67431 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67432
67433         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67434         fflush_unlocked, flockfile, funlockfile, funlockfile,
67435         fputs_unlocked, putc_unlocked.
67436
67437 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67440         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67441         already declared.
67442
67443 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67444
67445         * modules/getdate (Files): Add doc/getdate.texi.
67446         (Depends-on): Add setenv, xalloc.
67447
67448 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         * lib/getdate.y: Add support for TZ="foo" within a date string.
67451         Fix some bugs near time_t boundaries.  Reject dates with
67452         out-of-range components, e.g., "Sept 31".
67453         Include <stdlib.h>, "setenv.h", "xalloc.h".
67454         (ISDIGIT_LOCALE): Remove; unused.
67455         Note that the TZ and time functions used here are not reentrant.
67456         (mktime_ok, get_tz): New functions.
67457         (TZBUFSIZE): New constant.
67458         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67459         This requires that we sometimes generate our own TZ="XXX..." setting.
67460
67461 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * doc/getdate.texi: New file, from coreutils with modifications for
67464         the new TZ parsing.
67465
67466 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67467
67468         * lib/mktime.c (not_equal_tm): Remove redundant check.
67469
67470 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * modules/regex (lib_SOURCES): Add regex.c.
67473         Reported by James Youngman in
67474         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67475
67476 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         * lib/getdate.y: Use Bison 1.875 features, and some minor
67479         code cleanups.  This change does not affect semantics.
67480         Don't include <stdlib.h>; no longer needed.
67481         Don't include unlocked-io.h; only the "#if TEST" code uses
67482         stdio, and performance isn't crucial there.
67483         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67484         Bison 1.875 features as described below.
67485         All uses of "PC." replaced by "pc->".
67486         (YYSTYPE): Add a forward declaration.
67487         (yylex, yyerror): Use full prototypes in forward decls.
67488         Use "%pure-parser" rather than obsolescent "%pure_parser".
67489         Use %parse-param and %lex-param instead of obsolescent
67490         YYPARSE_PARAM and YYLEX_PARAM.
67491         (meridian_table, month_and_day_table, time_units_table,
67492         relative_time_table, time_zone_table, military_table,
67493         lookup_zone, lookup_word, get_date):
67494         Use NULL instead of 0 where appropriate.
67495         (to_hour): Avoid abort (), to avoid a dependency on
67496         stdlib.h.
67497         (yyerror, yylex): Now accepts parser_control * arg.
67498         (main) [TEST]: Use '\0' rather than 0 for char.
67499
67500 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67503
67504 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67505
67506         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67507         It's now the caller's responsibility to handle the case where
67508         !HAVE_GETPAGESIZE && !defined getpagesize.
67509
67510         * lib/mktime.c (leapyear): Arg is long int, not int.
67511
67512 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67515
67516 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67519         missing.  Problem reported by James Youngman.
67520
67521 2004-10-16  Simon Josefsson  <jas@extundo.com>
67522
67523         * gnulib-tool: Fix comments.  Fix parse problem.
67524         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67525
67526 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67529         implementation of getopt_long.  Problem reported by Alexander Taler in:
67530         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67531
67532 2004-10-15  Bruno Haible  <bruno@clisp.org>
67533
67534         * gnulib-tool: Untabify. Initialize supplied_libname.
67535         (func_usage): More homogenous output.
67536         (func_modules_transitive_closure, func_modules_to_filelist,
67537         func_emit_lib_Makefile_am): New functions.
67538         (func_import): New function, extracted from big case statement. Use
67539         func_get_license, func_modules_transitive_closure,
67540         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67541         opt_lgpl. Don't use test -a, as it's not portable.
67542         (func_create_testdir): Use func_modules_transitive_closure,
67543         func_modules_to_filelist, func_emit_lib_Makefile_am.
67544
67545 2004-10-15  Bruno Haible  <bruno@clisp.org>
67546
67547         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67548
67549 2004-10-15  Bruno Haible  <bruno@clisp.org>
67550
67551         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67552         the portions belonging to each module.
67553         Suggested by Derek Robert Price <derek@ximbiot.com>.
67554
67555 2004-10-12  Simon Josefsson  <jas@extundo.com>
67556
67557         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67558         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67559         to real functions.
67560
67561 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67562
67563         * modules/vsnprintf: New file.
67564
67565 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67566
67567         * m4/vsnprintf.m4: New file.
67568
67569 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67570
67571         * lib/vsnprintf.h: New file.
67572         * lib/vsnprintf.c: New file.
67573
67574 2004-10-11  Bruno Haible  <bruno@clisp.org>
67575
67576         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67577         vsnprintf.
67578
67579 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67582
67583 2004-10-07  Bruno Haible  <bruno@clisp.org>
67584
67585         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67586         fits into the provided buffer.
67587
67588 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * lib/diacrit.c, diacrit.h: Add GPL notice.
67591
67592         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67593         notice.
67594         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67595         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67596         This avoids a potential constant-folding bug.
67597
67598 2004-10-05  Bruno Haible  <bruno@clisp.org>
67599
67600         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67601         for the declaration of strsep.
67602
67603 2004-10-05  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67606
67607 2004-10-04  Simon Josefsson  <jas@extundo.com>
67608
67609         * modules/memmem: New file.
67610         * tests/test-memmem.c: New file.
67611         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67612
67613 2004-10-04  Simon Josefsson  <jas@extundo.com>
67614
67615         * m4/memmem.m4: New file.
67616
67617 2004-10-04  Simon Josefsson  <jas@extundo.com>
67618
67619         * lib/memmem.h: New file.
67620         * lib/memmem.c: New file, taken from glibc.
67621
67622 2004-10-04  Simon Josefsson  <jas@extundo.com>
67623
67624         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67625         '#ifdef USE_UNLOCKED_IO'.
67626
67627 2004-10-04  Simon Josefsson  <jas@extundo.com>
67628
67629         * config/srclist.txt: Add memmem from glibc.
67630
67631 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67632
67633         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67634
67635         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67636         modules/exclude, modules/getdate, modules/getline,
67637         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67638         modules/getusershell, modules/linebuffer, modules/md5,
67639         modules/mountlist, modules/posixtm, modules/readtokens,
67640         modules/readutmp, modules/regex, modules/sha1,
67641         modules/version-etc, modules/yesno:
67642         Remove dependency on unlocked-io.
67643
67644 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67647
67648         * m4/unlocked-io.m4: Add copyright notice.
67649         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67650
67651 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67654         * lib/xmalloc.c (xmemdup): Likewise.
67655         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67656         XFREE): Remove these long-obsolescent macros.
67657         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67658         * lib/xstrdup.c: Remove.
67659
67660         * lib/regex.c (re_comp): Cast gettext return value to char *,
67661         Problem reported by Martin Neitzel via Mark D. Baushke.
67662
67663 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67666         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67667         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67668         regex.c, sha1.c, version-etc.c, yesno.c:
67669         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67670         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67671         the includer's responsibility.
67672
67673         Sync from coreutils.
67674
67675         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67676         points to the start of a string, as the C Standard says the
67677         resulting behavior is undefined.
67678
67679         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67680         simple -> simple_backups, numbered_existing ->
67681         numbered_existing_backups, numbered -> numbered_backups
67682         to avoid shadowing problems.  All uses changed.
67683         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67684         * lib/backupfile.c (check_extension, numbered_backup):
67685         Rename locals to avoid shadowing 'basename'.
67686         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67687         once.
67688
67689         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67690         * lib/.cvsignore: Add getopt.h.
67691
67692 2004-10-04  Bruno Haible  <bruno@clisp.org>
67693
67694         * modules/README: New file.
67695         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67696         not a module.
67697
67698 2004-10-02  Jim Meyering  <jim@meyering.net>
67699
67700         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67701
67702 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67703
67704         * modules/strsep: New file.
67705
67706 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67707
67708         * m4/strsep.m4: New file.
67709
67710 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67711
67712         * lib/strsep.h: New file.
67713         * lib/strsep.c: New file.
67714
67715 2004-10-01  Simon Josefsson  <jas@extundo.com>
67716
67717         * lib/snprintf.c (snprintf): Handle size==0.
67718
67719 2004-10-01  Simon Josefsson  <jas@extundo.com>
67720             Bruno Haible  <bruno@clisp.org>
67721
67722         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67723         (snprintf): Declare 'args'.
67724
67725 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67726
67727         * lib/snprintf.c: Remove comments as to why each header is needed.
67728
67729 2004-10-01  Bruno Haible  <bruno@clisp.org>
67730
67731         * MODULES.html.sh: Add strsep.
67732
67733 2004-09-30  Simon Josefsson  <jas@extundo.com>
67734
67735         * modules/snprintf: New file.
67736
67737 2004-09-30  Simon Josefsson  <jas@extundo.com>
67738
67739         * m4/snprintf.m4: New file.
67740
67741 2004-09-30  Simon Josefsson  <jas@extundo.com>
67742
67743         * lib/snprintf.h, lib/snprintf.c: New files.
67744
67745 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67746
67747         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67748         (hol_entry_help): Never translate an empty string.
67749         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67750         * lib/argp.h (OPTION_NO_TRANS): New option.
67751
67752 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         * modules/argp (Maintainer): Replace Simon Josefsson
67755         by Sergey Poznyakoff.
67756
67757 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67758
67759         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67760         changes merged back into glibc.
67761
67762 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67763
67764         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67765
67766 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67767
67768         * lib/xvasprintf.c: Include xalloc.h.
67769         (xvasprintf): Use xalloc_die, not xmalloc_die.
67770
67771 2004-09-29  Bruno Haible  <bruno@clisp.org>
67772
67773         * modules/alloca-opt: New file, derived from modules/alloca.
67774         * modules/allocsa: Depend on alloca-opt instead of alloca.
67775         * modules/setenv: Likewise.
67776         * modules/vasnprintf: Likewise.
67777         * MODULES.html.sh: Add alloca-opt.
67778
67779 2004-09-28  Simon Josefsson  <jas@extundo.com>
67780
67781         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67782         LGPL, and to replace license template from GPL to LGPL.
67783
67784 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         * modules/dummy: Change license to LGPL.
67787
67788 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67791
67792 2004-09-24  Simon Josefsson  <jas@extundo.com>
67793
67794         * modules/minmax (License): Change from GPL to LGPL.
67795
67796 2004-09-23  Simon Josefsson  <jas@extundo.com>
67797
67798         * gnulib-tool (--import): Typo.
67799
67800 2004-09-23  Simon Josefsson  <jas@extundo.com>
67801
67802         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67803
67804 2004-09-22  Bruno Haible  <bruno@clisp.org>
67805
67806         * modules/*: Add 'License' field.
67807         * gnulib-tool: Accept --extract-license option.
67808         (func_get_license): New function.
67809
67810 2004-09-21  Bruno Haible  <bruno@clisp.org>
67811
67812         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67813         Reported by Simon Josefsson.
67814
67815 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67816
67817         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67818         gl_AC_TYPE_LONG_LONG.
67819
67820 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67823
67824 2004-09-18  Simon Josefsson  <jas@extundo.com>
67825         and  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67828         calls with autoreconf.  Define GL_LIB.
67829
67830 2004-09-14  Karl Berry  <karl@gnu.org>
67831
67832         * config/srclist.txt: unsync setenv.c, sigh.
67833
67834 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67837         Problem reported by Bruno Haible in:
67838         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67839
67840 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * config/srclist.txt: Comment out argp-pvh.c.
67843
67844 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67845
67846         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67847         in case some system header has #define'd it.  Problem reported by
67848         Soeren D. Schulze in
67849         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67850
67851 2004-09-09  Karl Berry  <karl@gnu.org>
67852
67853         * regex.[ch]: delete from the root.  These were supposed to be
67854                 synced with emacs cvs, but this has not happened for about
67855                 a year, and anyway nothing else uses emacs regex.[ch].
67856                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67857                 lib/regex[.ch] is untouched.
67858
67859 2004-09-09  Bruno Haible  <bruno@clisp.org>
67860
67861         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67862
67863 2004-09-09  Bruno Haible  <bruno@clisp.org>
67864
67865         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67866         modifications.
67867         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67868
67869 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67870
67871         * modules/xvasprintf: New file.
67872         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67873
67874 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67875
67876         * lib/xvasprintf.h: New file.
67877         * lib/xvasprintf.c: New file.
67878         * lib/xasprintf.c: New file.
67879
67880 2004-09-08  Bruno Haible  <bruno@clisp.org>
67881
67882         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67883
67884 2004-09-08  Bruno Haible  <bruno@clisp.org>
67885
67886         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67887         length is > INT_MAX.
67888         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67889         more.
67890
67891 2004-09-08  Bruno Haible  <bruno@clisp.org>
67892
67893         * lib/stdint_.h: New file, taken from GNU clisp.
67894
67895 2004-09-08  Bruno Haible  <bruno@clisp.org>
67896             Oskar Liljeblad  <oskar@osk.mine.nu>
67897
67898         * modules/stdint: New file.
67899         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67900
67901 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         Import from coreutils.
67904         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67905         strings on unbounded length.  alloca's performance benefits aren't
67906         that important here.
67907         (V_STRDUP): Remove.
67908         (parse_with_separator): New function, with most of the internals
67909         of the old parse_user_spec.  Allow user to omit both user and group,
67910         for compatibility with FreeBSD.
67911         Clone only the user name, not the entire spec.
67912         Do not set *uid, *gid unless entirely successful.
67913         Avoid memory leak in some failing cases.
67914         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67915         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67916         (parse_user_spec): Rewrite to use parse_with_separator.
67917
67918 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         * modules/userspec: Don't depend on alloca.
67921
67922 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67923
67924         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67925
67926 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67929         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67930         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67931
67932 2004-08-16  Simon Josefsson  <jas@extundo.com>
67933
67934         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67935         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67936         Add --dry-run for --import.
67937         Let user provided command line parameters override configure.ac
67938         settings.
67939
67940 2004-08-12  Simon Josefsson  <jas@extundo.com>
67941
67942         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67943         as discussed with Paul Eggert in threads rooted at
67944         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67945         and
67946         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67947         Before, the test was empty, and relied on ELIDE_CODE in source
67948         code.)
67949         (gl_PREREQ_GETOPT): New macro.
67950         (gl_GETOPT): Use them.
67951
67952 2004-08-12  Simon Josefsson  <jas@extundo.com>
67953
67954         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67955         * lib/getopt_.h: Renamed from getopt.h.
67956
67957 2004-08-12  Simon Josefsson  <jas@extundo.com>
67958
67959         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67960         Change default library name from libfoo to libgnu.
67961         Now, if you have a configure.ac that says:
67962                 gl_SOURCE_BASE(gl)
67963                 gl_M4_BASE(gl/m4)
67964                 gl_MODULES(error getopt etcetera)
67965                 gl_INIT
67966         you can import all you need by running:
67967                 ../gnulib/gnulib-tool --import
67968
67969         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67970         (Makefile.am): Rewrite, use logic from argz.
67971         (Include): Use <getopt.h> instead of "getopt.h".
67972
67973 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67974
67975         * modules/argp (Files): Add m4/unlocked-io.m4.
67976         (Depends-on): Add extensions.
67977
67978 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67979
67980         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67981         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67982         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67983         Check for program_invocation_name, program_invocation_short_name,
67984         flockfile, funlockfile, features.h, _getopt_long_only_r.
67985
67986 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67989         its complicated substitute.
67990         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67991         and program_invocation_name.
67992         (__argp_basename) [!_LIBC]: Remove; the only use was
67993         replaced by its body.
67994         (__argp_short_program_name): Change condition from
67995         !defined __argp_short_program_name to
67996         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67997         to match argp-namefrob.h.
67998         (__argp_failure): Don't assume strerror_r returns char *.
67999         * lib/argp-parse.c (N_): Define unconditionally.
68000         (argp_default_options): Fill out initializers with 0 to avoid
68001         gcc warnings.
68002
68003 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68006         getopt1.c.
68007
68008 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68009
68010         Merge from coreutils.
68011
68012         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68013
68014         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68015         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68016
68017 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68018
68019         Merge from coreutils.
68020
68021         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68022         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68023         for Reliant Unix 5.43.
68024
68025         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68026         (union fooround): Use uintmax_t, not long int.
68027         The rest is a merge from libc:
68028         [defined _LIBC]: Include <shlib-compat.h>.
68029         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68030
68031         * lib/settime.c (settime): Recode to avoid warning with
68032         Sun Forte C 6U2.
68033
68034         * lib/strverscmp.c: Convert to UTF-8.
68035
68036 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68037
68038         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68039         m4/uintmax_t.m4.
68040
68041 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * modules/xalloc-die: New file.
68044         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68045
68046         * modules/md5 (Files): Add m4/uint32_t.m4.
68047         * modules/sha1: Renamed from modules/sha.
68048         (Files):
68049         Rename lib/sha.h to lib/sha1.h.
68050         Rename lib/sha.c to lib/sha1.c.
68051         Rename m4/sha.m4 to m4/sha1.m4.
68052         (lib_SOURCES): Likewise.
68053         (configure.ac): Rename gl_SHA to gl_SHA1.
68054         (Include): sha.h -> sha1.h.
68055
68056 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68057
68058         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68059         * m4/sha1.m4: Renamed from sha.m4.
68060         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68061
68062 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68063
68064         * lib/obstack.h (obstack_empty_p):
68065         Don't assume that chunk->contents is suitably aligned.
68066         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68067         Likewise. Problem reported by Benno in
68068         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68069
68070         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68071         readable.  This could be improved further but it'd take some work.
68072
68073 2004-08-08  Simon Josefsson  <jas@extundo.com>
68074
68075         * modules/xgethostname (Depends-on): Remove exit and error (not
68076         used).
68077
68078         * modules/getpass-gnu: Add getpass.h.
68079         (Depends-on): Add stdbool.
68080         * modules/getpass: Add getpass.h.
68081
68082 2004-08-08  Simon Josefsson  <jas@extundo.com>
68083
68084         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68085         Check getpass declaration.
68086
68087 2004-08-08  Simon Josefsson  <jas@extundo.com>
68088
68089         * lib/xgethostname.c: Don't include error.h (not used).
68090
68091         * lib/getpass.h: Add.
68092         * lib/getpass.c: Include getpass.h first.
68093
68094 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68095
68096         * lib/xalloc-die.c: New file.
68097         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68098         All uses removed.
68099         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68100         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68101         xalloc-die.c.
68102         (_, N_, xalloc_die): Move to xalloc-die.c.
68103         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68104         so that we needn't mess with xalloc_msg_memory_exhausted.
68105
68106         * lib/sha1.h: Renamed from sha.h.
68107         (SHA1_H): Renamed from _SHA_H.
68108         (sha1_ctx): Renamed from sha_ctx.
68109         (sha1_init_ctx): Renamed from sha_init_ctx.
68110         (sha1_process_block): Renamed from sha_process_block.
68111         (sha1_process_bytes): Renamed from sha_process_bytes.
68112         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68113         (sha1_read_ctx): Renamed from sha_read_ctx.
68114         (sha1_stream): Renamed from sha_stream.
68115         (sha1_buffer): Renamed from sha_buffer.
68116         * lib/sha1.c: Likewise; renamed from sha.c.
68117         Do not include <sys/types.h>.
68118         Include <stddef.h> rather than <stdlib.h>.
68119
68120 2004-08-08  Bruno Haible  <bruno@clisp.org>
68121
68122         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68123         FILESYSTEM_PREFIX_LEN.
68124         * lib/progreloc.c: Likewise.
68125         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68126
68127 2004-08-06  Simon Josefsson  <jas@extundo.com>
68128
68129         * modules/progname (Depends-on): Don't depend on stdbool.
68130
68131 2004-08-06  Simon Josefsson  <jas@extundo.com>
68132
68133         * modules/getsubopt: New file.
68134         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68135         getsubopt.
68136
68137 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68138
68139         More merge from coreutils.
68140
68141         * m4/utimens.m4, m4/utimecmp.m4: New files.
68142         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68143         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68144         prereq.m4, sha.m4: Import changes from coreutils.
68145
68146 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         More merge from coreutils.
68149         * modules/raise, modules/readtokens0, modules/utimens:
68150         * modules/utimecmp, module/xnanosleep: New files.
68151         * modules/strftime: Add lib/strftime.h.
68152         Change include from <time.h> to "strftime.h".
68153         * modules/yesno: Add lib/yesno.h.
68154         * modules/backupfile: Remove lib/addext.c.
68155         * modules/euidaccess: Add stat-macros.h.
68156         * modules/canonicalize, modules/euidaccess,
68157         modules/filemode, modules/lchown, modules/makepath,
68158         modules/rmdir, modules/stat: Likewise.
68159
68160 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         Merge from tar.
68163         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68164         SIZE_MAX is a valid preprocessor constant.
68165         (__argp_basename): Change from "#ifndef _LIBC"
68166         to "#ifndef __argp_short_program_name", so that
68167         we don't compile these functions for tar.
68168
68169         More merges from coreutils.
68170         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68171         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68172         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68173         * lib/addext.c: Remove; no longer needed.
68174         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68175         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68176         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68177         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68178         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68179         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68180         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68181         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68182         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68183         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68184         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68185         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68186         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68187         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68188         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68189         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68190         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68191         Import changes from coreutils.
68192
68193 2004-08-05  Simon Josefsson  <jas@extundo.com>
68194
68195         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68196
68197 2004-08-05  Simon Josefsson  <jas@extundo.com>
68198
68199         * m4/getsubopt.m4: New file.
68200
68201 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         Merge from coreutils.
68204
68205         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68206         * m4/getcwd-path-max.m4: New files.
68207
68208         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68209         FILESYSTEM_PREFIX_LEN ->
68210         FILE_SYSTEM_PREFIX_LEN.
68211         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68212         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68213         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68214         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68215
68216         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68217         prerequisite modules now handle the DOS stuff.
68218         Don't check for unistd.h.
68219
68220 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68221
68222         Merge from coreutils.
68223
68224         * lib/.gdb-history: Remove; this doesn't belong here.
68225
68226         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68227         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68228         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68229         * lib/getcwd.c: New files.
68230
68231         * lib/dirname.h: Include <stdbool.h>.
68232         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68233         for consistency with POSIX terminology.  All uses changed.
68234         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68235         (strip_trailing_slashes): Use bool for booleans.
68236         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68237
68238         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68239         sometimes returns a positive errno value even when it succeeds.
68240         (print_errno_message) [!LIBC]: Fall back on strerror if
68241         __strerror_r fails.
68242
68243         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68244         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68245         (longest_relative_suffix): New function.
68246         (path_concat): Use it.  Assume first argument is not NULL.
68247         Port to DOS.  Omit redundant separators.
68248         Report an error instead of returning NULL.
68249         Use mempcpy instead of memcpy.
68250         (xpath_concat): Remove: not declared or used.
68251
68252         * lib/same.h: Include <stdbool.h>
68253         (same_name): Return bool, not int.
68254         * lib/same.c (same_name): Likewise.
68255         (errno): Don't declare; we assume C89 or better now.
68256
68257         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68258         if not already defined.
68259
68260         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68261         * lib/dup-safer.c (errno): Likewise.
68262
68263 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         Merge from coreutils.
68266         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68267         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68268         * modules/path-concat: Don't depend on strdup.
68269
68270 2004-08-03  Simon Josefsson  <jas@extundo.com>
68271
68272         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68273         * lib/progname.h: Don't include stdbool.h.
68274
68275 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68278         * MODULES.html.sh (func_all_modules): Remove fatal.
68279
68280 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68281
68282         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68283
68284 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68287         working.
68288
68289 2004-08-02  Simon Josefsson  <jas@extundo.com>
68290
68291         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68292         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68293         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68294
68295 2004-08-01  Simon Josefsson  <jas@extundo.com>
68296
68297         * lib/xgetdomainname.c: Include stdlib.h, for free().
68298
68299 2004-07-19  Bruno Haible  <bruno@clisp.org>
68300
68301         * MODULES.html.sh (func_all_modules): Add dummy.
68302
68303 2004-07-16  Simon Josefsson  <jas@extundo.com>
68304
68305         * modules/dummy: New file.
68306
68307 2004-07-16  Simon Josefsson  <jas@extundo.com>
68308
68309         * lib/dummy.c: New file.
68310
68311 2004-07-16  Bruno Haible  <bruno@clisp.org>
68312
68313         * lib/backupfile.h: Add extern "C" for C++.
68314         * lib/closeout.h: Likewise.
68315         * lib/copy-file.h: Likewise.
68316         * lib/findprog.h: Likewise.
68317         * lib/full-write.h: Likewise.
68318         * lib/pathname.h: Likewise.
68319         * lib/progname.h: Likewise.
68320         * lib/stpcpy.h: Likewise.
68321         * lib/stpncpy.h: Likewise.
68322         * lib/strcase.h: Likewise.
68323         * lib/strstr.h: Likewise.
68324         * lib/xalloc.h: Likewise.
68325
68326         * lib/mbswidth.h: Add extern "C" for C++.
68327         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68328
68329 2004-07-13  Robert Millan  <robertmh@gnu.org>
68330
68331         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68332
68333 2004-07-09  Simon Josefsson  <jas@extundo.com>
68334
68335         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68336         failed without this.)
68337
68338 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68339
68340         * modules/chown (Files): Add lib/fchown-stub.c, since
68341         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68342
68343 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * lib/fchown-stub.c: New file.
68346
68347 2004-06-24  Jim Meyering  <jim@meyering.net>
68348
68349         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68350
68351 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * modules/argz: Omit "#include".
68354
68355         * MODULES.html.sh (func_all_modules): Add calloc, to match
68356         2004-06-01 addition of calloc module.
68357
68358 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * m4/argz.m4: New file, which is autoupdated from libtool.
68361
68362 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68365         libtool.
68366
68367 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         * config/srclist-update: Don't insist on "USA." before the
68370         close-comment, as libtool omits the period and puts the */ on a
68371         separate line.
68372         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68373         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68374
68375 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68376
68377         * modules/argz: New file.
68378         * MODULES.html.sh (func_all_modules): Add argz.
68379
68380 2004-06-12  Jim Meyering  <jim@meyering.net>
68381         and  Paul Eggert  <eggert@cs.ucla.edu>
68382
68383         * modules/hash (Files): Add lib/xalloc.h.
68384         * modules/pipe (Depends-on): Add wait-process.
68385         * modules/stat (Depends-on): Add xalloc.
68386         * modules/userspec (Files): Add lib/userspec.h.
68387         * modules/xstrto
68388
68389         Upgrade from gettext-0.13.
68390         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68391         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68392         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68393
68394 2004-06-10  Jim Meyering  <jim@meyering.net>
68395
68396         * lib/calloc.c: New file.
68397
68398 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * lib/getdate.y (yylex): Allow space between sign and number.
68401         Problem reported by Dan Jacobson.
68402
68403 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         Merge from coreutils CVS.
68406
68407         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68408         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68409         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68410         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68411         xstrtol.m4: Fix copyright date and/or serial number.
68412
68413         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68414         See if we need an fchown replacement.
68415         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68416         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68417         and use the replacement function if we detect either defect.
68418
68419         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68420         gl_UTIMECMP.
68421
68422 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68423         and  Jim Meyering  <jim@meyering.net>
68424
68425         Merge from coreutils CVS.
68426
68427         * lib/stat-macros.h: New file, with contents from file-type.h
68428         and coreutils' system.h.
68429         * lib/file-type.c: Include "stat-macros.h".
68430         * lib/file-type.h (file_type): Move all macro definitions to new file,
68431         stat-macros.h.
68432
68433         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68434         Wrap old code with this conditional.
68435         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68436         function that does not dereference symlinks.
68437         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68438
68439         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68440         dependency problems.
68441         (xreadlink): Accept new arg SIZE, for efficiency.
68442         All decls and uses changed.
68443         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68444
68445         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68446         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68447
68448         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68449         sysexits.h.
68450
68451 2004-06-01  Jim Meyering  <jim@meyering.net>
68452
68453         * m4/calloc.m4: New file.
68454
68455 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68458         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68459         Also, fix a typo in a diagnostic.
68460
68461 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68462
68463         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68464         or AC_FUNC_REALLOC.
68465
68466 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68469         macros to be defined.
68470         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68471         the allocator returns NULL because the requested size is zero.
68472
68473 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68476         var.  Add comment explaining why libc still defines it.  This
68477         merges the following patch from glibc:
68478         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68479
68480 2004-05-20  Andreas Schwab  <schwab@suse.de>
68481
68482         * m4/free.m4: Replace free if it not known to work, not the other
68483         way round.
68484
68485 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68488         present in glibc since revision 1.1 of this file.
68489         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68490         obstack_alignment_mask, obstack_alloc, obstack_base,
68491         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68492         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68493         obstack_grow0, obstack_init, obstack_int_grow,
68494         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68495         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68496         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68497         nonexistent functions.
68498
68499 2004-05-18  Karl Berry  <karl@gnu.org>
68500
68501         * config/srclist.txt: break link for vasnprintf.c.
68502
68503 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         Port obstack to the AS/400, where pointers are 16 bytes wide and
68506         you cannot cast an integer to a valid pointer.  This patch is
68507         currently waiting to be integrated into glibc; see
68508         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68509
68510         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68511         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68512         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68513         (struct obstack): temp member is now a union of a pointer and
68514         an integer, instead of an integer.  All integer uses changed.
68515         This does not affect the physical layout of struct obstack,
68516         except on hosts (like the AS/400) where the size or alignment of
68517         void * is greater than that of ptrdiff_t.
68518         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68519         __STDC__)]: Store temporary in pointer member of union, not
68520         integer member.
68521         * lib/obstack.c: Include <stddef.h>, for offsetof.
68522         (struct fooalign): Remove; it doesn't need a name.
68523         (union fooround): Change double to long double, and add void *.
68524         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68525         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68526         not a macro.  Hence the values are always int; so remove all
68527         casts-to-int in uses.
68528
68529 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68532         we can get this patch merged into glibc.
68533
68534 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68535             Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * m4/argp: Depend on alloca.
68538
68539 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68540             Paul Eggert  <eggert@cs.ucla.edu>
68541
68542         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68543         freecoding.
68544
68545 2004-05-17  Bruno Haible  <bruno@clisp.org>
68546
68547         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68548         precision that consists of a '.' followed by an empty digit string.
68549         Patch by Tor Lillqvist <tml@iki.fi>.
68550
68551 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68554         for backward compatibility with older code.  We need our own
68555         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68556         it under some other name, and our alloca.h will define it.
68557
68558 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68559             Derek Price  <derek@ximbiot.com>
68560
68561         * lib/alloca.c: Include <alloca.h>, to get our interface.
68562         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68563         include <alloca.h> first.  Use C89 prototype for alloca; this
68564         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68565         Use #elif for simplicity, since we can assume C89 now.
68566         Don't try to source the system alloca.h since it will not be found
68567         and to prevent recursively including its replacement.
68568         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68569         * lib/regex.c: Likewise.
68570
68571 2004-05-16  Derek Price  <derek@ximbiot.com>
68572             Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         getline cleanup.  This changes the getndelim2 API: both order of
68575         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68576         no delimiter).
68577
68578         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68579         interface does that.
68580         (getline): Always use getdelim, so that we don't have two
68581         copies of this code.
68582         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68583         if available.
68584         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68585         (GETNDELIM2_MAXIMUM): New macro.
68586         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68587         instead of the old practice of delim2==0.  All callers changed.
68588         Return -1 on overflow, instead of returning junk.
68589         Do not set *linesize unless allocation succeeds.
68590         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68591         that we include sys/types.h.
68592         * lib/getnline.h: Likewise.
68593         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68594         (getndelim2): Reorder arguments.
68595         * lib/getnline.c (getnline, getndelim):
68596         Don't discard the NMAX argument.
68597         (getnline): Invoke getndelim, to avoid code duplication.
68598         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68599         of (size_t) -1 by callers of the getnline family.
68600
68601 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68602
68603         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68604         Check for gettimeofday.
68605         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68606         Check for settimeofday, stime.
68607
68608 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         * lib/nanosleep.c (suspended): Change its type from int to
68611         sig_atomic_t volatile.
68612         (first_call): Make it private to rpl_nanosleep, and have it
68613         be zero initially as that's a bit faster.
68614         (my_usleep): Round up fractional times instead of truncating them,
68615         as this is the usual meaning for 'sleep'.
68616
68617         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68618         doesn't work.
68619         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68620         (ENOSYS): Define if not defined.
68621         (settime): Fall back on stime if it exists and settimeofday fails.
68622         But don't bother with fallbacks if a method fails with errno == EPERM.
68623
68624 2004-05-11  Jim Meyering  <jim@meyering.net>
68625
68626         Prior to this change, the save_cwd caller required read access to the
68627         current directory on most systems (ones with the fchdir function).
68628
68629         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68630         fails, try write-only, and finally, resort to using xgetcwd.
68631
68632 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * lib/obstack.c, obstack.h: Import changes from libc.
68635
68636 2004-04-28  Bruno Haible  <bruno@clisp.org>
68637
68638         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68639         also implicitly appends .exe to executables.
68640         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68641         accepts Windows pathnames.
68642         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68643         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68644         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68645         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68646         Reported by Derek Robert Price <derek@ximbiot.com>.
68647
68648 2004-04-21  Karl Berry  <karl@gnu.org>
68649
68650         * config/srclist.txt (localcharset.c): break sync.
68651
68652 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68653
68654         * m4/host-os.m4: Add a copyright notice.
68655
68656 2004-04-20  Jim Meyering  <jim@meyering.net>
68657
68658         Change UTILS_ to gl_ in AC_DEFINE'd names.
68659         Change utils_- and jm_-prefixed variables, too.
68660         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68661         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68663
68664         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68665         Don't emit trailing blanks.
68666         Also rename jm_-prefixed variables to have gl_ prefix.
68667
68668         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68669         Also rename jm_-prefixed variables to have gl_ prefix.
68670
68671         * m4/jm-macros.m4: Reflect the renamings.
68672         * m4/prereq.m4: Likewise.
68673
68674 2004-04-20  Jim Meyering  <jim@meyering.net>
68675
68676         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68677         memory.
68678
68679 2004-04-20  Jim Meyering  <jim@meyering.net>
68680             Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68683         memory when realloc fails.
68684
68685 2004-04-19  Jim Meyering  <jim@meyering.net>
68686
68687         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68688         now that readutmp.c may call `free (0)'.
68689
68690 2004-04-19  Bruno Haible  <bruno@clisp.org>
68691
68692         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68693         * m4/inttypes_h.m4: Likewise.
68694         * m4/stdint_h.m4: Likewise.
68695         * m4/intmax_t.m4: Likewise.
68696         * m4/uintmax_t.m4: Likewise.
68697
68698 2004-04-18  Jim Meyering  <jim@meyering.net>
68699
68700         * m4/prereq.m4: Don't forbid jm_ prefix.
68701
68702         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68703         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68704         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68705         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68706         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68707         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68708         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68709         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68710         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68711         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68712         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68713         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68714         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68715         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68716         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68717         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68718         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68719         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68720         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68721
68722 2004-04-18  Jim Meyering  <jim@meyering.net>
68723
68724         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68725         failure, don't leak memory and do call END_UTMP_ENT.
68726
68727 2004-04-16  Jim Meyering  <jim@meyering.net>
68728
68729         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68730         coreutils' stat program.
68731         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68732
68733 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68734
68735         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68736         C89.
68737         (CHAR_BIT): Remove, since we assume C89.
68738         Include <stdint.h> if available, as per current Autoconf CVS advice.
68739
68740 2004-03-31  Jim Meyering  <jim@meyering.net>
68741
68742         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68743         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68744         * m4/xalloc.m4: Likewise.
68745
68746 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68747
68748         Merge from coreutils.
68749
68750         * m4/inttostr.m4: New file.
68751         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68752         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68753         Require gl_CLOCK_TIME.
68754         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68755
68756 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68757
68758         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68759         not bool, to be more consistent with Unix conventions.
68760         Suggested by Bruno Haible.
68761
68762         Merge from coreutils.
68763
68764         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68765         * lib/umaxtostr.c: New files.
68766
68767         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68768         the usual <time.h> dance.
68769         (get_date): Change signature to support fractional time stamps.
68770         All callers changed.
68771         * lib/getdate.y: Include "getdate.h" first, as we can now
68772         assume C89 and don't need to worry about 'const'.
68773         Similarly, include "unlocked-io.h" near start, not in middle.
68774         Include <limits.h>.
68775         (textint.value): Use long int rather than int.
68776         (textint.digits): Use size_t rather than int.
68777         (BILLION, LOG10_BILLION): New constants.
68778         (parser_control): New member rel_ns.  Members day_ordinal,
68779         time_zone, month, day, hour, minutes, rel_year, rel_month,
68780         rel_day, rel_hour, rel_minutes, rel_seconds
68781         are now long int, not int.  Member seconds is now struct timespec,
68782         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68783         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68784         not int.
68785         (%union.intval): Now long int, not int.
68786         New member timespec.
68787         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68788         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68789         (spec): Now is a timespec or an item list.
68790         (timespec, items): New nonterminals.
68791         (time, rel, relunit, number, get_date):
68792         Add support for fractional seconds.
68793         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68794         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68795         (to_hour): First arg is now long int, not int.
68796         (to_year): Returns long int, not int.
68797         Don't treat year -70 like 70.
68798         (tm_diff): Returns long int, not int.
68799         (lookup_word): Use bool instead of int when appropriate.
68800         (yylex): Use size_t for count, not int.
68801         Detect overflow when parsing large integer constants.
68802         Add support for fractions.
68803         (get_date): Make pointers 'const' if possible.
68804         Use more-portable code to detect integer overflow.
68805         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68806         Don't use ctime; it's not reliable if the year has >4 digits.
68807
68808         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68809         This is for compatibility with BSD.
68810
68811         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68812         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68813         From coreutils' system.h.
68814
68815         * lib/userspec.c: Don't include "posixver.h".
68816         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68817         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68818         compatible extension.  Simplify code by removing a boolean int
68819         that was always nonzero if a string was nonnull.
68820
68821 2004-03-30  Jim Meyering  <jim@meyering.net>
68822
68823         Merge from coreutils.
68824
68825         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68826         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68827         on some systems one must include <grp.h> before it.
68828         Reported by Christian Krackowizer.
68829
68830 2004-03-30  Jim Meyering  <jim@meyering.net>
68831
68832         Merge from coreutils.
68833
68834         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68835
68836         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68837         an empty input stream.
68838
68839         * lib/readtokens.c: Include <stdbool.h>.
68840         (readtoken): Use `size_t' rather than int/long.
68841         All callers adjusted.
68842         Use `bool' rather than `int' where appropriate.
68843         Use memset rather than an explicit loop.
68844         Use x2nrealloc rather than xrealloc.
68845         Allow the use of `\0' as a delimiter.
68846         (readtokens): Likewise.
68847         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68848
68849 2004-03-30  Jim Meyering  <jim@meyering.net>
68850
68851         * m4/realloc.m4: Remove file, since now it does no more than
68852         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68853         the `configure.ac' section of module/realloc.
68854         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68855
68856 2004-03-30  Bruno Haible  <bruno@clisp.org>
68857
68858         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68859         nonnull.
68860
68861 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68862
68863         Merge changes to getloadavg.c from coreutils and Emacs.
68864
68865         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68866         Define to an expression, not to the empty string.
68867         Include cloexec.h and xalloc.h.
68868         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68869         Use set_cloexec_flag rather than rolling our own.
68870         * lib/cloexec.c, lib/cloexec.h: New files.
68871
68872 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68873
68874         * m4/cloexec.m4: New file.
68875
68876 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68877
68878         * lib/getopt.h: Sync with libc CVS.
68879
68880 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68881             Bruno Haible  <bruno@clisp.org>
68882
68883         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68884         mbswidth.
68885
68886 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68887             Bruno Haible  <bruno@clisp.org>
68888
68889         * lib/mbswidth.h: Include <wchar.h> only if
68890         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68891         <wchar.h>.
68892         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68893
68894 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68895
68896         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68897         Sync with libc CVS.
68898         * lib/getopt_int.h: New file, also synced from libc.
68899
68900 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68901
68902         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68903         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68904         Bring back getopt.c, getopt.h, getopt1.c.
68905
68906 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68907
68908         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68909         All uses changed.  Check for sa_sigaction member; this fixes
68910         a bug first reported by Jason Andrade in
68911         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68912
68913 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68914
68915         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68916         '#if' expressions.  Unlike the code it replaces, it does not
68917         depend on (defined _SC_PAGESIZE).  However, it does depend on
68918         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68919         first reported by Jason Andrade in
68920         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68921
68922 2004-02-25  Simon Josefsson  <jas@extundo.com>
68923
68924         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68925
68926 2004-02-25  Simon Josefsson  <jas@extundo.com>
68927
68928         * lib/strdup.h: New file.
68929         * lib/strdup.c: Include it.
68930         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68931         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68932
68933 2004-02-23  Karl Berry  <karl@gnu.org>
68934
68935         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68936         (from fencepost.gnu.org:/gd/gnuorg).
68937
68938 2004-02-23  Karl Berry  <karl@gnu.org>
68939
68940         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68941         * config/srclist.txt: add maintain/standards documents.
68942
68943 2004-02-18  Bruno Haible  <bruno@clisp.org>
68944
68945         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68946         Reported by Derek Robert Price <derek@ximbiot.com>.
68947
68948 2004-02-16  Karl Berry  <karl@gnu.org>
68949
68950         * config/mkinstalldirs, install-sh: update from automake.
68951
68952 2004-02-06  Karl Berry  <karl@gnu.org>
68953
68954         * m4/po.m4: update from gettext 0.14.1.
68955
68956 2004-02-06  Karl Berry  <karl@gnu.org>
68957
68958         * lib/config.charset: update from gettext 0.14.1.
68959
68960 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68961
68962         Add comments and code, prompted by suggestions from Bruno Haible
68963         for sh-quote.
68964         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68965         describing the enum quoting_style values.
68966         * lib/quotearg.c (quotearg_alloc): New function.
68967         (quotearg_buffer_restyled): Treat lone { and } as special.
68968         Treat = as special.  Work around bug with older shells
68969         that "see" a '\' that is really the 2nd byte of a multibyte char.
68970         Quote empty string with shell_quoting_style.
68971
68972 2004-02-03  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/pipe.m4: New file, from GNU gettext.
68975
68976 2004-02-03  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/pipe.h: New file, from GNU gettext.
68979         * lib/pipe.c: New file, from GNU gettext.
68980
68981 2004-01-27  Bruno Haible  <bruno@clisp.org>
68982
68983         * m4/execute.m4: New file, from GNU gettext.
68984
68985 2004-01-27  Bruno Haible  <bruno@clisp.org>
68986
68987         * lib/execute.h: New file, from GNU gettext.
68988         * lib/execute.c: New file, from GNU gettext.
68989         * lib/w32spawn.h: New file, from GNU gettext.
68990
68991 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68992
68993         Merge from diffutils.
68994
68995         * lib/file-type.c (file_type): Add typed memory objects.
68996         * lib/file-type.h (S_TYPEISTMO): New macro.
68997
68998         * lib/c-stack.h (c_stack_action): Remove argv argument.
68999         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69000         (die): Don't calculate message unless segv_action returns.
69001         (get_stack_location, min_address_from_argv, max_address_from_argv,
69002         volatile stack_base, volatile_stack_size): Remove.
69003         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69004         that every segmentation violation is a stack overflow.  (Ouch!)
69005         See Debian bug 136249 (still outstanding) for more info about why
69006         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69007
69008 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69009
69010         Exit-status fix from coreutils.
69011
69012         Use exit_failure consistently in place of EXIT_FAILURE,
69013         so that program exit statuses are consistent on failure.
69014
69015         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69016         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69017         * lib/argmatch.h: Comment fix to match the above.
69018         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69019         Now a macro referring to exit_failure, instead of a separate
69020         variable.  Include "exitfail.h" to get it.
69021         * lib/xstrtol.h: Include "exitfail.h".
69022         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69023
69024         * lib/long-options.c (parse_long_options): Use prototype
69025         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69026         for clarity.
69027
69028 2004-01-21  Jim Meyering  <jim@meyering.net>
69029
69030         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69031         so as not to conflict with a different-sized __mktime_internal
69032         function in GNU libc.
69033         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69034         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69035
69036 2004-01-20  Karl Berry  <karl@gnu.org>
69037
69038         * config/config.guess: update from config.
69039
69040         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69041
69042 2004-01-20  Bruno Haible  <bruno@clisp.org>
69043
69044         Safer stack allocation.
69045         * lib/setenv.c: Include allocsa.h.
69046         (alloca): Remove fallback definition.
69047         (freea): Remove macro.
69048         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69049         instead of freea.
69050
69051 2004-01-20  Bruno Haible  <bruno@clisp.org>
69052
69053         * m4/eealloc.m4: New file, from GNU gettext.
69054
69055 2004-01-20  Bruno Haible  <bruno@clisp.org>
69056
69057         * m4/allocsa.m4: New file, from GNU gettext.
69058
69059 2004-01-20  Bruno Haible  <bruno@clisp.org>
69060
69061         * lib/xallocsa.h: New file, from GNU gettext.
69062         * lib/xallocsa.c: New file, from GNU gettext.
69063
69064 2004-01-20  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69067
69068 2004-01-20  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69071         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69072         specially.
69073
69074 2004-01-20  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69077         patch.
69078
69079 2004-01-20  Bruno Haible  <bruno@clisp.org>
69080
69081         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69082
69083 2004-01-20  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/eealloc.h: New file.
69086
69087 2004-01-20  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/binary-io.h: Avoid warnings on Cygwin.
69090
69091 2004-01-20  Bruno Haible  <bruno@clisp.org>
69092
69093         * lib/allocsa.h: New file, from GNU gettext.
69094         * lib/allocsa.c: New file, from GNU gettext.
69095
69096 2004-01-18  Karl Berry  <karl@gnu.org>
69097
69098         * doc/gpl.texi, doc/lgpl.texi: new files.
69099
69100 2004-01-18  Karl Berry  <karl@gnu.org>
69101
69102         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69103         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69104
69105 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69106
69107         Merge from coreutils.
69108
69109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69110         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69111         (gl_DEFAULT_POSIX2_VERSION): Move
69112         the documentation from 'configure' into 'config.hin',
69113         so that 'configure --help' isn't burdened by it and
69114         we don't have to worry about its formatting there.
69115         Reword the documentation so that it's more succinct
69116         and can be run together into a single paragraph.
69117         * m4/same.m4 (gl_SAME): Check for pathconf.
69118
69119 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69120
69121         Merge from coreutils.
69122
69123         * lib/posixver.c: Include posixver.h.
69124
69125         * lib/same.c: Include <stdbool.h>, <limits.h>.
69126         (_POSIX_NAME_MAX): Define if not defined.
69127         (MIN): New macro.
69128         (same_name): If file names are silently truncated, report
69129         that the file names are the same if they are the same after
69130         the silent truncation.
69131
69132         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69133         conversion function.
69134         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69135         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69136         longer needed.
69137
69138 2004-01-15  Jim Meyering  <jim@meyering.net>
69139
69140         Merge from coreutils.
69141
69142         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69143         if no library is required.
69144         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69145         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69146         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69147         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69148         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69149         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69150         value, $ac_cv_search_crypt, if it's "none required".
69151         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69152         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69153         not gl_FUNC_GETLOADAVG.
69154         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69155         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69156
69157 2004-01-15  Jim Meyering  <jim@meyering.net>
69158
69159         Merge from coreutils.
69160
69161         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69162         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69163         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69164
69165         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69166         optional configure-time default.
69167
69168         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69169
69170         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69171
69172 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69173
69174         Merge from coreutils.
69175
69176         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69177         value, $ac_cv_search_nanosleep, if it's "none required".
69178
69179 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69180
69181         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69182         with like-named macro in fnmatch.c.
69183         (EXT): Use an internal constant instead.
69184
69185         Merge fnmatch patches from glibc.
69186         * lib/fnmatch.c (mbsinit): Remove define.
69187         Add libc_hidden_ver (__fnmatch, fnmatch).
69188         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69189         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69190
69191 2004-01-14  Karl Berry  <karl@gnu.org>
69192
69193         * config/install-sh: update from automake.
69194
69195 2004-01-13  Karl Berry  <karl@gnu.org>
69196
69197         * config/install-sh: update from automake.
69198
69199 2004-01-09  Karl Berry  <karl@gnu.org>
69200
69201         * config/install-sh: update from automake.
69202
69203 2004-01-05  Karl Berry  <karl@gnu.org>
69204
69205         * config/config.{sub,guess}: update from config.
69206
69207 2003-12-31  Karl Berry  <karl@gnu.org>
69208
69209         * config/depcomp: update from automake.
69210
69211 2003-12-14  Karl Berry  <karl@gnu.org>
69212
69213         * lib/config.charset: update from gettext-runtime.
69214
69215 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69216
69217         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69218         Bug reported by Alfred M. Szmidt.
69219
69220 2003-12-03  Bruno Haible  <bruno@clisp.org>
69221
69222         * m4/gettext.m4: Upgrade from gettext-0.13.
69223         * m4/po.m4: Upgrade from gettext-0.13.
69224         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69225         * m4/intmax.m4: New file, from gettext-0.13.
69226         * m4/printf-posix.m4: New file, from gettext-0.13.
69227
69228 2003-11-29  Karl Berry  <karl@gnu.org>
69229
69230         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69231
69232 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69233             Bruno Haible  <bruno@clisp.org>
69234
69235         * lib/printf-parse.h: Don't include sys/types.h.
69236         (ARG_NONE): New macro.
69237         (char_directive): Change type of *arg_index fields to size_t.
69238         * lib/printf-parse.c: Don't include sys/types.h.
69239         (SSIZE_MAX): Remove macro.
69240         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69241         Remove unnecessary overflow check.
69242         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69243         fields.
69244
69245 2003-11-25  Bruno Haible  <bruno@clisp.org>
69246
69247         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69248
69249 2003-11-25  Bruno Haible  <bruno@clisp.org>
69250
69251         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69252         gt_TYPE_SSIZE_T.
69253
69254 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69255
69256         * modules/alloca: Remove dependency on xalloc.
69257
69258 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69259
69260         * lib/alloca.c: Remove dependency on xalloc module.
69261         (xalloc_die): Remove.
69262         (memory_full) [!defined emacs]: New macro.
69263         [!defined emacs]: Don't include xalloc.h.
69264         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69265         address arithmetic overflows.  Change datatypes a bit to avoid
69266         unnecessary casts.
69267
69268 2003-11-22  Jim Meyering  <jim@meyering.net>
69269
69270         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69271         s/size/size_t/.
69272
69273 2003-11-21  Karl Berry  <karl@gnu.org>
69274
69275         * config/config.{sub,guess}: update from config.
69276
69277 2003-11-18  Karl Berry  <karl@gnu.org>
69278
69279         * config/config.{sub,guess}: update from config.
69280
69281         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69282
69283 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69284
69285         * README: Mention that S+T cannot overflow if S is the size of
69286         an existing object and T is sufficiently small.
69287
69288 2003-11-17  Jim Meyering  <jim@meyering.net>
69289
69290         On systems without utime and without a utimes function capable of
69291         dealing with a NULL struct utimbuf* argument, this utime replacement
69292         could -- in unusual circumstances -- leak a file descriptor.
69293         * lib/utime.c: Include <unistd.h> and <errno.h>.
69294         (utime_null): Be sure to close `fd' and to preserve errno.
69295         Reported by Geoff Collyer via Arnold Robbins.
69296
69297 2003-11-17  Bruno Haible  <bruno@clisp.org>
69298
69299         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69300         (Depends-on): Add xsize.
69301
69302 2003-11-17  Bruno Haible  <bruno@clisp.org>
69303
69304         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69305
69306 2003-11-17  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/vasnprintf.c (alloca): Remove fallback definition.
69309         (freea): Remove definition.
69310         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69311         Reported by Paul Eggert.
69312
69313 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69314             Bruno Haible  <bruno@clisp.org>
69315
69316         Protect against address arithmetic overflow.
69317         * lib/printf-args.h: Include stddef.h.
69318         (arguments): Change type of field 'count' to size_t.
69319         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69320         'unsigned int' where appropriate.
69321         * lib/printf-parse.h: Include sys/types.h.
69322         (char_directive): Change type of *arg_index fields to ssize_t.
69323         (char_directives): Change type of fields 'count', max_*_length to
69324         size_t.
69325         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69326         (SSIZE_MAX): Define fallback value.
69327         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69328         instead of 'int' where appropriate. Check a_allocated, d_allocated
69329         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69330         * lib/vasnprintf.c: Include xsize.h.
69331         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69332         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69333         overflow. Avoid wraparound when converting a width or precision from
69334         decimal to binary.
69335
69336 2003-11-16  Bruno Haible  <bruno@clisp.org>
69337
69338         Update from GNU gettext.
69339         * lib/printf-parse.c: Generalize to it can be compiled for wide
69340         strings.
69341         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69342         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69343         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69344         SNPRINTF): New macros.
69345         Don't include <alloca.h> if the file is used inside libintl.
69346         (local_wcslen): New function, for Solaris 2.5.1.
69347         (VASNPRINTF): Use it instead of wcslen.
69348
69349 2003-11-16  Bruno Haible  <bruno@clisp.org>
69350
69351         * lib/xsize.h (xmax): New function.
69352         (xsum, xsum3, xsum4): Declare as "pure" functions.
69353
69354 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69355
69356         * modules/xalloc (Files): Undo latest change, since xalloc.h
69357         no longer needs SIZE_MAX or PTRDIFF_MAX.
69358
69359 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69360
69361         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69362         gl_PTRDIFF_MAX.
69363
69364 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69365
69366         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69367         "return", to pacify some unknown compiler.  Problem reported
69368         by Joerg Schilling.
69369
69370 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69371
69372         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69373         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69374         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69375         heuristic is just as accurate as far as we know, and it removes a
69376         dependency on size_max.m4 and ptrdiff_max.m4.
69377
69378 2003-11-11  Bruno Haible  <bruno@clisp.org>
69379
69380         * modules/xsize (Files): Add m4/size_max.m4.
69381         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69382
69383 2003-11-11  Bruno Haible  <bruno@clisp.org>
69384
69385         * m4/size_max.m4: New file.
69386         * m4/ptrdiff_max.m4: New file.
69387         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69388         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69389         (gl_XALLOC): Invoke it.
69390
69391 2003-11-11  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69394         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69395         defined.
69396
69397 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69398
69399         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69400         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69401         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69402         From Bruno Haible.
69403         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69404         not (size_t) -1, since it's defined here.
69405
69406 2003-11-09  Karl Berry  <karl@gnu.org>
69407
69408         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69409
69410 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69411
69412         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69413         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69414         Reject sizes of exactly SIZE_MAX bytes.
69415         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69416         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69417
69418 2003-11-05  Bruno Haible  <bruno@clisp.org>
69419
69420         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69421         SIZE_MAX defined in <limits.h> on Solaris.
69422
69423 2003-11-04  Jim Meyering  <jim@meyering.net>
69424
69425         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69426         variable names, rather than @VAR@.
69427         * modules/poll: Likewise.
69428
69429 2003-11-04  Bruno Haible  <bruno@clisp.org>
69430
69431         * modules/xsize: New file.
69432         * modules/linebreak: Depend on xsize.
69433         * MODULES.html.sh (func_all_modules): Add xsize.
69434
69435 2003-11-04  Bruno Haible  <bruno@clisp.org>
69436
69437         * m4/xsize.m4: New file.
69438
69439 2003-11-04  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/xsize.h: New file.
69442         * lib/linebreak.c: Include xsize.h.
69443         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69444         argument for overflow.
69445         Suggested by Paul Eggert.
69446
69447 2003-11-03  Karl Berry  <karl@gnu.org>
69448
69449         * config/config.{guess,sub}: update from config.
69450
69451 2003-11-03  Jim Meyering  <jim@meyering.net>
69452
69453         * modules/userspec (lib_SOURCES): Add userspec.h.
69454         (Include): Add "userspec.h".
69455         Improve description.
69456
69457 2003-11-03  Jim Meyering  <jim@meyering.net>
69458
69459         * lib/userspec.c: Include "userspec.h".
69460         * lib/userspec.h: New file.
69461
69462 2003-11-03  Bruno Haible  <bruno@clisp.org>
69463
69464         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69465
69466 2003-11-03  Bruno Haible  <bruno@clisp.org>
69467
69468         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69469         available, to avoid (extremely rare) race condition.
69470         Suggested by Paul Eggert.
69471
69472 2003-11-02  Karl Berry  <karl@gnu.org>
69473
69474         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69475
69476 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69477
69478         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69479         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69480         (read_filesystem_list): Set and use me_type_malloced.
69481         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69482         whatever the type happens to be), for brevity and consistency.
69483         Check for size calculation overflow on Alphas running OSF/1.
69484
69485 2003-10-31  Jim Meyering  <jim@meyering.net>
69486
69487         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69488
69489         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69490
69491 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69492             Bruno Haible  <bruno@clisp.org>
69493
69494         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69495         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69496
69497 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69500         netbsd*-gnu*.  Suggested by Robert Millan.
69501
69502 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69503
69504         * modules/group-member: Depend on stdbool.
69505
69506 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69507
69508         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69509
69510 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69511
69512         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69513         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69514         after the 'gnu' in these cases.  This fixes some bugs in the
69515         previous change, and is based on suggestions by Robert Millan.
69516
69517 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69518
69519         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69520         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69521         no longer needed.
69522         * lib/quotearg.c (quotearg_n_options): Use it.
69523         * lib/group-member.c: Include <stdbool.h>.
69524         (free_group_info): Arg is now const *; don't free arg.
69525         (get_group_info): Now returns bool and accepts struct group_info *,
69526         rather than returning a malloc'ed struct group_info *.
69527         All uses changed.  Check for overflow in internal size calculation.
69528
69529         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69530         rather than xmalloc/xrealloc.
69531         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69532         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69533         conformance bug: the old code used a pointer after freeing the
69534         storage that it addressed.
69535         * lib/hash.c (hash_initialize): Simplify the code by using
69536         xalloc_oversized rather than doing it by hand.
69537         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69538         the buffer preserved.  Use free and xmalloc instead.
69539         * lib/quotearg.c (quotearg_n_options): Likewise.
69540         Use a simpler test for size overflow.  Don't use xalloc_oversized
69541         because unsigned int might be wider than size_t (!); this suggests
69542         that we should switch from unsigned int to size_t for slot numbers.
69543
69544 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69545
69546         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69547         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69548         NetBSD kernels.  Requested by Richard Stallman.
69549
69550 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69551
69552         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69553         to allocate the returned structure.  Do not allocate a subarray,
69554         as x2nrealloc will do that.
69555         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69556         instead of xnrealloc.
69557         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69558
69559 2003-10-27  Bruno Haible  <bruno@clisp.org>
69560
69561         * lib/stdbool_.h: Better support for BeOS.
69562
69563 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69564
69565         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69566         now uses inline.
69567
69568 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69569
69570         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69571         callers that want to do their own size-overflow checking.  Include
69572         <stdbool.h>, since xalloc_oversized returns bool.
69573         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69574         to use xalloc_oversized.
69575
69576         Add two functions x2realloc, x2nrealloc, for programs that grow
69577         arrays dynamically by doubling their sizes.
69578         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69579         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69580         New functions.
69581
69582         Port to C99 semantics for 'inline' of external functions.
69583         Bug reported by Bruno Haible.
69584         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69585         with the old contents of xnmalloc.
69586         (xnmalloc, xmalloc): Use it.
69587         (xnrealloc_inline): New static inline function,
69588         with the old contents of xnrealloc.
69589         (xnrealloc, xrealloc): Use it.
69590
69591         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69592         that.
69593
69594 2003-10-26  Karl Berry  <karl@gnu.org>
69595
69596         * config/srclist.txt (COPYING.DOC): no longer available from
69597         /gd/gnuorg; don't know where the ultimate source is.
69598
69599 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69600
69601         Fix several address-calculation bugs in the hash modules,
69602         plus some minor code cleanup.
69603
69604         * lib/hash.h: Include <stdbool.h>, for bool.
69605         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69606         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69607         hash_get_n_entries, hash_get_max_bucket_length,
69608         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69609         hash_rehash): Use size_t rather than unsigned.
69610         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69611         hash_get_n_buckets_used, hash_get_n_entries,
69612         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69613         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69614         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69615         Likewise.
69616         (SIZE_MAX): Define if not defined.
69617         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69618         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69619         hash_print):
69620         Use const * when possible.
69621         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69622         (check_tuning): Fix bug: if tuning parameters were very close to
69623         0 or 1, rounding errors could have caused subscript violations.
69624         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69625         (hash_initialize): Add 'fail:' label
69626         to free table and return NULL, and use it to simplify code.
69627         Use calloc rather than clearing the storage ourself.
69628         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69629         buffer size calculations.
69630         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69631         Include <stddef.h>, for size_t.
69632         * lib/hash-pjw.c (hash_pjw): Likewise.
69633         Switch to method described by Bruno Haible.
69634         Include <limits.h>, for CHAR_BIT.
69635         (SIZE_BITS): New macro.
69636
69637 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69638
69639         * m4/getline.m4 (AM_FUNC_GETLINE):
69640         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69641         hosts.  Problem reported by Derek Robert Price in
69642         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69643         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69644         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69645
69646 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69647
69648         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69649         ceiling the allocation at NMAX bytes rather than silently
69650         discarding input bytes before NMAX is reached.  This makes
69651         a difference only if NMAX exceeds SIZE_MAX / 2.
69652
69653         * lib/obstack.c: Merge from glibc.
69654         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69655         Add libc_hidden_def (_obstack_newchunk).
69656         (_obstack_free) [! defined _LIBC]: Remove.
69657         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69658         a clone of the function body.
69659         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69660         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69661
69662         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69663         glibc.
69664         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69665         arg to memcpy.
69666
69667         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69668         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69669         Don't use lvalue casts, as GCC plans to remove support for them
69670         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69671         was also present in the non-GCC version, indicating that this
69672         code had always been buggy and had never been widely used.
69673         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69674         Use the fast variant of each macro, rather than copying the
69675         definiens of the fast variant; that way, we'll be more likely to
69676         catch future bugs in the fast variants.
69677
69678 2003-10-20  Bruno Haible  <bruno@clisp.org>
69679
69680         * modules/wait-process: New file.
69681         * MODULES.html.sh (func_all_modules): Add wait-process.
69682
69683 2003-10-20  Bruno Haible  <bruno@clisp.org>
69684
69685         * m4/wait-process.m4: New file.
69686
69687 2003-10-20  Bruno Haible  <bruno@clisp.org>
69688
69689         * lib/wait-process.h: New file, from GNU gettext.
69690         * lib/wait-process.c: New file, from GNU gettext.
69691
69692 2003-10-19  Jim Meyering  <jim@meyering.net>
69693
69694         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69695         HPUX 10.20.
69696
69697 2003-10-18  Karl Berry  <karl@gnu.org>
69698
69699         * config/config.guess: update from config.
69700
69701 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69702
69703         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69704         (getgroups): First arg is int, not size_t.
69705         Don't let 'free' mangle errno.
69706
69707 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69708
69709         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69710
69711 2003-10-16  Karl Berry  <karl@gnu.org>
69712
69713         * config/config.{guess,sub}: update from config.
69714
69715 2003-10-16  Jim Meyering  <jim@meyering.net>
69716
69717         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69718         memcpy.
69719
69720 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69721
69722         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69723         (SIZE_MAX): Remove.
69724         (new_exclude, add_exclude_file): Initial size no longer needs to
69725         be a power of 2.
69726         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69727         our own address arithmetic overflow checking.
69728
69729         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69730         (fnmatch): Do not alloca more than 2000 wide characters;
69731         instead, use malloc for large buffers.
69732         Check for address arithmetic overflow, and return -1
69733         with errno set to ENOMEM in that case.
69734         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69735         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69736         instead, return -1.  Check for address arithmetic overflow.
69737
69738 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69739
69740         Handle invalid suffixes and overflow independently, so that
69741         callers can treat them independently as needed.  Fix some bugs in
69742         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69743         suffix for a human-readable blocksize.  The major caller-visible
69744         change is the addition of a new
69745         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69746         that both overflow and suffix chars were found.
69747
69748         * lib/human.c (humblock): Don't check separately for invalid suffix
69749         char; that is xstrtoumax's job (now that its bug is fixed).
69750         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69751         INTMAX_MAX]: New macros.
69752         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69753         TYPE_MAXIMUM): New macros.
69754         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69755         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69756         if overflow occurs, as it's what __strtol does and it's more useful
69757         in practice.
69758         (__xstrtol): If __strtol reports some error other than ERANGE,
69759         reflect it to the caller as LONGINT_INVALID.  If it reports
69760         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69761         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69762         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69763         value.
69764         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69765         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69766         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69767         [defined UINTMAX_MAX]: New macros.
69768
69769 2003-10-14  Bruno Haible  <bruno@clisp.org>
69770
69771         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69772
69773 2003-10-14  Bruno Haible  <bruno@clisp.org>
69774
69775         * m4/sig_atomic_t: New file, from GNU gettext.
69776         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69777
69778 2003-10-14  Bruno Haible  <bruno@clisp.org>
69779
69780         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69781         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69782         Also use volatile where needed.
69783
69784 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69785
69786         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69787         Change maintainer from Bruno Haible to 'all'.
69788
69789 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69790
69791         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69792
69793 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69794
69795         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69796         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69797         and define in terms of the other primitives.
69798         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69799         (SIZE_MAX): Define if not already defined.
69800         (array_size_overflow): New function.
69801         (xalloc_die): Abort instead of exiting if 'error' returns.
69802         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69803         (xmalloc, xrealloc): Use them.
69804         (xcalloc): Check for address arithmetic overflow.
69805         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69806         a bit faster than strcpy.
69807
69808 2003-10-10  Simon Josefsson  <jas@extundo.com>
69809
69810         * modules/argp (Depends-on): Add restrict and strcase.
69811
69812 2003-10-10  Simon Josefsson  <jas@extundo.com>
69813
69814         * m4/argp.m4: Add AC_C_INLINE.
69815
69816 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69817
69818         Merge getpass from libc, plus a few fixes.
69819
69820         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69821         Include <stdbool.h>.
69822         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69823         __fsetlocking to empty.
69824         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69825         do include <bits/libc-lock.h>.
69826         Do not include <fcntl.h>; not needed.
69827         [_LIBC]: Include <wchar.h>.
69828         (NOTCANCEL_MODE): New macro.
69829         (flockfile, funlockfile) [_LIBC]: New macros.
69830         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69831         [!_LIBC]: New macros.
69832         (call_fclose): New function.
69833         (getpass): Use it.  Save tty stream separately; this simplifies the
69834         code and makes it more reliable if stdin happens to equal stdout.
69835         Invoke __fsetlocking on tty.
69836         Handle thread cancellation if needed.
69837         Namespace cleanup (use __tcgetattr, __getline).
69838         Use bool for Booleans.
69839         [USE_IN_LIBIO]: Handle wide streams.
69840         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69841         stream might go where.
69842
69843         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69844         doesn't have to include <stdio.h> before us.
69845         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69846         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69847         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69848         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69849         if not declared, so that we can use getpass.c code from libc without
69850         rewriting it.
69851         (flockfile, ftrylockfile, funlockfile): New macros.
69852
69853 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69854
69855         * modules/getpass: Depend on stdbool.
69856
69857 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69858
69859         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69860
69861 2003-10-07  Karl Berry  <karl@gnu.org>
69862
69863         * config/config.{guess,sub}: update from config.
69864
69865 2003-10-06  Jim Meyering  <jim@meyering.net>
69866             Bruno Haible  <bruno@clisp.org>
69867
69868         This lets translators provide better translations for the
69869         "Written by ..." part of --version output.
69870         * lib/version-etc.h: Include stdarg.h.
69871         (version_etc_copyright): Declare as readonly.
69872         (version_etc): Make this function variadic with a NULL-terminated list
69873         of author name strings.
69874         (version_etc_va): New declaration.
69875         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69876         (version_etc_copyright): Declare as readonly.
69877         (version_etc_va): New function. Provide a different translatable string
69878         for each possible number of authors < 10. Abbreviate when there are 10
69879         authors or more.
69880         (version_etc): Make this function variadic. Call version_etc_va.
69881         Suggestion from Gary V. Vaughan.
69882
69883         * lib/long-options.h (parse_long_options): Change prototype: the
69884         authors string is moved to the end and becomes variadic.
69885         * lib/long-options.c: Include stdarg.h.
69886         (parse_long_options): Make this function variadic, too.
69887         Call version_etc_va, not version_etc.
69888
69889 2003-10-06  Bruno Haible  <bruno@clisp.org>
69890
69891         * modules/version-etc-2: Remove file.
69892         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69893
69894 2003-10-06  Bruno Haible  <bruno@clisp.org>
69895
69896         * modules/fatal-signal: New file.
69897         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69898
69899 2003-10-06  Bruno Haible  <bruno@clisp.org>
69900
69901         * m4/fatal-signal.m4: New file.
69902         * m4/signalblocking.m4: New file, from GNU gettext.
69903
69904 2003-10-06  Bruno Haible  <bruno@clisp.org>
69905
69906         * lib/version-etc-2.h: Remove file.
69907         * lib/version-etc-2.c: Remove file.
69908
69909 2003-10-06  Bruno Haible  <bruno@clisp.org>
69910
69911         * lib/fatal-signal.h: New file, from GNU gettext.
69912         * lib/fatal-signal.c: New file, from GNU gettext.
69913
69914 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69915
69916         * README: Rework advice for preventing empty .o files.
69917         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69918         not <sys/types.h>.
69919
69920 2003-10-04  Karl Berry  <karl@gnu.org>
69921
69922         * lib/argp*: update from libc.
69923
69924 2003-10-04  Karl Berry  <karl@gnu.org>
69925
69926         * config/config.{guess,sub}: update from config.
69927
69928 2003-10-02  Bruno Haible  <bruno@clisp.org>
69929
69930         * modules/lchown (Include): Add lchown.h.
69931         * modules/time_r (Include): Use "..." syntax.
69932         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69933
69934 2003-10-01  Simon Josefsson  <jas@extundo.com>
69935
69936         * MODULES.html.sh (func_all_modules): Move gethostname from section
69937         'based on' to section 'lacking' POSIX:2001.
69938
69939 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69940
69941         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69942         to output mode on the same stream.
69943
69944 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69945
69946         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69947         Fix arg typo in previous patch.
69948
69949 2003-09-28  Jim Meyering  <jim@meyering.net>
69950
69951         * lib/error.c: Correct cpp indentation.
69952
69953 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69954
69955         * modules/free: New file.
69956
69957 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69958
69959         * m4/free.m4: New file.
69960
69961 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69962
69963         * lib/minmax.h (MIN, MAX)
69964         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69965         Omit the special code that used __typeof__, since we worry that
69966         it could be more trouble than it's worth.  See:
69967         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69968         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69969
69970         * lib/free.c: New file.
69971
69972 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69973
69974         Trivial fixes to Makefile.am parts of module listings.
69975         * modules/strstr: Append strstr.h to lib_SOURCES.
69976         * modules/strcase: Likewise, for strcase.h.
69977
69978 2003-09-27  Karl Berry  <karl@gnu.org>
69979
69980         * config/mkinstalldirs: update from automake.
69981
69982 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69983
69984         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69985         (error_tail): Do not loop, reallocating temporary buffer, since
69986         the output cannot contain more wide characters than the input
69987         contains bytes, the size must be big enough already.  This avoids
69988         one potential size overflow calculation.  Check for size overflow
69989         when calculating temporary buffer size.  Free temporary buffer
69990         when done, if it was allocated with malloc; this plugs a memory
69991         leak.  Remove casts from void * to pointers, that are no longer
69992         needed now that we're assuming C89 or better.
69993
69994         Merge error changes from glibc.
69995
69996         * lib/error.c, error.h: Update copyright notice header to match glibc.
69997         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69998         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69999         Disable cancellation while printing error.
70000         * lib/error.h: Prepend __ to parameter names.
70001
70002 2003-09-26  Jim Meyering  <jim@meyering.net>
70003
70004         * lib/error.c (error_tail): Move some declarations
70005         into inner scope where the local variables are used.
70006
70007 2003-09-26  Bruno Haible  <bruno@clisp.org>
70008
70009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70010         stpncpy().
70011         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70012
70013 2003-09-26  Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70016         (stpncpy): Define as alias for gnu_stpncpy.
70017         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70018
70019 2003-09-25  Simon Josefsson  <jas@extundo.com>
70020
70021         * lib/xgetdomainname.h: New file.
70022         * lib/xgetdomainname.c: New file.
70023
70024 2003-09-25  Simon Josefsson  <jas@extundo.com>
70025             Bruno Haible  <bruno@clisp.org>
70026
70027         * modules/getdomainname: New file.
70028         * modules/xgetdomainname: New file.
70029         * MODULES.html.sh (func_all_modules): Add getdomainname,
70030         xgetdomainname.
70031
70032 2003-09-25  Simon Josefsson  <jas@extundo.com>
70033             Bruno Haible  <bruno@clisp.org>
70034
70035         * m4/getdomainname.m4: New file.
70036
70037 2003-09-25  Simon Josefsson  <jas@extundo.com>
70038             Bruno Haible  <bruno@clisp.org>
70039
70040         * lib/getdomainname.h: New file.
70041         * lib/getdomainname.c: New file.
70042
70043 2003-09-25  Karl Berry  <karl@gnu.org>
70044
70045         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70046
70047 2003-09-25  Karl Berry  <karl@gnu.org>
70048
70049         * config/install-sh: update from automake.
70050
70051 2003-09-25  Bruno Haible  <bruno@clisp.org>
70052
70053         * modules/version-etc-2: New file, from modules/version-etc with
70054         modifications.
70055         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70056
70057 2003-09-25  Bruno Haible  <bruno@clisp.org>
70058
70059         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70060         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70061
70062 2003-09-24  Simon Josefsson  <jas@extundo.com>
70063
70064         * modules/xgethostname: Add xgethostname.h.
70065
70066 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70067
70068         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70069         the buffer associated with the argument.  Bug reported by
70070         Simon Josefsson.
70071
70072 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70073
70074         * README: Document assumptions that 'int' is at least 32 bits
70075         wide, that integer arithmetic is 2's complement without overflow,
70076         that there are no holes in integer values, that adding sizes of
70077         two nonoverlapping objects can't overflow, and that all-bits-zero
70078         yields scalar zero.  Fix spelling and capitalization typos.
70079
70080 2003-09-19  Karl Berry  <karl@gnu.org>
70081
70082         * lib/argp.h: update from libc.
70083
70084 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70085
70086         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70087         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70088         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70089
70090 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70091
70092         * gnulib-tool: Use "test -h", not "test -L", for portability
70093         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70094         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70095         (sed_extract_prog): Issue s commands one-by-one, rather than
70096         using \| in one s command.
70097
70098 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70099
70100         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70101         input error, instead of returning NULL the next time we are called
70102         (and therefore losing track of errno).
70103
70104 2003-09-16  Bruno Haible  <bruno@clisp.org>
70105
70106         * gnulib-tool (func_create_testdir): Warn about duplicated
70107         dependencies.
70108
70109 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70110
70111         * modules/argmatch, modules/fatal, modules/obstack,
70112         modules/xalloc, modules/xgethostname: Sort dependencies by
70113         importance, not alphabetically.
70114
70115 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70116
70117         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70118         fails, so that the caller gets the proper errno.
70119
70120         * lib/readutmp.c (read_utmp): Likewise.
70121         Check for fstat error.  Close stream and free storage
70122         when failing.
70123
70124 2003-09-14  Karl Berry  <karl@gnu.org>
70125
70126         * config/srclist.txt (strdup.c): disable for c89 changes.
70127
70128 2003-09-14  Jim Meyering  <jim@meyering.net>
70129
70130         * lib/getloadavg.c: Correct cpp indentation.
70131         * lib/strdup.c: Likewise.
70132         * lib/vasnprintf.c: Likewise.
70133
70134 2003-09-14  Bruno Haible  <bruno@clisp.org>
70135
70136         * modules/fwriteerror: New file.
70137         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70138
70139 2003-09-14  Bruno Haible  <bruno@clisp.org>
70140
70141         * lib/fwriteerror.h: New file.
70142         * lib/fwriteerror.c: New file.
70143
70144 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70145
70146         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70147         modules/xgethostname, modules/xalloc: Depend on exit.
70148
70149 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70150
70151         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70152
70153         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70154         and AC_MINIX, too, so that their extensions are available.
70155
70156         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70157         This macro has been superseded by gl_BACKUPFILE.
70158
70159         More patches to assume C89 or better.
70160
70161         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70162
70163         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70164         unconditionally.
70165         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70166         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70167         Include <string.h>, <stdlib.h> unconditionally.
70168         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70169         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70170         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70171         headers or for string.h.
70172         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70173         or strtoul.
70174
70175         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70176         headers.
70177         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70178         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70179         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70180         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70181         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70182         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70183         memcpy, memset.
70184         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70185         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70186         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70187         strtol.
70188         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70189         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70190         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70191         strtoul.
70192
70193 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70194
70195         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70196         * lib/obstack.c [!defined _LIBC]: Likewise.
70197         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70198         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70199         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70200
70201         More changes to assume C89 or better.
70202
70203         * lib/error.c (error_tail): Assume vprintf.
70204
70205         * lib/argmatch.c (getenv): Remove decl.
70206         * lib/progreloc.c (get_full_program_name): Define via prototype.
70207         * lib/setenv.c (clearenv): Likewise.
70208         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70209         needed.
70210         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70211         (malloc, memcpy): Remove decls.
70212         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70213         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70214         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70215         (memcpy): Remove macro.
70216         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70217         (__P): Remove.  All uses removed.
70218         (PTR): Remove.  All uses changed to void *.
70219         (CHAR_BIT, NULL): Remove.
70220         (spaces, zeros, memset_space, memset_zero)
70221         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70222         Remove.
70223         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70224         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70225         Define with prototype.
70226         Remove now-unnecessary prototype decl.
70227         (extra_args_spec): Assume ANSI C.  All uses changed.
70228         (extra_args_spec_iso): Remove.
70229         (my_strftime, emacs_strftimeu): Define via prototype.
70230         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70231         unconditionally.
70232         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70233         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70234         (strtoul, strtol): Remove decls.
70235         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70236         LONG_MAX): Remove.
70237         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70238         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70239         (LOCALE_PARAM_PROTO): New macro.
70240         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70241         (INTERNAL (strtol), strtol): Define with a prototype.
70242         (PARAMS): Remove.  All uses removed.
70243         * lib/tempname.c: Include <string.h> unconditionally.
70244         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70245         * lib/xgethostname.c (main): Define with a prototype.
70246         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70247         Include <stdlib.h> unconditionally.
70248         (calloc, malloc, realloc, free): Remove decls.
70249         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70250         Include <stdlib.h> unconditionally.  Sort include file names.
70251         (strtod): Remove.
70252         (xstrtod): Define with a prototype.
70253         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70254         (strtol, strtoul): Remove decls.
70255
70256 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70257
70258         More patches to assume C89 or better.
70259         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70260         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70261         string.h, memchr, STDC_HEADERS.
70262
70263 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70264
70265         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70266         Include <stdlib.h>, <string.h> unconditionally.
70267         Remove now-unnecessary cast to char *.
70268         * lib/strnlen.c: Include <string.h> unconditionally.
70269         * lib/yesno.c (yesno): Define with a prototype.
70270
70271 2003-09-11  Bruno Haible  <bruno@clisp.org>
70272
70273         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70274
70275 2003-09-10  Jim Meyering  <jim@meyering.net>
70276
70277         * lib/error.c: Correct indentation of cpp directives.
70278
70279 2003-09-10  Bruno Haible  <bruno@clisp.org>
70280
70281         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70282         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70283         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70284         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70285         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70286         <stdlib.h> and <string.h> checks.
70287         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70288         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70289
70290 2003-09-10  Bruno Haible  <bruno@clisp.org>
70291
70292         * lib/strcspn.c: Include <string.h> unconditionally.
70293         * lib/strpbrk.c: Include <string.h> unconditionally.
70294         * lib/strstr.c: Include <string.h> unconditionally.
70295         * lib/unicodeio.c: Include <string.h> unconditionally.
70296         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70297         * lib/unsetenv.c: Likewise.
70298         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70299         * lib/yesno.c: Include <stdlib.h> unconditionally.
70300         (rpmatch): Add prototype.
70301
70302 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70303
70304         More patches to assume C89 or better.
70305         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70306         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70307         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70308         or for string.h.
70309         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70310         stdlib.h.
70311         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70312         C headers.
70313         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70314         string.h.
70315         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70316         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70317         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70318         or for string.h.
70319         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70320         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70321         C headers.
70322         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70323         memcpy.
70324         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70325         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70326         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70327         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70328         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70329         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70330         string.h, free.
70331         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70332         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70333         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70334         C headers, or for string.h.
70335         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70336         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70337         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70338         headers, memory.h, stdlib.h, string.h, strings.h.
70339         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70340         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70341         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70342         strchr.
70343         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70344         headers, memory.h, string.h.
70345         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70346         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70347         free.
70348         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70349         headers.
70350         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70351         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70352         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70353         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70354         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70355
70356 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70357
70358         More K&R removal.
70359
70360         * lib/acosl.c (main): Use a prototype.
70361         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70362         tanl.c: Likewise.
70363
70364         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70365
70366         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70367         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70368         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70369         with a prototype.
70370         * lib/getopt.c (const): Remove macro.
70371         Include <string.h> unconditionally.
70372         (my_index): Remove; all uses changed to strchr.
70373         (strlen): Remove decl.
70374         (exchange): Remove forward decl; no longer needed.
70375         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70376         Define with prototype.
70377         * lib/getopt1.c (const): Remove macro.
70378         (getopt_long, getopt_long_only, main): Define with prototype.
70379
70380         * lib/getugroups.c: Include <string.h> unconditionally.
70381
70382         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70383         (getusershell, setusershell, endusershell, readname, main):
70384         Define with prototypes.
70385
70386         * lib/group-member.c: Include group-member.h first.
70387         Include <stdlib.h> unconditionally.
70388
70389         * lib/hard-locale.c: Include hard-locale.h first.
70390         Include <stdlib.h>, <string.h> unconditionally.
70391
70392         * lib/hash.c (free, malloc): Remove decls.
70393         Include <stdlib.h> unconditionally.
70394
70395         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70396         (getenv): Do not declare.
70397
70398         * lib/idcache.c: Include <string.h> unconditionally.
70399
70400         * lib/long-options.c: Include long-options.h first, to test interface.
70401         Include <stdlib.h> unconditionally.
70402
70403         * lib/makepath.c: Include makepath.h first, to test interface.
70404         Include <stdlib.h> and <string.h> unconditionally.
70405
70406         * lib/linebuffer.c: Include <stdlib.h>.
70407         (free): Remove decl.
70408
70409         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70410         stddef.h. rpl_malloc returns void *, not char *.
70411         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70412         prototype.
70413
70414         * lib/md5.h: Include <limits.h> unconditionally.
70415         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70416         (__P): Remove; all uses removed.
70417         * lib/md5.c: Include "md5.h" first.
70418         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70419         md5_buffer, md5_process_bytes, md5_process_block):
70420         Define with prototypes.
70421         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70422         * lib/sha.c: Include "sha.h" first.
70423         Include <stdlib.h>, <string.h> unconditionally.
70424
70425         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70426         * lib/memcmp.c (__ptr_t): Likewise.
70427         * lib/memrchr.c (__ptr_t): Likewise.
70428         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70429         Include <string.h> unconditionally.
70430         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70431         * lib/memchr.c: Include <stdlib.h> unconditionally.
70432         * lib/memchr.c (LONG_MAX): Remove.
70433         * lib/memrchr.c (LONG_MAX): Likewise.
70434         * lib/memchr.c (__memchr): Define via a prototype.
70435         * lib/memrchr.c (__memrchr): Likewise.
70436         * lib/memcmp.c (__P): Remove, and remove all uses.
70437         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70438         Remove forward decls; no longer needed.
70439         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70440         Use types required by C89 in prototype.
70441
70442         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70443         * lib/savedir.c: Likewise.
70444         * lib/mkdir.c (free): Remove decl.
70445         * lib/rmdir.c (rmdir): Define with a prototype.
70446         * lib/savedir.c: Include savedir.h first, to test interface.
70447
70448         * lib/mktime.c (STDC_HEADERS): Remove.
70449         Include <stdlib.h>, <string.h> unconditionally.
70450
70451         * lib/modechange.c: Include <stdlib.h> unconditionally.
70452         (malloc): Remove decl.
70453
70454         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70455         (free): Remove decl.
70456
70457         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70458         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70459         (This type really should be intptr_t, but that's a C99ism.)
70460         (_obstack_memcpy): Remove: all uses changed to memcpy.
70461         Include <string.h> unconditionally.
70462         (struct obstack): Assume __STDC__ for types of members
70463         chunkfun, freefun, extra_arg.
70464         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70465         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70466         obstack_begin, obstack_specify_allocation,
70467         obstack_specify_allocation_with_arg, obstack_chunkfun,
70468         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70469         Remove unprototyped decls and the macros that use them.
70470         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70471         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70472         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70473         (defined __STDC__ && __STDC__)]:
70474         Remove nonprototyped code.
70475         Include <stdlib.h> unconditionally.
70476         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70477         _obstack_allocated_p, _obstack_free, obstack_free,
70478         _obstack_memory_used, print_and_abort):
70479         Define using prototypes.
70480         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70481         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70482         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70483         obstack_next_free, obstack_object_size, obstack_room) [0]:
70484         Remove unused, unprototyped code.
70485
70486         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70487
70488         * lib/physmem.c (physmem_total, physmem_available, main): Define
70489         with prototypes.
70490
70491         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70492         (main): Define with a prototype.
70493
70494         * lib/posixver.c (getenv): Remove decl.
70495
70496         * lib/putenv.c (malloc): Returns void *, not char *.
70497         Include <string.h> unconditionally.
70498         (strchr, memcpy, NULL): Do not define.
70499
70500         * lib/readtokens.c: Include readtokens.h first, to test interface.
70501         Include <stdlib.h>, <string.h> unconditionally.
70502         (init_tokenbuffer): Define with a prototype.
70503
70504         * lib/regex.c (PARAMS): Remove.  All uses removed.
70505         All uses of _RE_ARGS removed, too.
70506         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70507         unconditionally.
70508         (bzero): Assume memset exists.
70509         (memcmp, memcpy, NULL): Remove.
70510         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70511         char, or assignments to local vars of type signed char.
70512         (init_syntax_once, PREFIX(extract_number_and_incr),
70513         PREFIX(print_partial_compiled_pattern),
70514         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70515         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70516         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70517         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70518         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70519         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70520         wcs_compile_range, byte_compile_range, truncate_wchar,
70521         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70522         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70523         count_mbs_length, wcs_re_match_2_internal,
70524         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70525         PREFIX(alt_match_null_string_p),
70526         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70527         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70528         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70529         now-unnecessary declaration, if any.
70530         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70531         regcomp, regexec):
70532         Remove now-unnecessary casts among pointer types.
70533         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70534
70535         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70536         (free): Remove decl.
70537
70538         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70539
70540         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70541         (free): Remove decl.
70542
70543         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70544         * lib/xgetcwd.c: Likewise.
70545
70546         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70547         (free): Remove decl.
70548
70549         * lib/strchrnul.c (strchrnul): Define with a prototype.
70550         Fix bug: c_in was not converted to char before searching.
70551
70552         The following changes are not K&R related:
70553
70554         * lib/group-member.h: Include <sys/types.h>, so that this file is
70555         self-contained.
70556         * lib/makepath.h: Likewise.
70557
70558         * lib/getusershell.c (readname, default_index, line_size, readname):
70559         Use size_t, not int, for sizes.
70560         (readname): If the size overflows, report an error instead of
70561         looping forever.
70562
70563 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70564
70565         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70566         libc.
70567
70568 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70569
70570         * README: New section: portability guidelines.
70571
70572 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70573
70574         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70575         C89 spec.
70576
70577 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70578
70579         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70580
70581 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70582
70583         Assume C89 or better; remove K&R cruft.
70584         A few of these changes were first proposed by Derek Robert Price
70585         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70586
70587         * lib/addext.c: Include <string.h> unconditionally.
70588         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70589         Don't declare getenv or malloc.
70590
70591         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70592         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70593         (NULL): Remove.
70594         (find_stack_direction, alloca): Use prototypes.
70595
70596         * lib/atexit.c (atexit): Define using a prototype.
70597
70598         * lib/basename.c, dirname.c, stripslash.c:
70599         Include <string.h> unconditionally.
70600
70601         * lib/bcopy.c: Include <stddef.h>.
70602         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70603
70604         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70605
70606         * lib/error.h (error, error_at_line, error_print_progname)
70607         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70608         * lib/error.c: Include error.h first, to check interface.
70609         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70610         (VA_START): Remove; all uses changeed to va_start.
70611         (exit, strerror): Remove decls.
70612         (error_print_progname): Prototype uncondionally.
70613         Don't include <errno.h>; no longer needed.
70614         (private_strerror): Remove.
70615         (error_tail): Always define.
70616         (error, error_at_line): Assume C89 or better; always use prototypes.
70617         * lib/fatal.c: Include "fatal.h" first, to test interface.
70618         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70619         (VA_START): Remove; all uses changed to va_start.
70620         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70621         this case.
70622         (exit): Remove decl.
70623         (fatal): Prototype unconditionally.  Assume va_start works.
70624         Abort at end, to pacify gcc.
70625
70626         * lib/euidaccess.c (main): Define with a prototype.
70627
70628         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70629
70630         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70631
70632         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70633         prototypes.
70634         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70635         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70636         (getenv): Remove decl.
70637         (fnmatch): Define using a prototype.
70638         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70639         (FCT): Define using a prototype.
70640
70641         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70642
70643         * lib/gethostname.c: Include <stddef.h>.
70644         (gethostname): Define with prototype.  Length is size_t, not int.
70645
70646 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70647
70648         Assume C89 or better; remove K&R cruft.
70649         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70650         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70651         string.h, getenv, malloc.
70652         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70653         headers.
70654         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70655         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70656         do not check for strerror.
70657         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70658         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70659         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70660         do not check for doprnt or vprintf.
70661         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70662         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70663
70664 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70665
70666         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70667         getversion.c should have been removed then, but was accidentally
70668         preserved.
70669
70670         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70671         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70672
70673 2003-09-08  Karl Berry  <karl@gnu.org>
70674
70675         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70676                 config, forget about prep.
70677
70678         * config/depcomp, missing: update from automake.
70679
70680 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70681
70682         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70683         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70684
70685 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70686
70687         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70688         copy_tm_result.  Bug reported by Simon Josefsson in
70689         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70690
70691 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70692
70693         * m4/time_r.m4: New file.
70694         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70695         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70696         is. Check for timegm declaration.
70697         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70698         Do not check for gmtime_r.
70699         Replace mktime if __mktime_internal does not exist and if mktime
70700         hasn't been replaced already.
70701
70702 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70703
70704         * lib/time_r.c, lib/time_r.h: New files.
70705
70706         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70707         __localtime_r.
70708         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70709         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70710
70711         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70712         __gmtime_r.
70713         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70714         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70715         Include <time_r.h>.
70716
70717         * lib/timegm.c: Switch to glibc implementation, with the following
70718         changes:
70719         [defined HAVE_CONFIG_H]: Include <config.h>.
70720         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70721         (__mktime_internal) [!defined _LIBC]: New decl.
70722         (__gmtime_r) [!defined _LIBC]: New macro and function.
70723         (timegm): Use a prototype, since gnulib assumes C89.
70724         Do not bother declaring tmp to be const, as it's not really usefu.
70725         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70726         (timegm): Declare only if HAVE_DECL_TIMEGM.
70727
70728 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70729
70730         * MODULES.html.sh (func_all_modules): Add time_r.
70731         * modules/time_r: New file.
70732         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70733         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70734
70735 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70736
70737         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70738         Bug reported by Lute Kamstra in
70739         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70740
70741         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70742         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70743         course with correspondingly smaller numbers for tomorrow and
70744         yesterday.  From Tadayoshi Funaba.  Originally installed into
70745         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70746         coreutils merge?).
70747
70748 2003-08-31  Simon Josefsson  <jas@extundo.com>
70749
70750         * modules/timegm: New file.
70751         * MODULES.html.sh (func_all_modules): Add timegm.
70752
70753 2003-08-31  Simon Josefsson  <jas@extundo.com>
70754
70755         * m4/timegm.m4: New file.
70756
70757 2003-08-31  Simon Josefsson  <jas@extundo.com>
70758
70759         * lib/timegm.h: New file.
70760         * lib/timegm.c: New file.  Based on
70761         wget-1.8.2/src/http.c:mktime_from_utc.
70762
70763 2003-08-31  Karl Berry  <karl@gnu.org>
70764
70765         * lib/argp.h: update from libc.
70766
70767 2003-08-28  Bruno Haible  <bruno@clisp.org>
70768
70769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70770         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70771         followed by '#define fnmatch fnmatch_posix' gives an error.
70772
70773 2003-08-28  Bruno Haible  <bruno@clisp.org>
70774
70775         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70776         warning on QNX, which defines O_BINARY to 000000.
70777
70778 2003-08-27  Jim Meyering  <jim@meyering.net>
70779
70780         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70781         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70782         would fail after 32.  Reported by Danny Levinson.  Details here:
70783         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70784
70785 2003-08-24  Bruno Haible  <bruno@clisp.org>
70786
70787         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70788         MSVC7 <stdio.h> is included later.
70789
70790 2003-08-22  Simon Josefsson  <jas@extundo.com>
70791
70792         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70793
70794 2003-08-20  Karl Berry  <karl@gnu.org>
70795
70796         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70797
70798 2003-08-20  Bruno Haible  <bruno@clisp.org>
70799
70800         * modules/progname: New file.
70801         * MODULES.html.sh (func_all_modules): Add progname.
70802
70803 2003-08-20  Bruno Haible  <bruno@clisp.org>
70804
70805         * lib/progname.h: New file, from GNU gettext.
70806         * lib/progname.c: New file, from GNU gettext.
70807         * lib/progreloc.c: New file, from GNU gettext.
70808
70809 2003-08-19  Jim Meyering  <jim@meyering.net>
70810
70811         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70812         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70813
70814 2003-08-19  Bruno Haible  <bruno@clisp.org>
70815
70816         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70817         more.
70818
70819 2003-08-19  Bruno Haible  <bruno@clisp.org>
70820
70821         * lib/xstrdup.c: Assume <string.h> exists.
70822
70823 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70824
70825         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70826         in makefile rules.
70827
70828 2003-08-18  Jim Meyering  <jim@meyering.net>
70829
70830         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70831         * m4/lib-ld.m4: Likewise.
70832
70833 2003-08-18  Jim Meyering  <jim@meyering.net>
70834
70835         * lib/setenv.h: Indent nested cpp directive.
70836         * lib/vasnprintf.c: Remove trailing blanks.
70837
70838 2003-08-17  Simon Josefsson  <jas@extundo.com>
70839
70840         * modules/xstrndup: New file.
70841         * MODULES.html.sh (func_all_modules): Add xstrndup.
70842
70843 2003-08-17  Simon Josefsson  <jas@extundo.com>
70844
70845         * modules/argp: Fix autoconf macro name. Add more dependencies.
70846
70847 2003-08-17  Simon Josefsson  <jas@extundo.com>
70848
70849         * m4/xstrndup.m4: New file.
70850
70851 2003-08-17  Simon Josefsson  <jas@extundo.com>
70852
70853         * m4/argp.m4: New file.
70854
70855 2003-08-17  Simon Josefsson  <jas@extundo.com>
70856             Bruno Haible  <bruno@clisp.org>
70857
70858         * lib/xstrndup.h: New file.
70859         * lib/xstrndup.c: New file.
70860
70861 2003-08-17  Bruno Haible  <bruno@clisp.org>
70862
70863         * modules/strndup (Files, Include): Add lib/strndup.h.
70864
70865 2003-08-17  Bruno Haible  <bruno@clisp.org>
70866
70867         * modules/euidaccess (Files): Add lib/euidaccess.h.
70868
70869 2003-08-17  Bruno Haible  <bruno@clisp.org>
70870
70871         * lib/strndup.h: New file.
70872
70873 2003-08-17  Bruno Haible  <bruno@clisp.org>
70874
70875         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70876         like AC_GNU_SOURCE.
70877         * modules/extensions (configure.ac): Comment out the invocation of
70878         gl_USE_SYSTEM_EXTENSIONS.
70879
70880 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70881
70882         Merges from coreutils, etc.
70883         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70884         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70885         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70886         fixing a typo.
70887         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70888         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70889
70890 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70891
70892         Document merge from coreutils.
70893         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70894         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70895         * modules/utime: Add m4/utimes-null.m4.
70896
70897 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70898
70899         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70900         space, undoing this 2003-08-12 change:
70901         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70902
70903 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70904
70905         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70906         strtoul.c from libc, undoing this 2003-08-12 change:
70907         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70908
70909 2003-08-16  Jim Meyering  <jim@meyering.net>
70910
70911         Merges from coreutils.
70912         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70913         prefix.  Adjust cache variables similarly.  Create 500 rather than
70914         just 300 files, to exercise bug on Darwin6.5, too.
70915         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70916         $missing_dir.
70917         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70918         AM_SYS_POSIX_TERMIOS.
70919         Reported by mkc@mathdogs.com.
70920         Also change use of $am_cv_sys_posix_termios
70921         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70922         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70923         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70924         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70925         in /proc/mounts until it finds one with matching device number.  This
70926         is unnecessary when the FILE argument *is* a mount point.  No stat call
70927         is necessary in that case.  So, disable the statvfs-testing code on
70928         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70929         as RedHat bug# 84846.
70930         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70931         to 1MB, so as not to render systems with no stack size limit (e.g.,
70932         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70933         Include <unistd.h>.  On some systems,
70934         it is required for the definition of _SC_PAGESIZE.
70935
70936 2003-08-16  Jim Meyering  <jim@meyering.net>
70937
70938         Merge from coreutils.
70939         * lib/xstrtoimax.c: #else #if -> #elif.
70940         * lib/xstrtoumax.c: Likewise.
70941
70942 2003-08-16  Jim Meyering  <jim@meyering.net>
70943
70944         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70945         * m4/utimes.m4: Removed.
70946         * m4/utimes-null.m4: Renamed from utimes.m4.
70947
70948         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70949         to 1MB, so as not to render systems with no stack size limit (e.g.,
70950         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70951         Include <unistd.h>.  On some systems,
70952         it is required for the definition of _SC_PAGESIZE.
70953
70954 2003-08-16  Jim Meyering  <jim@meyering.net>
70955         and Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         Merges from coreutils, etc.
70958
70959         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70960         using the latest version from cvs.  This avoids problems with #line
70961         directives using a vendor (Sun) compiler.
70962         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70963         Don't set GETGROUPS_LIB here; now it's
70964         done via getgroups.m4's wrapper function.
70965         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70966         rather than just in sh-util/configure.in, so that the
70967         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70968         same.
70969         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70970         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70971         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70972         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70973         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70974         Remove code that is now done by the newly-required macros.
70975         Append $(EXEEXT) to DF_PROG.
70976         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70977         Do not invoke or require the following here,
70978         since prereq.m4 or some gnulib .m4 now does this for us:
70979         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70980         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70981         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70982         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70983         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70984         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70985         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70986         AC_FUNC_OBSTACK.
70987         Do not replace the following functions, as this is now the job
70988         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70989         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70990         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70991         atexit getpass, strdup, getpagesize.
70992         Replace 'raise'.
70993         Do not check for the following functions, as this is now the job
70994         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70995         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70996         setregid.
70997         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70998         Check for sys/sysctl.h.
70999         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71000         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71001         of checking for ssize_t ourselves.
71002
71003         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71004         Require every macro that gnulib/modules/* suggests for us.
71005         (jm_PREREQ_ADDEXT): New macro.
71006         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71007         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71008
71009         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71010         (gl_PHYSMEM): Use it.
71011         Also check for `table' function.
71012         Check for new headers and functions.
71013         Add check for sys/sysmp.h.
71014         With suggestions from Kaveh Ghazi.
71015         Ignore headers that are present but cannot be compiled.  This
71016         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71017         C 5.4.
71018
71019 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71020
71021         Document merge from coreutils.
71022         * modules/userspec: Depend on posixver.
71023         * modules/strftime: Depend on tzset.
71024
71025 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71026
71027         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71028         rather than tab, after '#' in shell-script copyright notices.
71029         Suggested by Bruno Haible.
71030
71031 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71032
71033         * config/srclist-update: Use three spaces, rather than tab, after '#'
71034         in shell-script copyright notices.  Suggested by Bruno Haible.
71035         Remove unnecessary parenthesization in regular expression.
71036
71037 2003-08-15  Jim Meyering  <jim@meyering.net>
71038
71039         Merge from coreutils.
71040         * lib/xgethostname.c: Include <stdlib.h>.
71041         (xghostname): Don't exit for anything other than memory-related
71042         failure; just return NULL.
71043         * lib/userspec.c: Include "posixver.h".
71044         (parse_user_spec): Accept `.' as a separator only
71045         in pre-POSIX-200112 mode.
71046         * lib/strtoimax.c: Use #elif rather than #else #if.
71047         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71048         Remove function, now that we can rely on a working tzset function.
71049         [!_LIBC]: Ensure that the required autoconf test has been run.
71050         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71051         Use underlying_strftime for %r.
71052         * lib/sha.c: Merge in some clean-up and optimization changes from
71053         glibc.
71054         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71055         Ensure that it is a multiple of 64.
71056         Rearrange loop exit tests so as to avoid performing an
71057         additional fread after encountering an error or EOF.
71058         * lib/realloc.c: Update copyright date.
71059
71060 2003-08-15  Jim Meyering  <jim@meyering.net>
71061         and Paul Eggert  <eggert@twinsun.com>
71062
71063         Merge from coreutils.
71064         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71065         member but strut utmpx does not.  Needed for AIX 4.3.3.
71066         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71067
71068 2003-08-15  Jim Meyering  <jim@meyering.net>
71069         and Paul Eggert  <eggert@cs.ucla.edu>
71070
71071         Merges from coreutils, etc.
71072         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71073         Require gl_FUNC_TZSET_CLOBBER.
71074         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71075         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71076         members.
71077
71078 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71079
71080         Help the merge from coreutils.
71081         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71082         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71083         * m4/tzset.m4: Use it too.
71084
71085 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71086
71087         * modules/tzset: New file.
71088
71089 2003-08-14  Jim Meyering  <jim@meyering.net>
71090
71091         Merges from coreutils.
71092         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71093         variable names, rather than @FNMATCH_H@.
71094         * modules/alloca: Likewise for $(ALLOCA_H).
71095
71096         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71097         the three copies of the literal target, `fnmatch.h'.
71098         * modules/alloca (alloca.h): Likewise.
71099
71100 2003-08-14  Jim Meyering  <jim@meyering.net>
71101
71102         Merge from coreutils.
71103         * m4/tzset.m4: New file.
71104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71105         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71106         otherwise, AIX 5.1 systems would end up using the latter.
71107         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71108         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71109         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71110         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71111
71112 2003-08-14  Jim Meyering  <jim@meyering.net>
71113
71114         Merge from coreutils.
71115         * lib/obstack.h: Whitespace changes.
71116         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71117         and xcalloc return values.
71118         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71119         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71120         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71121         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71122         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71123         error from mntctl.
71124         Use mntctl's return value to drive the entry-processing loop, since
71125         we can't rely on the value of the vmt_length member in the last
71126         entry.  On some systems doing so could result in exhausting
71127         virtual memory.  Based in part on a patch from Mike Jetzer.
71128
71129 2003-08-14  Jim Meyering  <jim@meyering.net>
71130         and Paul Eggert  <eggert@twinsun.com>
71131
71132         Merges from coreutils, plus other fixes.
71133         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71134         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71135         for credits and details.  Thanks to Kaveh Ghazi for helping
71136         to keep these files in sync.
71137         (ARRAY_SIZE): Define it.
71138         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71139         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71140         (memcasecmp): Don't assume size_t fits in unsigned int.
71141         Remove casts and duplicate code.
71142         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71143         (memcpy): Remove definition.
71144         Merge in some clean-up and optimization changes from glibc.
71145         [BLOCKSIZE]: Move definition to top of file.
71146         Ensure that it is a multiple of 64.
71147         Rearrange loop exit tests so as to avoid performing an
71148         additional fread after encountering an error or EOF.
71149         * lib/md5.h (md5_uintptr): Define.
71150         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71151         return to the initial working directory.  Preserve errno
71152         for caller.
71153         * lib/idcache.c: Include "xalloc.h".
71154         (xmalloc, xrealloc): Remove decls.
71155         (getuser): Remove casts no longer required in C89.
71156         * lib/human.c: Include stdio.h, for sprintf.
71157         * lib/group-member.c: Include "xalloc.h".
71158         (xmalloc, xrealloc): Remove decls.
71159         (get_group_info): Remove casts no longer required in C89.
71160         * lib/getusershell.c (readname): Remove casts no longer required in
71161         C89.
71162         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71163         * lib/getline.c: Whitespace fix, from coreutils.
71164
71165 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71166
71167         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71168         Check for isascii.
71169
71170         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71171         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71172         Undo previous (whitespace-only) change.
71173
71174 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71175
71176         * lib/exclude.c: Include <ctype.h>
71177         (IN_CTYPE_DOMAIN): New macro.
71178         (is_space): New fn.
71179         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71180         and empty lines.
71181
71182         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71183         Undo previous (whitespace-only) change.
71184
71185 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71186
71187         * config/srclist-update: Change update back to the old behavior,
71188         leaving whitespace alone.  Use one 'sed' command rather than a
71189         pipeline.
71190         (fixlicense): Now a variable, not a function.
71191         (remove_trailing_blanks): Remove.
71192         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71193         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71194         Undo previous (whitespace-only) change.
71195
71196 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71197
71198         Merge from coreutils.
71199         * modules/euidaccess: Add lib_SOURCES, include for new
71200         file euidaccess.h
71201
71202 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71203
71204         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71205         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71206         Normalize leading white space and remove trailing white space.
71207
71208         Merge from coreutils
71209         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71210
71211         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71212         0.12.1.  These files are now being upgraded automatically by
71213         ../config/srclist-update.
71214
71215 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71216
71217         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71218         Normalize leading white space and remove trailing white space.
71219         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71220         notice, as per ../config/srclist-update.
71221
71222         Merge from coreutils.
71223         * lib/euidaccess.h: New file.
71224         * lib/euidaccess.c: Include it.
71225         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71226         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71227         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71228
71229 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71230
71231         * config/srclist-update: Add copyright notice.
71232         (remove_id_lines, remove_trailing_blanks): New constants.
71233         (fixfile): Use them to normalize spacing a bit in copied files.
71234         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71235         Normalize leading white space and remove trailing white space.
71236
71237         * config/texinfo.tex: Sync with texinfo.
71238
71239         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71240         strtoul.c from libc, to merge coreutils whitespace changes.
71241
71242         * config/srclist.txt: Get the following m4 files from gettext:
71243         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71244         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71245         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71246         wint_t.m4.
71247
71248 2003-08-12  Karl Berry  <karl@gnu.org>
71249
71250         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71251         been made.
71252
71253 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71254
71255         * modules/gnu-source, m4/gnu-source.m4:
71256         Remove; we're assuming Autoconf 2.54 or later now.
71257         Suggested by Bruno Haible.
71258         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71259
71260 2003-08-11  Bruno Haible  <bruno@clisp.org>
71261
71262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71263
71264 2003-08-11  Bruno Haible  <bruno@clisp.org>
71265
71266         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71267         (vasnprintf): Use it instead of wcslen.
71268
71269 2003-08-11  Bruno Haible  <bruno@clisp.org>
71270
71271         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71272         value to ensure that _Bool promotes to int. Use #define for _Bool when
71273         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71274
71275 2003-08-10  Karl Berry  <karl@gnu.org>
71276
71277         * lib/regex.h: update from libc (whitespace fix).
71278
71279 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71280
71281         Merge some files from coreutils.  These changes were
71282         originally made by Jim Meyering.
71283         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71284         many older Unixes require this.
71285         * lib/alloca.c (alloca): Remove cast to argument of free;
71286         no longer needed in C89.
71287         * lib/alloca_.h, regex.h: Fix white space to match
71288         what GNU indent does.
71289
71290 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71291
71292         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71293         apparently Emacs's Unicode mode got confused before my 2003-08-05
71294         checkin.
71295
71296 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71297
71298         * m4/extensions.m4: New file.
71299         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71300         Require gl_USE_SYSTEM_EXTENSIONS.
71301         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71302         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71303
71304 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71305
71306         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71307         * modules/extensions, modules/gnu-source: New files.
71308         * modules/timespec, modules/unlocked-io: Depend on extensions.
71309
71310 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71311
71312         * modules/restrict: New file.
71313         * MODULES.html.sh (func_all_modules): Add restrict.
71314         * modules/regex: Depend on restrict.
71315
71316 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71317
71318         * m4/restrict.m4: New file.
71319         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71320
71321 2003-08-07  Bruno Haible  <bruno@clisp.org>
71322
71323         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71324         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71325
71326 2003-08-07  Bruno Haible  <bruno@clisp.org>
71327
71328         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71329         makes the module 'getndelim2' compatible with the module 'getline'.
71330
71331 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71332
71333         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71334         byte with "\201" to avoid glitches when editing that source file
71335         with multi-gnome-terminal.
71336
71337 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71338
71339         * lib/bumpalloc.h: Remove.
71340
71341 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71342
71343         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71344         * modules/bumpalloc: Remove.
71345
71346 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71347
71348         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71349         GNU coding style.
71350
71351         Merge from coreutils.
71352         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71353         1. From glibc.
71354         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71355         from Karl Berry, implemented by Jim Meyering.
71356         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71357         from Dmitry V. Levin.
71358         Remove anachronistic cast of xrealloc.
71359         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71360         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71361         type. Otherwise, it wouldn't compile with at least /bin/cc on
71362         ymp-cray-unicos9.0.2.X.
71363         Combine two mostly-identical uses of alloca into one.
71364         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71365
71366 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71367
71368         [From Emacs.]
71369
71370         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71371         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71372         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71373         obsolete NLIST_NAME_UNION.
71374         [__GNU__]: Undef BSD and FSCALE.
71375         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71376
71377 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71378
71379         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71380         an enum type, so that it's guaranteed to promote to int.  See:
71381         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71382
71383 2003-08-03  Karl Berry  <karl@gnu.org>
71384
71385         * config/depcomp: update from automake.
71386
71387 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71388
71389         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71390         (strerror): Don't assume that a printable int fits in 14 bytes.
71391
71392 2003-07-31  Bruno Haible  <bruno@clisp.org>
71393
71394         * modules/getpass-gnu: New file.
71395         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71396
71397 2003-07-31  Bruno Haible  <bruno@clisp.org>
71398
71399         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71400
71401 2003-07-24  Karl Berry  <karl@gnu.org>
71402
71403         * config/missing: update from automake.
71404
71405 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71406             Bruno Haible  <bruno@clisp.org>
71407
71408         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71409         * lib/getline.c (getline, getdelim): Likewise.
71410         Remove _GNU_SOURCE define; now it's defined in config.h through
71411         m4/getline.m4.
71412
71413 2003-07-23  Karl Berry  <karl@gnu.org>
71414
71415         * config/config.sub: update from prep.
71416
71417 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71418
71419         * modules/xalloc (Depends-on): Add exitfail.
71420         * modules/xmemcoll: Likewise.
71421
71422 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71423
71424         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71425         over-parenthesization in macros.
71426
71427         Sync with coreutils.
71428
71429         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71430         required by C99.
71431
71432         Use `exit_failure' for xalloc and xmemcoll instead of their own
71433         private exit-failure variables.
71434         * lib/xalloc.h (xalloc_exit_failure): Remove.
71435         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71436         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71437         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71438         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71439         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71440
71441 2003-07-20  Jim Meyering  <jim@meyering.net>
71442
71443         * modules/closeout (Depends-on): Add exitfail.
71444         Suggestion from Bruno Haible.
71445
71446 2003-07-19  Karl Berry  <karl@gnu.org>
71447
71448         * config/config.sub: update from prep.
71449
71450 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71451
71452         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71453         Remove.
71454         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71455         to test that it can stand by itself.  Include "exitfail.h".
71456         Clients should set exit_failure instead.
71457         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71458
71459 2003-07-18  Bruno Haible  <bruno@clisp.org>
71460
71461         * modules/getndelim2: New file.
71462         * modules/getline: Share files with module getndelim2.
71463         * modules/getnline: Depend on getndelim2 instead of sharing files with
71464         it. Add getnline.c to lib_SOURCES.
71465         * MODULES.html.sh (func_all_modules): Add getndelim2.
71466
71467 2003-07-18  Bruno Haible  <bruno@clisp.org>
71468
71469         * m4/getndelim2.m4: New file.
71470         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71471         invoke gl_PREREQ_GETNDELIM2.
71472         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71473         gl_PREREQ_GETNDELIM2.
71474         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71475         gl_GETNDELIM2.
71476
71477 2003-07-18  Bruno Haible  <bruno@clisp.org>
71478
71479         * lib/getndelim2.h: New file.
71480         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71481         getndelim2.h.
71482         (getndelim2): Make non-static. Change return type to ssize_t.
71483         * lib/getline.h: Change argument names.
71484         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71485         * lib/getnline.c: Include getndelim2.h.
71486
71487 2003-07-18  Andreas Schwab  <schwab@suse.de>
71488
71489         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71490
71491 2003-07-17  Karl Berry  <karl@gnu.org>
71492
71493         * config/config.sub: update from prep.
71494
71495 2003-07-17  Bruno Haible  <bruno@clisp.org>
71496
71497         * modules/getnline: New file.
71498         * modules/getline: Add lib/getndelim2.c to source file list.
71499         * MODULES.html.sh (func_all_modules): Add getnline.
71500
71501 2003-07-17  Bruno Haible  <bruno@clisp.org>
71502
71503         * m4/getnline.m4: New file.
71504
71505 2003-07-17  Bruno Haible  <bruno@clisp.org>
71506
71507         * m4/Makefile.am.in: Remove file.
71508         * m4/Makefile.am: Remove file.
71509         * m4/Makefile.in: Remove file.
71510
71511 2003-07-17  Bruno Haible  <bruno@clisp.org>
71512
71513         * lib/getnline.h: New file.
71514         * lib/getnline.c: New file.
71515         * lib/getndelim2.c: New file, extracted from getline.c.
71516         (getndelim2): Renamed from getdelim2, with added nmax argument.
71517         * lib/getline.c: Include getndelim2.c.
71518         (getdelim2): Moved out to getndelim2.c.
71519         (getline, getdelim): Update.
71520
71521 2003-07-17  Bruno Haible  <bruno@clisp.org>
71522
71523         * lib/Makefile.am: Remove file.
71524         * lib/Makefile.in: Remove file.
71525
71526 2003-07-17  Bruno Haible  <bruno@clisp.org>
71527
71528         * configure.in: Remove file.
71529         * Makefile.in: Remove file.
71530
71531 2003-07-17  Bruno Haible  <bruno@clisp.org>
71532
71533         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71534
71535 2003-07-16  Karl Berry  <karl@gnu.org>
71536
71537         * config/srclist-update: was running fixlicense twice, which caused
71538                 texinfo.tex to be nullified for some reason.  Simplify,
71539                 $gplsrc is no longer needed as far as I can see?
71540
71541 2003-07-16  Jim Meyering  <jim@meyering.net>
71542
71543         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71544
71545 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71546
71547         * config/srclist.txt: Get the following files from gettext-runtime/intl
71548         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71549         ref-del.sin.  From Bruno Haible.
71550         * config/srclist-update (fixfile): Change grep pattern again, since the
71551         previous fix didn't work (there was another trailing $).  Use
71552         '[$]' to escape the $s.
71553
71554 2003-07-15  Karl Berry  <karl@gnu.org>
71555
71556         * lib/vasnprintf.c: update from gettext.
71557
71558 2003-07-15  Karl Berry  <karl@gnu.org>
71559
71560         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71561         gets expanded when surrounded by '$'.
71562
71563 2003-07-15  Jim Meyering  <jim@meyering.net>
71564
71565         * modules/save-cwd: Don't depend on error.  From Derek Price.
71566
71567 2003-07-15  Jim Meyering  <jim@meyering.net>
71568
71569         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71570
71571 2003-07-14  Simon Josefsson  <jas@extundo.com>
71572
71573         * modules/mempcpy: New file.
71574         * MODULES.html.sh (func_all_modules): Add mempcpy.
71575
71576 2003-07-14  Simon Josefsson  <jas@extundo.com>
71577
71578         * m4/mempcpy.m4: New file.
71579
71580 2003-07-14  Simon Josefsson  <jas@extundo.com>
71581
71582         * lib/mempcpy.h: New file.
71583         * lib/mempcpy.c: New file.
71584
71585 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71586
71587         * modules/getdate, modules/posixtm: Depend on mktime.
71588
71589 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71590
71591         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71592         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71593         unicodeio.c, unicodeio.h, unlocked-io.h:
71594         Switch from LGPL to GPL.
71595
71596 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71597
71598         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71599         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71600         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71601         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71602         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71603         updated automatically by ../config/srclist-update.  This changes
71604         their license from LPGL to GPL.
71605
71606 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71607
71608         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71609         assumed to refer to the root of the most recent stable gettext version.
71610         * config/srclistvars.sh: Add defaults for eggert.
71611         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71612         Match "This program" as well as "The program".  This is needed
71613         for gettext.
71614
71615 2003-07-14  Jim Meyering  <jim@meyering.net>
71616
71617         Don't emit diagnostics.  Let callers do that.
71618         * lib/save-cwd.c: Don't include "error.h".
71619         (save_cwd): Don't call error.  Ensure that errno is valid
71620         when returning nonzero.
71621
71622         * lib/save-cwd.h (restore_cwd): Update prototype.
71623         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71624         Simplify.  Don't call error upon failure.  Let callers do that.
71625         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71626         when auditing is enabled.  But don't bother updating the #if.
71627
71628 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71629
71630         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71631         it breaks C++ compilation.
71632         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71633
71634 2003-07-10  Simon Josefsson  <jas@extundo.com>
71635
71636         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71637
71638 2003-07-10  Jim Meyering  <jim@meyering.net>
71639
71640         * m4/clock_time.m4: Remove trailing blank.
71641         * m4/intmax_t.m4: Likewise.
71642
71643 2003-07-10  Jim Meyering  <jim@meyering.net>
71644
71645         * lib/vasnprintf.c: Remove trailing blanks.
71646         Make cpp indentation consistent.
71647
71648 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71649
71650         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71651         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71652         Switch from LGPL to GPL.
71653
71654 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71655
71656         * config/srclist.txt: Sort sublists.  Add
71657         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71658         that differ from gnulib for one reason or another; we'd like this list
71659         to be smaller but for now let's document what we have.
71660
71661 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71662
71663         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71664         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71665         and sweeter "eval x=$x".
71666         * config/srclist.txt: Get lib/argp* from glibc.
71667
71668 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71669
71670         * lib/mktime.c: Fix some boundary cases and remove need for floating
71671         point.
71672
71673         Issue a compile-time diagnostic if time_t is floating point, or if
71674         two's complement arithmetic is not in effect, or if arithmetic
71675         right shift does not propagate the sign.  These assumptions were
71676         all in the original code but they weren't checked.
71677
71678         (TIME_T_MIDPOINT, verify): New macros.
71679         (__isleap): Remove; it has integer overflow problems.
71680         (leapyear): New function, without those problems.
71681         (ydhms_tm_diff): Remove; splitting into two parts.
71682         (ydhms_diff): New function, containing the arithmetic part of
71683         the old ydhms_tm_diff function.  Issue a compile-time
71684         diagnostic if we are not using C99 integer division.
71685         Avoid casts when possible.
71686         (guess_time_tm): New function, containing the checking part of
71687         the old ydhms_tm_diff function.  Return the new value, rather than
71688         the difference between it and the old.  Accept a new argument T
71689         so that *T specifies the old value.  Check for overflow in the result.
71690
71691         (__mktime_internal): Use a time_t offset, not a long int offset.
71692         This undoes the 2003-06-04 change, which is no longer needed now
71693         that we have better overflow checking.
71694         (localtime_offset): Likewise.
71695
71696         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71697         and long are 64-bit but int is only 32-bit.
71698         (ydhms_diff): Use long int to store year1 and yday1.
71699         Issue a compile-time diagnostic if long int is not wide enough.
71700
71701         (__mktime_internal): Use long int to store adjusted year and yday.
71702         Use plain C rather than preprocessor commands, if that doesn't
71703         affect efficiency.
71704         Check for overflow (and try to repair) after each probe
71705         rather than checking only at the very end.  This avoids some bugs
71706         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71707         does not equal GMT offset at maximum time).
71708         Use integer to check for overflow rather than floating point; this
71709         is more portable to non-IEEE hosts, and is a tad faster.
71710         When we detect that we are oscillating between two values,
71711         don't check whether tm_isdst has the requested value, since
71712         we already know the answer.  When tm_isdst has the wrong value,
71713         use a different heuristic to find the right one, based on the
71714         extreme values actually observed in practice in tz2003a,
71715         rather than the (overly optimistic) "previous 3 calendar quarters".
71716
71717         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71718         "T const" to accommodate glibc style.
71719         (check_result): Use less-confusing report format.  "long" -> "long int.
71720         (main): Likewise.
71721         Don't loop if the iteration overflows time_t.
71722         Allow a negative step in the iteration.
71723
71724 2003-07-06  Karl Berry  <karl@gnu.org>
71725
71726         * config/depcomp: update from automake.
71727         * config/config.sub: update from prep.
71728
71729 2003-07-03  Karl Berry  <karl@gnu.org>
71730
71731         * config/config.guess: update from prep.
71732
71733 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71734
71735         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71736         xreadlink.c now includes it unconditionally.
71737
71738 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71739
71740         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71741         having it depend on HAVE_SYS_TYPES_H.
71742
71743 2003-07-01  Bruno Haible  <bruno@clisp.org>
71744
71745         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71746         <sys/types.h> should be sufficient.
71747         Reported by Paul Eggert.
71748
71749 2003-06-26  Karl Berry  <karl@gnu.org>
71750
71751         * config/depcomp: update from automake.
71752
71753 2003-06-26  Bruno Haible  <bruno@clisp.org>
71754
71755         * modules/human: Depend on module stdbool.
71756
71757 2003-06-25  Bruno Haible  <bruno@clisp.org>
71758
71759         * modules/readlink: New file.
71760         * modules/xreadlink: Depend on it.
71761         * MODULES.html.sh (func_all_modules): Add readlink.
71762
71763 2003-06-25  Bruno Haible  <bruno@clisp.org>
71764
71765         * m4/readlink.m4: New file.
71766
71767 2003-06-25  Bruno Haible  <bruno@clisp.org>
71768
71769         * lib/readlink.c: New file.
71770
71771 2003-06-22  Karl Berry  <karl@gnu.org>
71772
71773         * config/srclist.txt: update mkinstalldirs from automake.
71774         * config/mkinstalldirs: update.
71775
71776 2003-06-22  Bruno Haible  <bruno@clisp.org>
71777
71778         Portability to mingw32.
71779         * m4/ssize_t.m4: New file, from GNU gettext.
71780         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71781         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71782
71783 2003-06-22  Bruno Haible  <bruno@clisp.org>
71784
71785         * modules/safe-read: Add m4/ssize_t.m4.
71786         * modules/xreadlink: Add m4/ssize_t.m4.
71787
71788 2003-06-20  Bruno Haible  <bruno@clisp.org>
71789
71790         Assume C89, so PARAMS isn't needed.
71791         * lib/unicodeio.h (PARAMS): Remove.
71792         * lib/unicodeio.c: Don't use PARAMS.
71793
71794 2003-06-18  Karl Berry  <karl@gnu.org>
71795
71796         * config/config.{guess,sub}: update from prep.
71797
71798 2003-06-18  Jim Meyering  <jim@meyering.net>
71799
71800         Merge changes from coreutils.
71801         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71802         Remove explicit declarations of xmalloc and realloc.
71803         Include xalloc.h.
71804         (read_utmp): Remove anachronistic cast of xmalloc.
71805
71806 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71807
71808         Assume C89, so PARAMS isn't needed.
71809         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71810         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71811         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71812         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71813         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71814         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71815         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71816         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71817         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71818         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71819         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71820         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71821         no longer needed. Anyway, config.h should always be included before any
71822         other file.
71823
71824 2003-06-11  Simon Josefsson  <jas@extundo.com>
71825
71826         * modules/sysexits: New file.
71827         * MODULES.html.sh (func_all_modules): Add sysexits.
71828
71829 2003-06-11  Simon Josefsson  <jas@extundo.com>
71830
71831         * lib/sysexit_.h: New file.
71832
71833 2003-06-11  Derek Price  <derek@ximbiot.com>
71834
71835         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71836         necessary.
71837
71838 2003-06-11  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/sysexits.m4: New file.
71841
71842 2003-06-10  Simon Josefsson  <jas@extundo.com>
71843
71844         * lib/argp.h: New file, from glibc.
71845         * lib/argp-ba.c: New file, from glibc.
71846         * lib/argp-eexst.c: New file, from glibc.
71847         * lib/argp-fmtstream.c: New file, from glibc.
71848         * lib/argp-fmtstream.h: New file, from glibc.
71849         * lib/argp-fs-xinl.c: New file, from glibc.
71850         * lib/argp-help.c: New file, from glibc.
71851         * lib/argp-namefrob.h: New file, from glibc.
71852         * lib/argp-parse.c: New file, from glibc.
71853         * lib/argp-pv.c: New file, from glibc.
71854         * lib/argp-pvh.c: New file, from glibc.
71855         * lib/argp-xinl.c: New file, from glibc.
71856
71857 2003-06-10  Simon Josefsson  <jas@extundo.com>
71858
71859         * modules/strchrnul: New file.
71860
71861 2003-06-10  Simon Josefsson  <jas@extundo.com>
71862
71863         * modules/argp: New file.
71864
71865 2003-06-10  Simon Josefsson  <jas@extundo.com>
71866
71867         * m4/strchrnul.m4: New file.
71868
71869 2003-06-10  Simon Josefsson  <jas@extundo.com>
71870
71871         * lib/strchrnul.h: New file.
71872         * lib/strchrnul.c: New file.
71873
71874 2003-06-10  Bruno Haible  <bruno@clisp.org>
71875
71876         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71877
71878 2003-06-07  Karl Berry  <karl@gnu.org>
71879
71880         * config/config.{guess,sub}: update from prep.
71881
71882 2003-06-07  Jim Meyering  <jim@meyering.net>
71883
71884         * modules/strtod: Use $(...) notation, not @...@ for
71885         AC_REPLACE'd variables.
71886         * modules/localcharset: Likewise.
71887
71888 2003-06-07  Jim Meyering  <jim@meyering.net>
71889
71890         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71891         in place of my name in the copyright comment.
71892         Remove definition and uses of __P.
71893
71894         From coreutils.
71895         * lib/stat.c: Don't declare xmalloc explicitly.
71896         Instead, include "xalloc.h".
71897         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71898         xrealloc, and xcalloc return values.
71899         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71900         Improve comment.
71901         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71902
71903 2003-06-07  Bruno Haible  <bruno@clisp.org>
71904
71905         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71906         avoid AC_CONFIG_LINKS.
71907         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71908         fnmatch.h, to avoid AC_CONFIG_LINKS.
71909         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71910
71911 2003-06-07  Bruno Haible  <bruno@clisp.org>
71912
71913         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71914         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71915         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71916         directory.
71917         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71918         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71919         directory.
71920
71921 2003-06-06  Jim Meyering  <jim@meyering.net>
71922
71923         Merge from coreutils.
71924         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71925         Consolidate declarations and initializations of *_base* locals.
71926
71927         Merge from coreutils.
71928         This avoids a core dump on systems without GNU putenv,
71929         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71930         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71931         (unsetenv): New static function, from GNU libc.
71932         (rpl_putenv): Use it.
71933
71934         * lib/modechange.c: Remove trailing blanks.
71935
71936         Merge from coreutils.
71937         * lib/fsusage.c: Remove declaration of statfs.
71938         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71939
71940         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71941
71942 2003-06-06  Jim Meyering  <jim@meyering.net>
71943
71944         * lib/stdbool_.h: Renamed from stdbool.h.in.
71945
71946 2003-06-06  Jim Meyering  <jim@meyering.net>
71947             Bruno Haible  <bruno@clisp.org>
71948
71949         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71950         Adjust Makefile.am snippet not to redirect directly to target.
71951         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71952
71953 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71954
71955         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71956         mismatch, look in future quarters as well as past.  This fixes a
71957         bug when processing fall-backwards gaps immediately after a long
71958         period of daylight-saving time.
71959
71960         * lib/mktime.c: Assume freestanding C89 or better.
71961         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71962         (__P): Remove; not used.
71963         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71964         (mktime, not_equal_tm, print_tm, check_result,
71965         main): Use prototypes.  Use const * where appropriate.
71966         (main): Fix typo in testing code that uncovered by above changes.
71967         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71968
71969 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71970
71971         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71972         locale.h, localeconv.  This merges changes from coreutils.
71973
71974         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71975         It can be removed after the next Autoconf is released.
71976         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71977         needed.
71978
71979 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71980
71981         * lib/mktime.c: Fix Debian bug 177940
71982         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71983         (localtime_offset): Now long int, not time_t, because we want it
71984         to be guaranteed to be signed.  All uses changed.
71985         (__mktime_internal): If overflow would occur when adding offset,
71986         don't add it.
71987
71988         Merge 'human' changes from coreutils.  Rewrite to support
71989         locale-specific notations like thousands separators.
71990         * lib/human.c: Simplify authorship notice.
71991         Include human.h immediately after config.h.
71992         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71993         <limits.h>: Do not include, since human.h does.
71994         (SIZE_MAX, UINTMAX_MAX): New macros.
71995         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71996         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71997         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71998         (power_letter): Renamed from suffixes.
71999         (generate_suffix_backwards): Remove.
72000         (adjust_value): Now takes int style (because of human.h changes)
72001         and long double value (for greater precision on some platforms).
72002         (group_number): New function.
72003         (human_readable): Use it.  Use integer options, not enum.
72004         Put the options before the sizes in the arg list.
72005         Support all the new options.
72006         The old human_readable function has been removed;
72007         use inttostr.h instead.
72008         (human_readable, default_block_size, humblock):
72009         Use uintmax_t, not int, for block sizes.
72010         (human_readable_inexact, block_size_types): Remove.
72011         (block_size_opts): New constant.
72012         (human_options): Renamed from human_block_size, with new signature
72013         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72014         * lib/human.h: Add copyright and authorship notice.
72015         Include <limits.h> and <stdbool.h> unconditionally.
72016         (PARAMS): Remove.  All uses removed.
72017         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72018         (enum human_inexact_style): Remove tag; now a nameless enum.
72019         (human_floor, human_ceiling, human_round_to_even): Now have
72020         values 2, 0, 1 rather than -1, 1, 0.
72021         (human_group_digits, human_suppress_point_zero, human_autoscale,
72022         human_base_1024, human_SI, human_B): New constants.
72023         (human_readable_inexact, human_block_size): Remove.
72024         (human_readable): Size args are now uintmax_t, not int.
72025         (human_options): New decl.
72026
72027         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72028         unnecessary now that we assume C89 or better.  This change
72029         imported from coreutils.
72030
72031         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72032         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72033         in the 2003-05-30 sync from glibc.
72034
72035         .h files should stand alone, but we shouldn't include <sys/types.h>
72036         if we can get away with just <stddef.h>.
72037
72038         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72039         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72040         rather than <sys/types.h>, as we merely need size_t.
72041         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72042         to get size_t.
72043         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72044         Include <stdio.h>, to get FILE.
72045         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72046         memcasecmp.h has included <stddef.h> and all we need is size_t.
72047         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72048         our interface, instead of including <sys/types.h>
72049
72050 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72051
72052         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72053         now, as glibc mktime is buggy on non-glibc systems.
72054
72055 2003-06-03  Karl Berry  <karl@gnu.org>
72056
72057         * config/config.sub: update from prep.
72058
72059 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72060
72061         [from coreutils]
72062         Fix some minor time-related bugs with POSIX time arguments.
72063         Some valid time stamps were being rejected (notably -1, and
72064         time stamps before 1900 on 64-bit hosts).  And some invalid
72065         time stamps were being accepted, e.g. September 31.
72066
72067         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72068         that we can return (time_t) -1 successfully.
72069         * lib/posixtm.c: Likewise.
72070         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72071         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72072         (t): Remove static var.
72073         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72074         of static var.  All uses changed.
72075         (year): Do not reject years before 1900; they can occur with
72076         64-bit time_t.
72077         (posix_time_parse): Do not check for out-of-range components;
72078         that is now the caller's responsibility, since our checks were
72079         only approximations.
72080         (posixtime): Use mktime to check for out-of-range components,
72081         since it knows them exactly.
72082         If mktime returns (time_t) -1, check whether an error actually occurred
72083         by invoking localtime on -1.
72084         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72085         posixtime failures better.
72086         Improve the test data (in comments only).
72087
72088 2003-06-02  Karl Berry  <karl@gnu.org>
72089
72090         * config/mkinstalldirs (version): new variable.
72091         (--version): new option.
72092         (usage): improve message.
72093
72094 2003-05-30  Karl Berry  <karl@gnu.org>
72095
72096         * lib/mktime.c: update from libc.
72097
72098 2003-05-30  Bruno Haible  <bruno@clisp.org>
72099
72100         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72101         * config/config.rpath: Upgrade to gettext-0.12.1.
72102
72103 2003-05-30  Bruno Haible  <bruno@clisp.org>
72104
72105         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72106         * m4/nls.m4: New file, from gettext-0.12.1.
72107         * m4/po.m4: New file, from gettext-0.12.1.
72108         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72109
72110 2003-05-30  Bruno Haible  <bruno@clisp.org>
72111
72112         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72113         * lib/localcharset.h: Likewise.
72114         * lib/localcharset.c: Likewise.
72115
72116 2003-05-29  Karl Berry  <karl@gnu.org>
72117
72118         * config/config.rpath: update from gettext.
72119
72120 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72121
72122         Assume the headers required for C89 freestanding compilers.
72123         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72124         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72125         * m4/human.m4 (gl_HUMAN): Likewise.
72126         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72127         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72128         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72129         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72130         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72131         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72132
72133 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72134
72135         Assume the headers required for C89 freestanding compilers.
72136         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72137         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72138         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72139         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72140         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72141         define, since <limits.h> is guaranteed to do that.
72142         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72143         * lib/exclude.c: Include <stdbool.h> unconditionally.
72144         * lib/tempname.c: Include <stddef.h> unconditionally.
72145         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72146         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72147         <stddef.h> does that.
72148         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72149         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72150         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72151         needed.
72152         * lib/xstrtol.c: Likewise.
72153         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72154         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72155
72156         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72157         warnings on some platforms.
72158
72159         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72160         arbitrarily.
72161
72162 2003-05-26  Jim Meyering  <jim@meyering.net>
72163
72164         Merge in a change from coreutils:
72165         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72166         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72167         that condition, rather than `-1' which is slightly misleading.
72168         Change the name of the cache variable to have the gl_ prefix.
72169         Prompted by a patch from Richard Dawe for DJGPP.
72170
72171 2003-05-24  Karl Berry  <karl@gnu.org>
72172
72173         * config/config.guess: update from prep.
72174
72175 2003-05-22  Karl Berry  <karl@gnu.org>
72176
72177         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72178
72179 2003-05-20  Karl Berry  <karl@gnu.org>
72180
72181         * config/config.guess: update from prep.
72182
72183 2003-05-18  Karl Berry  <karl@gnu.org>
72184
72185         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72186         might actually be set by the user.
72187
72188         * config/depcomp, install-sh, mdate-sh: update from automake.
72189
72190 2003-05-17  Bruno Haible  <bruno@clisp.org>
72191
72192         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72193         invalid expansion for AC_EGREP_CPP.
72194         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72195         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72196         Suggested by Akim Demaille <akim@epita.fr> in
72197         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72198
72199 2003-05-12  Jim Meyering  <jim@meyering.net>
72200
72201         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72202         the space-padded-by-default conversion specifiers, %e, %k, %l.
72203
72204 2003-05-12  Bruno Haible  <bruno@clisp.org>
72205
72206         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72207         the string is longer than 4 KB.
72208
72209 2003-05-11  Karl Berry  <karl@gnu.org>
72210
72211         * config/config.{guess,sub}: update from prep.
72212
72213 2003-05-09  Bruno Haible  <bruno@clisp.org>
72214
72215         * modules/error: Add m4/strerror_r.m4 to file list.
72216
72217 2003-05-03  Bruno Haible  <bruno@clisp.org>
72218
72219         Upgrade to Unicode-4.0.
72220         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72221         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72222         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72223         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72224         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72225         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72226         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72227         Change width of U+E0100..U+E01EF from 1 to 0.
72228
72229 2003-04-25  Jim Meyering  <jim@meyering.net>
72230
72231         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72232         of type size_t, not int.
72233
72234 2003-04-25  Bruno Haible  <bruno@clisp.org>
72235
72236         * lib/copy-file.c: Include <stddef.h>, for size_t.
72237
72238 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72239
72240         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72241         code which expansion is under static control.  Patch imported from
72242         Akim Demaille's patch to Bison; see
72243         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72244
72245 2003-04-14  Bruno Haible  <bruno@clisp.org>
72246
72247         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72248
72249 2003-04-11  Jim Meyering  <jim@meyering.net>
72250
72251         Merge changes from Coreutils.
72252
72253         2003-03-22  Jim Meyering  <jim@meyering.net>
72254
72255         * lib/strftime.c (widen): Cast alloca return value to proper type.
72256
72257         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72258
72259         From GNU libc.
72260         * lib/strftime.c (my_strftime): Handle very large width
72261         specifications for numeric values correctly.  Improve checks for
72262         overflow.
72263
72264         2003-01-19  Jim Meyering  <jim@meyering.net>
72265
72266         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72267         definitions.
72268         (nl_get_alt_digit) [! defined my_strftime]: Define.
72269         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72270         _nl_get_alt_digit and _nl_get_walt_digit.
72271
72272         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72273         libc. These changes have no effect outside of _LIBC.
72274
72275 2003-04-10  Bruno Haible  <bruno@clisp.org>
72276
72277         * modules/findprog: New file.
72278         * MODULES.html.sh (func_all_modules): Add it.
72279
72280 2003-04-10  Bruno Haible  <bruno@clisp.org>
72281
72282         * m4/findprog.m4: New file.
72283         * m4/eaccess.m4: New file.
72284
72285 2003-04-10  Bruno Haible  <bruno@clisp.org>
72286
72287         * lib/findprog.h: New file, from GNU gettext.
72288         * lib/findprog.c: New file, from GNU gettext.
72289
72290 2003-04-05  Jim Meyering  <jim@meyering.net>
72291
72292         Merge changes from Coreutils.
72293
72294         * lib/exclude.h (PARAMS): Remove definition and uses.
72295         * lib/exclude.c: Remove uses of `PARAMS'.
72296
72297         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72298         Add test-cases for DOS filenames. Declare program_name.
72299         (main): Set up program_name.  Patch by Rich Dawe.
72300
72301         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72302         error from mntctl.
72303         Use mntctl's return value to drive the entry-processing loop, since
72304         we can't rely on the value of the vmt_length member in the last
72305         entry.  On some systems doing so could result in exhausting
72306         virtual memory.  Based in part on a patch from Mike Jetzer.
72307
72308 2003-04-04  Bruno Haible  <bruno@clisp.org>
72309
72310         * modules/linebreak: New file.
72311         * MODULES.html.sh (func_all_modules): Add it.
72312
72313 2003-04-04  Bruno Haible  <bruno@clisp.org>
72314
72315         * m4/linebreak.m4: New file.
72316
72317 2003-04-04  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/linebreak.h: New file, from GNU gettext.
72320         * lib/linebreak.c: New file, from GNU gettext with slight
72321         modifications.
72322         * lib/lbrkprop.h: New file, from GNU gettext.
72323
72324 2003-04-03  Bruno Haible  <bruno@clisp.org>
72325
72326         * modules/utf8-ucs4: New file.
72327         * modules/utf16-ucs4: New file.
72328         * modules/ucs4-utf8: New file.
72329         * modules/ucs4-utf16: New file.
72330         * MODULES.html.sh (func_all_modules): Add them.
72331
72332 2003-04-03  Bruno Haible  <bruno@clisp.org>
72333
72334         * m4/utf-ucs4.m4: New file.
72335         * m4/ucs4-utf.m4: New file.
72336
72337 2003-04-03  Bruno Haible  <bruno@clisp.org>
72338
72339         * lib/utf8-ucs4.h: New file, from GNU gettext.
72340         * lib/utf16-ucs4.h: New file, from GNU gettext.
72341         * lib/ucs4-utf8.h: New file, from GNU gettext.
72342         * lib/ucs4-utf16.h: New file, from GNU gettext.
72343
72344 2003-04-02  Bruno Haible  <bruno@clisp.org>
72345
72346         * modules/binary-io: New file.
72347         * MODULES.html.sh (func_all_modules): Add it.
72348
72349 2003-04-02  Bruno Haible  <bruno@clisp.org>
72350
72351         * lib/binary-io.h: New file, from GNU gettext.
72352
72353 2003-04-01  Bruno Haible  <bruno@clisp.org>
72354
72355         * modules/pathname: New file.
72356         * MODULES.html.sh (func_all_modules): Add it.
72357
72358 2003-04-01  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/pathname.h: New file, from GNU gettext.
72361         * lib/concatpath.c: New file, from GNU gettext.
72362
72363 2003-03-30  Bruno Haible  <bruno@clisp.org>
72364
72365         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72366
72367 2003-03-30  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72370         function chown() doesn't exist.
72371
72372 2003-03-28  Bruno Haible  <bruno@clisp.org>
72373
72374         * modules/copy-file: New file.
72375         * MODULES.html.sh (func_all_modules): Add it.
72376
72377 2003-03-28  Bruno Haible  <bruno@clisp.org>
72378
72379         * m4/copy-file.m4: New file.
72380
72381 2003-03-28  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/copy-file.h: New file, from GNU gettext.
72384         * lib/copy-file.c: New file, from GNU gettext.
72385
72386 2003-03-18  Jim Meyering  <jim@meyering.net>
72387
72388         * lib/quote.c (quote_n): Fix typo in comment.
72389
72390 2003-03-18  Bruno Haible  <bruno@clisp.org>
72391
72392         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72393         checking.
72394         * m4/onceonly_2_57.m4: Likewise.
72395
72396 2003-03-17  Bruno Haible  <bruno@clisp.org>
72397
72398         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72399         (m4_quote): Remove macro.
72400         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72401
72402 2003-03-14  Jim Meyering  <jim@meyering.net>
72403
72404         Merge changes from Coreutils.
72405         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72406         to be const, in order to avoid warnings.
72407         (obstack_room): Likewise.
72408         (obstack_empty_p): Likewise.
72409
72410 2003-03-14  Bruno Haible  <bruno@clisp.org>
72411
72412         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72413         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72414
72415 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72416
72417         Merge changes from Bison.
72418         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72419         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72420         when compiling Bison 1.875's `bitset bset = obstack_alloc
72421         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72422         * lib/hash.c: Include <stdbool.h> unconditionally.
72423
72424 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72425
72426         * m4/onceonly.m4 (m4_quote): New macro.
72427         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72428         Quote AC_FOREACH variable-expansions properly.
72429
72430 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72431
72432         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72433
72434 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72435
72436         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72437         Reported by Bruce Becker; see:
72438         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72439
72440 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72441             Bruno Haible  <bruno@clisp.org>
72442
72443         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72444         Reported by John Hughes, see
72445         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72446
72447 2003-02-20  Bruno Haible  <bruno@clisp.org>
72448
72449         * MODULES.html.sh (func_all_modules): Add poll.
72450
72451 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72452
72453         * modules/poll: New file.
72454
72455 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72456
72457         * lib/poll_.h: New file.
72458         * lib/poll.c: New file.
72459
72460 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72461
72462         * m4/poll.m4: New file.
72463
72464 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72465
72466         * modules/mathl: New file.
72467
72468 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72469
72470         * lib/mathl.h: New file.
72471         * lib/acosl.c: New file.
72472         * lib/asinl.c: New file.
72473         * lib/atanl.c: New file.
72474         * lib/ceill.c: New file.
72475         * lib/cosl.c: New file.
72476         * lib/expl.c: New file.
72477         * lib/floorl.c: New file.
72478         * lib/frexpl.c: New file.
72479         * lib/ldexpl.c: New file.
72480         * lib/logl.c: New file.
72481         * lib/sincosl.c: New file.
72482         * lib/sinl.c: New file.
72483         * lib/sqrtl.c: New file.
72484         * lib/tanl.c: New file.
72485         * lib/trigl.c: New file.
72486         * lib/trigl.h: New file.
72487
72488 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72489
72490         * m4/mathl.m4: New file.
72491
72492 2003-02-18  Bruno Haible  <bruno@clisp.org>
72493
72494         * MODULES.html.sh (func_all_modules): Add mathl.
72495
72496 2003-02-17  Bruno Haible  <bruno@clisp.org>
72497
72498         * modules/mkdtemp: New module.
72499         * MODULES.html.sh (func_all_modules): Add it.
72500
72501 2003-02-17  Bruno Haible  <bruno@clisp.org>
72502
72503         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72504
72505 2003-02-17  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/mkdtemp.h: New file, from GNU gettext.
72508         * lib/mkdtemp.c: New file, from GNU gettext.
72509
72510 2003-02-02  Jim Meyering  <jim@meyering.net>
72511
72512         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72513         e.g. glibc-2.2.93.
72514
72515 2003-01-31  Bruno Haible  <bruno@clisp.org>
72516
72517         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72518         'rpl_rename'.
72519         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72520         'rpl_strnlen'.
72521         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72522         'rpl_strtod'.
72523         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72524         'rpl_utime'.
72525
72526 2003-01-31  Bruno Haible  <bruno@clisp.org>
72527
72528         * lib/rename.c: #undef rename before defining rpl_rename.
72529         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72530
72531 2003-01-30  Bruno Haible  <bruno@clisp.org>
72532
72533         * modules/vasnprintf, modules/vasprintf: New modules.
72534         * MODULES.html.sh (func_all_modules): Add them.
72535
72536 2003-01-30  Bruno Haible  <bruno@clisp.org>
72537
72538         * m4/signed.m4: New file, from GNU gettext.
72539         * m4/longdouble.m4: New file, from GNU gettext.
72540         * m4/wchar_t.m4: New file, from GNU gettext.
72541         * m4/wint_t.m4: New file, from GNU gettext.
72542         * m4/vasnprintf.m4: New file.
72543         * m4/vasprintf.m4: New file.
72544
72545 2003-01-30  Bruno Haible  <bruno@clisp.org>
72546
72547         * lib/printf-args.h: New file, from GNU gettext.
72548         * lib/printf-args.c: New file, from GNU gettext.
72549         * lib/printf-parse.h: New file, from GNU gettext.
72550         * lib/printf-parse.c: New file, from GNU gettext.
72551         * lib/vasnprintf.h: New file, from GNU gettext.
72552         * lib/vasnprintf.c: New file, from GNU gettext.
72553         * lib/asnprintf.c: New file, from GNU gettext.
72554         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72555         * lib/vasprintf.c: New file, from GNU gettext.
72556         * lib/asprintf.c: New file, from GNU gettext.
72557
72558 2003-01-29  Bruno Haible  <bruno@clisp.org>
72559
72560         * modules/stpncpy: New module.
72561         * MODULES.html.sh (func_all_modules): Add it.
72562
72563 2003-01-29  Bruno Haible  <bruno@clisp.org>
72564
72565         * m4/stpncpy.m4: New file.
72566
72567 2003-01-29  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72570         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72571
72572 2003-01-28  Bruno Haible  <bruno@clisp.org>
72573
72574         * modules/c-ctype: New module.
72575         * MODULES.html.sh (func_all_modules): Add it.
72576
72577 2003-01-28  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72580         Paul Eggert.
72581         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72582         Paul Eggert.
72583
72584 2003-01-27  Bruno Haible  <bruno@clisp.org>
72585
72586         * modules/xsetenv: New module.
72587         * MODULES.html.sh (func_all_modules): Add it.
72588
72589 2003-01-27  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/xsetenv.h: New file, from GNU gettext.
72592         * lib/xsetenv.c: New file, from GNU gettext.
72593
72594 2003-01-23  Jim Meyering  <jim@meyering.net>
72595
72596         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72597         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72598
72599 2003-01-23  Bruno Haible  <bruno@clisp.org>
72600
72601         * modules/minmax: New module.
72602         * MODULES.html.sh (func_all_modules): Add it.
72603
72604 2003-01-23  Bruno Haible  <bruno@clisp.org>
72605
72606         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72607         Eggert.
72608
72609 2003-01-22  Bruno Haible  <bruno@clisp.org>
72610
72611         * modules/exit: New module.
72612         * MODULES.html.sh (func_all_modules): Add it.
72613
72614 2003-01-22  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/exit.h: New file, from GNU gettext.
72617
72618 2003-01-19  Bruno Haible  <bruno@clisp.org>
72619
72620         * gnulib-tool: Recognize option --extract-maintainer.
72621         (func_get_maintainer): New function.
72622         * modules/*: Add Maintainer entry.
72623
72624 2003-01-16  Jim Meyering  <jim@meyering.net>
72625
72626         * m4/regex.m4: The `regex' struct is both input and output.
72627         Initialize it before each use.  Patch by Tim Waugh.
72628
72629 2003-01-16  Bruno Haible  <bruno@clisp.org>
72630
72631         * MODULES.html.sh: Add a table of contents. Add the module name as
72632         leftmost column. Add hyperlinks.
72633
72634 2003-01-15  Bruno Haible  <bruno@clisp.org>
72635
72636         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72637
72638 2003-01-15  Bruno Haible  <bruno@clisp.org>
72639
72640         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72641         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72642         suffix.
72643
72644 2003-01-15  Bruno Haible  <bruno@clisp.org>
72645
72646         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72647
72648 2003-01-15  Bruno Haible  <bruno@clisp.org>
72649
72650         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72651         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72652
72653 2003-01-14  Jim Meyering  <jim@meyering.net>
72654
72655         * lib/same.c (same_name): Tweak a comment.
72656
72657 2003-01-14  Bruno Haible  <bruno@clisp.org>
72658
72659         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72660         when a string comparison is sufficient.
72661
72662 2003-01-14  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72665         'unsigned int'.
72666
72667 2003-01-14  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/hash-pjw.c: Add comment about low quality of this function.
72670
72671 2003-01-13  Bruno Haible  <bruno@clisp.org>
72672
72673         * modules/stpcpy: Distribute lib/stpcpy.h.
72674         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72675
72676 2003-01-13  Bruno Haible  <bruno@clisp.org>
72677
72678         * modules/*: Add a description.
72679         * modules/strpbrk: Fix Makefile.am snippet.
72680         * modules/strtoimax: Fix dependencies.
72681         * modules/strtoumax: Likewise.
72682
72683 2003-01-13  Bruno Haible  <bruno@clisp.org>
72684
72685         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72686         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72687         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72688
72689 2003-01-13  Bruno Haible  <bruno@clisp.org>
72690
72691         * gnulib-tool (func_create_testdir): Store config/* files in the main
72692         directory.
72693         * config.rpath: Move to ...
72694         * config/config.rpath: ... here.
72695         * modules/gettext: Contains config/config.rpath, not config.rpath.
72696         * modules/iconv: Likewise.
72697
72698 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72699
72700         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72701         to avoid collisions with libcurses and libreadline.
72702
72703         * m4/getstr.m4: Remove.
72704         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72705
72706 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72707
72708         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72709         to avoid collisions with libcurses and libreadline.
72710
72711         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72712         * lib/getstr.h, getstr.c: Remove.
72713         * lib/getline.c: Include "getline.h", to check interface.
72714         Move body of old getstr.c here: this defines MIN_CHUNK and
72715         declares getdelim2, which is renamed from getstr.
72716         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72717
72718         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72719         All uses changed.
72720         * lib/linebuffer.h: Likewise.
72721         (readline): Remove backward-compatibility macro.
72722
72723 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72724
72725         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72726         to avoid collisions with libcurses and libreadline.
72727         * getstr: Remove.
72728         * MODULES.html.sh: Remove getstr.
72729         * modules/getline: Depend on unlocked-io, not getstr.
72730
72731 2003-01-12  Jim Meyering  <jim@meyering.net>
72732
72733         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72734
72735 2003-01-10  Bruno Haible  <bruno@clisp.org>
72736
72737         * modules/alloca: Change Makefile.am requirements. Simplify Include
72738         requirements. Add lib/alloca_.h to file list.
72739
72740 2003-01-10  Bruno Haible  <bruno@clisp.org>
72741
72742         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72743
72744 2003-01-10  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/alloca_.h: New file.
72747         * lib/getdate.y: Unconditionally include alloca.h.
72748         * lib/makepath.c: Likewise.
72749         * lib/setenv.c: Likewise.
72750         * lib/userspec.c: Likewise.
72751
72752 2003-01-09  Karl Berry  <karl@gnu.org>
72753
72754         * MODULES.html.sh: include `dirname $0` in PATH, to find
72755         gnulib-tool.
72756
72757 2003-01-09  Bruno Haible  <bruno@clisp.org>
72758
72759         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72760         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72761
72762 2003-01-09  Bruno Haible  <bruno@clisp.org>
72763
72764         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72765
72766 2003-01-09  Bruno Haible  <bruno@clisp.org>
72767
72768         * lib/stdbool.h.in: New file.
72769
72770 2003-01-09  Bruno Haible  <bruno@clisp.org>
72771
72772         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72773         * MODULES.html.sh: Likewise.
72774
72775 2003-01-08  Jim Meyering  <jim@meyering.net>
72776
72777         * lib/full-write.c: Undefine and define-away `const' after inclusion
72778         of errno.h, not before.  Suggestion from Bruno Haible.
72779
72780 2003-01-08  Bruno Haible  <bruno@clisp.org>
72781
72782         * modules/full-read: Depend on full-write.
72783
72784 2003-01-08  Bruno Haible  <bruno@clisp.org>
72785
72786         * lib/safe-read.c: Include specification header first, to ensure its
72787         selfcontainedness.
72788         * lib/full-write.c: Likewise.
72789
72790 2003-01-07  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/full-write.c: Rework so that it may serve to define full_read,
72793         too.
72794         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72795
72796 2003-01-07  Bruno Haible  <bruno@clisp.org>
72797
72798         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72799         <inttypes.h>.
72800         * lib/xstrtol.h: Likewise.
72801         * lib/xstrtoimax.c: Likewise.
72802         * lib/xstrtoumax.c: Likewise.
72803         * lib/human.h: Likewise.
72804
72805         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72806         on systems that have <inttypes.h> but not <stdint.h>.
72807
72808 2003-01-07  Bruno Haible  <bruno@clisp.org>
72809
72810         * MODULES.html.sh: Add copyright notice.
72811         (missed_files): Omit CVS directory entries.
72812         (func_module): Make it work with sed-3.02.
72813         * MODULES.txt: Remove file.
72814
72815 2003-01-06  Jim Meyering  <jim@meyering.net>
72816
72817         * lib/version-etc.c: Update year in translatable copyright string.
72818
72819 2003-01-03  Karl Berry  <karl@gnu.org>
72820
72821         * config/config.{guess,sub}: update from prep.
72822
72823 2003-01-02  Karl Berry  <karl@gnu.org>
72824
72825         * doc/COPYING.DOC: belatedly updated to 1.2.
72826
72827 2003-01-01  Karl Berry  <karl@gnu.org>
72828
72829         * gnulib-tool (func_verify_module): report module name $module in
72830         error message, not $1.
72831         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72832         be created, only if it doesn't exist.
72833         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72834
72835 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72836
72837         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72838
72839 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72840
72841         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72842         memcmp if strcoll doesn't work.
72843
72844 2002-12-31  Bruno Haible  <bruno@clisp.org>
72845
72846         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72847         nonempty.
72848
72849 2002-12-31  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/memcoll.c (STRCOLL): New macro.
72852         (memcoll): Use it.
72853
72854 2002-12-31  Bruno Haible  <bruno@clisp.org>
72855
72856         * lib/localcharset.h: New file.
72857         * lib/localcharset.c: Include it.
72858         * lib/unicodeio.c: Likewise.
72859
72860 2002-12-31  Bruno Haible  <bruno@clisp.org>
72861
72862         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72863         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72864
72865 2002-12-31  Bruno Haible  <bruno@clisp.org>
72866
72867         * lib/getline.h: Include <stddef.h>, for size_t.
72868
72869         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72870         * lib/unicodeio.c: Don't include <stddef.h>.
72871
72872 2002-12-31  Bruno Haible  <bruno@clisp.org>
72873
72874         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72875         HAVE_TM_ZONE.
72876
72877 2002-12-24  Karl Berry  <karl@gnu.org>
72878
72879         * config/config.guess: update from prep.
72880
72881 2002-12-24  Bruno Haible  <bruno@clisp.org>
72882
72883         General infrasructure.
72884         * m4/README: Rewritten.
72885         * m4/onceonly.m4: New file.
72886         * m4/onceonly_2_57.m4: New file.
72887
72888         Module atexit.
72889         * m4/atexit.m4: New file.
72890
72891         Module strtod.
72892         * m4/strtod.m4: New file.
72893
72894         Module strtol.
72895         * m4/strtol.m4: New file.
72896
72897         Module strtoul.
72898         * m4/strtoul.m4: New file.
72899
72900         Module memchr.
72901         * m4/memchr.m4: New file.
72902
72903         Module memcmp.
72904         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72905         (jm_FUNC_MEMCMP): Invoke it.
72906
72907         Module memcpy.
72908         * m4/memcpy.m4: New file.
72909
72910         Module memmove.
72911         * m4/memmove.m4: New file.
72912
72913         Module memset.
72914         * m4/memset.m4: New file.
72915
72916         Module strcspn.
72917         * m4/strcspn.m4: New file.
72918
72919         Module strpbrk.
72920         * m4/strpbrk.m4: New file.
72921
72922         Module strstr.
72923         * m4/strstr.m4: New file.
72924
72925         Module strerror.
72926         * m4/strerror.m4: New file.
72927
72928         Module mktime.
72929         * m4/mktime.m4: Renamed from jm-mktime.m4.
72930         (gl_PREREQ_MKTIME): New macro.
72931         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72932
72933         Module malloc.
72934         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72935         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72936         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72937
72938         Module realloc.
72939         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72940         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72941         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72942
72943         Module strftime.
72944         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72945         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72946         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72947         gl_TM_GMTOFF.
72948         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72949
72950         Module xalloc.
72951         * m4/xalloc.m4: New file.
72952
72953         Module alloca.
72954         * m4/alloca.m4: New file.
72955
72956         Module putenv.
72957         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72958         (jm_FUNC_PUTENV): Invoke it.
72959
72960         Module setenv.
72961         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72962         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72963         when invoked twice.
72964         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72965         gt_FUNC_SETENV.
72966
72967         Module memrchr.
72968         * m4/memrchr.m4: New file.
72969
72970         Module stpcpy.
72971         * m4/stpcpy.m4: New file.
72972
72973         Module strcase.
72974         * m4/strcase.m4: New file.
72975
72976         Module strdup.
72977         * m4/strdup.m4: New file.
72978
72979         Module strnlen.
72980         * m4/strnlen.m4: New file.
72981
72982         Module strndup.
72983         * m4/strndup.m4: New file.
72984
72985         Module xstrtod.
72986         * m4/xstrtod.m4: New file.
72987
72988         Module xstrtol.
72989         * m4/xstrtol.m4: New file.
72990
72991         Module getdate.
72992         * m4/getdate.m4: New file.
72993
72994         Module unlocked-io.
72995         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72996         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72997         * m4/jm-glibc-io.m4n: Remove file.
72998
72999         Module long-options.
73000         * m4/long-options.m4: New file.
73001
73002         Module md5.
73003         * m4/md5.m4: New file.
73004
73005         Module sha.
73006         * m4/sha.m4: New file.
73007
73008         Module getstr.
73009         * m4/getstr.m4: New file.
73010
73011         Module getline.
73012         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73013         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73014         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73015         simply getline. Infoke gl_PREREQ_GETLINE.
73016
73017         Module obstack.
73018         * m4/obstack.m4: New file.
73019
73020         Module hash.
73021         * m4/hash.m4: New file.
73022
73023         Module readtokens.
73024         * m4/readtokens.m4: New file.
73025
73026         Module strverscmp.
73027         * m4/strverscmp.m4: New file.
73028
73029         Module stdbool.
73030         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73031         OSF/1.
73032
73033         Module strtoll.
73034         * m4/strtoll.m4: New file.
73035
73036         Module strtoull.
73037         * m4/strtoull.m4: New file.
73038
73039         Module strtoimax.
73040         * m4/strtoimax.m4: New file.
73041
73042         Module strtoumax.
73043         * m4/strtoumax.m4: New file.
73044
73045         Module xstrtoimax.
73046         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73047         jm_AC_PREREQ_XSTRTOIMAX.
73048         Moved the strtol prerequisites to strtol.m4.
73049         Moved the strtoll prerequisites to strtoll.m4.
73050         Moved the strtoimax prerequisites to strtoimax.m4.
73051
73052         Module xstrtoumax.
73053         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73054         jm_AC_PREREQ_XSTRTOUMAX.
73055         Moved the strtoul prerequisites to strtoul.m4.
73056         Moved the strtoull prerequisites to strtoull.m4.
73057         Moved the strtoumax prerequisites to strtoumax.m4.
73058
73059         Module chown.
73060         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73061         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73062
73063         Module dup2.
73064         * m4/dup2.m4: New file.
73065
73066         Module ftruncate.
73067         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73068         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73069
73070         Module getgroups.
73071         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73072         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73073
73074         Module gettimeofday.
73075         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73076         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73077         gl_PREREQ_GETTIMEOFDAY.
73078
73079         Module mkdir.
73080         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73081         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73082
73083         Module mkstemp.
73084         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73085         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73086         jm_AC_TYPE_UINTMAX_T.
73087         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73088
73089         Module stat.
73090         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73091         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73092
73093         Module lstat.
73094         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73095         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73096
73097         Module timespec.
73098         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73099         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73100         * m4/st_mtim.m4: Indentation.
73101
73102         Module nanosleep.
73103         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73104         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73105         gl_PREREQ_NANOSLEEP.
73106
73107         Module regex.
73108         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73109         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73110         (gl_REGEX): New macro.
73111
73112         Module rename.
73113         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73114         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73115
73116         Module rmdir.
73117         * m4/rmdir.m4: New file.
73118
73119         Module utime.
73120         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73121         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73122         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73123
73124         Module dirname.
73125         * m4/dirname.m4: New file.
73126
73127         Module getopt.
73128         * m4/getopt.m4: New file.
73129
73130         Module unistd-safer.
73131         * m4/unistd-safer.m4: New file.
73132
73133         Module fnmatch.
73134         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73135         declaration.
73136         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73137         (gl_FUNC_FNMATCH_POSIX): New macro.
73138         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73139         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73140         simply fnmatch.
73141
73142         Module exclude.
73143         * m4/exclude.m4: New file.
73144
73145         Module human.
73146         * m4/human.m4: New file.
73147
73148         Module acl.
73149         * m4/acl.m4: Nop.
73150
73151         Module backupfile.
73152         * m4/backupfile.m4: New file.
73153         * m4/d-ino.m4: Indentation.
73154
73155         Module fsusage.
73156         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73157         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73158         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73159
73160         Module dirfd.
73161         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73162         requirements.
73163
73164         Module euidaccess.
73165         * m4/euidaccess.m4: New file.
73166
73167         Module file-type.
73168         * m4/file-type.m4: New file.
73169
73170         Module fileblocks.
73171         * m4/fileblocks.m4: New file.
73172
73173         Module filemode.
73174         * m4/filemode.m4: New file.
73175
73176         Module isdir.
73177         * m4/isdir.m4: New file.
73178
73179         Module lchown.
73180         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73181         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73182
73183         Module makepath.
73184         * m4/makepath.m4: New file.
73185
73186         Module modechange.
73187         * m4/modechange.m4: New file.
73188
73189         Module mountlist.
73190         * m4/mountlist.m4: New file.
73191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73192         Indentation.
73193
73194         Module path-concat.
73195         * m4/path-concat.m4: New file.
73196
73197         Module pathmax.
73198         * m4/pathmax.m4: New file.
73199
73200         Module same.
73201         * m4/same.m4: New file.
73202
73203         Module save-cwd.
73204         * m4/save-cwd.m4: New file.
73205
73206         Module savedir.
73207         * m4/savedir.m4: New file.
73208
73209         Module xgetcwd.
73210         * m4/xgetcwd.m4: New file.
73211         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73212
73213         Module xreadlink.
73214         * m4/xreadlink.m4: New file.
73215
73216         Module safe-read.
73217         * m4/safe-read.m4: New file.
73218
73219         Module safe-write.
73220         * m4/safe-write.m4: New file.
73221
73222         Module closeout.
73223         * m4/closeout.m4: New file.
73224
73225         Module stdio-safer.
73226         * m4/stdio-safer.m4: New file.
73227
73228         Module getpass.
73229         * m4/getpass.m4: New file.
73230
73231         Module getugroups.
73232         * m4/getugroups.m4: New file.
73233
73234         Module group-member.
73235         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73236         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73237
73238         Module idcache.
73239         * m4/idcache.m4: New file.
73240
73241         Module userspec.
73242         * m4/userspec.m4: New file.
73243
73244         Module gettime.
73245         * m4/clock_time.m4: New file.
73246         * m4/gettime.m4: New file.
73247
73248         Module settime.
73249         * m4/settime.m4: New file.
73250
73251         Module posixtm.
73252         * m4/posixtm.m4: New file.
73253
73254         Module gethostname.
73255         * m4/gethostname.m4: New file.
73256
73257         Module canon-host.
73258         * m4/canon-host.m4: New file.
73259
73260         Module gettext.
73261         * m4/codeset.m4: New file, from gettext-0.11.5.
73262         * m4/gettext.m4: New file, from gettext-0.11.5.
73263         * m4/glibc21.m4: New file, from gettext-0.11.5.
73264         * m4/iconv.m4: New file, from gettext-0.11.5.
73265         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73266         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73267         * m4/inttypes.m4: New file, from gettext-0.11.5.
73268         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73269         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73270         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73271         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73272         * m4/lib-link.m4: New file, from gettext-0.11.5.
73273         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73274         * m4/progtest.m4: New file, from gettext-0.11.5.
73275         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73276         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73277         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73278
73279         Module localcharset.
73280         * m4/localcharset.m4: New file.
73281
73282         Module hard-locale.
73283         * m4/hard-locale.m4: New file.
73284
73285         Module mbswidth.
73286         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73287         onceonly macros.
73288         * m4/mbrtowc.m4: Add comment.
73289
73290         Module memcasecmp.
73291         * m4/memcasecmp.m4: New file.
73292
73293         Module memcoll.
73294         * m4/memcoll.m4: New file.
73295
73296         Module unicodeio.
73297         * m4/unicodeio.m4: New file.
73298
73299         Module rpmatch.
73300         * m4/rpmatch.m4: New file.
73301
73302         Module yesno.
73303         * m4/yesno.m4: New file.
73304
73305         Module exitfail.
73306         * m4/exitfail.m4: New file.
73307
73308         Module c-stack.
73309         * m4/c-stack.m4 (gl_C_STACK): New macro.
73310         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73311
73312         Module error.
73313         * m4/error.m4 (gl_ERROR): New macro.
73314         (jm_PREREQ_ERROR): Use onceonly macros.
73315
73316         Module fatal.
73317         * m4/fatal.m4: New file.
73318
73319         Module getloadavg.
73320         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73321         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73322
73323         Module getpagesize.
73324         * m4/getpagesize.m4: New file.
73325
73326         Module getusershell.
73327         * m4/getusershell.m4: New file.
73328
73329         Module physmem.
73330         * m4/physmem.m4: New file.
73331
73332         Module posixver.
73333         * m4/posixver.m4: New file.
73334
73335         Module quotearg.
73336         * m4/quotearg.m4: New file.
73337
73338         Module quote.
73339         * m4/quote.m4: New file.
73340
73341         Module readutmp.
73342         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73343
73344         Module sig2str.
73345         * m4/sig2str.m4: New file.
73346
73347         Other.
73348         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73349         ulonglong.m4.
73350         * m4/intmax_t.m4: New file.
73351         * m4/d-type.m4: Indentation.
73352         * m4/jm-macros.m4: Update.
73353         * m4/prereq.m4 (jm_PREREQ): Update.
73354         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73355         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73356         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73357         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73358         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73359         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73360         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73361         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73362         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73363         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73364         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73365         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73366         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73367         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73368         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73369         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73370         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73371         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73372         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73373
73374 2002-12-24  Bruno Haible  <bruno@clisp.org>
73375
73376         * MODULES.txt: Update according to m4/ changes.
73377
73378         Module gettext.
73379         * config.rpath: New file, from gettext-0.11.5.
73380
73381         * modules/*: New module descriptions.
73382         * gnulib-tool: New file.
73383         * MODULES.html.sh: New file.
73384
73385 2002-12-21  Karl Berry  <karl@gnu.org>
73386
73387         * doc/fdl.texi: update to version 1.2.
73388
73389 2002-12-19  Karl Berry  <karl@gnu.org>
73390
73391         * config/config.guess: update from prep.
73392
73393 2002-12-18  Bruno Haible  <bruno@clisp.org>
73394
73395         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73396         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73397
73398 2002-12-17  Bruno Haible  <bruno@clisp.org>
73399
73400         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73401         stdlib.h, string.h.
73402
73403 2002-12-17  Bruno Haible  <bruno@clisp.org>
73404
73405         * lib/canon-host.c (strdup): Remove unused declaration.
73406
73407         * lib/fsusage.c: Include full_read.h.
73408         (get_fs_usage): Use full_read instead of safe_read.
73409
73410         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73411
73412 2002-12-12  Karl Berry  <karl@gnu.org>
73413
73414         * config/config.guess: update from prep.
73415
73416 2002-12-11  Bruno Haible  <bruno@clisp.org>
73417
73418         * m4/setenv.m4: New file, from gettext-0.11.5.
73419
73420 2002-12-11  Bruno Haible  <bruno@clisp.org>
73421
73422         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73423         not unsetenv().
73424         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73425         modifications:
73426
73427         2002-12-11  Bruno Haible  <bruno@clisp.org>
73428
73429                 * setenv.c (alloca): Fall back to malloc.
73430                 (freea): New macro.
73431                 (setenv): Use freea() to free memory allocated with alloca().
73432
73433         2002-11-13  Bruno Haible  <bruno@clisp.org>
73434
73435                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73436                 function declarations.
73437                 * unsetenv.c (unsetenv): Likewise.
73438
73439         2002-03-04  Bruno Haible  <bruno@clisp.org>
73440
73441                 Portability to AIX 4.3.3.
73442                 * unsetenv.c: New file, extracted from setenv.c.
73443                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73444
73445         2001-12-20  Bruno Haible  <bruno@clisp.org>
73446
73447                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73448                 use malloc instead. For SunOS 4.
73449
73450         2001-12-11  Bruno Haible  <bruno@clisp.org>
73451
73452                 * setenv.c: Declare alloca.
73453                 (compar_fn_t): New typedef.
73454                 (KNOWN_VALUE, STORE_VALUE): Use it.
73455
73456         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73457         setenv.h.
73458
73459 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73460
73461         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73462         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73463         Choose values that are less likely to collide with system fnmatch
73464         options.
73465         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73466         defined (e.g., a pure POSIX system).
73467         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73468         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73469
73470 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73471
73472         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73473         a pain in practice to deal with generated m4 files.  This change
73474         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73475
73476         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73477         and jm-glibc-io.m4, as they are no longer a special case.
73478         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73479         kludge and the auto-generation stuff.  Check only whether the
73480         functions are declared, not whether they exist, since older hosts
73481         that don't declare the functions can't use the optimization anyway.
73482
73483 2002-12-06  Jim Meyering  <jim@meyering.net>
73484
73485         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73486
73487         Merge in changes from libc's misc/error.c, in preparation
73488         for the merge of gnulib's changes back into libc.
73489
73490         * lib/error.c (_): Define only if not already defined.
73491         Move definition to follow all #include directives.
73492         Include unlocked-io.h only if !_LIBC.
73493         [_LIBC]: Include <libio/libioP.h>.
73494         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73495         (fflush): Tweak definition to use INTUSE.
73496         (putc): Define.
73497
73498 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73499
73500         * lib/alloca.c [defined emacs]: Include "lisp.h".
73501         (xalloc_die) [defined emacs]: New macro.
73502         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73503         [! defined emacs]: Include <xalloc.h>.
73504         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73505         (pointer): Typedef to POINTER_TYPE *.
73506         (malloc): Remove decl; we now always use xmalloc.
73507         (alloca): Use old-style definition, since Emacs needs this.
73508         Check for arithmetic overflow when computing combined size.
73509
73510 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73511
73512         Do not generate unlocked-io.h automatically, since it's easier to
73513         maintain it by hand.
73514
73515         * lib/unlocked-io.h: New file, from GNU diffutils,
73516         but with proper copyright notice and attribution.
73517         * lib/gen-uio: Remove.
73518         * lib/Makefile.am: Add copyright notice.
73519         (libfetish_a_SOURCES): Add unlocked-io.h.
73520         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73521         (DISTCLEANFILES, io_functions): Remove macros.
73522         (EXTRA_DIST): Remove gen_uio.
73523         (unlocked-io.h): Remove rule.
73524
73525 2002-12-04  Jim Meyering  <jim@meyering.net>
73526
73527         Reflect the fact that stat.c and lstat.c are no longer generated.
73528         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73529         (DISTCLEANFILES): Likewise.
73530         (EXTRA_DIST): Likewise.
73531         (all_local): Don't depend on stat.c or lstat.c.
73532         (stat.c, lstat.c): Remove rules.
73533         (EXTRA_DIST): Remove xstat.in.
73534
73535         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73536         * lib/stat.c: New file.  Contents mostly from xstat.in.
73537         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73538         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73539
73540         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73541         too.
73542         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73543
73544 2002-12-03  Jim Meyering  <jim@meyering.net>
73545
73546         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73547         but not semantics, to minimize the differences between these two files.
73548         (safe_read): Change comment to mention SAFE_READ_ERROR.
73549
73550         * lib/safe-read.c (IS_EINTR): Define.
73551         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73552
73553 2002-12-02  Jim Meyering  <jim@meyering.net>
73554
73555         * lib/safe-read.c (EINTR): Define.
73556         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73557         (INT_MAX): Provide fallback.
73558         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73559
73560         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73561
73562 2002-12-02  Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73565         Define, taken from safe-read.c.
73566         (INT_MAX): Provide fallback.
73567         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73568         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73569
73570         * lib/safe-read.c (EINTR): Remove definition.
73571         (safe_read): Don't use EINTR if it is absent.
73572
73573 2002-12-01  Jim Meyering  <jim@meyering.net>
73574
73575         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73576         zero.
73577         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73578
73579 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73580
73581         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73582         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73583         with `if (! (value < limit)) abort ();', for readability.
73584
73585 2002-11-26  Karl Berry  <karl@gnu.org>
73586
73587         * lib/strdup.c: copy from libc again, with jim's ok.
73588         * lib/.cppi-disable: re-add strdup.c
73589
73590 2002-11-25  Karl Berry  <karl@gnu.org>
73591
73592         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73593         instead of "strtol.c".
73594
73595 2002-11-25  Karl Berry  <karl@gnu.org>
73596
73597         * config/install-sh: update from automake for variable quoting, $0 in
73598         error msgs, etc.
73599
73600         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73601         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73602         entry.
73603
73604 2002-11-25  Jim Meyering  <jim@meyering.net>
73605
73606         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73607
73608 2002-11-24  Karl Berry  <karl@gnu.org>
73609
73610         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73611         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73612
73613 2002-11-24  Jim Meyering  <jim@meyering.net>
73614
73615         Update from coreutils:
73616
73617         * lib/mktime.c: Merge in changes from libc.
73618
73619         Avoid a link-time failure on some Linux systems.
73620         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73621         (otherwise).
73622         (__mon_yday): Declare with the STATIC attribute.
73623         (__mktime_internal): Likewise.
73624         Based on a report from Greg Schafer.
73625
73626 2002-11-23  Jim Meyering  <jim@meyering.net>
73627
73628         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73629         Use `unsigned', not `int', as type of index.
73630
73631         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73632
73633         * lib/fsusage.c: Remove unneeded parentheses around operands of
73634         `defined'.
73635
73636 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73637
73638         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73639         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73640         so that we can be included first.
73641         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73642         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73643         No need to include stddef.h or sys/types.h any more.
73644         Surround local include files with "", not "<>".
73645         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73646         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73647         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73648         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73649         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73650         (ISPRINT): Remove; no longer needed now that we assume C89.
73651
73652         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73653         Preserve errno.
73654
73655         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73656         quotearg_char): Use SIZE_MAX rather than
73657         (size_t) -1 when we are talking about "infinity".
73658
73659         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73660
73661 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73662
73663         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73664         hint that one should use `if (! x) abort ();' rather than `assert
73665         (x);', and anyway it's one less thing to worry about configuring.
73666         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73667         hash_rehash, hash_insert): Use abort rather than assert.
73668
73669 2002-11-22  Bruno Haible  <bruno@clisp.org>
73670
73671         * lib/safe-read.h: Assume C89. Add comments.
73672         (safe_read): Change return type to size_t.
73673         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73674         byte counts > SSIZE_MAX correctly.
73675         * lib/safe-write.h: New file.
73676         * lib/safe-write.c: New file.
73677         * lib/full-read.h: New file.
73678         * lib/full-read.c: New file.
73679         * lib/full-write.h: Assume C89. Add comments.
73680         * lib/full-write.c: Include safe-write.h.
73681         (full_write): Rewritten to use safe_write.
73682         Suggested by Jim Meyering and Paul Eggert.
73683
73684 2002-11-21  Jim Meyering  <jim@meyering.net>
73685
73686         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73687
73688         Merge in changes from the coreutils.
73689
73690         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73691         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73692         <stdint.h>.
73693         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73694         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73695         int.  Work more efficiently if X is the same width as uintmax_t.
73696         Do not compare X to -1, to avoid bogus compiler warning.
73697         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73698         Don't assume that f_frsize and f_bsize are the same type.
73699
73700         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73701         warning on FreeBSD.
73702
73703         * lib/makepath.c (make_path): Restore umask *before* creating the final
73704         component.
73705         (make_path): Minor reformatting.
73706
73707         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73708         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73709         HAVE_MALLOC/HAVE_REALLOC.
73710
73711         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73712         dummy ones.  At least on GNU/Linux systems, `auto' means something
73713         else.
73714         From Michael Stone.
73715
73716 2002-11-21  Bruno Haible  <bruno@clisp.org>
73717
73718         Remove case insensitive option matching.
73719         * lib/argmatch.h (argcasematch): Remove declaration.
73720         (ARGCASEMATCH): Remove macro.
73721         (__xargmatch_internal): Remove case_sensitive argument.
73722         (XARGMATCH): Update.
73723         (XARGCASEMATCH): Remove macro.
73724         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73725         case_sensitive argument.
73726         (argcasematch): Remove function.
73727         (__xargmatch_internal): Remove case_sensitive argument.
73728         (main): Use XARGMATCH instead of XARGCASEMATCH.
73729
73730         * lib/xmalloc.c: Change compile-time error message. Add comment about
73731         required autoconf version.
73732
73733 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73734
73735         Merge argmatch cleanups from Bison.  Assume C89.
73736
73737         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73738         Include stdlib.h, for EXIT_FAILURE.
73739         Always include <string.h>, since we assume C89.
73740         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73741         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73742         Include <stddef.h> instead, since it's all we need for size_t.
73743         (PARAMS): Remove.  All uses removed.
73744         (ARRAY_CARDINALITY): Do not bother to #undef.
73745         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73746         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73747         Remove unnecessary parentheses.
73748         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73749         Insert necessary parentheses.
73750         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73751         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73752
73753 2002-11-19  Bruno Haible  <bruno@clisp.org>
73754
73755         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73756         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73757
73758         * lib/mbswidth.h (PARAMS): Remove macro.
73759         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73760         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73761
73762         * lib/gcd.h (PARAMS): Remove macro.
73763         (gcd): Use ANSI C function declarations.
73764         * lib/gcd.c (gcd): Likewise.
73765
73766 2002-11-15  Bruno Haible  <bruno@clisp.org>
73767
73768         * lib/strcspn.c: Include <stddef.h>.
73769         (strcspn): Use ANSI C function declaration. Change return type to
73770         size_t. Use NULL.
73771         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73772         (strpbrk): Use NULL.
73773         * lib/strpbrk.h (PARAMS): Remove macro.
73774         (strpbrk): Use ANSI C function declaration.
73775         * lib/strstr.c: Don't include <sys/types.h>.
73776         * lib/strstr.h (PARAMS): Remove macro.
73777         (strstr): Use ANSI C function declarations.
73778
73779 2002-11-14  Karl Berry  <karl@gnu.org>
73780
73781         * config/mkinstalldirs: `do' on separate line, instead of
73782         `for var; do'.
73783
73784 2002-11-06  Bruno Haible  <bruno@clisp.org>
73785
73786         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73787         * lib/gcd.c (gcd): Likewise.
73788
73789 2002-11-05  Bruno Haible  <bruno@clisp.org>
73790
73791         * lib/gcd.h: New file, from gettext-0.11.5.
73792         * lib/gcd.c: New file, from gettext-0.11.5.
73793
73794 2002-11-05  Bruno Haible  <bruno@clisp.org>
73795
73796         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73797         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73798         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73799         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73800
73801         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73802         <libintl.h>.
73803         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73804         <libintl.h>.
73805
73806         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73807         * lib/human.c: Include gettext.h instead of <libintl.h>.
73808         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73809         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73810         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73811         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73812         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73813         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73814         (textdomain): Remove definition.
73815         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73816
73817         * lib/long-options.c: Remove include of <libintl.h> and definition of
73818         _.
73819         * lib/same.c: Remove include of <libintl.h> and definition of _.
73820
73821 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73822
73823         * lib/config.charset: A few additions for Solaris.
73824
73825 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73826
73827         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73828         * lib/localcharset.c (locale_charset): Declare as extern "C".
73829
73830 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73831
73832         * lib/config.charset: msdos in uk_UA uses CP1125.
73833
73834 2002-11-04  Bruno Haible  <bruno@clisp.org>
73835
73836         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73837         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73838         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73839         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73840         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73841
73842 2002-11-04  Bruno Haible  <bruno@clisp.org>
73843
73844         * lib/localcharset.c (locale_charset): Don't return an empty string.
73845
73846 2002-11-04  Bruno Haible  <bruno@clisp.org>
73847
73848         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73849         aliases.
73850
73851 2002-11-04  Bruno Haible  <bruno@clisp.org>
73852
73853         * lib/config.charset: Update for newest glibc. Add canonical names
73854         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73855
73856 2002-11-04  Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/config.charset: Add support for NetBSD.
73859
73860 2002-11-04  Bruno Haible  <bruno@clisp.org>
73861
73862         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73863
73864 2002-11-01  Bruno Haible  <bruno@clisp.org>
73865
73866         * configure.in: Add AC_CONFIG_AUX_DIR call.
73867         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73868         test/Makefile.
73869         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73870
73871 2002-09-28  Karl Berry  <karl@gnu.org>
73872
73873         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73874         installed automake until the next release, since changes have been
73875         made.
73876
73877 2002-09-25  Karl Berry  <karl@gnu.org>
73878
73879         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73880         * lib/getopt*: copy from libc/posix.
73881         * lib/gettext.h: copy from gettext.
73882         * lib/.cppi-disable: add strdup.c, gettext.h.
73883
73884 2002-09-25  Karl Berry  <karl@gnu.org>
73885
73886         * config/srclist.txt: enable gettext.h check.
73887         * config/config.{guess,sub}: update from prep.
73888         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73889                 from automake 1.6.3.
73890         See srclist*.
73891
73892 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73893
73894         * regex.c (PATFETCH): Remove the translating fetch.
73895         (PATFETCH_RAW): Rename to PATFETCH.
73896         (set_image_of_range): New fun.
73897         (SET_RANGE_TABLE_WORK_AREA): Use it.
73898         (regex_compile): Don't translate the pattern chars so eagerly.
73899         Only do it when inserting an `exactn' bytecode or when handling
73900         a char-range.
73901         (mutually_exclusive_p): Avoid empty statement.
73902
73903 2002-07-06  Jim Meyering  <meyering@lucent.com>
73904
73905         * m4/README: Don't mention Makefile.am.in.
73906         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73907
73908 2002-07-01  Jim Meyering  <meyering@lucent.com>
73909
73910         * lib/c-stack.c: Include sys/time.h.
73911         From Volker Borchert.
73912
73913 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73914
73915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73916
73917 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73918
73919         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73920         New macro.  Use it uniformly instead of
73921         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73922         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73923         reported by Vin Shelton.
73924
73925 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73926
73927         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73928         Do not assume SA_SIGINFO behavior.
73929         Bug reported by Jim Meyering on NetBSD 1.5.2.
73930
73931 2002-06-22  Jim Meyering  <meyering@lucent.com>
73932
73933         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73934         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73935
73936         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73937         now that configure.ac uses AC_GNU_SOURCE.
73938         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73939         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73940
73941         Update to latest tools.  Suggestions from Paul Eggert.
73942         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73943         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73944         * m4/fnmatch.m4: Likewise.
73945         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73946         to AC_HEADER_STDBOOL
73947
73948 2002-06-22  Jim Meyering  <meyering@lucent.com>
73949
73950         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73951         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73952
73953 2002-06-22  Jim Meyering  <meyering@lucent.com>
73954
73955         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73956
73957         * lib/exitfail.c, exitfail.h: Likewise.
73958         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73959
73960         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73961         of fnmatch.h.
73962         (EXTRA_DIST): Add fnmatch_loop.c.
73963         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73964
73965         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73966         * lib/fnmatch.c: Update from diffutils-2.8.2.
73967         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73968         * lib/fnmatch.h: Remove file.
73969
73970 2002-06-21  Jim Meyering  <meyering@lucent.com>
73971
73972         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73973         * m4/mbrtowc.m4: Likewise.
73974
73975         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73976         * m4/mbswidth.m4: Reflect name change:
73977         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73978         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73979
73980         * m4/lib-link.m4: Update from gettext-0.11.2.
73981         * m4/gettext.m4: Likewise.
73982
73983         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73984         From Alfred M. Szmidt.
73985
73986 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73987
73988         * lib/file-type.h: Report an error if neither S_ISREG nor
73989         S_IFREG is defined, instead of using a test specific to glibc
73990         2.2.  This should be safe, since POSIX requires S_ISREG and
73991         Unix Version 7 had S_IFREG.  We don't need to check for
73992         <sys/types.h> since we don't use any symbols that it defines.
73993
73994 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73995
73996         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73997         $@-t, so that each temporary file name is unique and valid in the first
73998         8 characters, for operation under DOS.
73999
74000 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74001
74002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74003
74004 2002-06-15  Jim Meyering  <meyering@lucent.com>
74005
74006         Work even with DJGPP 2.03, which lacks support for symlinks.
74007         From Richard Dawe.
74008         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74009         is defined.
74010         * lib/lchown.c (S_ISLNK): Likewise.
74011
74012 2002-06-15  Jim Meyering  <meyering@lucent.com>
74013
74014         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74015         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74016         have been included before this file.
74017
74018 2002-06-14  Jim Meyering  <meyering@lucent.com>
74019
74020         * lib/file-type.h: Use the version from diffutils-2.8.2.
74021         * lib/file-type.c: Likewise.
74022
74023 2002-06-07  Jim Meyering  <meyering@lucent.com>
74024
74025         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74026         They're needed at least for NetBSD 1.5.2.
74027         ($statxfs_includes): Include those same headers.
74028         ($statxfs_includes): Include sys/vfs.h if available.
74029         ($statxfs_includes): Likewise for sys/statvfs.h.
74030         Check for the following members in both structs statfs and statvfs:
74031         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74032
74033 2002-06-01  Jim Meyering  <meyering@lucent.com>
74034
74035         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74036         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74037
74038 2002-05-28  Jim Meyering  <meyering@lucent.com>
74039
74040         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74041         Reported by Volker Borchert.
74042
74043 2002-05-27  Jim Meyering  <meyering@lucent.com>
74044
74045         Fix a problem seen only on nonconforming systems whereby ls.c's
74046         use of localtime, and then of gettimeofday would cause trouble:
74047         the localtime call used to initialize rpl_gettimeofday's save
74048         mechanism would clobber ls's current local time information so
74049         that in any long listing the first file would always be listed
74050         with date 1970-01-01.  Analysis by Volker Borchert.
74051
74052         * lib/gettimeofday.c (localtime): Undefine.
74053         (rpl_localtime): New function.
74054
74055 2002-05-27  Jim Meyering  <meyering@lucent.com>
74056
74057         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74058         localtime.
74059
74060         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74061         use the replacement function; it wouldn't resolve at link time.
74062         Reported by Volker Borchert.
74063
74064 2002-05-22  Jim Meyering  <meyering@lucent.com>
74065
74066         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74067         file-type.h.
74068         * lib/file-type.h: New file.
74069         * lib/file-type.c (file_type): New file/function.  Extracted from
74070         diffutils.
74071
74072 2002-04-30  Jim Meyering  <meyering@lucent.com>
74073
74074         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74075
74076 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74077
74078         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74079
74080 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74081
74082         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74083         Do not check for alloca.h (no longer used) or stdbool.h (was never
74084         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74085
74086 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74087
74088         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74089
74090 2002-04-29  Jim Meyering  <meyering@lucent.com>
74091
74092         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74093         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74094         Use AC_FUNC_STRNLEN here instead.
74095
74096         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74097         With autoconf-2.53a, it's part of AC_PROG_CC.
74098
74099 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74100
74101         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74102         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74103
74104 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74105
74106         * lib/sig2str.h, lib/sig2str.c: New files.
74107         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74108
74109 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74110
74111         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74112         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74113         of 127, since 64 is the largest conceivable number for ancient
74114         nonstandard hosts.
74115         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74116
74117 2002-04-28  Jim Meyering  <meyering@lucent.com>
74118
74119         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74120
74121 2002-04-24  Jim Meyering  <meyering@lucent.com>
74122
74123         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74124         (jm_PREREQ): Use it.
74125
74126         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74127         mach/mach.h fcntl.h.
74128         Check for this function: setlocale.
74129
74130 2002-04-24  Jim Meyering  <meyering@lucent.com>
74131
74132         * lib/gettext.h: New file, from Gettext.
74133         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74134         (libfetish_a_SOURCES): Add gettext.h.
74135
74136 2002-04-16  Jim Meyering  <meyering@lucent.com>
74137
74138         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74139         ut_pid, ut_id, ut_exit.
74140
74141 2002-04-16  Jim Meyering  <meyering@lucent.com>
74142
74143         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74144         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74145         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74146
74147 2002-04-12  Jim Meyering  <meyering@lucent.com>
74148
74149         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74150         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74151         existence of the getmntinfo function.  Needed for Darwin 5.3.
74152
74153         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74154         This is necessary at least on Darwin 5.3.
74155
74156         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74157         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74158         strnlen.o in the library, and that makes some versions of ranlib
74159         object.
74160
74161 2002-04-12  Jim Meyering  <meyering@lucent.com>
74162
74163         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74164
74165 2002-04-09  Jim Meyering  <meyering@lucent.com>
74166
74167         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74168         to be more precise.  Rather than saying we're checking whether the
74169         function `works', say what we're testing.
74170         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74171         Reported by Bruno Haible.
74172
74173 2002-03-10  Jim Meyering  <meyering@lucent.com>
74174
74175         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74176         Suggestion from Santiago Vila.
74177
74178 2002-03-08  Jim Meyering  <meyering@lucent.com>
74179
74180         * lib/rename.c: Mention that this wrapper is needed also on
74181         mips-dec-ultrix4.4 systems.
74182
74183 2002-03-02  Jim Meyering  <meyering@lucent.com>
74184
74185         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74186         not HAVE_CLOCK_SETTIME.
74187
74188 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74189
74190         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74191         Check for clock_settime.
74192
74193 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74194
74195         * lib/nanosleep.h: Rename to....
74196         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74197
74198         * lib/gettime.c: New file.
74199         * lib/settime.c: New file.
74200         * lib/stime.c: Remove.
74201
74202         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74203         timespec.h.  Remove nanosleep.h.
74204
74205 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74206
74207         * m4/acl.m4: New file.
74208         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74209         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74210
74211 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74212
74213         * lib/acl.c, lib/acl.h: New files.
74214         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74215
74216 2002-02-24  Jim Meyering  <meyering@lucent.com>
74217
74218         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74219         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74220         cause trouble.  Reported by Nelson Beebe.
74221
74222 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74223
74224         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74225         compilers that don't know that xalloc_die never returns.
74226
74227 2002-02-20  Jim Meyering  <meyering@lucent.com>
74228
74229         * lib/getdate.c: Regenerate using bison-1.33.
74230
74231 2002-02-17  Jim Meyering  <meyering@lucent.com>
74232
74233         * config/config.guess (main): Don't use `head -1'; it's no longer
74234         portable. Use `sed 1q' instead.
74235
74236 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74237
74238         * m4/codeset.m4: Upgrade to gettext-0.11.
74239         * m4/gettext.m4: Upgrade to gettext-0.11.
74240         * m4/glibc21.m4: Upgrade to gettext-0.11.
74241         * m4/iconv.m4: Upgrade to gettext-0.11.
74242         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74243         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74244         * m4/lib-ld.m4: New file, from gettext-0.11.
74245         * m4/lib-link.m4: New file, from gettext-0.11.
74246         * m4/lib-prefix.m4: New file, from gettext-0.11.
74247         * m4/progtest.m4: Upgrade to gettext-0.11.
74248
74249 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74250
74251         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74252         (jm_PREREQ): Use it.
74253
74254 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74255
74256         * lib/posixver.c, lib/posixver.h: New files.
74257         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74258
74259 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74260             Bruno Haible  <bruno@clisp.org>
74261
74262         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74263         (fwrite_success_callback): New declaration.
74264         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74265         print_unicode_char. Call failure callback instead of error.
74266         (fwrite_success_callback): New function.
74267         (exit_failure_callback): New function.
74268         (fallback_failure_callback): New function.
74269         (print_unicode_char): Call unicode_to_mb.
74270
74271 2002-01-26  Jim Meyering  <meyering@lucent.com>
74272
74273         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74274         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74275
74276 2002-01-26  Jim Meyering  <meyering@lucent.com>
74277
74278         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74279
74280 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74281
74282         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74283
74284 2002-01-22  Jim Meyering  <meyering@lucent.com>
74285
74286         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74287         Otherwise, some versions of automake would omit the rule that makes
74288         Makefile from Makefile.in.
74289
74290 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74291
74292         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74293         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74294         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74295         (memcoll): Set errno to zero if there is no error.
74296
74297         * lib/quotearg.c (quotearg_buffer_restyled):
74298         Fix bug with quoting buffers containing NUL when backslashing escapes.
74299         This bug was exposed by the other changes in this patch.
74300         (quotearg_n_options): New arg ARGSIZE.
74301         All callers changed.
74302         (quoting_options_from_style): New function.
74303         (quotearg_n_style): Use it.
74304         (quotearg_n_style_mem): New function.
74305
74306         * lib/quotearg.h (quotearg_n_style_mem): New function.
74307
74308 2002-01-19  Jim Meyering  <meyering@lucent.com>
74309
74310         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74311         Remove useless quotes: DF_PROG="df".
74312         * m4/strnlen.m4: New file.
74313
74314 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74315
74316         * lib/backupfile.c (ISDIGIT): Comment fix.
74317         * lib/getdate.y (ISDIGIT): Likewise.
74318         * lib/posixtm.c (ISDIGIT, year): Likewise.
74319         * lib/strverscmp.c (ISDIGIT): Likewise.
74320         * lib/userspec.c (ISDIGIT): Likewise.
74321
74322 2002-01-16  Jim Meyering  <meyering@lucent.com>
74323
74324         * lib/getdate.y: Add three semicolons, each just before a closing
74325         brace. Bison (as of version 1.31) no longer papers over that mistake.
74326
74327 2002-01-05  Jim Meyering  <meyering@lucent.com>
74328
74329         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74330
74331 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74332
74333         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74334         not silently exit merely because the output buffer happens to
74335         have nothing pending.
74336
74337 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74338
74339         See the big note in ../ChangeLog.
74340         * lib/human.c (suffixes): Prefer K to k for 1024.
74341         (generate_suffix_backwards): New function.
74342         (human_readable_inexact): Use it.
74343         * lib/xstrtol.c (__xstrtol): If there is no number but there
74344         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74345         Accept 'K' as well as 'k'.
74346
74347 2001-12-15  Jim Meyering  <meyering@lucent.com>
74348
74349         * lib/regex.h (__restrict_arr): Update from libc.
74350
74351         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74352         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74353         (STREQ): Define.
74354
74355 2001-12-14  Jim Meyering  <meyering@lucent.com>
74356
74357         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74358         Suggestion from Bruno Haible.
74359
74360 2001-12-10  Jim Meyering  <meyering@lucent.com>
74361
74362         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74363         xrealloc, Instead, include "xalloc.h".
74364         (initbuffer): Don't cast xmalloc return value to char*.
74365         (readline): Reword comment.
74366         Don't cast xrealloc return value to char*
74367         Return NULL, not 0.
74368
74369 2001-12-09  Jim Meyering  <meyering@lucent.com>
74370
74371         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74372         about `signed and unsigned type in conditional expression'.
74373         * lib/posixtm.c (posix_time_parse): Likewise.
74374
74375         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74376
74377         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74378         to avoid a pedantic warning.
74379
74380         * lib/getstr.c: Don't include assert.h.
74381         (getstr): Remove warning-evoking assertions.
74382         Return -1 if offset parameter is out of bounds.
74383         Change the type of a local from int to size_t.
74384
74385         * lib/strftime.c (my_strftime_localtime_r): Include this function
74386         definition in the `#if ! HAVE_TM_GMTOFF' block.
74387
74388         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74389         Include xalloc.h instead.
74390
74391 2001-12-02  Jim Meyering  <meyering@lucent.com>
74392
74393         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74394         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74395         included.
74396
74397         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74398         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74399
74400 2001-11-30  Akim Demaille  <akim@epita.fr>
74401
74402         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74403         before being defined.
74404
74405 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74406
74407         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74408         First arg is int, not unsigned.
74409         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74410         (SIZE_MAX, UINT_MAX): New macros.
74411         (quotearg_n_options): Abort if N is negative.
74412         Avoid overflow check on hosts where size_t is 64 bits and int
74413         is 32 bits, as overflow is impossible there.
74414         Fix off-by-one typo that caused unnecessary reallocation.
74415
74416 2001-11-27  Jim Meyering  <meyering@lucent.com>
74417
74418         * lib/tempname.c: Merge with version from libc.
74419         * lib/regex.c: Likewise.
74420
74421         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74422         systems for which STDC_HEADERS is 0, it was not included, resulting in
74423         a warning about an integer-to-pointer conversion problem with getenv.
74424         Reported by Volker Borchert.
74425
74426 2001-11-26  Jim Meyering  <meyering@lucent.com>
74427
74428         * lib/gtod.h: Remove file.
74429         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74430         * lib/gettimeofday.c: Don't include gtod.h.
74431         (GTOD_init): Remove function.
74432         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74433         Suggestion from Volker Borchert.
74434
74435 2001-11-23  Jim Meyering  <meyering@lucent.com>
74436
74437         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74438         it.
74439         * lib/hash.c (struct hash_table): Define it here instead.
74440
74441 2001-11-22  Jim Meyering  <meyering@lucent.com>
74442
74443         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74444
74445 2001-11-20  Jim Meyering  <meyering@lucent.com>
74446
74447         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74448         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74449
74450 2001-11-19  Jim Meyering  <meyering@lucent.com>
74451
74452         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74453         directory.  Use "conftestXXXXXX" as the template.
74454         Suggestion from Paul Eggert.
74455
74456         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74457         immediately, so the test doesn't mistakenly hit the max-open-files
74458         limit.
74459
74460 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74461
74462         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74463         (TEMPORARIES): New macro.
74464         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74465         removes an artificial limitation (e.g. HP-UX 10.20, where
74466         TMP_MAX is 17576).
74467
74468 2001-11-18  Jim Meyering  <meyering@lucent.com>
74469
74470         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74471
74472 2001-11-18  Jim Meyering  <meyering@lucent.com>
74473
74474         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74475         on SunOS 4.
74476
74477         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74478         files will be created before anything else.
74479
74480 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74481
74482         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74483         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74484
74485 2001-11-17  Jim Meyering  <meyering@lucent.com>
74486
74487         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74488         Prompted by a report from Bob Proulx.
74489
74490         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74491         Instead, require UTILS_FUNC_MKSTEMP.
74492
74493 2001-11-17  Jim Meyering  <meyering@lucent.com>
74494
74495         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74496         Now, that's done as part of AC_FUNC_STRTOD.
74497
74498 2001-11-17  Jim Meyering  <meyering@lucent.com>
74499
74500         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74501         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74502         rather than group writable.  Patch by Juan F. Codagnone.
74503
74504         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74505         xrealloc, Instead, include "xalloc.h".
74506
74507         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74508         Remove explicit declarations of xmalloc, xrealloc,
74509         and xstrdup.  Instead, include "xalloc.h".
74510
74511         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74512         unlocked-io.h.
74513         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74514         Likewise.
74515         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74516
74517         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74518         Reported by Padraig Brady.
74519
74520         * lib/mkstemp.c: #undef mkstemp.
74521         Include config.h.
74522         (rpl_mkstemp): Rename from mkstemp.
74523         Protoize.
74524
74525 2001-11-16  Jim Meyering  <meyering@lucent.com>
74526
74527         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74528         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74529         determine the amount of total physical memory, use pstat_getstatic.
74530         HPUX-11 doesn't define _SC_PHYS_PAGES.
74531         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74532         If sysconf couldn't be used to determine the amount of available
74533         physical memory, use both pstat_getstatic and pstat_getdynamic.
74534         Based on a patch from Bob Proulx.
74535
74536 2001-11-10  Jim Meyering  <meyering@lucent.com>
74537
74538         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74539         (jm_PREREQ): Use it.
74540
74541 2001-11-09  Jim Meyering  <meyering@lucent.com>
74542
74543         * m4/jm-macros.m4: Require autoconf-2.52f.
74544         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74545         Use these AC_-prefixed names, not the AM_-prefixed ones.
74546
74547         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74548
74549 2001-11-05  Jim Meyering  <meyering@lucent.com>
74550
74551         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74552
74553 2001-11-04  Jim Meyering  <meyering@lucent.com>
74554
74555         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74556         $DEFS.
74557
74558 2001-11-03  Jim Meyering  <meyering@lucent.com>
74559
74560         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74561         of AC_DEFUN.
74562
74563         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74564         know the name of the variable in the macro definition.
74565
74566 2001-11-03  Jim Meyering  <meyering@lucent.com>
74567
74568         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74569         in argmatch_to_argument call.
74570
74571         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74572         argument.
74573
74574         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74575         e.g., a fault due to an attempt to free a NULL pointer.
74576
74577 2001-11-01  Jim Meyering  <meyering@lucent.com>
74578
74579         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74580         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74581
74582 2001-11-01  Jim Meyering  <meyering@lucent.com>
74583
74584         * lib/dirfd.c, lib/dirfd.h: New files.
74585         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74586
74587         * lib/hash.c (hash_print) [TESTING]: Clean up.
74588
74589 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74590
74591         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74592         to avoid a warning if -Wall.
74593
74594 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74595
74596         * README: New file
74597         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74598         (per RMS's instructions, this is now the canonical source)
74599         * lgpl/, gpl/: New directories.
74600
74601 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74602
74603         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74604
74605 2001-10-21  Jim Meyering  <meyering@lucent.com>
74606
74607         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74608         this code would end up calling gettext even in packages built
74609         with --disable-nls.
74610         * lib/getopt.c (_): Likewise.
74611         * lib/regex.c (_): Likewise.
74612
74613 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74614
74615         * m4/error.m4 (jm_PREREQ_ERROR):
74616         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74617         AC_FUNC_STRERROR_R does that.
74618         Check for strerror declaration.
74619
74620         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74621         are supposed to have them these days.
74622         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74623         Merge changes from latest Autoconf CVS.
74624         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74625         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74626         POSIX decided to standardize on the int flavor of strerror_r.
74627
74628 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74629
74630         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74631         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74632         Use strerror_r that is only a macro, even if it is not a function.
74633         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74634         (private_strerror): Use prototypes, not old-style function definition.
74635         (print_errno_message): New function.
74636         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74637         char*-flavored one.
74638         (error_tail, error, error_at_line): Use it.
74639
74640 2001-10-11  Jim Meyering  <meyering@lucent.com>
74641
74642         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74643         and quote_n (1, ... to avoid clobbering a buffer.
74644
74645 2001-10-05  Jim Meyering  <meyering@lucent.com>
74646
74647         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74648         hash-pjw.h.
74649         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74650         * lib/hash-pjw.h: New file.
74651
74652 2001-09-30  Jim Meyering  <meyering@lucent.com>
74653
74654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74655         `struct fsstat' has the `f_fstypename' member.
74656         Use that to define FS_TYPE, which is now used to make
74657         the getfsstat link test tighter.
74658
74659 2001-09-30  Jim Meyering  <meyering@lucent.com>
74660
74661         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74662         Include <sys/ucred.h>, for Apple Darwin.
74663         Include sys/mount.h and sys/fs_types.h only if available.
74664         (FS_TYPE): Define.
74665         (read_filesystem_list): Use FS_TYPE.
74666
74667 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74668
74669         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74670         a boolean context.
74671
74672 2001-09-29  Jim Meyering  <meyering@lucent.com>
74673
74674         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74675         [one-argument getmntent function]): Include stdio.h before mntent.h.
74676         SunOS 4.1.x needs it for the declaration of `FILE'.
74677         Patch by Volker Borchert.
74678
74679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74680         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74681         sys/fs_types.h, and make the link-test for getfsstat guard #include
74682         directives with appropriate #if HAVE_*_H tests so that we can
74683         detect getfsstat on Apple Darwin1.3.7 systems.
74684         Reported by Nelson Beebe.
74685         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74686
74687 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74688
74689         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74690         #defines strtoimax.  Also treat the other strto* functions
74691         like strtoimax.
74692
74693         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74694         Check for strtoul and strtoumax,
74695         as those declarations are made even in the signed case.
74696         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74697         Likewise, for strtol and strtoimax.
74698
74699 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74700
74701         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74702         #defines strtoimax.  Also treat the other strto* functions
74703         like strtoimax.
74704
74705         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74706         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74707         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74708
74709 2001-09-26  Jim Meyering  <meyering@lucent.com>
74710
74711         Most macros in unlocked-io.h had the wrong number of arguments.
74712         * lib/gen-uio: New script.
74713         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74714         * lib/unlocked-io.hin: Remove file.
74715         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74716         rather than trying to embed it here.
74717         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74718         Reported by Padraig Brady.
74719
74720 2001-09-25  Volker Borchert  <bt@teknon.de>
74721
74722         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74723         `result'.
74724
74725 2001-09-24  Jim Meyering  <meyering@lucent.com>
74726
74727         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74728
74729 2001-09-23  Jim Meyering  <meyering@lucent.com>
74730
74731         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74732         instead of the mere test for existence of mntent.h.  The latter
74733         would get a false-positive on AIX 3.4 systems.
74734         In the outer getmntent if-block, don't die if neither of the getmntent
74735         tests succeeds.  Instead, just fall through and continue with the
74736         remaining tests.
74737
74738 2001-09-23  Jim Meyering  <meyering@lucent.com>
74739
74740         * lib/mountlist.c: Remove useless parentheses in #if directives.
74741         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74742         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74743
74744 2001-09-22  Jim Meyering  <meyering@lucent.com>
74745
74746         * m4/gettext.m4: New file.  From gettext.
74747         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74748         * m4/progtest.m4: Likewise
74749         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74750         * m4/glibc21.m4: Likewise.
74751
74752         * m4/libintl.m4: Remove.  No longer used.
74753
74754 2001-09-22  Jim Meyering  <meyering@lucent.com>
74755
74756         * lib/localcharset.c: Update from latest gettext.
74757         * lib/config.charset: Likewise.
74758
74759 2001-09-20  Jim Meyering  <meyering@lucent.com>
74760
74761         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74762         strtoimax.
74763         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74764         strtoumax.
74765
74766 2001-09-20  Jim Meyering  <meyering@lucent.com>
74767
74768         * lib/xstrtol.c (strtoimax): Guard declaration with
74769         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74770         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74771         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74772         (strtoumax): Likewise, for completeness (it wasn't necessary).
74773
74774 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74775
74776         * lib/strtoimax.c (HAVE_LONG_LONG):
74777         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74778         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74779         to work around bug in IBM C compiler.
74780
74781 2001-09-17  Jim Meyering  <meyering@lucent.com>
74782
74783         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74784         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74785         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74786         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74787         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74788         whenever the right hand side need not be expanded by the shell.
74789
74790 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74791
74792         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74793         library.  It's not correct, as some older glibcs are buggy.
74794         fnmatch wasn't fixed until glibc 2.2.
74795
74796         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74797         special shell magic here.
74798
74799 2001-09-16  Jim Meyering  <meyering@lucent.com>
74800
74801         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74802         * m4/jm-macros.m4: Require it.
74803
74804 2001-09-16  Jim Meyering  <meyering@lucent.com>
74805
74806         * lib/mkdir.c: New file.
74807
74808 2001-09-15  Jim Meyering  <meyering@lucent.com>
74809
74810         * m4/jm-macros.m4: Check for help2man.
74811
74812 2001-09-11  Jim Meyering  <meyering@lucent.com>
74813
74814         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74815         The body, by Paul Eggert, was moved here from configure.in.
74816         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74817
74818 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74819
74820         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74821         (jm_PREREQ): Use it.
74822
74823 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74824
74825         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74826         Use ssize_t, not int, to store result of readlink.
74827         Check for ssize_t overflow as well as size_t overflow,
74828         as POSIX says the result of readlink is implementation-defined
74829         when ssize_t overflows.
74830         Remove unnecessary cast to char*.
74831         Use free+malloc instead of realloc, as the storage doesn't need
74832         to be preserved and it's clearer and can be more efficient that way.
74833         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74834         * lib/xreadlink.h (xreadlink): Update prototype.
74835
74836 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74837
74838         * lib/xgetcwd.c: Revert some of the previous change; intead,
74839         fix the HAVE_GETCWD_NULL code to behave more like the
74840         !HAVE_GETCWD_NULL code used to.
74841
74842         Include "xalloc.h".
74843         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74844         invoke xalloc_die.
74845
74846 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74847
74848         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74849         sys/param.h, as pathmax.h includes them.
74850
74851 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74852
74853         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74854         (jm_PREREQ_XGETCWD): New macro.
74855
74856         * m4/getcwd.m4: New file.
74857
74858 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74859
74860         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74861         like the HAVE_GETCWD_NULL code.
74862         Include pathmax.h if not HAVE_GETCWD.
74863         Do not include xalloc.h.
74864         (INITIAL_BUFFER_SIZE): New symbol.
74865         Do not use xmalloc / xrealloc, since the caller is responsible for
74866         handling errors.  Preserve errno around `free' during failure.
74867         Do not overrun buffer when using getwd.
74868
74869 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74870
74871         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74872         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74873         getcwd (NULL, 0).
74874
74875 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74876
74877         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74878         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74879         spotted by Jim Meyering.
74880
74881 2001-09-03  Jim Meyering  <meyering@lucent.com>
74882
74883         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74884         failure.
74885
74886 2001-09-02  Jim Meyering  <meyering@lucent.com>
74887
74888         * lib/error.c: Update from GNU libc.
74889
74890 2001-09-01  Jim Meyering  <meyering@lucent.com>
74891
74892         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74893         Used by df.
74894
74895 2001-09-01  Jim Meyering  <meyering@lucent.com>
74896
74897         * lib/xreadlink.c: New file.
74898         * lib/xreadlink.h: New file.
74899         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74900         xreadlink.h.
74901
74902         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74903         doesn't conflict with sparc Solaris 7's definition in
74904         /usr/include/sys/int_types.h.
74905
74906         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74907         files.
74908         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74909         and strncasecmp as r-values.  Unixware didn't have declarations.
74910
74911 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74912
74913         * lib/xstrtol.h: Add copyright notice.
74914         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74915         LONGINT_INVALID_SUFFIX_CHAR.
74916
74917 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74918
74919         * lib/xstrtol.c (strtoimax): New decl.
74920
74921 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74922
74923         * lib/xgetcwd.c: Don't include pathmax.h.
74924         Include stdlib.h and unistd.h if available.
74925         Include xalloc.h.
74926         (xmalloc, xstrdup, free): Remove decls.
74927         (xgetcwd): Don't assume sizes fit in unsigned.
74928         Check for overflow when computing sizes.
74929         Simplify reallocation code.
74930
74931 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74932
74933         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74934         a directory's st_size can have an arbitrary value, so the old
74935         usage could waste an arbitrary amount of memory.  All uses
74936         changed.
74937         * lib/savedir.h: Update prototype.
74938
74939 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74940
74941         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74942
74943         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74944         old strtoimax.c.
74945
74946         Also, make the following further changes to make this file's
74947         configuration more similar to that of strtol.c:
74948         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74949         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74950         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74951         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74952         changed to signed values.
74953
74954         And make the following changes as well:
74955         Fix copyright notice, as 1999 was missing.
74956         (verify): New macro.
74957         (strtoimax): Check sizes at compile-time, not run-time.
74958         Prefer strtol to strtoll if both work.
74959         (main): Remove; it was not that useful and was a pain to maintain.
74960
74961         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74962
74963 2001-08-31  Jim Meyering  <meyering@lucent.com>
74964
74965         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74966         Use an initial, malloc'd, buffer of length 128 rather than
74967         a statically allocated one of length 1024.
74968
74969 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74970
74971         Simplify code, partly by assuming autoconf 2.52 semantics.
74972
74973         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74974
74975         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74976         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74977         All uses removed.
74978         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74979         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74980         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74981         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74982         jm_AC_HEADER_INTTYPES_H.
74983         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74984
74985         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74986
74987         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74988         Quote first arg of AC_DEFUN.
74989         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74990         since they are needed to parse the include file even if we need
74991         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74992         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74993         but with opposite signedness.
74994
74995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74996
74997         Merge 'exclude' changes from tar 1.13.22.
74998         This fixes one or two unlikely storage allocation overflow bugs,
74999         but doesn't change user-visible behavior otherwise.
75000
75001 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75002
75003         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75004         (jm_PREREQ_EXCLUDE): New macro.
75005
75006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75007
75008         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75009         tm to be declared.
75010
75011 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75012
75013         * lib/hash.c: Remove '2001' from copyright notice.
75014
75015 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75016
75017         * lib/full-write.h: New file.
75018         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75019         * lib/full-write.c: Correct credits, as cccp.c no longer
75020         exists and anyway it was so heavily changed from the old cccp
75021         code as to be unrecognizable.  Include full-write.h.
75022         (full_write) Return size_t, with short writes meaning failure.
75023         All callers changed.  This fixes a bug with large buffers
75024         on 64-bit hosts.
75025         * lib/utime.c: Include full-write.h.
75026
75027 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75028
75029         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75030         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75031         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75032         Include if available.
75033         (<xalloc.h>): Include
75034         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75035         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75036         collide with FNM macros.
75037         (struct patopts): New struct.
75038         (struct exclude): Use it, as exclude patterns now come with options.
75039         (new_exclude): Support above changes.
75040         (new_exclude, add_exclude_file):
75041         Initial size must now be a power of two to simplify overflow checking.
75042         (free_exclude, fnmatch_no_wildcards): New function.
75043         (excluded_filename): No longer requires options arg, as the options
75044         are determined by add_exclude.  Now returns bool, not int.
75045         (excluded_filename, add_exclude):
75046         Add support for the fancy new exclusion options.
75047         (add_exclude, add_exclude_file): Now takes int options arg.
75048         Check for arithmetic overflow when computing sizes.
75049         (add_exclude_file): xrealloc might modify errno, so don't
75050         realloc until after errno might be used.
75051
75052         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75053         New macros.
75054         (free_exclude): New decl.
75055         (add_exclude, add_exclude_file): Now takes int options arg.
75056         (excluded_filename): No longer requires options arg, as the options
75057         are determined by add_exclude.  Now returns bool, not int.
75058
75059 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75060
75061         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75062
75063 2001-08-27  Jim Meyering  <meyering@lucent.com>
75064
75065         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75066
75067         * lib/version-etc.c (N_): Remove definition.
75068         Revert most of last change.
75069         Instead, simply don't mark the `Copyright...' string for translation.
75070         Based on advice from Paul Eggert.
75071
75072         * lib/strtoxmax.c: Tweak comment.
75073
75074 2001-08-26  Jim Meyering  <meyering@lucent.com>
75075
75076         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75077
75078         * m4/xstrtoimax.m4: New file.
75079         * m4/xstrtoumax.m4: Add comments explaining why we
75080         AC_REPLACE_FUNCS(strtol).
75081
75082 2001-08-26  Jim Meyering  <meyering@lucent.com>
75083
75084         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75085         of copyright with `%s' so translators don't get an untranslated
75086         message in 2002.
75087         (COPYRIGHT_YEAR): Define.
75088         (version_etc): Use fprintf rather than fputs.
75089         Suggestion from Ulrich Drepper.
75090
75091         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75092
75093         * lib/strtoll.c: New file, from GNU libc.
75094         * lib/xstrtoimax.c: New file.
75095
75096         * lib/xstrtol.h: Add xstrtoimax.
75097         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75098         * lib/strtoimax.c: New file.  Likewise, but first define
75099         STRTOUXMAX_SIGNED.
75100
75101         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75102         ...
75103         * lib/strtoxmax.c: ... then renamed to this.
75104
75105 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75106
75107         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75108         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75109         (jm_AC_TYPE_INTMAX_T): New macro.
75110         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75111
75112         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75113
75114         * m4/longlong.m4: Renamed from ulonglong.m4.
75115         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75116         * m4/uintmax_t.m4: Removed.
75117
75118 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75119
75120         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75121         Port to Solaris 8, where 'sed' requires a space after the 'r'
75122         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75123         Redirect output to $tmp just once.
75124
75125 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75126
75127         * lib/addext.c (<errno.h>): Include.
75128         (errno): Declare if not defined.
75129         (addext): Work correctly when pathconf returns -1 and leaves
75130         errno alone because there is no limit.  Also, work even if
75131         pathconf returns a value greater than SIZE_MAX.
75132
75133 2001-08-12  Jim Meyering  <meyering@lucent.com>
75134
75135         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75136         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75137         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75138         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75139         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75140         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75141         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75142         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75143         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75144         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75145         utime.m4, utimes.m4, xstrtoumax.m4:
75146         Quote the first argument in each use of AC_DEFUN.
75147
75148 2001-08-12  Jim Meyering  <meyering@lucent.com>
75149
75150         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75151         Simply `return getcwd (NULL, 0);'.
75152         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75153         Use 1300 as initial value for length, not PATH_MAX.
75154
75155         * lib/pathmax.h: Clean up cpp syntax.
75156
75157 2001-08-12  Jim Meyering  <meyering@lucent.com>
75158
75159         * lib/gettimeofday.c: New file.
75160         * lib/gtod.h: New file.
75161         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75162
75163 2001-08-05  Jim Meyering  <meyering@lucent.com>
75164
75165         * m4/jm-macros.m4: Require autoconf-2.52.
75166
75167 2001-08-04  Jim Meyering  <meyering@lucent.com>
75168
75169         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75170         stmt, to get in sync with glibc.
75171
75172 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75173
75174         The following changes are from gettext 0.10.39 as maintained by
75175         Bruno Haible.
75176
75177         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75178         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75179         with inverted sense.  All uses changed.
75180
75181         * lib/mbswidth.c: Don't include <limits.h>.
75182         Include <stdlib.h> and <string.h> unconditionally.
75183         (iswcntrl, mbsinit, ISCNTRL): New macros.
75184         (mbsnwidth): Use K&R style function declarations.
75185         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75186         can optimize it when MB_CUR_MAX == 1.
75187         The width of control characters is zero, not 1.
75188
75189 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75190
75191         The following changes are from gettext 0.10.39 as maintained by
75192         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75193
75194         * m4/codeset.m4: Upgrade to serial AM1.
75195         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75196         all uses changed.  Quote first arg of AC_DEFUN.
75197         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75198
75199         * m4/iconv.m4: Upgrade to serial AM2.
75200         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75201         Add --with-libconv-prefix.
75202         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75203         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75204         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75205         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75206         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75207
75208         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75209         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75210         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75211         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75212         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75213         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75214         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75215         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75216         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75217
75218         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75219         string.h any more.
75220
75221         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75222         not the default value.
75223
75224         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75225         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75226         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75227         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75228         Also check for iswcntrl, used for wcwidth fallback.
75229         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75230         to Autoconf 2.13.
75231
75232 2001-08-03  Jim Meyering  <meyering@lucent.com>
75233
75234         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75235         as it was in the original.  Reported by Paul Eggert.
75236
75237 2001-07-16  Jim Meyering  <meyering@lucent.com>
75238
75239         * m4/gettimeofday.m4: New file.
75240         Prompted by a report from Bernhard Baehr.
75241
75242 2001-07-15  Jim Meyering  <meyering@lucent.com>
75243
75244         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75245         stuff. Now it's in ../Makefile.cfg.
75246
75247 2001-07-15  Jim Meyering  <meyering@lucent.com>
75248
75249         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75250         (BUILT_SOURCES): Add unlocked-io.h.
75251         (io_functions): Define.
75252         (unlocked-io.h): New rule.
75253         (DISTCLEANFILES): Add unlocked-io.h.
75254         (all-local): Depend on unlocked-io.h, to ensure it is created.
75255
75256         * lib/unlocked-io.hin: New file
75257
75258         * lib/regex.c: Update from glibc.
75259
75260 2001-07-05  Jim Meyering  <meyering@lucent.com>
75261
75262         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75263         recommendation.
75264         (libfetish_a_SOURCES): Put all .h files here instead.
75265         Remove a thus-exposed (better checks in automake) duplicate and
75266         two unnecessary .h files.
75267
75268 2001-07-04  Jim Meyering  <meyering@lucent.com>
75269
75270         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75271         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75272         distcheck failure.
75273
75274 2001-07-02  Jim Meyering  <meyering@lucent.com>
75275
75276         The following changes were prompted by suggestions from Bruno Haible.
75277
75278         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75279         is now generated.
75280         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75281         definition of EXTRA_DIST.
75282         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75283         ensure that the generated file is created/updated whenever the list
75284         of $(unlocked_functions) is changed.
75285         (jm-glibc-io.m4): New rule.
75286         (unlocked-io.h): New rule -- currently unused.
75287
75288 2001-06-24  Jim Meyering  <meyering@lucent.com>
75289
75290         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75291         unmatched right bracket, rather than kludging it with an extra,
75292         falsely-matching quote in a comment.  Patch by Akim Demaille.
75293
75294 2001-06-11  Jim Meyering  <meyering@lucent.com>
75295
75296         * lib/regex.c: Update from GNU libc.
75297
75298 2001-05-27  Jim Meyering  <meyering@lucent.com>
75299
75300         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75301         Check for ut_type in struct utmp.
75302
75303 2001-05-27  Jim Meyering  <meyering@lucent.com>
75304
75305         * lib/readutmp.h (UT_TYPE): Define.
75306
75307 2001-05-24  Jim Meyering  <meyering@lucent.com>
75308
75309         * lib/argmatch.c: Include "quote.h".
75310         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75311         quote function.  Reported by Göran Uddeborg.
75312
75313 2001-05-22  Jim Meyering  <meyering@lucent.com>
75314
75315         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75316         now that we use the package-supplied version unconditionally.
75317         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75318
75319 2001-05-21  Jim Meyering  <meyering@lucent.com>
75320
75321         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75322         shell syntax errors.
75323
75324 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75325
75326         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75327
75328 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75329
75330         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75331         Don't bother to check library strftime, since
75332         we'll be using our own my_strftime function anyway.
75333         Define my_strftime instead of strftime.
75334
75335 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75336
75337         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75338         which is not yet declared.
75339
75340 2001-05-15  Jim Meyering  <meyering@lucent.com>
75341
75342         * m4/regex.m4: Use proper quoting so brackets appear in the test
75343         program.
75344         Reported by, and with help from, Bruno Haible.
75345
75346 2001-05-13  Jim Meyering  <meyering@lucent.com>
75347
75348         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75349         undefined.
75350
75351 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75352
75353         dirname code cleanup.  base_name now behaves more compatibly
75354         with POSIX basename when given file names that have trailing
75355         slashes, and similarly for dir_name.  Add new primitives
75356         base_len and dir_len.  Put the directory-name-related decls
75357         into dirname.h.
75358
75359         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75360         * lib/backupfile.c (base_name): Likewise.
75361         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75362         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75363         * lib/makepath.c (strip_trailing_slashes): Likewise.
75364         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75365         ISSLASH): Likewise.
75366         * lib/rename.c (strip_trailing_slashes): Likewise.
75367         * lib/same.c (base_name): Likewise.
75368         * lib/stripslash.c (ISSLASH): Likewise.
75369
75370         * lib/addext.c: Include <dirname.h> after size_t is defined.
75371         * lib/backupfile.c: Likewise.
75372
75373         * lib/addext.c (addext): Use base_len to trim redundant
75374         trailing slashes instead of doing it ourselves.
75375         But do not trim the last slash if it is not redundant.
75376
75377         * lib/backupfile.c (find_backup_file_name,
75378         max_backup_version): Use base_len instead of rolling it ourselves.
75379         Handle the case of "" and (on DOS) "C:" correctly.
75380
75381         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75382         needed. Include <string.h>, <dirname.h>.
75383         (base_name): Allow file names ending in slashes, other than names
75384         that are all slashes.  In this case, return the basename followed
75385         by the slashes.  This is more general, and can be used in places
75386         where the original base_name purposely had an assertion failure.
75387         (base_len): New function.
75388
75389         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75390         Do not include <assert.h>; no longer needed.
75391         Include xalloc.h.
75392         (memrchr): Remove decl.
75393         (dir_name_r): Remove.
75394         (dir_len): Renamed from dirlen.  All callers changed.
75395         Rewrite in terms of base_name, for simplicity and consistency.
75396         (dir_name): Never return NULL.  All callers changed.
75397         Do not include <stdlib.h> in test program; no longer needed.
75398         return 0; is fine for test program.
75399
75400         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75401         New macros.
75402         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75403
75404         * lib/path-concat.c (path_concat): Use base_len to compute
75405         base length, not strlen; this means we cannot rely on memcpy
75406         to null-terminate.
75407
75408         * lib/same.c (STREQ): Remove.
75409         (same_name): Handle the case where the basename ends in trailing '/'.
75410
75411         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75412         a slash was stripped.  Do not strip the last slash after a
75413         file system prefix.
75414
75415 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75416
75417         * lib/Makefile.am (libfetish_a_SOURCES):
75418         Add strftime.c, since we now compile it on all hosts.
75419
75420         * lib/strftime.c (my_strftime):
75421         Define to nstrftime if emacs, but only if my_strftime is not defined.
75422         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75423         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75424         Add one more extra argument: a nanoseconds value.
75425         All uses changed.
75426         (ns): New macro.
75427         (my_strftime function): Add %N format.
75428         (emacs_strftimeu): Renamed from emacs_strftime,
75429         with extra ut argument.
75430
75431 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75432
75433         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75434
75435 2001-04-21  Jim Meyering  <meyering@lucent.com>
75436
75437         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75438         doesn't interfere.
75439
75440 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75441
75442         * m4/ftruncate.m4: Check for chsize.
75443         Link with ftruncate.o unconditionally if ftruncate is missing.
75444         This was required when cross-compiling to i586-mingw32msvc.
75445
75446 2001-04-08  Jim Meyering  <meyering@lucent.com>
75447
75448         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75449         recomputed; that's necessary when the offset spans a DST transition.
75450         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75451
75452 2001-04-02  Jim Meyering  <meyering@lucent.com>
75453
75454         * lib/regex.h, regex.c: Update from GNU libc.
75455
75456 2001-03-24  Jim Meyering  <meyering@lucent.com>
75457
75458         * m4/jm-macros.m4: Require autoconf-2.49d.
75459
75460 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75461
75462         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75463
75464 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75465
75466         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75467
75468 2001-03-17  Jim Meyering  <meyering@lucent.com>
75469
75470         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75471         now that the version in autoconf is equivalent.
75472         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75473
75474         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75475         Suggestion from Akim Demaille.
75476
75477         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75478         (jm_PREREQ_TEMPNAME): New function.
75479
75480 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75481
75482         * lib/tempname.c (uint64_t): Define to uintmax_t if
75483         not defined, and if UINT64_MAX is not defined.
75484         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75485         Reported by John David Anglin.
75486
75487 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75488
75489         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75490         resolve alias if codeset is empty.
75491         * lib/config.charset (BeOS): Use wildcard syntax.
75492
75493 2001-03-13  Jim Meyering  <meyering@lucent.com>
75494
75495         * lib/path-concat.c (path_concat)
75496         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75497         concatenating e.g., `C:' and `foo'.
75498         From Bruno Haible.
75499
75500 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75501
75502         * lib/localcharset.c (locale_charset): Don't use
75503         setlocale(LC_CTYPE,NULL). Don't return NULL.
75504         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75505
75506 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75507
75508         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75509         support for DOS/DJGPP.
75510
75511 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75512
75513         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75514         lacks mkstemp.  Compile our own tempname.c if we compile our own
75515         mkstemp.c, as mkstemp relies on tempname.
75516
75517 2001-03-01  Jim Meyering  <meyering@lucent.com>
75518
75519         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75520         AH_VERBATIM really does output its argument verbatim.
75521
75522 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75523
75524         * lib/Makefile.am (libfetish_a_SOURCES):
75525         Add dup-safer.c, fopen-safer.c.
75526         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75527
75528         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75529         * lib/unistd-safer.h: New files.
75530
75531 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75532
75533         The mkstemp replacement is taken from glibc 2.2.2, with some
75534         portability fixes for use outside glibc, as follows:
75535
75536         * lib/tempname.c (struct_stat64): New macro.
75537         (direxists, __gen_tempname): Use it.
75538         This avoids a portability problem with Solaris 8.
75539
75540         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75541         (<stddef.h>, <stdint.h>, <string.h>):
75542         Include only if STDC_HEADERS || _LIBC.
75543         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75544         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75545         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75546         (__set_errno): Define this macro if <errno.h> doesn't.
75547         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75548         Define these macros if <stdio.h> doesn't.
75549         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75550         Define these macros if <sys/stat.h>
75551         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75552         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75553         __xstat64): Define if not _LIBC.
75554         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75555         (__gen_tempname): Invoke gettimeofday only if
75556         HAVE_GETTIMEOFDAY || _LIBC;
75557         otherwise, fall back on plain "time".
75558         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75559
75560         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75561
75562         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75563
75564 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75565
75566         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75567
75568 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75569
75570         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75571         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75572         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75574
75575 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75576
75577         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75578         Remove workaround macros for hosts that have mbrtowc but not
75579         mbstate_t, as we now insist on proper declarations for both
75580         before using mbrtowc.
75581
75582 2001-02-17  Jim Meyering  <meyering@lucent.com>
75583
75584         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75585         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75586         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75587         UnixWare 7.1.1.
75588
75589         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75590         rather than AC_CACHE_VAL.
75591
75592 2001-02-17  Jim Meyering  <meyering@lucent.com>
75593
75594         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75595         around included file name.
75596
75597         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75598
75599         * lib/strftime.c: Update from GNU libc (the only changes were to
75600         comments).
75601
75602 2001-02-17  Jim Meyering  <meyering@lucent.com>
75603
75604         * lib/regex.c: Update from libc.
75605
75606 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75607
75608         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75609         clash.
75610
75611 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75612
75613         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75614         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75615         Reported by Mark Hounschell via Paul Eggert.
75616
75617 2001-02-07  Jim Meyering  <meyering@lucent.com>
75618
75619         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75620
75621 2001-02-05  Jim Meyering  <meyering@lucent.com>
75622
75623         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75624         it includes the patch required for `large file' support with at least
75625         HP-UX's 10.20 /bin/cc.
75626
75627 2001-02-03  Jim Meyering  <meyering@lucent.com>
75628
75629         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75630         AS_IF, now that it works once again (mysteriously).
75631         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75632
75633 2001-01-30  Jim Meyering  <meyering@lucent.com>
75634
75635         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75636         * m4/chown.m4: Rename conftestchown to conftest.chown.
75637         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75638         s/conftestdir2/conftest.d2/.
75639         * m4/utimes.m4: s/conftestdata/conftest.data/
75640         Inspired by Pavel Roskin's change in autoconf.
75641
75642 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75643
75644         * lib/config.charset: Update for FreeBSD 4.2.
75645
75646 2001-01-27  Jim Meyering  <meyering@lucent.com>
75647
75648         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75649         a use of AS_IF.
75650         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75651
75652 2001-01-26  Jim Meyering  <meyering@lucent.com>
75653
75654         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75655         quotearg.c includes it.
75656
75657 2001-01-26  Jim Meyering  <meyering@lucent.com>
75658
75659         * lib/quotearg.c: Include stddef.h.
75660         * lib/quote.c: Include stddef.h.
75661         Reported by Axel Kittenberger.
75662
75663         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75664         line in double quotes so that it evokes a better diagnostic.
75665         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75666         Reported by Axel Kittenberger.
75667
75668 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75669
75670         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75671         as if it was a `charset'.
75672
75673 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75674
75675         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75676         has const.
75677
75678 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75679
75680         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75681         to avoid a warning.  Add back 'const' to inptr.
75682
75683 2001-01-20  Jim Meyering  <meyering@lucent.com>
75684
75685         Be sure that headers are checked before used in code compiled
75686         for the type checks.
75687         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75688         In place of that, invoke jm_CHECK_ALL_TYPES.
75689         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75690         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75691         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75692         The check for ssize_t was mistakenly run before the test for unistd.h.
75693
75694         The configure-time check for stdbool.h was missing.
75695         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75696         (jm_PREREQ_HASH): New function.
75697
75698 2001-01-17  Jim Meyering  <meyering@lucent.com>
75699
75700         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75701         for autoconf-2.49c.
75702         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75703
75704 2001-01-16  Jim Meyering  <meyering@lucent.com>
75705
75706         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75707         From Bruno Haible.
75708
75709 2001-01-14  Jim Meyering  <meyering@lucent.com>
75710
75711         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75712         foo and bar.  Create conftestdir/ in the script, not in the C code.
75713         Remove directories in the script, not in the C code.
75714         Remove conftestdir{,2} before trying to create the directory.
75715         Make the entire configure script fail if the mkdir fails.
75716
75717 2001-01-14  Jim Meyering  <meyering@lucent.com>
75718
75719         * lib/rename.c: New file.  From Volker Borchert.
75720         Include stdlib.h, string.h or strings.h, and xalloc.h.
75721         Use strip_trailing_slashes rather than open-coding it.
75722
75723 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75724
75725         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75726
75727 2001-01-03  Jim Meyering  <meyering@lucent.com>
75728
75729         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75730         of local `inptr' to avoid warning with some system declarations of
75731         iconv.
75732
75733 2001-01-02  Volker Borchert  <bt@teknon.de>
75734
75735         * m4/rename.m4: New file.
75736         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75737
75738 2001-01-01  Jim Meyering  <meyering@lucent.com>
75739
75740         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75741         even on systems with utmpx.h.  It's necessary for the declaration of
75742         utmp's ut_user member.  Reported by Andreas Jaeger.
75743
75744         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75745         available. They are required for the declarations of getgrgid and
75746         getpwuid resp.
75747         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75748         Reported by Andreas Jaeger.
75749
75750 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75751
75752         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75753         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75754         so `make install' also works in VPATH builds.
75755
75756 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75757
75758         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75759         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75760         can be used in subdirectories.
75761
75762 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75763
75764         * lib/modechange.c: Do not assume that mode_t uses the
75765         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75766         the other-execute bit of FOO even if S_IXOTH != 1.
75767
75768         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75769         WOTH, XOTH, ALLM): New macros.
75770         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75771          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75772         Use them.
75773         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75774         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75775         (mode_compile):
75776         No need to use uintmax_t; unsigned long is long enough.
75777         Don't bother to get suffix since we don't use it.
75778
75779 2000-12-26  Jim Meyering  <meyering@lucent.com>
75780
75781         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75782         better with autoheader.
75783
75784 2000-12-24  Jim Meyering  <meyering@lucent.com>
75785
75786         * lib/hash.c (is_prime): Return explicit boolean values.
75787         (hash_get_first): Return NULL to appease Irix5.6's 89.
75788         Reported by Nelson Beebe.
75789
75790 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75791
75792         * lib/localcharset.c (locale_charset): Add support for Win32.
75793
75794 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75795
75796         * lib/physmem.h, lib/physmem.c: New files.
75797
75798         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75799         (noinst_HEADERS): Add physmem.h.
75800
75801         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75802         't' for compatibility with Solaris 8 sort.
75803
75804 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75805
75806         * lib/config.charset: Add support for BeOS.
75807
75808 2000-12-17  Jim Meyering  <meyering@lucent.com>
75809
75810         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75811         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75812
75813 2000-12-16  Jim Meyering  <meyering@lucent.com>
75814
75815         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75816         N and M) would have treated it like `chown N:N FILE'.
75817
75818         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75819
75820 2000-12-16  Jim Meyering  <meyering@lucent.com>
75821
75822         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75823         SHELLS_FILE to a file name that's useful on djgpp systems.
75824         Include stdlib.h.
75825         (ADDITIONAL_DEFAULT_SHELLS): Define.
75826         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75827         Based mostly on a patch from Prashant TR.
75828
75829 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75830
75831         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75832         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75833         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75834
75835 2000-12-08  Andreas Schwab  <schwab@suse.de>
75836
75837         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75838         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75839
75840 2000-12-07  Jim Meyering  <meyering@lucent.com>
75841
75842         * lib/stripslash.c (ISSLASH): Define.
75843         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75844         `/'.
75845         From Prashant TR.
75846
75847         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75848         (dir_name_r): Declare this function as static.
75849         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75850         manifest itself on a name containing a mix of slashes and
75851         backslashes.
75852         Make this function work with names starting with a DOS-style
75853         drive letter and colon prefix.
75854         (dir_name): Append `.' if necessary.
75855         Based mostly on patches from Prashant TR and Eli Zaretskii.
75856
75857         * lib/dirname.h (dir_name_r): Remove prototype.
75858
75859 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75860
75861         * m4/off_t-format.m4: Remove this file.
75862         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75863
75864 2000-12-06  Jim Meyering  <meyering@lucent.com>
75865
75866         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75867         replacement strtoull, we may well need the replacement strtoul, too.
75868         Check for declarations of strtoul and strtoull.
75869         Check for strtol.  Mainly as a cue to cause automake to include
75870         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75871         Check for limits.h -- strtol.c needs it.
75872
75873 2000-12-05  Jim Meyering  <meyering@lucent.com>
75874
75875         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75876
75877 2000-12-04  Jim Meyering  <meyering@lucent.com>
75878
75879         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75880         Also include memory.h, stdlib.h, unistd.h if appropriate.
75881         Reported by Andreas Jaeger (conflicting declaration of malloc).
75882
75883 2000-12-02  Jim Meyering  <meyering@lucent.com>
75884
75885         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75886         * m4/jm-macros.m4 (jm_MACROS): require it.
75887
75888 2000-12-02  Jim Meyering  <meyering@lucent.com>
75889
75890         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75891
75892 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75893
75894         * lib/memrchr.c: Include <config.h> before any system include file.
75895
75896 2000-11-30  Jim Meyering  <meyering@lucent.com>
75897
75898         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75899
75900 2000-11-30  Jim Meyering  <meyering@lucent.com>
75901
75902         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75903
75904 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75905
75906         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75907
75908 2000-11-26  Jim Meyering  <meyering@lucent.com>
75909
75910         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75911
75912 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75913
75914         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75915         size of (size_t) -1; it's not portable.
75916
75917 2000-11-17  Jim Meyering  <meyering@lucent.com>
75918
75919         * lib/strstr.c: Update from GNU libc.
75920
75921 2000-11-17  Akim Demaille  <akim@epita.fr>
75922
75923         * lib/obstack.h: Formatting changes.
75924         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75925         prevent type checking.
75926         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75927         cast the value to (void *): assigning a `foo *' to a `void *'
75928         variable is valid.
75929         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75930
75931 2000-11-16  Jim Meyering  <meyering@lucent.com>
75932
75933         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75934
75935 2000-11-11  Jim Meyering  <meyering@lucent.com>
75936
75937         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75938
75939 2000-11-10  Jim Meyering  <meyering@lucent.com>
75940
75941         * lib/obstack.h: Update from GNU libc.
75942         * lib/obstack.c: Likewise.
75943
75944 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75945
75946         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75947
75948 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75949
75950         * lib/getusershell.c (setusershell): Use rewind rather than
75951         fseek/fseeko, to avoid configuration hassles with fseeko.
75952         Don't bother opening SHELLS_FILE if shellstream is NULL;
75953         it's not necessary.
75954
75955 2000-11-05  Jim Meyering  <meyering@lucent.com>
75956
75957         * lib/makepath.h (make_dir): Declare.
75958         * lib/makepath.c (make_dir): Remove `static' attribute.
75959         Tweak a comment.
75960
75961 2000-11-04  Jim Meyering  <meyering@lucent.com>
75962
75963         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75964
75965 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75966
75967         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75968         last one in a bucket, advance to the next bucket.
75969
75970 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75971
75972         * lib/fnmatch.c: Do not comment out all the code if we are using
75973         the GNU C library, because in some cases we are replacing buggy
75974         code in the GNU C library itself.
75975
75976 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75977
75978         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75979         (regex_compile): Catch bogus \(\1\).
75980
75981 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75982
75983         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75984         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75985         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75986
75987 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75988
75989         * lib/error.h, getline.h, modechange.h:
75990         Remove "2000" from Copyright line, as the file hasn't been
75991         changed this year other than in the copyright notice.
75992
75993         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75994         was changed this year.
75995
75996 2000-10-29  Jim Meyering  <meyering@lucent.com>
75997
75998         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75999         renaming.
76000         * m4/ls-mntd-fs.m4: Likewise
76001
76002 2000-10-29  Jim Meyering  <meyering@lucent.com>
76003
76004         * lib/xstat.in: Fix grammar in comment.
76005
76006 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76007
76008         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76009         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76010         doesn't define __restrict_arr.
76011
76012 2000-10-28  Jim Meyering  <meyering@lucent.com>
76013
76014         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76015         (jm_PREREQ_MEMCHR): New function.
76016
76017 2000-10-28  Jim Meyering  <meyering@lucent.com>
76018
76019         * lib/memchr.c: Update from libc.
76020         Adjust for portability:
76021         [HAVE_STDLIB_H]: Include stdlib.h.
76022         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76023         Undef __memchr, too.
76024         [!weak_alias]: Define __memchr to memchr.
76025
76026         * lib/regex.c: Update from libc.
76027         * lib/regex.h: Likewise.
76028         * lib/getopt1.c: Likewise.
76029         * lib/memcmp.c: Likewise.
76030
76031         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76032         Avoid using fseek, when possible -- it's broken by design.
76033         Patch by Ulrich Drepper.
76034
76035 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76036
76037         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76038         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76039         Giving in to popular pressure to shut up the compiler with casts.
76040
76041 2000-10-26  Jim Meyering  <meyering@lucent.com>
76042
76043         * lib/strftime.c: Update from libc.
76044
76045 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76046
76047         * regex.c: More `unsigned char' -> `re_char' changes.
76048         Also change several `int' into `re_wchar_t'.
76049         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76050         (PUSH_FAILURE_POINTER): Don't cast any more.
76051         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76052         We want GCC to complain, since this piece of code makes
76053         re_match non-reentrant, which *should* be fixed.
76054         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76055         (EXTEND_BUFFER): Use RETALLOC.
76056         (SET_LIST_BIT): Don't cast.
76057         (re_wchar_t): New type.
76058         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76059         that those two functions will always properly return.
76060         (IMMEDIATE_QUIT_CHECK): Cast to void.
76061         (analyse_first): Use recursion rather than an explicit stack.
76062         (re_compile_fastmap): Can't fail anymore.
76063         (re_search_2): Don't check re_compile_fastmap for failure.
76064         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76065         Now also sets the new value (passed in a new argument).
76066         (re_match_2_internal): Use it.
76067         Also, use a new var `reg' of type size_t when looping through regs
76068         rather than reuse the inappropriate `mcnt'.
76069
76070 2000-10-25  Jim Meyering  <meyering@lucent.com>
76071
76072         * lib/obstack.c: Update from libc.
76073
76074 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76075
76076         * regex.c (regex_compile): Change the way of handling a range from
76077         a char less than 256 to a char not less than 256.
76078
76079 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76080
76081         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76082         NT-Emacs only.
76083         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76084         so that re_search functions only quit when callers expect them to.
76085
76086 2000-10-23  Jim Meyering  <meyering@lucent.com>
76087
76088         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76089         wrong.  That set_locale call must not have any side effects.
76090         From Paul Eggert.
76091
76092 2000-10-22  Jim Meyering  <meyering@lucent.com>
76093
76094         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76095         [CYCLIC]: Remove now-unused definition.
76096
76097         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76098         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76099         Suggestion from Ulrich Drepper.
76100
76101 2000-10-21  Jim Meyering  <meyering@lucent.com>
76102
76103         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76104         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76106
76107 2000-10-21  Jim Meyering  <meyering@lucent.com>
76108
76109         * lib/dirname.c (memrchr): Declare if necessary.
76110         (dir_name): Remove the restriction that there be no
76111         trailing slashes.  Now, this code skips past them, effectively
76112         ignoring them.
76113         [TEST_DIRNAME] (main): New unit tests.
76114
76115         * lib/memrchr.c: New file from GNU libc.
76116         Undef __memrchr, too.
76117         [!weak_alias]: Define __memrchr to memrchr.
76118         Guard weak_alias use with `#ifdef weak_alias'.
76119
76120 2000-10-21  Jim Meyering  <meyering@lucent.com>
76121
76122         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76123         (dir_name): Use dir_name_r.
76124         * lib/dirname.h (dir_name_r): Declare it.
76125
76126 2000-10-17  Jim Meyering  <meyering@lucent.com>
76127
76128         * lib/quote.h (PARAMS): Define and use.
76129         Reported by Akim Demaille.
76130
76131         * lib/getopt.c: Update from libc.
76132
76133 2000-10-16  Jim Meyering  <meyering@lucent.com>
76134
76135         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76136         setlocale.
76137         From Jan Fedak.
76138
76139 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76140
76141         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76142
76143 2000-09-25  Jim Meyering  <meyering@lucent.com>
76144
76145         * lib/md5.h (rol): Define (from GnuPG).
76146
76147         * lib/sha.c: Give credit (GnuPG) where due.
76148         (M): Use rol rather than open-coding it.
76149         Add a FIXME comment.
76150
76151 2000-09-21  Jim Meyering  <meyering@lucent.com>
76152
76153         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76154         Reported by Michael Stone.
76155
76156 2000-09-20  Jim Meyering  <meyering@lucent.com>
76157
76158         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76159         (noinst_HEADERS): Add sha.h.
76160         Based on code from Scott G. Miller and from GnuPG.
76161
76162 2000-09-18  Jim Meyering  <meyering@lucent.com>
76163
76164         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76165         LIBS. Otherwise, everyone ends up linking with -lelf for some
76166         configurations.
76167         Reported by Mike Stone.
76168
76169 2000-09-15  Jim Meyering  <meyering@lucent.com>
76170
76171         * lib/regex.c: Update from libc.
76172
76173 2000-09-10  Jim Meyering  <meyering@lucent.com>
76174
76175         * lib/getopt.c (_getopt_internal): Update from glibc.
76176
76177 2000-09-09  Jim Meyering  <meyering@lucent.com>
76178
76179         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76180         think it should be used as a general replacement for isascii.
76181         * lib/fnmatch.c: Likewise.
76182         * lib/mbswidth.c: Likewise
76183         * lib/regex.c: Likewise.
76184
76185         Don't use atoi.
76186         * lib/userspec.c: Include sys/param.h and limits.h.
76187         Include xstrtol.h.
76188         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76189         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76190         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76191         UID, GID.  Check range.
76192
76193 2000-09-06  Jim Meyering  <meyering@lucent.com>
76194
76195         * lib/getopt.c (_getopt_internal): Update from glibc.
76196
76197 2000-08-30  Jim Meyering  <meyering@lucent.com>
76198
76199         * lib/strftime.c: Merge in changes from GNU libc.
76200
76201 2000-08-26  Jim Meyering  <meyering@lucent.com>
76202
76203         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76204         * m4/fpending.m4: New file.
76205
76206 2000-08-26  Jim Meyering  <meyering@lucent.com>
76207
76208         * lib/closeout.c: Include "__fpending.h".
76209         (close_stdout_status): Return right away if there's nothing to flush.
76210
76211         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76212         * lib/__fpending.c: New file.
76213         * lib/__fpending.h: New file.
76214
76215 2000-08-20  Jim Meyering  <meyering@lucent.com>
76216
76217         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76218         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76219         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76220
76221 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76222
76223         Improve fileutils installation on systems where running
76224         programs (like install) can't be unlinked.
76225         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76226         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76227
76228 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76229
76230         Standardize on "memory exhausted" instead of "Memory exhausted"
76231         or "virtual memory exhausted".
76232         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76233         "virtual memory exhausted".
76234         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76235         our own message.
76236         * lib/userspec.c (parse_user_spec): Likewise.
76237         * lib/bumpalloc.h: comment fix
76238         * lib/same.c, userspec.c: Include xalloc.h.
76239
76240         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76241         not char *const and pointing to a constant array.
76242         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76243         (xrealloc): Comment fix.
76244
76245         * lib/userspec.c (parse_user_spec):
76246         Don't translate a message until just before returning,
76247         to avoid unnecessary translation.
76248
76249 2000-08-07  Jim Meyering  <meyering@lucent.com>
76250
76251         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76252         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76253         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76254         getgroups.c, gethostname.c, getopt.h, group-member.c,
76255         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76256         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76257         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76258         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76259         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76260         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76261         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76262         yesno.c: Back out Copyright date changes for each file with no change
76263         this year.  This eases coordination with other programs using the same
76264         source code modules.  From Paul Eggert.
76265
76266 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76267
76268         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76269         not char, for compatibility with glibc 2.1.3 strftime.c.
76270
76271 2000-08-03  Greg McGary  <greg@mcgary.org>
76272
76273         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76274         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76275         (EXTEND_BUFFER): Use them.
76276
76277 2000-08-01  Jim Meyering  <meyering@lucent.com>
76278
76279         * lib/dirname.c (ISSLASH): Define.
76280         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76281         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76282         both `\' and `/' may be use as path separators.
76283         Based on a patch from Prashant TR.
76284
76285 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76286
76287         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76288         slot vector a constant, since it might get modified.
76289
76290 2000-07-31  Jim Meyering  <meyering@lucent.com>
76291
76292         * lib/xmalloc.c: Use `virtual memory exhausted', not
76293         `Memory exhausted'.
76294         * lib/obstack.c (print_and_abort): Likewise.
76295
76296 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76297
76298         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76299         buffer, so that the caller can always quote one small
76300         component of a "memory exhausted" message in slot 0.
76301         From a suggestion by Jim Meyering.
76302
76303 2000-07-30  Jim Meyering  <meyering@lucent.com>
76304
76305         * lib/makepath.c (make_path): Quote the other instance, too.
76306
76307         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76308         (STATIC_BUF_SIZE): Define.
76309         (quotearg_n_options): Use only statically allocated storage when
76310         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76311         than STATIC_BUF_SIZE.
76312
76313 2000-07-29  Jim Meyering  <meyering@lucent.com>
76314
76315         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76316         * lib/dirname.c (dir_name): Likewise.
76317
76318         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76319         `/'.
76320
76321         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76322         (dir_name): Assert that there are no trailing slashes.
76323
76324 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76325
76326         * lib/mbswidth.h (mbswidth): Add a flags argument.
76327         (mbswidth): New declaration.
76328         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76329         * lib/mbswidth.c (mbswidth): Add a flags argument.
76330         (mbsnwidth): New function.
76331
76332 2000-07-24  Jim Meyering  <meyering@lucent.com>
76333
76334         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76335
76336 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76337
76338         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76339
76340 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76341
76342         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76343         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76344         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76345         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76346         invoke multibyte primitives.
76347
76348 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76349
76350         * lib/quotearg.c:
76351         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76352         so that mbstate_t is always defined.
76353
76354         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76355         be 1 in at least one GCC installation, and this configuration
76356         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76357         performance on hosts that have mbrtowc but have only unibyte
76358         locales, but I assume these hosts are rare.
76359
76360 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76361
76362         * lib/mbswidth.c (_XOPEN_SOURCE):
76363         Don't define; this causes problems on Solaris 7.
76364         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76365
76366 2000-07-23  Jim Meyering  <meyering@lucent.com>
76367
76368         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76369         too: getgrgid, getpwuid, getuid.
76370
76371 2000-07-23  Jim Meyering  <meyering@lucent.com>
76372
76373         * lib/basename.c (base_name): Add an assertion.
76374
76375 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76376
76377         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76378         shadow its mbsinit function.
76379
76380 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76381
76382         * lib/mbswidth.h: New file.
76383         * lib/mbswidth.c: New file.
76384         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76385         (noinst_HEADERS): Add mbswidth.h.
76386
76387 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76388
76389         * lib/config.charset: Add support for FreeBSD. Improve support for
76390         HP-UX and IRIX 6.
76391
76392 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76393
76394         * m4/mbswidth.m4: New file.
76395         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76396
76397 2000-07-15  Jim Meyering  <meyering@lucent.com>
76398
76399         * lib/makepath.c: Include quote.h.
76400         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76401         corresponding argument in a `quote (...)' call.
76402         Give better diagnostics.
76403
76404         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76405         (noinst_HEADERS): Add quote.h.
76406
76407         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76408         from tar's src/misc.c.
76409         * lib/quote.h: New file.  Prototypes for same.
76410
76411 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76412
76413         From a suggestion by Bruno Haible.
76414         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76415         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76416         to decide whether to define the BeOS workaround macro;
76417         this adjusts to the change to AC_MBSTATE_T.
76418
76419 2000-07-14  Jim Meyering  <meyering@lucent.com>
76420
76421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76422         jm_AC_TYPE_UINTMAX_T.
76423
76424 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76425
76426         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76427
76428         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76429         quotearg_buffer_restyled): Add support for
76430         clocale_quoting_style.  Undo previous change to
76431         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76432         and "{RIGHT QUOTATION MARK}" msgids.
76433
76434 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76435
76436         From a suggestion by Bruno Haible.
76437         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76438         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76439         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76440         and mbstate_t, to a single-part test that simply defines mbstate_t.
76441         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76442         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76443
76444 2000-07-10  Jim Meyering  <meyering@lucent.com>
76445
76446         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76447
76448         * m4/gnu-source.m4: Output to confdefs.h directly.
76449         Suggestion from Akim Demaille.
76450
76451 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76452
76453         The old behavior of quoting `like this' doesn't look good with
76454         newer, ISO-style fonts.  See:
76455         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76456
76457         Instead, quote "like this" by default.  Let the translator
76458         tailor the locale-specific quoting behavior by providing
76459         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76460
76461         * lib/quotearg.c (N_): New macro.
76462         (gettext_default): New function.
76463         (quotearg_buffer_restyled): Use
76464         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76465         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76466
76467 2000-07-09  Jim Meyering  <meyering@lucent.com>
76468
76469         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76470         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76471
76472         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76473         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76474
76475 2000-07-09  Jim Meyering  <meyering@lucent.com>
76476
76477         * lib/Most files: Update copyright dates to include 2000.
76478
76479 2000-07-08  Jim Meyering  <meyering@lucent.com>
76480
76481         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76482         if not defined.
76483         (xgethostname): Remove now-unnecessary #ifdef.
76484         Move declaration of `err' into loop where it's used.
76485
76486 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76487         and Bruno Haible  <haible@clisp.cons.org>
76488
76489         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76490         only if the test for an object-type mbstate_t fails.  This
76491         prevents us from mistakenly reporting that mbstate_t is a
76492         system object type after we "#define mbstate_t int" to work
76493         around its lack.
76494
76495 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76496         and Bruno Haible  <haible@clisp.cons.org>
76497
76498         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76499
76500 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76501
76502         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76503         to strerror_r.
76504         Include <ctype.h> for use of isalpha.
76505
76506 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76507
76508         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76509         by allocating a larger buffer. Test the gethostname return value for
76510         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76511         returns an error and ENAMETOOLONG isn't defined.
76512
76513 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76514
76515         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76516         dimension.
76517
76518 2000-07-04  Jim Meyering  <meyering@lucent.com>
76519
76520         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76521         of the deprecated AC_CHECKING.
76522
76523 2000-07-04  Jim Meyering  <meyering@lucent.com>
76524
76525         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76526         Reported by Bruno Haible.
76527
76528 2000-07-04  Jim Meyering  <meyering@lucent.com>
76529
76530         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76531         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76532         lacks mbrtowc.
76533
76534 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76535
76536         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76537         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76538
76539 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76540         and Bruno Haible  <haible@clisp.cons.org>
76541
76542         * lib/quotearg.c (mbrtowc):
76543         Assign to *pwc, and return 1 only if result is nonzero.
76544         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76545
76546 2000-07-03  Jim Meyering  <meyering@lucent.com>
76547
76548         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76549
76550 2000-07-03  Jim Meyering  <meyering@lucent.com>
76551
76552         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76553         This is necessary to get a definition of e.g., UTMP_FILE on
76554         HP-UX 10.20.
76555         From Bob Proulx.
76556
76557 2000-07-02  Jim Meyering  <meyering@lucent.com>
76558
76559         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76560
76561         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76562         AC_LIBOBJ(function_name).
76563         * m4/chown.m4: Likewise.
76564         * m4/fnmatch.m4: Likewise.
76565         * m4/ftruncate.m4: Likewise.
76566         * m4/getgroups.m4: Likewise.
76567         * m4/getline.m4: Likewise.
76568         * m4/group-member.m4: Likewise.
76569         * m4/jm-macros.m4: Likewise.
76570         * m4/lstat.m4: Likewise.
76571         * m4/malloc.m4: Likewise.
76572         * m4/memcmp.m4: Likewise.
76573         * m4/nanosleep.m4: Likewise.
76574         * m4/putenv.m4: Likewise.
76575         * m4/realloc.m4: Likewise.
76576         * m4/regex.m4: Likewise.
76577         * m4/stat.m4: Likewise.
76578         * m4/strftime.m4: Likewise.
76579
76580 2000-07-02  Jim Meyering  <meyering@lucent.com>
76581
76582         * lib/quotearg.c (mbstate_t): Don't define here.
76583
76584 2000-07-02  Jim Meyering  <meyering@lucent.com>
76585
76586         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76587
76588 2000-07-01  Jim Meyering  <meyering@lucent.com>
76589
76590         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76591
76592 2000-07-01  Jim Meyering  <meyering@lucent.com>
76593
76594         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76595         problem.
76596
76597 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76598
76599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76600         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76601
76602 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76603
76604         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76605         per change in ../m4/ls-mntd-fs.m4.
76606         (read_filesystem_list): Ignore symbolic links.
76607
76608 2000-06-29  Jim Meyering  <meyering@lucent.com>
76609
76610         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76611         for declaration of strcmp.
76612
76613         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76614
76615         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76616         Avoid warning by casting result to `char *' to remove `const'.
76617
76618 2000-06-28  Jim Meyering  <meyering@lucent.com>
76619
76620         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76621         included by quotearg.c, for which we perform this test.  From
76622         Bruno Haible.
76623
76624 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76625
76626         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76627         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76628         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76629
76630 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76631
76632         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76633
76634 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76635
76636         savedir now sets errno on failure and invokes xmalloc to get memory.
76637         Fix a couple of other minor bugs while we're at it.
76638
76639         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76640         (NAMLEN): Remove macro.
76641         (malloc, realloc): Remove decls.
76642         (stpcpy): Likewise.
76643         ("xalloc.h"): Include.
76644         (NAME_SIZE_DEFAULT): New macro.
76645         (savedir): Use xmalloc / xrealloc to allocate memory.
76646         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76647         Skip "" directory entries.
76648         Use strlen to calculate directory entry length, since the old method
76649         is rarely used these days and isn't worth supporting.
76650         Don't use a pointer after freeing it.
76651         Check for integer overflow when calculating allocation size.
76652         Use memcpy to copy entries, instead of stpcpy.
76653         Set errno properly when returning NULL.
76654         Check for readdir error.
76655
76656 2000-06-26  Jim Meyering  <meyering@lucent.com>
76657
76658         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76659
76660 2000-06-25  Jim Meyering  <meyering@lucent.com>
76661
76662         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76663         Linux header bug when _XOPEN_SOURCE is defined to 500.
76664
76665 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76666
76667         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76668         deficiency.
76669
76670 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76671
76672         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76673         Include xalloc.h.
76674         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76675
76676 2000-06-24  Jim Meyering  <meyering@lucent.com>
76677
76678         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76679         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76680         for which strerror does return char*, but which lacks a conveniently
76681         accessible declaration of the function.  If the compile-test says
76682         strerror_r doesn't work, then resort to a `run'-test that works on
76683         BeOS and segfaults on DEC Unix.
76684
76685 2000-06-24  Jim Meyering  <meyering@lucent.com>
76686
76687         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76688
76689 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76690
76691         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76692         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76693
76694 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76695
76696         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76697         (mbrtowc, mbstate_t): Define substitutes if
76698         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76699         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76700         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76701
76702 2000-06-23  Jim Meyering  <meyering@lucent.com>
76703
76704         * m4/afs.m4: Add missing AC_MSG_RESULT.
76705         Reported by Bruno Haible.
76706
76707         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76708         Suggestion from Bruno Haible.
76709
76710 2000-06-23  Jim Meyering  <meyering@lucent.com>
76711
76712         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76713
76714 2000-06-21  Jim Meyering  <meyering@lucent.com>
76715
76716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76717
76718 2000-06-21  Jim Meyering  <meyering@lucent.com>
76719
76720         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76721         (noinst_HEADERS): Add getstr.h.
76722
76723         * lib/getline.c (getstr): Move into a separate file.
76724         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76725         the following changes: new parameter, delim2; both delim[12]
76726         parameters have type `int', not `char'.  The latter would lose
76727         with 8-bit delimiters.
76728         * lib/getstr.h: New file.
76729
76730 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76731
76732         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76733         than 1024, return a memory chunk of least possible size, instead
76734         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76735         Use free/xmalloc instead of xrealloc to avoid copying for very long
76736         paths.
76737
76738 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76739
76740         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76741         the empty string.
76742
76743 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76744
76745         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76746         address, not strdup.  Include <stdlib.h> and don't declare free().
76747
76748 2000-06-19  Jim Meyering  <meyering@lucent.com>
76749
76750         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76751
76752 2000-06-18  Jim Meyering  <meyering@lucent.com>
76753
76754         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76755
76756         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76757         `checking whether...' message to be consistent with that of the
76758         lstat test.
76759
76760 2000-06-18  Jim Meyering  <meyering@lucent.com>
76761
76762         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76763         Besides, these days every porting target provides a mkdir function.
76764
76765         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76766         needed. (this snippet comes from src/system.h).
76767
76768 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76769
76770         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76771
76772 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76773
76774         * lib/human.c (adjust_value): New function.
76775         (human_readable_inexact): Apply rounding style even when
76776         printing approximate values.
76777
76778 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76779
76780         * lib/human.c (human_readable_inexact): Allow an input block
76781         size that is not a multiple of the output block size, and vice versa.
76782         Reported by Piergiorgio Sartor.
76783
76784 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76785
76786         * lib/getdate.y (get_date): Apply relative times after time
76787         zone indicator, not before.  Reported by Todd A. Jacobs.
76788
76789 2000-06-13  Jim Meyering  <meyering@lucent.com>
76790
76791         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76792
76793         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76794
76795 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76796
76797         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76798
76799 2000-06-12  Jim Meyering  <meyering@lucent.com>
76800
76801         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76802         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76803         optional argument.
76804         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76805         the optional argument, `lib'.
76806
76807 2000-06-08  Jim Meyering  <meyering@lucent.com>
76808
76809         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76810
76811 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76812
76813         Rewrite largefile configuration so that we don't need to run
76814         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76815         AC_CANONICAL_HOST in configure.in -- jmm]
76816
76817         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76818         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76819         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76820         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76821         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76822         All uses changed.
76823         Instead of inspecting the output of getconf, try to compile the
76824         test program without and with the macro definition.
76825         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76826         for getconf.  Instead, check for the needed flags by compiling
76827         test programs.
76828
76829 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76830
76831         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76832
76833 2000-06-04  Jim Meyering  <meyering@lucent.com>
76834
76835         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76836         SunOS 4.1.4 for which gid_t is an unsigned type.
76837
76838 2000-06-03  Jim Meyering  <meyering@lucent.com>
76839
76840         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76841         now that autoconf requires that.
76842
76843         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76844         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76845         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76846
76847 2000-06-03  Jim Meyering  <meyering@lucent.com>
76848
76849         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76850
76851 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76852
76853         * m4/glibc21.m4: New file.
76854         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76855
76856 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76857
76858         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76859         newer, don't install charset.alias.
76860         * lib/config.charset: Change the Linux/glibc rules so they become empty
76861         on glibc-2.1 or newer.
76862
76863 2000-06-02  Jim Meyering  <meyering@lucent.com>
76864
76865         * lib/mountlist.c: Back out last change.  Instead, do this...
76866         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76867         me_dummy member using the same `ignore'-testing code.
76868         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76869         fs_type strings.
76870         From Mark D. Roth.
76871
76872 2000-05-29  Jim Meyering  <meyering@lucent.com>
76873
76874         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76875         mounts with the `ignore' attribute.  Based on a patch from
76876         Mark D. Roth.
76877
76878 2000-05-28  Jim Meyering  <meyering@lucent.com>
76879
76880         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76881         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76882         * m4/stat.m4: Likewise.
76883         * m4/lstat.m4: Likewise.
76884         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76885
76886         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76887         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76888
76889 2000-05-26  Jim Meyering  <meyering@lucent.com>
76890
76891         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76892
76893 2000-05-24  Jim Meyering  <meyering@lucent.com>
76894
76895         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76896         autoconf requires that.
76897         * m4/lib-check.m4: Likewise.
76898         * m4/jm-macros.m4: Likewise.
76899         * m4/strftime.m4: Likewise.
76900
76901         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76902         AC_CHECK_DECLS, now that autoconf requires that.
76903
76904 2000-05-22  Jim Meyering  <meyering@lucent.com>
76905
76906         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76907         * m4/lstat.m4: Likewise.
76908
76909 2000-05-22  Jim Meyering  <meyering@lucent.com>
76910
76911         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76912
76913 2000-05-20  Jim Meyering  <meyering@lucent.com>
76914
76915         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76916         (jm_PREREQ): Use it.
76917
76918 2000-05-18  Jim Meyering  <meyering@lucent.com>
76919
76920         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76921         back, too, since it may have been modified by allocate_entry.
76922         (hash_delete): Rewrite to use neither the assignment operator
76923         nor the comma operator in an if-expression.
76924
76925 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76926
76927         * lib/closeout.c:
76928         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76929         Remove; no longer needed.
76930         "quotearg.h": Add include.
76931         (file_name): Do not bother to explicitly initialize to NULL; it's less
76932         efficient on some hosts.
76933         (close_stdout_status): Remove test as to whether stdout was already
76934         closed; it breaks for the case "echo x | sort >&-".
76935         Quote file name colons.
76936         Do not assume that _("write error") lacks format strings.
76937
76938 2000-05-15  Jim Meyering  <meyering@lucent.com>
76939
76940         * lib/version-etc.c (version_etc_copyright): Update the copyright
76941         string used in all --version output.
76942
76943 2000-05-14  Jim Meyering  <meyering@lucent.com>
76944
76945         * lib/closeout.c (close_stdout_set_file_name): New function.
76946         (close_stdout_status): Use new file-scoped global.
76947         Return right away if fstat says the stdout file descriptor is invalid.
76948         * lib/closeout.h (close_stdout_set_file_name): Declare.
76949
76950 2000-05-10  Jim Meyering  <meyering@lucent.com>
76951
76952         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76953         (close_stdout_set_status): New function.
76954         * lib/closeout.h (close_stdout_set_status): Declare.
76955
76956 2000-05-09  Jim Meyering  <meyering@lucent.com>
76957
76958         * m4/gettext.m4: Rename this...
76959         * m4/libintl.m4: ...to this.
76960
76961 2000-05-08  Jim Meyering  <meyering@lucent.com>
76962
76963         * lib/long-options.c: Don't include closeout.h.
76964         (parse_long_options): Don't call close_stdout for --version.
76965
76966 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76967
76968         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76969         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76970         2.1.3 bug.  This avoids a clash when files like regex.c define
76971         _GNU_SOURCE.
76972
76973 2000-05-06  Jim Meyering  <meyering@lucent.com>
76974
76975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76976         (AC_REPLACE_FUNCS): Add strnlen.
76977
76978         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76979         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76980
76981         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76982         AC_SEARCH_LIBS call for nanosleep.
76983         (LIB_NANOSLEEP): Set and AC_SUBST.
76984
76985 2000-05-06  Jim Meyering  <meyering@lucent.com>
76986
76987         * lib/strnlen.c: Undefine __strnlen and strnlen.
76988         [!weak_alias]: Define __strnlen to strnlen.
76989
76990         * lib/atexit.c: New file, from libiberty.
76991
76992 2000-05-06  Jim Meyering  <meyering@lucent.com>
76993
76994         * lib/closeout.c (close_stdout_status): Also check for errors on the
76995         stderr stream.
76996
76997 2000-05-05  Jim Meyering  <meyering@lucent.com>
76998
76999         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77000         AC_SEARCH_LIBS call for clock_gettime.
77001         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77002
77003         * m4/search-libs.m4: Update from autoconf.
77004
77005         su doesn't work on Solaris 2.6.
77006         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77007         <shadow.h>.  Reported by Dragos Harabor.
77008
77009 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77010
77011         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77012         memcpy instead of xmalloc, xrealloc, path_concat.
77013         (locale_charset): Treat empty environment variables as absent.
77014         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77015
77016 2000-05-04  Jim Meyering  <meyering@lucent.com>
77017
77018         * lib/getopt.c: Update from glibc.
77019         * lib/obstack.c: Likewise.
77020         * lib/obstack.h: Likewise.
77021         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77022         file
77023
77024         * lib/regex.h: Likewise.
77025         * lib/strndup.c: Likewise.
77026         * lib/strnlen.c: New file, from glibc.
77027
77028 2000-05-03  Jim Meyering  <meyering@lucent.com>
77029
77030         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77031
77032 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77033
77034         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77035         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77036         compile-time test, rather than inspecting host and OS, to
77037         decide whether to define _LARGEFILE_SOURCE.
77038
77039 2000-05-01  Jim Meyering  <meyering@lucent.com>
77040
77041         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77042
77043         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77044         Based on a patch from Bruno Haible.
77045
77046 2000-05-01  Jim Meyering  <meyering@lucent.com>
77047
77048         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77049
77050 2000-04-29  Jim Meyering  <meyering@lucent.com>
77051
77052         * lib/path-concat.c: Declare strdup only if it's not defined.
77053         * lib/canon-host.c: Likewise.
77054
77055 2000-04-28  Jim Meyering  <meyering@lucent.com>
77056
77057         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77058         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77059         is included first, then limits.h is included by locale.h by libintl.h.
77060         From John David Anglin.
77061
77062 2000-04-25  Jim Meyering  <meyering@lucent.com>
77063
77064         * lib/makepath.c (S_IRWXUGO): Define.
77065         (make_path): Always perform explicit chmod if MODE specifies any
77066         of the `special' permission bits.  Prompted by a bug report against
77067         install from Mate Wierdl and Joost van Baal.
77068
77069 2000-04-18  Jim Meyering  <meyering@lucent.com>
77070
77071         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77072         (jm_PREREQ): Use it.
77073
77074 2000-04-18  Jim Meyering  <meyering@lucent.com>
77075
77076         * lib/README: New file.
77077
77078         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77079         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77080
77081 2000-04-17  Jim Meyering  <meyering@lucent.com>
77082
77083         Get it right :-)
77084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77085         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77086         Suggestion from Akim Demaille.
77087
77088 2000-04-17  Jim Meyering  <meyering@lucent.com>
77089
77090         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77091         the definition of it to rpl_strftime also defined-away the system's
77092         declaration.
77093
77094 2000-04-15  Jim Meyering  <meyering@lucent.com>
77095
77096         Use `C' to denote so-called `contiguous' files, the same way
77097         that tar does.
77098         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77099         (ftypelet): Use S_ISCTG.
77100         From Michael Deutschmann.
77101
77102 2000-04-14  Jim Meyering  <meyering@lucent.com>
77103
77104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77105         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77106         clobbered.
77107
77108 2000-04-14  Jim Meyering  <meyering@lucent.com>
77109
77110         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77111
77112 2000-04-13  Jim Meyering  <meyering@lucent.com>
77113
77114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77115         AH_VERBATIM to insert required #ifndef into config.h.in.
77116         Suggestion from Akim Demaille.
77117
77118 2000-04-12  Jim Meyering  <meyering@lucent.com>
77119
77120         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77121         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77122         Christian Krackowizer.
77123
77124         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77125         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77126         (AC_SYS_LARGEFILE): Require.
77127         (AM_C_PROTOTYPES): Require.
77128
77129 2000-04-08  Jim Meyering  <meyering@lucent.com>
77130
77131         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77132         names don't conflict.  Reported by Eli Zaretskii.
77133
77134 2000-04-07  Jim Meyering  <meyering@lucent.com>
77135
77136         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77137         sys/types.h, to work around system header problems on AIX 3.2.5.
77138         From Bruno Haible.
77139
77140 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77141
77142         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77143         bug.  Deal with the different error behavior of Irix iconv.
77144
77145 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77146
77147         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77148         IRIX if the installer said otherwise.
77149
77150 2000-04-05  Jim Meyering  <meyering@lucent.com>
77151
77152         Portability tweaks required for ultrix4.3.
77153         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77154         (jm_CHECK_DECLS): Add getutent to the list of functions.
77155         (_jm_DECL_HEADERS): Add utmpx.h.
77156         From John David Anglin.
77157
77158         * m4/strftime.m4: Back out the 2000-04-02 change.
77159         Instead of that change, simply undefine putenv in the test program.
77160
77161 2000-04-05  Jim Meyering  <meyering@lucent.com>
77162
77163         Portability tweaks required for ultrix4.3.
77164         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77165         getutent.
77166         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77167         * lib/canon-host.c: Declare strdup.
77168         * lib/path-concat.c: Likewise.
77169         From John David Anglin.
77170
77171 2000-04-04  Jim Meyering  <meyering@lucent.com>
77172
77173         Be more DOS 8.3-friendly.
77174         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77175         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77176         * lib/Makefile.am: Reflect renaming.
77177         Reported by Eli Zaretskii.
77178
77179         Use a temporary file name that won't clash with `charset.alias'
77180         in the DOS 8.3 name space.
77181         * lib/Makefile.am (charset_tmp): Define.
77182         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77183         (uninstall-local): Likewise.
77184         Reported by Eli Zaretskii.
77185
77186 2000-04-03  Jim Meyering  <meyering@lucent.com>
77187
77188         * m4/gettext.m4: Fix typo in comment.
77189
77190         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77191         textutils/configure.in).  Suggestion from Paul Eggert.
77192         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77193
77194 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77195
77196         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77197         variable in the shell rather than using putenv, which isn't
77198         portable.  This avoids the configure-time inter-test dependency
77199         on the potentially-renamed putenv function.
77200
77201 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77202
77203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77204         before checking struct stat.st_blksize, so that
77205         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77206
77207 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77208
77209         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77210         since strftime.c uses HAVE_STRFTIME to decide whether to use
77211         the underlying strftime.
77212
77213 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77214
77215         * lib/time/strftime.c (my_strftime): Make sure we call the system
77216         strftime, not ourselves, when invoking the underlying strftime.
77217
77218 2000-03-24  Jim Meyering  <meyering@lucent.com>
77219
77220         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77221         (charset_alias): Define.
77222         (install-exec-local): Factor out common code.
77223         (uninstall-local): Split lines longer than 80.
77224         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77225         (SUFFIXES): Define.
77226         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77227         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77228
77229 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77230
77231         * lib/config.charset: Output a line containing "Packages using this
77232         file".
77233         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77234         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77235         ref-del.sed): New rules.
77236
77237 2000-03-17  Jim Meyering  <meyering@lucent.com>
77238
77239         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77240         Otherwise, include <strings.h>
77241
77242 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77243
77244         * lib/unicodeio.c (utf8_wctomb): New function.
77245         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77246         format instead of in UCS-4 with platform dependent endianness.
77247
77248 2000-03-10  Jim Meyering  <meyering@lucent.com>
77249
77250         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77251         From Marco Franzen.
77252
77253 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77254
77255         * lib/savedir.c (savedir): Work even if directory size is
77256         negative; this can happen with some screwy NFS configurations.
77257
77258 2000-03-06  Jim Meyering  <meyering@lucent.com>
77259
77260         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77261         if it's NULL (because we ran out of memory).  From Bruno Haible.
77262
77263 2000-03-05  Jim Meyering  <meyering@lucent.com>
77264
77265         * lib/localcharset.c ("path-concat.h"): Include.
77266         (get_charset_aliases): Use path_concat instead of ANSI string
77267         concatenation.
77268
77269         * lib/unicodeio.h (PARAMS): Define.
77270         Use it to guard prototype.
77271
77272 2000-03-04  Jim Meyering  <meyering@lucent.com>
77273
77274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77275         for lib/localcharset.c.
77276
77277 2000-03-04  Jim Meyering  <meyering@lucent.com>
77278
77279         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77280         installing into it.
77281         (uninstall-local): Uncomment this rule so `make distcheck' works
77282         once again.
77283
77284         * lib/unicodeio.c (<errno.h>): Include it.
77285         (errno): Declare if not defined.
77286
77287         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77288
77289         * lib/config.charset: New version, incorporating remarks from a linux
77290         i18n mailing list.  From Bruno Haible.
77291
77292 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77293
77294         * m4/codeset.m4: New file.
77295         * m4/iconv.m4: New file.
77296         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77297
77298 2000-03-03  Jim Meyering  <meyering@lucent.com>
77299
77300         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77301
77302 2000-03-02  Jim Meyering  <meyering@lucent.com>
77303
77304         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77305         the messages come out on separate lines.
77306
77307         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77308         rather than jm_CHECK_DECLARATIONS.
77309         * m4/decl.m4: Remove now-unused file.
77310
77311         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77312         geteuid.
77313
77314 2000-03-02  Jim Meyering  <meyering@lucent.com>
77315
77316         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77317
77318 2000-03-01  Jim Meyering  <meyering@lucent.com>
77319
77320         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77321         * lib/unicodeio.c: Likewise.
77322
77323 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77324
77325         * lib/config.charset: New file.
77326         * lib/localcharset.c: New file.
77327         * lib/unicodeio.h, lib/unicodeio.c: New files.
77328         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77329         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77330         (noinst_HEADERS): Add unicodeio.h.
77331         (all-local, install-exec-local, charset.alias): New targets.
77332
77333 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77334
77335         * lib/quotearg.c (ALERT_CHAR): New macro.
77336         (quotearg_buffer_restyled): Use it.
77337
77338 2000-02-27  Jim Meyering  <meyering@lucent.com>
77339
77340         * m4/check-decl.m4: Add getenv to the list.
77341
77342 2000-02-27  Jim Meyering  <meyering@lucent.com>
77343
77344         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77345         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77346
77347         * lib/backupfile.c: Guard inclusion of stdlib.h with
77348         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77349         Declare malloc if needed.
77350
77351         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77352         `#ifndef HAVE_DECL..'
77353         now that autoconf always defines the HAVE_DECL_ symbols.
77354         * lib/human.c: Likewise.
77355         * lib/same.c: Likewise.
77356         * lib/strtoumax.c: Likewise.
77357
77358         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77359         declaration check was not run.
77360         * lib/hash.c: Likewise.
77361         * lib/human.c: Likewise.
77362         * lib/same.c: Likewise.
77363         * lib/strtoumax.c: Likewise.
77364
77365         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77366         `.', then first look up the entire `.'-containing string as a login
77367         name.
77368
77369 2000-02-23  Jim Meyering  <meyering@lucent.com>
77370
77371         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77372         in place of my hack.
77373
77374 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77375
77376         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77377         (textint): New typedef.
77378         (parser_control): Member year changed from int to textint.
77379         All uses changed.
77380         (YYSTYPE): Removed; replaced by %union with int and textint members.
77381         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77382         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77383         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77384         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77385         (date, number, to_year): Use width of number in digits, not its value,
77386         to determine whether it's a 2-digit year, or a 2-digit time.
77387         (yylex): Store number of digits of numeric tokens.
77388         Reported by John Kendall.
77389
77390         (parser_control): Changed from struct parser_control to typedef (for
77391         consistency).  All uses changed.
77392
77393         (tID): Removed; not used.
77394         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77395
77396 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77397
77398         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77399         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77400
77401 2000-02-12  Jim Meyering  <meyering@lucent.com>
77402
77403         * lib/userspec.c (ISDIGIT): Define it.
77404         (isdigit): Remove definition.
77405         (is_number): Use ISDIGIT, not isdigit.
77406         <libintl.h>: Include.
77407         (_ and N_): Define.
77408         (parse_user_spec): Mark translatable strings.
77409
77410 2000-02-10  Jim Meyering  <meyering@lucent.com>
77411
77412         With these changes, nanosleep.[ch] are finally enough like the other
77413         lib/* replacement files to compile on a few more losing systems.
77414
77415         * lib/nanosleep.h: Don't include config.h.
77416         Remove prototype from declaration of nanosleep.
77417         (PARAMS): Remove now-unneeded definition.
77418         * lib/nanosleep.c: #undef nanosleep.
77419         (rpl_nanosleep): Rename from nanosleep.
77420
77421 2000-02-10  Jim Meyering  <meyering@lucent.com>
77422
77423         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77424         gnu_nanosleep to rpl_nanosleep.
77425
77426 2000-02-09  Jim Meyering  <meyering@lucent.com>
77427
77428         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77429         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77430
77431 2000-02-08  Akim Demaille  <akim@epita.fr>
77432
77433         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77434         `[' and `]' and remove uses of `changequote'.
77435         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77436         (AC_SYS_LARGEFILE): Likewise.
77437         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77438         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77439         of changequote.
77440         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77441         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77442         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77443         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77444
77445 2000-02-05  Jim Meyering  <meyering@lucent.com>
77446
77447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77448         Remove explicit use of AC_HEADER_TIME.  It is required by
77449         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77450         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77451         in autoconf whereby the expansion of the latter ended up preceding
77452         the expansion of its prerequisite, AC_HEADER_TIME.
77453         Reported by Volker Borchert.
77454
77455 2000-02-03  Jim Meyering  <meyering@lucent.com>
77456
77457         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77458
77459 2000-02-03  Jim Meyering  <meyering@lucent.com>
77460
77461         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77462         rather than with `#if HAVE_UTMPNAME'.
77463
77464 2000-02-02  Jim Meyering  <meyering@lucent.com>
77465
77466         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77467         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77468         Reported by Eli Zaretskii.
77469
77470 2000-02-01  Jim Meyering  <meyering@lucent.com>
77471
77472         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77473
77474 2000-01-31  Jim Meyering  <meyering@lucent.com>
77475
77476         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77477         functions.  Add the time.h and sys/time.h headers along with the
77478         AC_REQUIRE'ment of AC_HEADER_TIME.
77479
77480 2000-01-31  Jim Meyering  <meyering@lucent.com>
77481
77482         * lib/nanosleep.h (nanosleep): Guard declaration with
77483         `#if ! HAVE_DECL_NANOSLEEP'.
77484         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77485         the declaration in that vendor's sys/timers.h.
77486         Reported by Christian Krackowizer.
77487
77488         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77489         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77490         (ISPRINT): Likewise.
77491         Reported by Tom Tromey.
77492
77493 2000-01-30  Jim Meyering  <meyering@lucent.com>
77494
77495         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77496
77497         * m4/prereq.m4 (utmp_includes): Define.
77498         Check for ut_user and ut_name members in both struct utmpx
77499         and struct utmp.
77500
77501 2000-01-30  Jim Meyering  <meyering@lucent.com>
77502
77503         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77504         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77505         header files where only utmpx.ut_user is declared.
77506
77507         * lib/readutmp.h (UT_USER): Define.
77508
77509 2000-01-29  Jim Meyering  <meyering@lucent.com>
77510
77511         * m4/lib-check.m4: New file containing library-related checks from
77512         fileutils and sh-utils (textutils had none).
77513
77514 2000-01-28  Jim Meyering  <meyering@lucent.com>
77515
77516         * m4/perl.m4: Change format of warning message to look more like that
77517         from the missing script.  Suggestion from François Pinard.
77518
77519 2000-01-25  Jim Meyering  <meyering@lucent.com>
77520
77521         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77522         well as time.h in the compile check.
77523         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77524         Fix typo in cross-compiling case: s/yes/no/.
77525
77526 2000-01-23  Jim Meyering  <meyering@lucent.com>
77527
77528         * m4/jm-macros.m4: Move df-related tests here from
77529         fileutils/configure.in
77530
77531         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77532         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77533
77534         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77535         s/space/ac_fsusage_space/.
77536         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77537
77538         * m4/ftruncate.m4: New file (derived from part of
77539         fileutils/configure.in).
77540         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77541         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77542
77543         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77544         AC_SUBST these here, rather than just in sh-util/configure.in, so
77545         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77546         all the same.
77547         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77548         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77549         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77550         (AC_SUBST(POW_LIBM)): Likewise.
77551         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77552
77553 2000-01-23  Jim Meyering  <meyering@lucent.com>
77554
77555         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77556         obstack.c.
77557
77558 2000-01-22  Jim Meyering  <meyering@lucent.com>
77559
77560         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77561
77562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77563
77564         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77565         configure.in
77566         (AC_CHECK_HEADERS): Likewise for sh-utils.
77567         (AC_CHECK_HEADERS): Likewise for textutils.
77568         Merge the three lists of headers.
77569
77570         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77571         from fileutils' configure.in.
77572
77573         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77574         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77575         check-decl.m4.
77576
77577         * m4/check-decl.m4: Use #if rather than #ifdef.
77578         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77579         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77580         (_jm_DECL_HEADERS): Define new function.
77581         (jm_CHECK_DECLARATIONS): Require it.
77582
77583 2000-01-22  Jim Meyering  <meyering@lucent.com>
77584
77585         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77586         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77587         Required for some AIX systems.  Reported by Christian Krackowizer.
77588         [TESTING] (main): New function.
77589
77590         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77591         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77592         letters.
77593
77594         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77595         iswprint.
77596
77597         * lib/strverscmp.c (ISDIGIT): Define.
77598         (strverscmp): Use ISDIGIT, not isdigit.
77599
77600 2000-01-19  Jim Meyering  <meyering@lucent.com>
77601
77602         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77603         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77604         defines `struct timespec' in <sys/time.h>
77605
77606         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77607         Thanks to Akim for explaining.
77608
77609 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77610
77611         * lib/nanosleep.c (nanosleep):
77612         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77613         POSIX.1 doesn't require SA_INTERRUPT and some systems
77614         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77615         it's been part of POSIX.1 since day 1 (in 1988).
77616
77617 2000-01-17  Jim Meyering  <meyering@lucent.com>
77618
77619         * lib/interlock: Remove unused file.  Reported by François Pinard.
77620
77621 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77622
77623         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77624         alert, backslash, formfeed, and vertical tab unnecessarily in
77625         shell quoting style.
77626
77627 2000-01-16  Jim Meyering  <meyering@lucent.com>
77628
77629         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77630         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77631         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77632         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77633
77634 2000-01-16  Jim Meyering  <meyering@lucent.com>
77635
77636         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77637         because the latter didn't work.
77638
77639 2000-01-15  Jim Meyering  <meyering@lucent.com>
77640
77641         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77642         (AC_REPLACE_FUNCS): Add memcpy and memset.
77643         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77644         Add strpbrk.
77645         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77646
77647 2000-01-12  Jim Meyering  <meyering@lucent.com>
77648
77649         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77650         (jm_PREREQ): Use it.
77651         (jm_PREREQ_READUTMP): New macro.
77652         (jm_PREREQ): Use it.
77653
77654 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77655
77656         Quote multibyte characters correctly.
77657         * m4/c-bs-a.m4: New file.
77658         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77659         (jm_PREREQ): Use it.
77660
77661 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77662
77663         * m4/uintmax_t.m4: Port to autoconf 2.13.
77664
77665 2000-01-08  Jim Meyering  <meyering@ascend.com>
77666
77667         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77668         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77669
77670 2000-01-04  Jim Meyering  <meyering@ascend.com>
77671
77672         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77673         jm_STRUCT_DIRENT_D_TYPE.
77674         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77675         jm_STRUCT_DIRENT_D_INO.
77676         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77677         jm_STRUCT_UTIMBUF.
77678         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77679         renamings.
77680         * m4/utime.m4: Likewise.
77681
77682         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77683         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77684
77685 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77686
77687         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77688         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77689
77690 2000-01-02  Jim Meyering  <meyering@ascend.com>
77691
77692         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77693         remember if this is necessary.
77694
77695 1999-12-26  Jim Meyering  <meyering@ascend.com>
77696
77697         * m4/jm-macros.m4: Use it here.
77698         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77699
77700 1999-12-23  Jim Meyering  <meyering@ascend.com>
77701
77702         * m4/jm-macros.m4: Check for clock_gettime (moved from
77703         fileutils/configure.in)
77704         Check for gettimeofday.
77705
77706 1999-12-20  Jim Meyering  <meyering@ascend.com>
77707
77708         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77709         autoconf-2.14a-1999-12-20.
77710
77711 1999-12-19  Jim Meyering  <meyering@ascend.com>
77712
77713         * m4/lstat-slash.m4: New file.
77714         * m4/jm-macros.m4: Use the new macro:
77715         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77716
77717 1999-12-07  Jim Meyering  <meyering@ascend.com>
77718
77719         * m4/perl.m4: Require that File::Compare be available, too.
77720         Too many systems seem to lack it.
77721
77722         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77723         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77724
77725 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77726
77727         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77728         problem with the QNX 4.25 shell, which doesn't propagate exit
77729         status of failed commands inside shell assignments.
77730
77731 1999-11-17  Jim Meyering  <meyering@ascend.com>
77732
77733         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77734
77735 1999-11-07  Jim Meyering  <meyering@ascend.com>
77736
77737         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77738
77739 1999-11-06  Jim Meyering  <meyering@ascend.com>
77740
77741         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77742         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77743
77744 1999-11-05  Jim Meyering  <meyering@ascend.com>
77745
77746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77747         configure.in of textutils, fileutils, and sh-utils into this one
77748         (shared between those packages) file.
77749         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77750         AC_STRUCT_ST_BLKSIZE.
77751
77752 1999-11-03  Jim Meyering  <meyering@ascend.com>
77753
77754         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77755         of AC_CHECK_TYPE checks includes unistd.h.
77756         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77757         Suggestion from Akim Demaille.
77758
77759 1999-10-30  Jim Meyering  <meyering@ascend.com>
77760
77761         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77762         m4-quoted string.
77763         * m4/ls-mntd-fs.m4: Likewise.
77764         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77765         * m4/jm-winsz1.m4: Likewise.
77766
77767         * m4/const.m4: Remove file, since the fix made it into the experimental
77768         version of autoconf.
77769         * m4/mktime.m4: Likewise.
77770
77771         * m4/check-type.m4: Remove file, now that the latest version of
77772         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77773
77774         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77775         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77776         AC_CHECK_TYPE.
77777
77778 1999-10-04  Jim Meyering  <meyering@ascend.com>
77779
77780         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77781
77782 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77783
77784         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77785         2.95.1 bug with HP-UX 10.20.
77786
77787 1999-09-17  Jim Meyering  <meyering@ascend.com>
77788
77789         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77790         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77791         due to missing strdup (against sh-utils-2.0).
77792
77793 1999-08-29  Jim Meyering  <meyering@ascend.com>
77794
77795         * m4/jm-macros.m4: Require jm_BISON.
77796         * m4/bison.m4: New file.
77797
77798 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77799
77800         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77801         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77802
77803 1999-08-05  Jim Meyering  <meyering@ascend.com>
77804
77805         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77806         to avoid conflicts with `conftest' on 8+3 filesystems.
77807         Suggestion from Eli Zaretskii.
77808
77809 1999-08-04  Jim Meyering  <meyering@ascend.com>
77810
77811         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77812         fileutils and sh-utils (textutils's getline test was inadequate).
77813         (AM_FUNC_GETLINE): Run this test.
77814         (AC_CHECK_FUNCS): Check for getdelim.
77815         Reported by Bob Proulx.
77816
77817 1999-08-02  Jim Meyering  <meyering@ascend.com>
77818
77819         * m4/jm-macros.m4: Add a comment.
77820
77821 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77822
77823         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77824         <inttypes.h> defines strtoumax as a macro (and not as a
77825         function).
77826
77827 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77828
77829         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77830         that we can shift, multiply and divide unsigned long long
77831         values; Ultrix cc can't do it.
77832
77833 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77834
77835         * m4/mktime.m4: New file, which is a preview of what should appear
77836         in the next public autoconf release.
77837
77838 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77839
77840         * m4/lfs.m4: Remove this file.
77841         * m4/largefile.m4: New file.  It contains the old contents of
77842         lfs.m4, except that all names with prefix AC_LFS have been
77843         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77844         compatible with future autoconf versions.  Also, some minor m4
77845         quoting problems have been fixed.
77846
77847 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77848
77849         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77850         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77851         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77852         and simplify the shell code.
77853
77854 1999-08-01  Jim Meyering  <meyering@ascend.com>
77855
77856         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77857         m4.
77858
77859 1999-07-20  Jim Meyering  <meyering@ascend.com>
77860
77861         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77862
77863 1999-07-15  Jim Meyering  <meyering@ascend.com>
77864
77865         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77866
77867 1999-05-22  Jim Meyering  <meyering@ascend.com>
77868
77869         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77870
77871 1999-05-20  Jim Meyering  <meyering@ascend.com>
77872
77873         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77874         Add a colon after each `then' in case $4 is empty.
77875
77876 1999-05-16  Jim Meyering  <meyering@ascend.com>
77877
77878         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77879
77880 1999-05-10  Jim Meyering  <meyering@ascend.com>
77881
77882         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77883
77884         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77885         AC_FUNC_MKTIME.
77886
77887 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77888
77889         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77890
77891 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77892
77893         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77894         not CPPFLAGS, so that linking works correctly in IRIX.
77895
77896 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77897
77898         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77899
77900 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77901
77902         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77903         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77905         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77906         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77907
77908         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77909
77910 1999-04-20  Jim Meyering  <meyering@ascend.com>
77911
77912         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77913         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77914         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77915
77916 1999-04-18  Jim Meyering  <meyering@ascend.com>
77917
77918         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77919         * m4/jm-macros.m4: Use it.
77920
77921 1999-04-06  Jim Meyering  <meyering@ascend.com>
77922
77923         * m4/strftime.m4: Remove test for %f.
77924
77925 1999-03-29  Jim Meyering  <meyering@ascend.com>
77926
77927         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77928         superset of the AC_TYPE_* checks in the textutils, fileutils,
77929         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77930         AC_TYPE_PID_T.
77931
77932 1999-03-28  Jim Meyering  <meyering@ascend.com>
77933
77934         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77935         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77936         replaced e.g., in the *.sh files of the sh-utils.
77937
77938 1999-03-20  Jim Meyering  <meyering@ascend.com>
77939
77940         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77941         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77942         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77943
77944 1999-03-19  Jim Meyering  <meyering@ascend.com>
77945
77946         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77947
77948 1999-03-12  Jim Meyering  <meyering@ascend.com>
77949
77950         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77951
77952 1999-03-07  Jim Meyering  <meyering@ascend.com>
77953
77954         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77955         declared.
77956
77957 1999-02-17  Jim Meyering  <meyering@ascend.com>
77958
77959         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77960         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77961
77962 1999-02-07  Jim Meyering  <meyering@ascend.com>
77963
77964         * m4/group-member.m4: New file -- extracted from sh-utils'
77965         configure.in.
77966
77967         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77968         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77969
77970 1999-02-06  Jim Meyering  <meyering@ascend.com>
77971
77972         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77973         * m4/fnmatch.m4: Likewise.
77974         * m4/getgroups.m4: Likewise.
77975         * m4/lstat.m4: Likewise.
77976         * m4/malloc.m4: Likewise.
77977         * m4/putenv.m4: Likewise.
77978         * m4/realloc.m4: Likewise.
77979         * m4/regex.m4: Likewise.
77980         * m4/stat.m4: Likewise.
77981         * m4/strftime.m4: Likewise.
77982         Suggestion from Alain Magloire.
77983
77984         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77985         * m4/fnmatch.m4: Likewise.
77986         * m4/getgroups.m4: Likewise.
77987         * m4/getline.m4: Likewise.
77988         * m4/lstat.m4: Likewise.
77989         * m4/malloc.m4: Likewise.
77990         * m4/memcmp.m4: Likewise.
77991         * m4/putenv.m4: Likewise.
77992         * m4/realloc.m4: Likewise.
77993         * m4/regex.m4: Likewise.
77994         * m4/stat.m4: Likewise.
77995         * m4/strftime.m4: Likewise.
77996         Suggestion from Alain Magloire.
77997
77998         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77999         an argument.
78000
78001         * m4/regex.m4: Add a run-time Test for proper operation of
78002         re_compile_pattern.
78003
78004 1999-01-31  Jim Meyering  <meyering@ascend.com>
78005
78006         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78007
78008 1999-01-30  Jim Meyering  <meyering@ascend.com>
78009
78010         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78011
78012         * m4/jm-mktime.m4: Make this a wrapper around the official
78013         AM_FUNC_MKTIME rather than my private copy, now that the official one
78014         is up to date.
78015         * m4/mktime.m4: Remove file.
78016
78017         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78018         * m4/uptime.m4: Likewise.
78019         * m4/uintmax_t.m4: Likewise.
78020
78021 1999-01-28  Jim Meyering  <meyering@ascend.com>
78022
78023         * m4/jm-macros.m4: Use jm_AFS.
78024         * m4/afs.m4: New file (from fileutils' configure.in).
78025
78026         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78027         * m4/chown.m4: Likewise.
78028         * m4/d-ino.m4: Likewise.
78029         * m4/d-type.m4: Likewise.
78030         * m4/fnmatch.m4: Likewise.
78031         * m4/getgroups.m4: Likewise.
78032         * m4/gettext.m4: Likewise.
78033         * m4/jm-mktime.m4: Likewise.
78034         * m4/jm-winsz2.m4: Likewise.
78035         * m4/lcmessage.m4: Likewise.
78036         * m4/ls-mntd-fs.m4: Likewise.
78037         * m4/malloc.m4: Likewise.
78038         * m4/memcmp.m4: Likewise.
78039         * m4/putenv.m4: Likewise.
78040         * m4/realloc.m4: Likewise.
78041         * m4/st_mtim.m4: Likewise.
78042         * m4/strftime.m4: Likewise.
78043
78044 1999-01-16  Jim Meyering  <meyering@ascend.com>
78045
78046         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78047         (ARGMATCH_DIE_DECL): Define.
78048
78049 1999-01-12  Jim Meyering  <meyering@ascend.com>
78050
78051         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78052         Reported by Lars Hecking.
78053
78054 1999-01-10  Jim Meyering  <meyering@ascend.com>
78055
78056         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78057         gross kludge.
78058         * m4/inttypes_h.m4: Likewise.
78059         * m4/lstat.m4: Likewise.
78060         * m4/malloc.m4: Likewise.
78061         * m4/readdir.m4: Likewise.
78062         * m4/realloc.m4: Likewise.
78063         * m4/st_dm_mode.m4: Likewise.
78064         * m4/stat.m4: Likewise.
78065         * m4/utimbuf.m4: Likewise.
78066         * m4/utimes.m4: Likewise.
78067
78068         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78069         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78070         comments in config.h.in are meaningful.
78071
78072         * m4/jm-macros.m4: Require autoconf-2.13 here.
78073
78074         * m4/regex.m4: By default, don't use the included regex.c on systems
78075         with glibc 2.  Suggestion from Uli Drepper.
78076
78077 1999-01-02  Jim Meyering  <meyering@ascend.com>
78078
78079         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78080
78081 1998-12-18  Jim Meyering  <meyering@ascend.com>
78082
78083         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78084         Based on a suggestion from Lars Hecking.
78085
78086 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78087
78088         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78089
78090 1998-11-16  Jim Meyering  <meyering@ascend.com>
78091
78092         * m4/lfs.m4: Double-quote the `uname...` expression.
78093
78094 1998-11-14  Jim Meyering  <meyering@ascend.com>
78095
78096         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78097         * m4/stat.m4: Likewise.
78098
78099 1998-11-03  Jim Meyering  <meyering@ascend.com>
78100
78101         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78102         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78103
78104 1998-10-18  Jim Meyering  <meyering@ascend.com>
78105
78106         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78107
78108 1998-10-17  Jim Meyering  <meyering@ascend.com>
78109
78110         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78111         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78112         calls for those previously hard-coded headers.  Instead, take a new
78113         parameter.
78114         (jm_CHECK_DECLARATIONS): Reflect interface change.
78115         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78116         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78117
78118         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78119
78120 1998-10-14  Jim Meyering  <meyering@ascend.com>
78121
78122         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78123         instead of "TZ=America/Vancouver".  From Paul Eggert.
78124
78125 1998-10-11  Jim Meyering  <meyering@ascend.com>
78126
78127         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78128         This adds a test for a recently added compatibility fix for mktime.c.
78129         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78130
78131 1998-09-27  Jim Meyering  <meyering@ascend.com>
78132
78133         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78134
78135         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78136         ../configure.in, including a change from Gordon Matzigkeit to allow
78137         cross-compiling for the Hurd.
78138
78139         * m4/glibc.m4: New file/macro to test for the GNU C Library
78140         versions 1 and 2.  From Gordon Matzigkeit.
78141         Indent.
78142
78143 1998-09-21  Jim Meyering  <meyering@ascend.com>
78144
78145         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78146
78147 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78148
78149         Port nanosecond-resolution times to UnixWare 2.1.2 and
78150         pedantic Solaris 2.6.
78151
78152         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78153         AC_STRUCT_ST_MTIM.
78154         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78155         Generate name of ns member, instead of just 1 or undef.
78156         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78157
78158 1998-08-15  Jim Meyering  <meyering@ascend.com>
78159
78160         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78161         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78162         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78163         instead of jm_TYPE_SSIZE_T.
78164
78165 1998-08-12  Jim Meyering  <meyering@ascend.com>
78166
78167         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78168
78169 1998-08-02  Jim Meyering  <meyering@ascend.com>
78170
78171         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78172         in acconfig.h manually.
78173
78174 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78175
78176         * m4/st_mtim.m4: New file.
78177
78178 1998-07-28  Jim Meyering  <meyering@ascend.com>
78179
78180         * m4/utimes.m4: Undef stat.
78181
78182 1998-07-25  Jim Meyering  <meyering@ascend.com>
78183
78184         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78185         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78186
78187 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78188
78189         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78190         uid and gid actually remain unchanged.
78191
78192 1998-07-07  Jim Meyering  <meyering@ascend.com>
78193
78194         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78195
78196 1998-07-04  Jim Meyering  <meyering@ascend.com>
78197
78198         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78199         to prove that this macro can be used in packages without regex.c.
78200
78201 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78202
78203         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78204         is to be used.
78205
78206 1998-07-03  Jim Meyering  <meyering@ascend.com>
78207
78208         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78209
78210         * m4/gettext.m4: New file -- from gettext-0.10.35.
78211         * m4/lcmessage.m4: Likewise.
78212         * m4/progtest.m4: Likewise.
78213
78214         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78215         * m4/jm-macros.m4: Require the new macro.
78216
78217 1998-06-29  Jim Meyering  <meyering@ascend.com>
78218
78219         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78220         for the definition of NGROUPS (used in a system header included
78221         by sys/mount.h).
78222
78223 1998-06-28  Jim Meyering  <meyering@ascend.com>
78224
78225         * m4/ls-mntd-fs.m4: New file.
78226         * m4/fstypename.m4: New file.
78227
78228         * m4/jm-macros.m4: Require the new macro.
78229         * m4/jm-glibc-io.m4: New file.
78230
78231 1998-05-19  Jim Meyering  <meyering@ascend.com>
78232
78233         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78234         * m4/lchown.m4: New file.
78235
78236         * m4/Makefile.am.in: New file.
78237         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78238
78239 1998-05-14  Jim Meyering  <meyering@ascend.com>
78240
78241         * m4/Makefile.am (EXTRA_DIST): Add them.
78242         * m4/jm-macros.m4: New file.
78243         * m4/utimbuf.m4: New file.
78244
78245 1998-05-12  Jim Meyering  <meyering@ascend.com>
78246
78247         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78248
78249 1998-05-11  Jim Meyering  <meyering@ascend.com>
78250
78251         * m4/isc-posix.m4: New file.
78252
78253 1998-05-10  Jim Meyering  <meyering@ascend.com>
78254
78255         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78256
78257 1998-05-09  Jim Meyering  <meyering@ascend.com>
78258
78259         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78260         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78261         with automake.
78262
78263         * m4/ssize_t.m4: New file.
78264         * m4/mktime.m4: Remove file -- the new automake has this now.
78265
78266 1998-04-26  Jim Meyering  <meyering@ascend.com>
78267
78268         * m4/assert.m4: New file.
78269         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78270
78271 1998-04-05  Jim Meyering  <meyering@ascend.com>
78272
78273         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78274         (jm_PREREQ): Use it here.
78275
78276 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78277
78278         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78279         in acconfig.h.
78280
78281 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78282
78283         * m4/prereq.m4: New file.
78284         * m4/error.m4: New file.
78285         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78286
78287 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78288
78289         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78290         cache-check for the same variable -- that defeated the purpose of
78291         the test; the test program was never run.  This was a problem only
78292         on systems with losing getline functions -- HP-UX 10.20 is one.
78293         Reported by Bjorn Helgaas.
78294
78295 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78296
78297         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78298
78299 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78300
78301         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78302
78303         * m4/const.m4: New file.  Use an initializer in this declaration
78304         typedef int charset[2]; const charset x;
78305         Reported by Bob Glickstein.
78306
78307 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78308
78309         * m4/chown.m4: Fix reversed types on -1 args to chown.
78310         From Kaveh Ghazi.
78311
78312 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78313
78314         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78315         Add lseek and memchr.
78316
78317         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78318         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78319         have a 20-character limit on names.
78320
78321 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78322
78323         * m4/inttypes_h.m4: New file.
78324         * m4/uintmax_t.m4: New file.
78325         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78326
78327
78328         -----
78329
78330         Local Variables:
78331         coding: utf-8
78332         End:
78333
78334         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78335
78336         Copying and distribution of this file, with or without
78337         modification, are permitted provided the copyright notice
78338         and this notice are preserved.